]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_gdi_wrap.cpp
38e59e941e9ea2dab0e709bbe8ba81109803534a
[wxWidgets.git] / wxPython / src / mac / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_buffer swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_double swig_types[2]
2469 #define SWIGTYPE_p_form_ops_t swig_types[3]
2470 #define SWIGTYPE_p_int swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_void swig_types[8]
2475 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2476 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478 #define SWIGTYPE_p_wxAlphaPixelData swig_types[12]
2479 #define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13]
2480 #define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14]
2481 #define SWIGTYPE_p_wxBMPHandler swig_types[15]
2482 #define SWIGTYPE_p_wxBitmap swig_types[16]
2483 #define SWIGTYPE_p_wxBoxSizer swig_types[17]
2484 #define SWIGTYPE_p_wxBrush swig_types[18]
2485 #define SWIGTYPE_p_wxBrushList swig_types[19]
2486 #define SWIGTYPE_p_wxBufferedDC swig_types[20]
2487 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[21]
2488 #define SWIGTYPE_p_wxCURHandler swig_types[22]
2489 #define SWIGTYPE_p_wxChar swig_types[23]
2490 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491 #define SWIGTYPE_p_wxClientDC swig_types[25]
2492 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[26]
2493 #define SWIGTYPE_p_wxCloseEvent swig_types[27]
2494 #define SWIGTYPE_p_wxColor swig_types[28]
2495 #define SWIGTYPE_p_wxColour swig_types[29]
2496 #define SWIGTYPE_p_wxColourDatabase swig_types[30]
2497 #define SWIGTYPE_p_wxCommandEvent swig_types[31]
2498 #define SWIGTYPE_p_wxContextMenuEvent swig_types[32]
2499 #define SWIGTYPE_p_wxControl swig_types[33]
2500 #define SWIGTYPE_p_wxControlWithItems swig_types[34]
2501 #define SWIGTYPE_p_wxCursor swig_types[35]
2502 #define SWIGTYPE_p_wxDC swig_types[36]
2503 #define SWIGTYPE_p_wxDCBrushChanger swig_types[37]
2504 #define SWIGTYPE_p_wxDCClipper swig_types[38]
2505 #define SWIGTYPE_p_wxDCOverlay swig_types[39]
2506 #define SWIGTYPE_p_wxDCPenChanger swig_types[40]
2507 #define SWIGTYPE_p_wxDCTextColourChanger swig_types[41]
2508 #define SWIGTYPE_p_wxDash swig_types[42]
2509 #define SWIGTYPE_p_wxDateEvent swig_types[43]
2510 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44]
2511 #define SWIGTYPE_p_wxDropFilesEvent swig_types[45]
2512 #define SWIGTYPE_p_wxDuplexMode swig_types[46]
2513 #define SWIGTYPE_p_wxEffects swig_types[47]
2514 #define SWIGTYPE_p_wxEncodingConverter swig_types[48]
2515 #define SWIGTYPE_p_wxEraseEvent swig_types[49]
2516 #define SWIGTYPE_p_wxEvent swig_types[50]
2517 #define SWIGTYPE_p_wxEvtHandler swig_types[51]
2518 #define SWIGTYPE_p_wxFSFile swig_types[52]
2519 #define SWIGTYPE_p_wxFileSystem swig_types[53]
2520 #define SWIGTYPE_p_wxFlexGridSizer swig_types[54]
2521 #define SWIGTYPE_p_wxFocusEvent swig_types[55]
2522 #define SWIGTYPE_p_wxFont swig_types[56]
2523 #define SWIGTYPE_p_wxFontList swig_types[57]
2524 #define SWIGTYPE_p_wxFontMapper swig_types[58]
2525 #define SWIGTYPE_p_wxGBSizerItem swig_types[59]
2526 #define SWIGTYPE_p_wxGCDC swig_types[60]
2527 #define SWIGTYPE_p_wxGDIObjListBase swig_types[61]
2528 #define SWIGTYPE_p_wxGDIObject swig_types[62]
2529 #define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530 #define SWIGTYPE_p_wxGraphicsBrush swig_types[64]
2531 #define SWIGTYPE_p_wxGraphicsContext swig_types[65]
2532 #define SWIGTYPE_p_wxGraphicsFont swig_types[66]
2533 #define SWIGTYPE_p_wxGraphicsMatrix swig_types[67]
2534 #define SWIGTYPE_p_wxGraphicsObject swig_types[68]
2535 #define SWIGTYPE_p_wxGraphicsPath swig_types[69]
2536 #define SWIGTYPE_p_wxGraphicsPen swig_types[70]
2537 #define SWIGTYPE_p_wxGraphicsRenderer swig_types[71]
2538 #define SWIGTYPE_p_wxGridBagSizer swig_types[72]
2539 #define SWIGTYPE_p_wxGridSizer swig_types[73]
2540 #define SWIGTYPE_p_wxHeaderButtonParams swig_types[74]
2541 #define SWIGTYPE_p_wxICOHandler swig_types[75]
2542 #define SWIGTYPE_p_wxIcon swig_types[76]
2543 #define SWIGTYPE_p_wxIconBundle swig_types[77]
2544 #define SWIGTYPE_p_wxIconLocation swig_types[78]
2545 #define SWIGTYPE_p_wxIconizeEvent swig_types[79]
2546 #define SWIGTYPE_p_wxIdleEvent swig_types[80]
2547 #define SWIGTYPE_p_wxImage swig_types[81]
2548 #define SWIGTYPE_p_wxImageHandler swig_types[82]
2549 #define SWIGTYPE_p_wxImageList swig_types[83]
2550 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[84]
2551 #define SWIGTYPE_p_wxInitDialogEvent swig_types[85]
2552 #define SWIGTYPE_p_wxJPEGHandler swig_types[86]
2553 #define SWIGTYPE_p_wxKeyEvent swig_types[87]
2554 #define SWIGTYPE_p_wxLanguageInfo swig_types[88]
2555 #define SWIGTYPE_p_wxLayoutConstraints swig_types[89]
2556 #define SWIGTYPE_p_wxLocale swig_types[90]
2557 #define SWIGTYPE_p_wxMask swig_types[91]
2558 #define SWIGTYPE_p_wxMaximizeEvent swig_types[92]
2559 #define SWIGTYPE_p_wxMemoryDC swig_types[93]
2560 #define SWIGTYPE_p_wxMenu swig_types[94]
2561 #define SWIGTYPE_p_wxMenuBar swig_types[95]
2562 #define SWIGTYPE_p_wxMenuEvent swig_types[96]
2563 #define SWIGTYPE_p_wxMenuItem swig_types[97]
2564 #define SWIGTYPE_p_wxMetaFile swig_types[98]
2565 #define SWIGTYPE_p_wxMetaFileDC swig_types[99]
2566 #define SWIGTYPE_p_wxMirrorDC swig_types[100]
2567 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569 #define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570 #define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[105]
2572 #define SWIGTYPE_p_wxNativeFontInfo swig_types[106]
2573 #define SWIGTYPE_p_wxNativePixelData swig_types[107]
2574 #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[108]
2575 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[109]
2576 #define SWIGTYPE_p_wxNcPaintEvent swig_types[110]
2577 #define SWIGTYPE_p_wxNotifyEvent swig_types[111]
2578 #define SWIGTYPE_p_wxObject swig_types[112]
2579 #define SWIGTYPE_p_wxOverlay swig_types[113]
2580 #define SWIGTYPE_p_wxPCXHandler swig_types[114]
2581 #define SWIGTYPE_p_wxPNGHandler swig_types[115]
2582 #define SWIGTYPE_p_wxPNMHandler swig_types[116]
2583 #define SWIGTYPE_p_wxPaintDC swig_types[117]
2584 #define SWIGTYPE_p_wxPaintEvent swig_types[118]
2585 #define SWIGTYPE_p_wxPalette swig_types[119]
2586 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[120]
2587 #define SWIGTYPE_p_wxPaperSize swig_types[121]
2588 #define SWIGTYPE_p_wxPen swig_types[122]
2589 #define SWIGTYPE_p_wxPenList swig_types[123]
2590 #define SWIGTYPE_p_wxPixelDataBase swig_types[124]
2591 #define SWIGTYPE_p_wxPoint swig_types[125]
2592 #define SWIGTYPE_p_wxPoint2D swig_types[126]
2593 #define SWIGTYPE_p_wxPoint2DDouble swig_types[127]
2594 #define SWIGTYPE_p_wxPostScriptDC swig_types[128]
2595 #define SWIGTYPE_p_wxPrintData swig_types[129]
2596 #define SWIGTYPE_p_wxPrinterDC swig_types[130]
2597 #define SWIGTYPE_p_wxPseudoDC swig_types[131]
2598 #define SWIGTYPE_p_wxPyApp swig_types[132]
2599 #define SWIGTYPE_p_wxPyCommandEvent swig_types[133]
2600 #define SWIGTYPE_p_wxPyEvent swig_types[134]
2601 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[135]
2602 #define SWIGTYPE_p_wxPyImageHandler swig_types[136]
2603 #define SWIGTYPE_p_wxPyLocale swig_types[137]
2604 #define SWIGTYPE_p_wxPySizer swig_types[138]
2605 #define SWIGTYPE_p_wxPyValidator swig_types[139]
2606 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[140]
2607 #define SWIGTYPE_p_wxRect swig_types[141]
2608 #define SWIGTYPE_p_wxRect2DDouble swig_types[142]
2609 #define SWIGTYPE_p_wxRegion swig_types[143]
2610 #define SWIGTYPE_p_wxRegionIterator swig_types[144]
2611 #define SWIGTYPE_p_wxRendererNative swig_types[145]
2612 #define SWIGTYPE_p_wxRendererVersion swig_types[146]
2613 #define SWIGTYPE_p_wxScreenDC swig_types[147]
2614 #define SWIGTYPE_p_wxScrollEvent swig_types[148]
2615 #define SWIGTYPE_p_wxScrollWinEvent swig_types[149]
2616 #define SWIGTYPE_p_wxSetCursorEvent swig_types[150]
2617 #define SWIGTYPE_p_wxShowEvent swig_types[151]
2618 #define SWIGTYPE_p_wxSize swig_types[152]
2619 #define SWIGTYPE_p_wxSizeEvent swig_types[153]
2620 #define SWIGTYPE_p_wxSizer swig_types[154]
2621 #define SWIGTYPE_p_wxSizerItem swig_types[155]
2622 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[156]
2623 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[157]
2624 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[158]
2625 #define SWIGTYPE_p_wxStockGDI swig_types[159]
2626 #define SWIGTYPE_p_wxString swig_types[160]
2627 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[161]
2628 #define SWIGTYPE_p_wxTGAHandler swig_types[162]
2629 #define SWIGTYPE_p_wxTIFFHandler swig_types[163]
2630 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[164]
2631 #define SWIGTYPE_p_wxValidator swig_types[165]
2632 #define SWIGTYPE_p_wxWindow swig_types[166]
2633 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[167]
2634 #define SWIGTYPE_p_wxWindowDC swig_types[168]
2635 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[169]
2636 #define SWIGTYPE_p_wxXPMHandler swig_types[170]
2637 static swig_type_info *swig_types[172];
2638 static swig_module_info swig_module = {swig_types, 171, 0, 0, 0, 0};
2639 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2640 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2641
2642 /* -------- TYPES TABLE (END) -------- */
2643
2644 #if (PY_VERSION_HEX <= 0x02000000)
2645 # if !defined(SWIG_PYTHON_CLASSIC)
2646 # error "This python version requires to use swig with the '-classic' option"
2647 # endif
2648 #endif
2649 #if (PY_VERSION_HEX <= 0x02020000)
2650 # error "This python version requires to use swig with the '-nomodern' option"
2651 #endif
2652 #if (PY_VERSION_HEX <= 0x02020000)
2653 # error "This python version requires to use swig with the '-nomodernargs' option"
2654 #endif
2655 #ifndef METH_O
2656 # error "This python version requires to use swig with the '-nofastunpack' option"
2657 #endif
2658
2659 /*-----------------------------------------------
2660 @(target):= _gdi_.so
2661 ------------------------------------------------*/
2662 #define SWIG_init init_gdi_
2663
2664 #define SWIG_name "_gdi_"
2665
2666 #define SWIGVERSION 0x010329
2667
2668
2669 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2670 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2671
2672
2673 #include <stdexcept>
2674
2675
2676 namespace swig {
2677 class PyObject_ptr {
2678 protected:
2679 PyObject *_obj;
2680
2681 public:
2682 PyObject_ptr() :_obj(0)
2683 {
2684 }
2685
2686 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2687 {
2688 Py_XINCREF(_obj);
2689 }
2690
2691 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2692 {
2693 if (initial_ref) Py_XINCREF(_obj);
2694 }
2695
2696 PyObject_ptr & operator=(const PyObject_ptr& item)
2697 {
2698 Py_XINCREF(item._obj);
2699 Py_XDECREF(_obj);
2700 _obj = item._obj;
2701 return *this;
2702 }
2703
2704 ~PyObject_ptr()
2705 {
2706 Py_XDECREF(_obj);
2707 }
2708
2709 operator PyObject *() const
2710 {
2711 return _obj;
2712 }
2713
2714 PyObject *operator->() const
2715 {
2716 return _obj;
2717 }
2718 };
2719 }
2720
2721
2722 namespace swig {
2723 struct PyObject_var : PyObject_ptr {
2724 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2725
2726 PyObject_var & operator = (PyObject* obj)
2727 {
2728 Py_XDECREF(_obj);
2729 _obj = obj;
2730 return *this;
2731 }
2732 };
2733 }
2734
2735
2736 #include "wx/wxPython/wxPython.h"
2737 #include "wx/wxPython/pyclasses.h"
2738
2739
2740 static const wxString wxPyEmptyString(wxEmptyString);
2741
2742 #define SWIG_From_long PyInt_FromLong
2743
2744
2745 SWIGINTERNINLINE PyObject *
2746 SWIG_From_int (int value)
2747 {
2748 return SWIG_From_long (value);
2749 }
2750
2751
2752 #include <limits.h>
2753 #ifndef LLONG_MIN
2754 # define LLONG_MIN LONG_LONG_MIN
2755 #endif
2756 #ifndef LLONG_MAX
2757 # define LLONG_MAX LONG_LONG_MAX
2758 #endif
2759 #ifndef ULLONG_MAX
2760 # define ULLONG_MAX ULONG_LONG_MAX
2761 #endif
2762
2763
2764 SWIGINTERN int
2765 SWIG_AsVal_long (PyObject* obj, long* val)
2766 {
2767 if (PyNumber_Check(obj)) {
2768 if (val) *val = PyInt_AsLong(obj);
2769 return SWIG_OK;
2770 }
2771 return SWIG_TypeError;
2772 }
2773
2774
2775 SWIGINTERN int
2776 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2777 {
2778 long v = 0;
2779 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2780 return SWIG_TypeError;
2781 }
2782 else if (val)
2783 *val = (unsigned long)v;
2784 return SWIG_OK;
2785 }
2786
2787
2788 SWIGINTERN int
2789 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2790 {
2791 unsigned long v;
2792 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2793 if (SWIG_IsOK(res)) {
2794 if ((v > UCHAR_MAX)) {
2795 return SWIG_OverflowError;
2796 } else {
2797 if (val) *val = static_cast< unsigned char >(v);
2798 }
2799 }
2800 return res;
2801 }
2802
2803
2804 SWIGINTERNINLINE PyObject*
2805 SWIG_From_unsigned_SS_long (unsigned long value)
2806 {
2807 return (value > LONG_MAX) ?
2808 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2809 }
2810
2811
2812 SWIGINTERNINLINE PyObject *
2813 SWIG_From_unsigned_SS_char (unsigned char value)
2814 {
2815 return SWIG_From_unsigned_SS_long (value);
2816 }
2817
2818 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2819 wxColour temp, *obj = &temp;
2820 if ( other == Py_None ) return false;
2821 if ( ! wxColour_helper(other, &obj) ) {
2822 PyErr_Clear();
2823 return false;
2824 }
2825 return self->operator==(*obj);
2826 }
2827 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2828 wxColour temp, *obj = &temp;
2829 if ( other == Py_None ) return true;
2830 if ( ! wxColour_helper(other, &obj)) {
2831 PyErr_Clear();
2832 return true;
2833 }
2834 return self->operator!=(*obj);
2835 }
2836
2837 SWIGINTERN int
2838 SWIG_AsVal_bool (PyObject *obj, bool *val)
2839 {
2840 if (obj == Py_True) {
2841 if (val) *val = true;
2842 return SWIG_OK;
2843 } else if (obj == Py_False) {
2844 if (val) *val = false;
2845 return SWIG_OK;
2846 } else {
2847 long v = 0;
2848 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2849 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2850 return res;
2851 }
2852 }
2853
2854 SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2855 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
2856 int red = -1;
2857 int green = -1;
2858 int blue = -1;
2859 int alpha = wxALPHA_OPAQUE;
2860 if (self->IsOk()) {
2861 red = self->Red();
2862 green = self->Green();
2863 blue = self->Blue();
2864 alpha = self->Alpha();
2865 }
2866 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2867 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2868 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2869 if (includeAlpha)
2870 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
2871 return rv;
2872 }
2873 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2874 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2875 }
2876
2877 SWIGINTERN int
2878 SWIG_AsVal_int (PyObject * obj, int *val)
2879 {
2880 long v;
2881 int res = SWIG_AsVal_long (obj, &v);
2882 if (SWIG_IsOK(res)) {
2883 if ((v < INT_MIN || v > INT_MAX)) {
2884 return SWIG_OverflowError;
2885 } else {
2886 if (val) *val = static_cast< int >(v);
2887 }
2888 }
2889 return res;
2890 }
2891
2892 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2893 wxDash* dashes;
2894 int count = self->GetDashes(&dashes);
2895 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2896 PyObject* retval = PyList_New(0);
2897 for (int x=0; x<count; x++) {
2898 PyObject* pyint = PyInt_FromLong(dashes[x]);
2899 PyList_Append(retval, pyint);
2900 Py_DECREF(pyint);
2901 }
2902 wxPyEndBlockThreads(blocked);
2903 return retval;
2904 }
2905 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2906 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2907 int size = PyList_Size(pyDashes);
2908 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2909
2910 // black magic warning! The array of wxDashes needs to exist as
2911 // long as the pen does because wxPen does not copy the array. So
2912 // stick a copy in a Python string object and attach it to _self,
2913 // and then call SetDashes with a pointer to that array. Then
2914 // when the Python pen object is destroyed the array will be
2915 // cleaned up too.
2916 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2917 PyObject_SetAttrString(_self, "_dashes", strDashes);
2918
2919 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2920 delete [] dashes;
2921 Py_DECREF(strDashes);
2922 wxPyEndBlockThreads(blocked);
2923 }
2924 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2925 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2926
2927 SWIGINTERNINLINE PyObject *
2928 SWIG_From_short (short value)
2929 {
2930 return SWIG_From_long (value);
2931 }
2932
2933
2934 SWIGINTERN int
2935 SWIG_AsVal_short (PyObject * obj, short *val)
2936 {
2937 long v;
2938 int res = SWIG_AsVal_long (obj, &v);
2939 if (SWIG_IsOK(res)) {
2940 if ((v < SHRT_MIN || v > SHRT_MAX)) {
2941 return SWIG_OverflowError;
2942 } else {
2943 if (val) *val = static_cast< short >(v);
2944 }
2945 }
2946 return res;
2947 }
2948
2949
2950 #include <wx/rawbmp.h>
2951
2952
2953 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2954 // appears to me that the other platforms are already doing it, so I'll just
2955 // automatically do it for wxMSW here.
2956 #ifdef __WXMSW__
2957 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2958 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2959 #else
2960 #define wxPy_premultiply(p, a) (p)
2961 #define wxPy_unpremultiply(p, a) (p)
2962 #endif
2963
2964
2965 #include <wx/image.h>
2966
2967 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2968 char** cArray = NULL;
2969 int count;
2970
2971 if (!PyList_Check(listOfStrings)) {
2972 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2973 return NULL;
2974 }
2975 count = PyList_Size(listOfStrings);
2976 cArray = new char*[count];
2977
2978 for(int x=0; x<count; x++) {
2979 // TODO: Need some validation and error checking here
2980 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2981 }
2982 return cArray;
2983 }
2984
2985
2986 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2987 char** cArray = NULL;
2988 wxBitmap* bmp;
2989
2990 cArray = ConvertListOfStrings(listOfStrings);
2991 if (! cArray)
2992 return NULL;
2993 bmp = new wxBitmap(cArray);
2994 delete [] cArray;
2995 return bmp;
2996 }
2997 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2998 char* buf;
2999 Py_ssize_t length;
3000 PyString_AsStringAndSize(bits, &buf, &length);
3001 return new wxBitmap(buf, width, height, depth);
3002 }
3003 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
3004 wxSize size(self->GetWidth(), self->GetHeight());
3005 return size;
3006 }
3007 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
3008 wxMask *mask = new wxMask(*self, colour);
3009 self->SetMask(mask);
3010 }
3011 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
3012 self->SetWidth(size.x);
3013 self->SetHeight(size.y);
3014 }
3015 SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){
3016 int height=self->GetHeight();
3017 int width=self->GetWidth();
3018
3019 if (DATASIZE != width * height * 3) {
3020 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3021 }
3022 wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3023 if (! pixData) {
3024 // raise an exception...
3025 wxPyErr_SetString(PyExc_RuntimeError,
3026 "Failed to gain raw access to bitmap data.");
3027 return;
3028 }
3029
3030 wxNativePixelData::Iterator p(pixData);
3031 for (int y=0; y<height; y++) {
3032 wxNativePixelData::Iterator rowStart = p;
3033 for (int x=0; x<width; x++) {
3034 p.Red() = *(data++);
3035 p.Green() = *(data++);
3036 p.Blue() = *(data++);
3037 ++p;
3038 }
3039 p = rowStart;
3040 p.OffsetY(pixData, 1);
3041 }
3042 }
3043 SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){
3044 int height=self->GetHeight();
3045 int width=self->GetWidth();
3046
3047 if (DATASIZE != width * height * 4) {
3048 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3049 }
3050 wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3051 if (! pixData) {
3052 // raise an exception...
3053 wxPyErr_SetString(PyExc_RuntimeError,
3054 "Failed to gain raw access to bitmap data.");
3055 return;
3056 }
3057
3058 pixData.UseAlpha();
3059 wxAlphaPixelData::Iterator p(pixData);
3060 for (int y=0; y<height; y++) {
3061 wxAlphaPixelData::Iterator rowStart = p;
3062 for (int x=0; x<width; x++) {
3063 byte a = data[3];
3064 p.Red() = wxPy_premultiply(*(data++), a);
3065 p.Green() = wxPy_premultiply(*(data++), a);
3066 p.Blue() = wxPy_premultiply(*(data++), a);
3067 p.Alpha() = a; data++;
3068 ++p;
3069 }
3070 p = rowStart;
3071 p.OffsetY(pixData, 1);
3072 }
3073 }
3074 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; }
3075 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; }
3076
3077 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3078 buffer data, int DATASIZE,
3079 buffer alpha, int ALPHASIZE)
3080 {
3081 if (DATASIZE != width*height*3) {
3082 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3083 return NULL;
3084 }
3085
3086 if (ALPHASIZE != width*height) {
3087 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3088 return NULL;
3089 }
3090
3091 wxBitmap* bmp = new wxBitmap(width, height, 32);
3092 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3093 if (! pixData) {
3094 // raise an exception...
3095 wxPyErr_SetString(PyExc_RuntimeError,
3096 "Failed to gain raw access to bitmap data.");
3097 return NULL;
3098 }
3099
3100 pixData.UseAlpha();
3101 wxAlphaPixelData::Iterator p(pixData);
3102 for (int y=0; y<height; y++) {
3103 wxAlphaPixelData::Iterator rowStart = p;
3104 for (int x=0; x<width; x++) {
3105 byte a = *(alpha++);
3106 p.Red() = wxPy_premultiply(*(data++), a);
3107 p.Green() = wxPy_premultiply(*(data++), a);
3108 p.Blue() = wxPy_premultiply(*(data++), a);
3109 p.Alpha() = a;
3110 ++p;
3111 }
3112 p = rowStart;
3113 p.OffsetY(pixData, 1);
3114 }
3115 return bmp;
3116 }
3117
3118 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3119 {
3120 if (DATASIZE != width*height*3) {
3121 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3122 return NULL;
3123 }
3124
3125 wxBitmap* bmp = new wxBitmap(width, height, 24);
3126 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3127 if (! pixData) {
3128 // raise an exception...
3129 wxPyErr_SetString(PyExc_RuntimeError,
3130 "Failed to gain raw access to bitmap data.");
3131 return NULL;
3132 }
3133
3134 wxNativePixelData::Iterator p(pixData);
3135 for (int y=0; y<height; y++) {
3136 wxNativePixelData::Iterator rowStart = p;
3137 for (int x=0; x<width; x++) {
3138 p.Red() = *(data++);
3139 p.Green() = *(data++);
3140 p.Blue() = *(data++);
3141 ++p;
3142 }
3143 p = rowStart;
3144 p.OffsetY(pixData, 1);
3145 }
3146 return bmp;
3147 }
3148
3149
3150 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3151 {
3152 if (DATASIZE != width*height*4) {
3153 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3154 return NULL;
3155 }
3156
3157 wxBitmap* bmp = new wxBitmap(width, height, 32);
3158 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3159 if (! pixData) {
3160 // raise an exception...
3161 wxPyErr_SetString(PyExc_RuntimeError,
3162 "Failed to gain raw access to bitmap data.");
3163 return NULL;
3164 }
3165
3166 pixData.UseAlpha();
3167 wxAlphaPixelData::Iterator p(pixData);
3168 for (int y=0; y<height; y++) {
3169 wxAlphaPixelData::Iterator rowStart = p;
3170 for (int x=0; x<width; x++) {
3171 byte a = data[3];
3172 p.Red() = wxPy_premultiply(*(data++), a);
3173 p.Green() = wxPy_premultiply(*(data++), a);
3174 p.Blue() = wxPy_premultiply(*(data++), a);
3175 p.Alpha() = a; data++;
3176 ++p;
3177 }
3178 p = rowStart;
3179 p.OffsetY(pixData, 1);
3180 }
3181 return bmp;
3182 }
3183
3184
3185 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3186
3187 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3188 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3189 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3190 self->Red() = red;
3191 self->Green() = green;
3192 self->Blue() = blue;
3193 }
3194 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3195 PyObject* rv = PyTuple_New(3);
3196 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3197 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3198 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3199 return rv;
3200 }
3201
3202 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3203
3204 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3205 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3206 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3207 self->Red() = wxPy_premultiply(red, alpha);
3208 self->Green() = wxPy_premultiply(green, alpha);
3209 self->Blue() = wxPy_premultiply(blue, alpha);
3210 self->Alpha() = alpha;
3211 }
3212 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3213 PyObject* rv = PyTuple_New(4);
3214 int red = self->Red();
3215 int green = self->Green();
3216 int blue = self->Blue();
3217 int alpha = self->Alpha();
3218
3219 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3220 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3221 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3222 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3223 return rv;
3224 }
3225 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3226 if ( !colour.IsOk() )
3227 return new wxMask(bitmap, *wxBLACK);
3228 else
3229 return new wxMask(bitmap, colour);
3230 }
3231
3232 #include <wx/iconbndl.h>
3233
3234 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3235 wxIcon* icon = new wxIcon();
3236 icon->CopyFromBitmap(bmp);
3237 return icon;
3238 }
3239 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3240 char** cArray = NULL;
3241 wxIcon* icon;
3242
3243 cArray = ConvertListOfStrings(listOfStrings);
3244 if (! cArray)
3245 return NULL;
3246 icon = new wxIcon(cArray);
3247 delete [] cArray;
3248 return icon;
3249 }
3250 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3251
3252
3253
3254 return new wxIconLocation(*filename);
3255
3256 }
3257 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3258
3259
3260
3261 // do nothing
3262
3263 }
3264 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3265
3266
3267
3268 return -1;
3269
3270 }
3271 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3272 #ifdef __WXGTK__
3273 wxImage img(cursorName, type);
3274 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3275 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3276 return new wxCursor(img);
3277 #else
3278 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3279 #endif
3280 }
3281
3282
3283 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3284 (*self) ++;
3285 }
3286 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3287 return self->operator bool();
3288 }
3289
3290 #include <wx/fontutil.h>
3291 #include <wx/fontmap.h>
3292 #include <wx/fontenum.h>
3293
3294 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3295 return self->ToString();
3296 }
3297
3298 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3299 static wxNativeEncodingInfo info;
3300 if ( wxGetNativeFontEncoding(encoding, &info) )
3301 return &info;
3302 else
3303 return NULL;
3304 }
3305
3306
3307 SWIGINTERNINLINE PyObject *
3308 SWIG_From_size_t (size_t value)
3309 {
3310 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3311 }
3312
3313
3314 SWIGINTERNINLINE int
3315 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3316 {
3317 unsigned long v;
3318 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3319 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3320 return res;
3321 }
3322
3323 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3324 wxFontEncoding alt_enc;
3325 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3326 return PyInt_FromLong(alt_enc);
3327 else {
3328 Py_INCREF(Py_None);
3329 return Py_None;
3330 }
3331 }
3332 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3333 wxNativeFontInfo nfi;
3334 nfi.FromString(info);
3335 return new wxFont(nfi);
3336 }
3337 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3338 return wxFont::New(pointSize, family, flags, face, encoding);
3339 }
3340 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3341 return wxFontBase::New(pixelSize, family,
3342 style, weight, underlined,
3343 face, encoding);
3344 }
3345 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3346 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3347 }
3348 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3349 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3350
3351 class wxPyFontEnumerator : public wxFontEnumerator {
3352 public:
3353 wxPyFontEnumerator() {}
3354 ~wxPyFontEnumerator() {}
3355
3356 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3357 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3358
3359 PYPRIVATE;
3360 };
3361
3362 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3363 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3364
3365
3366 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3367 PyObject* ret;
3368 wxArrayString arr = wxFontEnumerator::GetEncodings();
3369 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3370 ret = wxArrayString2PyList_helper(arr);
3371 wxPyEndBlockThreads(blocked);
3372 return ret;
3373 }
3374 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3375 PyObject* ret;
3376 wxArrayString arr = wxFontEnumerator::GetFacenames();
3377 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3378 ret = wxArrayString2PyList_helper(arr);
3379 wxPyEndBlockThreads(blocked);
3380 return ret;
3381 }
3382
3383 #include <locale.h>
3384
3385 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3386 wxLocale* loc;
3387 if (language == -1)
3388 loc = new wxLocale();
3389 else
3390 loc = new wxLocale(language, flags);
3391 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3392 // for the floating point conversions and such to work right.
3393 #if PY_VERSION_HEX < 0x02040000
3394 setlocale(LC_NUMERIC, "C");
3395 #endif
3396 return loc;
3397 }
3398 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3399 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3400 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3401 // for the floating point conversions and such to work right.
3402 #if PY_VERSION_HEX < 0x02040000
3403 setlocale(LC_NUMERIC, "C");
3404 #endif
3405 return rc;
3406 }
3407 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3408 bool rc = self->Init(language, flags);
3409 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3410 // for the floating point conversions and such to work right.
3411 #if PY_VERSION_HEX < 0x02040000
3412 setlocale(LC_NUMERIC, "C");
3413 #endif
3414 return rc;
3415 }
3416
3417 class wxPyLocale : public wxLocale
3418 {
3419 public:
3420 wxPyLocale();
3421
3422 wxPyLocale(const wxChar *szName, // name (for messages)
3423 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3424 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3425 bool bLoadDefault = true, // preload wxstd.mo?
3426 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3427
3428 wxPyLocale(int language, // wxLanguage id or custom language
3429 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3430
3431 ~wxPyLocale();
3432
3433 virtual const wxChar *GetString(const wxChar *szOrigString,
3434 const wxChar *szDomain = NULL) const;
3435 virtual const wxChar *GetString(const wxChar *szOrigString,
3436 const wxChar *szOrigString2, size_t n,
3437 const wxChar *szDomain = NULL) const;
3438
3439 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3440 const wxChar *szDomain = NULL) const;
3441 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3442 const wxChar *szOrigString2, size_t n,
3443 const wxChar *szDomain = NULL) const;
3444
3445 PYPRIVATE;
3446 private:
3447 DECLARE_NO_COPY_CLASS(wxPyLocale)
3448 };
3449
3450 wxPyLocale::wxPyLocale() : wxLocale()
3451 {
3452 }
3453
3454 wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3455 const wxChar *szShort, // dir prefix (for msg files)
3456 const wxChar *szLocale, // locale (for setlocale)
3457 bool bLoadDefault, // preload wxstd.mo?
3458 bool bConvertEncoding) // convert Win<->Unix if necessary?
3459 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3460 {
3461 }
3462
3463 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3464 int flags) : wxLocale(language, flags)
3465 {
3466 }
3467
3468 wxPyLocale::~wxPyLocale()
3469 {
3470 }
3471
3472 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3473 const wxChar *szDomain) const
3474 {
3475 wxChar *str = GetSingularString(szOrigString, szDomain);
3476 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3477 }
3478
3479 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3480 const wxChar *szOrigString2, size_t n,
3481 const wxChar *szDomain) const
3482 {
3483 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3484 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3485 }
3486
3487 wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3488 const wxChar *szDomain) const
3489 {
3490 bool found;
3491 static wxString str;
3492 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3493 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3494 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3495 PyObject* param1 = wx2PyString(szOrigString);
3496 PyObject* param2 = wx2PyString(szDomain);
3497 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3498 Py_DECREF(param1);
3499 Py_DECREF(param2);
3500 if (ret) {
3501 str = Py2wxString(ret);
3502 Py_DECREF(ret);
3503 }
3504 }
3505 wxPyEndBlockThreads(blocked);
3506 return (found ? (wxChar*)str.c_str() : NULL);
3507 }
3508
3509 wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3510 const wxChar *szOrigString2, size_t n,
3511 const wxChar *szDomain) const
3512 {
3513 bool found;
3514 static wxString str;
3515 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3516 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3517 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3518 PyObject* param1 = wx2PyString(szOrigString);
3519 PyObject* param2 = wx2PyString(szOrigString2);
3520 PyObject* param4 = wx2PyString(szDomain);
3521 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3522 Py_DECREF(param1);
3523 Py_DECREF(param2);
3524 Py_DECREF(param4);
3525 if( ret) {
3526 str = Py2wxString(ret);
3527 Py_DECREF(ret);
3528 }
3529 }
3530 wxPyEndBlockThreads(blocked);
3531 return (found ? (wxChar*)str.c_str() : NULL);
3532 }
3533
3534 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3535 wxPyLocale* loc;
3536 if (language == -1)
3537 loc = new wxPyLocale();
3538 else
3539 loc = new wxPyLocale(language, flags);
3540 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3541 // for the floating point conversions and such to work right.
3542 #if PY_VERSION_HEX < 0x02040000
3543 setlocale(LC_NUMERIC, "C");
3544 #endif
3545 return loc;
3546 }
3547
3548 #include "wx/wxPython/pydrawxxx.h"
3549
3550 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3551 wxColour col;
3552 self->GetPixel(x, y, &col);
3553 return col;
3554 }
3555 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3556 wxColour col;
3557 self->GetPixel(pt, &col);
3558 return col;
3559 }
3560
3561 SWIGINTERN int
3562 SWIG_AsVal_double (PyObject *obj, double* val)
3563 {
3564 if (PyNumber_Check(obj)) {
3565 if (val) *val = PyFloat_AsDouble(obj);
3566 return SWIG_OK;
3567 }
3568 return SWIG_TypeError;
3569 }
3570
3571 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3572 wxRect rv;
3573 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3574 return rv;
3575 }
3576 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3577 wxRect rect;
3578 self->GetClippingBox(rect);
3579 return rect;
3580 }
3581 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3582 wxArrayInt widths;
3583 self->GetPartialTextExtents(text, widths);
3584 return widths;
3585 }
3586
3587 #define SWIG_From_double PyFloat_FromDouble
3588
3589 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3590 self->SetLogicalOrigin(point.x, point.y);
3591 }
3592 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3593 self->SetDeviceOrigin(point.x, point.y);
3594 }
3595 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3596 self->CalcBoundingBox(point.x, point.y);
3597 }
3598 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3599 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3600 }
3601 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3602 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3603 }
3604 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3605 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3606 }
3607 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3608 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3609 }
3610 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3611 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3612 }
3613 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3614 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3615 }
3616
3617 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3618 *x1 = dc->MinX();
3619 *y1 = dc->MinY();
3620 *x2 = dc->MaxX();
3621 *y2 = dc->MaxY();
3622 }
3623
3624
3625 #include <wx/dcbuffer.h>
3626
3627
3628 #include <wx/dcps.h>
3629
3630
3631 #include <wx/metafile.h>
3632
3633
3634 #include <wx/graphics.h>
3635
3636
3637 #if !wxUSE_GRAPHICS_CONTEXT
3638 // C++ stub classes for platforms or build configurations that don't have
3639 // wxGraphicsContext yet.
3640
3641
3642 class wxGraphicsObject : public wxObject
3643 {
3644 public :
3645 wxGraphicsObject( wxGraphicsRenderer* ) {
3646 PyErr_SetString(PyExc_NotImplementedError,
3647 "wx.GraphicsObject is not available on this platform.");
3648 }
3649 wxGraphicsObject( const wxGraphicsObject& ) {}
3650 virtual ~wxGraphicsObject() {}
3651 bool IsNull() const { return false; }
3652 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3653 } ;
3654
3655
3656
3657 class wxGraphicsPen : public wxGraphicsObject
3658 {
3659 wxGraphicsPen() {}
3660 virtual ~wxGraphicsPen() {}
3661 } ;
3662 wxGraphicsPen wxNullGraphicsPen;
3663
3664
3665
3666 class wxGraphicsBrush : public wxGraphicsObject
3667 {
3668 public :
3669 wxGraphicsBrush() {}
3670 virtual ~wxGraphicsBrush() {}
3671 } ;
3672 wxGraphicsBrush wxNullGraphicsBrush;
3673
3674
3675
3676 class wxGraphicsFont : public wxGraphicsObject
3677 {
3678 public :
3679 wxGraphicsFont() {}
3680 virtual ~wxGraphicsFont() {}
3681 } ;
3682 wxGraphicsFont wxNullGraphicsFont;
3683
3684
3685
3686 class wxGraphicsPath : public wxGraphicsObject
3687 {
3688 public :
3689 wxGraphicsPath(wxGraphicsRenderer* ) {
3690 PyErr_SetString(PyExc_NotImplementedError,
3691 "wx.GraphicsPath is not available on this platform.");
3692 }
3693 virtual ~wxGraphicsPath() {}
3694
3695 void MoveToPoint( wxDouble, wxDouble ) {}
3696 void MoveToPoint( const wxPoint2DDouble& ) {}
3697 void AddLineToPoint( wxDouble, wxDouble ) {}
3698 void AddLineToPoint( const wxPoint2DDouble& ) {}
3699 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3700 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3701 void AddPath( const wxGraphicsPath* ) {}
3702 void CloseSubpath() {}
3703 void GetCurrentPoint( wxDouble&, wxDouble&) {}
3704 wxPoint2DDouble GetCurrentPoint() { reutrn wxPoint2D(0,0); }
3705 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3706 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
3707
3708 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3709 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3710 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3711 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3712
3713 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3714 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3715 void * GetNativePath() const { return NULL; }
3716 void UnGetNativePath(void *) {}
3717 void Transform( wxGraphicsMatrix* ) {}
3718 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) {}
3719 wxRect2D GetBox() { return wxRect2D(0,0,0,0); }
3720
3721 bool Contains( wxDouble , wxDouble , int ) { return false; }
3722 bool Contains( const wxPoint2DDouble& , int ) { return false; }
3723 };
3724 wxGraphicsPath wxNullGraphicsPath;
3725
3726
3727 class wxGraphicsMatrix : public wxGraphicsObject
3728 {
3729 public :
3730 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3731 PyErr_SetString(PyExc_NotImplementedError,
3732 "wx.GraphicsMatrix is not available on this platform.");
3733 }
3734 virtual ~wxGraphicsMatrix() {}
3735 virtual void Concat( const wxGraphicsMatrix * ) {}
3736 virtual void Copy( const wxGraphicsMatrix * ) {}
3737 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3738 wxDouble , wxDouble ) {}
3739 virtual void Invert() {}
3740 virtual bool IsEqual( const wxGraphicsMatrix* t) const {}
3741 virtual bool IsIdentity() { return false; }
3742 virtual void Translate( wxDouble , wxDouble ) {}
3743 virtual void Scale( wxDouble , wxDouble ) {}
3744 virtual void Rotate( wxDouble ) {}
3745 virtual void TransformPoint( wxDouble *, wxDouble * ) {}
3746 virtual void TransformDistance( wxDouble *, wxDouble * ) {}
3747 virtual void * GetNativeMatrix() const { return NULL; }
3748 };
3749 wxGraphicsMatrix wxNullGraphicsMatrix;
3750
3751
3752 class wxGraphicsContext : public wxGraphicsObject
3753 {
3754 public:
3755
3756 wxGraphicsContext(wxGraphicsRenderer* ) {
3757 PyErr_SetString(PyExc_NotImplementedError,
3758 "wx.GraphicsContext is not available on this platform.");
3759 }
3760
3761 virtual ~wxGraphicsContext() {}
3762
3763 static wxGraphicsContext* Create( const wxWindowDC& ) {
3764 PyErr_SetString(PyExc_NotImplementedError,
3765 "wx.GraphicsContext is not available on this platform.");
3766 }
3767
3768 static wxGraphicsContext* CreateFromNative( void * ) {
3769 PyErr_SetString(PyExc_NotImplementedError,
3770 "wx.GraphicsContext is not available on this platform.");
3771 }
3772
3773 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3774 PyErr_SetString(PyExc_NotImplementedError,
3775 "wx.GraphicsContext is not available on this platform.");
3776 }
3777
3778 static wxGraphicsContext* Create( wxWindow* ) {
3779 PyErr_SetString(PyExc_NotImplementedError,
3780 "wx.GraphicsContext is not available on this platform.");
3781 }
3782
3783 wxGraphicsPath * CreatePath() { return NULL; }
3784
3785 virtual wxGraphicsPen CreatePen(const wxPen& ) { return NULL; }
3786
3787 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return NULL; }
3788
3789 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3790 const wxColour&, const wxColour&) { return NULL; }
3791
3792 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3793 wxDouble xc, wxDouble yc, wxDouble radius,
3794 const wxColour &oColor, const wxColour &cColor) { return NULL; }
3795
3796 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return NULL; }
3797
3798 virtual wxGraphicsMatrix* CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3799 wxDouble, wxDouble) { return NULL; }
3800
3801 virtual void PushState() {}
3802 virtual void PopState() {}
3803 virtual void Clip( const wxRegion & ) {}
3804 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3805 virtual void ResetClip() {}
3806 virtual void * GetNativeContext() { return NULL; }
3807 virtual void Translate( wxDouble , wxDouble ) {}
3808 virtual void Scale( wxDouble , wxDouble ) {}
3809 virtual void Rotate( wxDouble ) {}
3810 virtual void ConcatTransform( const wxGraphicsMatrix* ) {}
3811 virtual void SetTransform( const wxGraphicsMatrix* ) {}
3812 virtual void GetTransform( wxGraphicsMatrix* ) {}
3813
3814 virtual void SetPen( const wxGraphicsPen& ) {}
3815 void SetPen( const wxPen& ) {}
3816
3817 virtual void SetBrush( const wxGraphicsBrush& ) {}
3818 void SetBrush( const wxBrush& ) {}
3819
3820 virtual void SetFont( const wxGraphicsFont& ) {}
3821 void SetFont( const wxFont&, const wxColour& ) {}
3822
3823 virtual void StrokePath( const wxGraphicsPath * ) {}
3824 virtual void FillPath( const wxGraphicsPath *, int ) {}
3825 virtual void DrawPath( const wxGraphicsPath *, int ) {}
3826
3827 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3828 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3829 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3830 wxDouble *, wxDouble * ) const {}
3831 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3832
3833 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3834 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3835
3836 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3837 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3838 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3839 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3840 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3841 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3842 virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {}
3843 virtual bool ShouldOffset() const { return false; }
3844 };
3845
3846
3847 class wxGraphicsRenderer : public wxObject
3848 {
3849 public :
3850 wxGraphicsRenderer() {
3851 PyErr_SetString(PyExc_NotImplementedError,
3852 "wx.GraphicsRenderer is not available on this platform.");
3853 }
3854
3855 virtual ~wxGraphicsRenderer() {}
3856
3857 static wxGraphicsRenderer* GetDefaultRenderer(
3858 PyErr_SetString(PyExc_NotImplementedError,
3859 "wx.GraphicsRenderer is not available on this platform.");
3860 );
3861
3862 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3863 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3864 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3865 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
3866
3867 virtual wxGraphicsPath * CreatePath() { return NULL; }
3868
3869 virtual wxGraphicsMatrix * CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3870 wxDouble , wxDouble ) { return NULL; }
3871
3872 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGaphicsPen; }
3873 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGaphicsBrush; }
3874 virtual wxGraphicsBrush CreateLinearGradientBrush(xDouble , wxDouble , wxDouble , wxDouble ,
3875 const wxColour&, const wxColour&) { return wxNullGaphicsBrush; }
3876 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3877 const wxColour &, const wxColour &) { return wxNullGaphicsBrush; }
3878 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGaphicsFont; }
3879 };
3880
3881
3882
3883 class wxGCDC: public wxWindowDC
3884 {
3885 public:
3886 wxGCDC(const wxWindowDC&) {
3887 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3888 PyErr_SetString(PyExc_NotImplementedError,
3889 "wxGCDC is not available on this platform.");
3890 wxPyEndBlockThreads(blocked);
3891 }
3892
3893 wxGCDC() {
3894 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3895 PyErr_SetString(PyExc_NotImplementedError,
3896 "wxGCDC is not available on this platform.");
3897 wxPyEndBlockThreads(blocked);
3898 }
3899
3900 virtual ~wxGCDC() {}
3901
3902 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3903 void SetGraphicsContext( wxGraphicsContext* ) {}
3904 };
3905
3906 #endif
3907
3908 SWIGINTERN void wxGraphicsMatrix_Copy(wxGraphicsMatrix *self,wxGraphicsMatrix const &t){
3909 *self = t;
3910 }
3911 SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3912 wxDouble width = 0.0,
3913 height = 0.0;
3914 self->GetTextExtent(text, &width, &height, NULL, NULL);
3915 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3916 PyObject* rv = PyTuple_New(2);
3917 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3918 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3919 return rv;
3920 }
3921 SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3922 wxArrayDouble widths;
3923 self->GetPartialTextExtents(text, widths);
3924 return widths;
3925 }
3926 SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
3927 size_t c1, c2, count;
3928 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3929 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3930
3931 if ( beginP != NULL && endP != NULL )
3932 {
3933 count = wxMin(c1, c2);
3934 self->StrokeLines(count, beginP, endP);
3935 }
3936 delete [] beginP;
3937 delete [] endP;
3938 }
3939
3940 #include "wx/dcgraph.h"
3941
3942
3943 #include <wx/overlay.h>
3944
3945
3946
3947 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3948 self->AddColour(name, wxColour(red, green, blue));
3949 }
3950
3951 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3952 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3953 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3954 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3955
3956
3957 #include <wx/effects.h>
3958
3959
3960 #include "wx/renderer.h"
3961
3962
3963 SWIGINTERNINLINE PyObject*
3964 SWIG_From_bool (bool value)
3965 {
3966 return PyBool_FromLong(value ? 1 : 0);
3967 }
3968
3969
3970 #include "wx/wxPython/pseudodc.h"
3971
3972 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3973 wxRect rect;
3974 self->GetIdBounds(id, rect);
3975 return rect;
3976 }
3977 #ifdef __cplusplus
3978 extern "C" {
3979 #endif
3980 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3981 PyObject *resultobj = 0;
3982 wxGDIObject *result = 0 ;
3983
3984 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3985 {
3986 if (!wxPyCheckForApp()) SWIG_fail;
3987 PyThreadState* __tstate = wxPyBeginAllowThreads();
3988 result = (wxGDIObject *)new wxGDIObject();
3989 wxPyEndAllowThreads(__tstate);
3990 if (PyErr_Occurred()) SWIG_fail;
3991 }
3992 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3993 return resultobj;
3994 fail:
3995 return NULL;
3996 }
3997
3998
3999 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4000 PyObject *resultobj = 0;
4001 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4002 void *argp1 = 0 ;
4003 int res1 = 0 ;
4004 PyObject *swig_obj[1] ;
4005
4006 if (!args) SWIG_fail;
4007 swig_obj[0] = args;
4008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
4009 if (!SWIG_IsOK(res1)) {
4010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4011 }
4012 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4013 {
4014 PyThreadState* __tstate = wxPyBeginAllowThreads();
4015 delete arg1;
4016
4017 wxPyEndAllowThreads(__tstate);
4018 if (PyErr_Occurred()) SWIG_fail;
4019 }
4020 resultobj = SWIG_Py_Void();
4021 return resultobj;
4022 fail:
4023 return NULL;
4024 }
4025
4026
4027 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4028 PyObject *resultobj = 0;
4029 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4030 bool result;
4031 void *argp1 = 0 ;
4032 int res1 = 0 ;
4033 PyObject *swig_obj[1] ;
4034
4035 if (!args) SWIG_fail;
4036 swig_obj[0] = args;
4037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4038 if (!SWIG_IsOK(res1)) {
4039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4040 }
4041 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4042 {
4043 PyThreadState* __tstate = wxPyBeginAllowThreads();
4044 result = (bool)(arg1)->IsNull();
4045 wxPyEndAllowThreads(__tstate);
4046 if (PyErr_Occurred()) SWIG_fail;
4047 }
4048 {
4049 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4050 }
4051 return resultobj;
4052 fail:
4053 return NULL;
4054 }
4055
4056
4057 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4058 PyObject *obj;
4059 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4060 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4061 return SWIG_Py_Void();
4062 }
4063
4064 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4065 return SWIG_Python_InitShadowInstance(args);
4066 }
4067
4068 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4069 PyObject *resultobj = 0;
4070 byte arg1 = (byte) 0 ;
4071 byte arg2 = (byte) 0 ;
4072 byte arg3 = (byte) 0 ;
4073 byte arg4 = (byte) wxALPHA_OPAQUE ;
4074 wxColour *result = 0 ;
4075 unsigned char val1 ;
4076 int ecode1 = 0 ;
4077 unsigned char val2 ;
4078 int ecode2 = 0 ;
4079 unsigned char val3 ;
4080 int ecode3 = 0 ;
4081 unsigned char val4 ;
4082 int ecode4 = 0 ;
4083 PyObject * obj0 = 0 ;
4084 PyObject * obj1 = 0 ;
4085 PyObject * obj2 = 0 ;
4086 PyObject * obj3 = 0 ;
4087 char * kwnames[] = {
4088 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4089 };
4090
4091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4092 if (obj0) {
4093 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4094 if (!SWIG_IsOK(ecode1)) {
4095 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4096 }
4097 arg1 = static_cast< byte >(val1);
4098 }
4099 if (obj1) {
4100 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4101 if (!SWIG_IsOK(ecode2)) {
4102 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4103 }
4104 arg2 = static_cast< byte >(val2);
4105 }
4106 if (obj2) {
4107 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4108 if (!SWIG_IsOK(ecode3)) {
4109 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4110 }
4111 arg3 = static_cast< byte >(val3);
4112 }
4113 if (obj3) {
4114 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4115 if (!SWIG_IsOK(ecode4)) {
4116 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4117 }
4118 arg4 = static_cast< byte >(val4);
4119 }
4120 {
4121 PyThreadState* __tstate = wxPyBeginAllowThreads();
4122 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
4123 wxPyEndAllowThreads(__tstate);
4124 if (PyErr_Occurred()) SWIG_fail;
4125 }
4126 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4127 return resultobj;
4128 fail:
4129 return NULL;
4130 }
4131
4132
4133 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4134 PyObject *resultobj = 0;
4135 wxString *arg1 = 0 ;
4136 wxColour *result = 0 ;
4137 bool temp1 = false ;
4138 PyObject * obj0 = 0 ;
4139 char * kwnames[] = {
4140 (char *) "colorName", NULL
4141 };
4142
4143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4144 {
4145 arg1 = wxString_in_helper(obj0);
4146 if (arg1 == NULL) SWIG_fail;
4147 temp1 = true;
4148 }
4149 {
4150 if (!wxPyCheckForApp()) SWIG_fail;
4151 PyThreadState* __tstate = wxPyBeginAllowThreads();
4152 result = (wxColour *)new wxColour((wxString const &)*arg1);
4153 wxPyEndAllowThreads(__tstate);
4154 if (PyErr_Occurred()) SWIG_fail;
4155 }
4156 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4157 {
4158 if (temp1)
4159 delete arg1;
4160 }
4161 return resultobj;
4162 fail:
4163 {
4164 if (temp1)
4165 delete arg1;
4166 }
4167 return NULL;
4168 }
4169
4170
4171 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4172 PyObject *resultobj = 0;
4173 unsigned long arg1 ;
4174 wxColour *result = 0 ;
4175 unsigned long val1 ;
4176 int ecode1 = 0 ;
4177 PyObject * obj0 = 0 ;
4178 char * kwnames[] = {
4179 (char *) "colRGB", NULL
4180 };
4181
4182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4183 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4184 if (!SWIG_IsOK(ecode1)) {
4185 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4186 }
4187 arg1 = static_cast< unsigned long >(val1);
4188 {
4189 PyThreadState* __tstate = wxPyBeginAllowThreads();
4190 result = (wxColour *)new wxColour(arg1);
4191 wxPyEndAllowThreads(__tstate);
4192 if (PyErr_Occurred()) SWIG_fail;
4193 }
4194 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4195 return resultobj;
4196 fail:
4197 return NULL;
4198 }
4199
4200
4201 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4202 PyObject *resultobj = 0;
4203 wxColour *arg1 = (wxColour *) 0 ;
4204 void *argp1 = 0 ;
4205 int res1 = 0 ;
4206 PyObject *swig_obj[1] ;
4207
4208 if (!args) SWIG_fail;
4209 swig_obj[0] = args;
4210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4211 if (!SWIG_IsOK(res1)) {
4212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4213 }
4214 arg1 = reinterpret_cast< wxColour * >(argp1);
4215 {
4216 PyThreadState* __tstate = wxPyBeginAllowThreads();
4217 delete arg1;
4218
4219 wxPyEndAllowThreads(__tstate);
4220 if (PyErr_Occurred()) SWIG_fail;
4221 }
4222 resultobj = SWIG_Py_Void();
4223 return resultobj;
4224 fail:
4225 return NULL;
4226 }
4227
4228
4229 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4230 PyObject *resultobj = 0;
4231 wxColour *arg1 = (wxColour *) 0 ;
4232 byte result;
4233 void *argp1 = 0 ;
4234 int res1 = 0 ;
4235 PyObject *swig_obj[1] ;
4236
4237 if (!args) SWIG_fail;
4238 swig_obj[0] = args;
4239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4240 if (!SWIG_IsOK(res1)) {
4241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4242 }
4243 arg1 = reinterpret_cast< wxColour * >(argp1);
4244 {
4245 PyThreadState* __tstate = wxPyBeginAllowThreads();
4246 result = (byte)(arg1)->Red();
4247 wxPyEndAllowThreads(__tstate);
4248 if (PyErr_Occurred()) SWIG_fail;
4249 }
4250 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4251 return resultobj;
4252 fail:
4253 return NULL;
4254 }
4255
4256
4257 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4258 PyObject *resultobj = 0;
4259 wxColour *arg1 = (wxColour *) 0 ;
4260 byte result;
4261 void *argp1 = 0 ;
4262 int res1 = 0 ;
4263 PyObject *swig_obj[1] ;
4264
4265 if (!args) SWIG_fail;
4266 swig_obj[0] = args;
4267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4268 if (!SWIG_IsOK(res1)) {
4269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4270 }
4271 arg1 = reinterpret_cast< wxColour * >(argp1);
4272 {
4273 PyThreadState* __tstate = wxPyBeginAllowThreads();
4274 result = (byte)(arg1)->Green();
4275 wxPyEndAllowThreads(__tstate);
4276 if (PyErr_Occurred()) SWIG_fail;
4277 }
4278 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4279 return resultobj;
4280 fail:
4281 return NULL;
4282 }
4283
4284
4285 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4286 PyObject *resultobj = 0;
4287 wxColour *arg1 = (wxColour *) 0 ;
4288 byte result;
4289 void *argp1 = 0 ;
4290 int res1 = 0 ;
4291 PyObject *swig_obj[1] ;
4292
4293 if (!args) SWIG_fail;
4294 swig_obj[0] = args;
4295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4296 if (!SWIG_IsOK(res1)) {
4297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4298 }
4299 arg1 = reinterpret_cast< wxColour * >(argp1);
4300 {
4301 PyThreadState* __tstate = wxPyBeginAllowThreads();
4302 result = (byte)(arg1)->Blue();
4303 wxPyEndAllowThreads(__tstate);
4304 if (PyErr_Occurred()) SWIG_fail;
4305 }
4306 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4307 return resultobj;
4308 fail:
4309 return NULL;
4310 }
4311
4312
4313 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4314 PyObject *resultobj = 0;
4315 wxColour *arg1 = (wxColour *) 0 ;
4316 byte result;
4317 void *argp1 = 0 ;
4318 int res1 = 0 ;
4319 PyObject *swig_obj[1] ;
4320
4321 if (!args) SWIG_fail;
4322 swig_obj[0] = args;
4323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4324 if (!SWIG_IsOK(res1)) {
4325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4326 }
4327 arg1 = reinterpret_cast< wxColour * >(argp1);
4328 {
4329 PyThreadState* __tstate = wxPyBeginAllowThreads();
4330 result = (byte)(arg1)->Alpha();
4331 wxPyEndAllowThreads(__tstate);
4332 if (PyErr_Occurred()) SWIG_fail;
4333 }
4334 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4335 return resultobj;
4336 fail:
4337 return NULL;
4338 }
4339
4340
4341 SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4342 PyObject *resultobj = 0;
4343 wxColour *arg1 = (wxColour *) 0 ;
4344 bool result;
4345 void *argp1 = 0 ;
4346 int res1 = 0 ;
4347 PyObject *swig_obj[1] ;
4348
4349 if (!args) SWIG_fail;
4350 swig_obj[0] = args;
4351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4352 if (!SWIG_IsOK(res1)) {
4353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
4354 }
4355 arg1 = reinterpret_cast< wxColour * >(argp1);
4356 {
4357 PyThreadState* __tstate = wxPyBeginAllowThreads();
4358 result = (bool)(arg1)->IsOk();
4359 wxPyEndAllowThreads(__tstate);
4360 if (PyErr_Occurred()) SWIG_fail;
4361 }
4362 {
4363 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4364 }
4365 return resultobj;
4366 fail:
4367 return NULL;
4368 }
4369
4370
4371 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4372 PyObject *resultobj = 0;
4373 wxColour *arg1 = (wxColour *) 0 ;
4374 byte arg2 ;
4375 byte arg3 ;
4376 byte arg4 ;
4377 byte arg5 = (byte) wxALPHA_OPAQUE ;
4378 void *argp1 = 0 ;
4379 int res1 = 0 ;
4380 unsigned char val2 ;
4381 int ecode2 = 0 ;
4382 unsigned char val3 ;
4383 int ecode3 = 0 ;
4384 unsigned char val4 ;
4385 int ecode4 = 0 ;
4386 unsigned char val5 ;
4387 int ecode5 = 0 ;
4388 PyObject * obj0 = 0 ;
4389 PyObject * obj1 = 0 ;
4390 PyObject * obj2 = 0 ;
4391 PyObject * obj3 = 0 ;
4392 PyObject * obj4 = 0 ;
4393 char * kwnames[] = {
4394 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4395 };
4396
4397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4399 if (!SWIG_IsOK(res1)) {
4400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4401 }
4402 arg1 = reinterpret_cast< wxColour * >(argp1);
4403 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4404 if (!SWIG_IsOK(ecode2)) {
4405 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4406 }
4407 arg2 = static_cast< byte >(val2);
4408 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4409 if (!SWIG_IsOK(ecode3)) {
4410 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4411 }
4412 arg3 = static_cast< byte >(val3);
4413 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4414 if (!SWIG_IsOK(ecode4)) {
4415 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4416 }
4417 arg4 = static_cast< byte >(val4);
4418 if (obj4) {
4419 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4420 if (!SWIG_IsOK(ecode5)) {
4421 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4422 }
4423 arg5 = static_cast< byte >(val5);
4424 }
4425 {
4426 PyThreadState* __tstate = wxPyBeginAllowThreads();
4427 (arg1)->Set(arg2,arg3,arg4,arg5);
4428 wxPyEndAllowThreads(__tstate);
4429 if (PyErr_Occurred()) SWIG_fail;
4430 }
4431 resultobj = SWIG_Py_Void();
4432 return resultobj;
4433 fail:
4434 return NULL;
4435 }
4436
4437
4438 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4439 PyObject *resultobj = 0;
4440 wxColour *arg1 = (wxColour *) 0 ;
4441 unsigned long arg2 ;
4442 void *argp1 = 0 ;
4443 int res1 = 0 ;
4444 unsigned long val2 ;
4445 int ecode2 = 0 ;
4446 PyObject * obj0 = 0 ;
4447 PyObject * obj1 = 0 ;
4448 char * kwnames[] = {
4449 (char *) "self",(char *) "colRGB", NULL
4450 };
4451
4452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4454 if (!SWIG_IsOK(res1)) {
4455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4456 }
4457 arg1 = reinterpret_cast< wxColour * >(argp1);
4458 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4459 if (!SWIG_IsOK(ecode2)) {
4460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4461 }
4462 arg2 = static_cast< unsigned long >(val2);
4463 {
4464 PyThreadState* __tstate = wxPyBeginAllowThreads();
4465 (arg1)->Set(arg2);
4466 wxPyEndAllowThreads(__tstate);
4467 if (PyErr_Occurred()) SWIG_fail;
4468 }
4469 resultobj = SWIG_Py_Void();
4470 return resultobj;
4471 fail:
4472 return NULL;
4473 }
4474
4475
4476 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4477 PyObject *resultobj = 0;
4478 wxColour *arg1 = (wxColour *) 0 ;
4479 wxString *arg2 = 0 ;
4480 void *argp1 = 0 ;
4481 int res1 = 0 ;
4482 bool temp2 = false ;
4483 PyObject * obj0 = 0 ;
4484 PyObject * obj1 = 0 ;
4485 char * kwnames[] = {
4486 (char *) "self",(char *) "colourName", NULL
4487 };
4488
4489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",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_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4493 }
4494 arg1 = reinterpret_cast< wxColour * >(argp1);
4495 {
4496 arg2 = wxString_in_helper(obj1);
4497 if (arg2 == NULL) SWIG_fail;
4498 temp2 = true;
4499 }
4500 {
4501 PyThreadState* __tstate = wxPyBeginAllowThreads();
4502 (arg1)->Set((wxString const &)*arg2);
4503 wxPyEndAllowThreads(__tstate);
4504 if (PyErr_Occurred()) SWIG_fail;
4505 }
4506 resultobj = SWIG_Py_Void();
4507 {
4508 if (temp2)
4509 delete arg2;
4510 }
4511 return resultobj;
4512 fail:
4513 {
4514 if (temp2)
4515 delete arg2;
4516 }
4517 return NULL;
4518 }
4519
4520
4521 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4522 PyObject *resultobj = 0;
4523 wxColour *arg1 = (wxColour *) 0 ;
4524 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4525 wxString result;
4526 void *argp1 = 0 ;
4527 int res1 = 0 ;
4528 long val2 ;
4529 int ecode2 = 0 ;
4530 PyObject * obj0 = 0 ;
4531 PyObject * obj1 = 0 ;
4532 char * kwnames[] = {
4533 (char *) "self",(char *) "flags", NULL
4534 };
4535
4536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4538 if (!SWIG_IsOK(res1)) {
4539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4540 }
4541 arg1 = reinterpret_cast< wxColour * >(argp1);
4542 if (obj1) {
4543 ecode2 = SWIG_AsVal_long(obj1, &val2);
4544 if (!SWIG_IsOK(ecode2)) {
4545 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4546 }
4547 arg2 = static_cast< long >(val2);
4548 }
4549 {
4550 PyThreadState* __tstate = wxPyBeginAllowThreads();
4551 result = ((wxColour const *)arg1)->GetAsString(arg2);
4552 wxPyEndAllowThreads(__tstate);
4553 if (PyErr_Occurred()) SWIG_fail;
4554 }
4555 {
4556 #if wxUSE_UNICODE
4557 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4558 #else
4559 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4560 #endif
4561 }
4562 return resultobj;
4563 fail:
4564 return NULL;
4565 }
4566
4567
4568 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4569 PyObject *resultobj = 0;
4570 wxColour *arg1 = (wxColour *) 0 ;
4571 long result;
4572 void *argp1 = 0 ;
4573 int res1 = 0 ;
4574 PyObject *swig_obj[1] ;
4575
4576 if (!args) SWIG_fail;
4577 swig_obj[0] = args;
4578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4579 if (!SWIG_IsOK(res1)) {
4580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4581 }
4582 arg1 = reinterpret_cast< wxColour * >(argp1);
4583 {
4584 PyThreadState* __tstate = wxPyBeginAllowThreads();
4585 result = (long)((wxColour const *)arg1)->GetPixel();
4586 wxPyEndAllowThreads(__tstate);
4587 if (PyErr_Occurred()) SWIG_fail;
4588 }
4589 resultobj = SWIG_From_long(static_cast< long >(result));
4590 return resultobj;
4591 fail:
4592 return NULL;
4593 }
4594
4595
4596 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4597 PyObject *resultobj = 0;
4598 wxColour *arg1 = (wxColour *) 0 ;
4599 PyObject *arg2 = (PyObject *) 0 ;
4600 bool result;
4601 void *argp1 = 0 ;
4602 int res1 = 0 ;
4603 PyObject * obj0 = 0 ;
4604 PyObject * obj1 = 0 ;
4605 char * kwnames[] = {
4606 (char *) "self",(char *) "other", NULL
4607 };
4608
4609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4611 if (!SWIG_IsOK(res1)) {
4612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4613 }
4614 arg1 = reinterpret_cast< wxColour * >(argp1);
4615 arg2 = obj1;
4616 {
4617 result = (bool)wxColour___eq__(arg1,arg2);
4618 if (PyErr_Occurred()) SWIG_fail;
4619 }
4620 {
4621 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4622 }
4623 return resultobj;
4624 fail:
4625 return NULL;
4626 }
4627
4628
4629 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4630 PyObject *resultobj = 0;
4631 wxColour *arg1 = (wxColour *) 0 ;
4632 PyObject *arg2 = (PyObject *) 0 ;
4633 bool result;
4634 void *argp1 = 0 ;
4635 int res1 = 0 ;
4636 PyObject * obj0 = 0 ;
4637 PyObject * obj1 = 0 ;
4638 char * kwnames[] = {
4639 (char *) "self",(char *) "other", NULL
4640 };
4641
4642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4644 if (!SWIG_IsOK(res1)) {
4645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4646 }
4647 arg1 = reinterpret_cast< wxColour * >(argp1);
4648 arg2 = obj1;
4649 {
4650 result = (bool)wxColour___ne__(arg1,arg2);
4651 if (PyErr_Occurred()) SWIG_fail;
4652 }
4653 {
4654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4655 }
4656 return resultobj;
4657 fail:
4658 return NULL;
4659 }
4660
4661
4662 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4663 PyObject *resultobj = 0;
4664 wxColour *arg1 = (wxColour *) 0 ;
4665 bool arg2 = (bool) false ;
4666 PyObject *result = 0 ;
4667 void *argp1 = 0 ;
4668 int res1 = 0 ;
4669 bool val2 ;
4670 int ecode2 = 0 ;
4671 PyObject * obj0 = 0 ;
4672 PyObject * obj1 = 0 ;
4673 char * kwnames[] = {
4674 (char *) "self",(char *) "includeAlpha", NULL
4675 };
4676
4677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4679 if (!SWIG_IsOK(res1)) {
4680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4681 }
4682 arg1 = reinterpret_cast< wxColour * >(argp1);
4683 if (obj1) {
4684 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4685 if (!SWIG_IsOK(ecode2)) {
4686 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4687 }
4688 arg2 = static_cast< bool >(val2);
4689 }
4690 {
4691 result = (PyObject *)wxColour_Get(arg1,arg2);
4692 if (PyErr_Occurred()) SWIG_fail;
4693 }
4694 resultobj = result;
4695 return resultobj;
4696 fail:
4697 return NULL;
4698 }
4699
4700
4701 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4702 PyObject *resultobj = 0;
4703 wxColour *arg1 = (wxColour *) 0 ;
4704 unsigned long result;
4705 void *argp1 = 0 ;
4706 int res1 = 0 ;
4707 PyObject *swig_obj[1] ;
4708
4709 if (!args) SWIG_fail;
4710 swig_obj[0] = args;
4711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4712 if (!SWIG_IsOK(res1)) {
4713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4714 }
4715 arg1 = reinterpret_cast< wxColour * >(argp1);
4716 {
4717 result = (unsigned long)wxColour_GetRGB(arg1);
4718 if (PyErr_Occurred()) SWIG_fail;
4719 }
4720 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4721 return resultobj;
4722 fail:
4723 return NULL;
4724 }
4725
4726
4727 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4728 PyObject *obj;
4729 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4730 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4731 return SWIG_Py_Void();
4732 }
4733
4734 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4735 return SWIG_Python_InitShadowInstance(args);
4736 }
4737
4738 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4739 PyObject *resultobj = 0;
4740 int arg1 ;
4741 unsigned char *arg2 = (unsigned char *) 0 ;
4742 unsigned char *arg3 = (unsigned char *) 0 ;
4743 unsigned char *arg4 = (unsigned char *) 0 ;
4744 wxPalette *result = 0 ;
4745 int val1 ;
4746 int ecode1 = 0 ;
4747 void *argp2 = 0 ;
4748 int res2 = 0 ;
4749 void *argp3 = 0 ;
4750 int res3 = 0 ;
4751 void *argp4 = 0 ;
4752 int res4 = 0 ;
4753 PyObject * obj0 = 0 ;
4754 PyObject * obj1 = 0 ;
4755 PyObject * obj2 = 0 ;
4756 PyObject * obj3 = 0 ;
4757 char * kwnames[] = {
4758 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4759 };
4760
4761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4762 ecode1 = SWIG_AsVal_int(obj0, &val1);
4763 if (!SWIG_IsOK(ecode1)) {
4764 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4765 }
4766 arg1 = static_cast< int >(val1);
4767 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4768 if (!SWIG_IsOK(res2)) {
4769 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4770 }
4771 arg2 = reinterpret_cast< unsigned char * >(argp2);
4772 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4773 if (!SWIG_IsOK(res3)) {
4774 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4775 }
4776 arg3 = reinterpret_cast< unsigned char * >(argp3);
4777 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4778 if (!SWIG_IsOK(res4)) {
4779 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4780 }
4781 arg4 = reinterpret_cast< unsigned char * >(argp4);
4782 {
4783 if (!wxPyCheckForApp()) SWIG_fail;
4784 PyThreadState* __tstate = wxPyBeginAllowThreads();
4785 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4786 wxPyEndAllowThreads(__tstate);
4787 if (PyErr_Occurred()) SWIG_fail;
4788 }
4789 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4790 return resultobj;
4791 fail:
4792 return NULL;
4793 }
4794
4795
4796 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4797 PyObject *resultobj = 0;
4798 wxPalette *arg1 = (wxPalette *) 0 ;
4799 void *argp1 = 0 ;
4800 int res1 = 0 ;
4801 PyObject *swig_obj[1] ;
4802
4803 if (!args) SWIG_fail;
4804 swig_obj[0] = args;
4805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4806 if (!SWIG_IsOK(res1)) {
4807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4808 }
4809 arg1 = reinterpret_cast< wxPalette * >(argp1);
4810 {
4811 PyThreadState* __tstate = wxPyBeginAllowThreads();
4812 delete arg1;
4813
4814 wxPyEndAllowThreads(__tstate);
4815 if (PyErr_Occurred()) SWIG_fail;
4816 }
4817 resultobj = SWIG_Py_Void();
4818 return resultobj;
4819 fail:
4820 return NULL;
4821 }
4822
4823
4824 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4825 PyObject *resultobj = 0;
4826 wxPalette *arg1 = (wxPalette *) 0 ;
4827 byte arg2 ;
4828 byte arg3 ;
4829 byte arg4 ;
4830 int result;
4831 void *argp1 = 0 ;
4832 int res1 = 0 ;
4833 unsigned char val2 ;
4834 int ecode2 = 0 ;
4835 unsigned char val3 ;
4836 int ecode3 = 0 ;
4837 unsigned char val4 ;
4838 int ecode4 = 0 ;
4839 PyObject * obj0 = 0 ;
4840 PyObject * obj1 = 0 ;
4841 PyObject * obj2 = 0 ;
4842 PyObject * obj3 = 0 ;
4843 char * kwnames[] = {
4844 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4845 };
4846
4847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4849 if (!SWIG_IsOK(res1)) {
4850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4851 }
4852 arg1 = reinterpret_cast< wxPalette * >(argp1);
4853 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4854 if (!SWIG_IsOK(ecode2)) {
4855 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4856 }
4857 arg2 = static_cast< byte >(val2);
4858 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4859 if (!SWIG_IsOK(ecode3)) {
4860 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4861 }
4862 arg3 = static_cast< byte >(val3);
4863 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4864 if (!SWIG_IsOK(ecode4)) {
4865 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4866 }
4867 arg4 = static_cast< byte >(val4);
4868 {
4869 PyThreadState* __tstate = wxPyBeginAllowThreads();
4870 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4871 wxPyEndAllowThreads(__tstate);
4872 if (PyErr_Occurred()) SWIG_fail;
4873 }
4874 resultobj = SWIG_From_int(static_cast< int >(result));
4875 return resultobj;
4876 fail:
4877 return NULL;
4878 }
4879
4880
4881 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4882 PyObject *resultobj = 0;
4883 wxPalette *arg1 = (wxPalette *) 0 ;
4884 int arg2 ;
4885 byte *arg3 = (byte *) 0 ;
4886 byte *arg4 = (byte *) 0 ;
4887 byte *arg5 = (byte *) 0 ;
4888 bool result;
4889 void *argp1 = 0 ;
4890 int res1 = 0 ;
4891 int val2 ;
4892 int ecode2 = 0 ;
4893 byte temp3 ;
4894 int res3 = SWIG_TMPOBJ ;
4895 byte temp4 ;
4896 int res4 = SWIG_TMPOBJ ;
4897 byte temp5 ;
4898 int res5 = SWIG_TMPOBJ ;
4899 PyObject * obj0 = 0 ;
4900 PyObject * obj1 = 0 ;
4901 char * kwnames[] = {
4902 (char *) "self",(char *) "pixel", NULL
4903 };
4904
4905 arg3 = &temp3;
4906 arg4 = &temp4;
4907 arg5 = &temp5;
4908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4910 if (!SWIG_IsOK(res1)) {
4911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4912 }
4913 arg1 = reinterpret_cast< wxPalette * >(argp1);
4914 ecode2 = SWIG_AsVal_int(obj1, &val2);
4915 if (!SWIG_IsOK(ecode2)) {
4916 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4917 }
4918 arg2 = static_cast< int >(val2);
4919 {
4920 PyThreadState* __tstate = wxPyBeginAllowThreads();
4921 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4922 wxPyEndAllowThreads(__tstate);
4923 if (PyErr_Occurred()) SWIG_fail;
4924 }
4925 {
4926 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4927 }
4928 if (SWIG_IsTmpObj(res3)) {
4929 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4930 } else {
4931 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4932 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4933 }
4934 if (SWIG_IsTmpObj(res4)) {
4935 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4936 } else {
4937 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4938 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4939 }
4940 if (SWIG_IsTmpObj(res5)) {
4941 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4942 } else {
4943 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4944 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4945 }
4946 return resultobj;
4947 fail:
4948 return NULL;
4949 }
4950
4951
4952 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4953 PyObject *resultobj = 0;
4954 wxPalette *arg1 = (wxPalette *) 0 ;
4955 int result;
4956 void *argp1 = 0 ;
4957 int res1 = 0 ;
4958 PyObject *swig_obj[1] ;
4959
4960 if (!args) SWIG_fail;
4961 swig_obj[0] = args;
4962 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4963 if (!SWIG_IsOK(res1)) {
4964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4965 }
4966 arg1 = reinterpret_cast< wxPalette * >(argp1);
4967 {
4968 PyThreadState* __tstate = wxPyBeginAllowThreads();
4969 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4970 wxPyEndAllowThreads(__tstate);
4971 if (PyErr_Occurred()) SWIG_fail;
4972 }
4973 resultobj = SWIG_From_int(static_cast< int >(result));
4974 return resultobj;
4975 fail:
4976 return NULL;
4977 }
4978
4979
4980 SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4981 PyObject *resultobj = 0;
4982 wxPalette *arg1 = (wxPalette *) 0 ;
4983 bool result;
4984 void *argp1 = 0 ;
4985 int res1 = 0 ;
4986 PyObject *swig_obj[1] ;
4987
4988 if (!args) SWIG_fail;
4989 swig_obj[0] = args;
4990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4991 if (!SWIG_IsOK(res1)) {
4992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
4993 }
4994 arg1 = reinterpret_cast< wxPalette * >(argp1);
4995 {
4996 PyThreadState* __tstate = wxPyBeginAllowThreads();
4997 result = (bool)(arg1)->IsOk();
4998 wxPyEndAllowThreads(__tstate);
4999 if (PyErr_Occurred()) SWIG_fail;
5000 }
5001 {
5002 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5003 }
5004 return resultobj;
5005 fail:
5006 return NULL;
5007 }
5008
5009
5010 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5011 PyObject *obj;
5012 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5013 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
5014 return SWIG_Py_Void();
5015 }
5016
5017 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5018 return SWIG_Python_InitShadowInstance(args);
5019 }
5020
5021 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5022 PyObject *resultobj = 0;
5023 wxColour *arg1 = 0 ;
5024 int arg2 = (int) 1 ;
5025 int arg3 = (int) wxSOLID ;
5026 wxPen *result = 0 ;
5027 wxColour temp1 ;
5028 int val2 ;
5029 int ecode2 = 0 ;
5030 int val3 ;
5031 int ecode3 = 0 ;
5032 PyObject * obj0 = 0 ;
5033 PyObject * obj1 = 0 ;
5034 PyObject * obj2 = 0 ;
5035 char * kwnames[] = {
5036 (char *) "colour",(char *) "width",(char *) "style", NULL
5037 };
5038
5039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5040 {
5041 arg1 = &temp1;
5042 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5043 }
5044 if (obj1) {
5045 ecode2 = SWIG_AsVal_int(obj1, &val2);
5046 if (!SWIG_IsOK(ecode2)) {
5047 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5048 }
5049 arg2 = static_cast< int >(val2);
5050 }
5051 if (obj2) {
5052 ecode3 = SWIG_AsVal_int(obj2, &val3);
5053 if (!SWIG_IsOK(ecode3)) {
5054 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5055 }
5056 arg3 = static_cast< int >(val3);
5057 }
5058 {
5059 if (!wxPyCheckForApp()) SWIG_fail;
5060 PyThreadState* __tstate = wxPyBeginAllowThreads();
5061 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5062 wxPyEndAllowThreads(__tstate);
5063 if (PyErr_Occurred()) SWIG_fail;
5064 }
5065 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5066 return resultobj;
5067 fail:
5068 return NULL;
5069 }
5070
5071
5072 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5073 PyObject *resultobj = 0;
5074 wxPen *arg1 = (wxPen *) 0 ;
5075 void *argp1 = 0 ;
5076 int res1 = 0 ;
5077 PyObject *swig_obj[1] ;
5078
5079 if (!args) SWIG_fail;
5080 swig_obj[0] = args;
5081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5082 if (!SWIG_IsOK(res1)) {
5083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5084 }
5085 arg1 = reinterpret_cast< wxPen * >(argp1);
5086 {
5087 PyThreadState* __tstate = wxPyBeginAllowThreads();
5088 delete arg1;
5089
5090 wxPyEndAllowThreads(__tstate);
5091 if (PyErr_Occurred()) SWIG_fail;
5092 }
5093 resultobj = SWIG_Py_Void();
5094 return resultobj;
5095 fail:
5096 return NULL;
5097 }
5098
5099
5100 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5101 PyObject *resultobj = 0;
5102 wxPen *arg1 = (wxPen *) 0 ;
5103 int result;
5104 void *argp1 = 0 ;
5105 int res1 = 0 ;
5106 PyObject *swig_obj[1] ;
5107
5108 if (!args) SWIG_fail;
5109 swig_obj[0] = args;
5110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5111 if (!SWIG_IsOK(res1)) {
5112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5113 }
5114 arg1 = reinterpret_cast< wxPen * >(argp1);
5115 {
5116 PyThreadState* __tstate = wxPyBeginAllowThreads();
5117 result = (int)(arg1)->GetCap();
5118 wxPyEndAllowThreads(__tstate);
5119 if (PyErr_Occurred()) SWIG_fail;
5120 }
5121 resultobj = SWIG_From_int(static_cast< int >(result));
5122 return resultobj;
5123 fail:
5124 return NULL;
5125 }
5126
5127
5128 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5129 PyObject *resultobj = 0;
5130 wxPen *arg1 = (wxPen *) 0 ;
5131 wxColour result;
5132 void *argp1 = 0 ;
5133 int res1 = 0 ;
5134 PyObject *swig_obj[1] ;
5135
5136 if (!args) SWIG_fail;
5137 swig_obj[0] = args;
5138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5139 if (!SWIG_IsOK(res1)) {
5140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5141 }
5142 arg1 = reinterpret_cast< wxPen * >(argp1);
5143 {
5144 PyThreadState* __tstate = wxPyBeginAllowThreads();
5145 result = (arg1)->GetColour();
5146 wxPyEndAllowThreads(__tstate);
5147 if (PyErr_Occurred()) SWIG_fail;
5148 }
5149 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5150 return resultobj;
5151 fail:
5152 return NULL;
5153 }
5154
5155
5156 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5157 PyObject *resultobj = 0;
5158 wxPen *arg1 = (wxPen *) 0 ;
5159 int result;
5160 void *argp1 = 0 ;
5161 int res1 = 0 ;
5162 PyObject *swig_obj[1] ;
5163
5164 if (!args) SWIG_fail;
5165 swig_obj[0] = args;
5166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5167 if (!SWIG_IsOK(res1)) {
5168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5169 }
5170 arg1 = reinterpret_cast< wxPen * >(argp1);
5171 {
5172 PyThreadState* __tstate = wxPyBeginAllowThreads();
5173 result = (int)(arg1)->GetJoin();
5174 wxPyEndAllowThreads(__tstate);
5175 if (PyErr_Occurred()) SWIG_fail;
5176 }
5177 resultobj = SWIG_From_int(static_cast< int >(result));
5178 return resultobj;
5179 fail:
5180 return NULL;
5181 }
5182
5183
5184 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5185 PyObject *resultobj = 0;
5186 wxPen *arg1 = (wxPen *) 0 ;
5187 int result;
5188 void *argp1 = 0 ;
5189 int res1 = 0 ;
5190 PyObject *swig_obj[1] ;
5191
5192 if (!args) SWIG_fail;
5193 swig_obj[0] = args;
5194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5195 if (!SWIG_IsOK(res1)) {
5196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5197 }
5198 arg1 = reinterpret_cast< wxPen * >(argp1);
5199 {
5200 PyThreadState* __tstate = wxPyBeginAllowThreads();
5201 result = (int)(arg1)->GetStyle();
5202 wxPyEndAllowThreads(__tstate);
5203 if (PyErr_Occurred()) SWIG_fail;
5204 }
5205 resultobj = SWIG_From_int(static_cast< int >(result));
5206 return resultobj;
5207 fail:
5208 return NULL;
5209 }
5210
5211
5212 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5213 PyObject *resultobj = 0;
5214 wxPen *arg1 = (wxPen *) 0 ;
5215 int result;
5216 void *argp1 = 0 ;
5217 int res1 = 0 ;
5218 PyObject *swig_obj[1] ;
5219
5220 if (!args) SWIG_fail;
5221 swig_obj[0] = args;
5222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5223 if (!SWIG_IsOK(res1)) {
5224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5225 }
5226 arg1 = reinterpret_cast< wxPen * >(argp1);
5227 {
5228 PyThreadState* __tstate = wxPyBeginAllowThreads();
5229 result = (int)(arg1)->GetWidth();
5230 wxPyEndAllowThreads(__tstate);
5231 if (PyErr_Occurred()) SWIG_fail;
5232 }
5233 resultobj = SWIG_From_int(static_cast< int >(result));
5234 return resultobj;
5235 fail:
5236 return NULL;
5237 }
5238
5239
5240 SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5241 PyObject *resultobj = 0;
5242 wxPen *arg1 = (wxPen *) 0 ;
5243 bool result;
5244 void *argp1 = 0 ;
5245 int res1 = 0 ;
5246 PyObject *swig_obj[1] ;
5247
5248 if (!args) SWIG_fail;
5249 swig_obj[0] = args;
5250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5251 if (!SWIG_IsOK(res1)) {
5252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
5253 }
5254 arg1 = reinterpret_cast< wxPen * >(argp1);
5255 {
5256 PyThreadState* __tstate = wxPyBeginAllowThreads();
5257 result = (bool)(arg1)->IsOk();
5258 wxPyEndAllowThreads(__tstate);
5259 if (PyErr_Occurred()) SWIG_fail;
5260 }
5261 {
5262 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5263 }
5264 return resultobj;
5265 fail:
5266 return NULL;
5267 }
5268
5269
5270 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5271 PyObject *resultobj = 0;
5272 wxPen *arg1 = (wxPen *) 0 ;
5273 int arg2 ;
5274 void *argp1 = 0 ;
5275 int res1 = 0 ;
5276 int val2 ;
5277 int ecode2 = 0 ;
5278 PyObject * obj0 = 0 ;
5279 PyObject * obj1 = 0 ;
5280 char * kwnames[] = {
5281 (char *) "self",(char *) "cap_style", NULL
5282 };
5283
5284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5286 if (!SWIG_IsOK(res1)) {
5287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5288 }
5289 arg1 = reinterpret_cast< wxPen * >(argp1);
5290 ecode2 = SWIG_AsVal_int(obj1, &val2);
5291 if (!SWIG_IsOK(ecode2)) {
5292 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5293 }
5294 arg2 = static_cast< int >(val2);
5295 {
5296 PyThreadState* __tstate = wxPyBeginAllowThreads();
5297 (arg1)->SetCap(arg2);
5298 wxPyEndAllowThreads(__tstate);
5299 if (PyErr_Occurred()) SWIG_fail;
5300 }
5301 resultobj = SWIG_Py_Void();
5302 return resultobj;
5303 fail:
5304 return NULL;
5305 }
5306
5307
5308 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5309 PyObject *resultobj = 0;
5310 wxPen *arg1 = (wxPen *) 0 ;
5311 wxColour *arg2 = 0 ;
5312 void *argp1 = 0 ;
5313 int res1 = 0 ;
5314 wxColour temp2 ;
5315 PyObject * obj0 = 0 ;
5316 PyObject * obj1 = 0 ;
5317 char * kwnames[] = {
5318 (char *) "self",(char *) "colour", NULL
5319 };
5320
5321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",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_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5325 }
5326 arg1 = reinterpret_cast< wxPen * >(argp1);
5327 {
5328 arg2 = &temp2;
5329 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5330 }
5331 {
5332 PyThreadState* __tstate = wxPyBeginAllowThreads();
5333 (arg1)->SetColour(*arg2);
5334 wxPyEndAllowThreads(__tstate);
5335 if (PyErr_Occurred()) SWIG_fail;
5336 }
5337 resultobj = SWIG_Py_Void();
5338 return resultobj;
5339 fail:
5340 return NULL;
5341 }
5342
5343
5344 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5345 PyObject *resultobj = 0;
5346 wxPen *arg1 = (wxPen *) 0 ;
5347 int arg2 ;
5348 void *argp1 = 0 ;
5349 int res1 = 0 ;
5350 int val2 ;
5351 int ecode2 = 0 ;
5352 PyObject * obj0 = 0 ;
5353 PyObject * obj1 = 0 ;
5354 char * kwnames[] = {
5355 (char *) "self",(char *) "join_style", NULL
5356 };
5357
5358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",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_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5362 }
5363 arg1 = reinterpret_cast< wxPen * >(argp1);
5364 ecode2 = SWIG_AsVal_int(obj1, &val2);
5365 if (!SWIG_IsOK(ecode2)) {
5366 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5367 }
5368 arg2 = static_cast< int >(val2);
5369 {
5370 PyThreadState* __tstate = wxPyBeginAllowThreads();
5371 (arg1)->SetJoin(arg2);
5372 wxPyEndAllowThreads(__tstate);
5373 if (PyErr_Occurred()) SWIG_fail;
5374 }
5375 resultobj = SWIG_Py_Void();
5376 return resultobj;
5377 fail:
5378 return NULL;
5379 }
5380
5381
5382 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5383 PyObject *resultobj = 0;
5384 wxPen *arg1 = (wxPen *) 0 ;
5385 int arg2 ;
5386 void *argp1 = 0 ;
5387 int res1 = 0 ;
5388 int val2 ;
5389 int ecode2 = 0 ;
5390 PyObject * obj0 = 0 ;
5391 PyObject * obj1 = 0 ;
5392 char * kwnames[] = {
5393 (char *) "self",(char *) "style", NULL
5394 };
5395
5396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5398 if (!SWIG_IsOK(res1)) {
5399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5400 }
5401 arg1 = reinterpret_cast< wxPen * >(argp1);
5402 ecode2 = SWIG_AsVal_int(obj1, &val2);
5403 if (!SWIG_IsOK(ecode2)) {
5404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5405 }
5406 arg2 = static_cast< int >(val2);
5407 {
5408 PyThreadState* __tstate = wxPyBeginAllowThreads();
5409 (arg1)->SetStyle(arg2);
5410 wxPyEndAllowThreads(__tstate);
5411 if (PyErr_Occurred()) SWIG_fail;
5412 }
5413 resultobj = SWIG_Py_Void();
5414 return resultobj;
5415 fail:
5416 return NULL;
5417 }
5418
5419
5420 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5421 PyObject *resultobj = 0;
5422 wxPen *arg1 = (wxPen *) 0 ;
5423 int arg2 ;
5424 void *argp1 = 0 ;
5425 int res1 = 0 ;
5426 int val2 ;
5427 int ecode2 = 0 ;
5428 PyObject * obj0 = 0 ;
5429 PyObject * obj1 = 0 ;
5430 char * kwnames[] = {
5431 (char *) "self",(char *) "width", NULL
5432 };
5433
5434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5436 if (!SWIG_IsOK(res1)) {
5437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5438 }
5439 arg1 = reinterpret_cast< wxPen * >(argp1);
5440 ecode2 = SWIG_AsVal_int(obj1, &val2);
5441 if (!SWIG_IsOK(ecode2)) {
5442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5443 }
5444 arg2 = static_cast< int >(val2);
5445 {
5446 PyThreadState* __tstate = wxPyBeginAllowThreads();
5447 (arg1)->SetWidth(arg2);
5448 wxPyEndAllowThreads(__tstate);
5449 if (PyErr_Occurred()) SWIG_fail;
5450 }
5451 resultobj = SWIG_Py_Void();
5452 return resultobj;
5453 fail:
5454 return NULL;
5455 }
5456
5457
5458 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5459 PyObject *resultobj = 0;
5460 wxPen *arg1 = (wxPen *) 0 ;
5461 int arg2 ;
5462 wxDash *arg3 = (wxDash *) 0 ;
5463 void *argp1 = 0 ;
5464 int res1 = 0 ;
5465 PyObject * obj0 = 0 ;
5466 PyObject * obj1 = 0 ;
5467 char * kwnames[] = {
5468 (char *) "self",(char *) "dashes", NULL
5469 };
5470
5471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",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_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5475 }
5476 arg1 = reinterpret_cast< wxPen * >(argp1);
5477 {
5478 arg2 = PyList_Size(obj1);
5479 arg3 = (wxDash*)byte_LIST_helper(obj1);
5480 if (arg3 == NULL) SWIG_fail;
5481 }
5482 {
5483 PyThreadState* __tstate = wxPyBeginAllowThreads();
5484 (arg1)->SetDashes(arg2,arg3);
5485 wxPyEndAllowThreads(__tstate);
5486 if (PyErr_Occurred()) SWIG_fail;
5487 }
5488 resultobj = SWIG_Py_Void();
5489 {
5490 if (arg3) delete [] arg3;
5491 }
5492 return resultobj;
5493 fail:
5494 {
5495 if (arg3) delete [] arg3;
5496 }
5497 return NULL;
5498 }
5499
5500
5501 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5502 PyObject *resultobj = 0;
5503 wxPen *arg1 = (wxPen *) 0 ;
5504 PyObject *result = 0 ;
5505 void *argp1 = 0 ;
5506 int res1 = 0 ;
5507 PyObject *swig_obj[1] ;
5508
5509 if (!args) SWIG_fail;
5510 swig_obj[0] = args;
5511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5512 if (!SWIG_IsOK(res1)) {
5513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5514 }
5515 arg1 = reinterpret_cast< wxPen * >(argp1);
5516 {
5517 PyThreadState* __tstate = wxPyBeginAllowThreads();
5518 result = (PyObject *)wxPen_GetDashes(arg1);
5519 wxPyEndAllowThreads(__tstate);
5520 if (PyErr_Occurred()) SWIG_fail;
5521 }
5522 resultobj = result;
5523 return resultobj;
5524 fail:
5525 return NULL;
5526 }
5527
5528
5529 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5530 PyObject *resultobj = 0;
5531 wxPen *arg1 = (wxPen *) 0 ;
5532 PyObject *arg2 = (PyObject *) 0 ;
5533 PyObject *arg3 = (PyObject *) 0 ;
5534 void *argp1 = 0 ;
5535 int res1 = 0 ;
5536 PyObject * obj0 = 0 ;
5537 PyObject * obj1 = 0 ;
5538 PyObject * obj2 = 0 ;
5539 char * kwnames[] = {
5540 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5541 };
5542
5543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5545 if (!SWIG_IsOK(res1)) {
5546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5547 }
5548 arg1 = reinterpret_cast< wxPen * >(argp1);
5549 arg2 = obj1;
5550 arg3 = obj2;
5551 {
5552 PyThreadState* __tstate = wxPyBeginAllowThreads();
5553 wxPen__SetDashes(arg1,arg2,arg3);
5554 wxPyEndAllowThreads(__tstate);
5555 if (PyErr_Occurred()) SWIG_fail;
5556 }
5557 resultobj = SWIG_Py_Void();
5558 return resultobj;
5559 fail:
5560 return NULL;
5561 }
5562
5563
5564 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5565 PyObject *resultobj = 0;
5566 wxPen *arg1 = (wxPen *) 0 ;
5567 wxPen *arg2 = (wxPen *) 0 ;
5568 bool result;
5569 void *argp1 = 0 ;
5570 int res1 = 0 ;
5571 void *argp2 = 0 ;
5572 int res2 = 0 ;
5573 PyObject * obj0 = 0 ;
5574 PyObject * obj1 = 0 ;
5575 char * kwnames[] = {
5576 (char *) "self",(char *) "other", NULL
5577 };
5578
5579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5581 if (!SWIG_IsOK(res1)) {
5582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5583 }
5584 arg1 = reinterpret_cast< wxPen * >(argp1);
5585 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5586 if (!SWIG_IsOK(res2)) {
5587 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5588 }
5589 arg2 = reinterpret_cast< wxPen * >(argp2);
5590 {
5591 PyThreadState* __tstate = wxPyBeginAllowThreads();
5592 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5593 wxPyEndAllowThreads(__tstate);
5594 if (PyErr_Occurred()) SWIG_fail;
5595 }
5596 {
5597 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5598 }
5599 return resultobj;
5600 fail:
5601 return NULL;
5602 }
5603
5604
5605 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5606 PyObject *resultobj = 0;
5607 wxPen *arg1 = (wxPen *) 0 ;
5608 wxPen *arg2 = (wxPen *) 0 ;
5609 bool result;
5610 void *argp1 = 0 ;
5611 int res1 = 0 ;
5612 void *argp2 = 0 ;
5613 int res2 = 0 ;
5614 PyObject * obj0 = 0 ;
5615 PyObject * obj1 = 0 ;
5616 char * kwnames[] = {
5617 (char *) "self",(char *) "other", NULL
5618 };
5619
5620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5622 if (!SWIG_IsOK(res1)) {
5623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5624 }
5625 arg1 = reinterpret_cast< wxPen * >(argp1);
5626 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5627 if (!SWIG_IsOK(res2)) {
5628 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5629 }
5630 arg2 = reinterpret_cast< wxPen * >(argp2);
5631 {
5632 PyThreadState* __tstate = wxPyBeginAllowThreads();
5633 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5634 wxPyEndAllowThreads(__tstate);
5635 if (PyErr_Occurred()) SWIG_fail;
5636 }
5637 {
5638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5639 }
5640 return resultobj;
5641 fail:
5642 return NULL;
5643 }
5644
5645
5646 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5647 PyObject *obj;
5648 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5649 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5650 return SWIG_Py_Void();
5651 }
5652
5653 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5654 return SWIG_Python_InitShadowInstance(args);
5655 }
5656
5657 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5658 PyObject *resultobj = 0;
5659 wxColour *arg1 = 0 ;
5660 int arg2 = (int) wxSOLID ;
5661 wxBrush *result = 0 ;
5662 wxColour temp1 ;
5663 int val2 ;
5664 int ecode2 = 0 ;
5665 PyObject * obj0 = 0 ;
5666 PyObject * obj1 = 0 ;
5667 char * kwnames[] = {
5668 (char *) "colour",(char *) "style", NULL
5669 };
5670
5671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5672 {
5673 arg1 = &temp1;
5674 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5675 }
5676 if (obj1) {
5677 ecode2 = SWIG_AsVal_int(obj1, &val2);
5678 if (!SWIG_IsOK(ecode2)) {
5679 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5680 }
5681 arg2 = static_cast< int >(val2);
5682 }
5683 {
5684 if (!wxPyCheckForApp()) SWIG_fail;
5685 PyThreadState* __tstate = wxPyBeginAllowThreads();
5686 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5687 wxPyEndAllowThreads(__tstate);
5688 if (PyErr_Occurred()) SWIG_fail;
5689 }
5690 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5691 return resultobj;
5692 fail:
5693 return NULL;
5694 }
5695
5696
5697 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5698 PyObject *resultobj = 0;
5699 wxBitmap *arg1 = 0 ;
5700 wxBrush *result = 0 ;
5701 void *argp1 = 0 ;
5702 int res1 = 0 ;
5703 PyObject * obj0 = 0 ;
5704 char * kwnames[] = {
5705 (char *) "stippleBitmap", NULL
5706 };
5707
5708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5709 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5710 if (!SWIG_IsOK(res1)) {
5711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5712 }
5713 if (!argp1) {
5714 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5715 }
5716 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5717 {
5718 if (!wxPyCheckForApp()) SWIG_fail;
5719 PyThreadState* __tstate = wxPyBeginAllowThreads();
5720 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5721 wxPyEndAllowThreads(__tstate);
5722 if (PyErr_Occurred()) SWIG_fail;
5723 }
5724 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5725 return resultobj;
5726 fail:
5727 return NULL;
5728 }
5729
5730
5731 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5732 PyObject *resultobj = 0;
5733 wxBrush *arg1 = (wxBrush *) 0 ;
5734 void *argp1 = 0 ;
5735 int res1 = 0 ;
5736 PyObject *swig_obj[1] ;
5737
5738 if (!args) SWIG_fail;
5739 swig_obj[0] = args;
5740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5741 if (!SWIG_IsOK(res1)) {
5742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5743 }
5744 arg1 = reinterpret_cast< wxBrush * >(argp1);
5745 {
5746 PyThreadState* __tstate = wxPyBeginAllowThreads();
5747 delete arg1;
5748
5749 wxPyEndAllowThreads(__tstate);
5750 if (PyErr_Occurred()) SWIG_fail;
5751 }
5752 resultobj = SWIG_Py_Void();
5753 return resultobj;
5754 fail:
5755 return NULL;
5756 }
5757
5758
5759 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5760 PyObject *resultobj = 0;
5761 wxBrush *arg1 = (wxBrush *) 0 ;
5762 wxColour *arg2 = 0 ;
5763 void *argp1 = 0 ;
5764 int res1 = 0 ;
5765 wxColour temp2 ;
5766 PyObject * obj0 = 0 ;
5767 PyObject * obj1 = 0 ;
5768 char * kwnames[] = {
5769 (char *) "self",(char *) "col", NULL
5770 };
5771
5772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5774 if (!SWIG_IsOK(res1)) {
5775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5776 }
5777 arg1 = reinterpret_cast< wxBrush * >(argp1);
5778 {
5779 arg2 = &temp2;
5780 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5781 }
5782 {
5783 PyThreadState* __tstate = wxPyBeginAllowThreads();
5784 (arg1)->SetColour((wxColour const &)*arg2);
5785 wxPyEndAllowThreads(__tstate);
5786 if (PyErr_Occurred()) SWIG_fail;
5787 }
5788 resultobj = SWIG_Py_Void();
5789 return resultobj;
5790 fail:
5791 return NULL;
5792 }
5793
5794
5795 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5796 PyObject *resultobj = 0;
5797 wxBrush *arg1 = (wxBrush *) 0 ;
5798 int arg2 ;
5799 void *argp1 = 0 ;
5800 int res1 = 0 ;
5801 int val2 ;
5802 int ecode2 = 0 ;
5803 PyObject * obj0 = 0 ;
5804 PyObject * obj1 = 0 ;
5805 char * kwnames[] = {
5806 (char *) "self",(char *) "style", NULL
5807 };
5808
5809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5811 if (!SWIG_IsOK(res1)) {
5812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5813 }
5814 arg1 = reinterpret_cast< wxBrush * >(argp1);
5815 ecode2 = SWIG_AsVal_int(obj1, &val2);
5816 if (!SWIG_IsOK(ecode2)) {
5817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5818 }
5819 arg2 = static_cast< int >(val2);
5820 {
5821 PyThreadState* __tstate = wxPyBeginAllowThreads();
5822 (arg1)->SetStyle(arg2);
5823 wxPyEndAllowThreads(__tstate);
5824 if (PyErr_Occurred()) SWIG_fail;
5825 }
5826 resultobj = SWIG_Py_Void();
5827 return resultobj;
5828 fail:
5829 return NULL;
5830 }
5831
5832
5833 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5834 PyObject *resultobj = 0;
5835 wxBrush *arg1 = (wxBrush *) 0 ;
5836 wxBitmap *arg2 = 0 ;
5837 void *argp1 = 0 ;
5838 int res1 = 0 ;
5839 void *argp2 = 0 ;
5840 int res2 = 0 ;
5841 PyObject * obj0 = 0 ;
5842 PyObject * obj1 = 0 ;
5843 char * kwnames[] = {
5844 (char *) "self",(char *) "stipple", NULL
5845 };
5846
5847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5849 if (!SWIG_IsOK(res1)) {
5850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5851 }
5852 arg1 = reinterpret_cast< wxBrush * >(argp1);
5853 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5854 if (!SWIG_IsOK(res2)) {
5855 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5856 }
5857 if (!argp2) {
5858 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5859 }
5860 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5861 {
5862 PyThreadState* __tstate = wxPyBeginAllowThreads();
5863 (arg1)->SetStipple((wxBitmap const &)*arg2);
5864 wxPyEndAllowThreads(__tstate);
5865 if (PyErr_Occurred()) SWIG_fail;
5866 }
5867 resultobj = SWIG_Py_Void();
5868 return resultobj;
5869 fail:
5870 return NULL;
5871 }
5872
5873
5874 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5875 PyObject *resultobj = 0;
5876 wxBrush *arg1 = (wxBrush *) 0 ;
5877 wxColour result;
5878 void *argp1 = 0 ;
5879 int res1 = 0 ;
5880 PyObject *swig_obj[1] ;
5881
5882 if (!args) SWIG_fail;
5883 swig_obj[0] = args;
5884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5885 if (!SWIG_IsOK(res1)) {
5886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5887 }
5888 arg1 = reinterpret_cast< wxBrush * >(argp1);
5889 {
5890 PyThreadState* __tstate = wxPyBeginAllowThreads();
5891 result = ((wxBrush const *)arg1)->GetColour();
5892 wxPyEndAllowThreads(__tstate);
5893 if (PyErr_Occurred()) SWIG_fail;
5894 }
5895 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5896 return resultobj;
5897 fail:
5898 return NULL;
5899 }
5900
5901
5902 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5903 PyObject *resultobj = 0;
5904 wxBrush *arg1 = (wxBrush *) 0 ;
5905 int result;
5906 void *argp1 = 0 ;
5907 int res1 = 0 ;
5908 PyObject *swig_obj[1] ;
5909
5910 if (!args) SWIG_fail;
5911 swig_obj[0] = args;
5912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5913 if (!SWIG_IsOK(res1)) {
5914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5915 }
5916 arg1 = reinterpret_cast< wxBrush * >(argp1);
5917 {
5918 PyThreadState* __tstate = wxPyBeginAllowThreads();
5919 result = (int)((wxBrush const *)arg1)->GetStyle();
5920 wxPyEndAllowThreads(__tstate);
5921 if (PyErr_Occurred()) SWIG_fail;
5922 }
5923 resultobj = SWIG_From_int(static_cast< int >(result));
5924 return resultobj;
5925 fail:
5926 return NULL;
5927 }
5928
5929
5930 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5931 PyObject *resultobj = 0;
5932 wxBrush *arg1 = (wxBrush *) 0 ;
5933 wxBitmap *result = 0 ;
5934 void *argp1 = 0 ;
5935 int res1 = 0 ;
5936 PyObject *swig_obj[1] ;
5937
5938 if (!args) SWIG_fail;
5939 swig_obj[0] = args;
5940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5941 if (!SWIG_IsOK(res1)) {
5942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5943 }
5944 arg1 = reinterpret_cast< wxBrush * >(argp1);
5945 {
5946 PyThreadState* __tstate = wxPyBeginAllowThreads();
5947 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5948 wxPyEndAllowThreads(__tstate);
5949 if (PyErr_Occurred()) SWIG_fail;
5950 }
5951 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5952 return resultobj;
5953 fail:
5954 return NULL;
5955 }
5956
5957
5958 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5959 PyObject *resultobj = 0;
5960 wxBrush *arg1 = (wxBrush *) 0 ;
5961 bool result;
5962 void *argp1 = 0 ;
5963 int res1 = 0 ;
5964 PyObject *swig_obj[1] ;
5965
5966 if (!args) SWIG_fail;
5967 swig_obj[0] = args;
5968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5969 if (!SWIG_IsOK(res1)) {
5970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5971 }
5972 arg1 = reinterpret_cast< wxBrush * >(argp1);
5973 {
5974 PyThreadState* __tstate = wxPyBeginAllowThreads();
5975 result = (bool)((wxBrush const *)arg1)->IsHatch();
5976 wxPyEndAllowThreads(__tstate);
5977 if (PyErr_Occurred()) SWIG_fail;
5978 }
5979 {
5980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5981 }
5982 return resultobj;
5983 fail:
5984 return NULL;
5985 }
5986
5987
5988 SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5989 PyObject *resultobj = 0;
5990 wxBrush *arg1 = (wxBrush *) 0 ;
5991 bool result;
5992 void *argp1 = 0 ;
5993 int res1 = 0 ;
5994 PyObject *swig_obj[1] ;
5995
5996 if (!args) SWIG_fail;
5997 swig_obj[0] = args;
5998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5999 if (!SWIG_IsOK(res1)) {
6000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
6001 }
6002 arg1 = reinterpret_cast< wxBrush * >(argp1);
6003 {
6004 PyThreadState* __tstate = wxPyBeginAllowThreads();
6005 result = (bool)(arg1)->IsOk();
6006 wxPyEndAllowThreads(__tstate);
6007 if (PyErr_Occurred()) SWIG_fail;
6008 }
6009 {
6010 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6011 }
6012 return resultobj;
6013 fail:
6014 return NULL;
6015 }
6016
6017
6018 SWIGINTERN PyObject *_wrap_Brush_MacGetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6019 PyObject *resultobj = 0;
6020 wxBrush *arg1 = (wxBrush *) 0 ;
6021 short result;
6022 void *argp1 = 0 ;
6023 int res1 = 0 ;
6024 PyObject *swig_obj[1] ;
6025
6026 if (!args) SWIG_fail;
6027 swig_obj[0] = args;
6028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6029 if (!SWIG_IsOK(res1)) {
6030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacGetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
6031 }
6032 arg1 = reinterpret_cast< wxBrush * >(argp1);
6033 {
6034 PyThreadState* __tstate = wxPyBeginAllowThreads();
6035 result = (short)(arg1)->MacGetTheme();
6036 wxPyEndAllowThreads(__tstate);
6037 if (PyErr_Occurred()) SWIG_fail;
6038 }
6039 resultobj = SWIG_From_short(static_cast< short >(result));
6040 return resultobj;
6041 fail:
6042 return NULL;
6043 }
6044
6045
6046 SWIGINTERN PyObject *_wrap_Brush_MacSetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6047 PyObject *resultobj = 0;
6048 wxBrush *arg1 = (wxBrush *) 0 ;
6049 short arg2 ;
6050 void *argp1 = 0 ;
6051 int res1 = 0 ;
6052 short val2 ;
6053 int ecode2 = 0 ;
6054 PyObject * obj0 = 0 ;
6055 PyObject * obj1 = 0 ;
6056 char * kwnames[] = {
6057 (char *) "self",(char *) "macThemeBrush", NULL
6058 };
6059
6060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) SWIG_fail;
6061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6062 if (!SWIG_IsOK(res1)) {
6063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacSetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
6064 }
6065 arg1 = reinterpret_cast< wxBrush * >(argp1);
6066 ecode2 = SWIG_AsVal_short(obj1, &val2);
6067 if (!SWIG_IsOK(ecode2)) {
6068 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_MacSetTheme" "', expected argument " "2"" of type '" "short""'");
6069 }
6070 arg2 = static_cast< short >(val2);
6071 {
6072 PyThreadState* __tstate = wxPyBeginAllowThreads();
6073 (arg1)->MacSetTheme(arg2);
6074 wxPyEndAllowThreads(__tstate);
6075 if (PyErr_Occurred()) SWIG_fail;
6076 }
6077 resultobj = SWIG_Py_Void();
6078 return resultobj;
6079 fail:
6080 return NULL;
6081 }
6082
6083
6084 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6085 PyObject *obj;
6086 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6087 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6088 return SWIG_Py_Void();
6089 }
6090
6091 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6092 return SWIG_Python_InitShadowInstance(args);
6093 }
6094
6095 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6096 PyObject *resultobj = 0;
6097 wxString *arg1 = 0 ;
6098 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6099 wxBitmap *result = 0 ;
6100 bool temp1 = false ;
6101 int val2 ;
6102 int ecode2 = 0 ;
6103 PyObject * obj0 = 0 ;
6104 PyObject * obj1 = 0 ;
6105 char * kwnames[] = {
6106 (char *) "name",(char *) "type", NULL
6107 };
6108
6109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6110 {
6111 arg1 = wxString_in_helper(obj0);
6112 if (arg1 == NULL) SWIG_fail;
6113 temp1 = true;
6114 }
6115 if (obj1) {
6116 ecode2 = SWIG_AsVal_int(obj1, &val2);
6117 if (!SWIG_IsOK(ecode2)) {
6118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6119 }
6120 arg2 = static_cast< wxBitmapType >(val2);
6121 }
6122 {
6123 if (!wxPyCheckForApp()) SWIG_fail;
6124 PyThreadState* __tstate = wxPyBeginAllowThreads();
6125 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6126 wxPyEndAllowThreads(__tstate);
6127 if (PyErr_Occurred()) SWIG_fail;
6128 }
6129 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6130 {
6131 if (temp1)
6132 delete arg1;
6133 }
6134 return resultobj;
6135 fail:
6136 {
6137 if (temp1)
6138 delete arg1;
6139 }
6140 return NULL;
6141 }
6142
6143
6144 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6145 PyObject *resultobj = 0;
6146 wxBitmap *arg1 = (wxBitmap *) 0 ;
6147 void *argp1 = 0 ;
6148 int res1 = 0 ;
6149 PyObject *swig_obj[1] ;
6150
6151 if (!args) SWIG_fail;
6152 swig_obj[0] = args;
6153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6154 if (!SWIG_IsOK(res1)) {
6155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6156 }
6157 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6158 {
6159 delete arg1;
6160
6161 if (PyErr_Occurred()) SWIG_fail;
6162 }
6163 resultobj = SWIG_Py_Void();
6164 return resultobj;
6165 fail:
6166 return NULL;
6167 }
6168
6169
6170 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6171 PyObject *resultobj = 0;
6172 int arg1 ;
6173 int arg2 ;
6174 int arg3 = (int) -1 ;
6175 wxBitmap *result = 0 ;
6176 int val1 ;
6177 int ecode1 = 0 ;
6178 int val2 ;
6179 int ecode2 = 0 ;
6180 int val3 ;
6181 int ecode3 = 0 ;
6182 PyObject * obj0 = 0 ;
6183 PyObject * obj1 = 0 ;
6184 PyObject * obj2 = 0 ;
6185 char * kwnames[] = {
6186 (char *) "width",(char *) "height",(char *) "depth", NULL
6187 };
6188
6189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6190 ecode1 = SWIG_AsVal_int(obj0, &val1);
6191 if (!SWIG_IsOK(ecode1)) {
6192 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6193 }
6194 arg1 = static_cast< int >(val1);
6195 ecode2 = SWIG_AsVal_int(obj1, &val2);
6196 if (!SWIG_IsOK(ecode2)) {
6197 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6198 }
6199 arg2 = static_cast< int >(val2);
6200 if (obj2) {
6201 ecode3 = SWIG_AsVal_int(obj2, &val3);
6202 if (!SWIG_IsOK(ecode3)) {
6203 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6204 }
6205 arg3 = static_cast< int >(val3);
6206 }
6207 {
6208 if (!wxPyCheckForApp()) SWIG_fail;
6209 PyThreadState* __tstate = wxPyBeginAllowThreads();
6210 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6211 wxPyEndAllowThreads(__tstate);
6212 if (PyErr_Occurred()) SWIG_fail;
6213 }
6214 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6215 return resultobj;
6216 fail:
6217 return NULL;
6218 }
6219
6220
6221 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6222 PyObject *resultobj = 0;
6223 wxIcon *arg1 = 0 ;
6224 wxBitmap *result = 0 ;
6225 void *argp1 = 0 ;
6226 int res1 = 0 ;
6227 PyObject * obj0 = 0 ;
6228 char * kwnames[] = {
6229 (char *) "icon", NULL
6230 };
6231
6232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6233 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6234 if (!SWIG_IsOK(res1)) {
6235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6236 }
6237 if (!argp1) {
6238 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6239 }
6240 arg1 = reinterpret_cast< wxIcon * >(argp1);
6241 {
6242 if (!wxPyCheckForApp()) SWIG_fail;
6243 PyThreadState* __tstate = wxPyBeginAllowThreads();
6244 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6245 wxPyEndAllowThreads(__tstate);
6246 if (PyErr_Occurred()) SWIG_fail;
6247 }
6248 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6249 return resultobj;
6250 fail:
6251 return NULL;
6252 }
6253
6254
6255 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6256 PyObject *resultobj = 0;
6257 wxImage *arg1 = 0 ;
6258 int arg2 = (int) -1 ;
6259 wxBitmap *result = 0 ;
6260 void *argp1 = 0 ;
6261 int res1 = 0 ;
6262 int val2 ;
6263 int ecode2 = 0 ;
6264 PyObject * obj0 = 0 ;
6265 PyObject * obj1 = 0 ;
6266 char * kwnames[] = {
6267 (char *) "image",(char *) "depth", NULL
6268 };
6269
6270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6271 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6272 if (!SWIG_IsOK(res1)) {
6273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6274 }
6275 if (!argp1) {
6276 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6277 }
6278 arg1 = reinterpret_cast< wxImage * >(argp1);
6279 if (obj1) {
6280 ecode2 = SWIG_AsVal_int(obj1, &val2);
6281 if (!SWIG_IsOK(ecode2)) {
6282 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6283 }
6284 arg2 = static_cast< int >(val2);
6285 }
6286 {
6287 if (!wxPyCheckForApp()) SWIG_fail;
6288 PyThreadState* __tstate = wxPyBeginAllowThreads();
6289 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6290 wxPyEndAllowThreads(__tstate);
6291 if (PyErr_Occurred()) SWIG_fail;
6292 }
6293 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6294 return resultobj;
6295 fail:
6296 return NULL;
6297 }
6298
6299
6300 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6301 PyObject *resultobj = 0;
6302 PyObject *arg1 = (PyObject *) 0 ;
6303 wxBitmap *result = 0 ;
6304 PyObject * obj0 = 0 ;
6305 char * kwnames[] = {
6306 (char *) "listOfStrings", NULL
6307 };
6308
6309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6310 arg1 = obj0;
6311 {
6312 if (!wxPyCheckForApp()) SWIG_fail;
6313 PyThreadState* __tstate = wxPyBeginAllowThreads();
6314 result = (wxBitmap *)new_wxBitmap(arg1);
6315 wxPyEndAllowThreads(__tstate);
6316 if (PyErr_Occurred()) SWIG_fail;
6317 }
6318 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6319 return resultobj;
6320 fail:
6321 return NULL;
6322 }
6323
6324
6325 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6326 PyObject *resultobj = 0;
6327 PyObject *arg1 = (PyObject *) 0 ;
6328 int arg2 ;
6329 int arg3 ;
6330 int arg4 = (int) 1 ;
6331 wxBitmap *result = 0 ;
6332 int val2 ;
6333 int ecode2 = 0 ;
6334 int val3 ;
6335 int ecode3 = 0 ;
6336 int val4 ;
6337 int ecode4 = 0 ;
6338 PyObject * obj0 = 0 ;
6339 PyObject * obj1 = 0 ;
6340 PyObject * obj2 = 0 ;
6341 PyObject * obj3 = 0 ;
6342 char * kwnames[] = {
6343 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6344 };
6345
6346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6347 arg1 = obj0;
6348 ecode2 = SWIG_AsVal_int(obj1, &val2);
6349 if (!SWIG_IsOK(ecode2)) {
6350 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6351 }
6352 arg2 = static_cast< int >(val2);
6353 ecode3 = SWIG_AsVal_int(obj2, &val3);
6354 if (!SWIG_IsOK(ecode3)) {
6355 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6356 }
6357 arg3 = static_cast< int >(val3);
6358 if (obj3) {
6359 ecode4 = SWIG_AsVal_int(obj3, &val4);
6360 if (!SWIG_IsOK(ecode4)) {
6361 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6362 }
6363 arg4 = static_cast< int >(val4);
6364 }
6365 {
6366 if (!wxPyCheckForApp()) SWIG_fail;
6367 PyThreadState* __tstate = wxPyBeginAllowThreads();
6368 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6369 wxPyEndAllowThreads(__tstate);
6370 if (PyErr_Occurred()) SWIG_fail;
6371 }
6372 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6373 return resultobj;
6374 fail:
6375 return NULL;
6376 }
6377
6378
6379 SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6380 PyObject *resultobj = 0;
6381 wxBitmap *arg1 = (wxBitmap *) 0 ;
6382 bool result;
6383 void *argp1 = 0 ;
6384 int res1 = 0 ;
6385 PyObject *swig_obj[1] ;
6386
6387 if (!args) SWIG_fail;
6388 swig_obj[0] = args;
6389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6390 if (!SWIG_IsOK(res1)) {
6391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
6392 }
6393 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6394 {
6395 result = (bool)(arg1)->IsOk();
6396 if (PyErr_Occurred()) SWIG_fail;
6397 }
6398 {
6399 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6400 }
6401 return resultobj;
6402 fail:
6403 return NULL;
6404 }
6405
6406
6407 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6408 PyObject *resultobj = 0;
6409 wxBitmap *arg1 = (wxBitmap *) 0 ;
6410 int result;
6411 void *argp1 = 0 ;
6412 int res1 = 0 ;
6413 PyObject *swig_obj[1] ;
6414
6415 if (!args) SWIG_fail;
6416 swig_obj[0] = args;
6417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6418 if (!SWIG_IsOK(res1)) {
6419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6420 }
6421 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6422 {
6423 result = (int)(arg1)->GetWidth();
6424 if (PyErr_Occurred()) SWIG_fail;
6425 }
6426 resultobj = SWIG_From_int(static_cast< int >(result));
6427 return resultobj;
6428 fail:
6429 return NULL;
6430 }
6431
6432
6433 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6434 PyObject *resultobj = 0;
6435 wxBitmap *arg1 = (wxBitmap *) 0 ;
6436 int result;
6437 void *argp1 = 0 ;
6438 int res1 = 0 ;
6439 PyObject *swig_obj[1] ;
6440
6441 if (!args) SWIG_fail;
6442 swig_obj[0] = args;
6443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6444 if (!SWIG_IsOK(res1)) {
6445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6446 }
6447 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6448 {
6449 result = (int)(arg1)->GetHeight();
6450 if (PyErr_Occurred()) SWIG_fail;
6451 }
6452 resultobj = SWIG_From_int(static_cast< int >(result));
6453 return resultobj;
6454 fail:
6455 return NULL;
6456 }
6457
6458
6459 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6460 PyObject *resultobj = 0;
6461 wxBitmap *arg1 = (wxBitmap *) 0 ;
6462 int result;
6463 void *argp1 = 0 ;
6464 int res1 = 0 ;
6465 PyObject *swig_obj[1] ;
6466
6467 if (!args) SWIG_fail;
6468 swig_obj[0] = args;
6469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6470 if (!SWIG_IsOK(res1)) {
6471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6472 }
6473 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6474 {
6475 result = (int)(arg1)->GetDepth();
6476 if (PyErr_Occurred()) SWIG_fail;
6477 }
6478 resultobj = SWIG_From_int(static_cast< int >(result));
6479 return resultobj;
6480 fail:
6481 return NULL;
6482 }
6483
6484
6485 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6486 PyObject *resultobj = 0;
6487 wxBitmap *arg1 = (wxBitmap *) 0 ;
6488 wxSize result;
6489 void *argp1 = 0 ;
6490 int res1 = 0 ;
6491 PyObject *swig_obj[1] ;
6492
6493 if (!args) SWIG_fail;
6494 swig_obj[0] = args;
6495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6496 if (!SWIG_IsOK(res1)) {
6497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6498 }
6499 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6500 {
6501 result = wxBitmap_GetSize(arg1);
6502 if (PyErr_Occurred()) SWIG_fail;
6503 }
6504 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6505 return resultobj;
6506 fail:
6507 return NULL;
6508 }
6509
6510
6511 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6512 PyObject *resultobj = 0;
6513 wxBitmap *arg1 = (wxBitmap *) 0 ;
6514 SwigValueWrapper<wxImage > result;
6515 void *argp1 = 0 ;
6516 int res1 = 0 ;
6517 PyObject *swig_obj[1] ;
6518
6519 if (!args) SWIG_fail;
6520 swig_obj[0] = args;
6521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6522 if (!SWIG_IsOK(res1)) {
6523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6524 }
6525 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6526 {
6527 result = ((wxBitmap const *)arg1)->ConvertToImage();
6528 if (PyErr_Occurred()) SWIG_fail;
6529 }
6530 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6531 return resultobj;
6532 fail:
6533 return NULL;
6534 }
6535
6536
6537 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6538 PyObject *resultobj = 0;
6539 wxBitmap *arg1 = (wxBitmap *) 0 ;
6540 wxMask *result = 0 ;
6541 void *argp1 = 0 ;
6542 int res1 = 0 ;
6543 PyObject *swig_obj[1] ;
6544
6545 if (!args) SWIG_fail;
6546 swig_obj[0] = args;
6547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6548 if (!SWIG_IsOK(res1)) {
6549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6550 }
6551 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6552 {
6553 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6554 if (PyErr_Occurred()) SWIG_fail;
6555 }
6556 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6557 return resultobj;
6558 fail:
6559 return NULL;
6560 }
6561
6562
6563 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6564 PyObject *resultobj = 0;
6565 wxBitmap *arg1 = (wxBitmap *) 0 ;
6566 wxMask *arg2 = (wxMask *) 0 ;
6567 void *argp1 = 0 ;
6568 int res1 = 0 ;
6569 int res2 = 0 ;
6570 PyObject * obj0 = 0 ;
6571 PyObject * obj1 = 0 ;
6572 char * kwnames[] = {
6573 (char *) "self",(char *) "mask", NULL
6574 };
6575
6576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6578 if (!SWIG_IsOK(res1)) {
6579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6580 }
6581 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6582 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6583 if (!SWIG_IsOK(res2)) {
6584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6585 }
6586 {
6587 (arg1)->SetMask(arg2);
6588 if (PyErr_Occurred()) SWIG_fail;
6589 }
6590 resultobj = SWIG_Py_Void();
6591 return resultobj;
6592 fail:
6593 return NULL;
6594 }
6595
6596
6597 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6598 PyObject *resultobj = 0;
6599 wxBitmap *arg1 = (wxBitmap *) 0 ;
6600 wxColour *arg2 = 0 ;
6601 void *argp1 = 0 ;
6602 int res1 = 0 ;
6603 wxColour temp2 ;
6604 PyObject * obj0 = 0 ;
6605 PyObject * obj1 = 0 ;
6606 char * kwnames[] = {
6607 (char *) "self",(char *) "colour", NULL
6608 };
6609
6610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6612 if (!SWIG_IsOK(res1)) {
6613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6614 }
6615 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6616 {
6617 arg2 = &temp2;
6618 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6619 }
6620 {
6621 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6622 if (PyErr_Occurred()) SWIG_fail;
6623 }
6624 resultobj = SWIG_Py_Void();
6625 return resultobj;
6626 fail:
6627 return NULL;
6628 }
6629
6630
6631 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6632 PyObject *resultobj = 0;
6633 wxBitmap *arg1 = (wxBitmap *) 0 ;
6634 wxRect *arg2 = 0 ;
6635 SwigValueWrapper<wxBitmap > result;
6636 void *argp1 = 0 ;
6637 int res1 = 0 ;
6638 wxRect temp2 ;
6639 PyObject * obj0 = 0 ;
6640 PyObject * obj1 = 0 ;
6641 char * kwnames[] = {
6642 (char *) "self",(char *) "rect", NULL
6643 };
6644
6645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6647 if (!SWIG_IsOK(res1)) {
6648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6649 }
6650 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6651 {
6652 arg2 = &temp2;
6653 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6654 }
6655 {
6656 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6657 if (PyErr_Occurred()) SWIG_fail;
6658 }
6659 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6660 return resultobj;
6661 fail:
6662 return NULL;
6663 }
6664
6665
6666 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6667 PyObject *resultobj = 0;
6668 wxBitmap *arg1 = (wxBitmap *) 0 ;
6669 wxString *arg2 = 0 ;
6670 wxBitmapType arg3 ;
6671 wxPalette *arg4 = (wxPalette *) NULL ;
6672 bool result;
6673 void *argp1 = 0 ;
6674 int res1 = 0 ;
6675 bool temp2 = false ;
6676 int val3 ;
6677 int ecode3 = 0 ;
6678 void *argp4 = 0 ;
6679 int res4 = 0 ;
6680 PyObject * obj0 = 0 ;
6681 PyObject * obj1 = 0 ;
6682 PyObject * obj2 = 0 ;
6683 PyObject * obj3 = 0 ;
6684 char * kwnames[] = {
6685 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6686 };
6687
6688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6690 if (!SWIG_IsOK(res1)) {
6691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6692 }
6693 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6694 {
6695 arg2 = wxString_in_helper(obj1);
6696 if (arg2 == NULL) SWIG_fail;
6697 temp2 = true;
6698 }
6699 ecode3 = SWIG_AsVal_int(obj2, &val3);
6700 if (!SWIG_IsOK(ecode3)) {
6701 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6702 }
6703 arg3 = static_cast< wxBitmapType >(val3);
6704 if (obj3) {
6705 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6706 if (!SWIG_IsOK(res4)) {
6707 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6708 }
6709 arg4 = reinterpret_cast< wxPalette * >(argp4);
6710 }
6711 {
6712 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6713 if (PyErr_Occurred()) SWIG_fail;
6714 }
6715 {
6716 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6717 }
6718 {
6719 if (temp2)
6720 delete arg2;
6721 }
6722 return resultobj;
6723 fail:
6724 {
6725 if (temp2)
6726 delete arg2;
6727 }
6728 return NULL;
6729 }
6730
6731
6732 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6733 PyObject *resultobj = 0;
6734 wxBitmap *arg1 = (wxBitmap *) 0 ;
6735 wxString *arg2 = 0 ;
6736 wxBitmapType arg3 ;
6737 bool result;
6738 void *argp1 = 0 ;
6739 int res1 = 0 ;
6740 bool temp2 = false ;
6741 int val3 ;
6742 int ecode3 = 0 ;
6743 PyObject * obj0 = 0 ;
6744 PyObject * obj1 = 0 ;
6745 PyObject * obj2 = 0 ;
6746 char * kwnames[] = {
6747 (char *) "self",(char *) "name",(char *) "type", NULL
6748 };
6749
6750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6752 if (!SWIG_IsOK(res1)) {
6753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6754 }
6755 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6756 {
6757 arg2 = wxString_in_helper(obj1);
6758 if (arg2 == NULL) SWIG_fail;
6759 temp2 = true;
6760 }
6761 ecode3 = SWIG_AsVal_int(obj2, &val3);
6762 if (!SWIG_IsOK(ecode3)) {
6763 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6764 }
6765 arg3 = static_cast< wxBitmapType >(val3);
6766 {
6767 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6768 if (PyErr_Occurred()) SWIG_fail;
6769 }
6770 {
6771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6772 }
6773 {
6774 if (temp2)
6775 delete arg2;
6776 }
6777 return resultobj;
6778 fail:
6779 {
6780 if (temp2)
6781 delete arg2;
6782 }
6783 return NULL;
6784 }
6785
6786
6787 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6788 PyObject *resultobj = 0;
6789 wxBitmap *arg1 = (wxBitmap *) 0 ;
6790 wxPalette *result = 0 ;
6791 void *argp1 = 0 ;
6792 int res1 = 0 ;
6793 PyObject *swig_obj[1] ;
6794
6795 if (!args) SWIG_fail;
6796 swig_obj[0] = args;
6797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6798 if (!SWIG_IsOK(res1)) {
6799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6800 }
6801 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6802 {
6803 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6804 if (PyErr_Occurred()) SWIG_fail;
6805 }
6806 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6807 return resultobj;
6808 fail:
6809 return NULL;
6810 }
6811
6812
6813 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6814 PyObject *resultobj = 0;
6815 wxBitmap *arg1 = (wxBitmap *) 0 ;
6816 wxIcon *arg2 = 0 ;
6817 bool result;
6818 void *argp1 = 0 ;
6819 int res1 = 0 ;
6820 void *argp2 = 0 ;
6821 int res2 = 0 ;
6822 PyObject * obj0 = 0 ;
6823 PyObject * obj1 = 0 ;
6824 char * kwnames[] = {
6825 (char *) "self",(char *) "icon", NULL
6826 };
6827
6828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6830 if (!SWIG_IsOK(res1)) {
6831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6832 }
6833 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6834 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6835 if (!SWIG_IsOK(res2)) {
6836 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6837 }
6838 if (!argp2) {
6839 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6840 }
6841 arg2 = reinterpret_cast< wxIcon * >(argp2);
6842 {
6843 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6844 if (PyErr_Occurred()) SWIG_fail;
6845 }
6846 {
6847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6848 }
6849 return resultobj;
6850 fail:
6851 return NULL;
6852 }
6853
6854
6855 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6856 PyObject *resultobj = 0;
6857 wxBitmap *arg1 = (wxBitmap *) 0 ;
6858 int arg2 ;
6859 void *argp1 = 0 ;
6860 int res1 = 0 ;
6861 int val2 ;
6862 int ecode2 = 0 ;
6863 PyObject * obj0 = 0 ;
6864 PyObject * obj1 = 0 ;
6865 char * kwnames[] = {
6866 (char *) "self",(char *) "height", NULL
6867 };
6868
6869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6871 if (!SWIG_IsOK(res1)) {
6872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6873 }
6874 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6875 ecode2 = SWIG_AsVal_int(obj1, &val2);
6876 if (!SWIG_IsOK(ecode2)) {
6877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6878 }
6879 arg2 = static_cast< int >(val2);
6880 {
6881 (arg1)->SetHeight(arg2);
6882 if (PyErr_Occurred()) SWIG_fail;
6883 }
6884 resultobj = SWIG_Py_Void();
6885 return resultobj;
6886 fail:
6887 return NULL;
6888 }
6889
6890
6891 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6892 PyObject *resultobj = 0;
6893 wxBitmap *arg1 = (wxBitmap *) 0 ;
6894 int arg2 ;
6895 void *argp1 = 0 ;
6896 int res1 = 0 ;
6897 int val2 ;
6898 int ecode2 = 0 ;
6899 PyObject * obj0 = 0 ;
6900 PyObject * obj1 = 0 ;
6901 char * kwnames[] = {
6902 (char *) "self",(char *) "width", NULL
6903 };
6904
6905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6907 if (!SWIG_IsOK(res1)) {
6908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6909 }
6910 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6911 ecode2 = SWIG_AsVal_int(obj1, &val2);
6912 if (!SWIG_IsOK(ecode2)) {
6913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6914 }
6915 arg2 = static_cast< int >(val2);
6916 {
6917 (arg1)->SetWidth(arg2);
6918 if (PyErr_Occurred()) SWIG_fail;
6919 }
6920 resultobj = SWIG_Py_Void();
6921 return resultobj;
6922 fail:
6923 return NULL;
6924 }
6925
6926
6927 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6928 PyObject *resultobj = 0;
6929 wxBitmap *arg1 = (wxBitmap *) 0 ;
6930 int arg2 ;
6931 void *argp1 = 0 ;
6932 int res1 = 0 ;
6933 int val2 ;
6934 int ecode2 = 0 ;
6935 PyObject * obj0 = 0 ;
6936 PyObject * obj1 = 0 ;
6937 char * kwnames[] = {
6938 (char *) "self",(char *) "depth", NULL
6939 };
6940
6941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6943 if (!SWIG_IsOK(res1)) {
6944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6945 }
6946 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6947 ecode2 = SWIG_AsVal_int(obj1, &val2);
6948 if (!SWIG_IsOK(ecode2)) {
6949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6950 }
6951 arg2 = static_cast< int >(val2);
6952 {
6953 (arg1)->SetDepth(arg2);
6954 if (PyErr_Occurred()) SWIG_fail;
6955 }
6956 resultobj = SWIG_Py_Void();
6957 return resultobj;
6958 fail:
6959 return NULL;
6960 }
6961
6962
6963 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6964 PyObject *resultobj = 0;
6965 wxBitmap *arg1 = (wxBitmap *) 0 ;
6966 wxSize *arg2 = 0 ;
6967 void *argp1 = 0 ;
6968 int res1 = 0 ;
6969 wxSize temp2 ;
6970 PyObject * obj0 = 0 ;
6971 PyObject * obj1 = 0 ;
6972 char * kwnames[] = {
6973 (char *) "self",(char *) "size", NULL
6974 };
6975
6976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6978 if (!SWIG_IsOK(res1)) {
6979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6980 }
6981 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6982 {
6983 arg2 = &temp2;
6984 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6985 }
6986 {
6987 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6988 if (PyErr_Occurred()) SWIG_fail;
6989 }
6990 resultobj = SWIG_Py_Void();
6991 return resultobj;
6992 fail:
6993 return NULL;
6994 }
6995
6996
6997 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6998 PyObject *resultobj = 0;
6999 wxBitmap *arg1 = (wxBitmap *) 0 ;
7000 buffer arg2 ;
7001 int arg3 ;
7002 void *argp1 = 0 ;
7003 int res1 = 0 ;
7004 Py_ssize_t temp2 ;
7005 PyObject * obj0 = 0 ;
7006 PyObject * obj1 = 0 ;
7007 char * kwnames[] = {
7008 (char *) "self",(char *) "data", NULL
7009 };
7010
7011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
7012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7013 if (!SWIG_IsOK(res1)) {
7014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
7015 }
7016 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7017 {
7018 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7019 arg3 = (int)temp2;
7020 }
7021 {
7022 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
7023 if (PyErr_Occurred()) SWIG_fail;
7024 }
7025 resultobj = SWIG_Py_Void();
7026 return resultobj;
7027 fail:
7028 return NULL;
7029 }
7030
7031
7032 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7033 PyObject *resultobj = 0;
7034 wxBitmap *arg1 = (wxBitmap *) 0 ;
7035 buffer arg2 ;
7036 int arg3 ;
7037 void *argp1 = 0 ;
7038 int res1 = 0 ;
7039 Py_ssize_t temp2 ;
7040 PyObject * obj0 = 0 ;
7041 PyObject * obj1 = 0 ;
7042 char * kwnames[] = {
7043 (char *) "self",(char *) "data", NULL
7044 };
7045
7046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7048 if (!SWIG_IsOK(res1)) {
7049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7050 }
7051 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7052 {
7053 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7054 arg3 = (int)temp2;
7055 }
7056 {
7057 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7058 if (PyErr_Occurred()) SWIG_fail;
7059 }
7060 resultobj = SWIG_Py_Void();
7061 return resultobj;
7062 fail:
7063 return NULL;
7064 }
7065
7066
7067 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7068 PyObject *resultobj = 0;
7069 wxBitmap *arg1 = (wxBitmap *) 0 ;
7070 wxBitmap *arg2 = (wxBitmap *) 0 ;
7071 bool result;
7072 void *argp1 = 0 ;
7073 int res1 = 0 ;
7074 void *argp2 = 0 ;
7075 int res2 = 0 ;
7076 PyObject * obj0 = 0 ;
7077 PyObject * obj1 = 0 ;
7078 char * kwnames[] = {
7079 (char *) "self",(char *) "other", NULL
7080 };
7081
7082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7084 if (!SWIG_IsOK(res1)) {
7085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7086 }
7087 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7088 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7089 if (!SWIG_IsOK(res2)) {
7090 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7091 }
7092 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7093 {
7094 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
7095 if (PyErr_Occurred()) SWIG_fail;
7096 }
7097 {
7098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7099 }
7100 return resultobj;
7101 fail:
7102 return NULL;
7103 }
7104
7105
7106 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7107 PyObject *resultobj = 0;
7108 wxBitmap *arg1 = (wxBitmap *) 0 ;
7109 wxBitmap *arg2 = (wxBitmap *) 0 ;
7110 bool result;
7111 void *argp1 = 0 ;
7112 int res1 = 0 ;
7113 void *argp2 = 0 ;
7114 int res2 = 0 ;
7115 PyObject * obj0 = 0 ;
7116 PyObject * obj1 = 0 ;
7117 char * kwnames[] = {
7118 (char *) "self",(char *) "other", NULL
7119 };
7120
7121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7123 if (!SWIG_IsOK(res1)) {
7124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7125 }
7126 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7127 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7128 if (!SWIG_IsOK(res2)) {
7129 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7130 }
7131 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7132 {
7133 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7134 if (PyErr_Occurred()) SWIG_fail;
7135 }
7136 {
7137 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7138 }
7139 return resultobj;
7140 fail:
7141 return NULL;
7142 }
7143
7144
7145 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7146 PyObject *obj;
7147 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7148 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7149 return SWIG_Py_Void();
7150 }
7151
7152 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7153 return SWIG_Python_InitShadowInstance(args);
7154 }
7155
7156 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7157 PyObject *resultobj = 0;
7158 int arg1 ;
7159 int arg2 ;
7160 buffer arg3 ;
7161 int arg4 ;
7162 buffer arg5 ;
7163 int arg6 ;
7164 wxBitmap *result = 0 ;
7165 int val1 ;
7166 int ecode1 = 0 ;
7167 int val2 ;
7168 int ecode2 = 0 ;
7169 Py_ssize_t temp3 ;
7170 Py_ssize_t temp5 ;
7171 PyObject * obj0 = 0 ;
7172 PyObject * obj1 = 0 ;
7173 PyObject * obj2 = 0 ;
7174 PyObject * obj3 = 0 ;
7175 char * kwnames[] = {
7176 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7177 };
7178
7179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7180 ecode1 = SWIG_AsVal_int(obj0, &val1);
7181 if (!SWIG_IsOK(ecode1)) {
7182 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7183 }
7184 arg1 = static_cast< int >(val1);
7185 ecode2 = SWIG_AsVal_int(obj1, &val2);
7186 if (!SWIG_IsOK(ecode2)) {
7187 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7188 }
7189 arg2 = static_cast< int >(val2);
7190 {
7191 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7192 arg4 = (int)temp3;
7193 }
7194 {
7195 if (obj3 != Py_None) {
7196 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7197 arg6 = (int)temp5;
7198 }
7199 }
7200 {
7201 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7202 if (PyErr_Occurred()) SWIG_fail;
7203 }
7204 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7205 return resultobj;
7206 fail:
7207 return NULL;
7208 }
7209
7210
7211 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7212 PyObject *resultobj = 0;
7213 int arg1 ;
7214 int arg2 ;
7215 buffer arg3 ;
7216 int arg4 ;
7217 wxBitmap *result = 0 ;
7218 int val1 ;
7219 int ecode1 = 0 ;
7220 int val2 ;
7221 int ecode2 = 0 ;
7222 Py_ssize_t temp3 ;
7223 PyObject * obj0 = 0 ;
7224 PyObject * obj1 = 0 ;
7225 PyObject * obj2 = 0 ;
7226 char * kwnames[] = {
7227 (char *) "width",(char *) "height",(char *) "data", NULL
7228 };
7229
7230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7231 ecode1 = SWIG_AsVal_int(obj0, &val1);
7232 if (!SWIG_IsOK(ecode1)) {
7233 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7234 }
7235 arg1 = static_cast< int >(val1);
7236 ecode2 = SWIG_AsVal_int(obj1, &val2);
7237 if (!SWIG_IsOK(ecode2)) {
7238 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7239 }
7240 arg2 = static_cast< int >(val2);
7241 {
7242 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7243 arg4 = (int)temp3;
7244 }
7245 {
7246 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7247 if (PyErr_Occurred()) SWIG_fail;
7248 }
7249 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7250 return resultobj;
7251 fail:
7252 return NULL;
7253 }
7254
7255
7256 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7257 PyObject *resultobj = 0;
7258 int arg1 ;
7259 int arg2 ;
7260 buffer arg3 ;
7261 int arg4 ;
7262 wxBitmap *result = 0 ;
7263 int val1 ;
7264 int ecode1 = 0 ;
7265 int val2 ;
7266 int ecode2 = 0 ;
7267 Py_ssize_t temp3 ;
7268 PyObject * obj0 = 0 ;
7269 PyObject * obj1 = 0 ;
7270 PyObject * obj2 = 0 ;
7271 char * kwnames[] = {
7272 (char *) "width",(char *) "height",(char *) "data", NULL
7273 };
7274
7275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7276 ecode1 = SWIG_AsVal_int(obj0, &val1);
7277 if (!SWIG_IsOK(ecode1)) {
7278 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7279 }
7280 arg1 = static_cast< int >(val1);
7281 ecode2 = SWIG_AsVal_int(obj1, &val2);
7282 if (!SWIG_IsOK(ecode2)) {
7283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7284 }
7285 arg2 = static_cast< int >(val2);
7286 {
7287 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7288 arg4 = (int)temp3;
7289 }
7290 {
7291 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7292 if (PyErr_Occurred()) SWIG_fail;
7293 }
7294 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7295 return resultobj;
7296 fail:
7297 return NULL;
7298 }
7299
7300
7301 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7302 PyObject *resultobj = 0;
7303 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7304 wxPoint result;
7305 void *argp1 = 0 ;
7306 int res1 = 0 ;
7307 PyObject *swig_obj[1] ;
7308
7309 if (!args) SWIG_fail;
7310 swig_obj[0] = args;
7311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7312 if (!SWIG_IsOK(res1)) {
7313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7314 }
7315 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7316 {
7317 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7318 if (PyErr_Occurred()) SWIG_fail;
7319 }
7320 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7321 return resultobj;
7322 fail:
7323 return NULL;
7324 }
7325
7326
7327 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7328 PyObject *resultobj = 0;
7329 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7330 int result;
7331 void *argp1 = 0 ;
7332 int res1 = 0 ;
7333 PyObject *swig_obj[1] ;
7334
7335 if (!args) SWIG_fail;
7336 swig_obj[0] = args;
7337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7338 if (!SWIG_IsOK(res1)) {
7339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7340 }
7341 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7342 {
7343 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7344 if (PyErr_Occurred()) SWIG_fail;
7345 }
7346 resultobj = SWIG_From_int(static_cast< int >(result));
7347 return resultobj;
7348 fail:
7349 return NULL;
7350 }
7351
7352
7353 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7354 PyObject *resultobj = 0;
7355 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7356 int result;
7357 void *argp1 = 0 ;
7358 int res1 = 0 ;
7359 PyObject *swig_obj[1] ;
7360
7361 if (!args) SWIG_fail;
7362 swig_obj[0] = args;
7363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7364 if (!SWIG_IsOK(res1)) {
7365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7366 }
7367 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7368 {
7369 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7370 if (PyErr_Occurred()) SWIG_fail;
7371 }
7372 resultobj = SWIG_From_int(static_cast< int >(result));
7373 return resultobj;
7374 fail:
7375 return NULL;
7376 }
7377
7378
7379 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7380 PyObject *resultobj = 0;
7381 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7382 wxSize result;
7383 void *argp1 = 0 ;
7384 int res1 = 0 ;
7385 PyObject *swig_obj[1] ;
7386
7387 if (!args) SWIG_fail;
7388 swig_obj[0] = args;
7389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7390 if (!SWIG_IsOK(res1)) {
7391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7392 }
7393 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7394 {
7395 result = ((wxPixelDataBase const *)arg1)->GetSize();
7396 if (PyErr_Occurred()) SWIG_fail;
7397 }
7398 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7399 return resultobj;
7400 fail:
7401 return NULL;
7402 }
7403
7404
7405 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7406 PyObject *resultobj = 0;
7407 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7408 int result;
7409 void *argp1 = 0 ;
7410 int res1 = 0 ;
7411 PyObject *swig_obj[1] ;
7412
7413 if (!args) SWIG_fail;
7414 swig_obj[0] = args;
7415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7416 if (!SWIG_IsOK(res1)) {
7417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7418 }
7419 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7420 {
7421 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7422 if (PyErr_Occurred()) SWIG_fail;
7423 }
7424 resultobj = SWIG_From_int(static_cast< int >(result));
7425 return resultobj;
7426 fail:
7427 return NULL;
7428 }
7429
7430
7431 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7432 PyObject *obj;
7433 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7434 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7435 return SWIG_Py_Void();
7436 }
7437
7438 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7439 PyObject *resultobj = 0;
7440 wxBitmap *arg1 = 0 ;
7441 wxNativePixelData *result = 0 ;
7442 void *argp1 = 0 ;
7443 int res1 = 0 ;
7444
7445 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7447 if (!SWIG_IsOK(res1)) {
7448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7449 }
7450 if (!argp1) {
7451 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7452 }
7453 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7454 {
7455 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7456 if (PyErr_Occurred()) SWIG_fail;
7457 }
7458 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7459 return resultobj;
7460 fail:
7461 return NULL;
7462 }
7463
7464
7465 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7466 PyObject *resultobj = 0;
7467 wxBitmap *arg1 = 0 ;
7468 wxRect *arg2 = 0 ;
7469 wxNativePixelData *result = 0 ;
7470 void *argp1 = 0 ;
7471 int res1 = 0 ;
7472 wxRect temp2 ;
7473
7474 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7476 if (!SWIG_IsOK(res1)) {
7477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7478 }
7479 if (!argp1) {
7480 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7481 }
7482 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7483 {
7484 arg2 = &temp2;
7485 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7486 }
7487 {
7488 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7489 if (PyErr_Occurred()) SWIG_fail;
7490 }
7491 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7492 return resultobj;
7493 fail:
7494 return NULL;
7495 }
7496
7497
7498 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7499 PyObject *resultobj = 0;
7500 wxBitmap *arg1 = 0 ;
7501 wxPoint *arg2 = 0 ;
7502 wxSize *arg3 = 0 ;
7503 wxNativePixelData *result = 0 ;
7504 void *argp1 = 0 ;
7505 int res1 = 0 ;
7506 wxPoint temp2 ;
7507 wxSize temp3 ;
7508
7509 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7511 if (!SWIG_IsOK(res1)) {
7512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7513 }
7514 if (!argp1) {
7515 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7516 }
7517 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7518 {
7519 arg2 = &temp2;
7520 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7521 }
7522 {
7523 arg3 = &temp3;
7524 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7525 }
7526 {
7527 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7528 if (PyErr_Occurred()) SWIG_fail;
7529 }
7530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7531 return resultobj;
7532 fail:
7533 return NULL;
7534 }
7535
7536
7537 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7538 int argc;
7539 PyObject *argv[4];
7540
7541 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7542 --argc;
7543 if (argc == 1) {
7544 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7545 }
7546 if (argc == 2) {
7547 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7548 }
7549 if (argc == 3) {
7550 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7551 }
7552
7553 fail:
7554 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7555 return NULL;
7556 }
7557
7558
7559 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7560 PyObject *resultobj = 0;
7561 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7562 void *argp1 = 0 ;
7563 int res1 = 0 ;
7564 PyObject *swig_obj[1] ;
7565
7566 if (!args) SWIG_fail;
7567 swig_obj[0] = args;
7568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7569 if (!SWIG_IsOK(res1)) {
7570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7571 }
7572 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7573 {
7574 delete arg1;
7575
7576 if (PyErr_Occurred()) SWIG_fail;
7577 }
7578 resultobj = SWIG_Py_Void();
7579 return resultobj;
7580 fail:
7581 return NULL;
7582 }
7583
7584
7585 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7586 PyObject *resultobj = 0;
7587 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7588 wxNativePixelData_Accessor result;
7589 void *argp1 = 0 ;
7590 int res1 = 0 ;
7591 PyObject *swig_obj[1] ;
7592
7593 if (!args) SWIG_fail;
7594 swig_obj[0] = args;
7595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7596 if (!SWIG_IsOK(res1)) {
7597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7598 }
7599 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7600 {
7601 result = ((wxNativePixelData const *)arg1)->GetPixels();
7602 if (PyErr_Occurred()) SWIG_fail;
7603 }
7604 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7605 return resultobj;
7606 fail:
7607 return NULL;
7608 }
7609
7610
7611 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7612 PyObject *resultobj = 0;
7613 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7614 void *argp1 = 0 ;
7615 int res1 = 0 ;
7616 PyObject *swig_obj[1] ;
7617
7618 if (!args) SWIG_fail;
7619 swig_obj[0] = args;
7620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7621 if (!SWIG_IsOK(res1)) {
7622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7623 }
7624 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7625 {
7626 (arg1)->UseAlpha();
7627 if (PyErr_Occurred()) SWIG_fail;
7628 }
7629 resultobj = SWIG_Py_Void();
7630 return resultobj;
7631 fail:
7632 return NULL;
7633 }
7634
7635
7636 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7637 PyObject *resultobj = 0;
7638 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7639 bool result;
7640 void *argp1 = 0 ;
7641 int res1 = 0 ;
7642 PyObject *swig_obj[1] ;
7643
7644 if (!args) SWIG_fail;
7645 swig_obj[0] = args;
7646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7647 if (!SWIG_IsOK(res1)) {
7648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7649 }
7650 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7651 {
7652 result = (bool)wxNativePixelData___nonzero__(arg1);
7653 if (PyErr_Occurred()) SWIG_fail;
7654 }
7655 {
7656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7657 }
7658 return resultobj;
7659 fail:
7660 return NULL;
7661 }
7662
7663
7664 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7665 PyObject *obj;
7666 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7667 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7668 return SWIG_Py_Void();
7669 }
7670
7671 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7672 return SWIG_Python_InitShadowInstance(args);
7673 }
7674
7675 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7676 PyObject *resultobj = 0;
7677 wxNativePixelData *arg1 = 0 ;
7678 wxNativePixelData_Accessor *result = 0 ;
7679 void *argp1 = 0 ;
7680 int res1 = 0 ;
7681
7682 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7684 if (!SWIG_IsOK(res1)) {
7685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7686 }
7687 if (!argp1) {
7688 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7689 }
7690 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7691 {
7692 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7693 if (PyErr_Occurred()) SWIG_fail;
7694 }
7695 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7696 return resultobj;
7697 fail:
7698 return NULL;
7699 }
7700
7701
7702 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7703 PyObject *resultobj = 0;
7704 wxBitmap *arg1 = 0 ;
7705 wxNativePixelData *arg2 = 0 ;
7706 wxNativePixelData_Accessor *result = 0 ;
7707 void *argp1 = 0 ;
7708 int res1 = 0 ;
7709 void *argp2 = 0 ;
7710 int res2 = 0 ;
7711
7712 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7713 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7714 if (!SWIG_IsOK(res1)) {
7715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7716 }
7717 if (!argp1) {
7718 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7719 }
7720 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7721 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7722 if (!SWIG_IsOK(res2)) {
7723 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7724 }
7725 if (!argp2) {
7726 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7727 }
7728 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7729 {
7730 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7731 if (PyErr_Occurred()) SWIG_fail;
7732 }
7733 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7734 return resultobj;
7735 fail:
7736 return NULL;
7737 }
7738
7739
7740 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7741 PyObject *resultobj = 0;
7742 wxNativePixelData_Accessor *result = 0 ;
7743
7744 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7745 {
7746 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7747 if (PyErr_Occurred()) SWIG_fail;
7748 }
7749 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7750 return resultobj;
7751 fail:
7752 return NULL;
7753 }
7754
7755
7756 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7757 int argc;
7758 PyObject *argv[3];
7759
7760 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7761 --argc;
7762 if (argc == 0) {
7763 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7764 }
7765 if (argc == 1) {
7766 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7767 }
7768 if (argc == 2) {
7769 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7770 }
7771
7772 fail:
7773 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7774 return NULL;
7775 }
7776
7777
7778 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7779 PyObject *resultobj = 0;
7780 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7781 void *argp1 = 0 ;
7782 int res1 = 0 ;
7783 PyObject *swig_obj[1] ;
7784
7785 if (!args) SWIG_fail;
7786 swig_obj[0] = args;
7787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7788 if (!SWIG_IsOK(res1)) {
7789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7790 }
7791 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7792 {
7793 delete arg1;
7794
7795 if (PyErr_Occurred()) SWIG_fail;
7796 }
7797 resultobj = SWIG_Py_Void();
7798 return resultobj;
7799 fail:
7800 return NULL;
7801 }
7802
7803
7804 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7805 PyObject *resultobj = 0;
7806 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7807 wxNativePixelData *arg2 = 0 ;
7808 void *argp1 = 0 ;
7809 int res1 = 0 ;
7810 void *argp2 = 0 ;
7811 int res2 = 0 ;
7812 PyObject * obj0 = 0 ;
7813 PyObject * obj1 = 0 ;
7814 char * kwnames[] = {
7815 (char *) "self",(char *) "data", NULL
7816 };
7817
7818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7820 if (!SWIG_IsOK(res1)) {
7821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7822 }
7823 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7824 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7825 if (!SWIG_IsOK(res2)) {
7826 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7827 }
7828 if (!argp2) {
7829 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7830 }
7831 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7832 {
7833 (arg1)->Reset((wxNativePixelData const &)*arg2);
7834 if (PyErr_Occurred()) SWIG_fail;
7835 }
7836 resultobj = SWIG_Py_Void();
7837 return resultobj;
7838 fail:
7839 return NULL;
7840 }
7841
7842
7843 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7844 PyObject *resultobj = 0;
7845 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7846 bool result;
7847 void *argp1 = 0 ;
7848 int res1 = 0 ;
7849 PyObject *swig_obj[1] ;
7850
7851 if (!args) SWIG_fail;
7852 swig_obj[0] = args;
7853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7854 if (!SWIG_IsOK(res1)) {
7855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7856 }
7857 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7858 {
7859 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7860 if (PyErr_Occurred()) SWIG_fail;
7861 }
7862 {
7863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7864 }
7865 return resultobj;
7866 fail:
7867 return NULL;
7868 }
7869
7870
7871 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7872 PyObject *resultobj = 0;
7873 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7874 void *argp1 = 0 ;
7875 int res1 = 0 ;
7876 PyObject *swig_obj[1] ;
7877
7878 if (!args) SWIG_fail;
7879 swig_obj[0] = args;
7880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7881 if (!SWIG_IsOK(res1)) {
7882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7883 }
7884 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7885 {
7886 wxNativePixelData_Accessor_nextPixel(arg1);
7887 if (PyErr_Occurred()) SWIG_fail;
7888 }
7889 resultobj = SWIG_Py_Void();
7890 return resultobj;
7891 fail:
7892 return NULL;
7893 }
7894
7895
7896 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7897 PyObject *resultobj = 0;
7898 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7899 wxNativePixelData *arg2 = 0 ;
7900 int arg3 ;
7901 int arg4 ;
7902 void *argp1 = 0 ;
7903 int res1 = 0 ;
7904 void *argp2 = 0 ;
7905 int res2 = 0 ;
7906 int val3 ;
7907 int ecode3 = 0 ;
7908 int val4 ;
7909 int ecode4 = 0 ;
7910 PyObject * obj0 = 0 ;
7911 PyObject * obj1 = 0 ;
7912 PyObject * obj2 = 0 ;
7913 PyObject * obj3 = 0 ;
7914 char * kwnames[] = {
7915 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7916 };
7917
7918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7920 if (!SWIG_IsOK(res1)) {
7921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7922 }
7923 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7924 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7925 if (!SWIG_IsOK(res2)) {
7926 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7927 }
7928 if (!argp2) {
7929 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7930 }
7931 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7932 ecode3 = SWIG_AsVal_int(obj2, &val3);
7933 if (!SWIG_IsOK(ecode3)) {
7934 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7935 }
7936 arg3 = static_cast< int >(val3);
7937 ecode4 = SWIG_AsVal_int(obj3, &val4);
7938 if (!SWIG_IsOK(ecode4)) {
7939 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7940 }
7941 arg4 = static_cast< int >(val4);
7942 {
7943 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7944 if (PyErr_Occurred()) SWIG_fail;
7945 }
7946 resultobj = SWIG_Py_Void();
7947 return resultobj;
7948 fail:
7949 return NULL;
7950 }
7951
7952
7953 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7954 PyObject *resultobj = 0;
7955 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7956 wxNativePixelData *arg2 = 0 ;
7957 int arg3 ;
7958 void *argp1 = 0 ;
7959 int res1 = 0 ;
7960 void *argp2 = 0 ;
7961 int res2 = 0 ;
7962 int val3 ;
7963 int ecode3 = 0 ;
7964 PyObject * obj0 = 0 ;
7965 PyObject * obj1 = 0 ;
7966 PyObject * obj2 = 0 ;
7967 char * kwnames[] = {
7968 (char *) "self",(char *) "data",(char *) "x", NULL
7969 };
7970
7971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7973 if (!SWIG_IsOK(res1)) {
7974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7975 }
7976 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7977 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7978 if (!SWIG_IsOK(res2)) {
7979 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7980 }
7981 if (!argp2) {
7982 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7983 }
7984 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7985 ecode3 = SWIG_AsVal_int(obj2, &val3);
7986 if (!SWIG_IsOK(ecode3)) {
7987 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7988 }
7989 arg3 = static_cast< int >(val3);
7990 {
7991 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7992 if (PyErr_Occurred()) SWIG_fail;
7993 }
7994 resultobj = SWIG_Py_Void();
7995 return resultobj;
7996 fail:
7997 return NULL;
7998 }
7999
8000
8001 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8002 PyObject *resultobj = 0;
8003 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8004 wxNativePixelData *arg2 = 0 ;
8005 int arg3 ;
8006 void *argp1 = 0 ;
8007 int res1 = 0 ;
8008 void *argp2 = 0 ;
8009 int res2 = 0 ;
8010 int val3 ;
8011 int ecode3 = 0 ;
8012 PyObject * obj0 = 0 ;
8013 PyObject * obj1 = 0 ;
8014 PyObject * obj2 = 0 ;
8015 char * kwnames[] = {
8016 (char *) "self",(char *) "data",(char *) "y", NULL
8017 };
8018
8019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8021 if (!SWIG_IsOK(res1)) {
8022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8023 }
8024 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8025 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8026 if (!SWIG_IsOK(res2)) {
8027 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8028 }
8029 if (!argp2) {
8030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8031 }
8032 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8033 ecode3 = SWIG_AsVal_int(obj2, &val3);
8034 if (!SWIG_IsOK(ecode3)) {
8035 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8036 }
8037 arg3 = static_cast< int >(val3);
8038 {
8039 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
8040 if (PyErr_Occurred()) SWIG_fail;
8041 }
8042 resultobj = SWIG_Py_Void();
8043 return resultobj;
8044 fail:
8045 return NULL;
8046 }
8047
8048
8049 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8050 PyObject *resultobj = 0;
8051 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8052 wxNativePixelData *arg2 = 0 ;
8053 int arg3 ;
8054 int arg4 ;
8055 void *argp1 = 0 ;
8056 int res1 = 0 ;
8057 void *argp2 = 0 ;
8058 int res2 = 0 ;
8059 int val3 ;
8060 int ecode3 = 0 ;
8061 int val4 ;
8062 int ecode4 = 0 ;
8063 PyObject * obj0 = 0 ;
8064 PyObject * obj1 = 0 ;
8065 PyObject * obj2 = 0 ;
8066 PyObject * obj3 = 0 ;
8067 char * kwnames[] = {
8068 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8069 };
8070
8071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8073 if (!SWIG_IsOK(res1)) {
8074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8075 }
8076 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8077 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8078 if (!SWIG_IsOK(res2)) {
8079 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8080 }
8081 if (!argp2) {
8082 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8083 }
8084 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8085 ecode3 = SWIG_AsVal_int(obj2, &val3);
8086 if (!SWIG_IsOK(ecode3)) {
8087 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8088 }
8089 arg3 = static_cast< int >(val3);
8090 ecode4 = SWIG_AsVal_int(obj3, &val4);
8091 if (!SWIG_IsOK(ecode4)) {
8092 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8093 }
8094 arg4 = static_cast< int >(val4);
8095 {
8096 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8097 if (PyErr_Occurred()) SWIG_fail;
8098 }
8099 resultobj = SWIG_Py_Void();
8100 return resultobj;
8101 fail:
8102 return NULL;
8103 }
8104
8105
8106 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8107 PyObject *resultobj = 0;
8108 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8109 byte arg2 ;
8110 byte arg3 ;
8111 byte arg4 ;
8112 void *argp1 = 0 ;
8113 int res1 = 0 ;
8114 unsigned char val2 ;
8115 int ecode2 = 0 ;
8116 unsigned char val3 ;
8117 int ecode3 = 0 ;
8118 unsigned char val4 ;
8119 int ecode4 = 0 ;
8120 PyObject * obj0 = 0 ;
8121 PyObject * obj1 = 0 ;
8122 PyObject * obj2 = 0 ;
8123 PyObject * obj3 = 0 ;
8124 char * kwnames[] = {
8125 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8126 };
8127
8128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8130 if (!SWIG_IsOK(res1)) {
8131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8132 }
8133 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8134 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8135 if (!SWIG_IsOK(ecode2)) {
8136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8137 }
8138 arg2 = static_cast< byte >(val2);
8139 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8140 if (!SWIG_IsOK(ecode3)) {
8141 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8142 }
8143 arg3 = static_cast< byte >(val3);
8144 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8145 if (!SWIG_IsOK(ecode4)) {
8146 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8147 }
8148 arg4 = static_cast< byte >(val4);
8149 {
8150 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8151 if (PyErr_Occurred()) SWIG_fail;
8152 }
8153 resultobj = SWIG_Py_Void();
8154 return resultobj;
8155 fail:
8156 return NULL;
8157 }
8158
8159
8160 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8161 PyObject *resultobj = 0;
8162 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8163 PyObject *result = 0 ;
8164 void *argp1 = 0 ;
8165 int res1 = 0 ;
8166 PyObject *swig_obj[1] ;
8167
8168 if (!args) SWIG_fail;
8169 swig_obj[0] = args;
8170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8171 if (!SWIG_IsOK(res1)) {
8172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8173 }
8174 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8175 {
8176 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8177 if (PyErr_Occurred()) SWIG_fail;
8178 }
8179 resultobj = result;
8180 return resultobj;
8181 fail:
8182 return NULL;
8183 }
8184
8185
8186 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8187 PyObject *obj;
8188 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8189 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8190 return SWIG_Py_Void();
8191 }
8192
8193 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8194 return SWIG_Python_InitShadowInstance(args);
8195 }
8196
8197 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8198 PyObject *resultobj = 0;
8199 wxBitmap *arg1 = 0 ;
8200 wxAlphaPixelData *result = 0 ;
8201 void *argp1 = 0 ;
8202 int res1 = 0 ;
8203
8204 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8206 if (!SWIG_IsOK(res1)) {
8207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8208 }
8209 if (!argp1) {
8210 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8211 }
8212 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8213 {
8214 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8215 if (PyErr_Occurred()) SWIG_fail;
8216 }
8217 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8218 return resultobj;
8219 fail:
8220 return NULL;
8221 }
8222
8223
8224 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8225 PyObject *resultobj = 0;
8226 wxBitmap *arg1 = 0 ;
8227 wxRect *arg2 = 0 ;
8228 wxAlphaPixelData *result = 0 ;
8229 void *argp1 = 0 ;
8230 int res1 = 0 ;
8231 wxRect temp2 ;
8232
8233 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8235 if (!SWIG_IsOK(res1)) {
8236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8237 }
8238 if (!argp1) {
8239 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8240 }
8241 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8242 {
8243 arg2 = &temp2;
8244 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8245 }
8246 {
8247 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8248 if (PyErr_Occurred()) SWIG_fail;
8249 }
8250 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8251 return resultobj;
8252 fail:
8253 return NULL;
8254 }
8255
8256
8257 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8258 PyObject *resultobj = 0;
8259 wxBitmap *arg1 = 0 ;
8260 wxPoint *arg2 = 0 ;
8261 wxSize *arg3 = 0 ;
8262 wxAlphaPixelData *result = 0 ;
8263 void *argp1 = 0 ;
8264 int res1 = 0 ;
8265 wxPoint temp2 ;
8266 wxSize temp3 ;
8267
8268 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8269 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8270 if (!SWIG_IsOK(res1)) {
8271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8272 }
8273 if (!argp1) {
8274 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8275 }
8276 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8277 {
8278 arg2 = &temp2;
8279 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8280 }
8281 {
8282 arg3 = &temp3;
8283 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8284 }
8285 {
8286 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8287 if (PyErr_Occurred()) SWIG_fail;
8288 }
8289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8290 return resultobj;
8291 fail:
8292 return NULL;
8293 }
8294
8295
8296 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8297 int argc;
8298 PyObject *argv[4];
8299
8300 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8301 --argc;
8302 if (argc == 1) {
8303 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8304 }
8305 if (argc == 2) {
8306 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8307 }
8308 if (argc == 3) {
8309 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8310 }
8311
8312 fail:
8313 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8314 return NULL;
8315 }
8316
8317
8318 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8319 PyObject *resultobj = 0;
8320 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8321 void *argp1 = 0 ;
8322 int res1 = 0 ;
8323 PyObject *swig_obj[1] ;
8324
8325 if (!args) SWIG_fail;
8326 swig_obj[0] = args;
8327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8328 if (!SWIG_IsOK(res1)) {
8329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8330 }
8331 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8332 {
8333 delete arg1;
8334
8335 if (PyErr_Occurred()) SWIG_fail;
8336 }
8337 resultobj = SWIG_Py_Void();
8338 return resultobj;
8339 fail:
8340 return NULL;
8341 }
8342
8343
8344 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8345 PyObject *resultobj = 0;
8346 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8347 wxAlphaPixelData_Accessor result;
8348 void *argp1 = 0 ;
8349 int res1 = 0 ;
8350 PyObject *swig_obj[1] ;
8351
8352 if (!args) SWIG_fail;
8353 swig_obj[0] = args;
8354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8355 if (!SWIG_IsOK(res1)) {
8356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8357 }
8358 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8359 {
8360 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8361 if (PyErr_Occurred()) SWIG_fail;
8362 }
8363 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8364 return resultobj;
8365 fail:
8366 return NULL;
8367 }
8368
8369
8370 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8371 PyObject *resultobj = 0;
8372 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8373 void *argp1 = 0 ;
8374 int res1 = 0 ;
8375 PyObject *swig_obj[1] ;
8376
8377 if (!args) SWIG_fail;
8378 swig_obj[0] = args;
8379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8380 if (!SWIG_IsOK(res1)) {
8381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8382 }
8383 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8384 {
8385 (arg1)->UseAlpha();
8386 if (PyErr_Occurred()) SWIG_fail;
8387 }
8388 resultobj = SWIG_Py_Void();
8389 return resultobj;
8390 fail:
8391 return NULL;
8392 }
8393
8394
8395 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8396 PyObject *resultobj = 0;
8397 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8398 bool result;
8399 void *argp1 = 0 ;
8400 int res1 = 0 ;
8401 PyObject *swig_obj[1] ;
8402
8403 if (!args) SWIG_fail;
8404 swig_obj[0] = args;
8405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8406 if (!SWIG_IsOK(res1)) {
8407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8408 }
8409 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8410 {
8411 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8412 if (PyErr_Occurred()) SWIG_fail;
8413 }
8414 {
8415 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8416 }
8417 return resultobj;
8418 fail:
8419 return NULL;
8420 }
8421
8422
8423 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8424 PyObject *obj;
8425 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8426 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8427 return SWIG_Py_Void();
8428 }
8429
8430 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8431 return SWIG_Python_InitShadowInstance(args);
8432 }
8433
8434 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8435 PyObject *resultobj = 0;
8436 wxAlphaPixelData *arg1 = 0 ;
8437 wxAlphaPixelData_Accessor *result = 0 ;
8438 void *argp1 = 0 ;
8439 int res1 = 0 ;
8440
8441 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8443 if (!SWIG_IsOK(res1)) {
8444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8445 }
8446 if (!argp1) {
8447 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8448 }
8449 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8450 {
8451 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8452 if (PyErr_Occurred()) SWIG_fail;
8453 }
8454 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8455 return resultobj;
8456 fail:
8457 return NULL;
8458 }
8459
8460
8461 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8462 PyObject *resultobj = 0;
8463 wxBitmap *arg1 = 0 ;
8464 wxAlphaPixelData *arg2 = 0 ;
8465 wxAlphaPixelData_Accessor *result = 0 ;
8466 void *argp1 = 0 ;
8467 int res1 = 0 ;
8468 void *argp2 = 0 ;
8469 int res2 = 0 ;
8470
8471 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8473 if (!SWIG_IsOK(res1)) {
8474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8475 }
8476 if (!argp1) {
8477 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8478 }
8479 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8480 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8481 if (!SWIG_IsOK(res2)) {
8482 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8483 }
8484 if (!argp2) {
8485 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8486 }
8487 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8488 {
8489 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8490 if (PyErr_Occurred()) SWIG_fail;
8491 }
8492 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8493 return resultobj;
8494 fail:
8495 return NULL;
8496 }
8497
8498
8499 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8500 PyObject *resultobj = 0;
8501 wxAlphaPixelData_Accessor *result = 0 ;
8502
8503 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8504 {
8505 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8506 if (PyErr_Occurred()) SWIG_fail;
8507 }
8508 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8509 return resultobj;
8510 fail:
8511 return NULL;
8512 }
8513
8514
8515 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8516 int argc;
8517 PyObject *argv[3];
8518
8519 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8520 --argc;
8521 if (argc == 0) {
8522 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8523 }
8524 if (argc == 1) {
8525 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8526 }
8527 if (argc == 2) {
8528 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8529 }
8530
8531 fail:
8532 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8533 return NULL;
8534 }
8535
8536
8537 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8538 PyObject *resultobj = 0;
8539 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8540 void *argp1 = 0 ;
8541 int res1 = 0 ;
8542 PyObject *swig_obj[1] ;
8543
8544 if (!args) SWIG_fail;
8545 swig_obj[0] = args;
8546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8547 if (!SWIG_IsOK(res1)) {
8548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8549 }
8550 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8551 {
8552 delete arg1;
8553
8554 if (PyErr_Occurred()) SWIG_fail;
8555 }
8556 resultobj = SWIG_Py_Void();
8557 return resultobj;
8558 fail:
8559 return NULL;
8560 }
8561
8562
8563 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8564 PyObject *resultobj = 0;
8565 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8566 wxAlphaPixelData *arg2 = 0 ;
8567 void *argp1 = 0 ;
8568 int res1 = 0 ;
8569 void *argp2 = 0 ;
8570 int res2 = 0 ;
8571 PyObject * obj0 = 0 ;
8572 PyObject * obj1 = 0 ;
8573 char * kwnames[] = {
8574 (char *) "self",(char *) "data", NULL
8575 };
8576
8577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8579 if (!SWIG_IsOK(res1)) {
8580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8581 }
8582 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8583 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8584 if (!SWIG_IsOK(res2)) {
8585 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8586 }
8587 if (!argp2) {
8588 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8589 }
8590 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8591 {
8592 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8593 if (PyErr_Occurred()) SWIG_fail;
8594 }
8595 resultobj = SWIG_Py_Void();
8596 return resultobj;
8597 fail:
8598 return NULL;
8599 }
8600
8601
8602 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8603 PyObject *resultobj = 0;
8604 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8605 bool result;
8606 void *argp1 = 0 ;
8607 int res1 = 0 ;
8608 PyObject *swig_obj[1] ;
8609
8610 if (!args) SWIG_fail;
8611 swig_obj[0] = args;
8612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8613 if (!SWIG_IsOK(res1)) {
8614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8615 }
8616 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8617 {
8618 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8619 if (PyErr_Occurred()) SWIG_fail;
8620 }
8621 {
8622 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8623 }
8624 return resultobj;
8625 fail:
8626 return NULL;
8627 }
8628
8629
8630 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8631 PyObject *resultobj = 0;
8632 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8633 void *argp1 = 0 ;
8634 int res1 = 0 ;
8635 PyObject *swig_obj[1] ;
8636
8637 if (!args) SWIG_fail;
8638 swig_obj[0] = args;
8639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8640 if (!SWIG_IsOK(res1)) {
8641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8642 }
8643 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8644 {
8645 wxAlphaPixelData_Accessor_nextPixel(arg1);
8646 if (PyErr_Occurred()) SWIG_fail;
8647 }
8648 resultobj = SWIG_Py_Void();
8649 return resultobj;
8650 fail:
8651 return NULL;
8652 }
8653
8654
8655 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8656 PyObject *resultobj = 0;
8657 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8658 wxAlphaPixelData *arg2 = 0 ;
8659 int arg3 ;
8660 int arg4 ;
8661 void *argp1 = 0 ;
8662 int res1 = 0 ;
8663 void *argp2 = 0 ;
8664 int res2 = 0 ;
8665 int val3 ;
8666 int ecode3 = 0 ;
8667 int val4 ;
8668 int ecode4 = 0 ;
8669 PyObject * obj0 = 0 ;
8670 PyObject * obj1 = 0 ;
8671 PyObject * obj2 = 0 ;
8672 PyObject * obj3 = 0 ;
8673 char * kwnames[] = {
8674 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8675 };
8676
8677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8679 if (!SWIG_IsOK(res1)) {
8680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8681 }
8682 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8683 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8684 if (!SWIG_IsOK(res2)) {
8685 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8686 }
8687 if (!argp2) {
8688 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8689 }
8690 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8691 ecode3 = SWIG_AsVal_int(obj2, &val3);
8692 if (!SWIG_IsOK(ecode3)) {
8693 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8694 }
8695 arg3 = static_cast< int >(val3);
8696 ecode4 = SWIG_AsVal_int(obj3, &val4);
8697 if (!SWIG_IsOK(ecode4)) {
8698 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8699 }
8700 arg4 = static_cast< int >(val4);
8701 {
8702 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8703 if (PyErr_Occurred()) SWIG_fail;
8704 }
8705 resultobj = SWIG_Py_Void();
8706 return resultobj;
8707 fail:
8708 return NULL;
8709 }
8710
8711
8712 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8713 PyObject *resultobj = 0;
8714 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8715 wxAlphaPixelData *arg2 = 0 ;
8716 int arg3 ;
8717 void *argp1 = 0 ;
8718 int res1 = 0 ;
8719 void *argp2 = 0 ;
8720 int res2 = 0 ;
8721 int val3 ;
8722 int ecode3 = 0 ;
8723 PyObject * obj0 = 0 ;
8724 PyObject * obj1 = 0 ;
8725 PyObject * obj2 = 0 ;
8726 char * kwnames[] = {
8727 (char *) "self",(char *) "data",(char *) "x", NULL
8728 };
8729
8730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8732 if (!SWIG_IsOK(res1)) {
8733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8734 }
8735 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8736 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8737 if (!SWIG_IsOK(res2)) {
8738 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8739 }
8740 if (!argp2) {
8741 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8742 }
8743 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8744 ecode3 = SWIG_AsVal_int(obj2, &val3);
8745 if (!SWIG_IsOK(ecode3)) {
8746 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8747 }
8748 arg3 = static_cast< int >(val3);
8749 {
8750 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8751 if (PyErr_Occurred()) SWIG_fail;
8752 }
8753 resultobj = SWIG_Py_Void();
8754 return resultobj;
8755 fail:
8756 return NULL;
8757 }
8758
8759
8760 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8761 PyObject *resultobj = 0;
8762 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8763 wxAlphaPixelData *arg2 = 0 ;
8764 int arg3 ;
8765 void *argp1 = 0 ;
8766 int res1 = 0 ;
8767 void *argp2 = 0 ;
8768 int res2 = 0 ;
8769 int val3 ;
8770 int ecode3 = 0 ;
8771 PyObject * obj0 = 0 ;
8772 PyObject * obj1 = 0 ;
8773 PyObject * obj2 = 0 ;
8774 char * kwnames[] = {
8775 (char *) "self",(char *) "data",(char *) "y", NULL
8776 };
8777
8778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8780 if (!SWIG_IsOK(res1)) {
8781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8782 }
8783 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8784 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8785 if (!SWIG_IsOK(res2)) {
8786 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8787 }
8788 if (!argp2) {
8789 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8790 }
8791 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8792 ecode3 = SWIG_AsVal_int(obj2, &val3);
8793 if (!SWIG_IsOK(ecode3)) {
8794 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8795 }
8796 arg3 = static_cast< int >(val3);
8797 {
8798 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8799 if (PyErr_Occurred()) SWIG_fail;
8800 }
8801 resultobj = SWIG_Py_Void();
8802 return resultobj;
8803 fail:
8804 return NULL;
8805 }
8806
8807
8808 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8809 PyObject *resultobj = 0;
8810 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8811 wxAlphaPixelData *arg2 = 0 ;
8812 int arg3 ;
8813 int arg4 ;
8814 void *argp1 = 0 ;
8815 int res1 = 0 ;
8816 void *argp2 = 0 ;
8817 int res2 = 0 ;
8818 int val3 ;
8819 int ecode3 = 0 ;
8820 int val4 ;
8821 int ecode4 = 0 ;
8822 PyObject * obj0 = 0 ;
8823 PyObject * obj1 = 0 ;
8824 PyObject * obj2 = 0 ;
8825 PyObject * obj3 = 0 ;
8826 char * kwnames[] = {
8827 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8828 };
8829
8830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8832 if (!SWIG_IsOK(res1)) {
8833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8834 }
8835 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8836 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8837 if (!SWIG_IsOK(res2)) {
8838 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8839 }
8840 if (!argp2) {
8841 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8842 }
8843 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8844 ecode3 = SWIG_AsVal_int(obj2, &val3);
8845 if (!SWIG_IsOK(ecode3)) {
8846 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8847 }
8848 arg3 = static_cast< int >(val3);
8849 ecode4 = SWIG_AsVal_int(obj3, &val4);
8850 if (!SWIG_IsOK(ecode4)) {
8851 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8852 }
8853 arg4 = static_cast< int >(val4);
8854 {
8855 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8856 if (PyErr_Occurred()) SWIG_fail;
8857 }
8858 resultobj = SWIG_Py_Void();
8859 return resultobj;
8860 fail:
8861 return NULL;
8862 }
8863
8864
8865 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8866 PyObject *resultobj = 0;
8867 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8868 byte arg2 ;
8869 byte arg3 ;
8870 byte arg4 ;
8871 byte arg5 ;
8872 void *argp1 = 0 ;
8873 int res1 = 0 ;
8874 unsigned char val2 ;
8875 int ecode2 = 0 ;
8876 unsigned char val3 ;
8877 int ecode3 = 0 ;
8878 unsigned char val4 ;
8879 int ecode4 = 0 ;
8880 unsigned char val5 ;
8881 int ecode5 = 0 ;
8882 PyObject * obj0 = 0 ;
8883 PyObject * obj1 = 0 ;
8884 PyObject * obj2 = 0 ;
8885 PyObject * obj3 = 0 ;
8886 PyObject * obj4 = 0 ;
8887 char * kwnames[] = {
8888 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8889 };
8890
8891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8893 if (!SWIG_IsOK(res1)) {
8894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8895 }
8896 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8897 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8898 if (!SWIG_IsOK(ecode2)) {
8899 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8900 }
8901 arg2 = static_cast< byte >(val2);
8902 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8903 if (!SWIG_IsOK(ecode3)) {
8904 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8905 }
8906 arg3 = static_cast< byte >(val3);
8907 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8908 if (!SWIG_IsOK(ecode4)) {
8909 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8910 }
8911 arg4 = static_cast< byte >(val4);
8912 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8913 if (!SWIG_IsOK(ecode5)) {
8914 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8915 }
8916 arg5 = static_cast< byte >(val5);
8917 {
8918 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8919 if (PyErr_Occurred()) SWIG_fail;
8920 }
8921 resultobj = SWIG_Py_Void();
8922 return resultobj;
8923 fail:
8924 return NULL;
8925 }
8926
8927
8928 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8929 PyObject *resultobj = 0;
8930 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8931 PyObject *result = 0 ;
8932 void *argp1 = 0 ;
8933 int res1 = 0 ;
8934 PyObject *swig_obj[1] ;
8935
8936 if (!args) SWIG_fail;
8937 swig_obj[0] = args;
8938 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8939 if (!SWIG_IsOK(res1)) {
8940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8941 }
8942 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8943 {
8944 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
8945 if (PyErr_Occurred()) SWIG_fail;
8946 }
8947 resultobj = result;
8948 return resultobj;
8949 fail:
8950 return NULL;
8951 }
8952
8953
8954 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8955 PyObject *obj;
8956 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8957 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
8958 return SWIG_Py_Void();
8959 }
8960
8961 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8962 return SWIG_Python_InitShadowInstance(args);
8963 }
8964
8965 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8966 PyObject *resultobj = 0;
8967 wxBitmap *arg1 = 0 ;
8968 wxColour const &arg2_defvalue = wxNullColour ;
8969 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8970 wxMask *result = 0 ;
8971 void *argp1 = 0 ;
8972 int res1 = 0 ;
8973 wxColour temp2 ;
8974 PyObject * obj0 = 0 ;
8975 PyObject * obj1 = 0 ;
8976 char * kwnames[] = {
8977 (char *) "bitmap",(char *) "colour", NULL
8978 };
8979
8980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8981 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8982 if (!SWIG_IsOK(res1)) {
8983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8984 }
8985 if (!argp1) {
8986 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8987 }
8988 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8989 if (obj1) {
8990 {
8991 arg2 = &temp2;
8992 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8993 }
8994 }
8995 {
8996 if (!wxPyCheckForApp()) SWIG_fail;
8997 PyThreadState* __tstate = wxPyBeginAllowThreads();
8998 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8999 wxPyEndAllowThreads(__tstate);
9000 if (PyErr_Occurred()) SWIG_fail;
9001 }
9002 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
9003 return resultobj;
9004 fail:
9005 return NULL;
9006 }
9007
9008
9009 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9010 PyObject *resultobj = 0;
9011 wxMask *arg1 = (wxMask *) 0 ;
9012 void *argp1 = 0 ;
9013 int res1 = 0 ;
9014 PyObject *swig_obj[1] ;
9015
9016 if (!args) SWIG_fail;
9017 swig_obj[0] = args;
9018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
9019 if (!SWIG_IsOK(res1)) {
9020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
9021 }
9022 arg1 = reinterpret_cast< wxMask * >(argp1);
9023 {
9024 delete arg1;
9025
9026 if (PyErr_Occurred()) SWIG_fail;
9027 }
9028 resultobj = SWIG_Py_Void();
9029 return resultobj;
9030 fail:
9031 return NULL;
9032 }
9033
9034
9035 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9036 PyObject *obj;
9037 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9038 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9039 return SWIG_Py_Void();
9040 }
9041
9042 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9043 return SWIG_Python_InitShadowInstance(args);
9044 }
9045
9046 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9047 PyObject *resultobj = 0;
9048 wxString *arg1 = 0 ;
9049 wxBitmapType arg2 ;
9050 int arg3 = (int) -1 ;
9051 int arg4 = (int) -1 ;
9052 wxIcon *result = 0 ;
9053 bool temp1 = false ;
9054 int val2 ;
9055 int ecode2 = 0 ;
9056 int val3 ;
9057 int ecode3 = 0 ;
9058 int val4 ;
9059 int ecode4 = 0 ;
9060 PyObject * obj0 = 0 ;
9061 PyObject * obj1 = 0 ;
9062 PyObject * obj2 = 0 ;
9063 PyObject * obj3 = 0 ;
9064 char * kwnames[] = {
9065 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9066 };
9067
9068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9069 {
9070 arg1 = wxString_in_helper(obj0);
9071 if (arg1 == NULL) SWIG_fail;
9072 temp1 = true;
9073 }
9074 ecode2 = SWIG_AsVal_int(obj1, &val2);
9075 if (!SWIG_IsOK(ecode2)) {
9076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9077 }
9078 arg2 = static_cast< wxBitmapType >(val2);
9079 if (obj2) {
9080 ecode3 = SWIG_AsVal_int(obj2, &val3);
9081 if (!SWIG_IsOK(ecode3)) {
9082 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9083 }
9084 arg3 = static_cast< int >(val3);
9085 }
9086 if (obj3) {
9087 ecode4 = SWIG_AsVal_int(obj3, &val4);
9088 if (!SWIG_IsOK(ecode4)) {
9089 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9090 }
9091 arg4 = static_cast< int >(val4);
9092 }
9093 {
9094 if (!wxPyCheckForApp()) SWIG_fail;
9095 PyThreadState* __tstate = wxPyBeginAllowThreads();
9096 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9097 wxPyEndAllowThreads(__tstate);
9098 if (PyErr_Occurred()) SWIG_fail;
9099 }
9100 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9101 {
9102 if (temp1)
9103 delete arg1;
9104 }
9105 return resultobj;
9106 fail:
9107 {
9108 if (temp1)
9109 delete arg1;
9110 }
9111 return NULL;
9112 }
9113
9114
9115 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9116 PyObject *resultobj = 0;
9117 wxIcon *arg1 = (wxIcon *) 0 ;
9118 void *argp1 = 0 ;
9119 int res1 = 0 ;
9120 PyObject *swig_obj[1] ;
9121
9122 if (!args) SWIG_fail;
9123 swig_obj[0] = args;
9124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9125 if (!SWIG_IsOK(res1)) {
9126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9127 }
9128 arg1 = reinterpret_cast< wxIcon * >(argp1);
9129 {
9130 PyThreadState* __tstate = wxPyBeginAllowThreads();
9131 delete arg1;
9132
9133 wxPyEndAllowThreads(__tstate);
9134 if (PyErr_Occurred()) SWIG_fail;
9135 }
9136 resultobj = SWIG_Py_Void();
9137 return resultobj;
9138 fail:
9139 return NULL;
9140 }
9141
9142
9143 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9144 PyObject *resultobj = 0;
9145 wxIcon *result = 0 ;
9146
9147 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9148 {
9149 if (!wxPyCheckForApp()) SWIG_fail;
9150 PyThreadState* __tstate = wxPyBeginAllowThreads();
9151 result = (wxIcon *)new wxIcon();
9152 wxPyEndAllowThreads(__tstate);
9153 if (PyErr_Occurred()) SWIG_fail;
9154 }
9155 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9156 return resultobj;
9157 fail:
9158 return NULL;
9159 }
9160
9161
9162 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9163 PyObject *resultobj = 0;
9164 wxIconLocation *arg1 = 0 ;
9165 wxIcon *result = 0 ;
9166 void *argp1 = 0 ;
9167 int res1 = 0 ;
9168 PyObject * obj0 = 0 ;
9169 char * kwnames[] = {
9170 (char *) "loc", NULL
9171 };
9172
9173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9174 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9175 if (!SWIG_IsOK(res1)) {
9176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9177 }
9178 if (!argp1) {
9179 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9180 }
9181 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9182 {
9183 if (!wxPyCheckForApp()) SWIG_fail;
9184 PyThreadState* __tstate = wxPyBeginAllowThreads();
9185 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9186 wxPyEndAllowThreads(__tstate);
9187 if (PyErr_Occurred()) SWIG_fail;
9188 }
9189 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9190 return resultobj;
9191 fail:
9192 return NULL;
9193 }
9194
9195
9196 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9197 PyObject *resultobj = 0;
9198 wxBitmap *arg1 = 0 ;
9199 wxIcon *result = 0 ;
9200 void *argp1 = 0 ;
9201 int res1 = 0 ;
9202 PyObject * obj0 = 0 ;
9203 char * kwnames[] = {
9204 (char *) "bmp", NULL
9205 };
9206
9207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9208 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9209 if (!SWIG_IsOK(res1)) {
9210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9211 }
9212 if (!argp1) {
9213 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9214 }
9215 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9216 {
9217 if (!wxPyCheckForApp()) SWIG_fail;
9218 PyThreadState* __tstate = wxPyBeginAllowThreads();
9219 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9220 wxPyEndAllowThreads(__tstate);
9221 if (PyErr_Occurred()) SWIG_fail;
9222 }
9223 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9224 return resultobj;
9225 fail:
9226 return NULL;
9227 }
9228
9229
9230 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9231 PyObject *resultobj = 0;
9232 PyObject *arg1 = (PyObject *) 0 ;
9233 wxIcon *result = 0 ;
9234 PyObject * obj0 = 0 ;
9235 char * kwnames[] = {
9236 (char *) "listOfStrings", NULL
9237 };
9238
9239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9240 arg1 = obj0;
9241 {
9242 if (!wxPyCheckForApp()) SWIG_fail;
9243 PyThreadState* __tstate = wxPyBeginAllowThreads();
9244 result = (wxIcon *)new_wxIcon(arg1);
9245 wxPyEndAllowThreads(__tstate);
9246 if (PyErr_Occurred()) SWIG_fail;
9247 }
9248 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9249 return resultobj;
9250 fail:
9251 return NULL;
9252 }
9253
9254
9255 SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9256 PyObject *resultobj = 0;
9257 wxIcon *arg1 = (wxIcon *) 0 ;
9258 bool result;
9259 void *argp1 = 0 ;
9260 int res1 = 0 ;
9261 PyObject *swig_obj[1] ;
9262
9263 if (!args) SWIG_fail;
9264 swig_obj[0] = args;
9265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9266 if (!SWIG_IsOK(res1)) {
9267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
9268 }
9269 arg1 = reinterpret_cast< wxIcon * >(argp1);
9270 {
9271 PyThreadState* __tstate = wxPyBeginAllowThreads();
9272 result = (bool)(arg1)->IsOk();
9273 wxPyEndAllowThreads(__tstate);
9274 if (PyErr_Occurred()) SWIG_fail;
9275 }
9276 {
9277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9278 }
9279 return resultobj;
9280 fail:
9281 return NULL;
9282 }
9283
9284
9285 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9286 PyObject *resultobj = 0;
9287 wxIcon *arg1 = (wxIcon *) 0 ;
9288 int result;
9289 void *argp1 = 0 ;
9290 int res1 = 0 ;
9291 PyObject *swig_obj[1] ;
9292
9293 if (!args) SWIG_fail;
9294 swig_obj[0] = args;
9295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9296 if (!SWIG_IsOK(res1)) {
9297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9298 }
9299 arg1 = reinterpret_cast< wxIcon * >(argp1);
9300 {
9301 PyThreadState* __tstate = wxPyBeginAllowThreads();
9302 result = (int)(arg1)->GetWidth();
9303 wxPyEndAllowThreads(__tstate);
9304 if (PyErr_Occurred()) SWIG_fail;
9305 }
9306 resultobj = SWIG_From_int(static_cast< int >(result));
9307 return resultobj;
9308 fail:
9309 return NULL;
9310 }
9311
9312
9313 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9314 PyObject *resultobj = 0;
9315 wxIcon *arg1 = (wxIcon *) 0 ;
9316 int result;
9317 void *argp1 = 0 ;
9318 int res1 = 0 ;
9319 PyObject *swig_obj[1] ;
9320
9321 if (!args) SWIG_fail;
9322 swig_obj[0] = args;
9323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9324 if (!SWIG_IsOK(res1)) {
9325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9326 }
9327 arg1 = reinterpret_cast< wxIcon * >(argp1);
9328 {
9329 PyThreadState* __tstate = wxPyBeginAllowThreads();
9330 result = (int)(arg1)->GetHeight();
9331 wxPyEndAllowThreads(__tstate);
9332 if (PyErr_Occurred()) SWIG_fail;
9333 }
9334 resultobj = SWIG_From_int(static_cast< int >(result));
9335 return resultobj;
9336 fail:
9337 return NULL;
9338 }
9339
9340
9341 SWIGINTERN PyObject *_wrap_Icon_GetDepth(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_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9354 }
9355 arg1 = reinterpret_cast< wxIcon * >(argp1);
9356 {
9357 PyThreadState* __tstate = wxPyBeginAllowThreads();
9358 result = (int)(arg1)->GetDepth();
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_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9370 PyObject *resultobj = 0;
9371 wxIcon *arg1 = (wxIcon *) 0 ;
9372 int arg2 ;
9373 void *argp1 = 0 ;
9374 int res1 = 0 ;
9375 int val2 ;
9376 int ecode2 = 0 ;
9377 PyObject * obj0 = 0 ;
9378 PyObject * obj1 = 0 ;
9379 char * kwnames[] = {
9380 (char *) "self",(char *) "w", NULL
9381 };
9382
9383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9385 if (!SWIG_IsOK(res1)) {
9386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9387 }
9388 arg1 = reinterpret_cast< wxIcon * >(argp1);
9389 ecode2 = SWIG_AsVal_int(obj1, &val2);
9390 if (!SWIG_IsOK(ecode2)) {
9391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9392 }
9393 arg2 = static_cast< int >(val2);
9394 {
9395 PyThreadState* __tstate = wxPyBeginAllowThreads();
9396 (arg1)->SetWidth(arg2);
9397 wxPyEndAllowThreads(__tstate);
9398 if (PyErr_Occurred()) SWIG_fail;
9399 }
9400 resultobj = SWIG_Py_Void();
9401 return resultobj;
9402 fail:
9403 return NULL;
9404 }
9405
9406
9407 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9408 PyObject *resultobj = 0;
9409 wxIcon *arg1 = (wxIcon *) 0 ;
9410 int arg2 ;
9411 void *argp1 = 0 ;
9412 int res1 = 0 ;
9413 int val2 ;
9414 int ecode2 = 0 ;
9415 PyObject * obj0 = 0 ;
9416 PyObject * obj1 = 0 ;
9417 char * kwnames[] = {
9418 (char *) "self",(char *) "h", NULL
9419 };
9420
9421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9423 if (!SWIG_IsOK(res1)) {
9424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9425 }
9426 arg1 = reinterpret_cast< wxIcon * >(argp1);
9427 ecode2 = SWIG_AsVal_int(obj1, &val2);
9428 if (!SWIG_IsOK(ecode2)) {
9429 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9430 }
9431 arg2 = static_cast< int >(val2);
9432 {
9433 PyThreadState* __tstate = wxPyBeginAllowThreads();
9434 (arg1)->SetHeight(arg2);
9435 wxPyEndAllowThreads(__tstate);
9436 if (PyErr_Occurred()) SWIG_fail;
9437 }
9438 resultobj = SWIG_Py_Void();
9439 return resultobj;
9440 fail:
9441 return NULL;
9442 }
9443
9444
9445 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9446 PyObject *resultobj = 0;
9447 wxIcon *arg1 = (wxIcon *) 0 ;
9448 int arg2 ;
9449 void *argp1 = 0 ;
9450 int res1 = 0 ;
9451 int val2 ;
9452 int ecode2 = 0 ;
9453 PyObject * obj0 = 0 ;
9454 PyObject * obj1 = 0 ;
9455 char * kwnames[] = {
9456 (char *) "self",(char *) "d", NULL
9457 };
9458
9459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9461 if (!SWIG_IsOK(res1)) {
9462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9463 }
9464 arg1 = reinterpret_cast< wxIcon * >(argp1);
9465 ecode2 = SWIG_AsVal_int(obj1, &val2);
9466 if (!SWIG_IsOK(ecode2)) {
9467 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9468 }
9469 arg2 = static_cast< int >(val2);
9470 {
9471 PyThreadState* __tstate = wxPyBeginAllowThreads();
9472 (arg1)->SetDepth(arg2);
9473 wxPyEndAllowThreads(__tstate);
9474 if (PyErr_Occurred()) SWIG_fail;
9475 }
9476 resultobj = SWIG_Py_Void();
9477 return resultobj;
9478 fail:
9479 return NULL;
9480 }
9481
9482
9483 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9484 PyObject *resultobj = 0;
9485 wxIcon *arg1 = (wxIcon *) 0 ;
9486 wxBitmap *arg2 = 0 ;
9487 void *argp1 = 0 ;
9488 int res1 = 0 ;
9489 void *argp2 = 0 ;
9490 int res2 = 0 ;
9491 PyObject * obj0 = 0 ;
9492 PyObject * obj1 = 0 ;
9493 char * kwnames[] = {
9494 (char *) "self",(char *) "bmp", NULL
9495 };
9496
9497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9499 if (!SWIG_IsOK(res1)) {
9500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9501 }
9502 arg1 = reinterpret_cast< wxIcon * >(argp1);
9503 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9504 if (!SWIG_IsOK(res2)) {
9505 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9506 }
9507 if (!argp2) {
9508 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9509 }
9510 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9511 {
9512 PyThreadState* __tstate = wxPyBeginAllowThreads();
9513 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9514 wxPyEndAllowThreads(__tstate);
9515 if (PyErr_Occurred()) SWIG_fail;
9516 }
9517 resultobj = SWIG_Py_Void();
9518 return resultobj;
9519 fail:
9520 return NULL;
9521 }
9522
9523
9524 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9525 PyObject *obj;
9526 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9527 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9528 return SWIG_Py_Void();
9529 }
9530
9531 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9532 return SWIG_Python_InitShadowInstance(args);
9533 }
9534
9535 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9536 PyObject *resultobj = 0;
9537 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9538 int arg2 = (int) 0 ;
9539 wxIconLocation *result = 0 ;
9540 bool temp1 = false ;
9541 int val2 ;
9542 int ecode2 = 0 ;
9543 PyObject * obj0 = 0 ;
9544 PyObject * obj1 = 0 ;
9545 char * kwnames[] = {
9546 (char *) "filename",(char *) "num", NULL
9547 };
9548
9549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9550 if (obj0) {
9551 {
9552 arg1 = wxString_in_helper(obj0);
9553 if (arg1 == NULL) SWIG_fail;
9554 temp1 = true;
9555 }
9556 }
9557 if (obj1) {
9558 ecode2 = SWIG_AsVal_int(obj1, &val2);
9559 if (!SWIG_IsOK(ecode2)) {
9560 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9561 }
9562 arg2 = static_cast< int >(val2);
9563 }
9564 {
9565 PyThreadState* __tstate = wxPyBeginAllowThreads();
9566 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9567 wxPyEndAllowThreads(__tstate);
9568 if (PyErr_Occurred()) SWIG_fail;
9569 }
9570 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9571 {
9572 if (temp1)
9573 delete arg1;
9574 }
9575 return resultobj;
9576 fail:
9577 {
9578 if (temp1)
9579 delete arg1;
9580 }
9581 return NULL;
9582 }
9583
9584
9585 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9586 PyObject *resultobj = 0;
9587 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9588 void *argp1 = 0 ;
9589 int res1 = 0 ;
9590 PyObject *swig_obj[1] ;
9591
9592 if (!args) SWIG_fail;
9593 swig_obj[0] = args;
9594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9595 if (!SWIG_IsOK(res1)) {
9596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9597 }
9598 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9599 {
9600 PyThreadState* __tstate = wxPyBeginAllowThreads();
9601 delete arg1;
9602
9603 wxPyEndAllowThreads(__tstate);
9604 if (PyErr_Occurred()) SWIG_fail;
9605 }
9606 resultobj = SWIG_Py_Void();
9607 return resultobj;
9608 fail:
9609 return NULL;
9610 }
9611
9612
9613 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9614 PyObject *resultobj = 0;
9615 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9616 bool result;
9617 void *argp1 = 0 ;
9618 int res1 = 0 ;
9619 PyObject *swig_obj[1] ;
9620
9621 if (!args) SWIG_fail;
9622 swig_obj[0] = args;
9623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9624 if (!SWIG_IsOK(res1)) {
9625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9626 }
9627 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9628 {
9629 PyThreadState* __tstate = wxPyBeginAllowThreads();
9630 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9631 wxPyEndAllowThreads(__tstate);
9632 if (PyErr_Occurred()) SWIG_fail;
9633 }
9634 {
9635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9636 }
9637 return resultobj;
9638 fail:
9639 return NULL;
9640 }
9641
9642
9643 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9644 PyObject *resultobj = 0;
9645 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9646 wxString *arg2 = 0 ;
9647 void *argp1 = 0 ;
9648 int res1 = 0 ;
9649 bool temp2 = false ;
9650 PyObject * obj0 = 0 ;
9651 PyObject * obj1 = 0 ;
9652 char * kwnames[] = {
9653 (char *) "self",(char *) "filename", NULL
9654 };
9655
9656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9658 if (!SWIG_IsOK(res1)) {
9659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9660 }
9661 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9662 {
9663 arg2 = wxString_in_helper(obj1);
9664 if (arg2 == NULL) SWIG_fail;
9665 temp2 = true;
9666 }
9667 {
9668 PyThreadState* __tstate = wxPyBeginAllowThreads();
9669 (arg1)->SetFileName((wxString const &)*arg2);
9670 wxPyEndAllowThreads(__tstate);
9671 if (PyErr_Occurred()) SWIG_fail;
9672 }
9673 resultobj = SWIG_Py_Void();
9674 {
9675 if (temp2)
9676 delete arg2;
9677 }
9678 return resultobj;
9679 fail:
9680 {
9681 if (temp2)
9682 delete arg2;
9683 }
9684 return NULL;
9685 }
9686
9687
9688 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9689 PyObject *resultobj = 0;
9690 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9691 wxString *result = 0 ;
9692 void *argp1 = 0 ;
9693 int res1 = 0 ;
9694 PyObject *swig_obj[1] ;
9695
9696 if (!args) SWIG_fail;
9697 swig_obj[0] = args;
9698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9699 if (!SWIG_IsOK(res1)) {
9700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9701 }
9702 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9703 {
9704 PyThreadState* __tstate = wxPyBeginAllowThreads();
9705 {
9706 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9707 result = (wxString *) &_result_ref;
9708 }
9709 wxPyEndAllowThreads(__tstate);
9710 if (PyErr_Occurred()) SWIG_fail;
9711 }
9712 {
9713 #if wxUSE_UNICODE
9714 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9715 #else
9716 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9717 #endif
9718 }
9719 return resultobj;
9720 fail:
9721 return NULL;
9722 }
9723
9724
9725 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9726 PyObject *resultobj = 0;
9727 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9728 int arg2 ;
9729 void *argp1 = 0 ;
9730 int res1 = 0 ;
9731 int val2 ;
9732 int ecode2 = 0 ;
9733 PyObject * obj0 = 0 ;
9734 PyObject * obj1 = 0 ;
9735 char * kwnames[] = {
9736 (char *) "self",(char *) "num", NULL
9737 };
9738
9739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9741 if (!SWIG_IsOK(res1)) {
9742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9743 }
9744 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9745 ecode2 = SWIG_AsVal_int(obj1, &val2);
9746 if (!SWIG_IsOK(ecode2)) {
9747 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9748 }
9749 arg2 = static_cast< int >(val2);
9750 {
9751 PyThreadState* __tstate = wxPyBeginAllowThreads();
9752 wxIconLocation_SetIndex(arg1,arg2);
9753 wxPyEndAllowThreads(__tstate);
9754 if (PyErr_Occurred()) SWIG_fail;
9755 }
9756 resultobj = SWIG_Py_Void();
9757 return resultobj;
9758 fail:
9759 return NULL;
9760 }
9761
9762
9763 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9764 PyObject *resultobj = 0;
9765 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9766 int result;
9767 void *argp1 = 0 ;
9768 int res1 = 0 ;
9769 PyObject *swig_obj[1] ;
9770
9771 if (!args) SWIG_fail;
9772 swig_obj[0] = args;
9773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9774 if (!SWIG_IsOK(res1)) {
9775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9776 }
9777 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9778 {
9779 PyThreadState* __tstate = wxPyBeginAllowThreads();
9780 result = (int)wxIconLocation_GetIndex(arg1);
9781 wxPyEndAllowThreads(__tstate);
9782 if (PyErr_Occurred()) SWIG_fail;
9783 }
9784 resultobj = SWIG_From_int(static_cast< int >(result));
9785 return resultobj;
9786 fail:
9787 return NULL;
9788 }
9789
9790
9791 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9792 PyObject *obj;
9793 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9794 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9795 return SWIG_Py_Void();
9796 }
9797
9798 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9799 return SWIG_Python_InitShadowInstance(args);
9800 }
9801
9802 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9803 PyObject *resultobj = 0;
9804 wxIconBundle *result = 0 ;
9805
9806 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9807 {
9808 PyThreadState* __tstate = wxPyBeginAllowThreads();
9809 result = (wxIconBundle *)new wxIconBundle();
9810 wxPyEndAllowThreads(__tstate);
9811 if (PyErr_Occurred()) SWIG_fail;
9812 }
9813 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9814 return resultobj;
9815 fail:
9816 return NULL;
9817 }
9818
9819
9820 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9821 PyObject *resultobj = 0;
9822 wxString *arg1 = 0 ;
9823 long arg2 ;
9824 wxIconBundle *result = 0 ;
9825 bool temp1 = false ;
9826 long val2 ;
9827 int ecode2 = 0 ;
9828 PyObject * obj0 = 0 ;
9829 PyObject * obj1 = 0 ;
9830 char * kwnames[] = {
9831 (char *) "file",(char *) "type", NULL
9832 };
9833
9834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9835 {
9836 arg1 = wxString_in_helper(obj0);
9837 if (arg1 == NULL) SWIG_fail;
9838 temp1 = true;
9839 }
9840 ecode2 = SWIG_AsVal_long(obj1, &val2);
9841 if (!SWIG_IsOK(ecode2)) {
9842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9843 }
9844 arg2 = static_cast< long >(val2);
9845 {
9846 PyThreadState* __tstate = wxPyBeginAllowThreads();
9847 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9848 wxPyEndAllowThreads(__tstate);
9849 if (PyErr_Occurred()) SWIG_fail;
9850 }
9851 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9852 {
9853 if (temp1)
9854 delete arg1;
9855 }
9856 return resultobj;
9857 fail:
9858 {
9859 if (temp1)
9860 delete arg1;
9861 }
9862 return NULL;
9863 }
9864
9865
9866 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9867 PyObject *resultobj = 0;
9868 wxIcon *arg1 = 0 ;
9869 wxIconBundle *result = 0 ;
9870 void *argp1 = 0 ;
9871 int res1 = 0 ;
9872 PyObject * obj0 = 0 ;
9873 char * kwnames[] = {
9874 (char *) "icon", NULL
9875 };
9876
9877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9878 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9879 if (!SWIG_IsOK(res1)) {
9880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9881 }
9882 if (!argp1) {
9883 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9884 }
9885 arg1 = reinterpret_cast< wxIcon * >(argp1);
9886 {
9887 PyThreadState* __tstate = wxPyBeginAllowThreads();
9888 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9889 wxPyEndAllowThreads(__tstate);
9890 if (PyErr_Occurred()) SWIG_fail;
9891 }
9892 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9893 return resultobj;
9894 fail:
9895 return NULL;
9896 }
9897
9898
9899 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9900 PyObject *resultobj = 0;
9901 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9902 void *argp1 = 0 ;
9903 int res1 = 0 ;
9904 PyObject *swig_obj[1] ;
9905
9906 if (!args) SWIG_fail;
9907 swig_obj[0] = args;
9908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9909 if (!SWIG_IsOK(res1)) {
9910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9911 }
9912 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9913 {
9914 PyThreadState* __tstate = wxPyBeginAllowThreads();
9915 delete arg1;
9916
9917 wxPyEndAllowThreads(__tstate);
9918 if (PyErr_Occurred()) SWIG_fail;
9919 }
9920 resultobj = SWIG_Py_Void();
9921 return resultobj;
9922 fail:
9923 return NULL;
9924 }
9925
9926
9927 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9928 PyObject *resultobj = 0;
9929 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9930 wxIcon *arg2 = 0 ;
9931 void *argp1 = 0 ;
9932 int res1 = 0 ;
9933 void *argp2 = 0 ;
9934 int res2 = 0 ;
9935 PyObject * obj0 = 0 ;
9936 PyObject * obj1 = 0 ;
9937 char * kwnames[] = {
9938 (char *) "self",(char *) "icon", NULL
9939 };
9940
9941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9943 if (!SWIG_IsOK(res1)) {
9944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9945 }
9946 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9947 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9948 if (!SWIG_IsOK(res2)) {
9949 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9950 }
9951 if (!argp2) {
9952 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9953 }
9954 arg2 = reinterpret_cast< wxIcon * >(argp2);
9955 {
9956 PyThreadState* __tstate = wxPyBeginAllowThreads();
9957 (arg1)->AddIcon((wxIcon const &)*arg2);
9958 wxPyEndAllowThreads(__tstate);
9959 if (PyErr_Occurred()) SWIG_fail;
9960 }
9961 resultobj = SWIG_Py_Void();
9962 return resultobj;
9963 fail:
9964 return NULL;
9965 }
9966
9967
9968 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9969 PyObject *resultobj = 0;
9970 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9971 wxString *arg2 = 0 ;
9972 long arg3 ;
9973 void *argp1 = 0 ;
9974 int res1 = 0 ;
9975 bool temp2 = false ;
9976 long val3 ;
9977 int ecode3 = 0 ;
9978 PyObject * obj0 = 0 ;
9979 PyObject * obj1 = 0 ;
9980 PyObject * obj2 = 0 ;
9981 char * kwnames[] = {
9982 (char *) "self",(char *) "file",(char *) "type", NULL
9983 };
9984
9985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9987 if (!SWIG_IsOK(res1)) {
9988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9989 }
9990 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9991 {
9992 arg2 = wxString_in_helper(obj1);
9993 if (arg2 == NULL) SWIG_fail;
9994 temp2 = true;
9995 }
9996 ecode3 = SWIG_AsVal_long(obj2, &val3);
9997 if (!SWIG_IsOK(ecode3)) {
9998 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9999 }
10000 arg3 = static_cast< long >(val3);
10001 {
10002 PyThreadState* __tstate = wxPyBeginAllowThreads();
10003 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10004 wxPyEndAllowThreads(__tstate);
10005 if (PyErr_Occurred()) SWIG_fail;
10006 }
10007 resultobj = SWIG_Py_Void();
10008 {
10009 if (temp2)
10010 delete arg2;
10011 }
10012 return resultobj;
10013 fail:
10014 {
10015 if (temp2)
10016 delete arg2;
10017 }
10018 return NULL;
10019 }
10020
10021
10022 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10023 PyObject *resultobj = 0;
10024 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10025 wxSize *arg2 = 0 ;
10026 wxIcon *result = 0 ;
10027 void *argp1 = 0 ;
10028 int res1 = 0 ;
10029 wxSize temp2 ;
10030 PyObject * obj0 = 0 ;
10031 PyObject * obj1 = 0 ;
10032 char * kwnames[] = {
10033 (char *) "self",(char *) "size", NULL
10034 };
10035
10036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10038 if (!SWIG_IsOK(res1)) {
10039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10040 }
10041 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10042 {
10043 arg2 = &temp2;
10044 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10045 }
10046 {
10047 PyThreadState* __tstate = wxPyBeginAllowThreads();
10048 {
10049 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10050 result = (wxIcon *) &_result_ref;
10051 }
10052 wxPyEndAllowThreads(__tstate);
10053 if (PyErr_Occurred()) SWIG_fail;
10054 }
10055 {
10056 wxIcon* resultptr = new wxIcon(*result);
10057 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10058 }
10059 return resultobj;
10060 fail:
10061 return NULL;
10062 }
10063
10064
10065 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10066 PyObject *obj;
10067 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10068 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10069 return SWIG_Py_Void();
10070 }
10071
10072 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10073 return SWIG_Python_InitShadowInstance(args);
10074 }
10075
10076 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10077 PyObject *resultobj = 0;
10078 wxString *arg1 = 0 ;
10079 long arg2 ;
10080 int arg3 = (int) 0 ;
10081 int arg4 = (int) 0 ;
10082 wxCursor *result = 0 ;
10083 bool temp1 = false ;
10084 long val2 ;
10085 int ecode2 = 0 ;
10086 int val3 ;
10087 int ecode3 = 0 ;
10088 int val4 ;
10089 int ecode4 = 0 ;
10090 PyObject * obj0 = 0 ;
10091 PyObject * obj1 = 0 ;
10092 PyObject * obj2 = 0 ;
10093 PyObject * obj3 = 0 ;
10094 char * kwnames[] = {
10095 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10096 };
10097
10098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10099 {
10100 arg1 = wxString_in_helper(obj0);
10101 if (arg1 == NULL) SWIG_fail;
10102 temp1 = true;
10103 }
10104 ecode2 = SWIG_AsVal_long(obj1, &val2);
10105 if (!SWIG_IsOK(ecode2)) {
10106 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10107 }
10108 arg2 = static_cast< long >(val2);
10109 if (obj2) {
10110 ecode3 = SWIG_AsVal_int(obj2, &val3);
10111 if (!SWIG_IsOK(ecode3)) {
10112 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10113 }
10114 arg3 = static_cast< int >(val3);
10115 }
10116 if (obj3) {
10117 ecode4 = SWIG_AsVal_int(obj3, &val4);
10118 if (!SWIG_IsOK(ecode4)) {
10119 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10120 }
10121 arg4 = static_cast< int >(val4);
10122 }
10123 {
10124 if (!wxPyCheckForApp()) SWIG_fail;
10125 PyThreadState* __tstate = wxPyBeginAllowThreads();
10126 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10127 wxPyEndAllowThreads(__tstate);
10128 if (PyErr_Occurred()) SWIG_fail;
10129 }
10130 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10131 {
10132 if (temp1)
10133 delete arg1;
10134 }
10135 return resultobj;
10136 fail:
10137 {
10138 if (temp1)
10139 delete arg1;
10140 }
10141 return NULL;
10142 }
10143
10144
10145 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10146 PyObject *resultobj = 0;
10147 wxCursor *arg1 = (wxCursor *) 0 ;
10148 void *argp1 = 0 ;
10149 int res1 = 0 ;
10150 PyObject *swig_obj[1] ;
10151
10152 if (!args) SWIG_fail;
10153 swig_obj[0] = args;
10154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10155 if (!SWIG_IsOK(res1)) {
10156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10157 }
10158 arg1 = reinterpret_cast< wxCursor * >(argp1);
10159 {
10160 PyThreadState* __tstate = wxPyBeginAllowThreads();
10161 delete arg1;
10162
10163 wxPyEndAllowThreads(__tstate);
10164 if (PyErr_Occurred()) SWIG_fail;
10165 }
10166 resultobj = SWIG_Py_Void();
10167 return resultobj;
10168 fail:
10169 return NULL;
10170 }
10171
10172
10173 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10174 PyObject *resultobj = 0;
10175 int arg1 ;
10176 wxCursor *result = 0 ;
10177 int val1 ;
10178 int ecode1 = 0 ;
10179 PyObject * obj0 = 0 ;
10180 char * kwnames[] = {
10181 (char *) "id", NULL
10182 };
10183
10184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10185 ecode1 = SWIG_AsVal_int(obj0, &val1);
10186 if (!SWIG_IsOK(ecode1)) {
10187 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10188 }
10189 arg1 = static_cast< int >(val1);
10190 {
10191 if (!wxPyCheckForApp()) SWIG_fail;
10192 PyThreadState* __tstate = wxPyBeginAllowThreads();
10193 result = (wxCursor *)new wxCursor(arg1);
10194 wxPyEndAllowThreads(__tstate);
10195 if (PyErr_Occurred()) SWIG_fail;
10196 }
10197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10198 return resultobj;
10199 fail:
10200 return NULL;
10201 }
10202
10203
10204 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10205 PyObject *resultobj = 0;
10206 wxImage *arg1 = 0 ;
10207 wxCursor *result = 0 ;
10208 void *argp1 = 0 ;
10209 int res1 = 0 ;
10210 PyObject * obj0 = 0 ;
10211 char * kwnames[] = {
10212 (char *) "image", NULL
10213 };
10214
10215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10216 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10217 if (!SWIG_IsOK(res1)) {
10218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10219 }
10220 if (!argp1) {
10221 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10222 }
10223 arg1 = reinterpret_cast< wxImage * >(argp1);
10224 {
10225 if (!wxPyCheckForApp()) SWIG_fail;
10226 PyThreadState* __tstate = wxPyBeginAllowThreads();
10227 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10228 wxPyEndAllowThreads(__tstate);
10229 if (PyErr_Occurred()) SWIG_fail;
10230 }
10231 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10232 return resultobj;
10233 fail:
10234 return NULL;
10235 }
10236
10237
10238 SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10239 PyObject *resultobj = 0;
10240 wxCursor *arg1 = (wxCursor *) 0 ;
10241 bool result;
10242 void *argp1 = 0 ;
10243 int res1 = 0 ;
10244 PyObject *swig_obj[1] ;
10245
10246 if (!args) SWIG_fail;
10247 swig_obj[0] = args;
10248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10249 if (!SWIG_IsOK(res1)) {
10250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
10251 }
10252 arg1 = reinterpret_cast< wxCursor * >(argp1);
10253 {
10254 PyThreadState* __tstate = wxPyBeginAllowThreads();
10255 result = (bool)(arg1)->IsOk();
10256 wxPyEndAllowThreads(__tstate);
10257 if (PyErr_Occurred()) SWIG_fail;
10258 }
10259 {
10260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10261 }
10262 return resultobj;
10263 fail:
10264 return NULL;
10265 }
10266
10267
10268 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10269 PyObject *obj;
10270 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10271 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10272 return SWIG_Py_Void();
10273 }
10274
10275 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10276 return SWIG_Python_InitShadowInstance(args);
10277 }
10278
10279 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10280 PyObject *resultobj = 0;
10281 int arg1 = (int) 0 ;
10282 int arg2 = (int) 0 ;
10283 int arg3 = (int) 0 ;
10284 int arg4 = (int) 0 ;
10285 wxRegion *result = 0 ;
10286 int val1 ;
10287 int ecode1 = 0 ;
10288 int val2 ;
10289 int ecode2 = 0 ;
10290 int val3 ;
10291 int ecode3 = 0 ;
10292 int val4 ;
10293 int ecode4 = 0 ;
10294 PyObject * obj0 = 0 ;
10295 PyObject * obj1 = 0 ;
10296 PyObject * obj2 = 0 ;
10297 PyObject * obj3 = 0 ;
10298 char * kwnames[] = {
10299 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10300 };
10301
10302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10303 if (obj0) {
10304 ecode1 = SWIG_AsVal_int(obj0, &val1);
10305 if (!SWIG_IsOK(ecode1)) {
10306 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10307 }
10308 arg1 = static_cast< int >(val1);
10309 }
10310 if (obj1) {
10311 ecode2 = SWIG_AsVal_int(obj1, &val2);
10312 if (!SWIG_IsOK(ecode2)) {
10313 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10314 }
10315 arg2 = static_cast< int >(val2);
10316 }
10317 if (obj2) {
10318 ecode3 = SWIG_AsVal_int(obj2, &val3);
10319 if (!SWIG_IsOK(ecode3)) {
10320 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10321 }
10322 arg3 = static_cast< int >(val3);
10323 }
10324 if (obj3) {
10325 ecode4 = SWIG_AsVal_int(obj3, &val4);
10326 if (!SWIG_IsOK(ecode4)) {
10327 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10328 }
10329 arg4 = static_cast< int >(val4);
10330 }
10331 {
10332 if (!wxPyCheckForApp()) SWIG_fail;
10333 PyThreadState* __tstate = wxPyBeginAllowThreads();
10334 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10335 wxPyEndAllowThreads(__tstate);
10336 if (PyErr_Occurred()) SWIG_fail;
10337 }
10338 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10339 return resultobj;
10340 fail:
10341 return NULL;
10342 }
10343
10344
10345 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10346 PyObject *resultobj = 0;
10347 wxBitmap *arg1 = 0 ;
10348 wxRegion *result = 0 ;
10349 void *argp1 = 0 ;
10350 int res1 = 0 ;
10351 PyObject * obj0 = 0 ;
10352 char * kwnames[] = {
10353 (char *) "bmp", NULL
10354 };
10355
10356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10357 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10358 if (!SWIG_IsOK(res1)) {
10359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10360 }
10361 if (!argp1) {
10362 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10363 }
10364 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10365 {
10366 if (!wxPyCheckForApp()) SWIG_fail;
10367 PyThreadState* __tstate = wxPyBeginAllowThreads();
10368 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10369 wxPyEndAllowThreads(__tstate);
10370 if (PyErr_Occurred()) SWIG_fail;
10371 }
10372 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10373 return resultobj;
10374 fail:
10375 return NULL;
10376 }
10377
10378
10379 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10380 PyObject *resultobj = 0;
10381 wxBitmap *arg1 = 0 ;
10382 wxColour *arg2 = 0 ;
10383 int arg3 = (int) 0 ;
10384 wxRegion *result = 0 ;
10385 void *argp1 = 0 ;
10386 int res1 = 0 ;
10387 wxColour temp2 ;
10388 int val3 ;
10389 int ecode3 = 0 ;
10390 PyObject * obj0 = 0 ;
10391 PyObject * obj1 = 0 ;
10392 PyObject * obj2 = 0 ;
10393 char * kwnames[] = {
10394 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10395 };
10396
10397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10398 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10399 if (!SWIG_IsOK(res1)) {
10400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10401 }
10402 if (!argp1) {
10403 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10404 }
10405 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10406 {
10407 arg2 = &temp2;
10408 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10409 }
10410 if (obj2) {
10411 ecode3 = SWIG_AsVal_int(obj2, &val3);
10412 if (!SWIG_IsOK(ecode3)) {
10413 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10414 }
10415 arg3 = static_cast< int >(val3);
10416 }
10417 {
10418 if (!wxPyCheckForApp()) SWIG_fail;
10419 PyThreadState* __tstate = wxPyBeginAllowThreads();
10420 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10421 wxPyEndAllowThreads(__tstate);
10422 if (PyErr_Occurred()) SWIG_fail;
10423 }
10424 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10425 return resultobj;
10426 fail:
10427 return NULL;
10428 }
10429
10430
10431 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10432 PyObject *resultobj = 0;
10433 int arg1 ;
10434 wxPoint *arg2 = (wxPoint *) 0 ;
10435 int arg3 = (int) wxWINDING_RULE ;
10436 wxRegion *result = 0 ;
10437 int val3 ;
10438 int ecode3 = 0 ;
10439 PyObject * obj0 = 0 ;
10440 PyObject * obj1 = 0 ;
10441 char * kwnames[] = {
10442 (char *) "points",(char *) "fillStyle", NULL
10443 };
10444
10445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10446 {
10447 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10448 if (arg2 == NULL) SWIG_fail;
10449 }
10450 if (obj1) {
10451 ecode3 = SWIG_AsVal_int(obj1, &val3);
10452 if (!SWIG_IsOK(ecode3)) {
10453 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10454 }
10455 arg3 = static_cast< int >(val3);
10456 }
10457 {
10458 if (!wxPyCheckForApp()) SWIG_fail;
10459 PyThreadState* __tstate = wxPyBeginAllowThreads();
10460 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10461 wxPyEndAllowThreads(__tstate);
10462 if (PyErr_Occurred()) SWIG_fail;
10463 }
10464 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10465 {
10466 if (arg2) delete [] arg2;
10467 }
10468 return resultobj;
10469 fail:
10470 {
10471 if (arg2) delete [] arg2;
10472 }
10473 return NULL;
10474 }
10475
10476
10477 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10478 PyObject *resultobj = 0;
10479 wxRegion *arg1 = (wxRegion *) 0 ;
10480 void *argp1 = 0 ;
10481 int res1 = 0 ;
10482 PyObject *swig_obj[1] ;
10483
10484 if (!args) SWIG_fail;
10485 swig_obj[0] = args;
10486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10487 if (!SWIG_IsOK(res1)) {
10488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10489 }
10490 arg1 = reinterpret_cast< wxRegion * >(argp1);
10491 {
10492 PyThreadState* __tstate = wxPyBeginAllowThreads();
10493 delete arg1;
10494
10495 wxPyEndAllowThreads(__tstate);
10496 if (PyErr_Occurred()) SWIG_fail;
10497 }
10498 resultobj = SWIG_Py_Void();
10499 return resultobj;
10500 fail:
10501 return NULL;
10502 }
10503
10504
10505 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10506 PyObject *resultobj = 0;
10507 wxRegion *arg1 = (wxRegion *) 0 ;
10508 void *argp1 = 0 ;
10509 int res1 = 0 ;
10510 PyObject *swig_obj[1] ;
10511
10512 if (!args) SWIG_fail;
10513 swig_obj[0] = args;
10514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10515 if (!SWIG_IsOK(res1)) {
10516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10517 }
10518 arg1 = reinterpret_cast< wxRegion * >(argp1);
10519 {
10520 PyThreadState* __tstate = wxPyBeginAllowThreads();
10521 (arg1)->Clear();
10522 wxPyEndAllowThreads(__tstate);
10523 if (PyErr_Occurred()) SWIG_fail;
10524 }
10525 resultobj = SWIG_Py_Void();
10526 return resultobj;
10527 fail:
10528 return NULL;
10529 }
10530
10531
10532 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10533 PyObject *resultobj = 0;
10534 wxRegion *arg1 = (wxRegion *) 0 ;
10535 int arg2 ;
10536 int arg3 ;
10537 bool result;
10538 void *argp1 = 0 ;
10539 int res1 = 0 ;
10540 int val2 ;
10541 int ecode2 = 0 ;
10542 int val3 ;
10543 int ecode3 = 0 ;
10544 PyObject * obj0 = 0 ;
10545 PyObject * obj1 = 0 ;
10546 PyObject * obj2 = 0 ;
10547 char * kwnames[] = {
10548 (char *) "self",(char *) "x",(char *) "y", NULL
10549 };
10550
10551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10553 if (!SWIG_IsOK(res1)) {
10554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10555 }
10556 arg1 = reinterpret_cast< wxRegion * >(argp1);
10557 ecode2 = SWIG_AsVal_int(obj1, &val2);
10558 if (!SWIG_IsOK(ecode2)) {
10559 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10560 }
10561 arg2 = static_cast< int >(val2);
10562 ecode3 = SWIG_AsVal_int(obj2, &val3);
10563 if (!SWIG_IsOK(ecode3)) {
10564 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10565 }
10566 arg3 = static_cast< int >(val3);
10567 {
10568 PyThreadState* __tstate = wxPyBeginAllowThreads();
10569 result = (bool)(arg1)->Offset(arg2,arg3);
10570 wxPyEndAllowThreads(__tstate);
10571 if (PyErr_Occurred()) SWIG_fail;
10572 }
10573 {
10574 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10575 }
10576 return resultobj;
10577 fail:
10578 return NULL;
10579 }
10580
10581
10582 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10583 PyObject *resultobj = 0;
10584 wxRegion *arg1 = (wxRegion *) 0 ;
10585 int arg2 ;
10586 int arg3 ;
10587 wxRegionContain result;
10588 void *argp1 = 0 ;
10589 int res1 = 0 ;
10590 int val2 ;
10591 int ecode2 = 0 ;
10592 int val3 ;
10593 int ecode3 = 0 ;
10594 PyObject * obj0 = 0 ;
10595 PyObject * obj1 = 0 ;
10596 PyObject * obj2 = 0 ;
10597 char * kwnames[] = {
10598 (char *) "self",(char *) "x",(char *) "y", NULL
10599 };
10600
10601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10603 if (!SWIG_IsOK(res1)) {
10604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10605 }
10606 arg1 = reinterpret_cast< wxRegion * >(argp1);
10607 ecode2 = SWIG_AsVal_int(obj1, &val2);
10608 if (!SWIG_IsOK(ecode2)) {
10609 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10610 }
10611 arg2 = static_cast< int >(val2);
10612 ecode3 = SWIG_AsVal_int(obj2, &val3);
10613 if (!SWIG_IsOK(ecode3)) {
10614 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10615 }
10616 arg3 = static_cast< int >(val3);
10617 {
10618 PyThreadState* __tstate = wxPyBeginAllowThreads();
10619 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10620 wxPyEndAllowThreads(__tstate);
10621 if (PyErr_Occurred()) SWIG_fail;
10622 }
10623 resultobj = SWIG_From_int(static_cast< int >(result));
10624 return resultobj;
10625 fail:
10626 return NULL;
10627 }
10628
10629
10630 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10631 PyObject *resultobj = 0;
10632 wxRegion *arg1 = (wxRegion *) 0 ;
10633 wxPoint *arg2 = 0 ;
10634 wxRegionContain result;
10635 void *argp1 = 0 ;
10636 int res1 = 0 ;
10637 wxPoint temp2 ;
10638 PyObject * obj0 = 0 ;
10639 PyObject * obj1 = 0 ;
10640 char * kwnames[] = {
10641 (char *) "self",(char *) "pt", NULL
10642 };
10643
10644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10646 if (!SWIG_IsOK(res1)) {
10647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10648 }
10649 arg1 = reinterpret_cast< wxRegion * >(argp1);
10650 {
10651 arg2 = &temp2;
10652 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10653 }
10654 {
10655 PyThreadState* __tstate = wxPyBeginAllowThreads();
10656 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10657 wxPyEndAllowThreads(__tstate);
10658 if (PyErr_Occurred()) SWIG_fail;
10659 }
10660 resultobj = SWIG_From_int(static_cast< int >(result));
10661 return resultobj;
10662 fail:
10663 return NULL;
10664 }
10665
10666
10667 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10668 PyObject *resultobj = 0;
10669 wxRegion *arg1 = (wxRegion *) 0 ;
10670 wxRect *arg2 = 0 ;
10671 wxRegionContain result;
10672 void *argp1 = 0 ;
10673 int res1 = 0 ;
10674 wxRect temp2 ;
10675 PyObject * obj0 = 0 ;
10676 PyObject * obj1 = 0 ;
10677 char * kwnames[] = {
10678 (char *) "self",(char *) "rect", NULL
10679 };
10680
10681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10683 if (!SWIG_IsOK(res1)) {
10684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10685 }
10686 arg1 = reinterpret_cast< wxRegion * >(argp1);
10687 {
10688 arg2 = &temp2;
10689 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10690 }
10691 {
10692 PyThreadState* __tstate = wxPyBeginAllowThreads();
10693 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10694 wxPyEndAllowThreads(__tstate);
10695 if (PyErr_Occurred()) SWIG_fail;
10696 }
10697 resultobj = SWIG_From_int(static_cast< int >(result));
10698 return resultobj;
10699 fail:
10700 return NULL;
10701 }
10702
10703
10704 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10705 PyObject *resultobj = 0;
10706 wxRegion *arg1 = (wxRegion *) 0 ;
10707 int arg2 ;
10708 int arg3 ;
10709 int arg4 ;
10710 int arg5 ;
10711 wxRegionContain result;
10712 void *argp1 = 0 ;
10713 int res1 = 0 ;
10714 int val2 ;
10715 int ecode2 = 0 ;
10716 int val3 ;
10717 int ecode3 = 0 ;
10718 int val4 ;
10719 int ecode4 = 0 ;
10720 int val5 ;
10721 int ecode5 = 0 ;
10722 PyObject * obj0 = 0 ;
10723 PyObject * obj1 = 0 ;
10724 PyObject * obj2 = 0 ;
10725 PyObject * obj3 = 0 ;
10726 PyObject * obj4 = 0 ;
10727 char * kwnames[] = {
10728 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10729 };
10730
10731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10733 if (!SWIG_IsOK(res1)) {
10734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10735 }
10736 arg1 = reinterpret_cast< wxRegion * >(argp1);
10737 ecode2 = SWIG_AsVal_int(obj1, &val2);
10738 if (!SWIG_IsOK(ecode2)) {
10739 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10740 }
10741 arg2 = static_cast< int >(val2);
10742 ecode3 = SWIG_AsVal_int(obj2, &val3);
10743 if (!SWIG_IsOK(ecode3)) {
10744 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10745 }
10746 arg3 = static_cast< int >(val3);
10747 ecode4 = SWIG_AsVal_int(obj3, &val4);
10748 if (!SWIG_IsOK(ecode4)) {
10749 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10750 }
10751 arg4 = static_cast< int >(val4);
10752 ecode5 = SWIG_AsVal_int(obj4, &val5);
10753 if (!SWIG_IsOK(ecode5)) {
10754 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10755 }
10756 arg5 = static_cast< int >(val5);
10757 {
10758 PyThreadState* __tstate = wxPyBeginAllowThreads();
10759 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10760 wxPyEndAllowThreads(__tstate);
10761 if (PyErr_Occurred()) SWIG_fail;
10762 }
10763 resultobj = SWIG_From_int(static_cast< int >(result));
10764 return resultobj;
10765 fail:
10766 return NULL;
10767 }
10768
10769
10770 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10771 PyObject *resultobj = 0;
10772 wxRegion *arg1 = (wxRegion *) 0 ;
10773 wxRect result;
10774 void *argp1 = 0 ;
10775 int res1 = 0 ;
10776 PyObject *swig_obj[1] ;
10777
10778 if (!args) SWIG_fail;
10779 swig_obj[0] = args;
10780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10781 if (!SWIG_IsOK(res1)) {
10782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10783 }
10784 arg1 = reinterpret_cast< wxRegion * >(argp1);
10785 {
10786 PyThreadState* __tstate = wxPyBeginAllowThreads();
10787 result = (arg1)->GetBox();
10788 wxPyEndAllowThreads(__tstate);
10789 if (PyErr_Occurred()) SWIG_fail;
10790 }
10791 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10792 return resultobj;
10793 fail:
10794 return NULL;
10795 }
10796
10797
10798 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10799 PyObject *resultobj = 0;
10800 wxRegion *arg1 = (wxRegion *) 0 ;
10801 int arg2 ;
10802 int arg3 ;
10803 int arg4 ;
10804 int arg5 ;
10805 bool result;
10806 void *argp1 = 0 ;
10807 int res1 = 0 ;
10808 int val2 ;
10809 int ecode2 = 0 ;
10810 int val3 ;
10811 int ecode3 = 0 ;
10812 int val4 ;
10813 int ecode4 = 0 ;
10814 int val5 ;
10815 int ecode5 = 0 ;
10816 PyObject * obj0 = 0 ;
10817 PyObject * obj1 = 0 ;
10818 PyObject * obj2 = 0 ;
10819 PyObject * obj3 = 0 ;
10820 PyObject * obj4 = 0 ;
10821 char * kwnames[] = {
10822 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10823 };
10824
10825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10827 if (!SWIG_IsOK(res1)) {
10828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10829 }
10830 arg1 = reinterpret_cast< wxRegion * >(argp1);
10831 ecode2 = SWIG_AsVal_int(obj1, &val2);
10832 if (!SWIG_IsOK(ecode2)) {
10833 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10834 }
10835 arg2 = static_cast< int >(val2);
10836 ecode3 = SWIG_AsVal_int(obj2, &val3);
10837 if (!SWIG_IsOK(ecode3)) {
10838 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10839 }
10840 arg3 = static_cast< int >(val3);
10841 ecode4 = SWIG_AsVal_int(obj3, &val4);
10842 if (!SWIG_IsOK(ecode4)) {
10843 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10844 }
10845 arg4 = static_cast< int >(val4);
10846 ecode5 = SWIG_AsVal_int(obj4, &val5);
10847 if (!SWIG_IsOK(ecode5)) {
10848 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10849 }
10850 arg5 = static_cast< int >(val5);
10851 {
10852 PyThreadState* __tstate = wxPyBeginAllowThreads();
10853 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10854 wxPyEndAllowThreads(__tstate);
10855 if (PyErr_Occurred()) SWIG_fail;
10856 }
10857 {
10858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10859 }
10860 return resultobj;
10861 fail:
10862 return NULL;
10863 }
10864
10865
10866 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10867 PyObject *resultobj = 0;
10868 wxRegion *arg1 = (wxRegion *) 0 ;
10869 wxRect *arg2 = 0 ;
10870 bool result;
10871 void *argp1 = 0 ;
10872 int res1 = 0 ;
10873 wxRect temp2 ;
10874 PyObject * obj0 = 0 ;
10875 PyObject * obj1 = 0 ;
10876 char * kwnames[] = {
10877 (char *) "self",(char *) "rect", NULL
10878 };
10879
10880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10882 if (!SWIG_IsOK(res1)) {
10883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10884 }
10885 arg1 = reinterpret_cast< wxRegion * >(argp1);
10886 {
10887 arg2 = &temp2;
10888 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10889 }
10890 {
10891 PyThreadState* __tstate = wxPyBeginAllowThreads();
10892 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10893 wxPyEndAllowThreads(__tstate);
10894 if (PyErr_Occurred()) SWIG_fail;
10895 }
10896 {
10897 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10898 }
10899 return resultobj;
10900 fail:
10901 return NULL;
10902 }
10903
10904
10905 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10906 PyObject *resultobj = 0;
10907 wxRegion *arg1 = (wxRegion *) 0 ;
10908 wxRegion *arg2 = 0 ;
10909 bool result;
10910 void *argp1 = 0 ;
10911 int res1 = 0 ;
10912 void *argp2 = 0 ;
10913 int res2 = 0 ;
10914 PyObject * obj0 = 0 ;
10915 PyObject * obj1 = 0 ;
10916 char * kwnames[] = {
10917 (char *) "self",(char *) "region", NULL
10918 };
10919
10920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10922 if (!SWIG_IsOK(res1)) {
10923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10924 }
10925 arg1 = reinterpret_cast< wxRegion * >(argp1);
10926 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10927 if (!SWIG_IsOK(res2)) {
10928 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10929 }
10930 if (!argp2) {
10931 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10932 }
10933 arg2 = reinterpret_cast< wxRegion * >(argp2);
10934 {
10935 PyThreadState* __tstate = wxPyBeginAllowThreads();
10936 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10937 wxPyEndAllowThreads(__tstate);
10938 if (PyErr_Occurred()) SWIG_fail;
10939 }
10940 {
10941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10942 }
10943 return resultobj;
10944 fail:
10945 return NULL;
10946 }
10947
10948
10949 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10950 PyObject *resultobj = 0;
10951 wxRegion *arg1 = (wxRegion *) 0 ;
10952 bool result;
10953 void *argp1 = 0 ;
10954 int res1 = 0 ;
10955 PyObject *swig_obj[1] ;
10956
10957 if (!args) SWIG_fail;
10958 swig_obj[0] = args;
10959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10960 if (!SWIG_IsOK(res1)) {
10961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10962 }
10963 arg1 = reinterpret_cast< wxRegion * >(argp1);
10964 {
10965 PyThreadState* __tstate = wxPyBeginAllowThreads();
10966 result = (bool)(arg1)->IsEmpty();
10967 wxPyEndAllowThreads(__tstate);
10968 if (PyErr_Occurred()) SWIG_fail;
10969 }
10970 {
10971 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10972 }
10973 return resultobj;
10974 fail:
10975 return NULL;
10976 }
10977
10978
10979 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10980 PyObject *resultobj = 0;
10981 wxRegion *arg1 = (wxRegion *) 0 ;
10982 wxRegion *arg2 = 0 ;
10983 bool result;
10984 void *argp1 = 0 ;
10985 int res1 = 0 ;
10986 void *argp2 = 0 ;
10987 int res2 = 0 ;
10988 PyObject * obj0 = 0 ;
10989 PyObject * obj1 = 0 ;
10990 char * kwnames[] = {
10991 (char *) "self",(char *) "region", NULL
10992 };
10993
10994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
10995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10996 if (!SWIG_IsOK(res1)) {
10997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
10998 }
10999 arg1 = reinterpret_cast< wxRegion * >(argp1);
11000 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11001 if (!SWIG_IsOK(res2)) {
11002 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11003 }
11004 if (!argp2) {
11005 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11006 }
11007 arg2 = reinterpret_cast< wxRegion * >(argp2);
11008 {
11009 PyThreadState* __tstate = wxPyBeginAllowThreads();
11010 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11011 wxPyEndAllowThreads(__tstate);
11012 if (PyErr_Occurred()) SWIG_fail;
11013 }
11014 {
11015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11016 }
11017 return resultobj;
11018 fail:
11019 return NULL;
11020 }
11021
11022
11023 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11024 PyObject *resultobj = 0;
11025 wxRegion *arg1 = (wxRegion *) 0 ;
11026 int arg2 ;
11027 int arg3 ;
11028 int arg4 ;
11029 int arg5 ;
11030 bool result;
11031 void *argp1 = 0 ;
11032 int res1 = 0 ;
11033 int val2 ;
11034 int ecode2 = 0 ;
11035 int val3 ;
11036 int ecode3 = 0 ;
11037 int val4 ;
11038 int ecode4 = 0 ;
11039 int val5 ;
11040 int ecode5 = 0 ;
11041 PyObject * obj0 = 0 ;
11042 PyObject * obj1 = 0 ;
11043 PyObject * obj2 = 0 ;
11044 PyObject * obj3 = 0 ;
11045 PyObject * obj4 = 0 ;
11046 char * kwnames[] = {
11047 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11048 };
11049
11050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) 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_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11054 }
11055 arg1 = reinterpret_cast< wxRegion * >(argp1);
11056 ecode2 = SWIG_AsVal_int(obj1, &val2);
11057 if (!SWIG_IsOK(ecode2)) {
11058 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11059 }
11060 arg2 = static_cast< int >(val2);
11061 ecode3 = SWIG_AsVal_int(obj2, &val3);
11062 if (!SWIG_IsOK(ecode3)) {
11063 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11064 }
11065 arg3 = static_cast< int >(val3);
11066 ecode4 = SWIG_AsVal_int(obj3, &val4);
11067 if (!SWIG_IsOK(ecode4)) {
11068 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11069 }
11070 arg4 = static_cast< int >(val4);
11071 ecode5 = SWIG_AsVal_int(obj4, &val5);
11072 if (!SWIG_IsOK(ecode5)) {
11073 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11074 }
11075 arg5 = static_cast< int >(val5);
11076 {
11077 PyThreadState* __tstate = wxPyBeginAllowThreads();
11078 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11079 wxPyEndAllowThreads(__tstate);
11080 if (PyErr_Occurred()) SWIG_fail;
11081 }
11082 {
11083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11084 }
11085 return resultobj;
11086 fail:
11087 return NULL;
11088 }
11089
11090
11091 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11092 PyObject *resultobj = 0;
11093 wxRegion *arg1 = (wxRegion *) 0 ;
11094 wxRect *arg2 = 0 ;
11095 bool result;
11096 void *argp1 = 0 ;
11097 int res1 = 0 ;
11098 wxRect temp2 ;
11099 PyObject * obj0 = 0 ;
11100 PyObject * obj1 = 0 ;
11101 char * kwnames[] = {
11102 (char *) "self",(char *) "rect", NULL
11103 };
11104
11105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11107 if (!SWIG_IsOK(res1)) {
11108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11109 }
11110 arg1 = reinterpret_cast< wxRegion * >(argp1);
11111 {
11112 arg2 = &temp2;
11113 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11114 }
11115 {
11116 PyThreadState* __tstate = wxPyBeginAllowThreads();
11117 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11118 wxPyEndAllowThreads(__tstate);
11119 if (PyErr_Occurred()) SWIG_fail;
11120 }
11121 {
11122 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11123 }
11124 return resultobj;
11125 fail:
11126 return NULL;
11127 }
11128
11129
11130 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11131 PyObject *resultobj = 0;
11132 wxRegion *arg1 = (wxRegion *) 0 ;
11133 wxRegion *arg2 = 0 ;
11134 bool result;
11135 void *argp1 = 0 ;
11136 int res1 = 0 ;
11137 void *argp2 = 0 ;
11138 int res2 = 0 ;
11139 PyObject * obj0 = 0 ;
11140 PyObject * obj1 = 0 ;
11141 char * kwnames[] = {
11142 (char *) "self",(char *) "region", NULL
11143 };
11144
11145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11147 if (!SWIG_IsOK(res1)) {
11148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11149 }
11150 arg1 = reinterpret_cast< wxRegion * >(argp1);
11151 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11152 if (!SWIG_IsOK(res2)) {
11153 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11154 }
11155 if (!argp2) {
11156 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11157 }
11158 arg2 = reinterpret_cast< wxRegion * >(argp2);
11159 {
11160 PyThreadState* __tstate = wxPyBeginAllowThreads();
11161 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11162 wxPyEndAllowThreads(__tstate);
11163 if (PyErr_Occurred()) SWIG_fail;
11164 }
11165 {
11166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11167 }
11168 return resultobj;
11169 fail:
11170 return NULL;
11171 }
11172
11173
11174 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11175 PyObject *resultobj = 0;
11176 wxRegion *arg1 = (wxRegion *) 0 ;
11177 int arg2 ;
11178 int arg3 ;
11179 int arg4 ;
11180 int arg5 ;
11181 bool result;
11182 void *argp1 = 0 ;
11183 int res1 = 0 ;
11184 int val2 ;
11185 int ecode2 = 0 ;
11186 int val3 ;
11187 int ecode3 = 0 ;
11188 int val4 ;
11189 int ecode4 = 0 ;
11190 int val5 ;
11191 int ecode5 = 0 ;
11192 PyObject * obj0 = 0 ;
11193 PyObject * obj1 = 0 ;
11194 PyObject * obj2 = 0 ;
11195 PyObject * obj3 = 0 ;
11196 PyObject * obj4 = 0 ;
11197 char * kwnames[] = {
11198 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11199 };
11200
11201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) 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_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11205 }
11206 arg1 = reinterpret_cast< wxRegion * >(argp1);
11207 ecode2 = SWIG_AsVal_int(obj1, &val2);
11208 if (!SWIG_IsOK(ecode2)) {
11209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11210 }
11211 arg2 = static_cast< int >(val2);
11212 ecode3 = SWIG_AsVal_int(obj2, &val3);
11213 if (!SWIG_IsOK(ecode3)) {
11214 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11215 }
11216 arg3 = static_cast< int >(val3);
11217 ecode4 = SWIG_AsVal_int(obj3, &val4);
11218 if (!SWIG_IsOK(ecode4)) {
11219 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11220 }
11221 arg4 = static_cast< int >(val4);
11222 ecode5 = SWIG_AsVal_int(obj4, &val5);
11223 if (!SWIG_IsOK(ecode5)) {
11224 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11225 }
11226 arg5 = static_cast< int >(val5);
11227 {
11228 PyThreadState* __tstate = wxPyBeginAllowThreads();
11229 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11230 wxPyEndAllowThreads(__tstate);
11231 if (PyErr_Occurred()) SWIG_fail;
11232 }
11233 {
11234 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11235 }
11236 return resultobj;
11237 fail:
11238 return NULL;
11239 }
11240
11241
11242 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11243 PyObject *resultobj = 0;
11244 wxRegion *arg1 = (wxRegion *) 0 ;
11245 wxRect *arg2 = 0 ;
11246 bool result;
11247 void *argp1 = 0 ;
11248 int res1 = 0 ;
11249 wxRect temp2 ;
11250 PyObject * obj0 = 0 ;
11251 PyObject * obj1 = 0 ;
11252 char * kwnames[] = {
11253 (char *) "self",(char *) "rect", NULL
11254 };
11255
11256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11258 if (!SWIG_IsOK(res1)) {
11259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11260 }
11261 arg1 = reinterpret_cast< wxRegion * >(argp1);
11262 {
11263 arg2 = &temp2;
11264 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11265 }
11266 {
11267 PyThreadState* __tstate = wxPyBeginAllowThreads();
11268 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11269 wxPyEndAllowThreads(__tstate);
11270 if (PyErr_Occurred()) SWIG_fail;
11271 }
11272 {
11273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11274 }
11275 return resultobj;
11276 fail:
11277 return NULL;
11278 }
11279
11280
11281 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11282 PyObject *resultobj = 0;
11283 wxRegion *arg1 = (wxRegion *) 0 ;
11284 wxRegion *arg2 = 0 ;
11285 bool result;
11286 void *argp1 = 0 ;
11287 int res1 = 0 ;
11288 void *argp2 = 0 ;
11289 int res2 = 0 ;
11290 PyObject * obj0 = 0 ;
11291 PyObject * obj1 = 0 ;
11292 char * kwnames[] = {
11293 (char *) "self",(char *) "region", NULL
11294 };
11295
11296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11298 if (!SWIG_IsOK(res1)) {
11299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11300 }
11301 arg1 = reinterpret_cast< wxRegion * >(argp1);
11302 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11303 if (!SWIG_IsOK(res2)) {
11304 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11305 }
11306 if (!argp2) {
11307 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11308 }
11309 arg2 = reinterpret_cast< wxRegion * >(argp2);
11310 {
11311 PyThreadState* __tstate = wxPyBeginAllowThreads();
11312 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11313 wxPyEndAllowThreads(__tstate);
11314 if (PyErr_Occurred()) SWIG_fail;
11315 }
11316 {
11317 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11318 }
11319 return resultobj;
11320 fail:
11321 return NULL;
11322 }
11323
11324
11325 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11326 PyObject *resultobj = 0;
11327 wxRegion *arg1 = (wxRegion *) 0 ;
11328 int arg2 ;
11329 int arg3 ;
11330 int arg4 ;
11331 int arg5 ;
11332 bool result;
11333 void *argp1 = 0 ;
11334 int res1 = 0 ;
11335 int val2 ;
11336 int ecode2 = 0 ;
11337 int val3 ;
11338 int ecode3 = 0 ;
11339 int val4 ;
11340 int ecode4 = 0 ;
11341 int val5 ;
11342 int ecode5 = 0 ;
11343 PyObject * obj0 = 0 ;
11344 PyObject * obj1 = 0 ;
11345 PyObject * obj2 = 0 ;
11346 PyObject * obj3 = 0 ;
11347 PyObject * obj4 = 0 ;
11348 char * kwnames[] = {
11349 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11350 };
11351
11352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) 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_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11356 }
11357 arg1 = reinterpret_cast< wxRegion * >(argp1);
11358 ecode2 = SWIG_AsVal_int(obj1, &val2);
11359 if (!SWIG_IsOK(ecode2)) {
11360 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11361 }
11362 arg2 = static_cast< int >(val2);
11363 ecode3 = SWIG_AsVal_int(obj2, &val3);
11364 if (!SWIG_IsOK(ecode3)) {
11365 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11366 }
11367 arg3 = static_cast< int >(val3);
11368 ecode4 = SWIG_AsVal_int(obj3, &val4);
11369 if (!SWIG_IsOK(ecode4)) {
11370 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11371 }
11372 arg4 = static_cast< int >(val4);
11373 ecode5 = SWIG_AsVal_int(obj4, &val5);
11374 if (!SWIG_IsOK(ecode5)) {
11375 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11376 }
11377 arg5 = static_cast< int >(val5);
11378 {
11379 PyThreadState* __tstate = wxPyBeginAllowThreads();
11380 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11381 wxPyEndAllowThreads(__tstate);
11382 if (PyErr_Occurred()) SWIG_fail;
11383 }
11384 {
11385 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11386 }
11387 return resultobj;
11388 fail:
11389 return NULL;
11390 }
11391
11392
11393 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11394 PyObject *resultobj = 0;
11395 wxRegion *arg1 = (wxRegion *) 0 ;
11396 wxRect *arg2 = 0 ;
11397 bool result;
11398 void *argp1 = 0 ;
11399 int res1 = 0 ;
11400 wxRect temp2 ;
11401 PyObject * obj0 = 0 ;
11402 PyObject * obj1 = 0 ;
11403 char * kwnames[] = {
11404 (char *) "self",(char *) "rect", NULL
11405 };
11406
11407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11409 if (!SWIG_IsOK(res1)) {
11410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11411 }
11412 arg1 = reinterpret_cast< wxRegion * >(argp1);
11413 {
11414 arg2 = &temp2;
11415 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11416 }
11417 {
11418 PyThreadState* __tstate = wxPyBeginAllowThreads();
11419 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11420 wxPyEndAllowThreads(__tstate);
11421 if (PyErr_Occurred()) SWIG_fail;
11422 }
11423 {
11424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11425 }
11426 return resultobj;
11427 fail:
11428 return NULL;
11429 }
11430
11431
11432 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11433 PyObject *resultobj = 0;
11434 wxRegion *arg1 = (wxRegion *) 0 ;
11435 wxRegion *arg2 = 0 ;
11436 bool result;
11437 void *argp1 = 0 ;
11438 int res1 = 0 ;
11439 void *argp2 = 0 ;
11440 int res2 = 0 ;
11441 PyObject * obj0 = 0 ;
11442 PyObject * obj1 = 0 ;
11443 char * kwnames[] = {
11444 (char *) "self",(char *) "region", NULL
11445 };
11446
11447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11449 if (!SWIG_IsOK(res1)) {
11450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11451 }
11452 arg1 = reinterpret_cast< wxRegion * >(argp1);
11453 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11454 if (!SWIG_IsOK(res2)) {
11455 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11456 }
11457 if (!argp2) {
11458 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11459 }
11460 arg2 = reinterpret_cast< wxRegion * >(argp2);
11461 {
11462 PyThreadState* __tstate = wxPyBeginAllowThreads();
11463 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11464 wxPyEndAllowThreads(__tstate);
11465 if (PyErr_Occurred()) SWIG_fail;
11466 }
11467 {
11468 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11469 }
11470 return resultobj;
11471 fail:
11472 return NULL;
11473 }
11474
11475
11476 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11477 PyObject *resultobj = 0;
11478 wxRegion *arg1 = (wxRegion *) 0 ;
11479 SwigValueWrapper<wxBitmap > result;
11480 void *argp1 = 0 ;
11481 int res1 = 0 ;
11482 PyObject *swig_obj[1] ;
11483
11484 if (!args) SWIG_fail;
11485 swig_obj[0] = args;
11486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11487 if (!SWIG_IsOK(res1)) {
11488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11489 }
11490 arg1 = reinterpret_cast< wxRegion * >(argp1);
11491 {
11492 PyThreadState* __tstate = wxPyBeginAllowThreads();
11493 result = (arg1)->ConvertToBitmap();
11494 wxPyEndAllowThreads(__tstate);
11495 if (PyErr_Occurred()) SWIG_fail;
11496 }
11497 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11498 return resultobj;
11499 fail:
11500 return NULL;
11501 }
11502
11503
11504 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11505 PyObject *resultobj = 0;
11506 wxRegion *arg1 = (wxRegion *) 0 ;
11507 wxBitmap *arg2 = 0 ;
11508 bool result;
11509 void *argp1 = 0 ;
11510 int res1 = 0 ;
11511 void *argp2 = 0 ;
11512 int res2 = 0 ;
11513 PyObject * obj0 = 0 ;
11514 PyObject * obj1 = 0 ;
11515 char * kwnames[] = {
11516 (char *) "self",(char *) "bmp", NULL
11517 };
11518
11519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11521 if (!SWIG_IsOK(res1)) {
11522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11523 }
11524 arg1 = reinterpret_cast< wxRegion * >(argp1);
11525 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11526 if (!SWIG_IsOK(res2)) {
11527 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11528 }
11529 if (!argp2) {
11530 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11531 }
11532 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11533 {
11534 PyThreadState* __tstate = wxPyBeginAllowThreads();
11535 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11536 wxPyEndAllowThreads(__tstate);
11537 if (PyErr_Occurred()) SWIG_fail;
11538 }
11539 {
11540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11541 }
11542 return resultobj;
11543 fail:
11544 return NULL;
11545 }
11546
11547
11548 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11549 PyObject *resultobj = 0;
11550 wxRegion *arg1 = (wxRegion *) 0 ;
11551 wxBitmap *arg2 = 0 ;
11552 wxColour *arg3 = 0 ;
11553 int arg4 = (int) 0 ;
11554 bool result;
11555 void *argp1 = 0 ;
11556 int res1 = 0 ;
11557 void *argp2 = 0 ;
11558 int res2 = 0 ;
11559 wxColour temp3 ;
11560 int val4 ;
11561 int ecode4 = 0 ;
11562 PyObject * obj0 = 0 ;
11563 PyObject * obj1 = 0 ;
11564 PyObject * obj2 = 0 ;
11565 PyObject * obj3 = 0 ;
11566 char * kwnames[] = {
11567 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11568 };
11569
11570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11572 if (!SWIG_IsOK(res1)) {
11573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11574 }
11575 arg1 = reinterpret_cast< wxRegion * >(argp1);
11576 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11577 if (!SWIG_IsOK(res2)) {
11578 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11579 }
11580 if (!argp2) {
11581 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11582 }
11583 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11584 {
11585 arg3 = &temp3;
11586 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11587 }
11588 if (obj3) {
11589 ecode4 = SWIG_AsVal_int(obj3, &val4);
11590 if (!SWIG_IsOK(ecode4)) {
11591 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11592 }
11593 arg4 = static_cast< int >(val4);
11594 }
11595 {
11596 PyThreadState* __tstate = wxPyBeginAllowThreads();
11597 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11598 wxPyEndAllowThreads(__tstate);
11599 if (PyErr_Occurred()) SWIG_fail;
11600 }
11601 {
11602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11603 }
11604 return resultobj;
11605 fail:
11606 return NULL;
11607 }
11608
11609
11610 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11611 PyObject *obj;
11612 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11613 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11614 return SWIG_Py_Void();
11615 }
11616
11617 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11618 return SWIG_Python_InitShadowInstance(args);
11619 }
11620
11621 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11622 PyObject *resultobj = 0;
11623 wxRegion *arg1 = 0 ;
11624 wxRegionIterator *result = 0 ;
11625 void *argp1 = 0 ;
11626 int res1 = 0 ;
11627 PyObject * obj0 = 0 ;
11628 char * kwnames[] = {
11629 (char *) "region", NULL
11630 };
11631
11632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11633 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11634 if (!SWIG_IsOK(res1)) {
11635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11636 }
11637 if (!argp1) {
11638 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11639 }
11640 arg1 = reinterpret_cast< wxRegion * >(argp1);
11641 {
11642 if (!wxPyCheckForApp()) SWIG_fail;
11643 PyThreadState* __tstate = wxPyBeginAllowThreads();
11644 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11645 wxPyEndAllowThreads(__tstate);
11646 if (PyErr_Occurred()) SWIG_fail;
11647 }
11648 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11649 return resultobj;
11650 fail:
11651 return NULL;
11652 }
11653
11654
11655 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11656 PyObject *resultobj = 0;
11657 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11658 void *argp1 = 0 ;
11659 int res1 = 0 ;
11660 PyObject *swig_obj[1] ;
11661
11662 if (!args) SWIG_fail;
11663 swig_obj[0] = args;
11664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11665 if (!SWIG_IsOK(res1)) {
11666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11667 }
11668 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11669 {
11670 PyThreadState* __tstate = wxPyBeginAllowThreads();
11671 delete arg1;
11672
11673 wxPyEndAllowThreads(__tstate);
11674 if (PyErr_Occurred()) SWIG_fail;
11675 }
11676 resultobj = SWIG_Py_Void();
11677 return resultobj;
11678 fail:
11679 return NULL;
11680 }
11681
11682
11683 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11684 PyObject *resultobj = 0;
11685 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11686 int result;
11687 void *argp1 = 0 ;
11688 int res1 = 0 ;
11689 PyObject *swig_obj[1] ;
11690
11691 if (!args) SWIG_fail;
11692 swig_obj[0] = args;
11693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11694 if (!SWIG_IsOK(res1)) {
11695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11696 }
11697 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11698 {
11699 PyThreadState* __tstate = wxPyBeginAllowThreads();
11700 result = (int)(arg1)->GetX();
11701 wxPyEndAllowThreads(__tstate);
11702 if (PyErr_Occurred()) SWIG_fail;
11703 }
11704 resultobj = SWIG_From_int(static_cast< int >(result));
11705 return resultobj;
11706 fail:
11707 return NULL;
11708 }
11709
11710
11711 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11712 PyObject *resultobj = 0;
11713 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11714 int result;
11715 void *argp1 = 0 ;
11716 int res1 = 0 ;
11717 PyObject *swig_obj[1] ;
11718
11719 if (!args) SWIG_fail;
11720 swig_obj[0] = args;
11721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11722 if (!SWIG_IsOK(res1)) {
11723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11724 }
11725 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11726 {
11727 PyThreadState* __tstate = wxPyBeginAllowThreads();
11728 result = (int)(arg1)->GetY();
11729 wxPyEndAllowThreads(__tstate);
11730 if (PyErr_Occurred()) SWIG_fail;
11731 }
11732 resultobj = SWIG_From_int(static_cast< int >(result));
11733 return resultobj;
11734 fail:
11735 return NULL;
11736 }
11737
11738
11739 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(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_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11752 }
11753 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11754 {
11755 PyThreadState* __tstate = wxPyBeginAllowThreads();
11756 result = (int)(arg1)->GetW();
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_GetWidth(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_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11780 }
11781 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11782 {
11783 PyThreadState* __tstate = wxPyBeginAllowThreads();
11784 result = (int)(arg1)->GetWidth();
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_GetH(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_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11808 }
11809 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11810 {
11811 PyThreadState* __tstate = wxPyBeginAllowThreads();
11812 result = (int)(arg1)->GetH();
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_GetHeight(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_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11836 }
11837 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11838 {
11839 PyThreadState* __tstate = wxPyBeginAllowThreads();
11840 result = (int)(arg1)->GetHeight();
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_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11852 PyObject *resultobj = 0;
11853 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11854 wxRect 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_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11864 }
11865 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11866 {
11867 PyThreadState* __tstate = wxPyBeginAllowThreads();
11868 result = (arg1)->GetRect();
11869 wxPyEndAllowThreads(__tstate);
11870 if (PyErr_Occurred()) SWIG_fail;
11871 }
11872 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11873 return resultobj;
11874 fail:
11875 return NULL;
11876 }
11877
11878
11879 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11880 PyObject *resultobj = 0;
11881 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11882 bool 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_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11892 }
11893 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11894 {
11895 PyThreadState* __tstate = wxPyBeginAllowThreads();
11896 result = (bool)(arg1)->HaveRects();
11897 wxPyEndAllowThreads(__tstate);
11898 if (PyErr_Occurred()) SWIG_fail;
11899 }
11900 {
11901 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11902 }
11903 return resultobj;
11904 fail:
11905 return NULL;
11906 }
11907
11908
11909 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11910 PyObject *resultobj = 0;
11911 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11912 void *argp1 = 0 ;
11913 int res1 = 0 ;
11914 PyObject *swig_obj[1] ;
11915
11916 if (!args) SWIG_fail;
11917 swig_obj[0] = args;
11918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11919 if (!SWIG_IsOK(res1)) {
11920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11921 }
11922 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11923 {
11924 PyThreadState* __tstate = wxPyBeginAllowThreads();
11925 (arg1)->Reset();
11926 wxPyEndAllowThreads(__tstate);
11927 if (PyErr_Occurred()) SWIG_fail;
11928 }
11929 resultobj = SWIG_Py_Void();
11930 return resultobj;
11931 fail:
11932 return NULL;
11933 }
11934
11935
11936 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11937 PyObject *resultobj = 0;
11938 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
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_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11948 }
11949 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11950 {
11951 PyThreadState* __tstate = wxPyBeginAllowThreads();
11952 wxRegionIterator_Next(arg1);
11953 wxPyEndAllowThreads(__tstate);
11954 if (PyErr_Occurred()) SWIG_fail;
11955 }
11956 resultobj = SWIG_Py_Void();
11957 return resultobj;
11958 fail:
11959 return NULL;
11960 }
11961
11962
11963 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11964 PyObject *resultobj = 0;
11965 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11966 bool result;
11967 void *argp1 = 0 ;
11968 int res1 = 0 ;
11969 PyObject *swig_obj[1] ;
11970
11971 if (!args) SWIG_fail;
11972 swig_obj[0] = args;
11973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11974 if (!SWIG_IsOK(res1)) {
11975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11976 }
11977 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11978 {
11979 PyThreadState* __tstate = wxPyBeginAllowThreads();
11980 result = (bool)wxRegionIterator___nonzero__(arg1);
11981 wxPyEndAllowThreads(__tstate);
11982 if (PyErr_Occurred()) SWIG_fail;
11983 }
11984 {
11985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11986 }
11987 return resultobj;
11988 fail:
11989 return NULL;
11990 }
11991
11992
11993 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11994 PyObject *obj;
11995 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11996 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
11997 return SWIG_Py_Void();
11998 }
11999
12000 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12001 return SWIG_Python_InitShadowInstance(args);
12002 }
12003
12004 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12005 PyObject *resultobj = 0;
12006 wxNativeFontInfo *result = 0 ;
12007
12008 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12009 {
12010 PyThreadState* __tstate = wxPyBeginAllowThreads();
12011 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12012 wxPyEndAllowThreads(__tstate);
12013 if (PyErr_Occurred()) SWIG_fail;
12014 }
12015 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12016 return resultobj;
12017 fail:
12018 return NULL;
12019 }
12020
12021
12022 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12023 PyObject *resultobj = 0;
12024 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12025 void *argp1 = 0 ;
12026 int res1 = 0 ;
12027 PyObject *swig_obj[1] ;
12028
12029 if (!args) SWIG_fail;
12030 swig_obj[0] = args;
12031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12032 if (!SWIG_IsOK(res1)) {
12033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12034 }
12035 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12036 {
12037 PyThreadState* __tstate = wxPyBeginAllowThreads();
12038 delete arg1;
12039
12040 wxPyEndAllowThreads(__tstate);
12041 if (PyErr_Occurred()) SWIG_fail;
12042 }
12043 resultobj = SWIG_Py_Void();
12044 return resultobj;
12045 fail:
12046 return NULL;
12047 }
12048
12049
12050 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12051 PyObject *resultobj = 0;
12052 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12053 void *argp1 = 0 ;
12054 int res1 = 0 ;
12055 PyObject *swig_obj[1] ;
12056
12057 if (!args) SWIG_fail;
12058 swig_obj[0] = args;
12059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12060 if (!SWIG_IsOK(res1)) {
12061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12062 }
12063 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12064 {
12065 PyThreadState* __tstate = wxPyBeginAllowThreads();
12066 (arg1)->Init();
12067 wxPyEndAllowThreads(__tstate);
12068 if (PyErr_Occurred()) SWIG_fail;
12069 }
12070 resultobj = SWIG_Py_Void();
12071 return resultobj;
12072 fail:
12073 return NULL;
12074 }
12075
12076
12077 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12078 PyObject *resultobj = 0;
12079 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12080 wxFont *arg2 = 0 ;
12081 void *argp1 = 0 ;
12082 int res1 = 0 ;
12083 void *argp2 = 0 ;
12084 int res2 = 0 ;
12085 PyObject * obj0 = 0 ;
12086 PyObject * obj1 = 0 ;
12087 char * kwnames[] = {
12088 (char *) "self",(char *) "font", NULL
12089 };
12090
12091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12093 if (!SWIG_IsOK(res1)) {
12094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12095 }
12096 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12097 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12098 if (!SWIG_IsOK(res2)) {
12099 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12100 }
12101 if (!argp2) {
12102 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12103 }
12104 arg2 = reinterpret_cast< wxFont * >(argp2);
12105 {
12106 PyThreadState* __tstate = wxPyBeginAllowThreads();
12107 (arg1)->InitFromFont((wxFont const &)*arg2);
12108 wxPyEndAllowThreads(__tstate);
12109 if (PyErr_Occurred()) SWIG_fail;
12110 }
12111 resultobj = SWIG_Py_Void();
12112 return resultobj;
12113 fail:
12114 return NULL;
12115 }
12116
12117
12118 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12119 PyObject *resultobj = 0;
12120 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12121 int result;
12122 void *argp1 = 0 ;
12123 int res1 = 0 ;
12124 PyObject *swig_obj[1] ;
12125
12126 if (!args) SWIG_fail;
12127 swig_obj[0] = args;
12128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12129 if (!SWIG_IsOK(res1)) {
12130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12131 }
12132 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12133 {
12134 PyThreadState* __tstate = wxPyBeginAllowThreads();
12135 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12136 wxPyEndAllowThreads(__tstate);
12137 if (PyErr_Occurred()) SWIG_fail;
12138 }
12139 resultobj = SWIG_From_int(static_cast< int >(result));
12140 return resultobj;
12141 fail:
12142 return NULL;
12143 }
12144
12145
12146 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12147 PyObject *resultobj = 0;
12148 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12149 wxFontStyle result;
12150 void *argp1 = 0 ;
12151 int res1 = 0 ;
12152 PyObject *swig_obj[1] ;
12153
12154 if (!args) SWIG_fail;
12155 swig_obj[0] = args;
12156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12157 if (!SWIG_IsOK(res1)) {
12158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12159 }
12160 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12161 {
12162 PyThreadState* __tstate = wxPyBeginAllowThreads();
12163 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12164 wxPyEndAllowThreads(__tstate);
12165 if (PyErr_Occurred()) SWIG_fail;
12166 }
12167 resultobj = SWIG_From_int(static_cast< int >(result));
12168 return resultobj;
12169 fail:
12170 return NULL;
12171 }
12172
12173
12174 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12175 PyObject *resultobj = 0;
12176 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12177 wxFontWeight 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_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12187 }
12188 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12189 {
12190 PyThreadState* __tstate = wxPyBeginAllowThreads();
12191 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
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_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12203 PyObject *resultobj = 0;
12204 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12205 bool 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_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12215 }
12216 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12217 {
12218 PyThreadState* __tstate = wxPyBeginAllowThreads();
12219 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12220 wxPyEndAllowThreads(__tstate);
12221 if (PyErr_Occurred()) SWIG_fail;
12222 }
12223 {
12224 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12225 }
12226 return resultobj;
12227 fail:
12228 return NULL;
12229 }
12230
12231
12232 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12233 PyObject *resultobj = 0;
12234 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12235 wxString result;
12236 void *argp1 = 0 ;
12237 int res1 = 0 ;
12238 PyObject *swig_obj[1] ;
12239
12240 if (!args) SWIG_fail;
12241 swig_obj[0] = args;
12242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12243 if (!SWIG_IsOK(res1)) {
12244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12245 }
12246 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12247 {
12248 PyThreadState* __tstate = wxPyBeginAllowThreads();
12249 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12250 wxPyEndAllowThreads(__tstate);
12251 if (PyErr_Occurred()) SWIG_fail;
12252 }
12253 {
12254 #if wxUSE_UNICODE
12255 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12256 #else
12257 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12258 #endif
12259 }
12260 return resultobj;
12261 fail:
12262 return NULL;
12263 }
12264
12265
12266 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12267 PyObject *resultobj = 0;
12268 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12269 wxFontFamily result;
12270 void *argp1 = 0 ;
12271 int res1 = 0 ;
12272 PyObject *swig_obj[1] ;
12273
12274 if (!args) SWIG_fail;
12275 swig_obj[0] = args;
12276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12277 if (!SWIG_IsOK(res1)) {
12278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12279 }
12280 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12281 {
12282 PyThreadState* __tstate = wxPyBeginAllowThreads();
12283 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12284 wxPyEndAllowThreads(__tstate);
12285 if (PyErr_Occurred()) SWIG_fail;
12286 }
12287 resultobj = SWIG_From_int(static_cast< int >(result));
12288 return resultobj;
12289 fail:
12290 return NULL;
12291 }
12292
12293
12294 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12295 PyObject *resultobj = 0;
12296 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12297 wxFontEncoding result;
12298 void *argp1 = 0 ;
12299 int res1 = 0 ;
12300 PyObject *swig_obj[1] ;
12301
12302 if (!args) SWIG_fail;
12303 swig_obj[0] = args;
12304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12305 if (!SWIG_IsOK(res1)) {
12306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12307 }
12308 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12309 {
12310 PyThreadState* __tstate = wxPyBeginAllowThreads();
12311 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12312 wxPyEndAllowThreads(__tstate);
12313 if (PyErr_Occurred()) SWIG_fail;
12314 }
12315 resultobj = SWIG_From_int(static_cast< int >(result));
12316 return resultobj;
12317 fail:
12318 return NULL;
12319 }
12320
12321
12322 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12323 PyObject *resultobj = 0;
12324 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12325 int arg2 ;
12326 void *argp1 = 0 ;
12327 int res1 = 0 ;
12328 int val2 ;
12329 int ecode2 = 0 ;
12330 PyObject * obj0 = 0 ;
12331 PyObject * obj1 = 0 ;
12332 char * kwnames[] = {
12333 (char *) "self",(char *) "pointsize", NULL
12334 };
12335
12336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12338 if (!SWIG_IsOK(res1)) {
12339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12340 }
12341 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12342 ecode2 = SWIG_AsVal_int(obj1, &val2);
12343 if (!SWIG_IsOK(ecode2)) {
12344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12345 }
12346 arg2 = static_cast< int >(val2);
12347 {
12348 PyThreadState* __tstate = wxPyBeginAllowThreads();
12349 (arg1)->SetPointSize(arg2);
12350 wxPyEndAllowThreads(__tstate);
12351 if (PyErr_Occurred()) SWIG_fail;
12352 }
12353 resultobj = SWIG_Py_Void();
12354 return resultobj;
12355 fail:
12356 return NULL;
12357 }
12358
12359
12360 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12361 PyObject *resultobj = 0;
12362 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12363 wxFontStyle arg2 ;
12364 void *argp1 = 0 ;
12365 int res1 = 0 ;
12366 int val2 ;
12367 int ecode2 = 0 ;
12368 PyObject * obj0 = 0 ;
12369 PyObject * obj1 = 0 ;
12370 char * kwnames[] = {
12371 (char *) "self",(char *) "style", NULL
12372 };
12373
12374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12376 if (!SWIG_IsOK(res1)) {
12377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12378 }
12379 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12380 ecode2 = SWIG_AsVal_int(obj1, &val2);
12381 if (!SWIG_IsOK(ecode2)) {
12382 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12383 }
12384 arg2 = static_cast< wxFontStyle >(val2);
12385 {
12386 PyThreadState* __tstate = wxPyBeginAllowThreads();
12387 (arg1)->SetStyle(arg2);
12388 wxPyEndAllowThreads(__tstate);
12389 if (PyErr_Occurred()) SWIG_fail;
12390 }
12391 resultobj = SWIG_Py_Void();
12392 return resultobj;
12393 fail:
12394 return NULL;
12395 }
12396
12397
12398 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12399 PyObject *resultobj = 0;
12400 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12401 wxFontWeight arg2 ;
12402 void *argp1 = 0 ;
12403 int res1 = 0 ;
12404 int val2 ;
12405 int ecode2 = 0 ;
12406 PyObject * obj0 = 0 ;
12407 PyObject * obj1 = 0 ;
12408 char * kwnames[] = {
12409 (char *) "self",(char *) "weight", NULL
12410 };
12411
12412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12414 if (!SWIG_IsOK(res1)) {
12415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12416 }
12417 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12418 ecode2 = SWIG_AsVal_int(obj1, &val2);
12419 if (!SWIG_IsOK(ecode2)) {
12420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12421 }
12422 arg2 = static_cast< wxFontWeight >(val2);
12423 {
12424 PyThreadState* __tstate = wxPyBeginAllowThreads();
12425 (arg1)->SetWeight(arg2);
12426 wxPyEndAllowThreads(__tstate);
12427 if (PyErr_Occurred()) SWIG_fail;
12428 }
12429 resultobj = SWIG_Py_Void();
12430 return resultobj;
12431 fail:
12432 return NULL;
12433 }
12434
12435
12436 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12437 PyObject *resultobj = 0;
12438 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12439 bool arg2 ;
12440 void *argp1 = 0 ;
12441 int res1 = 0 ;
12442 bool val2 ;
12443 int ecode2 = 0 ;
12444 PyObject * obj0 = 0 ;
12445 PyObject * obj1 = 0 ;
12446 char * kwnames[] = {
12447 (char *) "self",(char *) "underlined", NULL
12448 };
12449
12450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12452 if (!SWIG_IsOK(res1)) {
12453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12454 }
12455 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12456 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12457 if (!SWIG_IsOK(ecode2)) {
12458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12459 }
12460 arg2 = static_cast< bool >(val2);
12461 {
12462 PyThreadState* __tstate = wxPyBeginAllowThreads();
12463 (arg1)->SetUnderlined(arg2);
12464 wxPyEndAllowThreads(__tstate);
12465 if (PyErr_Occurred()) SWIG_fail;
12466 }
12467 resultobj = SWIG_Py_Void();
12468 return resultobj;
12469 fail:
12470 return NULL;
12471 }
12472
12473
12474 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12475 PyObject *resultobj = 0;
12476 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12477 wxString arg2 ;
12478 bool result;
12479 void *argp1 = 0 ;
12480 int res1 = 0 ;
12481 PyObject * obj0 = 0 ;
12482 PyObject * obj1 = 0 ;
12483 char * kwnames[] = {
12484 (char *) "self",(char *) "facename", NULL
12485 };
12486
12487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12489 if (!SWIG_IsOK(res1)) {
12490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12491 }
12492 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12493 {
12494 wxString* sptr = wxString_in_helper(obj1);
12495 if (sptr == NULL) SWIG_fail;
12496 arg2 = *sptr;
12497 delete sptr;
12498 }
12499 {
12500 PyThreadState* __tstate = wxPyBeginAllowThreads();
12501 result = (bool)(arg1)->SetFaceName(arg2);
12502 wxPyEndAllowThreads(__tstate);
12503 if (PyErr_Occurred()) SWIG_fail;
12504 }
12505 {
12506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12507 }
12508 return resultobj;
12509 fail:
12510 return NULL;
12511 }
12512
12513
12514 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12515 PyObject *resultobj = 0;
12516 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12517 wxFontFamily arg2 ;
12518 void *argp1 = 0 ;
12519 int res1 = 0 ;
12520 int val2 ;
12521 int ecode2 = 0 ;
12522 PyObject * obj0 = 0 ;
12523 PyObject * obj1 = 0 ;
12524 char * kwnames[] = {
12525 (char *) "self",(char *) "family", NULL
12526 };
12527
12528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12530 if (!SWIG_IsOK(res1)) {
12531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12532 }
12533 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12534 ecode2 = SWIG_AsVal_int(obj1, &val2);
12535 if (!SWIG_IsOK(ecode2)) {
12536 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12537 }
12538 arg2 = static_cast< wxFontFamily >(val2);
12539 {
12540 PyThreadState* __tstate = wxPyBeginAllowThreads();
12541 (arg1)->SetFamily(arg2);
12542 wxPyEndAllowThreads(__tstate);
12543 if (PyErr_Occurred()) SWIG_fail;
12544 }
12545 resultobj = SWIG_Py_Void();
12546 return resultobj;
12547 fail:
12548 return NULL;
12549 }
12550
12551
12552 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12553 PyObject *resultobj = 0;
12554 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12555 wxFontEncoding arg2 ;
12556 void *argp1 = 0 ;
12557 int res1 = 0 ;
12558 int val2 ;
12559 int ecode2 = 0 ;
12560 PyObject * obj0 = 0 ;
12561 PyObject * obj1 = 0 ;
12562 char * kwnames[] = {
12563 (char *) "self",(char *) "encoding", NULL
12564 };
12565
12566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12568 if (!SWIG_IsOK(res1)) {
12569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12570 }
12571 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12572 ecode2 = SWIG_AsVal_int(obj1, &val2);
12573 if (!SWIG_IsOK(ecode2)) {
12574 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12575 }
12576 arg2 = static_cast< wxFontEncoding >(val2);
12577 {
12578 PyThreadState* __tstate = wxPyBeginAllowThreads();
12579 (arg1)->SetEncoding(arg2);
12580 wxPyEndAllowThreads(__tstate);
12581 if (PyErr_Occurred()) SWIG_fail;
12582 }
12583 resultobj = SWIG_Py_Void();
12584 return resultobj;
12585 fail:
12586 return NULL;
12587 }
12588
12589
12590 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12591 PyObject *resultobj = 0;
12592 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12593 wxString *arg2 = 0 ;
12594 bool result;
12595 void *argp1 = 0 ;
12596 int res1 = 0 ;
12597 bool temp2 = false ;
12598 PyObject * obj0 = 0 ;
12599 PyObject * obj1 = 0 ;
12600 char * kwnames[] = {
12601 (char *) "self",(char *) "s", NULL
12602 };
12603
12604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12606 if (!SWIG_IsOK(res1)) {
12607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12608 }
12609 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12610 {
12611 arg2 = wxString_in_helper(obj1);
12612 if (arg2 == NULL) SWIG_fail;
12613 temp2 = true;
12614 }
12615 {
12616 PyThreadState* __tstate = wxPyBeginAllowThreads();
12617 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12618 wxPyEndAllowThreads(__tstate);
12619 if (PyErr_Occurred()) SWIG_fail;
12620 }
12621 {
12622 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12623 }
12624 {
12625 if (temp2)
12626 delete arg2;
12627 }
12628 return resultobj;
12629 fail:
12630 {
12631 if (temp2)
12632 delete arg2;
12633 }
12634 return NULL;
12635 }
12636
12637
12638 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12639 PyObject *resultobj = 0;
12640 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12641 wxString result;
12642 void *argp1 = 0 ;
12643 int res1 = 0 ;
12644 PyObject *swig_obj[1] ;
12645
12646 if (!args) SWIG_fail;
12647 swig_obj[0] = args;
12648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12649 if (!SWIG_IsOK(res1)) {
12650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12651 }
12652 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12653 {
12654 PyThreadState* __tstate = wxPyBeginAllowThreads();
12655 result = ((wxNativeFontInfo const *)arg1)->ToString();
12656 wxPyEndAllowThreads(__tstate);
12657 if (PyErr_Occurred()) SWIG_fail;
12658 }
12659 {
12660 #if wxUSE_UNICODE
12661 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12662 #else
12663 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12664 #endif
12665 }
12666 return resultobj;
12667 fail:
12668 return NULL;
12669 }
12670
12671
12672 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12673 PyObject *resultobj = 0;
12674 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12675 wxString result;
12676 void *argp1 = 0 ;
12677 int res1 = 0 ;
12678 PyObject *swig_obj[1] ;
12679
12680 if (!args) SWIG_fail;
12681 swig_obj[0] = args;
12682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12683 if (!SWIG_IsOK(res1)) {
12684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12685 }
12686 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12687 {
12688 PyThreadState* __tstate = wxPyBeginAllowThreads();
12689 result = wxNativeFontInfo___str__(arg1);
12690 wxPyEndAllowThreads(__tstate);
12691 if (PyErr_Occurred()) SWIG_fail;
12692 }
12693 {
12694 #if wxUSE_UNICODE
12695 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12696 #else
12697 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12698 #endif
12699 }
12700 return resultobj;
12701 fail:
12702 return NULL;
12703 }
12704
12705
12706 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12707 PyObject *resultobj = 0;
12708 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12709 wxString *arg2 = 0 ;
12710 bool result;
12711 void *argp1 = 0 ;
12712 int res1 = 0 ;
12713 bool temp2 = false ;
12714 PyObject * obj0 = 0 ;
12715 PyObject * obj1 = 0 ;
12716 char * kwnames[] = {
12717 (char *) "self",(char *) "s", NULL
12718 };
12719
12720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12722 if (!SWIG_IsOK(res1)) {
12723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12724 }
12725 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12726 {
12727 arg2 = wxString_in_helper(obj1);
12728 if (arg2 == NULL) SWIG_fail;
12729 temp2 = true;
12730 }
12731 {
12732 PyThreadState* __tstate = wxPyBeginAllowThreads();
12733 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12734 wxPyEndAllowThreads(__tstate);
12735 if (PyErr_Occurred()) SWIG_fail;
12736 }
12737 {
12738 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12739 }
12740 {
12741 if (temp2)
12742 delete arg2;
12743 }
12744 return resultobj;
12745 fail:
12746 {
12747 if (temp2)
12748 delete arg2;
12749 }
12750 return NULL;
12751 }
12752
12753
12754 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12755 PyObject *resultobj = 0;
12756 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12757 wxString result;
12758 void *argp1 = 0 ;
12759 int res1 = 0 ;
12760 PyObject *swig_obj[1] ;
12761
12762 if (!args) SWIG_fail;
12763 swig_obj[0] = args;
12764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12765 if (!SWIG_IsOK(res1)) {
12766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12767 }
12768 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12769 {
12770 PyThreadState* __tstate = wxPyBeginAllowThreads();
12771 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12772 wxPyEndAllowThreads(__tstate);
12773 if (PyErr_Occurred()) SWIG_fail;
12774 }
12775 {
12776 #if wxUSE_UNICODE
12777 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12778 #else
12779 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12780 #endif
12781 }
12782 return resultobj;
12783 fail:
12784 return NULL;
12785 }
12786
12787
12788 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12789 PyObject *obj;
12790 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12791 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12792 return SWIG_Py_Void();
12793 }
12794
12795 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12796 return SWIG_Python_InitShadowInstance(args);
12797 }
12798
12799 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12800 PyObject *resultobj = 0;
12801 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12802 wxString *arg2 = (wxString *) 0 ;
12803 void *argp1 = 0 ;
12804 int res1 = 0 ;
12805 bool temp2 = false ;
12806 PyObject *swig_obj[2] ;
12807
12808 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12810 if (!SWIG_IsOK(res1)) {
12811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12812 }
12813 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12814 {
12815 arg2 = wxString_in_helper(swig_obj[1]);
12816 if (arg2 == NULL) SWIG_fail;
12817 temp2 = true;
12818 }
12819 if (arg1) (arg1)->facename = *arg2;
12820
12821 resultobj = SWIG_Py_Void();
12822 {
12823 if (temp2)
12824 delete arg2;
12825 }
12826 return resultobj;
12827 fail:
12828 {
12829 if (temp2)
12830 delete arg2;
12831 }
12832 return NULL;
12833 }
12834
12835
12836 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12837 PyObject *resultobj = 0;
12838 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12839 wxString *result = 0 ;
12840 void *argp1 = 0 ;
12841 int res1 = 0 ;
12842 PyObject *swig_obj[1] ;
12843
12844 if (!args) SWIG_fail;
12845 swig_obj[0] = args;
12846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12847 if (!SWIG_IsOK(res1)) {
12848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12849 }
12850 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12851 result = (wxString *)& ((arg1)->facename);
12852 {
12853 #if wxUSE_UNICODE
12854 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12855 #else
12856 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12857 #endif
12858 }
12859 return resultobj;
12860 fail:
12861 return NULL;
12862 }
12863
12864
12865 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12866 PyObject *resultobj = 0;
12867 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12868 wxFontEncoding arg2 ;
12869 void *argp1 = 0 ;
12870 int res1 = 0 ;
12871 int val2 ;
12872 int ecode2 = 0 ;
12873 PyObject *swig_obj[2] ;
12874
12875 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12877 if (!SWIG_IsOK(res1)) {
12878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12879 }
12880 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12881 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12882 if (!SWIG_IsOK(ecode2)) {
12883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12884 }
12885 arg2 = static_cast< wxFontEncoding >(val2);
12886 if (arg1) (arg1)->encoding = arg2;
12887
12888 resultobj = SWIG_Py_Void();
12889 return resultobj;
12890 fail:
12891 return NULL;
12892 }
12893
12894
12895 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12896 PyObject *resultobj = 0;
12897 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12898 wxFontEncoding result;
12899 void *argp1 = 0 ;
12900 int res1 = 0 ;
12901 PyObject *swig_obj[1] ;
12902
12903 if (!args) SWIG_fail;
12904 swig_obj[0] = args;
12905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12906 if (!SWIG_IsOK(res1)) {
12907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12908 }
12909 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12910 result = (wxFontEncoding) ((arg1)->encoding);
12911 resultobj = SWIG_From_int(static_cast< int >(result));
12912 return resultobj;
12913 fail:
12914 return NULL;
12915 }
12916
12917
12918 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12919 PyObject *resultobj = 0;
12920 wxNativeEncodingInfo *result = 0 ;
12921
12922 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12923 {
12924 PyThreadState* __tstate = wxPyBeginAllowThreads();
12925 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12926 wxPyEndAllowThreads(__tstate);
12927 if (PyErr_Occurred()) SWIG_fail;
12928 }
12929 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12930 return resultobj;
12931 fail:
12932 return NULL;
12933 }
12934
12935
12936 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12937 PyObject *resultobj = 0;
12938 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12939 void *argp1 = 0 ;
12940 int res1 = 0 ;
12941 PyObject *swig_obj[1] ;
12942
12943 if (!args) SWIG_fail;
12944 swig_obj[0] = args;
12945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12946 if (!SWIG_IsOK(res1)) {
12947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12948 }
12949 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12950 {
12951 PyThreadState* __tstate = wxPyBeginAllowThreads();
12952 delete arg1;
12953
12954 wxPyEndAllowThreads(__tstate);
12955 if (PyErr_Occurred()) SWIG_fail;
12956 }
12957 resultobj = SWIG_Py_Void();
12958 return resultobj;
12959 fail:
12960 return NULL;
12961 }
12962
12963
12964 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12965 PyObject *resultobj = 0;
12966 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12967 wxString *arg2 = 0 ;
12968 bool result;
12969 void *argp1 = 0 ;
12970 int res1 = 0 ;
12971 bool temp2 = false ;
12972 PyObject * obj0 = 0 ;
12973 PyObject * obj1 = 0 ;
12974 char * kwnames[] = {
12975 (char *) "self",(char *) "s", NULL
12976 };
12977
12978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12980 if (!SWIG_IsOK(res1)) {
12981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12982 }
12983 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12984 {
12985 arg2 = wxString_in_helper(obj1);
12986 if (arg2 == NULL) SWIG_fail;
12987 temp2 = true;
12988 }
12989 {
12990 PyThreadState* __tstate = wxPyBeginAllowThreads();
12991 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12992 wxPyEndAllowThreads(__tstate);
12993 if (PyErr_Occurred()) SWIG_fail;
12994 }
12995 {
12996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12997 }
12998 {
12999 if (temp2)
13000 delete arg2;
13001 }
13002 return resultobj;
13003 fail:
13004 {
13005 if (temp2)
13006 delete arg2;
13007 }
13008 return NULL;
13009 }
13010
13011
13012 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13013 PyObject *resultobj = 0;
13014 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13015 wxString result;
13016 void *argp1 = 0 ;
13017 int res1 = 0 ;
13018 PyObject *swig_obj[1] ;
13019
13020 if (!args) SWIG_fail;
13021 swig_obj[0] = args;
13022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13023 if (!SWIG_IsOK(res1)) {
13024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13025 }
13026 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13027 {
13028 PyThreadState* __tstate = wxPyBeginAllowThreads();
13029 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13030 wxPyEndAllowThreads(__tstate);
13031 if (PyErr_Occurred()) SWIG_fail;
13032 }
13033 {
13034 #if wxUSE_UNICODE
13035 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13036 #else
13037 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13038 #endif
13039 }
13040 return resultobj;
13041 fail:
13042 return NULL;
13043 }
13044
13045
13046 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13047 PyObject *obj;
13048 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13049 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13050 return SWIG_Py_Void();
13051 }
13052
13053 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13054 return SWIG_Python_InitShadowInstance(args);
13055 }
13056
13057 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13058 PyObject *resultobj = 0;
13059 wxFontEncoding arg1 ;
13060 wxNativeEncodingInfo *result = 0 ;
13061 int val1 ;
13062 int ecode1 = 0 ;
13063 PyObject * obj0 = 0 ;
13064 char * kwnames[] = {
13065 (char *) "encoding", NULL
13066 };
13067
13068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13069 ecode1 = SWIG_AsVal_int(obj0, &val1);
13070 if (!SWIG_IsOK(ecode1)) {
13071 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13072 }
13073 arg1 = static_cast< wxFontEncoding >(val1);
13074 {
13075 PyThreadState* __tstate = wxPyBeginAllowThreads();
13076 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13077 wxPyEndAllowThreads(__tstate);
13078 if (PyErr_Occurred()) SWIG_fail;
13079 }
13080 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13081 return resultobj;
13082 fail:
13083 return NULL;
13084 }
13085
13086
13087 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13088 PyObject *resultobj = 0;
13089 wxNativeEncodingInfo *arg1 = 0 ;
13090 bool result;
13091 void *argp1 = 0 ;
13092 int res1 = 0 ;
13093 PyObject * obj0 = 0 ;
13094 char * kwnames[] = {
13095 (char *) "info", NULL
13096 };
13097
13098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13099 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13100 if (!SWIG_IsOK(res1)) {
13101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13102 }
13103 if (!argp1) {
13104 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13105 }
13106 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13107 {
13108 PyThreadState* __tstate = wxPyBeginAllowThreads();
13109 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13110 wxPyEndAllowThreads(__tstate);
13111 if (PyErr_Occurred()) SWIG_fail;
13112 }
13113 {
13114 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13115 }
13116 return resultobj;
13117 fail:
13118 return NULL;
13119 }
13120
13121
13122 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13123 PyObject *resultobj = 0;
13124 wxFontMapper *result = 0 ;
13125
13126 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13127 {
13128 PyThreadState* __tstate = wxPyBeginAllowThreads();
13129 result = (wxFontMapper *)new wxFontMapper();
13130 wxPyEndAllowThreads(__tstate);
13131 if (PyErr_Occurred()) SWIG_fail;
13132 }
13133 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13134 return resultobj;
13135 fail:
13136 return NULL;
13137 }
13138
13139
13140 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13141 PyObject *resultobj = 0;
13142 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13143 void *argp1 = 0 ;
13144 int res1 = 0 ;
13145 PyObject *swig_obj[1] ;
13146
13147 if (!args) SWIG_fail;
13148 swig_obj[0] = args;
13149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13150 if (!SWIG_IsOK(res1)) {
13151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13152 }
13153 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13154 {
13155 PyThreadState* __tstate = wxPyBeginAllowThreads();
13156 delete arg1;
13157
13158 wxPyEndAllowThreads(__tstate);
13159 if (PyErr_Occurred()) SWIG_fail;
13160 }
13161 resultobj = SWIG_Py_Void();
13162 return resultobj;
13163 fail:
13164 return NULL;
13165 }
13166
13167
13168 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13169 PyObject *resultobj = 0;
13170 wxFontMapper *result = 0 ;
13171
13172 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13173 {
13174 PyThreadState* __tstate = wxPyBeginAllowThreads();
13175 result = (wxFontMapper *)wxFontMapper::Get();
13176 wxPyEndAllowThreads(__tstate);
13177 if (PyErr_Occurred()) SWIG_fail;
13178 }
13179 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13180 return resultobj;
13181 fail:
13182 return NULL;
13183 }
13184
13185
13186 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13187 PyObject *resultobj = 0;
13188 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13189 wxFontMapper *result = 0 ;
13190 void *argp1 = 0 ;
13191 int res1 = 0 ;
13192 PyObject * obj0 = 0 ;
13193 char * kwnames[] = {
13194 (char *) "mapper", NULL
13195 };
13196
13197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13199 if (!SWIG_IsOK(res1)) {
13200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13201 }
13202 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13203 {
13204 PyThreadState* __tstate = wxPyBeginAllowThreads();
13205 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13206 wxPyEndAllowThreads(__tstate);
13207 if (PyErr_Occurred()) SWIG_fail;
13208 }
13209 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13210 return resultobj;
13211 fail:
13212 return NULL;
13213 }
13214
13215
13216 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13217 PyObject *resultobj = 0;
13218 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13219 wxString *arg2 = 0 ;
13220 bool arg3 = (bool) true ;
13221 wxFontEncoding result;
13222 void *argp1 = 0 ;
13223 int res1 = 0 ;
13224 bool temp2 = false ;
13225 bool val3 ;
13226 int ecode3 = 0 ;
13227 PyObject * obj0 = 0 ;
13228 PyObject * obj1 = 0 ;
13229 PyObject * obj2 = 0 ;
13230 char * kwnames[] = {
13231 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13232 };
13233
13234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13236 if (!SWIG_IsOK(res1)) {
13237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13238 }
13239 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13240 {
13241 arg2 = wxString_in_helper(obj1);
13242 if (arg2 == NULL) SWIG_fail;
13243 temp2 = true;
13244 }
13245 if (obj2) {
13246 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13247 if (!SWIG_IsOK(ecode3)) {
13248 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13249 }
13250 arg3 = static_cast< bool >(val3);
13251 }
13252 {
13253 PyThreadState* __tstate = wxPyBeginAllowThreads();
13254 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13255 wxPyEndAllowThreads(__tstate);
13256 if (PyErr_Occurred()) SWIG_fail;
13257 }
13258 resultobj = SWIG_From_int(static_cast< int >(result));
13259 {
13260 if (temp2)
13261 delete arg2;
13262 }
13263 return resultobj;
13264 fail:
13265 {
13266 if (temp2)
13267 delete arg2;
13268 }
13269 return NULL;
13270 }
13271
13272
13273 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13274 PyObject *resultobj = 0;
13275 size_t result;
13276
13277 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13278 {
13279 PyThreadState* __tstate = wxPyBeginAllowThreads();
13280 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13281 wxPyEndAllowThreads(__tstate);
13282 if (PyErr_Occurred()) SWIG_fail;
13283 }
13284 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13285 return resultobj;
13286 fail:
13287 return NULL;
13288 }
13289
13290
13291 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13292 PyObject *resultobj = 0;
13293 size_t arg1 ;
13294 wxFontEncoding result;
13295 size_t val1 ;
13296 int ecode1 = 0 ;
13297 PyObject * obj0 = 0 ;
13298 char * kwnames[] = {
13299 (char *) "n", NULL
13300 };
13301
13302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13303 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13304 if (!SWIG_IsOK(ecode1)) {
13305 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13306 }
13307 arg1 = static_cast< size_t >(val1);
13308 {
13309 PyThreadState* __tstate = wxPyBeginAllowThreads();
13310 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13311 wxPyEndAllowThreads(__tstate);
13312 if (PyErr_Occurred()) SWIG_fail;
13313 }
13314 resultobj = SWIG_From_int(static_cast< int >(result));
13315 return resultobj;
13316 fail:
13317 return NULL;
13318 }
13319
13320
13321 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13322 PyObject *resultobj = 0;
13323 wxFontEncoding arg1 ;
13324 wxString result;
13325 int val1 ;
13326 int ecode1 = 0 ;
13327 PyObject * obj0 = 0 ;
13328 char * kwnames[] = {
13329 (char *) "encoding", NULL
13330 };
13331
13332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13333 ecode1 = SWIG_AsVal_int(obj0, &val1);
13334 if (!SWIG_IsOK(ecode1)) {
13335 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13336 }
13337 arg1 = static_cast< wxFontEncoding >(val1);
13338 {
13339 PyThreadState* __tstate = wxPyBeginAllowThreads();
13340 result = wxFontMapper::GetEncodingName(arg1);
13341 wxPyEndAllowThreads(__tstate);
13342 if (PyErr_Occurred()) SWIG_fail;
13343 }
13344 {
13345 #if wxUSE_UNICODE
13346 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13347 #else
13348 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13349 #endif
13350 }
13351 return resultobj;
13352 fail:
13353 return NULL;
13354 }
13355
13356
13357 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13358 PyObject *resultobj = 0;
13359 wxFontEncoding arg1 ;
13360 wxString result;
13361 int val1 ;
13362 int ecode1 = 0 ;
13363 PyObject * obj0 = 0 ;
13364 char * kwnames[] = {
13365 (char *) "encoding", NULL
13366 };
13367
13368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13369 ecode1 = SWIG_AsVal_int(obj0, &val1);
13370 if (!SWIG_IsOK(ecode1)) {
13371 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13372 }
13373 arg1 = static_cast< wxFontEncoding >(val1);
13374 {
13375 PyThreadState* __tstate = wxPyBeginAllowThreads();
13376 result = wxFontMapper::GetEncodingDescription(arg1);
13377 wxPyEndAllowThreads(__tstate);
13378 if (PyErr_Occurred()) SWIG_fail;
13379 }
13380 {
13381 #if wxUSE_UNICODE
13382 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13383 #else
13384 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13385 #endif
13386 }
13387 return resultobj;
13388 fail:
13389 return NULL;
13390 }
13391
13392
13393 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13394 PyObject *resultobj = 0;
13395 wxString *arg1 = 0 ;
13396 wxFontEncoding result;
13397 bool temp1 = false ;
13398 PyObject * obj0 = 0 ;
13399 char * kwnames[] = {
13400 (char *) "name", NULL
13401 };
13402
13403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13404 {
13405 arg1 = wxString_in_helper(obj0);
13406 if (arg1 == NULL) SWIG_fail;
13407 temp1 = true;
13408 }
13409 {
13410 PyThreadState* __tstate = wxPyBeginAllowThreads();
13411 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13412 wxPyEndAllowThreads(__tstate);
13413 if (PyErr_Occurred()) SWIG_fail;
13414 }
13415 resultobj = SWIG_From_int(static_cast< int >(result));
13416 {
13417 if (temp1)
13418 delete arg1;
13419 }
13420 return resultobj;
13421 fail:
13422 {
13423 if (temp1)
13424 delete arg1;
13425 }
13426 return NULL;
13427 }
13428
13429
13430 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13431 PyObject *resultobj = 0;
13432 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13433 wxString *arg2 = 0 ;
13434 void *argp1 = 0 ;
13435 int res1 = 0 ;
13436 bool temp2 = false ;
13437 PyObject * obj0 = 0 ;
13438 PyObject * obj1 = 0 ;
13439 char * kwnames[] = {
13440 (char *) "self",(char *) "prefix", NULL
13441 };
13442
13443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13445 if (!SWIG_IsOK(res1)) {
13446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13447 }
13448 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13449 {
13450 arg2 = wxString_in_helper(obj1);
13451 if (arg2 == NULL) SWIG_fail;
13452 temp2 = true;
13453 }
13454 {
13455 PyThreadState* __tstate = wxPyBeginAllowThreads();
13456 (arg1)->SetConfigPath((wxString const &)*arg2);
13457 wxPyEndAllowThreads(__tstate);
13458 if (PyErr_Occurred()) SWIG_fail;
13459 }
13460 resultobj = SWIG_Py_Void();
13461 {
13462 if (temp2)
13463 delete arg2;
13464 }
13465 return resultobj;
13466 fail:
13467 {
13468 if (temp2)
13469 delete arg2;
13470 }
13471 return NULL;
13472 }
13473
13474
13475 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13476 PyObject *resultobj = 0;
13477 wxString result;
13478
13479 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13480 {
13481 PyThreadState* __tstate = wxPyBeginAllowThreads();
13482 result = wxFontMapper::GetDefaultConfigPath();
13483 wxPyEndAllowThreads(__tstate);
13484 if (PyErr_Occurred()) SWIG_fail;
13485 }
13486 {
13487 #if wxUSE_UNICODE
13488 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13489 #else
13490 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13491 #endif
13492 }
13493 return resultobj;
13494 fail:
13495 return NULL;
13496 }
13497
13498
13499 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13500 PyObject *resultobj = 0;
13501 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13502 wxFontEncoding arg2 ;
13503 wxString const &arg3_defvalue = wxPyEmptyString ;
13504 wxString *arg3 = (wxString *) &arg3_defvalue ;
13505 bool arg4 = (bool) true ;
13506 PyObject *result = 0 ;
13507 void *argp1 = 0 ;
13508 int res1 = 0 ;
13509 int val2 ;
13510 int ecode2 = 0 ;
13511 bool temp3 = false ;
13512 bool val4 ;
13513 int ecode4 = 0 ;
13514 PyObject * obj0 = 0 ;
13515 PyObject * obj1 = 0 ;
13516 PyObject * obj2 = 0 ;
13517 PyObject * obj3 = 0 ;
13518 char * kwnames[] = {
13519 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13520 };
13521
13522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13524 if (!SWIG_IsOK(res1)) {
13525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13526 }
13527 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13528 ecode2 = SWIG_AsVal_int(obj1, &val2);
13529 if (!SWIG_IsOK(ecode2)) {
13530 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13531 }
13532 arg2 = static_cast< wxFontEncoding >(val2);
13533 if (obj2) {
13534 {
13535 arg3 = wxString_in_helper(obj2);
13536 if (arg3 == NULL) SWIG_fail;
13537 temp3 = true;
13538 }
13539 }
13540 if (obj3) {
13541 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13542 if (!SWIG_IsOK(ecode4)) {
13543 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13544 }
13545 arg4 = static_cast< bool >(val4);
13546 }
13547 {
13548 PyThreadState* __tstate = wxPyBeginAllowThreads();
13549 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13550 wxPyEndAllowThreads(__tstate);
13551 if (PyErr_Occurred()) SWIG_fail;
13552 }
13553 resultobj = result;
13554 {
13555 if (temp3)
13556 delete arg3;
13557 }
13558 return resultobj;
13559 fail:
13560 {
13561 if (temp3)
13562 delete arg3;
13563 }
13564 return NULL;
13565 }
13566
13567
13568 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13569 PyObject *resultobj = 0;
13570 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13571 wxFontEncoding arg2 ;
13572 wxString const &arg3_defvalue = wxPyEmptyString ;
13573 wxString *arg3 = (wxString *) &arg3_defvalue ;
13574 bool result;
13575 void *argp1 = 0 ;
13576 int res1 = 0 ;
13577 int val2 ;
13578 int ecode2 = 0 ;
13579 bool temp3 = false ;
13580 PyObject * obj0 = 0 ;
13581 PyObject * obj1 = 0 ;
13582 PyObject * obj2 = 0 ;
13583 char * kwnames[] = {
13584 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13585 };
13586
13587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13589 if (!SWIG_IsOK(res1)) {
13590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13591 }
13592 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13593 ecode2 = SWIG_AsVal_int(obj1, &val2);
13594 if (!SWIG_IsOK(ecode2)) {
13595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13596 }
13597 arg2 = static_cast< wxFontEncoding >(val2);
13598 if (obj2) {
13599 {
13600 arg3 = wxString_in_helper(obj2);
13601 if (arg3 == NULL) SWIG_fail;
13602 temp3 = true;
13603 }
13604 }
13605 {
13606 PyThreadState* __tstate = wxPyBeginAllowThreads();
13607 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13608 wxPyEndAllowThreads(__tstate);
13609 if (PyErr_Occurred()) SWIG_fail;
13610 }
13611 {
13612 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13613 }
13614 {
13615 if (temp3)
13616 delete arg3;
13617 }
13618 return resultobj;
13619 fail:
13620 {
13621 if (temp3)
13622 delete arg3;
13623 }
13624 return NULL;
13625 }
13626
13627
13628 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13629 PyObject *resultobj = 0;
13630 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13631 wxWindow *arg2 = (wxWindow *) 0 ;
13632 void *argp1 = 0 ;
13633 int res1 = 0 ;
13634 void *argp2 = 0 ;
13635 int res2 = 0 ;
13636 PyObject * obj0 = 0 ;
13637 PyObject * obj1 = 0 ;
13638 char * kwnames[] = {
13639 (char *) "self",(char *) "parent", NULL
13640 };
13641
13642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13644 if (!SWIG_IsOK(res1)) {
13645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13646 }
13647 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13648 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13649 if (!SWIG_IsOK(res2)) {
13650 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13651 }
13652 arg2 = reinterpret_cast< wxWindow * >(argp2);
13653 {
13654 PyThreadState* __tstate = wxPyBeginAllowThreads();
13655 (arg1)->SetDialogParent(arg2);
13656 wxPyEndAllowThreads(__tstate);
13657 if (PyErr_Occurred()) SWIG_fail;
13658 }
13659 resultobj = SWIG_Py_Void();
13660 return resultobj;
13661 fail:
13662 return NULL;
13663 }
13664
13665
13666 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13667 PyObject *resultobj = 0;
13668 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13669 wxString *arg2 = 0 ;
13670 void *argp1 = 0 ;
13671 int res1 = 0 ;
13672 bool temp2 = false ;
13673 PyObject * obj0 = 0 ;
13674 PyObject * obj1 = 0 ;
13675 char * kwnames[] = {
13676 (char *) "self",(char *) "title", NULL
13677 };
13678
13679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13681 if (!SWIG_IsOK(res1)) {
13682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13683 }
13684 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13685 {
13686 arg2 = wxString_in_helper(obj1);
13687 if (arg2 == NULL) SWIG_fail;
13688 temp2 = true;
13689 }
13690 {
13691 PyThreadState* __tstate = wxPyBeginAllowThreads();
13692 (arg1)->SetDialogTitle((wxString const &)*arg2);
13693 wxPyEndAllowThreads(__tstate);
13694 if (PyErr_Occurred()) SWIG_fail;
13695 }
13696 resultobj = SWIG_Py_Void();
13697 {
13698 if (temp2)
13699 delete arg2;
13700 }
13701 return resultobj;
13702 fail:
13703 {
13704 if (temp2)
13705 delete arg2;
13706 }
13707 return NULL;
13708 }
13709
13710
13711 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13712 PyObject *obj;
13713 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13714 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13715 return SWIG_Py_Void();
13716 }
13717
13718 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13719 return SWIG_Python_InitShadowInstance(args);
13720 }
13721
13722 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13723 PyObject *resultobj = 0;
13724 int arg1 ;
13725 int arg2 ;
13726 int arg3 ;
13727 int arg4 ;
13728 bool arg5 = (bool) false ;
13729 wxString const &arg6_defvalue = wxPyEmptyString ;
13730 wxString *arg6 = (wxString *) &arg6_defvalue ;
13731 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13732 wxFont *result = 0 ;
13733 int val1 ;
13734 int ecode1 = 0 ;
13735 int val2 ;
13736 int ecode2 = 0 ;
13737 int val3 ;
13738 int ecode3 = 0 ;
13739 int val4 ;
13740 int ecode4 = 0 ;
13741 bool val5 ;
13742 int ecode5 = 0 ;
13743 bool temp6 = false ;
13744 int val7 ;
13745 int ecode7 = 0 ;
13746 PyObject * obj0 = 0 ;
13747 PyObject * obj1 = 0 ;
13748 PyObject * obj2 = 0 ;
13749 PyObject * obj3 = 0 ;
13750 PyObject * obj4 = 0 ;
13751 PyObject * obj5 = 0 ;
13752 PyObject * obj6 = 0 ;
13753 char * kwnames[] = {
13754 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13755 };
13756
13757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13758 ecode1 = SWIG_AsVal_int(obj0, &val1);
13759 if (!SWIG_IsOK(ecode1)) {
13760 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13761 }
13762 arg1 = static_cast< int >(val1);
13763 ecode2 = SWIG_AsVal_int(obj1, &val2);
13764 if (!SWIG_IsOK(ecode2)) {
13765 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13766 }
13767 arg2 = static_cast< int >(val2);
13768 ecode3 = SWIG_AsVal_int(obj2, &val3);
13769 if (!SWIG_IsOK(ecode3)) {
13770 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13771 }
13772 arg3 = static_cast< int >(val3);
13773 ecode4 = SWIG_AsVal_int(obj3, &val4);
13774 if (!SWIG_IsOK(ecode4)) {
13775 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13776 }
13777 arg4 = static_cast< int >(val4);
13778 if (obj4) {
13779 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13780 if (!SWIG_IsOK(ecode5)) {
13781 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13782 }
13783 arg5 = static_cast< bool >(val5);
13784 }
13785 if (obj5) {
13786 {
13787 arg6 = wxString_in_helper(obj5);
13788 if (arg6 == NULL) SWIG_fail;
13789 temp6 = true;
13790 }
13791 }
13792 if (obj6) {
13793 ecode7 = SWIG_AsVal_int(obj6, &val7);
13794 if (!SWIG_IsOK(ecode7)) {
13795 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13796 }
13797 arg7 = static_cast< wxFontEncoding >(val7);
13798 }
13799 {
13800 if (!wxPyCheckForApp()) SWIG_fail;
13801 PyThreadState* __tstate = wxPyBeginAllowThreads();
13802 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13803 wxPyEndAllowThreads(__tstate);
13804 if (PyErr_Occurred()) SWIG_fail;
13805 }
13806 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13807 {
13808 if (temp6)
13809 delete arg6;
13810 }
13811 return resultobj;
13812 fail:
13813 {
13814 if (temp6)
13815 delete arg6;
13816 }
13817 return NULL;
13818 }
13819
13820
13821 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13822 PyObject *resultobj = 0;
13823 wxFont *arg1 = (wxFont *) 0 ;
13824 void *argp1 = 0 ;
13825 int res1 = 0 ;
13826 PyObject *swig_obj[1] ;
13827
13828 if (!args) SWIG_fail;
13829 swig_obj[0] = args;
13830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13831 if (!SWIG_IsOK(res1)) {
13832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13833 }
13834 arg1 = reinterpret_cast< wxFont * >(argp1);
13835 {
13836 PyThreadState* __tstate = wxPyBeginAllowThreads();
13837 delete arg1;
13838
13839 wxPyEndAllowThreads(__tstate);
13840 if (PyErr_Occurred()) SWIG_fail;
13841 }
13842 resultobj = SWIG_Py_Void();
13843 return resultobj;
13844 fail:
13845 return NULL;
13846 }
13847
13848
13849 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13850 PyObject *resultobj = 0;
13851 wxNativeFontInfo *arg1 = 0 ;
13852 wxFont *result = 0 ;
13853 void *argp1 = 0 ;
13854 int res1 = 0 ;
13855 PyObject * obj0 = 0 ;
13856 char * kwnames[] = {
13857 (char *) "info", NULL
13858 };
13859
13860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13861 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13862 if (!SWIG_IsOK(res1)) {
13863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13864 }
13865 if (!argp1) {
13866 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13867 }
13868 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13869 {
13870 if (!wxPyCheckForApp()) SWIG_fail;
13871 PyThreadState* __tstate = wxPyBeginAllowThreads();
13872 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13873 wxPyEndAllowThreads(__tstate);
13874 if (PyErr_Occurred()) SWIG_fail;
13875 }
13876 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13877 return resultobj;
13878 fail:
13879 return NULL;
13880 }
13881
13882
13883 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13884 PyObject *resultobj = 0;
13885 wxString *arg1 = 0 ;
13886 wxFont *result = 0 ;
13887 bool temp1 = false ;
13888 PyObject * obj0 = 0 ;
13889 char * kwnames[] = {
13890 (char *) "info", NULL
13891 };
13892
13893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13894 {
13895 arg1 = wxString_in_helper(obj0);
13896 if (arg1 == NULL) SWIG_fail;
13897 temp1 = true;
13898 }
13899 {
13900 if (!wxPyCheckForApp()) SWIG_fail;
13901 PyThreadState* __tstate = wxPyBeginAllowThreads();
13902 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13903 wxPyEndAllowThreads(__tstate);
13904 if (PyErr_Occurred()) SWIG_fail;
13905 }
13906 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13907 {
13908 if (temp1)
13909 delete arg1;
13910 }
13911 return resultobj;
13912 fail:
13913 {
13914 if (temp1)
13915 delete arg1;
13916 }
13917 return NULL;
13918 }
13919
13920
13921 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13922 PyObject *resultobj = 0;
13923 int arg1 ;
13924 wxFontFamily arg2 ;
13925 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13926 wxString const &arg4_defvalue = wxPyEmptyString ;
13927 wxString *arg4 = (wxString *) &arg4_defvalue ;
13928 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13929 wxFont *result = 0 ;
13930 int val1 ;
13931 int ecode1 = 0 ;
13932 int val2 ;
13933 int ecode2 = 0 ;
13934 int val3 ;
13935 int ecode3 = 0 ;
13936 bool temp4 = false ;
13937 int val5 ;
13938 int ecode5 = 0 ;
13939 PyObject * obj0 = 0 ;
13940 PyObject * obj1 = 0 ;
13941 PyObject * obj2 = 0 ;
13942 PyObject * obj3 = 0 ;
13943 PyObject * obj4 = 0 ;
13944 char * kwnames[] = {
13945 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13946 };
13947
13948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13949 ecode1 = SWIG_AsVal_int(obj0, &val1);
13950 if (!SWIG_IsOK(ecode1)) {
13951 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13952 }
13953 arg1 = static_cast< int >(val1);
13954 ecode2 = SWIG_AsVal_int(obj1, &val2);
13955 if (!SWIG_IsOK(ecode2)) {
13956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13957 }
13958 arg2 = static_cast< wxFontFamily >(val2);
13959 if (obj2) {
13960 ecode3 = SWIG_AsVal_int(obj2, &val3);
13961 if (!SWIG_IsOK(ecode3)) {
13962 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13963 }
13964 arg3 = static_cast< int >(val3);
13965 }
13966 if (obj3) {
13967 {
13968 arg4 = wxString_in_helper(obj3);
13969 if (arg4 == NULL) SWIG_fail;
13970 temp4 = true;
13971 }
13972 }
13973 if (obj4) {
13974 ecode5 = SWIG_AsVal_int(obj4, &val5);
13975 if (!SWIG_IsOK(ecode5)) {
13976 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13977 }
13978 arg5 = static_cast< wxFontEncoding >(val5);
13979 }
13980 {
13981 if (!wxPyCheckForApp()) SWIG_fail;
13982 PyThreadState* __tstate = wxPyBeginAllowThreads();
13983 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13984 wxPyEndAllowThreads(__tstate);
13985 if (PyErr_Occurred()) SWIG_fail;
13986 }
13987 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13988 {
13989 if (temp4)
13990 delete arg4;
13991 }
13992 return resultobj;
13993 fail:
13994 {
13995 if (temp4)
13996 delete arg4;
13997 }
13998 return NULL;
13999 }
14000
14001
14002 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14003 PyObject *resultobj = 0;
14004 wxSize *arg1 = 0 ;
14005 int arg2 ;
14006 int arg3 ;
14007 int arg4 ;
14008 bool arg5 = (bool) false ;
14009 wxString const &arg6_defvalue = wxEmptyString ;
14010 wxString *arg6 = (wxString *) &arg6_defvalue ;
14011 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14012 wxFont *result = 0 ;
14013 wxSize temp1 ;
14014 int val2 ;
14015 int ecode2 = 0 ;
14016 int val3 ;
14017 int ecode3 = 0 ;
14018 int val4 ;
14019 int ecode4 = 0 ;
14020 bool val5 ;
14021 int ecode5 = 0 ;
14022 bool temp6 = false ;
14023 int val7 ;
14024 int ecode7 = 0 ;
14025 PyObject * obj0 = 0 ;
14026 PyObject * obj1 = 0 ;
14027 PyObject * obj2 = 0 ;
14028 PyObject * obj3 = 0 ;
14029 PyObject * obj4 = 0 ;
14030 PyObject * obj5 = 0 ;
14031 PyObject * obj6 = 0 ;
14032 char * kwnames[] = {
14033 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14034 };
14035
14036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14037 {
14038 arg1 = &temp1;
14039 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14040 }
14041 ecode2 = SWIG_AsVal_int(obj1, &val2);
14042 if (!SWIG_IsOK(ecode2)) {
14043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14044 }
14045 arg2 = static_cast< int >(val2);
14046 ecode3 = SWIG_AsVal_int(obj2, &val3);
14047 if (!SWIG_IsOK(ecode3)) {
14048 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14049 }
14050 arg3 = static_cast< int >(val3);
14051 ecode4 = SWIG_AsVal_int(obj3, &val4);
14052 if (!SWIG_IsOK(ecode4)) {
14053 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14054 }
14055 arg4 = static_cast< int >(val4);
14056 if (obj4) {
14057 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14058 if (!SWIG_IsOK(ecode5)) {
14059 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14060 }
14061 arg5 = static_cast< bool >(val5);
14062 }
14063 if (obj5) {
14064 {
14065 arg6 = wxString_in_helper(obj5);
14066 if (arg6 == NULL) SWIG_fail;
14067 temp6 = true;
14068 }
14069 }
14070 if (obj6) {
14071 ecode7 = SWIG_AsVal_int(obj6, &val7);
14072 if (!SWIG_IsOK(ecode7)) {
14073 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14074 }
14075 arg7 = static_cast< wxFontEncoding >(val7);
14076 }
14077 {
14078 if (!wxPyCheckForApp()) SWIG_fail;
14079 PyThreadState* __tstate = wxPyBeginAllowThreads();
14080 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14081 wxPyEndAllowThreads(__tstate);
14082 if (PyErr_Occurred()) SWIG_fail;
14083 }
14084 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14085 {
14086 if (temp6)
14087 delete arg6;
14088 }
14089 return resultobj;
14090 fail:
14091 {
14092 if (temp6)
14093 delete arg6;
14094 }
14095 return NULL;
14096 }
14097
14098
14099 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14100 PyObject *resultobj = 0;
14101 wxSize *arg1 = 0 ;
14102 wxFontFamily arg2 ;
14103 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14104 wxString const &arg4_defvalue = wxEmptyString ;
14105 wxString *arg4 = (wxString *) &arg4_defvalue ;
14106 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14107 wxFont *result = 0 ;
14108 wxSize temp1 ;
14109 int val2 ;
14110 int ecode2 = 0 ;
14111 int val3 ;
14112 int ecode3 = 0 ;
14113 bool temp4 = false ;
14114 int val5 ;
14115 int ecode5 = 0 ;
14116 PyObject * obj0 = 0 ;
14117 PyObject * obj1 = 0 ;
14118 PyObject * obj2 = 0 ;
14119 PyObject * obj3 = 0 ;
14120 PyObject * obj4 = 0 ;
14121 char * kwnames[] = {
14122 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14123 };
14124
14125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14126 {
14127 arg1 = &temp1;
14128 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14129 }
14130 ecode2 = SWIG_AsVal_int(obj1, &val2);
14131 if (!SWIG_IsOK(ecode2)) {
14132 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14133 }
14134 arg2 = static_cast< wxFontFamily >(val2);
14135 if (obj2) {
14136 ecode3 = SWIG_AsVal_int(obj2, &val3);
14137 if (!SWIG_IsOK(ecode3)) {
14138 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14139 }
14140 arg3 = static_cast< int >(val3);
14141 }
14142 if (obj3) {
14143 {
14144 arg4 = wxString_in_helper(obj3);
14145 if (arg4 == NULL) SWIG_fail;
14146 temp4 = true;
14147 }
14148 }
14149 if (obj4) {
14150 ecode5 = SWIG_AsVal_int(obj4, &val5);
14151 if (!SWIG_IsOK(ecode5)) {
14152 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14153 }
14154 arg5 = static_cast< wxFontEncoding >(val5);
14155 }
14156 {
14157 if (!wxPyCheckForApp()) SWIG_fail;
14158 PyThreadState* __tstate = wxPyBeginAllowThreads();
14159 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14160 wxPyEndAllowThreads(__tstate);
14161 if (PyErr_Occurred()) SWIG_fail;
14162 }
14163 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14164 {
14165 if (temp4)
14166 delete arg4;
14167 }
14168 return resultobj;
14169 fail:
14170 {
14171 if (temp4)
14172 delete arg4;
14173 }
14174 return NULL;
14175 }
14176
14177
14178 SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14179 PyObject *resultobj = 0;
14180 wxFont *arg1 = (wxFont *) 0 ;
14181 bool result;
14182 void *argp1 = 0 ;
14183 int res1 = 0 ;
14184 PyObject *swig_obj[1] ;
14185
14186 if (!args) SWIG_fail;
14187 swig_obj[0] = args;
14188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14189 if (!SWIG_IsOK(res1)) {
14190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
14191 }
14192 arg1 = reinterpret_cast< wxFont * >(argp1);
14193 {
14194 PyThreadState* __tstate = wxPyBeginAllowThreads();
14195 result = (bool)((wxFont const *)arg1)->IsOk();
14196 wxPyEndAllowThreads(__tstate);
14197 if (PyErr_Occurred()) SWIG_fail;
14198 }
14199 {
14200 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14201 }
14202 return resultobj;
14203 fail:
14204 return NULL;
14205 }
14206
14207
14208 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14209 PyObject *resultobj = 0;
14210 wxFont *arg1 = (wxFont *) 0 ;
14211 wxFont *arg2 = (wxFont *) 0 ;
14212 bool result;
14213 void *argp1 = 0 ;
14214 int res1 = 0 ;
14215 void *argp2 = 0 ;
14216 int res2 = 0 ;
14217 PyObject * obj0 = 0 ;
14218 PyObject * obj1 = 0 ;
14219 char * kwnames[] = {
14220 (char *) "self",(char *) "other", NULL
14221 };
14222
14223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14225 if (!SWIG_IsOK(res1)) {
14226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14227 }
14228 arg1 = reinterpret_cast< wxFont * >(argp1);
14229 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14230 if (!SWIG_IsOK(res2)) {
14231 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14232 }
14233 arg2 = reinterpret_cast< wxFont * >(argp2);
14234 {
14235 PyThreadState* __tstate = wxPyBeginAllowThreads();
14236 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14237 wxPyEndAllowThreads(__tstate);
14238 if (PyErr_Occurred()) SWIG_fail;
14239 }
14240 {
14241 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14242 }
14243 return resultobj;
14244 fail:
14245 return NULL;
14246 }
14247
14248
14249 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14250 PyObject *resultobj = 0;
14251 wxFont *arg1 = (wxFont *) 0 ;
14252 wxFont *arg2 = (wxFont *) 0 ;
14253 bool result;
14254 void *argp1 = 0 ;
14255 int res1 = 0 ;
14256 void *argp2 = 0 ;
14257 int res2 = 0 ;
14258 PyObject * obj0 = 0 ;
14259 PyObject * obj1 = 0 ;
14260 char * kwnames[] = {
14261 (char *) "self",(char *) "other", NULL
14262 };
14263
14264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14266 if (!SWIG_IsOK(res1)) {
14267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14268 }
14269 arg1 = reinterpret_cast< wxFont * >(argp1);
14270 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14271 if (!SWIG_IsOK(res2)) {
14272 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14273 }
14274 arg2 = reinterpret_cast< wxFont * >(argp2);
14275 {
14276 PyThreadState* __tstate = wxPyBeginAllowThreads();
14277 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14278 wxPyEndAllowThreads(__tstate);
14279 if (PyErr_Occurred()) SWIG_fail;
14280 }
14281 {
14282 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14283 }
14284 return resultobj;
14285 fail:
14286 return NULL;
14287 }
14288
14289
14290 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14291 PyObject *resultobj = 0;
14292 wxFont *arg1 = (wxFont *) 0 ;
14293 int result;
14294 void *argp1 = 0 ;
14295 int res1 = 0 ;
14296 PyObject *swig_obj[1] ;
14297
14298 if (!args) SWIG_fail;
14299 swig_obj[0] = args;
14300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14301 if (!SWIG_IsOK(res1)) {
14302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14303 }
14304 arg1 = reinterpret_cast< wxFont * >(argp1);
14305 {
14306 PyThreadState* __tstate = wxPyBeginAllowThreads();
14307 result = (int)((wxFont const *)arg1)->GetPointSize();
14308 wxPyEndAllowThreads(__tstate);
14309 if (PyErr_Occurred()) SWIG_fail;
14310 }
14311 resultobj = SWIG_From_int(static_cast< int >(result));
14312 return resultobj;
14313 fail:
14314 return NULL;
14315 }
14316
14317
14318 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14319 PyObject *resultobj = 0;
14320 wxFont *arg1 = (wxFont *) 0 ;
14321 wxSize result;
14322 void *argp1 = 0 ;
14323 int res1 = 0 ;
14324 PyObject *swig_obj[1] ;
14325
14326 if (!args) SWIG_fail;
14327 swig_obj[0] = args;
14328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14329 if (!SWIG_IsOK(res1)) {
14330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14331 }
14332 arg1 = reinterpret_cast< wxFont * >(argp1);
14333 {
14334 PyThreadState* __tstate = wxPyBeginAllowThreads();
14335 result = ((wxFont const *)arg1)->GetPixelSize();
14336 wxPyEndAllowThreads(__tstate);
14337 if (PyErr_Occurred()) SWIG_fail;
14338 }
14339 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14340 return resultobj;
14341 fail:
14342 return NULL;
14343 }
14344
14345
14346 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14347 PyObject *resultobj = 0;
14348 wxFont *arg1 = (wxFont *) 0 ;
14349 bool 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_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14359 }
14360 arg1 = reinterpret_cast< wxFont * >(argp1);
14361 {
14362 PyThreadState* __tstate = wxPyBeginAllowThreads();
14363 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14364 wxPyEndAllowThreads(__tstate);
14365 if (PyErr_Occurred()) SWIG_fail;
14366 }
14367 {
14368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14369 }
14370 return resultobj;
14371 fail:
14372 return NULL;
14373 }
14374
14375
14376 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14377 PyObject *resultobj = 0;
14378 wxFont *arg1 = (wxFont *) 0 ;
14379 int result;
14380 void *argp1 = 0 ;
14381 int res1 = 0 ;
14382 PyObject *swig_obj[1] ;
14383
14384 if (!args) SWIG_fail;
14385 swig_obj[0] = args;
14386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14387 if (!SWIG_IsOK(res1)) {
14388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14389 }
14390 arg1 = reinterpret_cast< wxFont * >(argp1);
14391 {
14392 PyThreadState* __tstate = wxPyBeginAllowThreads();
14393 result = (int)((wxFont const *)arg1)->GetFamily();
14394 wxPyEndAllowThreads(__tstate);
14395 if (PyErr_Occurred()) SWIG_fail;
14396 }
14397 resultobj = SWIG_From_int(static_cast< int >(result));
14398 return resultobj;
14399 fail:
14400 return NULL;
14401 }
14402
14403
14404 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14405 PyObject *resultobj = 0;
14406 wxFont *arg1 = (wxFont *) 0 ;
14407 int result;
14408 void *argp1 = 0 ;
14409 int res1 = 0 ;
14410 PyObject *swig_obj[1] ;
14411
14412 if (!args) SWIG_fail;
14413 swig_obj[0] = args;
14414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14415 if (!SWIG_IsOK(res1)) {
14416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14417 }
14418 arg1 = reinterpret_cast< wxFont * >(argp1);
14419 {
14420 PyThreadState* __tstate = wxPyBeginAllowThreads();
14421 result = (int)((wxFont const *)arg1)->GetStyle();
14422 wxPyEndAllowThreads(__tstate);
14423 if (PyErr_Occurred()) SWIG_fail;
14424 }
14425 resultobj = SWIG_From_int(static_cast< int >(result));
14426 return resultobj;
14427 fail:
14428 return NULL;
14429 }
14430
14431
14432 SWIGINTERN PyObject *_wrap_Font_GetWeight(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_GetWeight" "', 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)->GetWeight();
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_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14461 PyObject *resultobj = 0;
14462 wxFont *arg1 = (wxFont *) 0 ;
14463 bool 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_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14473 }
14474 arg1 = reinterpret_cast< wxFont * >(argp1);
14475 {
14476 PyThreadState* __tstate = wxPyBeginAllowThreads();
14477 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14478 wxPyEndAllowThreads(__tstate);
14479 if (PyErr_Occurred()) SWIG_fail;
14480 }
14481 {
14482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14483 }
14484 return resultobj;
14485 fail:
14486 return NULL;
14487 }
14488
14489
14490 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14491 PyObject *resultobj = 0;
14492 wxFont *arg1 = (wxFont *) 0 ;
14493 wxString result;
14494 void *argp1 = 0 ;
14495 int res1 = 0 ;
14496 PyObject *swig_obj[1] ;
14497
14498 if (!args) SWIG_fail;
14499 swig_obj[0] = args;
14500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14501 if (!SWIG_IsOK(res1)) {
14502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14503 }
14504 arg1 = reinterpret_cast< wxFont * >(argp1);
14505 {
14506 PyThreadState* __tstate = wxPyBeginAllowThreads();
14507 result = ((wxFont const *)arg1)->GetFaceName();
14508 wxPyEndAllowThreads(__tstate);
14509 if (PyErr_Occurred()) SWIG_fail;
14510 }
14511 {
14512 #if wxUSE_UNICODE
14513 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14514 #else
14515 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14516 #endif
14517 }
14518 return resultobj;
14519 fail:
14520 return NULL;
14521 }
14522
14523
14524 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14525 PyObject *resultobj = 0;
14526 wxFont *arg1 = (wxFont *) 0 ;
14527 wxFontEncoding result;
14528 void *argp1 = 0 ;
14529 int res1 = 0 ;
14530 PyObject *swig_obj[1] ;
14531
14532 if (!args) SWIG_fail;
14533 swig_obj[0] = args;
14534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14535 if (!SWIG_IsOK(res1)) {
14536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14537 }
14538 arg1 = reinterpret_cast< wxFont * >(argp1);
14539 {
14540 PyThreadState* __tstate = wxPyBeginAllowThreads();
14541 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14542 wxPyEndAllowThreads(__tstate);
14543 if (PyErr_Occurred()) SWIG_fail;
14544 }
14545 resultobj = SWIG_From_int(static_cast< int >(result));
14546 return resultobj;
14547 fail:
14548 return NULL;
14549 }
14550
14551
14552 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14553 PyObject *resultobj = 0;
14554 wxFont *arg1 = (wxFont *) 0 ;
14555 wxNativeFontInfo *result = 0 ;
14556 void *argp1 = 0 ;
14557 int res1 = 0 ;
14558 PyObject *swig_obj[1] ;
14559
14560 if (!args) SWIG_fail;
14561 swig_obj[0] = args;
14562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14563 if (!SWIG_IsOK(res1)) {
14564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14565 }
14566 arg1 = reinterpret_cast< wxFont * >(argp1);
14567 {
14568 PyThreadState* __tstate = wxPyBeginAllowThreads();
14569 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14570 wxPyEndAllowThreads(__tstate);
14571 if (PyErr_Occurred()) SWIG_fail;
14572 }
14573 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14574 return resultobj;
14575 fail:
14576 return NULL;
14577 }
14578
14579
14580 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14581 PyObject *resultobj = 0;
14582 wxFont *arg1 = (wxFont *) 0 ;
14583 bool 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_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14593 }
14594 arg1 = reinterpret_cast< wxFont * >(argp1);
14595 {
14596 PyThreadState* __tstate = wxPyBeginAllowThreads();
14597 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14598 wxPyEndAllowThreads(__tstate);
14599 if (PyErr_Occurred()) SWIG_fail;
14600 }
14601 {
14602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14603 }
14604 return resultobj;
14605 fail:
14606 return NULL;
14607 }
14608
14609
14610 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14611 PyObject *resultobj = 0;
14612 wxFont *arg1 = (wxFont *) 0 ;
14613 wxString result;
14614 void *argp1 = 0 ;
14615 int res1 = 0 ;
14616 PyObject *swig_obj[1] ;
14617
14618 if (!args) SWIG_fail;
14619 swig_obj[0] = args;
14620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14621 if (!SWIG_IsOK(res1)) {
14622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14623 }
14624 arg1 = reinterpret_cast< wxFont * >(argp1);
14625 {
14626 PyThreadState* __tstate = wxPyBeginAllowThreads();
14627 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14628 wxPyEndAllowThreads(__tstate);
14629 if (PyErr_Occurred()) SWIG_fail;
14630 }
14631 {
14632 #if wxUSE_UNICODE
14633 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14634 #else
14635 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14636 #endif
14637 }
14638 return resultobj;
14639 fail:
14640 return NULL;
14641 }
14642
14643
14644 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14645 PyObject *resultobj = 0;
14646 wxFont *arg1 = (wxFont *) 0 ;
14647 wxString result;
14648 void *argp1 = 0 ;
14649 int res1 = 0 ;
14650 PyObject *swig_obj[1] ;
14651
14652 if (!args) SWIG_fail;
14653 swig_obj[0] = args;
14654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14655 if (!SWIG_IsOK(res1)) {
14656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14657 }
14658 arg1 = reinterpret_cast< wxFont * >(argp1);
14659 {
14660 PyThreadState* __tstate = wxPyBeginAllowThreads();
14661 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14662 wxPyEndAllowThreads(__tstate);
14663 if (PyErr_Occurred()) SWIG_fail;
14664 }
14665 {
14666 #if wxUSE_UNICODE
14667 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14668 #else
14669 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14670 #endif
14671 }
14672 return resultobj;
14673 fail:
14674 return NULL;
14675 }
14676
14677
14678 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14679 PyObject *resultobj = 0;
14680 wxFont *arg1 = (wxFont *) 0 ;
14681 int arg2 ;
14682 void *argp1 = 0 ;
14683 int res1 = 0 ;
14684 int val2 ;
14685 int ecode2 = 0 ;
14686 PyObject * obj0 = 0 ;
14687 PyObject * obj1 = 0 ;
14688 char * kwnames[] = {
14689 (char *) "self",(char *) "pointSize", NULL
14690 };
14691
14692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14694 if (!SWIG_IsOK(res1)) {
14695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14696 }
14697 arg1 = reinterpret_cast< wxFont * >(argp1);
14698 ecode2 = SWIG_AsVal_int(obj1, &val2);
14699 if (!SWIG_IsOK(ecode2)) {
14700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14701 }
14702 arg2 = static_cast< int >(val2);
14703 {
14704 PyThreadState* __tstate = wxPyBeginAllowThreads();
14705 (arg1)->SetPointSize(arg2);
14706 wxPyEndAllowThreads(__tstate);
14707 if (PyErr_Occurred()) SWIG_fail;
14708 }
14709 resultobj = SWIG_Py_Void();
14710 return resultobj;
14711 fail:
14712 return NULL;
14713 }
14714
14715
14716 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14717 PyObject *resultobj = 0;
14718 wxFont *arg1 = (wxFont *) 0 ;
14719 wxSize *arg2 = 0 ;
14720 void *argp1 = 0 ;
14721 int res1 = 0 ;
14722 wxSize temp2 ;
14723 PyObject * obj0 = 0 ;
14724 PyObject * obj1 = 0 ;
14725 char * kwnames[] = {
14726 (char *) "self",(char *) "pixelSize", NULL
14727 };
14728
14729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14731 if (!SWIG_IsOK(res1)) {
14732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14733 }
14734 arg1 = reinterpret_cast< wxFont * >(argp1);
14735 {
14736 arg2 = &temp2;
14737 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14738 }
14739 {
14740 PyThreadState* __tstate = wxPyBeginAllowThreads();
14741 (arg1)->SetPixelSize((wxSize const &)*arg2);
14742 wxPyEndAllowThreads(__tstate);
14743 if (PyErr_Occurred()) SWIG_fail;
14744 }
14745 resultobj = SWIG_Py_Void();
14746 return resultobj;
14747 fail:
14748 return NULL;
14749 }
14750
14751
14752 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14753 PyObject *resultobj = 0;
14754 wxFont *arg1 = (wxFont *) 0 ;
14755 int arg2 ;
14756 void *argp1 = 0 ;
14757 int res1 = 0 ;
14758 int val2 ;
14759 int ecode2 = 0 ;
14760 PyObject * obj0 = 0 ;
14761 PyObject * obj1 = 0 ;
14762 char * kwnames[] = {
14763 (char *) "self",(char *) "family", NULL
14764 };
14765
14766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14768 if (!SWIG_IsOK(res1)) {
14769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14770 }
14771 arg1 = reinterpret_cast< wxFont * >(argp1);
14772 ecode2 = SWIG_AsVal_int(obj1, &val2);
14773 if (!SWIG_IsOK(ecode2)) {
14774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14775 }
14776 arg2 = static_cast< int >(val2);
14777 {
14778 PyThreadState* __tstate = wxPyBeginAllowThreads();
14779 (arg1)->SetFamily(arg2);
14780 wxPyEndAllowThreads(__tstate);
14781 if (PyErr_Occurred()) SWIG_fail;
14782 }
14783 resultobj = SWIG_Py_Void();
14784 return resultobj;
14785 fail:
14786 return NULL;
14787 }
14788
14789
14790 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14791 PyObject *resultobj = 0;
14792 wxFont *arg1 = (wxFont *) 0 ;
14793 int arg2 ;
14794 void *argp1 = 0 ;
14795 int res1 = 0 ;
14796 int val2 ;
14797 int ecode2 = 0 ;
14798 PyObject * obj0 = 0 ;
14799 PyObject * obj1 = 0 ;
14800 char * kwnames[] = {
14801 (char *) "self",(char *) "style", NULL
14802 };
14803
14804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14806 if (!SWIG_IsOK(res1)) {
14807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14808 }
14809 arg1 = reinterpret_cast< wxFont * >(argp1);
14810 ecode2 = SWIG_AsVal_int(obj1, &val2);
14811 if (!SWIG_IsOK(ecode2)) {
14812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14813 }
14814 arg2 = static_cast< int >(val2);
14815 {
14816 PyThreadState* __tstate = wxPyBeginAllowThreads();
14817 (arg1)->SetStyle(arg2);
14818 wxPyEndAllowThreads(__tstate);
14819 if (PyErr_Occurred()) SWIG_fail;
14820 }
14821 resultobj = SWIG_Py_Void();
14822 return resultobj;
14823 fail:
14824 return NULL;
14825 }
14826
14827
14828 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14829 PyObject *resultobj = 0;
14830 wxFont *arg1 = (wxFont *) 0 ;
14831 int arg2 ;
14832 void *argp1 = 0 ;
14833 int res1 = 0 ;
14834 int val2 ;
14835 int ecode2 = 0 ;
14836 PyObject * obj0 = 0 ;
14837 PyObject * obj1 = 0 ;
14838 char * kwnames[] = {
14839 (char *) "self",(char *) "weight", NULL
14840 };
14841
14842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14844 if (!SWIG_IsOK(res1)) {
14845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14846 }
14847 arg1 = reinterpret_cast< wxFont * >(argp1);
14848 ecode2 = SWIG_AsVal_int(obj1, &val2);
14849 if (!SWIG_IsOK(ecode2)) {
14850 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14851 }
14852 arg2 = static_cast< int >(val2);
14853 {
14854 PyThreadState* __tstate = wxPyBeginAllowThreads();
14855 (arg1)->SetWeight(arg2);
14856 wxPyEndAllowThreads(__tstate);
14857 if (PyErr_Occurred()) SWIG_fail;
14858 }
14859 resultobj = SWIG_Py_Void();
14860 return resultobj;
14861 fail:
14862 return NULL;
14863 }
14864
14865
14866 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14867 PyObject *resultobj = 0;
14868 wxFont *arg1 = (wxFont *) 0 ;
14869 wxString *arg2 = 0 ;
14870 bool result;
14871 void *argp1 = 0 ;
14872 int res1 = 0 ;
14873 bool temp2 = false ;
14874 PyObject * obj0 = 0 ;
14875 PyObject * obj1 = 0 ;
14876 char * kwnames[] = {
14877 (char *) "self",(char *) "faceName", NULL
14878 };
14879
14880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14882 if (!SWIG_IsOK(res1)) {
14883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14884 }
14885 arg1 = reinterpret_cast< wxFont * >(argp1);
14886 {
14887 arg2 = wxString_in_helper(obj1);
14888 if (arg2 == NULL) SWIG_fail;
14889 temp2 = true;
14890 }
14891 {
14892 PyThreadState* __tstate = wxPyBeginAllowThreads();
14893 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
14894 wxPyEndAllowThreads(__tstate);
14895 if (PyErr_Occurred()) SWIG_fail;
14896 }
14897 {
14898 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14899 }
14900 {
14901 if (temp2)
14902 delete arg2;
14903 }
14904 return resultobj;
14905 fail:
14906 {
14907 if (temp2)
14908 delete arg2;
14909 }
14910 return NULL;
14911 }
14912
14913
14914 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14915 PyObject *resultobj = 0;
14916 wxFont *arg1 = (wxFont *) 0 ;
14917 bool arg2 ;
14918 void *argp1 = 0 ;
14919 int res1 = 0 ;
14920 bool val2 ;
14921 int ecode2 = 0 ;
14922 PyObject * obj0 = 0 ;
14923 PyObject * obj1 = 0 ;
14924 char * kwnames[] = {
14925 (char *) "self",(char *) "underlined", NULL
14926 };
14927
14928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14930 if (!SWIG_IsOK(res1)) {
14931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14932 }
14933 arg1 = reinterpret_cast< wxFont * >(argp1);
14934 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14935 if (!SWIG_IsOK(ecode2)) {
14936 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14937 }
14938 arg2 = static_cast< bool >(val2);
14939 {
14940 PyThreadState* __tstate = wxPyBeginAllowThreads();
14941 (arg1)->SetUnderlined(arg2);
14942 wxPyEndAllowThreads(__tstate);
14943 if (PyErr_Occurred()) SWIG_fail;
14944 }
14945 resultobj = SWIG_Py_Void();
14946 return resultobj;
14947 fail:
14948 return NULL;
14949 }
14950
14951
14952 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14953 PyObject *resultobj = 0;
14954 wxFont *arg1 = (wxFont *) 0 ;
14955 wxFontEncoding arg2 ;
14956 void *argp1 = 0 ;
14957 int res1 = 0 ;
14958 int val2 ;
14959 int ecode2 = 0 ;
14960 PyObject * obj0 = 0 ;
14961 PyObject * obj1 = 0 ;
14962 char * kwnames[] = {
14963 (char *) "self",(char *) "encoding", NULL
14964 };
14965
14966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14968 if (!SWIG_IsOK(res1)) {
14969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
14970 }
14971 arg1 = reinterpret_cast< wxFont * >(argp1);
14972 ecode2 = SWIG_AsVal_int(obj1, &val2);
14973 if (!SWIG_IsOK(ecode2)) {
14974 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14975 }
14976 arg2 = static_cast< wxFontEncoding >(val2);
14977 {
14978 PyThreadState* __tstate = wxPyBeginAllowThreads();
14979 (arg1)->SetEncoding(arg2);
14980 wxPyEndAllowThreads(__tstate);
14981 if (PyErr_Occurred()) SWIG_fail;
14982 }
14983 resultobj = SWIG_Py_Void();
14984 return resultobj;
14985 fail:
14986 return NULL;
14987 }
14988
14989
14990 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14991 PyObject *resultobj = 0;
14992 wxFont *arg1 = (wxFont *) 0 ;
14993 wxNativeFontInfo *arg2 = 0 ;
14994 void *argp1 = 0 ;
14995 int res1 = 0 ;
14996 void *argp2 = 0 ;
14997 int res2 = 0 ;
14998 PyObject * obj0 = 0 ;
14999 PyObject * obj1 = 0 ;
15000 char * kwnames[] = {
15001 (char *) "self",(char *) "info", NULL
15002 };
15003
15004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15006 if (!SWIG_IsOK(res1)) {
15007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15008 }
15009 arg1 = reinterpret_cast< wxFont * >(argp1);
15010 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15011 if (!SWIG_IsOK(res2)) {
15012 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15013 }
15014 if (!argp2) {
15015 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15016 }
15017 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15018 {
15019 PyThreadState* __tstate = wxPyBeginAllowThreads();
15020 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15021 wxPyEndAllowThreads(__tstate);
15022 if (PyErr_Occurred()) SWIG_fail;
15023 }
15024 resultobj = SWIG_Py_Void();
15025 return resultobj;
15026 fail:
15027 return NULL;
15028 }
15029
15030
15031 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15032 PyObject *resultobj = 0;
15033 wxFont *arg1 = (wxFont *) 0 ;
15034 wxString *arg2 = 0 ;
15035 bool result;
15036 void *argp1 = 0 ;
15037 int res1 = 0 ;
15038 bool temp2 = false ;
15039 PyObject * obj0 = 0 ;
15040 PyObject * obj1 = 0 ;
15041 char * kwnames[] = {
15042 (char *) "self",(char *) "info", NULL
15043 };
15044
15045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15047 if (!SWIG_IsOK(res1)) {
15048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15049 }
15050 arg1 = reinterpret_cast< wxFont * >(argp1);
15051 {
15052 arg2 = wxString_in_helper(obj1);
15053 if (arg2 == NULL) SWIG_fail;
15054 temp2 = true;
15055 }
15056 {
15057 PyThreadState* __tstate = wxPyBeginAllowThreads();
15058 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
15059 wxPyEndAllowThreads(__tstate);
15060 if (PyErr_Occurred()) SWIG_fail;
15061 }
15062 {
15063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15064 }
15065 {
15066 if (temp2)
15067 delete arg2;
15068 }
15069 return resultobj;
15070 fail:
15071 {
15072 if (temp2)
15073 delete arg2;
15074 }
15075 return NULL;
15076 }
15077
15078
15079 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15080 PyObject *resultobj = 0;
15081 wxFont *arg1 = (wxFont *) 0 ;
15082 wxString *arg2 = 0 ;
15083 bool result;
15084 void *argp1 = 0 ;
15085 int res1 = 0 ;
15086 bool temp2 = false ;
15087 PyObject * obj0 = 0 ;
15088 PyObject * obj1 = 0 ;
15089 char * kwnames[] = {
15090 (char *) "self",(char *) "info", NULL
15091 };
15092
15093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15095 if (!SWIG_IsOK(res1)) {
15096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15097 }
15098 arg1 = reinterpret_cast< wxFont * >(argp1);
15099 {
15100 arg2 = wxString_in_helper(obj1);
15101 if (arg2 == NULL) SWIG_fail;
15102 temp2 = true;
15103 }
15104 {
15105 PyThreadState* __tstate = wxPyBeginAllowThreads();
15106 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
15107 wxPyEndAllowThreads(__tstate);
15108 if (PyErr_Occurred()) SWIG_fail;
15109 }
15110 {
15111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15112 }
15113 {
15114 if (temp2)
15115 delete arg2;
15116 }
15117 return resultobj;
15118 fail:
15119 {
15120 if (temp2)
15121 delete arg2;
15122 }
15123 return NULL;
15124 }
15125
15126
15127 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15128 PyObject *resultobj = 0;
15129 wxFont *arg1 = (wxFont *) 0 ;
15130 wxString result;
15131 void *argp1 = 0 ;
15132 int res1 = 0 ;
15133 PyObject *swig_obj[1] ;
15134
15135 if (!args) SWIG_fail;
15136 swig_obj[0] = args;
15137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15138 if (!SWIG_IsOK(res1)) {
15139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15140 }
15141 arg1 = reinterpret_cast< wxFont * >(argp1);
15142 {
15143 PyThreadState* __tstate = wxPyBeginAllowThreads();
15144 result = ((wxFont const *)arg1)->GetFamilyString();
15145 wxPyEndAllowThreads(__tstate);
15146 if (PyErr_Occurred()) SWIG_fail;
15147 }
15148 {
15149 #if wxUSE_UNICODE
15150 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15151 #else
15152 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15153 #endif
15154 }
15155 return resultobj;
15156 fail:
15157 return NULL;
15158 }
15159
15160
15161 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15162 PyObject *resultobj = 0;
15163 wxFont *arg1 = (wxFont *) 0 ;
15164 wxString result;
15165 void *argp1 = 0 ;
15166 int res1 = 0 ;
15167 PyObject *swig_obj[1] ;
15168
15169 if (!args) SWIG_fail;
15170 swig_obj[0] = args;
15171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15172 if (!SWIG_IsOK(res1)) {
15173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15174 }
15175 arg1 = reinterpret_cast< wxFont * >(argp1);
15176 {
15177 PyThreadState* __tstate = wxPyBeginAllowThreads();
15178 result = ((wxFont const *)arg1)->GetStyleString();
15179 wxPyEndAllowThreads(__tstate);
15180 if (PyErr_Occurred()) SWIG_fail;
15181 }
15182 {
15183 #if wxUSE_UNICODE
15184 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15185 #else
15186 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15187 #endif
15188 }
15189 return resultobj;
15190 fail:
15191 return NULL;
15192 }
15193
15194
15195 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15196 PyObject *resultobj = 0;
15197 wxFont *arg1 = (wxFont *) 0 ;
15198 wxString result;
15199 void *argp1 = 0 ;
15200 int res1 = 0 ;
15201 PyObject *swig_obj[1] ;
15202
15203 if (!args) SWIG_fail;
15204 swig_obj[0] = args;
15205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15206 if (!SWIG_IsOK(res1)) {
15207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15208 }
15209 arg1 = reinterpret_cast< wxFont * >(argp1);
15210 {
15211 PyThreadState* __tstate = wxPyBeginAllowThreads();
15212 result = ((wxFont const *)arg1)->GetWeightString();
15213 wxPyEndAllowThreads(__tstate);
15214 if (PyErr_Occurred()) SWIG_fail;
15215 }
15216 {
15217 #if wxUSE_UNICODE
15218 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15219 #else
15220 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15221 #endif
15222 }
15223 return resultobj;
15224 fail:
15225 return NULL;
15226 }
15227
15228
15229 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15230 PyObject *resultobj = 0;
15231 wxFont *arg1 = (wxFont *) 0 ;
15232 bool arg2 = (bool) true ;
15233 void *argp1 = 0 ;
15234 int res1 = 0 ;
15235 bool val2 ;
15236 int ecode2 = 0 ;
15237 PyObject * obj0 = 0 ;
15238 PyObject * obj1 = 0 ;
15239 char * kwnames[] = {
15240 (char *) "self",(char *) "no", NULL
15241 };
15242
15243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15245 if (!SWIG_IsOK(res1)) {
15246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15247 }
15248 arg1 = reinterpret_cast< wxFont * >(argp1);
15249 if (obj1) {
15250 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15251 if (!SWIG_IsOK(ecode2)) {
15252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15253 }
15254 arg2 = static_cast< bool >(val2);
15255 }
15256 {
15257 PyThreadState* __tstate = wxPyBeginAllowThreads();
15258 (arg1)->SetNoAntiAliasing(arg2);
15259 wxPyEndAllowThreads(__tstate);
15260 if (PyErr_Occurred()) SWIG_fail;
15261 }
15262 resultobj = SWIG_Py_Void();
15263 return resultobj;
15264 fail:
15265 return NULL;
15266 }
15267
15268
15269 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15270 PyObject *resultobj = 0;
15271 wxFont *arg1 = (wxFont *) 0 ;
15272 bool result;
15273 void *argp1 = 0 ;
15274 int res1 = 0 ;
15275 PyObject *swig_obj[1] ;
15276
15277 if (!args) SWIG_fail;
15278 swig_obj[0] = args;
15279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15280 if (!SWIG_IsOK(res1)) {
15281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15282 }
15283 arg1 = reinterpret_cast< wxFont * >(argp1);
15284 {
15285 PyThreadState* __tstate = wxPyBeginAllowThreads();
15286 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15287 wxPyEndAllowThreads(__tstate);
15288 if (PyErr_Occurred()) SWIG_fail;
15289 }
15290 {
15291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15292 }
15293 return resultobj;
15294 fail:
15295 return NULL;
15296 }
15297
15298
15299 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15300 PyObject *resultobj = 0;
15301 wxFontEncoding result;
15302
15303 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15304 {
15305 if (!wxPyCheckForApp()) SWIG_fail;
15306 PyThreadState* __tstate = wxPyBeginAllowThreads();
15307 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15308 wxPyEndAllowThreads(__tstate);
15309 if (PyErr_Occurred()) SWIG_fail;
15310 }
15311 resultobj = SWIG_From_int(static_cast< int >(result));
15312 return resultobj;
15313 fail:
15314 return NULL;
15315 }
15316
15317
15318 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15319 PyObject *resultobj = 0;
15320 wxFontEncoding arg1 ;
15321 int val1 ;
15322 int ecode1 = 0 ;
15323 PyObject * obj0 = 0 ;
15324 char * kwnames[] = {
15325 (char *) "encoding", NULL
15326 };
15327
15328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15329 ecode1 = SWIG_AsVal_int(obj0, &val1);
15330 if (!SWIG_IsOK(ecode1)) {
15331 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15332 }
15333 arg1 = static_cast< wxFontEncoding >(val1);
15334 {
15335 if (!wxPyCheckForApp()) SWIG_fail;
15336 PyThreadState* __tstate = wxPyBeginAllowThreads();
15337 wxFont::SetDefaultEncoding(arg1);
15338 wxPyEndAllowThreads(__tstate);
15339 if (PyErr_Occurred()) SWIG_fail;
15340 }
15341 resultobj = SWIG_Py_Void();
15342 return resultobj;
15343 fail:
15344 return NULL;
15345 }
15346
15347
15348 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15349 PyObject *obj;
15350 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15351 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15352 return SWIG_Py_Void();
15353 }
15354
15355 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15356 return SWIG_Python_InitShadowInstance(args);
15357 }
15358
15359 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15360 PyObject *resultobj = 0;
15361 wxPyFontEnumerator *result = 0 ;
15362
15363 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15364 {
15365 if (!wxPyCheckForApp()) SWIG_fail;
15366 PyThreadState* __tstate = wxPyBeginAllowThreads();
15367 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15368 wxPyEndAllowThreads(__tstate);
15369 if (PyErr_Occurred()) SWIG_fail;
15370 }
15371 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15372 return resultobj;
15373 fail:
15374 return NULL;
15375 }
15376
15377
15378 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15379 PyObject *resultobj = 0;
15380 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15381 void *argp1 = 0 ;
15382 int res1 = 0 ;
15383 PyObject *swig_obj[1] ;
15384
15385 if (!args) SWIG_fail;
15386 swig_obj[0] = args;
15387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15388 if (!SWIG_IsOK(res1)) {
15389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15390 }
15391 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15392 {
15393 PyThreadState* __tstate = wxPyBeginAllowThreads();
15394 delete arg1;
15395
15396 wxPyEndAllowThreads(__tstate);
15397 if (PyErr_Occurred()) SWIG_fail;
15398 }
15399 resultobj = SWIG_Py_Void();
15400 return resultobj;
15401 fail:
15402 return NULL;
15403 }
15404
15405
15406 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15407 PyObject *resultobj = 0;
15408 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15409 PyObject *arg2 = (PyObject *) 0 ;
15410 PyObject *arg3 = (PyObject *) 0 ;
15411 bool arg4 ;
15412 void *argp1 = 0 ;
15413 int res1 = 0 ;
15414 bool val4 ;
15415 int ecode4 = 0 ;
15416 PyObject * obj0 = 0 ;
15417 PyObject * obj1 = 0 ;
15418 PyObject * obj2 = 0 ;
15419 PyObject * obj3 = 0 ;
15420 char * kwnames[] = {
15421 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15422 };
15423
15424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15426 if (!SWIG_IsOK(res1)) {
15427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15428 }
15429 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15430 arg2 = obj1;
15431 arg3 = obj2;
15432 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15433 if (!SWIG_IsOK(ecode4)) {
15434 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15435 }
15436 arg4 = static_cast< bool >(val4);
15437 {
15438 PyThreadState* __tstate = wxPyBeginAllowThreads();
15439 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15440 wxPyEndAllowThreads(__tstate);
15441 if (PyErr_Occurred()) SWIG_fail;
15442 }
15443 resultobj = SWIG_Py_Void();
15444 return resultobj;
15445 fail:
15446 return NULL;
15447 }
15448
15449
15450 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15451 PyObject *resultobj = 0;
15452 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15453 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15454 bool arg3 = (bool) false ;
15455 bool result;
15456 void *argp1 = 0 ;
15457 int res1 = 0 ;
15458 int val2 ;
15459 int ecode2 = 0 ;
15460 bool val3 ;
15461 int ecode3 = 0 ;
15462 PyObject * obj0 = 0 ;
15463 PyObject * obj1 = 0 ;
15464 PyObject * obj2 = 0 ;
15465 char * kwnames[] = {
15466 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15467 };
15468
15469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15471 if (!SWIG_IsOK(res1)) {
15472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15473 }
15474 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15475 if (obj1) {
15476 ecode2 = SWIG_AsVal_int(obj1, &val2);
15477 if (!SWIG_IsOK(ecode2)) {
15478 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15479 }
15480 arg2 = static_cast< wxFontEncoding >(val2);
15481 }
15482 if (obj2) {
15483 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15484 if (!SWIG_IsOK(ecode3)) {
15485 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15486 }
15487 arg3 = static_cast< bool >(val3);
15488 }
15489 {
15490 PyThreadState* __tstate = wxPyBeginAllowThreads();
15491 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15492 wxPyEndAllowThreads(__tstate);
15493 if (PyErr_Occurred()) SWIG_fail;
15494 }
15495 {
15496 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15497 }
15498 return resultobj;
15499 fail:
15500 return NULL;
15501 }
15502
15503
15504 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15505 PyObject *resultobj = 0;
15506 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15507 wxString const &arg2_defvalue = wxPyEmptyString ;
15508 wxString *arg2 = (wxString *) &arg2_defvalue ;
15509 bool result;
15510 void *argp1 = 0 ;
15511 int res1 = 0 ;
15512 bool temp2 = false ;
15513 PyObject * obj0 = 0 ;
15514 PyObject * obj1 = 0 ;
15515 char * kwnames[] = {
15516 (char *) "self",(char *) "facename", NULL
15517 };
15518
15519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15521 if (!SWIG_IsOK(res1)) {
15522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15523 }
15524 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15525 if (obj1) {
15526 {
15527 arg2 = wxString_in_helper(obj1);
15528 if (arg2 == NULL) SWIG_fail;
15529 temp2 = true;
15530 }
15531 }
15532 {
15533 PyThreadState* __tstate = wxPyBeginAllowThreads();
15534 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15535 wxPyEndAllowThreads(__tstate);
15536 if (PyErr_Occurred()) SWIG_fail;
15537 }
15538 {
15539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15540 }
15541 {
15542 if (temp2)
15543 delete arg2;
15544 }
15545 return resultobj;
15546 fail:
15547 {
15548 if (temp2)
15549 delete arg2;
15550 }
15551 return NULL;
15552 }
15553
15554
15555 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15556 PyObject *resultobj = 0;
15557 PyObject *result = 0 ;
15558
15559 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
15560 {
15561 PyThreadState* __tstate = wxPyBeginAllowThreads();
15562 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
15563 wxPyEndAllowThreads(__tstate);
15564 if (PyErr_Occurred()) SWIG_fail;
15565 }
15566 resultobj = result;
15567 return resultobj;
15568 fail:
15569 return NULL;
15570 }
15571
15572
15573 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15574 PyObject *resultobj = 0;
15575 PyObject *result = 0 ;
15576
15577 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
15578 {
15579 PyThreadState* __tstate = wxPyBeginAllowThreads();
15580 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
15581 wxPyEndAllowThreads(__tstate);
15582 if (PyErr_Occurred()) SWIG_fail;
15583 }
15584 resultobj = result;
15585 return resultobj;
15586 fail:
15587 return NULL;
15588 }
15589
15590
15591 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15592 PyObject *resultobj = 0;
15593 wxString *arg1 = 0 ;
15594 bool result;
15595 bool temp1 = false ;
15596 PyObject * obj0 = 0 ;
15597 char * kwnames[] = {
15598 (char *) "str", NULL
15599 };
15600
15601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15602 {
15603 arg1 = wxString_in_helper(obj0);
15604 if (arg1 == NULL) SWIG_fail;
15605 temp1 = true;
15606 }
15607 {
15608 PyThreadState* __tstate = wxPyBeginAllowThreads();
15609 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15610 wxPyEndAllowThreads(__tstate);
15611 if (PyErr_Occurred()) SWIG_fail;
15612 }
15613 {
15614 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15615 }
15616 {
15617 if (temp1)
15618 delete arg1;
15619 }
15620 return resultobj;
15621 fail:
15622 {
15623 if (temp1)
15624 delete arg1;
15625 }
15626 return NULL;
15627 }
15628
15629
15630 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15631 PyObject *obj;
15632 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15633 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15634 return SWIG_Py_Void();
15635 }
15636
15637 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15638 return SWIG_Python_InitShadowInstance(args);
15639 }
15640
15641 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15642 PyObject *resultobj = 0;
15643 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15644 int arg2 ;
15645 void *argp1 = 0 ;
15646 int res1 = 0 ;
15647 int val2 ;
15648 int ecode2 = 0 ;
15649 PyObject *swig_obj[2] ;
15650
15651 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15653 if (!SWIG_IsOK(res1)) {
15654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15655 }
15656 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15657 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15658 if (!SWIG_IsOK(ecode2)) {
15659 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15660 }
15661 arg2 = static_cast< int >(val2);
15662 if (arg1) (arg1)->Language = arg2;
15663
15664 resultobj = SWIG_Py_Void();
15665 return resultobj;
15666 fail:
15667 return NULL;
15668 }
15669
15670
15671 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15672 PyObject *resultobj = 0;
15673 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15674 int result;
15675 void *argp1 = 0 ;
15676 int res1 = 0 ;
15677 PyObject *swig_obj[1] ;
15678
15679 if (!args) SWIG_fail;
15680 swig_obj[0] = args;
15681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15682 if (!SWIG_IsOK(res1)) {
15683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15684 }
15685 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15686 result = (int) ((arg1)->Language);
15687 resultobj = SWIG_From_int(static_cast< int >(result));
15688 return resultobj;
15689 fail:
15690 return NULL;
15691 }
15692
15693
15694 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15695 PyObject *resultobj = 0;
15696 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15697 wxString *arg2 = (wxString *) 0 ;
15698 void *argp1 = 0 ;
15699 int res1 = 0 ;
15700 bool temp2 = false ;
15701 PyObject *swig_obj[2] ;
15702
15703 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15705 if (!SWIG_IsOK(res1)) {
15706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15707 }
15708 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15709 {
15710 arg2 = wxString_in_helper(swig_obj[1]);
15711 if (arg2 == NULL) SWIG_fail;
15712 temp2 = true;
15713 }
15714 if (arg1) (arg1)->CanonicalName = *arg2;
15715
15716 resultobj = SWIG_Py_Void();
15717 {
15718 if (temp2)
15719 delete arg2;
15720 }
15721 return resultobj;
15722 fail:
15723 {
15724 if (temp2)
15725 delete arg2;
15726 }
15727 return NULL;
15728 }
15729
15730
15731 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15732 PyObject *resultobj = 0;
15733 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15734 wxString *result = 0 ;
15735 void *argp1 = 0 ;
15736 int res1 = 0 ;
15737 PyObject *swig_obj[1] ;
15738
15739 if (!args) SWIG_fail;
15740 swig_obj[0] = args;
15741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15742 if (!SWIG_IsOK(res1)) {
15743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15744 }
15745 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15746 result = (wxString *)& ((arg1)->CanonicalName);
15747 {
15748 #if wxUSE_UNICODE
15749 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15750 #else
15751 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15752 #endif
15753 }
15754 return resultobj;
15755 fail:
15756 return NULL;
15757 }
15758
15759
15760 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15761 PyObject *resultobj = 0;
15762 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15763 wxString *arg2 = (wxString *) 0 ;
15764 void *argp1 = 0 ;
15765 int res1 = 0 ;
15766 bool temp2 = false ;
15767 PyObject *swig_obj[2] ;
15768
15769 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15771 if (!SWIG_IsOK(res1)) {
15772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15773 }
15774 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15775 {
15776 arg2 = wxString_in_helper(swig_obj[1]);
15777 if (arg2 == NULL) SWIG_fail;
15778 temp2 = true;
15779 }
15780 if (arg1) (arg1)->Description = *arg2;
15781
15782 resultobj = SWIG_Py_Void();
15783 {
15784 if (temp2)
15785 delete arg2;
15786 }
15787 return resultobj;
15788 fail:
15789 {
15790 if (temp2)
15791 delete arg2;
15792 }
15793 return NULL;
15794 }
15795
15796
15797 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15798 PyObject *resultobj = 0;
15799 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15800 wxString *result = 0 ;
15801 void *argp1 = 0 ;
15802 int res1 = 0 ;
15803 PyObject *swig_obj[1] ;
15804
15805 if (!args) SWIG_fail;
15806 swig_obj[0] = args;
15807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15808 if (!SWIG_IsOK(res1)) {
15809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15810 }
15811 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15812 result = (wxString *)& ((arg1)->Description);
15813 {
15814 #if wxUSE_UNICODE
15815 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15816 #else
15817 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15818 #endif
15819 }
15820 return resultobj;
15821 fail:
15822 return NULL;
15823 }
15824
15825
15826 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15827 PyObject *obj;
15828 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15829 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15830 return SWIG_Py_Void();
15831 }
15832
15833 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15834 PyObject *resultobj = 0;
15835 int arg1 = (int) -1 ;
15836 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15837 wxLocale *result = 0 ;
15838 int val1 ;
15839 int ecode1 = 0 ;
15840 int val2 ;
15841 int ecode2 = 0 ;
15842 PyObject * obj0 = 0 ;
15843 PyObject * obj1 = 0 ;
15844 char * kwnames[] = {
15845 (char *) "language",(char *) "flags", NULL
15846 };
15847
15848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15849 if (obj0) {
15850 ecode1 = SWIG_AsVal_int(obj0, &val1);
15851 if (!SWIG_IsOK(ecode1)) {
15852 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15853 }
15854 arg1 = static_cast< int >(val1);
15855 }
15856 if (obj1) {
15857 ecode2 = SWIG_AsVal_int(obj1, &val2);
15858 if (!SWIG_IsOK(ecode2)) {
15859 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15860 }
15861 arg2 = static_cast< int >(val2);
15862 }
15863 {
15864 PyThreadState* __tstate = wxPyBeginAllowThreads();
15865 result = (wxLocale *)new_wxLocale(arg1,arg2);
15866 wxPyEndAllowThreads(__tstate);
15867 if (PyErr_Occurred()) SWIG_fail;
15868 }
15869 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15870 return resultobj;
15871 fail:
15872 return NULL;
15873 }
15874
15875
15876 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15877 PyObject *resultobj = 0;
15878 wxLocale *arg1 = (wxLocale *) 0 ;
15879 void *argp1 = 0 ;
15880 int res1 = 0 ;
15881 PyObject *swig_obj[1] ;
15882
15883 if (!args) SWIG_fail;
15884 swig_obj[0] = args;
15885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15886 if (!SWIG_IsOK(res1)) {
15887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15888 }
15889 arg1 = reinterpret_cast< wxLocale * >(argp1);
15890 {
15891 PyThreadState* __tstate = wxPyBeginAllowThreads();
15892 delete arg1;
15893
15894 wxPyEndAllowThreads(__tstate);
15895 if (PyErr_Occurred()) SWIG_fail;
15896 }
15897 resultobj = SWIG_Py_Void();
15898 return resultobj;
15899 fail:
15900 return NULL;
15901 }
15902
15903
15904 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15905 PyObject *resultobj = 0;
15906 wxLocale *arg1 = (wxLocale *) 0 ;
15907 wxString *arg2 = 0 ;
15908 wxString const &arg3_defvalue = wxPyEmptyString ;
15909 wxString *arg3 = (wxString *) &arg3_defvalue ;
15910 wxString const &arg4_defvalue = wxPyEmptyString ;
15911 wxString *arg4 = (wxString *) &arg4_defvalue ;
15912 bool arg5 = (bool) true ;
15913 bool arg6 = (bool) false ;
15914 bool result;
15915 void *argp1 = 0 ;
15916 int res1 = 0 ;
15917 bool temp2 = false ;
15918 bool temp3 = false ;
15919 bool temp4 = false ;
15920 bool val5 ;
15921 int ecode5 = 0 ;
15922 bool val6 ;
15923 int ecode6 = 0 ;
15924 PyObject * obj0 = 0 ;
15925 PyObject * obj1 = 0 ;
15926 PyObject * obj2 = 0 ;
15927 PyObject * obj3 = 0 ;
15928 PyObject * obj4 = 0 ;
15929 PyObject * obj5 = 0 ;
15930 char * kwnames[] = {
15931 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15932 };
15933
15934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15936 if (!SWIG_IsOK(res1)) {
15937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15938 }
15939 arg1 = reinterpret_cast< wxLocale * >(argp1);
15940 {
15941 arg2 = wxString_in_helper(obj1);
15942 if (arg2 == NULL) SWIG_fail;
15943 temp2 = true;
15944 }
15945 if (obj2) {
15946 {
15947 arg3 = wxString_in_helper(obj2);
15948 if (arg3 == NULL) SWIG_fail;
15949 temp3 = true;
15950 }
15951 }
15952 if (obj3) {
15953 {
15954 arg4 = wxString_in_helper(obj3);
15955 if (arg4 == NULL) SWIG_fail;
15956 temp4 = true;
15957 }
15958 }
15959 if (obj4) {
15960 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15961 if (!SWIG_IsOK(ecode5)) {
15962 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15963 }
15964 arg5 = static_cast< bool >(val5);
15965 }
15966 if (obj5) {
15967 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15968 if (!SWIG_IsOK(ecode6)) {
15969 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
15970 }
15971 arg6 = static_cast< bool >(val6);
15972 }
15973 {
15974 PyThreadState* __tstate = wxPyBeginAllowThreads();
15975 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
15976 wxPyEndAllowThreads(__tstate);
15977 if (PyErr_Occurred()) SWIG_fail;
15978 }
15979 {
15980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15981 }
15982 {
15983 if (temp2)
15984 delete arg2;
15985 }
15986 {
15987 if (temp3)
15988 delete arg3;
15989 }
15990 {
15991 if (temp4)
15992 delete arg4;
15993 }
15994 return resultobj;
15995 fail:
15996 {
15997 if (temp2)
15998 delete arg2;
15999 }
16000 {
16001 if (temp3)
16002 delete arg3;
16003 }
16004 {
16005 if (temp4)
16006 delete arg4;
16007 }
16008 return NULL;
16009 }
16010
16011
16012 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16013 PyObject *resultobj = 0;
16014 wxLocale *arg1 = (wxLocale *) 0 ;
16015 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16016 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16017 bool result;
16018 void *argp1 = 0 ;
16019 int res1 = 0 ;
16020 int val2 ;
16021 int ecode2 = 0 ;
16022 int val3 ;
16023 int ecode3 = 0 ;
16024 PyObject * obj0 = 0 ;
16025 PyObject * obj1 = 0 ;
16026 PyObject * obj2 = 0 ;
16027 char * kwnames[] = {
16028 (char *) "self",(char *) "language",(char *) "flags", NULL
16029 };
16030
16031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16033 if (!SWIG_IsOK(res1)) {
16034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16035 }
16036 arg1 = reinterpret_cast< wxLocale * >(argp1);
16037 if (obj1) {
16038 ecode2 = SWIG_AsVal_int(obj1, &val2);
16039 if (!SWIG_IsOK(ecode2)) {
16040 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16041 }
16042 arg2 = static_cast< int >(val2);
16043 }
16044 if (obj2) {
16045 ecode3 = SWIG_AsVal_int(obj2, &val3);
16046 if (!SWIG_IsOK(ecode3)) {
16047 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16048 }
16049 arg3 = static_cast< int >(val3);
16050 }
16051 {
16052 PyThreadState* __tstate = wxPyBeginAllowThreads();
16053 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16054 wxPyEndAllowThreads(__tstate);
16055 if (PyErr_Occurred()) SWIG_fail;
16056 }
16057 {
16058 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16059 }
16060 return resultobj;
16061 fail:
16062 return NULL;
16063 }
16064
16065
16066 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16067 PyObject *resultobj = 0;
16068 int result;
16069
16070 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16071 {
16072 PyThreadState* __tstate = wxPyBeginAllowThreads();
16073 result = (int)wxLocale::GetSystemLanguage();
16074 wxPyEndAllowThreads(__tstate);
16075 if (PyErr_Occurred()) SWIG_fail;
16076 }
16077 resultobj = SWIG_From_int(static_cast< int >(result));
16078 return resultobj;
16079 fail:
16080 return NULL;
16081 }
16082
16083
16084 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16085 PyObject *resultobj = 0;
16086 wxFontEncoding result;
16087
16088 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16089 {
16090 PyThreadState* __tstate = wxPyBeginAllowThreads();
16091 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16092 wxPyEndAllowThreads(__tstate);
16093 if (PyErr_Occurred()) SWIG_fail;
16094 }
16095 resultobj = SWIG_From_int(static_cast< int >(result));
16096 return resultobj;
16097 fail:
16098 return NULL;
16099 }
16100
16101
16102 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16103 PyObject *resultobj = 0;
16104 wxString result;
16105
16106 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16107 {
16108 PyThreadState* __tstate = wxPyBeginAllowThreads();
16109 result = wxLocale::GetSystemEncodingName();
16110 wxPyEndAllowThreads(__tstate);
16111 if (PyErr_Occurred()) SWIG_fail;
16112 }
16113 {
16114 #if wxUSE_UNICODE
16115 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16116 #else
16117 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16118 #endif
16119 }
16120 return resultobj;
16121 fail:
16122 return NULL;
16123 }
16124
16125
16126 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16127 PyObject *resultobj = 0;
16128 wxLocale *arg1 = (wxLocale *) 0 ;
16129 bool result;
16130 void *argp1 = 0 ;
16131 int res1 = 0 ;
16132 PyObject *swig_obj[1] ;
16133
16134 if (!args) SWIG_fail;
16135 swig_obj[0] = args;
16136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16137 if (!SWIG_IsOK(res1)) {
16138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16139 }
16140 arg1 = reinterpret_cast< wxLocale * >(argp1);
16141 {
16142 PyThreadState* __tstate = wxPyBeginAllowThreads();
16143 result = (bool)((wxLocale const *)arg1)->IsOk();
16144 wxPyEndAllowThreads(__tstate);
16145 if (PyErr_Occurred()) SWIG_fail;
16146 }
16147 {
16148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16149 }
16150 return resultobj;
16151 fail:
16152 return NULL;
16153 }
16154
16155
16156 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16157 PyObject *resultobj = 0;
16158 wxLocale *arg1 = (wxLocale *) 0 ;
16159 wxString result;
16160 void *argp1 = 0 ;
16161 int res1 = 0 ;
16162 PyObject *swig_obj[1] ;
16163
16164 if (!args) SWIG_fail;
16165 swig_obj[0] = args;
16166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16167 if (!SWIG_IsOK(res1)) {
16168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16169 }
16170 arg1 = reinterpret_cast< wxLocale * >(argp1);
16171 {
16172 PyThreadState* __tstate = wxPyBeginAllowThreads();
16173 result = ((wxLocale const *)arg1)->GetLocale();
16174 wxPyEndAllowThreads(__tstate);
16175 if (PyErr_Occurred()) SWIG_fail;
16176 }
16177 {
16178 #if wxUSE_UNICODE
16179 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16180 #else
16181 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16182 #endif
16183 }
16184 return resultobj;
16185 fail:
16186 return NULL;
16187 }
16188
16189
16190 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16191 PyObject *resultobj = 0;
16192 wxLocale *arg1 = (wxLocale *) 0 ;
16193 int result;
16194 void *argp1 = 0 ;
16195 int res1 = 0 ;
16196 PyObject *swig_obj[1] ;
16197
16198 if (!args) SWIG_fail;
16199 swig_obj[0] = args;
16200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16201 if (!SWIG_IsOK(res1)) {
16202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16203 }
16204 arg1 = reinterpret_cast< wxLocale * >(argp1);
16205 {
16206 PyThreadState* __tstate = wxPyBeginAllowThreads();
16207 result = (int)((wxLocale const *)arg1)->GetLanguage();
16208 wxPyEndAllowThreads(__tstate);
16209 if (PyErr_Occurred()) SWIG_fail;
16210 }
16211 resultobj = SWIG_From_int(static_cast< int >(result));
16212 return resultobj;
16213 fail:
16214 return NULL;
16215 }
16216
16217
16218 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16219 PyObject *resultobj = 0;
16220 wxLocale *arg1 = (wxLocale *) 0 ;
16221 wxString result;
16222 void *argp1 = 0 ;
16223 int res1 = 0 ;
16224 PyObject *swig_obj[1] ;
16225
16226 if (!args) SWIG_fail;
16227 swig_obj[0] = args;
16228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16229 if (!SWIG_IsOK(res1)) {
16230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16231 }
16232 arg1 = reinterpret_cast< wxLocale * >(argp1);
16233 {
16234 PyThreadState* __tstate = wxPyBeginAllowThreads();
16235 result = ((wxLocale const *)arg1)->GetSysName();
16236 wxPyEndAllowThreads(__tstate);
16237 if (PyErr_Occurred()) SWIG_fail;
16238 }
16239 {
16240 #if wxUSE_UNICODE
16241 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16242 #else
16243 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16244 #endif
16245 }
16246 return resultobj;
16247 fail:
16248 return NULL;
16249 }
16250
16251
16252 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16253 PyObject *resultobj = 0;
16254 wxLocale *arg1 = (wxLocale *) 0 ;
16255 wxString result;
16256 void *argp1 = 0 ;
16257 int res1 = 0 ;
16258 PyObject *swig_obj[1] ;
16259
16260 if (!args) SWIG_fail;
16261 swig_obj[0] = args;
16262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16263 if (!SWIG_IsOK(res1)) {
16264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16265 }
16266 arg1 = reinterpret_cast< wxLocale * >(argp1);
16267 {
16268 PyThreadState* __tstate = wxPyBeginAllowThreads();
16269 result = ((wxLocale const *)arg1)->GetCanonicalName();
16270 wxPyEndAllowThreads(__tstate);
16271 if (PyErr_Occurred()) SWIG_fail;
16272 }
16273 {
16274 #if wxUSE_UNICODE
16275 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16276 #else
16277 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16278 #endif
16279 }
16280 return resultobj;
16281 fail:
16282 return NULL;
16283 }
16284
16285
16286 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16287 PyObject *resultobj = 0;
16288 wxString *arg1 = 0 ;
16289 bool temp1 = false ;
16290 PyObject * obj0 = 0 ;
16291 char * kwnames[] = {
16292 (char *) "prefix", NULL
16293 };
16294
16295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16296 {
16297 arg1 = wxString_in_helper(obj0);
16298 if (arg1 == NULL) SWIG_fail;
16299 temp1 = true;
16300 }
16301 {
16302 PyThreadState* __tstate = wxPyBeginAllowThreads();
16303 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16304 wxPyEndAllowThreads(__tstate);
16305 if (PyErr_Occurred()) SWIG_fail;
16306 }
16307 resultobj = SWIG_Py_Void();
16308 {
16309 if (temp1)
16310 delete arg1;
16311 }
16312 return resultobj;
16313 fail:
16314 {
16315 if (temp1)
16316 delete arg1;
16317 }
16318 return NULL;
16319 }
16320
16321
16322 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16323 PyObject *resultobj = 0;
16324 wxLocale *arg1 = (wxLocale *) 0 ;
16325 wxString *arg2 = 0 ;
16326 bool result;
16327 void *argp1 = 0 ;
16328 int res1 = 0 ;
16329 bool temp2 = false ;
16330 PyObject * obj0 = 0 ;
16331 PyObject * obj1 = 0 ;
16332 char * kwnames[] = {
16333 (char *) "self",(char *) "szDomain", NULL
16334 };
16335
16336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16338 if (!SWIG_IsOK(res1)) {
16339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16340 }
16341 arg1 = reinterpret_cast< wxLocale * >(argp1);
16342 {
16343 arg2 = wxString_in_helper(obj1);
16344 if (arg2 == NULL) SWIG_fail;
16345 temp2 = true;
16346 }
16347 {
16348 PyThreadState* __tstate = wxPyBeginAllowThreads();
16349 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16350 wxPyEndAllowThreads(__tstate);
16351 if (PyErr_Occurred()) SWIG_fail;
16352 }
16353 {
16354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16355 }
16356 {
16357 if (temp2)
16358 delete arg2;
16359 }
16360 return resultobj;
16361 fail:
16362 {
16363 if (temp2)
16364 delete arg2;
16365 }
16366 return NULL;
16367 }
16368
16369
16370 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16371 PyObject *resultobj = 0;
16372 int arg1 ;
16373 bool result;
16374 int val1 ;
16375 int ecode1 = 0 ;
16376 PyObject * obj0 = 0 ;
16377 char * kwnames[] = {
16378 (char *) "lang", NULL
16379 };
16380
16381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16382 ecode1 = SWIG_AsVal_int(obj0, &val1);
16383 if (!SWIG_IsOK(ecode1)) {
16384 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16385 }
16386 arg1 = static_cast< int >(val1);
16387 {
16388 PyThreadState* __tstate = wxPyBeginAllowThreads();
16389 result = (bool)wxLocale::IsAvailable(arg1);
16390 wxPyEndAllowThreads(__tstate);
16391 if (PyErr_Occurred()) SWIG_fail;
16392 }
16393 {
16394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16395 }
16396 return resultobj;
16397 fail:
16398 return NULL;
16399 }
16400
16401
16402 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16403 PyObject *resultobj = 0;
16404 wxLocale *arg1 = (wxLocale *) 0 ;
16405 wxString *arg2 = 0 ;
16406 bool result;
16407 void *argp1 = 0 ;
16408 int res1 = 0 ;
16409 bool temp2 = false ;
16410 PyObject * obj0 = 0 ;
16411 PyObject * obj1 = 0 ;
16412 char * kwnames[] = {
16413 (char *) "self",(char *) "szDomain", NULL
16414 };
16415
16416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16418 if (!SWIG_IsOK(res1)) {
16419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16420 }
16421 arg1 = reinterpret_cast< wxLocale * >(argp1);
16422 {
16423 arg2 = wxString_in_helper(obj1);
16424 if (arg2 == NULL) SWIG_fail;
16425 temp2 = true;
16426 }
16427 {
16428 PyThreadState* __tstate = wxPyBeginAllowThreads();
16429 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16430 wxPyEndAllowThreads(__tstate);
16431 if (PyErr_Occurred()) SWIG_fail;
16432 }
16433 {
16434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16435 }
16436 {
16437 if (temp2)
16438 delete arg2;
16439 }
16440 return resultobj;
16441 fail:
16442 {
16443 if (temp2)
16444 delete arg2;
16445 }
16446 return NULL;
16447 }
16448
16449
16450 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16451 PyObject *resultobj = 0;
16452 int arg1 ;
16453 wxLanguageInfo *result = 0 ;
16454 int val1 ;
16455 int ecode1 = 0 ;
16456 PyObject * obj0 = 0 ;
16457 char * kwnames[] = {
16458 (char *) "lang", NULL
16459 };
16460
16461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16462 ecode1 = SWIG_AsVal_int(obj0, &val1);
16463 if (!SWIG_IsOK(ecode1)) {
16464 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16465 }
16466 arg1 = static_cast< int >(val1);
16467 {
16468 PyThreadState* __tstate = wxPyBeginAllowThreads();
16469 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16470 wxPyEndAllowThreads(__tstate);
16471 if (PyErr_Occurred()) SWIG_fail;
16472 }
16473 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16474 return resultobj;
16475 fail:
16476 return NULL;
16477 }
16478
16479
16480 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16481 PyObject *resultobj = 0;
16482 int arg1 ;
16483 wxString result;
16484 int val1 ;
16485 int ecode1 = 0 ;
16486 PyObject * obj0 = 0 ;
16487 char * kwnames[] = {
16488 (char *) "lang", NULL
16489 };
16490
16491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16492 ecode1 = SWIG_AsVal_int(obj0, &val1);
16493 if (!SWIG_IsOK(ecode1)) {
16494 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16495 }
16496 arg1 = static_cast< int >(val1);
16497 {
16498 PyThreadState* __tstate = wxPyBeginAllowThreads();
16499 result = wxLocale::GetLanguageName(arg1);
16500 wxPyEndAllowThreads(__tstate);
16501 if (PyErr_Occurred()) SWIG_fail;
16502 }
16503 {
16504 #if wxUSE_UNICODE
16505 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16506 #else
16507 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16508 #endif
16509 }
16510 return resultobj;
16511 fail:
16512 return NULL;
16513 }
16514
16515
16516 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16517 PyObject *resultobj = 0;
16518 wxString *arg1 = 0 ;
16519 wxLanguageInfo *result = 0 ;
16520 bool temp1 = false ;
16521 PyObject * obj0 = 0 ;
16522 char * kwnames[] = {
16523 (char *) "locale", NULL
16524 };
16525
16526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16527 {
16528 arg1 = wxString_in_helper(obj0);
16529 if (arg1 == NULL) SWIG_fail;
16530 temp1 = true;
16531 }
16532 {
16533 PyThreadState* __tstate = wxPyBeginAllowThreads();
16534 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16535 wxPyEndAllowThreads(__tstate);
16536 if (PyErr_Occurred()) SWIG_fail;
16537 }
16538 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16539 {
16540 if (temp1)
16541 delete arg1;
16542 }
16543 return resultobj;
16544 fail:
16545 {
16546 if (temp1)
16547 delete arg1;
16548 }
16549 return NULL;
16550 }
16551
16552
16553 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16554 PyObject *resultobj = 0;
16555 wxLanguageInfo *arg1 = 0 ;
16556 void *argp1 = 0 ;
16557 int res1 = 0 ;
16558 PyObject * obj0 = 0 ;
16559 char * kwnames[] = {
16560 (char *) "info", NULL
16561 };
16562
16563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16564 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16565 if (!SWIG_IsOK(res1)) {
16566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16567 }
16568 if (!argp1) {
16569 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16570 }
16571 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16572 {
16573 PyThreadState* __tstate = wxPyBeginAllowThreads();
16574 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16575 wxPyEndAllowThreads(__tstate);
16576 if (PyErr_Occurred()) SWIG_fail;
16577 }
16578 resultobj = SWIG_Py_Void();
16579 return resultobj;
16580 fail:
16581 return NULL;
16582 }
16583
16584
16585 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16586 PyObject *resultobj = 0;
16587 wxLocale *arg1 = (wxLocale *) 0 ;
16588 wxString *arg2 = 0 ;
16589 wxString const &arg3_defvalue = wxPyEmptyString ;
16590 wxString *arg3 = (wxString *) &arg3_defvalue ;
16591 wxString result;
16592 void *argp1 = 0 ;
16593 int res1 = 0 ;
16594 bool temp2 = false ;
16595 bool temp3 = false ;
16596 PyObject * obj0 = 0 ;
16597 PyObject * obj1 = 0 ;
16598 PyObject * obj2 = 0 ;
16599 char * kwnames[] = {
16600 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16601 };
16602
16603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16605 if (!SWIG_IsOK(res1)) {
16606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16607 }
16608 arg1 = reinterpret_cast< wxLocale * >(argp1);
16609 {
16610 arg2 = wxString_in_helper(obj1);
16611 if (arg2 == NULL) SWIG_fail;
16612 temp2 = true;
16613 }
16614 if (obj2) {
16615 {
16616 arg3 = wxString_in_helper(obj2);
16617 if (arg3 == NULL) SWIG_fail;
16618 temp3 = true;
16619 }
16620 }
16621 {
16622 PyThreadState* __tstate = wxPyBeginAllowThreads();
16623 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16624 wxPyEndAllowThreads(__tstate);
16625 if (PyErr_Occurred()) SWIG_fail;
16626 }
16627 {
16628 #if wxUSE_UNICODE
16629 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16630 #else
16631 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16632 #endif
16633 }
16634 {
16635 if (temp2)
16636 delete arg2;
16637 }
16638 {
16639 if (temp3)
16640 delete arg3;
16641 }
16642 return resultobj;
16643 fail:
16644 {
16645 if (temp2)
16646 delete arg2;
16647 }
16648 {
16649 if (temp3)
16650 delete arg3;
16651 }
16652 return NULL;
16653 }
16654
16655
16656 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16657 PyObject *resultobj = 0;
16658 wxLocale *arg1 = (wxLocale *) 0 ;
16659 wxString *result = 0 ;
16660 void *argp1 = 0 ;
16661 int res1 = 0 ;
16662 PyObject *swig_obj[1] ;
16663
16664 if (!args) SWIG_fail;
16665 swig_obj[0] = args;
16666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16667 if (!SWIG_IsOK(res1)) {
16668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16669 }
16670 arg1 = reinterpret_cast< wxLocale * >(argp1);
16671 {
16672 PyThreadState* __tstate = wxPyBeginAllowThreads();
16673 {
16674 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16675 result = (wxString *) &_result_ref;
16676 }
16677 wxPyEndAllowThreads(__tstate);
16678 if (PyErr_Occurred()) SWIG_fail;
16679 }
16680 {
16681 #if wxUSE_UNICODE
16682 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16683 #else
16684 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16685 #endif
16686 }
16687 return resultobj;
16688 fail:
16689 return NULL;
16690 }
16691
16692
16693 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16694 PyObject *obj;
16695 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16696 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16697 return SWIG_Py_Void();
16698 }
16699
16700 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16701 return SWIG_Python_InitShadowInstance(args);
16702 }
16703
16704 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16705 PyObject *resultobj = 0;
16706 int arg1 = (int) -1 ;
16707 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16708 wxPyLocale *result = 0 ;
16709 int val1 ;
16710 int ecode1 = 0 ;
16711 int val2 ;
16712 int ecode2 = 0 ;
16713 PyObject * obj0 = 0 ;
16714 PyObject * obj1 = 0 ;
16715 char * kwnames[] = {
16716 (char *) "language",(char *) "flags", NULL
16717 };
16718
16719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16720 if (obj0) {
16721 ecode1 = SWIG_AsVal_int(obj0, &val1);
16722 if (!SWIG_IsOK(ecode1)) {
16723 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16724 }
16725 arg1 = static_cast< int >(val1);
16726 }
16727 if (obj1) {
16728 ecode2 = SWIG_AsVal_int(obj1, &val2);
16729 if (!SWIG_IsOK(ecode2)) {
16730 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16731 }
16732 arg2 = static_cast< int >(val2);
16733 }
16734 {
16735 PyThreadState* __tstate = wxPyBeginAllowThreads();
16736 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16737 wxPyEndAllowThreads(__tstate);
16738 if (PyErr_Occurred()) SWIG_fail;
16739 }
16740 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16741 return resultobj;
16742 fail:
16743 return NULL;
16744 }
16745
16746
16747 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16748 PyObject *resultobj = 0;
16749 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16750 void *argp1 = 0 ;
16751 int res1 = 0 ;
16752 PyObject *swig_obj[1] ;
16753
16754 if (!args) SWIG_fail;
16755 swig_obj[0] = args;
16756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16757 if (!SWIG_IsOK(res1)) {
16758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16759 }
16760 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16761 {
16762 PyThreadState* __tstate = wxPyBeginAllowThreads();
16763 delete arg1;
16764
16765 wxPyEndAllowThreads(__tstate);
16766 if (PyErr_Occurred()) SWIG_fail;
16767 }
16768 resultobj = SWIG_Py_Void();
16769 return resultobj;
16770 fail:
16771 return NULL;
16772 }
16773
16774
16775 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16776 PyObject *resultobj = 0;
16777 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16778 PyObject *arg2 = (PyObject *) 0 ;
16779 PyObject *arg3 = (PyObject *) 0 ;
16780 void *argp1 = 0 ;
16781 int res1 = 0 ;
16782 PyObject * obj0 = 0 ;
16783 PyObject * obj1 = 0 ;
16784 PyObject * obj2 = 0 ;
16785 char * kwnames[] = {
16786 (char *) "self",(char *) "self",(char *) "_class", NULL
16787 };
16788
16789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16791 if (!SWIG_IsOK(res1)) {
16792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16793 }
16794 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16795 arg2 = obj1;
16796 arg3 = obj2;
16797 {
16798 PyThreadState* __tstate = wxPyBeginAllowThreads();
16799 (arg1)->_setCallbackInfo(arg2,arg3);
16800 wxPyEndAllowThreads(__tstate);
16801 if (PyErr_Occurred()) SWIG_fail;
16802 }
16803 resultobj = SWIG_Py_Void();
16804 return resultobj;
16805 fail:
16806 return NULL;
16807 }
16808
16809
16810 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16811 PyObject *resultobj = 0;
16812 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16813 wxChar *arg2 = (wxChar *) 0 ;
16814 wxChar *arg3 = (wxChar *) NULL ;
16815 wxChar *result = 0 ;
16816 void *argp1 = 0 ;
16817 int res1 = 0 ;
16818 void *argp2 = 0 ;
16819 int res2 = 0 ;
16820 void *argp3 = 0 ;
16821 int res3 = 0 ;
16822 PyObject * obj0 = 0 ;
16823 PyObject * obj1 = 0 ;
16824 PyObject * obj2 = 0 ;
16825 char * kwnames[] = {
16826 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16827 };
16828
16829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16831 if (!SWIG_IsOK(res1)) {
16832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16833 }
16834 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16835 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16836 if (!SWIG_IsOK(res2)) {
16837 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
16838 }
16839 arg2 = reinterpret_cast< wxChar * >(argp2);
16840 if (obj2) {
16841 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16842 if (!SWIG_IsOK(res3)) {
16843 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
16844 }
16845 arg3 = reinterpret_cast< wxChar * >(argp3);
16846 }
16847 {
16848 PyThreadState* __tstate = wxPyBeginAllowThreads();
16849 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
16850 wxPyEndAllowThreads(__tstate);
16851 if (PyErr_Occurred()) SWIG_fail;
16852 }
16853 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16854 return resultobj;
16855 fail:
16856 return NULL;
16857 }
16858
16859
16860 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16861 PyObject *resultobj = 0;
16862 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16863 wxChar *arg2 = (wxChar *) 0 ;
16864 wxChar *arg3 = (wxChar *) 0 ;
16865 size_t arg4 ;
16866 wxChar *arg5 = (wxChar *) NULL ;
16867 wxChar *result = 0 ;
16868 void *argp1 = 0 ;
16869 int res1 = 0 ;
16870 void *argp2 = 0 ;
16871 int res2 = 0 ;
16872 void *argp3 = 0 ;
16873 int res3 = 0 ;
16874 size_t val4 ;
16875 int ecode4 = 0 ;
16876 void *argp5 = 0 ;
16877 int res5 = 0 ;
16878 PyObject * obj0 = 0 ;
16879 PyObject * obj1 = 0 ;
16880 PyObject * obj2 = 0 ;
16881 PyObject * obj3 = 0 ;
16882 PyObject * obj4 = 0 ;
16883 char * kwnames[] = {
16884 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16885 };
16886
16887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16889 if (!SWIG_IsOK(res1)) {
16890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16891 }
16892 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16893 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16894 if (!SWIG_IsOK(res2)) {
16895 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16896 }
16897 arg2 = reinterpret_cast< wxChar * >(argp2);
16898 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16899 if (!SWIG_IsOK(res3)) {
16900 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16901 }
16902 arg3 = reinterpret_cast< wxChar * >(argp3);
16903 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16904 if (!SWIG_IsOK(ecode4)) {
16905 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16906 }
16907 arg4 = static_cast< size_t >(val4);
16908 if (obj4) {
16909 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16910 if (!SWIG_IsOK(res5)) {
16911 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16912 }
16913 arg5 = reinterpret_cast< wxChar * >(argp5);
16914 }
16915 {
16916 PyThreadState* __tstate = wxPyBeginAllowThreads();
16917 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
16918 wxPyEndAllowThreads(__tstate);
16919 if (PyErr_Occurred()) SWIG_fail;
16920 }
16921 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16922 return resultobj;
16923 fail:
16924 return NULL;
16925 }
16926
16927
16928 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16929 PyObject *obj;
16930 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16931 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
16932 return SWIG_Py_Void();
16933 }
16934
16935 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16936 return SWIG_Python_InitShadowInstance(args);
16937 }
16938
16939 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16940 PyObject *resultobj = 0;
16941 wxLocale *result = 0 ;
16942
16943 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16944 {
16945 PyThreadState* __tstate = wxPyBeginAllowThreads();
16946 result = (wxLocale *)wxGetLocale();
16947 wxPyEndAllowThreads(__tstate);
16948 if (PyErr_Occurred()) SWIG_fail;
16949 }
16950 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16951 return resultobj;
16952 fail:
16953 return NULL;
16954 }
16955
16956
16957 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16958 PyObject *resultobj = 0;
16959 wxString *arg1 = 0 ;
16960 wxString result;
16961 bool temp1 = false ;
16962
16963 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16964 {
16965 arg1 = wxString_in_helper(swig_obj[0]);
16966 if (arg1 == NULL) SWIG_fail;
16967 temp1 = true;
16968 }
16969 {
16970 PyThreadState* __tstate = wxPyBeginAllowThreads();
16971 result = wxGetTranslation((wxString const &)*arg1);
16972 wxPyEndAllowThreads(__tstate);
16973 if (PyErr_Occurred()) SWIG_fail;
16974 }
16975 {
16976 #if wxUSE_UNICODE
16977 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16978 #else
16979 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16980 #endif
16981 }
16982 {
16983 if (temp1)
16984 delete arg1;
16985 }
16986 return resultobj;
16987 fail:
16988 {
16989 if (temp1)
16990 delete arg1;
16991 }
16992 return NULL;
16993 }
16994
16995
16996 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16997 PyObject *resultobj = 0;
16998 wxString *arg1 = 0 ;
16999 wxString *arg2 = 0 ;
17000 wxString result;
17001 bool temp1 = false ;
17002 bool temp2 = false ;
17003
17004 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17005 {
17006 arg1 = wxString_in_helper(swig_obj[0]);
17007 if (arg1 == NULL) SWIG_fail;
17008 temp1 = true;
17009 }
17010 {
17011 arg2 = wxString_in_helper(swig_obj[1]);
17012 if (arg2 == NULL) SWIG_fail;
17013 temp2 = true;
17014 }
17015 {
17016 PyThreadState* __tstate = wxPyBeginAllowThreads();
17017 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17018 wxPyEndAllowThreads(__tstate);
17019 if (PyErr_Occurred()) SWIG_fail;
17020 }
17021 {
17022 #if wxUSE_UNICODE
17023 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17024 #else
17025 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17026 #endif
17027 }
17028 {
17029 if (temp1)
17030 delete arg1;
17031 }
17032 {
17033 if (temp2)
17034 delete arg2;
17035 }
17036 return resultobj;
17037 fail:
17038 {
17039 if (temp1)
17040 delete arg1;
17041 }
17042 {
17043 if (temp2)
17044 delete arg2;
17045 }
17046 return NULL;
17047 }
17048
17049
17050 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17051 PyObject *resultobj = 0;
17052 wxString *arg1 = 0 ;
17053 wxString *arg2 = 0 ;
17054 size_t arg3 ;
17055 wxString result;
17056 bool temp1 = false ;
17057 bool temp2 = false ;
17058 size_t val3 ;
17059 int ecode3 = 0 ;
17060
17061 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17062 {
17063 arg1 = wxString_in_helper(swig_obj[0]);
17064 if (arg1 == NULL) SWIG_fail;
17065 temp1 = true;
17066 }
17067 {
17068 arg2 = wxString_in_helper(swig_obj[1]);
17069 if (arg2 == NULL) SWIG_fail;
17070 temp2 = true;
17071 }
17072 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17073 if (!SWIG_IsOK(ecode3)) {
17074 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17075 }
17076 arg3 = static_cast< size_t >(val3);
17077 {
17078 PyThreadState* __tstate = wxPyBeginAllowThreads();
17079 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17080 wxPyEndAllowThreads(__tstate);
17081 if (PyErr_Occurred()) SWIG_fail;
17082 }
17083 {
17084 #if wxUSE_UNICODE
17085 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17086 #else
17087 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17088 #endif
17089 }
17090 {
17091 if (temp1)
17092 delete arg1;
17093 }
17094 {
17095 if (temp2)
17096 delete arg2;
17097 }
17098 return resultobj;
17099 fail:
17100 {
17101 if (temp1)
17102 delete arg1;
17103 }
17104 {
17105 if (temp2)
17106 delete arg2;
17107 }
17108 return NULL;
17109 }
17110
17111
17112 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17113 PyObject *resultobj = 0;
17114 wxString *arg1 = 0 ;
17115 wxString *arg2 = 0 ;
17116 size_t arg3 ;
17117 wxString *arg4 = 0 ;
17118 wxString result;
17119 bool temp1 = false ;
17120 bool temp2 = false ;
17121 size_t val3 ;
17122 int ecode3 = 0 ;
17123 bool temp4 = false ;
17124
17125 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17126 {
17127 arg1 = wxString_in_helper(swig_obj[0]);
17128 if (arg1 == NULL) SWIG_fail;
17129 temp1 = true;
17130 }
17131 {
17132 arg2 = wxString_in_helper(swig_obj[1]);
17133 if (arg2 == NULL) SWIG_fail;
17134 temp2 = true;
17135 }
17136 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17137 if (!SWIG_IsOK(ecode3)) {
17138 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17139 }
17140 arg3 = static_cast< size_t >(val3);
17141 {
17142 arg4 = wxString_in_helper(swig_obj[3]);
17143 if (arg4 == NULL) SWIG_fail;
17144 temp4 = true;
17145 }
17146 {
17147 PyThreadState* __tstate = wxPyBeginAllowThreads();
17148 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17149 wxPyEndAllowThreads(__tstate);
17150 if (PyErr_Occurred()) SWIG_fail;
17151 }
17152 {
17153 #if wxUSE_UNICODE
17154 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17155 #else
17156 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17157 #endif
17158 }
17159 {
17160 if (temp1)
17161 delete arg1;
17162 }
17163 {
17164 if (temp2)
17165 delete arg2;
17166 }
17167 {
17168 if (temp4)
17169 delete arg4;
17170 }
17171 return resultobj;
17172 fail:
17173 {
17174 if (temp1)
17175 delete arg1;
17176 }
17177 {
17178 if (temp2)
17179 delete arg2;
17180 }
17181 {
17182 if (temp4)
17183 delete arg4;
17184 }
17185 return NULL;
17186 }
17187
17188
17189 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17190 int argc;
17191 PyObject *argv[5];
17192
17193 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
17194 --argc;
17195 if (argc == 1) {
17196 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17197 }
17198 if (argc == 2) {
17199 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17200 }
17201 if (argc == 3) {
17202 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17203 }
17204 if (argc == 4) {
17205 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17206 }
17207
17208 fail:
17209 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17210 return NULL;
17211 }
17212
17213
17214 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17215 PyObject *resultobj = 0;
17216 wxEncodingConverter *result = 0 ;
17217
17218 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17219 {
17220 PyThreadState* __tstate = wxPyBeginAllowThreads();
17221 result = (wxEncodingConverter *)new wxEncodingConverter();
17222 wxPyEndAllowThreads(__tstate);
17223 if (PyErr_Occurred()) SWIG_fail;
17224 }
17225 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17226 return resultobj;
17227 fail:
17228 return NULL;
17229 }
17230
17231
17232 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17233 PyObject *resultobj = 0;
17234 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17235 void *argp1 = 0 ;
17236 int res1 = 0 ;
17237 PyObject *swig_obj[1] ;
17238
17239 if (!args) SWIG_fail;
17240 swig_obj[0] = args;
17241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17242 if (!SWIG_IsOK(res1)) {
17243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17244 }
17245 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17246 {
17247 PyThreadState* __tstate = wxPyBeginAllowThreads();
17248 delete arg1;
17249
17250 wxPyEndAllowThreads(__tstate);
17251 if (PyErr_Occurred()) SWIG_fail;
17252 }
17253 resultobj = SWIG_Py_Void();
17254 return resultobj;
17255 fail:
17256 return NULL;
17257 }
17258
17259
17260 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17261 PyObject *resultobj = 0;
17262 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17263 wxFontEncoding arg2 ;
17264 wxFontEncoding arg3 ;
17265 int arg4 = (int) wxCONVERT_STRICT ;
17266 bool result;
17267 void *argp1 = 0 ;
17268 int res1 = 0 ;
17269 int val2 ;
17270 int ecode2 = 0 ;
17271 int val3 ;
17272 int ecode3 = 0 ;
17273 int val4 ;
17274 int ecode4 = 0 ;
17275 PyObject * obj0 = 0 ;
17276 PyObject * obj1 = 0 ;
17277 PyObject * obj2 = 0 ;
17278 PyObject * obj3 = 0 ;
17279 char * kwnames[] = {
17280 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17281 };
17282
17283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17285 if (!SWIG_IsOK(res1)) {
17286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17287 }
17288 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17289 ecode2 = SWIG_AsVal_int(obj1, &val2);
17290 if (!SWIG_IsOK(ecode2)) {
17291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17292 }
17293 arg2 = static_cast< wxFontEncoding >(val2);
17294 ecode3 = SWIG_AsVal_int(obj2, &val3);
17295 if (!SWIG_IsOK(ecode3)) {
17296 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17297 }
17298 arg3 = static_cast< wxFontEncoding >(val3);
17299 if (obj3) {
17300 ecode4 = SWIG_AsVal_int(obj3, &val4);
17301 if (!SWIG_IsOK(ecode4)) {
17302 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17303 }
17304 arg4 = static_cast< int >(val4);
17305 }
17306 {
17307 PyThreadState* __tstate = wxPyBeginAllowThreads();
17308 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17309 wxPyEndAllowThreads(__tstate);
17310 if (PyErr_Occurred()) SWIG_fail;
17311 }
17312 {
17313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17314 }
17315 return resultobj;
17316 fail:
17317 return NULL;
17318 }
17319
17320
17321 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17322 PyObject *resultobj = 0;
17323 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17324 wxString *arg2 = 0 ;
17325 wxString result;
17326 void *argp1 = 0 ;
17327 int res1 = 0 ;
17328 bool temp2 = false ;
17329 PyObject * obj0 = 0 ;
17330 PyObject * obj1 = 0 ;
17331 char * kwnames[] = {
17332 (char *) "self",(char *) "input", NULL
17333 };
17334
17335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17337 if (!SWIG_IsOK(res1)) {
17338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17339 }
17340 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17341 {
17342 arg2 = wxString_in_helper(obj1);
17343 if (arg2 == NULL) SWIG_fail;
17344 temp2 = true;
17345 }
17346 {
17347 PyThreadState* __tstate = wxPyBeginAllowThreads();
17348 result = (arg1)->Convert((wxString const &)*arg2);
17349 wxPyEndAllowThreads(__tstate);
17350 if (PyErr_Occurred()) SWIG_fail;
17351 }
17352 {
17353 #if wxUSE_UNICODE
17354 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17355 #else
17356 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17357 #endif
17358 }
17359 {
17360 if (temp2)
17361 delete arg2;
17362 }
17363 return resultobj;
17364 fail:
17365 {
17366 if (temp2)
17367 delete arg2;
17368 }
17369 return NULL;
17370 }
17371
17372
17373 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17374 PyObject *resultobj = 0;
17375 wxFontEncoding arg1 ;
17376 int arg2 = (int) wxPLATFORM_CURRENT ;
17377 wxFontEncodingArray result;
17378 int val1 ;
17379 int ecode1 = 0 ;
17380 int val2 ;
17381 int ecode2 = 0 ;
17382 PyObject * obj0 = 0 ;
17383 PyObject * obj1 = 0 ;
17384 char * kwnames[] = {
17385 (char *) "enc",(char *) "platform", NULL
17386 };
17387
17388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17389 ecode1 = SWIG_AsVal_int(obj0, &val1);
17390 if (!SWIG_IsOK(ecode1)) {
17391 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17392 }
17393 arg1 = static_cast< wxFontEncoding >(val1);
17394 if (obj1) {
17395 ecode2 = SWIG_AsVal_int(obj1, &val2);
17396 if (!SWIG_IsOK(ecode2)) {
17397 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17398 }
17399 arg2 = static_cast< int >(val2);
17400 }
17401 {
17402 PyThreadState* __tstate = wxPyBeginAllowThreads();
17403 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17404 wxPyEndAllowThreads(__tstate);
17405 if (PyErr_Occurred()) SWIG_fail;
17406 }
17407 {
17408 resultobj = PyList_New(0);
17409 for (size_t i=0; i < (&result)->GetCount(); i++) {
17410 PyObject* number = PyInt_FromLong((&result)->Item(i));
17411 PyList_Append(resultobj, number);
17412 Py_DECREF(number);
17413 }
17414 }
17415 return resultobj;
17416 fail:
17417 return NULL;
17418 }
17419
17420
17421 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17422 PyObject *resultobj = 0;
17423 wxFontEncoding arg1 ;
17424 wxFontEncodingArray result;
17425 int val1 ;
17426 int ecode1 = 0 ;
17427 PyObject * obj0 = 0 ;
17428 char * kwnames[] = {
17429 (char *) "enc", NULL
17430 };
17431
17432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17433 ecode1 = SWIG_AsVal_int(obj0, &val1);
17434 if (!SWIG_IsOK(ecode1)) {
17435 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17436 }
17437 arg1 = static_cast< wxFontEncoding >(val1);
17438 {
17439 PyThreadState* __tstate = wxPyBeginAllowThreads();
17440 result = wxEncodingConverter::GetAllEquivalents(arg1);
17441 wxPyEndAllowThreads(__tstate);
17442 if (PyErr_Occurred()) SWIG_fail;
17443 }
17444 {
17445 resultobj = PyList_New(0);
17446 for (size_t i=0; i < (&result)->GetCount(); i++) {
17447 PyObject* number = PyInt_FromLong((&result)->Item(i));
17448 PyList_Append(resultobj, number);
17449 Py_DECREF(number);
17450 }
17451 }
17452 return resultobj;
17453 fail:
17454 return NULL;
17455 }
17456
17457
17458 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17459 PyObject *resultobj = 0;
17460 wxFontEncoding arg1 ;
17461 wxFontEncoding arg2 ;
17462 bool result;
17463 int val1 ;
17464 int ecode1 = 0 ;
17465 int val2 ;
17466 int ecode2 = 0 ;
17467 PyObject * obj0 = 0 ;
17468 PyObject * obj1 = 0 ;
17469 char * kwnames[] = {
17470 (char *) "encIn",(char *) "encOut", NULL
17471 };
17472
17473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17474 ecode1 = SWIG_AsVal_int(obj0, &val1);
17475 if (!SWIG_IsOK(ecode1)) {
17476 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17477 }
17478 arg1 = static_cast< wxFontEncoding >(val1);
17479 ecode2 = SWIG_AsVal_int(obj1, &val2);
17480 if (!SWIG_IsOK(ecode2)) {
17481 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17482 }
17483 arg2 = static_cast< wxFontEncoding >(val2);
17484 {
17485 PyThreadState* __tstate = wxPyBeginAllowThreads();
17486 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17487 wxPyEndAllowThreads(__tstate);
17488 if (PyErr_Occurred()) SWIG_fail;
17489 }
17490 {
17491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17492 }
17493 return resultobj;
17494 fail:
17495 return NULL;
17496 }
17497
17498
17499 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17500 PyObject *obj;
17501 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17502 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17503 return SWIG_Py_Void();
17504 }
17505
17506 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17507 return SWIG_Python_InitShadowInstance(args);
17508 }
17509
17510 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17511 PyObject *resultobj = 0;
17512 wxDC *arg1 = (wxDC *) 0 ;
17513 void *argp1 = 0 ;
17514 int res1 = 0 ;
17515 PyObject *swig_obj[1] ;
17516
17517 if (!args) SWIG_fail;
17518 swig_obj[0] = args;
17519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17520 if (!SWIG_IsOK(res1)) {
17521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17522 }
17523 arg1 = reinterpret_cast< wxDC * >(argp1);
17524 {
17525 PyThreadState* __tstate = wxPyBeginAllowThreads();
17526 delete arg1;
17527
17528 wxPyEndAllowThreads(__tstate);
17529 if (PyErr_Occurred()) SWIG_fail;
17530 }
17531 resultobj = SWIG_Py_Void();
17532 return resultobj;
17533 fail:
17534 return NULL;
17535 }
17536
17537
17538 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17539 PyObject *resultobj = 0;
17540 wxDC *arg1 = (wxDC *) 0 ;
17541 int arg2 ;
17542 int arg3 ;
17543 wxColour *arg4 = 0 ;
17544 int arg5 = (int) wxFLOOD_SURFACE ;
17545 bool result;
17546 void *argp1 = 0 ;
17547 int res1 = 0 ;
17548 int val2 ;
17549 int ecode2 = 0 ;
17550 int val3 ;
17551 int ecode3 = 0 ;
17552 wxColour temp4 ;
17553 int val5 ;
17554 int ecode5 = 0 ;
17555 PyObject * obj0 = 0 ;
17556 PyObject * obj1 = 0 ;
17557 PyObject * obj2 = 0 ;
17558 PyObject * obj3 = 0 ;
17559 PyObject * obj4 = 0 ;
17560 char * kwnames[] = {
17561 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17562 };
17563
17564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17566 if (!SWIG_IsOK(res1)) {
17567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17568 }
17569 arg1 = reinterpret_cast< wxDC * >(argp1);
17570 ecode2 = SWIG_AsVal_int(obj1, &val2);
17571 if (!SWIG_IsOK(ecode2)) {
17572 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17573 }
17574 arg2 = static_cast< int >(val2);
17575 ecode3 = SWIG_AsVal_int(obj2, &val3);
17576 if (!SWIG_IsOK(ecode3)) {
17577 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17578 }
17579 arg3 = static_cast< int >(val3);
17580 {
17581 arg4 = &temp4;
17582 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17583 }
17584 if (obj4) {
17585 ecode5 = SWIG_AsVal_int(obj4, &val5);
17586 if (!SWIG_IsOK(ecode5)) {
17587 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17588 }
17589 arg5 = static_cast< int >(val5);
17590 }
17591 {
17592 PyThreadState* __tstate = wxPyBeginAllowThreads();
17593 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17594 wxPyEndAllowThreads(__tstate);
17595 if (PyErr_Occurred()) SWIG_fail;
17596 }
17597 {
17598 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17599 }
17600 return resultobj;
17601 fail:
17602 return NULL;
17603 }
17604
17605
17606 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17607 PyObject *resultobj = 0;
17608 wxDC *arg1 = (wxDC *) 0 ;
17609 wxPoint *arg2 = 0 ;
17610 wxColour *arg3 = 0 ;
17611 int arg4 = (int) wxFLOOD_SURFACE ;
17612 bool result;
17613 void *argp1 = 0 ;
17614 int res1 = 0 ;
17615 wxPoint temp2 ;
17616 wxColour temp3 ;
17617 int val4 ;
17618 int ecode4 = 0 ;
17619 PyObject * obj0 = 0 ;
17620 PyObject * obj1 = 0 ;
17621 PyObject * obj2 = 0 ;
17622 PyObject * obj3 = 0 ;
17623 char * kwnames[] = {
17624 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17625 };
17626
17627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17629 if (!SWIG_IsOK(res1)) {
17630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17631 }
17632 arg1 = reinterpret_cast< wxDC * >(argp1);
17633 {
17634 arg2 = &temp2;
17635 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17636 }
17637 {
17638 arg3 = &temp3;
17639 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17640 }
17641 if (obj3) {
17642 ecode4 = SWIG_AsVal_int(obj3, &val4);
17643 if (!SWIG_IsOK(ecode4)) {
17644 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17645 }
17646 arg4 = static_cast< int >(val4);
17647 }
17648 {
17649 PyThreadState* __tstate = wxPyBeginAllowThreads();
17650 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17651 wxPyEndAllowThreads(__tstate);
17652 if (PyErr_Occurred()) SWIG_fail;
17653 }
17654 {
17655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17656 }
17657 return resultobj;
17658 fail:
17659 return NULL;
17660 }
17661
17662
17663 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17664 PyObject *resultobj = 0;
17665 wxDC *arg1 = (wxDC *) 0 ;
17666 wxRect *arg2 = 0 ;
17667 wxColour *arg3 = 0 ;
17668 wxColour *arg4 = 0 ;
17669 wxPoint *arg5 = 0 ;
17670 void *argp1 = 0 ;
17671 int res1 = 0 ;
17672 wxRect temp2 ;
17673 wxColour temp3 ;
17674 wxColour temp4 ;
17675 wxPoint temp5 ;
17676 PyObject * obj0 = 0 ;
17677 PyObject * obj1 = 0 ;
17678 PyObject * obj2 = 0 ;
17679 PyObject * obj3 = 0 ;
17680 PyObject * obj4 = 0 ;
17681 char * kwnames[] = {
17682 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17683 };
17684
17685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17687 if (!SWIG_IsOK(res1)) {
17688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17689 }
17690 arg1 = reinterpret_cast< wxDC * >(argp1);
17691 {
17692 arg2 = &temp2;
17693 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17694 }
17695 {
17696 arg3 = &temp3;
17697 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17698 }
17699 {
17700 arg4 = &temp4;
17701 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17702 }
17703 {
17704 arg5 = &temp5;
17705 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17706 }
17707 {
17708 PyThreadState* __tstate = wxPyBeginAllowThreads();
17709 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17710 wxPyEndAllowThreads(__tstate);
17711 if (PyErr_Occurred()) SWIG_fail;
17712 }
17713 resultobj = SWIG_Py_Void();
17714 return resultobj;
17715 fail:
17716 return NULL;
17717 }
17718
17719
17720 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17721 PyObject *resultobj = 0;
17722 wxDC *arg1 = (wxDC *) 0 ;
17723 wxRect *arg2 = 0 ;
17724 wxColour *arg3 = 0 ;
17725 wxColour *arg4 = 0 ;
17726 wxDirection arg5 = (wxDirection) wxEAST ;
17727 void *argp1 = 0 ;
17728 int res1 = 0 ;
17729 wxRect temp2 ;
17730 wxColour temp3 ;
17731 wxColour temp4 ;
17732 int val5 ;
17733 int ecode5 = 0 ;
17734 PyObject * obj0 = 0 ;
17735 PyObject * obj1 = 0 ;
17736 PyObject * obj2 = 0 ;
17737 PyObject * obj3 = 0 ;
17738 PyObject * obj4 = 0 ;
17739 char * kwnames[] = {
17740 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17741 };
17742
17743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17745 if (!SWIG_IsOK(res1)) {
17746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17747 }
17748 arg1 = reinterpret_cast< wxDC * >(argp1);
17749 {
17750 arg2 = &temp2;
17751 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17752 }
17753 {
17754 arg3 = &temp3;
17755 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17756 }
17757 {
17758 arg4 = &temp4;
17759 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17760 }
17761 if (obj4) {
17762 ecode5 = SWIG_AsVal_int(obj4, &val5);
17763 if (!SWIG_IsOK(ecode5)) {
17764 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17765 }
17766 arg5 = static_cast< wxDirection >(val5);
17767 }
17768 {
17769 PyThreadState* __tstate = wxPyBeginAllowThreads();
17770 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17771 wxPyEndAllowThreads(__tstate);
17772 if (PyErr_Occurred()) SWIG_fail;
17773 }
17774 resultobj = SWIG_Py_Void();
17775 return resultobj;
17776 fail:
17777 return NULL;
17778 }
17779
17780
17781 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17782 PyObject *resultobj = 0;
17783 wxDC *arg1 = (wxDC *) 0 ;
17784 int arg2 ;
17785 int arg3 ;
17786 wxColour result;
17787 void *argp1 = 0 ;
17788 int res1 = 0 ;
17789 int val2 ;
17790 int ecode2 = 0 ;
17791 int val3 ;
17792 int ecode3 = 0 ;
17793 PyObject * obj0 = 0 ;
17794 PyObject * obj1 = 0 ;
17795 PyObject * obj2 = 0 ;
17796 char * kwnames[] = {
17797 (char *) "self",(char *) "x",(char *) "y", NULL
17798 };
17799
17800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17802 if (!SWIG_IsOK(res1)) {
17803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17804 }
17805 arg1 = reinterpret_cast< wxDC * >(argp1);
17806 ecode2 = SWIG_AsVal_int(obj1, &val2);
17807 if (!SWIG_IsOK(ecode2)) {
17808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17809 }
17810 arg2 = static_cast< int >(val2);
17811 ecode3 = SWIG_AsVal_int(obj2, &val3);
17812 if (!SWIG_IsOK(ecode3)) {
17813 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17814 }
17815 arg3 = static_cast< int >(val3);
17816 {
17817 PyThreadState* __tstate = wxPyBeginAllowThreads();
17818 result = wxDC_GetPixel(arg1,arg2,arg3);
17819 wxPyEndAllowThreads(__tstate);
17820 if (PyErr_Occurred()) SWIG_fail;
17821 }
17822 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17823 return resultobj;
17824 fail:
17825 return NULL;
17826 }
17827
17828
17829 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17830 PyObject *resultobj = 0;
17831 wxDC *arg1 = (wxDC *) 0 ;
17832 wxPoint *arg2 = 0 ;
17833 wxColour result;
17834 void *argp1 = 0 ;
17835 int res1 = 0 ;
17836 wxPoint temp2 ;
17837 PyObject * obj0 = 0 ;
17838 PyObject * obj1 = 0 ;
17839 char * kwnames[] = {
17840 (char *) "self",(char *) "pt", NULL
17841 };
17842
17843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17845 if (!SWIG_IsOK(res1)) {
17846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17847 }
17848 arg1 = reinterpret_cast< wxDC * >(argp1);
17849 {
17850 arg2 = &temp2;
17851 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17852 }
17853 {
17854 PyThreadState* __tstate = wxPyBeginAllowThreads();
17855 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17856 wxPyEndAllowThreads(__tstate);
17857 if (PyErr_Occurred()) SWIG_fail;
17858 }
17859 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17860 return resultobj;
17861 fail:
17862 return NULL;
17863 }
17864
17865
17866 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17867 PyObject *resultobj = 0;
17868 wxDC *arg1 = (wxDC *) 0 ;
17869 int arg2 ;
17870 int arg3 ;
17871 int arg4 ;
17872 int arg5 ;
17873 void *argp1 = 0 ;
17874 int res1 = 0 ;
17875 int val2 ;
17876 int ecode2 = 0 ;
17877 int val3 ;
17878 int ecode3 = 0 ;
17879 int val4 ;
17880 int ecode4 = 0 ;
17881 int val5 ;
17882 int ecode5 = 0 ;
17883 PyObject * obj0 = 0 ;
17884 PyObject * obj1 = 0 ;
17885 PyObject * obj2 = 0 ;
17886 PyObject * obj3 = 0 ;
17887 PyObject * obj4 = 0 ;
17888 char * kwnames[] = {
17889 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17890 };
17891
17892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17894 if (!SWIG_IsOK(res1)) {
17895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17896 }
17897 arg1 = reinterpret_cast< wxDC * >(argp1);
17898 ecode2 = SWIG_AsVal_int(obj1, &val2);
17899 if (!SWIG_IsOK(ecode2)) {
17900 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17901 }
17902 arg2 = static_cast< int >(val2);
17903 ecode3 = SWIG_AsVal_int(obj2, &val3);
17904 if (!SWIG_IsOK(ecode3)) {
17905 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17906 }
17907 arg3 = static_cast< int >(val3);
17908 ecode4 = SWIG_AsVal_int(obj3, &val4);
17909 if (!SWIG_IsOK(ecode4)) {
17910 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17911 }
17912 arg4 = static_cast< int >(val4);
17913 ecode5 = SWIG_AsVal_int(obj4, &val5);
17914 if (!SWIG_IsOK(ecode5)) {
17915 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17916 }
17917 arg5 = static_cast< int >(val5);
17918 {
17919 PyThreadState* __tstate = wxPyBeginAllowThreads();
17920 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17921 wxPyEndAllowThreads(__tstate);
17922 if (PyErr_Occurred()) SWIG_fail;
17923 }
17924 resultobj = SWIG_Py_Void();
17925 return resultobj;
17926 fail:
17927 return NULL;
17928 }
17929
17930
17931 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17932 PyObject *resultobj = 0;
17933 wxDC *arg1 = (wxDC *) 0 ;
17934 wxPoint *arg2 = 0 ;
17935 wxPoint *arg3 = 0 ;
17936 void *argp1 = 0 ;
17937 int res1 = 0 ;
17938 wxPoint temp2 ;
17939 wxPoint temp3 ;
17940 PyObject * obj0 = 0 ;
17941 PyObject * obj1 = 0 ;
17942 PyObject * obj2 = 0 ;
17943 char * kwnames[] = {
17944 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17945 };
17946
17947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17949 if (!SWIG_IsOK(res1)) {
17950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17951 }
17952 arg1 = reinterpret_cast< wxDC * >(argp1);
17953 {
17954 arg2 = &temp2;
17955 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17956 }
17957 {
17958 arg3 = &temp3;
17959 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17960 }
17961 {
17962 PyThreadState* __tstate = wxPyBeginAllowThreads();
17963 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17964 wxPyEndAllowThreads(__tstate);
17965 if (PyErr_Occurred()) SWIG_fail;
17966 }
17967 resultobj = SWIG_Py_Void();
17968 return resultobj;
17969 fail:
17970 return NULL;
17971 }
17972
17973
17974 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17975 PyObject *resultobj = 0;
17976 wxDC *arg1 = (wxDC *) 0 ;
17977 int arg2 ;
17978 int arg3 ;
17979 void *argp1 = 0 ;
17980 int res1 = 0 ;
17981 int val2 ;
17982 int ecode2 = 0 ;
17983 int val3 ;
17984 int ecode3 = 0 ;
17985 PyObject * obj0 = 0 ;
17986 PyObject * obj1 = 0 ;
17987 PyObject * obj2 = 0 ;
17988 char * kwnames[] = {
17989 (char *) "self",(char *) "x",(char *) "y", NULL
17990 };
17991
17992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17994 if (!SWIG_IsOK(res1)) {
17995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
17996 }
17997 arg1 = reinterpret_cast< wxDC * >(argp1);
17998 ecode2 = SWIG_AsVal_int(obj1, &val2);
17999 if (!SWIG_IsOK(ecode2)) {
18000 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18001 }
18002 arg2 = static_cast< int >(val2);
18003 ecode3 = SWIG_AsVal_int(obj2, &val3);
18004 if (!SWIG_IsOK(ecode3)) {
18005 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18006 }
18007 arg3 = static_cast< int >(val3);
18008 {
18009 PyThreadState* __tstate = wxPyBeginAllowThreads();
18010 (arg1)->CrossHair(arg2,arg3);
18011 wxPyEndAllowThreads(__tstate);
18012 if (PyErr_Occurred()) SWIG_fail;
18013 }
18014 resultobj = SWIG_Py_Void();
18015 return resultobj;
18016 fail:
18017 return NULL;
18018 }
18019
18020
18021 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18022 PyObject *resultobj = 0;
18023 wxDC *arg1 = (wxDC *) 0 ;
18024 wxPoint *arg2 = 0 ;
18025 void *argp1 = 0 ;
18026 int res1 = 0 ;
18027 wxPoint temp2 ;
18028 PyObject * obj0 = 0 ;
18029 PyObject * obj1 = 0 ;
18030 char * kwnames[] = {
18031 (char *) "self",(char *) "pt", NULL
18032 };
18033
18034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18036 if (!SWIG_IsOK(res1)) {
18037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18038 }
18039 arg1 = reinterpret_cast< wxDC * >(argp1);
18040 {
18041 arg2 = &temp2;
18042 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18043 }
18044 {
18045 PyThreadState* __tstate = wxPyBeginAllowThreads();
18046 (arg1)->CrossHair((wxPoint const &)*arg2);
18047 wxPyEndAllowThreads(__tstate);
18048 if (PyErr_Occurred()) SWIG_fail;
18049 }
18050 resultobj = SWIG_Py_Void();
18051 return resultobj;
18052 fail:
18053 return NULL;
18054 }
18055
18056
18057 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18058 PyObject *resultobj = 0;
18059 wxDC *arg1 = (wxDC *) 0 ;
18060 int arg2 ;
18061 int arg3 ;
18062 int arg4 ;
18063 int arg5 ;
18064 int arg6 ;
18065 int arg7 ;
18066 void *argp1 = 0 ;
18067 int res1 = 0 ;
18068 int val2 ;
18069 int ecode2 = 0 ;
18070 int val3 ;
18071 int ecode3 = 0 ;
18072 int val4 ;
18073 int ecode4 = 0 ;
18074 int val5 ;
18075 int ecode5 = 0 ;
18076 int val6 ;
18077 int ecode6 = 0 ;
18078 int val7 ;
18079 int ecode7 = 0 ;
18080 PyObject * obj0 = 0 ;
18081 PyObject * obj1 = 0 ;
18082 PyObject * obj2 = 0 ;
18083 PyObject * obj3 = 0 ;
18084 PyObject * obj4 = 0 ;
18085 PyObject * obj5 = 0 ;
18086 PyObject * obj6 = 0 ;
18087 char * kwnames[] = {
18088 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18089 };
18090
18091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18093 if (!SWIG_IsOK(res1)) {
18094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18095 }
18096 arg1 = reinterpret_cast< wxDC * >(argp1);
18097 ecode2 = SWIG_AsVal_int(obj1, &val2);
18098 if (!SWIG_IsOK(ecode2)) {
18099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18100 }
18101 arg2 = static_cast< int >(val2);
18102 ecode3 = SWIG_AsVal_int(obj2, &val3);
18103 if (!SWIG_IsOK(ecode3)) {
18104 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18105 }
18106 arg3 = static_cast< int >(val3);
18107 ecode4 = SWIG_AsVal_int(obj3, &val4);
18108 if (!SWIG_IsOK(ecode4)) {
18109 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18110 }
18111 arg4 = static_cast< int >(val4);
18112 ecode5 = SWIG_AsVal_int(obj4, &val5);
18113 if (!SWIG_IsOK(ecode5)) {
18114 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18115 }
18116 arg5 = static_cast< int >(val5);
18117 ecode6 = SWIG_AsVal_int(obj5, &val6);
18118 if (!SWIG_IsOK(ecode6)) {
18119 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18120 }
18121 arg6 = static_cast< int >(val6);
18122 ecode7 = SWIG_AsVal_int(obj6, &val7);
18123 if (!SWIG_IsOK(ecode7)) {
18124 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18125 }
18126 arg7 = static_cast< int >(val7);
18127 {
18128 PyThreadState* __tstate = wxPyBeginAllowThreads();
18129 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18130 wxPyEndAllowThreads(__tstate);
18131 if (PyErr_Occurred()) SWIG_fail;
18132 }
18133 resultobj = SWIG_Py_Void();
18134 return resultobj;
18135 fail:
18136 return NULL;
18137 }
18138
18139
18140 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18141 PyObject *resultobj = 0;
18142 wxDC *arg1 = (wxDC *) 0 ;
18143 wxPoint *arg2 = 0 ;
18144 wxPoint *arg3 = 0 ;
18145 wxPoint *arg4 = 0 ;
18146 void *argp1 = 0 ;
18147 int res1 = 0 ;
18148 wxPoint temp2 ;
18149 wxPoint temp3 ;
18150 wxPoint temp4 ;
18151 PyObject * obj0 = 0 ;
18152 PyObject * obj1 = 0 ;
18153 PyObject * obj2 = 0 ;
18154 PyObject * obj3 = 0 ;
18155 char * kwnames[] = {
18156 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18157 };
18158
18159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18161 if (!SWIG_IsOK(res1)) {
18162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18163 }
18164 arg1 = reinterpret_cast< wxDC * >(argp1);
18165 {
18166 arg2 = &temp2;
18167 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18168 }
18169 {
18170 arg3 = &temp3;
18171 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18172 }
18173 {
18174 arg4 = &temp4;
18175 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18176 }
18177 {
18178 PyThreadState* __tstate = wxPyBeginAllowThreads();
18179 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18180 wxPyEndAllowThreads(__tstate);
18181 if (PyErr_Occurred()) SWIG_fail;
18182 }
18183 resultobj = SWIG_Py_Void();
18184 return resultobj;
18185 fail:
18186 return NULL;
18187 }
18188
18189
18190 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18191 PyObject *resultobj = 0;
18192 wxDC *arg1 = (wxDC *) 0 ;
18193 int arg2 ;
18194 int arg3 ;
18195 int arg4 ;
18196 int arg5 ;
18197 void *argp1 = 0 ;
18198 int res1 = 0 ;
18199 int val2 ;
18200 int ecode2 = 0 ;
18201 int val3 ;
18202 int ecode3 = 0 ;
18203 int val4 ;
18204 int ecode4 = 0 ;
18205 int val5 ;
18206 int ecode5 = 0 ;
18207 PyObject * obj0 = 0 ;
18208 PyObject * obj1 = 0 ;
18209 PyObject * obj2 = 0 ;
18210 PyObject * obj3 = 0 ;
18211 PyObject * obj4 = 0 ;
18212 char * kwnames[] = {
18213 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18214 };
18215
18216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18218 if (!SWIG_IsOK(res1)) {
18219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18220 }
18221 arg1 = reinterpret_cast< wxDC * >(argp1);
18222 ecode2 = SWIG_AsVal_int(obj1, &val2);
18223 if (!SWIG_IsOK(ecode2)) {
18224 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18225 }
18226 arg2 = static_cast< int >(val2);
18227 ecode3 = SWIG_AsVal_int(obj2, &val3);
18228 if (!SWIG_IsOK(ecode3)) {
18229 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18230 }
18231 arg3 = static_cast< int >(val3);
18232 ecode4 = SWIG_AsVal_int(obj3, &val4);
18233 if (!SWIG_IsOK(ecode4)) {
18234 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18235 }
18236 arg4 = static_cast< int >(val4);
18237 ecode5 = SWIG_AsVal_int(obj4, &val5);
18238 if (!SWIG_IsOK(ecode5)) {
18239 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18240 }
18241 arg5 = static_cast< int >(val5);
18242 {
18243 PyThreadState* __tstate = wxPyBeginAllowThreads();
18244 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18245 wxPyEndAllowThreads(__tstate);
18246 if (PyErr_Occurred()) SWIG_fail;
18247 }
18248 resultobj = SWIG_Py_Void();
18249 return resultobj;
18250 fail:
18251 return NULL;
18252 }
18253
18254
18255 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18256 PyObject *resultobj = 0;
18257 wxDC *arg1 = (wxDC *) 0 ;
18258 wxRect *arg2 = 0 ;
18259 void *argp1 = 0 ;
18260 int res1 = 0 ;
18261 wxRect temp2 ;
18262 PyObject * obj0 = 0 ;
18263 PyObject * obj1 = 0 ;
18264 char * kwnames[] = {
18265 (char *) "self",(char *) "rect", NULL
18266 };
18267
18268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18270 if (!SWIG_IsOK(res1)) {
18271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18272 }
18273 arg1 = reinterpret_cast< wxDC * >(argp1);
18274 {
18275 arg2 = &temp2;
18276 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18277 }
18278 {
18279 PyThreadState* __tstate = wxPyBeginAllowThreads();
18280 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18281 wxPyEndAllowThreads(__tstate);
18282 if (PyErr_Occurred()) SWIG_fail;
18283 }
18284 resultobj = SWIG_Py_Void();
18285 return resultobj;
18286 fail:
18287 return NULL;
18288 }
18289
18290
18291 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18292 PyObject *resultobj = 0;
18293 wxDC *arg1 = (wxDC *) 0 ;
18294 int arg2 ;
18295 int arg3 ;
18296 int arg4 ;
18297 int arg5 ;
18298 double arg6 ;
18299 double arg7 ;
18300 void *argp1 = 0 ;
18301 int res1 = 0 ;
18302 int val2 ;
18303 int ecode2 = 0 ;
18304 int val3 ;
18305 int ecode3 = 0 ;
18306 int val4 ;
18307 int ecode4 = 0 ;
18308 int val5 ;
18309 int ecode5 = 0 ;
18310 double val6 ;
18311 int ecode6 = 0 ;
18312 double val7 ;
18313 int ecode7 = 0 ;
18314 PyObject * obj0 = 0 ;
18315 PyObject * obj1 = 0 ;
18316 PyObject * obj2 = 0 ;
18317 PyObject * obj3 = 0 ;
18318 PyObject * obj4 = 0 ;
18319 PyObject * obj5 = 0 ;
18320 PyObject * obj6 = 0 ;
18321 char * kwnames[] = {
18322 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18323 };
18324
18325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18327 if (!SWIG_IsOK(res1)) {
18328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18329 }
18330 arg1 = reinterpret_cast< wxDC * >(argp1);
18331 ecode2 = SWIG_AsVal_int(obj1, &val2);
18332 if (!SWIG_IsOK(ecode2)) {
18333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18334 }
18335 arg2 = static_cast< int >(val2);
18336 ecode3 = SWIG_AsVal_int(obj2, &val3);
18337 if (!SWIG_IsOK(ecode3)) {
18338 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18339 }
18340 arg3 = static_cast< int >(val3);
18341 ecode4 = SWIG_AsVal_int(obj3, &val4);
18342 if (!SWIG_IsOK(ecode4)) {
18343 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18344 }
18345 arg4 = static_cast< int >(val4);
18346 ecode5 = SWIG_AsVal_int(obj4, &val5);
18347 if (!SWIG_IsOK(ecode5)) {
18348 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18349 }
18350 arg5 = static_cast< int >(val5);
18351 ecode6 = SWIG_AsVal_double(obj5, &val6);
18352 if (!SWIG_IsOK(ecode6)) {
18353 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18354 }
18355 arg6 = static_cast< double >(val6);
18356 ecode7 = SWIG_AsVal_double(obj6, &val7);
18357 if (!SWIG_IsOK(ecode7)) {
18358 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18359 }
18360 arg7 = static_cast< double >(val7);
18361 {
18362 PyThreadState* __tstate = wxPyBeginAllowThreads();
18363 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18364 wxPyEndAllowThreads(__tstate);
18365 if (PyErr_Occurred()) SWIG_fail;
18366 }
18367 resultobj = SWIG_Py_Void();
18368 return resultobj;
18369 fail:
18370 return NULL;
18371 }
18372
18373
18374 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18375 PyObject *resultobj = 0;
18376 wxDC *arg1 = (wxDC *) 0 ;
18377 wxPoint *arg2 = 0 ;
18378 wxSize *arg3 = 0 ;
18379 double arg4 ;
18380 double arg5 ;
18381 void *argp1 = 0 ;
18382 int res1 = 0 ;
18383 wxPoint temp2 ;
18384 wxSize temp3 ;
18385 double val4 ;
18386 int ecode4 = 0 ;
18387 double val5 ;
18388 int ecode5 = 0 ;
18389 PyObject * obj0 = 0 ;
18390 PyObject * obj1 = 0 ;
18391 PyObject * obj2 = 0 ;
18392 PyObject * obj3 = 0 ;
18393 PyObject * obj4 = 0 ;
18394 char * kwnames[] = {
18395 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18396 };
18397
18398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18400 if (!SWIG_IsOK(res1)) {
18401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18402 }
18403 arg1 = reinterpret_cast< wxDC * >(argp1);
18404 {
18405 arg2 = &temp2;
18406 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18407 }
18408 {
18409 arg3 = &temp3;
18410 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18411 }
18412 ecode4 = SWIG_AsVal_double(obj3, &val4);
18413 if (!SWIG_IsOK(ecode4)) {
18414 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18415 }
18416 arg4 = static_cast< double >(val4);
18417 ecode5 = SWIG_AsVal_double(obj4, &val5);
18418 if (!SWIG_IsOK(ecode5)) {
18419 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18420 }
18421 arg5 = static_cast< double >(val5);
18422 {
18423 PyThreadState* __tstate = wxPyBeginAllowThreads();
18424 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18425 wxPyEndAllowThreads(__tstate);
18426 if (PyErr_Occurred()) SWIG_fail;
18427 }
18428 resultobj = SWIG_Py_Void();
18429 return resultobj;
18430 fail:
18431 return NULL;
18432 }
18433
18434
18435 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18436 PyObject *resultobj = 0;
18437 wxDC *arg1 = (wxDC *) 0 ;
18438 int arg2 ;
18439 int arg3 ;
18440 void *argp1 = 0 ;
18441 int res1 = 0 ;
18442 int val2 ;
18443 int ecode2 = 0 ;
18444 int val3 ;
18445 int ecode3 = 0 ;
18446 PyObject * obj0 = 0 ;
18447 PyObject * obj1 = 0 ;
18448 PyObject * obj2 = 0 ;
18449 char * kwnames[] = {
18450 (char *) "self",(char *) "x",(char *) "y", NULL
18451 };
18452
18453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18455 if (!SWIG_IsOK(res1)) {
18456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18457 }
18458 arg1 = reinterpret_cast< wxDC * >(argp1);
18459 ecode2 = SWIG_AsVal_int(obj1, &val2);
18460 if (!SWIG_IsOK(ecode2)) {
18461 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18462 }
18463 arg2 = static_cast< int >(val2);
18464 ecode3 = SWIG_AsVal_int(obj2, &val3);
18465 if (!SWIG_IsOK(ecode3)) {
18466 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18467 }
18468 arg3 = static_cast< int >(val3);
18469 {
18470 PyThreadState* __tstate = wxPyBeginAllowThreads();
18471 (arg1)->DrawPoint(arg2,arg3);
18472 wxPyEndAllowThreads(__tstate);
18473 if (PyErr_Occurred()) SWIG_fail;
18474 }
18475 resultobj = SWIG_Py_Void();
18476 return resultobj;
18477 fail:
18478 return NULL;
18479 }
18480
18481
18482 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18483 PyObject *resultobj = 0;
18484 wxDC *arg1 = (wxDC *) 0 ;
18485 wxPoint *arg2 = 0 ;
18486 void *argp1 = 0 ;
18487 int res1 = 0 ;
18488 wxPoint temp2 ;
18489 PyObject * obj0 = 0 ;
18490 PyObject * obj1 = 0 ;
18491 char * kwnames[] = {
18492 (char *) "self",(char *) "pt", NULL
18493 };
18494
18495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18497 if (!SWIG_IsOK(res1)) {
18498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18499 }
18500 arg1 = reinterpret_cast< wxDC * >(argp1);
18501 {
18502 arg2 = &temp2;
18503 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18504 }
18505 {
18506 PyThreadState* __tstate = wxPyBeginAllowThreads();
18507 (arg1)->DrawPoint((wxPoint const &)*arg2);
18508 wxPyEndAllowThreads(__tstate);
18509 if (PyErr_Occurred()) SWIG_fail;
18510 }
18511 resultobj = SWIG_Py_Void();
18512 return resultobj;
18513 fail:
18514 return NULL;
18515 }
18516
18517
18518 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18519 PyObject *resultobj = 0;
18520 wxDC *arg1 = (wxDC *) 0 ;
18521 int arg2 ;
18522 int arg3 ;
18523 int arg4 ;
18524 int arg5 ;
18525 void *argp1 = 0 ;
18526 int res1 = 0 ;
18527 int val2 ;
18528 int ecode2 = 0 ;
18529 int val3 ;
18530 int ecode3 = 0 ;
18531 int val4 ;
18532 int ecode4 = 0 ;
18533 int val5 ;
18534 int ecode5 = 0 ;
18535 PyObject * obj0 = 0 ;
18536 PyObject * obj1 = 0 ;
18537 PyObject * obj2 = 0 ;
18538 PyObject * obj3 = 0 ;
18539 PyObject * obj4 = 0 ;
18540 char * kwnames[] = {
18541 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18542 };
18543
18544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18546 if (!SWIG_IsOK(res1)) {
18547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18548 }
18549 arg1 = reinterpret_cast< wxDC * >(argp1);
18550 ecode2 = SWIG_AsVal_int(obj1, &val2);
18551 if (!SWIG_IsOK(ecode2)) {
18552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18553 }
18554 arg2 = static_cast< int >(val2);
18555 ecode3 = SWIG_AsVal_int(obj2, &val3);
18556 if (!SWIG_IsOK(ecode3)) {
18557 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18558 }
18559 arg3 = static_cast< int >(val3);
18560 ecode4 = SWIG_AsVal_int(obj3, &val4);
18561 if (!SWIG_IsOK(ecode4)) {
18562 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18563 }
18564 arg4 = static_cast< int >(val4);
18565 ecode5 = SWIG_AsVal_int(obj4, &val5);
18566 if (!SWIG_IsOK(ecode5)) {
18567 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18568 }
18569 arg5 = static_cast< int >(val5);
18570 {
18571 PyThreadState* __tstate = wxPyBeginAllowThreads();
18572 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18573 wxPyEndAllowThreads(__tstate);
18574 if (PyErr_Occurred()) SWIG_fail;
18575 }
18576 resultobj = SWIG_Py_Void();
18577 return resultobj;
18578 fail:
18579 return NULL;
18580 }
18581
18582
18583 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18584 PyObject *resultobj = 0;
18585 wxDC *arg1 = (wxDC *) 0 ;
18586 wxRect *arg2 = 0 ;
18587 void *argp1 = 0 ;
18588 int res1 = 0 ;
18589 wxRect temp2 ;
18590 PyObject * obj0 = 0 ;
18591 PyObject * obj1 = 0 ;
18592 char * kwnames[] = {
18593 (char *) "self",(char *) "rect", NULL
18594 };
18595
18596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18598 if (!SWIG_IsOK(res1)) {
18599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18600 }
18601 arg1 = reinterpret_cast< wxDC * >(argp1);
18602 {
18603 arg2 = &temp2;
18604 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18605 }
18606 {
18607 PyThreadState* __tstate = wxPyBeginAllowThreads();
18608 (arg1)->DrawRectangle((wxRect const &)*arg2);
18609 wxPyEndAllowThreads(__tstate);
18610 if (PyErr_Occurred()) SWIG_fail;
18611 }
18612 resultobj = SWIG_Py_Void();
18613 return resultobj;
18614 fail:
18615 return NULL;
18616 }
18617
18618
18619 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18620 PyObject *resultobj = 0;
18621 wxDC *arg1 = (wxDC *) 0 ;
18622 wxPoint *arg2 = 0 ;
18623 wxSize *arg3 = 0 ;
18624 void *argp1 = 0 ;
18625 int res1 = 0 ;
18626 wxPoint temp2 ;
18627 wxSize temp3 ;
18628 PyObject * obj0 = 0 ;
18629 PyObject * obj1 = 0 ;
18630 PyObject * obj2 = 0 ;
18631 char * kwnames[] = {
18632 (char *) "self",(char *) "pt",(char *) "sz", NULL
18633 };
18634
18635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18637 if (!SWIG_IsOK(res1)) {
18638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18639 }
18640 arg1 = reinterpret_cast< wxDC * >(argp1);
18641 {
18642 arg2 = &temp2;
18643 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18644 }
18645 {
18646 arg3 = &temp3;
18647 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18648 }
18649 {
18650 PyThreadState* __tstate = wxPyBeginAllowThreads();
18651 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18652 wxPyEndAllowThreads(__tstate);
18653 if (PyErr_Occurred()) SWIG_fail;
18654 }
18655 resultobj = SWIG_Py_Void();
18656 return resultobj;
18657 fail:
18658 return NULL;
18659 }
18660
18661
18662 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18663 PyObject *resultobj = 0;
18664 wxDC *arg1 = (wxDC *) 0 ;
18665 int arg2 ;
18666 int arg3 ;
18667 int arg4 ;
18668 int arg5 ;
18669 double arg6 ;
18670 void *argp1 = 0 ;
18671 int res1 = 0 ;
18672 int val2 ;
18673 int ecode2 = 0 ;
18674 int val3 ;
18675 int ecode3 = 0 ;
18676 int val4 ;
18677 int ecode4 = 0 ;
18678 int val5 ;
18679 int ecode5 = 0 ;
18680 double val6 ;
18681 int ecode6 = 0 ;
18682 PyObject * obj0 = 0 ;
18683 PyObject * obj1 = 0 ;
18684 PyObject * obj2 = 0 ;
18685 PyObject * obj3 = 0 ;
18686 PyObject * obj4 = 0 ;
18687 PyObject * obj5 = 0 ;
18688 char * kwnames[] = {
18689 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18690 };
18691
18692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18694 if (!SWIG_IsOK(res1)) {
18695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18696 }
18697 arg1 = reinterpret_cast< wxDC * >(argp1);
18698 ecode2 = SWIG_AsVal_int(obj1, &val2);
18699 if (!SWIG_IsOK(ecode2)) {
18700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18701 }
18702 arg2 = static_cast< int >(val2);
18703 ecode3 = SWIG_AsVal_int(obj2, &val3);
18704 if (!SWIG_IsOK(ecode3)) {
18705 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18706 }
18707 arg3 = static_cast< int >(val3);
18708 ecode4 = SWIG_AsVal_int(obj3, &val4);
18709 if (!SWIG_IsOK(ecode4)) {
18710 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18711 }
18712 arg4 = static_cast< int >(val4);
18713 ecode5 = SWIG_AsVal_int(obj4, &val5);
18714 if (!SWIG_IsOK(ecode5)) {
18715 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18716 }
18717 arg5 = static_cast< int >(val5);
18718 ecode6 = SWIG_AsVal_double(obj5, &val6);
18719 if (!SWIG_IsOK(ecode6)) {
18720 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18721 }
18722 arg6 = static_cast< double >(val6);
18723 {
18724 PyThreadState* __tstate = wxPyBeginAllowThreads();
18725 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18726 wxPyEndAllowThreads(__tstate);
18727 if (PyErr_Occurred()) SWIG_fail;
18728 }
18729 resultobj = SWIG_Py_Void();
18730 return resultobj;
18731 fail:
18732 return NULL;
18733 }
18734
18735
18736 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18737 PyObject *resultobj = 0;
18738 wxDC *arg1 = (wxDC *) 0 ;
18739 wxRect *arg2 = 0 ;
18740 double arg3 ;
18741 void *argp1 = 0 ;
18742 int res1 = 0 ;
18743 wxRect temp2 ;
18744 double val3 ;
18745 int ecode3 = 0 ;
18746 PyObject * obj0 = 0 ;
18747 PyObject * obj1 = 0 ;
18748 PyObject * obj2 = 0 ;
18749 char * kwnames[] = {
18750 (char *) "self",(char *) "r",(char *) "radius", NULL
18751 };
18752
18753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18755 if (!SWIG_IsOK(res1)) {
18756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18757 }
18758 arg1 = reinterpret_cast< wxDC * >(argp1);
18759 {
18760 arg2 = &temp2;
18761 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18762 }
18763 ecode3 = SWIG_AsVal_double(obj2, &val3);
18764 if (!SWIG_IsOK(ecode3)) {
18765 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18766 }
18767 arg3 = static_cast< double >(val3);
18768 {
18769 PyThreadState* __tstate = wxPyBeginAllowThreads();
18770 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18771 wxPyEndAllowThreads(__tstate);
18772 if (PyErr_Occurred()) SWIG_fail;
18773 }
18774 resultobj = SWIG_Py_Void();
18775 return resultobj;
18776 fail:
18777 return NULL;
18778 }
18779
18780
18781 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18782 PyObject *resultobj = 0;
18783 wxDC *arg1 = (wxDC *) 0 ;
18784 wxPoint *arg2 = 0 ;
18785 wxSize *arg3 = 0 ;
18786 double arg4 ;
18787 void *argp1 = 0 ;
18788 int res1 = 0 ;
18789 wxPoint temp2 ;
18790 wxSize temp3 ;
18791 double val4 ;
18792 int ecode4 = 0 ;
18793 PyObject * obj0 = 0 ;
18794 PyObject * obj1 = 0 ;
18795 PyObject * obj2 = 0 ;
18796 PyObject * obj3 = 0 ;
18797 char * kwnames[] = {
18798 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18799 };
18800
18801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18803 if (!SWIG_IsOK(res1)) {
18804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18805 }
18806 arg1 = reinterpret_cast< wxDC * >(argp1);
18807 {
18808 arg2 = &temp2;
18809 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18810 }
18811 {
18812 arg3 = &temp3;
18813 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18814 }
18815 ecode4 = SWIG_AsVal_double(obj3, &val4);
18816 if (!SWIG_IsOK(ecode4)) {
18817 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18818 }
18819 arg4 = static_cast< double >(val4);
18820 {
18821 PyThreadState* __tstate = wxPyBeginAllowThreads();
18822 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18823 wxPyEndAllowThreads(__tstate);
18824 if (PyErr_Occurred()) SWIG_fail;
18825 }
18826 resultobj = SWIG_Py_Void();
18827 return resultobj;
18828 fail:
18829 return NULL;
18830 }
18831
18832
18833 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18834 PyObject *resultobj = 0;
18835 wxDC *arg1 = (wxDC *) 0 ;
18836 int arg2 ;
18837 int arg3 ;
18838 int arg4 ;
18839 void *argp1 = 0 ;
18840 int res1 = 0 ;
18841 int val2 ;
18842 int ecode2 = 0 ;
18843 int val3 ;
18844 int ecode3 = 0 ;
18845 int val4 ;
18846 int ecode4 = 0 ;
18847 PyObject * obj0 = 0 ;
18848 PyObject * obj1 = 0 ;
18849 PyObject * obj2 = 0 ;
18850 PyObject * obj3 = 0 ;
18851 char * kwnames[] = {
18852 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18853 };
18854
18855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18857 if (!SWIG_IsOK(res1)) {
18858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18859 }
18860 arg1 = reinterpret_cast< wxDC * >(argp1);
18861 ecode2 = SWIG_AsVal_int(obj1, &val2);
18862 if (!SWIG_IsOK(ecode2)) {
18863 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18864 }
18865 arg2 = static_cast< int >(val2);
18866 ecode3 = SWIG_AsVal_int(obj2, &val3);
18867 if (!SWIG_IsOK(ecode3)) {
18868 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18869 }
18870 arg3 = static_cast< int >(val3);
18871 ecode4 = SWIG_AsVal_int(obj3, &val4);
18872 if (!SWIG_IsOK(ecode4)) {
18873 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18874 }
18875 arg4 = static_cast< int >(val4);
18876 {
18877 PyThreadState* __tstate = wxPyBeginAllowThreads();
18878 (arg1)->DrawCircle(arg2,arg3,arg4);
18879 wxPyEndAllowThreads(__tstate);
18880 if (PyErr_Occurred()) SWIG_fail;
18881 }
18882 resultobj = SWIG_Py_Void();
18883 return resultobj;
18884 fail:
18885 return NULL;
18886 }
18887
18888
18889 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18890 PyObject *resultobj = 0;
18891 wxDC *arg1 = (wxDC *) 0 ;
18892 wxPoint *arg2 = 0 ;
18893 int arg3 ;
18894 void *argp1 = 0 ;
18895 int res1 = 0 ;
18896 wxPoint temp2 ;
18897 int val3 ;
18898 int ecode3 = 0 ;
18899 PyObject * obj0 = 0 ;
18900 PyObject * obj1 = 0 ;
18901 PyObject * obj2 = 0 ;
18902 char * kwnames[] = {
18903 (char *) "self",(char *) "pt",(char *) "radius", NULL
18904 };
18905
18906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18908 if (!SWIG_IsOK(res1)) {
18909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18910 }
18911 arg1 = reinterpret_cast< wxDC * >(argp1);
18912 {
18913 arg2 = &temp2;
18914 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18915 }
18916 ecode3 = SWIG_AsVal_int(obj2, &val3);
18917 if (!SWIG_IsOK(ecode3)) {
18918 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18919 }
18920 arg3 = static_cast< int >(val3);
18921 {
18922 PyThreadState* __tstate = wxPyBeginAllowThreads();
18923 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18924 wxPyEndAllowThreads(__tstate);
18925 if (PyErr_Occurred()) SWIG_fail;
18926 }
18927 resultobj = SWIG_Py_Void();
18928 return resultobj;
18929 fail:
18930 return NULL;
18931 }
18932
18933
18934 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18935 PyObject *resultobj = 0;
18936 wxDC *arg1 = (wxDC *) 0 ;
18937 int arg2 ;
18938 int arg3 ;
18939 int arg4 ;
18940 int arg5 ;
18941 void *argp1 = 0 ;
18942 int res1 = 0 ;
18943 int val2 ;
18944 int ecode2 = 0 ;
18945 int val3 ;
18946 int ecode3 = 0 ;
18947 int val4 ;
18948 int ecode4 = 0 ;
18949 int val5 ;
18950 int ecode5 = 0 ;
18951 PyObject * obj0 = 0 ;
18952 PyObject * obj1 = 0 ;
18953 PyObject * obj2 = 0 ;
18954 PyObject * obj3 = 0 ;
18955 PyObject * obj4 = 0 ;
18956 char * kwnames[] = {
18957 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18958 };
18959
18960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18962 if (!SWIG_IsOK(res1)) {
18963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18964 }
18965 arg1 = reinterpret_cast< wxDC * >(argp1);
18966 ecode2 = SWIG_AsVal_int(obj1, &val2);
18967 if (!SWIG_IsOK(ecode2)) {
18968 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
18969 }
18970 arg2 = static_cast< int >(val2);
18971 ecode3 = SWIG_AsVal_int(obj2, &val3);
18972 if (!SWIG_IsOK(ecode3)) {
18973 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
18974 }
18975 arg3 = static_cast< int >(val3);
18976 ecode4 = SWIG_AsVal_int(obj3, &val4);
18977 if (!SWIG_IsOK(ecode4)) {
18978 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
18979 }
18980 arg4 = static_cast< int >(val4);
18981 ecode5 = SWIG_AsVal_int(obj4, &val5);
18982 if (!SWIG_IsOK(ecode5)) {
18983 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
18984 }
18985 arg5 = static_cast< int >(val5);
18986 {
18987 PyThreadState* __tstate = wxPyBeginAllowThreads();
18988 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
18989 wxPyEndAllowThreads(__tstate);
18990 if (PyErr_Occurred()) SWIG_fail;
18991 }
18992 resultobj = SWIG_Py_Void();
18993 return resultobj;
18994 fail:
18995 return NULL;
18996 }
18997
18998
18999 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19000 PyObject *resultobj = 0;
19001 wxDC *arg1 = (wxDC *) 0 ;
19002 wxRect *arg2 = 0 ;
19003 void *argp1 = 0 ;
19004 int res1 = 0 ;
19005 wxRect temp2 ;
19006 PyObject * obj0 = 0 ;
19007 PyObject * obj1 = 0 ;
19008 char * kwnames[] = {
19009 (char *) "self",(char *) "rect", NULL
19010 };
19011
19012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19014 if (!SWIG_IsOK(res1)) {
19015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19016 }
19017 arg1 = reinterpret_cast< wxDC * >(argp1);
19018 {
19019 arg2 = &temp2;
19020 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19021 }
19022 {
19023 PyThreadState* __tstate = wxPyBeginAllowThreads();
19024 (arg1)->DrawEllipse((wxRect const &)*arg2);
19025 wxPyEndAllowThreads(__tstate);
19026 if (PyErr_Occurred()) SWIG_fail;
19027 }
19028 resultobj = SWIG_Py_Void();
19029 return resultobj;
19030 fail:
19031 return NULL;
19032 }
19033
19034
19035 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19036 PyObject *resultobj = 0;
19037 wxDC *arg1 = (wxDC *) 0 ;
19038 wxPoint *arg2 = 0 ;
19039 wxSize *arg3 = 0 ;
19040 void *argp1 = 0 ;
19041 int res1 = 0 ;
19042 wxPoint temp2 ;
19043 wxSize temp3 ;
19044 PyObject * obj0 = 0 ;
19045 PyObject * obj1 = 0 ;
19046 PyObject * obj2 = 0 ;
19047 char * kwnames[] = {
19048 (char *) "self",(char *) "pt",(char *) "sz", NULL
19049 };
19050
19051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19053 if (!SWIG_IsOK(res1)) {
19054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19055 }
19056 arg1 = reinterpret_cast< wxDC * >(argp1);
19057 {
19058 arg2 = &temp2;
19059 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19060 }
19061 {
19062 arg3 = &temp3;
19063 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19064 }
19065 {
19066 PyThreadState* __tstate = wxPyBeginAllowThreads();
19067 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19068 wxPyEndAllowThreads(__tstate);
19069 if (PyErr_Occurred()) SWIG_fail;
19070 }
19071 resultobj = SWIG_Py_Void();
19072 return resultobj;
19073 fail:
19074 return NULL;
19075 }
19076
19077
19078 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19079 PyObject *resultobj = 0;
19080 wxDC *arg1 = (wxDC *) 0 ;
19081 wxIcon *arg2 = 0 ;
19082 int arg3 ;
19083 int arg4 ;
19084 void *argp1 = 0 ;
19085 int res1 = 0 ;
19086 void *argp2 = 0 ;
19087 int res2 = 0 ;
19088 int val3 ;
19089 int ecode3 = 0 ;
19090 int val4 ;
19091 int ecode4 = 0 ;
19092 PyObject * obj0 = 0 ;
19093 PyObject * obj1 = 0 ;
19094 PyObject * obj2 = 0 ;
19095 PyObject * obj3 = 0 ;
19096 char * kwnames[] = {
19097 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19098 };
19099
19100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19102 if (!SWIG_IsOK(res1)) {
19103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19104 }
19105 arg1 = reinterpret_cast< wxDC * >(argp1);
19106 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19107 if (!SWIG_IsOK(res2)) {
19108 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19109 }
19110 if (!argp2) {
19111 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19112 }
19113 arg2 = reinterpret_cast< wxIcon * >(argp2);
19114 ecode3 = SWIG_AsVal_int(obj2, &val3);
19115 if (!SWIG_IsOK(ecode3)) {
19116 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19117 }
19118 arg3 = static_cast< int >(val3);
19119 ecode4 = SWIG_AsVal_int(obj3, &val4);
19120 if (!SWIG_IsOK(ecode4)) {
19121 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19122 }
19123 arg4 = static_cast< int >(val4);
19124 {
19125 PyThreadState* __tstate = wxPyBeginAllowThreads();
19126 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19127 wxPyEndAllowThreads(__tstate);
19128 if (PyErr_Occurred()) SWIG_fail;
19129 }
19130 resultobj = SWIG_Py_Void();
19131 return resultobj;
19132 fail:
19133 return NULL;
19134 }
19135
19136
19137 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19138 PyObject *resultobj = 0;
19139 wxDC *arg1 = (wxDC *) 0 ;
19140 wxIcon *arg2 = 0 ;
19141 wxPoint *arg3 = 0 ;
19142 void *argp1 = 0 ;
19143 int res1 = 0 ;
19144 void *argp2 = 0 ;
19145 int res2 = 0 ;
19146 wxPoint temp3 ;
19147 PyObject * obj0 = 0 ;
19148 PyObject * obj1 = 0 ;
19149 PyObject * obj2 = 0 ;
19150 char * kwnames[] = {
19151 (char *) "self",(char *) "icon",(char *) "pt", NULL
19152 };
19153
19154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19156 if (!SWIG_IsOK(res1)) {
19157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19158 }
19159 arg1 = reinterpret_cast< wxDC * >(argp1);
19160 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19161 if (!SWIG_IsOK(res2)) {
19162 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19163 }
19164 if (!argp2) {
19165 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19166 }
19167 arg2 = reinterpret_cast< wxIcon * >(argp2);
19168 {
19169 arg3 = &temp3;
19170 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19171 }
19172 {
19173 PyThreadState* __tstate = wxPyBeginAllowThreads();
19174 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19175 wxPyEndAllowThreads(__tstate);
19176 if (PyErr_Occurred()) SWIG_fail;
19177 }
19178 resultobj = SWIG_Py_Void();
19179 return resultobj;
19180 fail:
19181 return NULL;
19182 }
19183
19184
19185 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19186 PyObject *resultobj = 0;
19187 wxDC *arg1 = (wxDC *) 0 ;
19188 wxBitmap *arg2 = 0 ;
19189 int arg3 ;
19190 int arg4 ;
19191 bool arg5 = (bool) false ;
19192 void *argp1 = 0 ;
19193 int res1 = 0 ;
19194 void *argp2 = 0 ;
19195 int res2 = 0 ;
19196 int val3 ;
19197 int ecode3 = 0 ;
19198 int val4 ;
19199 int ecode4 = 0 ;
19200 bool val5 ;
19201 int ecode5 = 0 ;
19202 PyObject * obj0 = 0 ;
19203 PyObject * obj1 = 0 ;
19204 PyObject * obj2 = 0 ;
19205 PyObject * obj3 = 0 ;
19206 PyObject * obj4 = 0 ;
19207 char * kwnames[] = {
19208 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19209 };
19210
19211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19213 if (!SWIG_IsOK(res1)) {
19214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19215 }
19216 arg1 = reinterpret_cast< wxDC * >(argp1);
19217 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19218 if (!SWIG_IsOK(res2)) {
19219 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19220 }
19221 if (!argp2) {
19222 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19223 }
19224 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19225 ecode3 = SWIG_AsVal_int(obj2, &val3);
19226 if (!SWIG_IsOK(ecode3)) {
19227 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19228 }
19229 arg3 = static_cast< int >(val3);
19230 ecode4 = SWIG_AsVal_int(obj3, &val4);
19231 if (!SWIG_IsOK(ecode4)) {
19232 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19233 }
19234 arg4 = static_cast< int >(val4);
19235 if (obj4) {
19236 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19237 if (!SWIG_IsOK(ecode5)) {
19238 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19239 }
19240 arg5 = static_cast< bool >(val5);
19241 }
19242 {
19243 PyThreadState* __tstate = wxPyBeginAllowThreads();
19244 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19245 wxPyEndAllowThreads(__tstate);
19246 if (PyErr_Occurred()) SWIG_fail;
19247 }
19248 resultobj = SWIG_Py_Void();
19249 return resultobj;
19250 fail:
19251 return NULL;
19252 }
19253
19254
19255 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19256 PyObject *resultobj = 0;
19257 wxDC *arg1 = (wxDC *) 0 ;
19258 wxBitmap *arg2 = 0 ;
19259 wxPoint *arg3 = 0 ;
19260 bool arg4 = (bool) false ;
19261 void *argp1 = 0 ;
19262 int res1 = 0 ;
19263 void *argp2 = 0 ;
19264 int res2 = 0 ;
19265 wxPoint temp3 ;
19266 bool val4 ;
19267 int ecode4 = 0 ;
19268 PyObject * obj0 = 0 ;
19269 PyObject * obj1 = 0 ;
19270 PyObject * obj2 = 0 ;
19271 PyObject * obj3 = 0 ;
19272 char * kwnames[] = {
19273 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19274 };
19275
19276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19278 if (!SWIG_IsOK(res1)) {
19279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19280 }
19281 arg1 = reinterpret_cast< wxDC * >(argp1);
19282 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19283 if (!SWIG_IsOK(res2)) {
19284 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19285 }
19286 if (!argp2) {
19287 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19288 }
19289 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19290 {
19291 arg3 = &temp3;
19292 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19293 }
19294 if (obj3) {
19295 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19296 if (!SWIG_IsOK(ecode4)) {
19297 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19298 }
19299 arg4 = static_cast< bool >(val4);
19300 }
19301 {
19302 PyThreadState* __tstate = wxPyBeginAllowThreads();
19303 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19304 wxPyEndAllowThreads(__tstate);
19305 if (PyErr_Occurred()) SWIG_fail;
19306 }
19307 resultobj = SWIG_Py_Void();
19308 return resultobj;
19309 fail:
19310 return NULL;
19311 }
19312
19313
19314 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19315 PyObject *resultobj = 0;
19316 wxDC *arg1 = (wxDC *) 0 ;
19317 wxString *arg2 = 0 ;
19318 int arg3 ;
19319 int arg4 ;
19320 void *argp1 = 0 ;
19321 int res1 = 0 ;
19322 bool temp2 = false ;
19323 int val3 ;
19324 int ecode3 = 0 ;
19325 int val4 ;
19326 int ecode4 = 0 ;
19327 PyObject * obj0 = 0 ;
19328 PyObject * obj1 = 0 ;
19329 PyObject * obj2 = 0 ;
19330 PyObject * obj3 = 0 ;
19331 char * kwnames[] = {
19332 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19333 };
19334
19335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19337 if (!SWIG_IsOK(res1)) {
19338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19339 }
19340 arg1 = reinterpret_cast< wxDC * >(argp1);
19341 {
19342 arg2 = wxString_in_helper(obj1);
19343 if (arg2 == NULL) SWIG_fail;
19344 temp2 = true;
19345 }
19346 ecode3 = SWIG_AsVal_int(obj2, &val3);
19347 if (!SWIG_IsOK(ecode3)) {
19348 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19349 }
19350 arg3 = static_cast< int >(val3);
19351 ecode4 = SWIG_AsVal_int(obj3, &val4);
19352 if (!SWIG_IsOK(ecode4)) {
19353 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19354 }
19355 arg4 = static_cast< int >(val4);
19356 {
19357 PyThreadState* __tstate = wxPyBeginAllowThreads();
19358 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19359 wxPyEndAllowThreads(__tstate);
19360 if (PyErr_Occurred()) SWIG_fail;
19361 }
19362 resultobj = SWIG_Py_Void();
19363 {
19364 if (temp2)
19365 delete arg2;
19366 }
19367 return resultobj;
19368 fail:
19369 {
19370 if (temp2)
19371 delete arg2;
19372 }
19373 return NULL;
19374 }
19375
19376
19377 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19378 PyObject *resultobj = 0;
19379 wxDC *arg1 = (wxDC *) 0 ;
19380 wxString *arg2 = 0 ;
19381 wxPoint *arg3 = 0 ;
19382 void *argp1 = 0 ;
19383 int res1 = 0 ;
19384 bool temp2 = false ;
19385 wxPoint temp3 ;
19386 PyObject * obj0 = 0 ;
19387 PyObject * obj1 = 0 ;
19388 PyObject * obj2 = 0 ;
19389 char * kwnames[] = {
19390 (char *) "self",(char *) "text",(char *) "pt", NULL
19391 };
19392
19393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19395 if (!SWIG_IsOK(res1)) {
19396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19397 }
19398 arg1 = reinterpret_cast< wxDC * >(argp1);
19399 {
19400 arg2 = wxString_in_helper(obj1);
19401 if (arg2 == NULL) SWIG_fail;
19402 temp2 = true;
19403 }
19404 {
19405 arg3 = &temp3;
19406 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19407 }
19408 {
19409 PyThreadState* __tstate = wxPyBeginAllowThreads();
19410 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19411 wxPyEndAllowThreads(__tstate);
19412 if (PyErr_Occurred()) SWIG_fail;
19413 }
19414 resultobj = SWIG_Py_Void();
19415 {
19416 if (temp2)
19417 delete arg2;
19418 }
19419 return resultobj;
19420 fail:
19421 {
19422 if (temp2)
19423 delete arg2;
19424 }
19425 return NULL;
19426 }
19427
19428
19429 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19430 PyObject *resultobj = 0;
19431 wxDC *arg1 = (wxDC *) 0 ;
19432 wxString *arg2 = 0 ;
19433 int arg3 ;
19434 int arg4 ;
19435 double arg5 ;
19436 void *argp1 = 0 ;
19437 int res1 = 0 ;
19438 bool temp2 = false ;
19439 int val3 ;
19440 int ecode3 = 0 ;
19441 int val4 ;
19442 int ecode4 = 0 ;
19443 double val5 ;
19444 int ecode5 = 0 ;
19445 PyObject * obj0 = 0 ;
19446 PyObject * obj1 = 0 ;
19447 PyObject * obj2 = 0 ;
19448 PyObject * obj3 = 0 ;
19449 PyObject * obj4 = 0 ;
19450 char * kwnames[] = {
19451 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19452 };
19453
19454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19456 if (!SWIG_IsOK(res1)) {
19457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19458 }
19459 arg1 = reinterpret_cast< wxDC * >(argp1);
19460 {
19461 arg2 = wxString_in_helper(obj1);
19462 if (arg2 == NULL) SWIG_fail;
19463 temp2 = true;
19464 }
19465 ecode3 = SWIG_AsVal_int(obj2, &val3);
19466 if (!SWIG_IsOK(ecode3)) {
19467 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19468 }
19469 arg3 = static_cast< int >(val3);
19470 ecode4 = SWIG_AsVal_int(obj3, &val4);
19471 if (!SWIG_IsOK(ecode4)) {
19472 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19473 }
19474 arg4 = static_cast< int >(val4);
19475 ecode5 = SWIG_AsVal_double(obj4, &val5);
19476 if (!SWIG_IsOK(ecode5)) {
19477 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19478 }
19479 arg5 = static_cast< double >(val5);
19480 {
19481 PyThreadState* __tstate = wxPyBeginAllowThreads();
19482 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19483 wxPyEndAllowThreads(__tstate);
19484 if (PyErr_Occurred()) SWIG_fail;
19485 }
19486 resultobj = SWIG_Py_Void();
19487 {
19488 if (temp2)
19489 delete arg2;
19490 }
19491 return resultobj;
19492 fail:
19493 {
19494 if (temp2)
19495 delete arg2;
19496 }
19497 return NULL;
19498 }
19499
19500
19501 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19502 PyObject *resultobj = 0;
19503 wxDC *arg1 = (wxDC *) 0 ;
19504 wxString *arg2 = 0 ;
19505 wxPoint *arg3 = 0 ;
19506 double arg4 ;
19507 void *argp1 = 0 ;
19508 int res1 = 0 ;
19509 bool temp2 = false ;
19510 wxPoint temp3 ;
19511 double val4 ;
19512 int ecode4 = 0 ;
19513 PyObject * obj0 = 0 ;
19514 PyObject * obj1 = 0 ;
19515 PyObject * obj2 = 0 ;
19516 PyObject * obj3 = 0 ;
19517 char * kwnames[] = {
19518 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19519 };
19520
19521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19523 if (!SWIG_IsOK(res1)) {
19524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19525 }
19526 arg1 = reinterpret_cast< wxDC * >(argp1);
19527 {
19528 arg2 = wxString_in_helper(obj1);
19529 if (arg2 == NULL) SWIG_fail;
19530 temp2 = true;
19531 }
19532 {
19533 arg3 = &temp3;
19534 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19535 }
19536 ecode4 = SWIG_AsVal_double(obj3, &val4);
19537 if (!SWIG_IsOK(ecode4)) {
19538 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19539 }
19540 arg4 = static_cast< double >(val4);
19541 {
19542 PyThreadState* __tstate = wxPyBeginAllowThreads();
19543 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19544 wxPyEndAllowThreads(__tstate);
19545 if (PyErr_Occurred()) SWIG_fail;
19546 }
19547 resultobj = SWIG_Py_Void();
19548 {
19549 if (temp2)
19550 delete arg2;
19551 }
19552 return resultobj;
19553 fail:
19554 {
19555 if (temp2)
19556 delete arg2;
19557 }
19558 return NULL;
19559 }
19560
19561
19562 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19563 PyObject *resultobj = 0;
19564 wxDC *arg1 = (wxDC *) 0 ;
19565 int arg2 ;
19566 int arg3 ;
19567 int arg4 ;
19568 int arg5 ;
19569 wxDC *arg6 = (wxDC *) 0 ;
19570 int arg7 ;
19571 int arg8 ;
19572 int arg9 = (int) wxCOPY ;
19573 bool arg10 = (bool) false ;
19574 int arg11 = (int) -1 ;
19575 int arg12 = (int) -1 ;
19576 bool result;
19577 void *argp1 = 0 ;
19578 int res1 = 0 ;
19579 int val2 ;
19580 int ecode2 = 0 ;
19581 int val3 ;
19582 int ecode3 = 0 ;
19583 int val4 ;
19584 int ecode4 = 0 ;
19585 int val5 ;
19586 int ecode5 = 0 ;
19587 void *argp6 = 0 ;
19588 int res6 = 0 ;
19589 int val7 ;
19590 int ecode7 = 0 ;
19591 int val8 ;
19592 int ecode8 = 0 ;
19593 int val9 ;
19594 int ecode9 = 0 ;
19595 bool val10 ;
19596 int ecode10 = 0 ;
19597 int val11 ;
19598 int ecode11 = 0 ;
19599 int val12 ;
19600 int ecode12 = 0 ;
19601 PyObject * obj0 = 0 ;
19602 PyObject * obj1 = 0 ;
19603 PyObject * obj2 = 0 ;
19604 PyObject * obj3 = 0 ;
19605 PyObject * obj4 = 0 ;
19606 PyObject * obj5 = 0 ;
19607 PyObject * obj6 = 0 ;
19608 PyObject * obj7 = 0 ;
19609 PyObject * obj8 = 0 ;
19610 PyObject * obj9 = 0 ;
19611 PyObject * obj10 = 0 ;
19612 PyObject * obj11 = 0 ;
19613 char * kwnames[] = {
19614 (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
19615 };
19616
19617 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;
19618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19619 if (!SWIG_IsOK(res1)) {
19620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19621 }
19622 arg1 = reinterpret_cast< wxDC * >(argp1);
19623 ecode2 = SWIG_AsVal_int(obj1, &val2);
19624 if (!SWIG_IsOK(ecode2)) {
19625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19626 }
19627 arg2 = static_cast< int >(val2);
19628 ecode3 = SWIG_AsVal_int(obj2, &val3);
19629 if (!SWIG_IsOK(ecode3)) {
19630 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19631 }
19632 arg3 = static_cast< int >(val3);
19633 ecode4 = SWIG_AsVal_int(obj3, &val4);
19634 if (!SWIG_IsOK(ecode4)) {
19635 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19636 }
19637 arg4 = static_cast< int >(val4);
19638 ecode5 = SWIG_AsVal_int(obj4, &val5);
19639 if (!SWIG_IsOK(ecode5)) {
19640 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19641 }
19642 arg5 = static_cast< int >(val5);
19643 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19644 if (!SWIG_IsOK(res6)) {
19645 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19646 }
19647 arg6 = reinterpret_cast< wxDC * >(argp6);
19648 ecode7 = SWIG_AsVal_int(obj6, &val7);
19649 if (!SWIG_IsOK(ecode7)) {
19650 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19651 }
19652 arg7 = static_cast< int >(val7);
19653 ecode8 = SWIG_AsVal_int(obj7, &val8);
19654 if (!SWIG_IsOK(ecode8)) {
19655 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19656 }
19657 arg8 = static_cast< int >(val8);
19658 if (obj8) {
19659 ecode9 = SWIG_AsVal_int(obj8, &val9);
19660 if (!SWIG_IsOK(ecode9)) {
19661 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19662 }
19663 arg9 = static_cast< int >(val9);
19664 }
19665 if (obj9) {
19666 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19667 if (!SWIG_IsOK(ecode10)) {
19668 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19669 }
19670 arg10 = static_cast< bool >(val10);
19671 }
19672 if (obj10) {
19673 ecode11 = SWIG_AsVal_int(obj10, &val11);
19674 if (!SWIG_IsOK(ecode11)) {
19675 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19676 }
19677 arg11 = static_cast< int >(val11);
19678 }
19679 if (obj11) {
19680 ecode12 = SWIG_AsVal_int(obj11, &val12);
19681 if (!SWIG_IsOK(ecode12)) {
19682 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19683 }
19684 arg12 = static_cast< int >(val12);
19685 }
19686 {
19687 PyThreadState* __tstate = wxPyBeginAllowThreads();
19688 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19689 wxPyEndAllowThreads(__tstate);
19690 if (PyErr_Occurred()) SWIG_fail;
19691 }
19692 {
19693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19694 }
19695 return resultobj;
19696 fail:
19697 return NULL;
19698 }
19699
19700
19701 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19702 PyObject *resultobj = 0;
19703 wxDC *arg1 = (wxDC *) 0 ;
19704 wxPoint *arg2 = 0 ;
19705 wxSize *arg3 = 0 ;
19706 wxDC *arg4 = (wxDC *) 0 ;
19707 wxPoint *arg5 = 0 ;
19708 int arg6 = (int) wxCOPY ;
19709 bool arg7 = (bool) false ;
19710 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19711 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19712 bool result;
19713 void *argp1 = 0 ;
19714 int res1 = 0 ;
19715 wxPoint temp2 ;
19716 wxSize temp3 ;
19717 void *argp4 = 0 ;
19718 int res4 = 0 ;
19719 wxPoint temp5 ;
19720 int val6 ;
19721 int ecode6 = 0 ;
19722 bool val7 ;
19723 int ecode7 = 0 ;
19724 wxPoint temp8 ;
19725 PyObject * obj0 = 0 ;
19726 PyObject * obj1 = 0 ;
19727 PyObject * obj2 = 0 ;
19728 PyObject * obj3 = 0 ;
19729 PyObject * obj4 = 0 ;
19730 PyObject * obj5 = 0 ;
19731 PyObject * obj6 = 0 ;
19732 PyObject * obj7 = 0 ;
19733 char * kwnames[] = {
19734 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19735 };
19736
19737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19739 if (!SWIG_IsOK(res1)) {
19740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19741 }
19742 arg1 = reinterpret_cast< wxDC * >(argp1);
19743 {
19744 arg2 = &temp2;
19745 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19746 }
19747 {
19748 arg3 = &temp3;
19749 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19750 }
19751 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19752 if (!SWIG_IsOK(res4)) {
19753 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19754 }
19755 arg4 = reinterpret_cast< wxDC * >(argp4);
19756 {
19757 arg5 = &temp5;
19758 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19759 }
19760 if (obj5) {
19761 ecode6 = SWIG_AsVal_int(obj5, &val6);
19762 if (!SWIG_IsOK(ecode6)) {
19763 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19764 }
19765 arg6 = static_cast< int >(val6);
19766 }
19767 if (obj6) {
19768 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19769 if (!SWIG_IsOK(ecode7)) {
19770 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19771 }
19772 arg7 = static_cast< bool >(val7);
19773 }
19774 if (obj7) {
19775 {
19776 arg8 = &temp8;
19777 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
19778 }
19779 }
19780 {
19781 PyThreadState* __tstate = wxPyBeginAllowThreads();
19782 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19783 wxPyEndAllowThreads(__tstate);
19784 if (PyErr_Occurred()) SWIG_fail;
19785 }
19786 {
19787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19788 }
19789 return resultobj;
19790 fail:
19791 return NULL;
19792 }
19793
19794
19795 SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19796 PyObject *resultobj = 0;
19797 wxDC *arg1 = (wxDC *) 0 ;
19798 wxRect *arg2 = (wxRect *) NULL ;
19799 SwigValueWrapper<wxBitmap > result;
19800 void *argp1 = 0 ;
19801 int res1 = 0 ;
19802 void *argp2 = 0 ;
19803 int res2 = 0 ;
19804 PyObject * obj0 = 0 ;
19805 PyObject * obj1 = 0 ;
19806 char * kwnames[] = {
19807 (char *) "self",(char *) "subrect", NULL
19808 };
19809
19810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
19811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19812 if (!SWIG_IsOK(res1)) {
19813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
19814 }
19815 arg1 = reinterpret_cast< wxDC * >(argp1);
19816 if (obj1) {
19817 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
19818 if (!SWIG_IsOK(res2)) {
19819 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
19820 }
19821 arg2 = reinterpret_cast< wxRect * >(argp2);
19822 }
19823 {
19824 PyThreadState* __tstate = wxPyBeginAllowThreads();
19825 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
19826 wxPyEndAllowThreads(__tstate);
19827 if (PyErr_Occurred()) SWIG_fail;
19828 }
19829 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
19830 return resultobj;
19831 fail:
19832 return NULL;
19833 }
19834
19835
19836 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19837 PyObject *resultobj = 0;
19838 wxDC *arg1 = (wxDC *) 0 ;
19839 int arg2 ;
19840 int arg3 ;
19841 int arg4 ;
19842 int arg5 ;
19843 void *argp1 = 0 ;
19844 int res1 = 0 ;
19845 int val2 ;
19846 int ecode2 = 0 ;
19847 int val3 ;
19848 int ecode3 = 0 ;
19849 int val4 ;
19850 int ecode4 = 0 ;
19851 int val5 ;
19852 int ecode5 = 0 ;
19853 PyObject * obj0 = 0 ;
19854 PyObject * obj1 = 0 ;
19855 PyObject * obj2 = 0 ;
19856 PyObject * obj3 = 0 ;
19857 PyObject * obj4 = 0 ;
19858 char * kwnames[] = {
19859 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19860 };
19861
19862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19864 if (!SWIG_IsOK(res1)) {
19865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19866 }
19867 arg1 = reinterpret_cast< wxDC * >(argp1);
19868 ecode2 = SWIG_AsVal_int(obj1, &val2);
19869 if (!SWIG_IsOK(ecode2)) {
19870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19871 }
19872 arg2 = static_cast< int >(val2);
19873 ecode3 = SWIG_AsVal_int(obj2, &val3);
19874 if (!SWIG_IsOK(ecode3)) {
19875 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19876 }
19877 arg3 = static_cast< int >(val3);
19878 ecode4 = SWIG_AsVal_int(obj3, &val4);
19879 if (!SWIG_IsOK(ecode4)) {
19880 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19881 }
19882 arg4 = static_cast< int >(val4);
19883 ecode5 = SWIG_AsVal_int(obj4, &val5);
19884 if (!SWIG_IsOK(ecode5)) {
19885 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19886 }
19887 arg5 = static_cast< int >(val5);
19888 {
19889 PyThreadState* __tstate = wxPyBeginAllowThreads();
19890 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19891 wxPyEndAllowThreads(__tstate);
19892 if (PyErr_Occurred()) SWIG_fail;
19893 }
19894 resultobj = SWIG_Py_Void();
19895 return resultobj;
19896 fail:
19897 return NULL;
19898 }
19899
19900
19901 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19902 PyObject *resultobj = 0;
19903 wxDC *arg1 = (wxDC *) 0 ;
19904 wxPoint *arg2 = 0 ;
19905 wxSize *arg3 = 0 ;
19906 void *argp1 = 0 ;
19907 int res1 = 0 ;
19908 wxPoint temp2 ;
19909 wxSize temp3 ;
19910 PyObject * obj0 = 0 ;
19911 PyObject * obj1 = 0 ;
19912 PyObject * obj2 = 0 ;
19913 char * kwnames[] = {
19914 (char *) "self",(char *) "pt",(char *) "sz", NULL
19915 };
19916
19917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19919 if (!SWIG_IsOK(res1)) {
19920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19921 }
19922 arg1 = reinterpret_cast< wxDC * >(argp1);
19923 {
19924 arg2 = &temp2;
19925 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19926 }
19927 {
19928 arg3 = &temp3;
19929 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19930 }
19931 {
19932 PyThreadState* __tstate = wxPyBeginAllowThreads();
19933 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19934 wxPyEndAllowThreads(__tstate);
19935 if (PyErr_Occurred()) SWIG_fail;
19936 }
19937 resultobj = SWIG_Py_Void();
19938 return resultobj;
19939 fail:
19940 return NULL;
19941 }
19942
19943
19944 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19945 PyObject *resultobj = 0;
19946 wxDC *arg1 = (wxDC *) 0 ;
19947 wxRegion *arg2 = 0 ;
19948 void *argp1 = 0 ;
19949 int res1 = 0 ;
19950 void *argp2 = 0 ;
19951 int res2 = 0 ;
19952 PyObject * obj0 = 0 ;
19953 PyObject * obj1 = 0 ;
19954 char * kwnames[] = {
19955 (char *) "self",(char *) "region", NULL
19956 };
19957
19958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19960 if (!SWIG_IsOK(res1)) {
19961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19962 }
19963 arg1 = reinterpret_cast< wxDC * >(argp1);
19964 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19965 if (!SWIG_IsOK(res2)) {
19966 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19967 }
19968 if (!argp2) {
19969 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19970 }
19971 arg2 = reinterpret_cast< wxRegion * >(argp2);
19972 {
19973 PyThreadState* __tstate = wxPyBeginAllowThreads();
19974 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
19975 wxPyEndAllowThreads(__tstate);
19976 if (PyErr_Occurred()) SWIG_fail;
19977 }
19978 resultobj = SWIG_Py_Void();
19979 return resultobj;
19980 fail:
19981 return NULL;
19982 }
19983
19984
19985 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19986 PyObject *resultobj = 0;
19987 wxDC *arg1 = (wxDC *) 0 ;
19988 wxRect *arg2 = 0 ;
19989 void *argp1 = 0 ;
19990 int res1 = 0 ;
19991 wxRect temp2 ;
19992 PyObject * obj0 = 0 ;
19993 PyObject * obj1 = 0 ;
19994 char * kwnames[] = {
19995 (char *) "self",(char *) "rect", NULL
19996 };
19997
19998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
19999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20000 if (!SWIG_IsOK(res1)) {
20001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20002 }
20003 arg1 = reinterpret_cast< wxDC * >(argp1);
20004 {
20005 arg2 = &temp2;
20006 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20007 }
20008 {
20009 PyThreadState* __tstate = wxPyBeginAllowThreads();
20010 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20011 wxPyEndAllowThreads(__tstate);
20012 if (PyErr_Occurred()) SWIG_fail;
20013 }
20014 resultobj = SWIG_Py_Void();
20015 return resultobj;
20016 fail:
20017 return NULL;
20018 }
20019
20020
20021 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20022 PyObject *resultobj = 0;
20023 wxDC *arg1 = (wxDC *) 0 ;
20024 int arg2 ;
20025 wxPoint *arg3 = (wxPoint *) 0 ;
20026 int arg4 = (int) 0 ;
20027 int arg5 = (int) 0 ;
20028 void *argp1 = 0 ;
20029 int res1 = 0 ;
20030 int val4 ;
20031 int ecode4 = 0 ;
20032 int val5 ;
20033 int ecode5 = 0 ;
20034 PyObject * obj0 = 0 ;
20035 PyObject * obj1 = 0 ;
20036 PyObject * obj2 = 0 ;
20037 PyObject * obj3 = 0 ;
20038 char * kwnames[] = {
20039 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20040 };
20041
20042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20044 if (!SWIG_IsOK(res1)) {
20045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20046 }
20047 arg1 = reinterpret_cast< wxDC * >(argp1);
20048 {
20049 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20050 if (arg3 == NULL) SWIG_fail;
20051 }
20052 if (obj2) {
20053 ecode4 = SWIG_AsVal_int(obj2, &val4);
20054 if (!SWIG_IsOK(ecode4)) {
20055 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20056 }
20057 arg4 = static_cast< int >(val4);
20058 }
20059 if (obj3) {
20060 ecode5 = SWIG_AsVal_int(obj3, &val5);
20061 if (!SWIG_IsOK(ecode5)) {
20062 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20063 }
20064 arg5 = static_cast< int >(val5);
20065 }
20066 {
20067 PyThreadState* __tstate = wxPyBeginAllowThreads();
20068 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20069 wxPyEndAllowThreads(__tstate);
20070 if (PyErr_Occurred()) SWIG_fail;
20071 }
20072 resultobj = SWIG_Py_Void();
20073 {
20074 if (arg3) delete [] arg3;
20075 }
20076 return resultobj;
20077 fail:
20078 {
20079 if (arg3) delete [] arg3;
20080 }
20081 return NULL;
20082 }
20083
20084
20085 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20086 PyObject *resultobj = 0;
20087 wxDC *arg1 = (wxDC *) 0 ;
20088 int arg2 ;
20089 wxPoint *arg3 = (wxPoint *) 0 ;
20090 int arg4 = (int) 0 ;
20091 int arg5 = (int) 0 ;
20092 int arg6 = (int) wxODDEVEN_RULE ;
20093 void *argp1 = 0 ;
20094 int res1 = 0 ;
20095 int val4 ;
20096 int ecode4 = 0 ;
20097 int val5 ;
20098 int ecode5 = 0 ;
20099 int val6 ;
20100 int ecode6 = 0 ;
20101 PyObject * obj0 = 0 ;
20102 PyObject * obj1 = 0 ;
20103 PyObject * obj2 = 0 ;
20104 PyObject * obj3 = 0 ;
20105 PyObject * obj4 = 0 ;
20106 char * kwnames[] = {
20107 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20108 };
20109
20110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20112 if (!SWIG_IsOK(res1)) {
20113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20114 }
20115 arg1 = reinterpret_cast< wxDC * >(argp1);
20116 {
20117 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20118 if (arg3 == NULL) SWIG_fail;
20119 }
20120 if (obj2) {
20121 ecode4 = SWIG_AsVal_int(obj2, &val4);
20122 if (!SWIG_IsOK(ecode4)) {
20123 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20124 }
20125 arg4 = static_cast< int >(val4);
20126 }
20127 if (obj3) {
20128 ecode5 = SWIG_AsVal_int(obj3, &val5);
20129 if (!SWIG_IsOK(ecode5)) {
20130 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20131 }
20132 arg5 = static_cast< int >(val5);
20133 }
20134 if (obj4) {
20135 ecode6 = SWIG_AsVal_int(obj4, &val6);
20136 if (!SWIG_IsOK(ecode6)) {
20137 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20138 }
20139 arg6 = static_cast< int >(val6);
20140 }
20141 {
20142 PyThreadState* __tstate = wxPyBeginAllowThreads();
20143 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20144 wxPyEndAllowThreads(__tstate);
20145 if (PyErr_Occurred()) SWIG_fail;
20146 }
20147 resultobj = SWIG_Py_Void();
20148 {
20149 if (arg3) delete [] arg3;
20150 }
20151 return resultobj;
20152 fail:
20153 {
20154 if (arg3) delete [] arg3;
20155 }
20156 return NULL;
20157 }
20158
20159
20160 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20161 PyObject *resultobj = 0;
20162 wxDC *arg1 = (wxDC *) 0 ;
20163 wxString *arg2 = 0 ;
20164 wxRect *arg3 = 0 ;
20165 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20166 int arg5 = (int) -1 ;
20167 void *argp1 = 0 ;
20168 int res1 = 0 ;
20169 bool temp2 = false ;
20170 wxRect temp3 ;
20171 int val4 ;
20172 int ecode4 = 0 ;
20173 int val5 ;
20174 int ecode5 = 0 ;
20175 PyObject * obj0 = 0 ;
20176 PyObject * obj1 = 0 ;
20177 PyObject * obj2 = 0 ;
20178 PyObject * obj3 = 0 ;
20179 PyObject * obj4 = 0 ;
20180 char * kwnames[] = {
20181 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20182 };
20183
20184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20186 if (!SWIG_IsOK(res1)) {
20187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20188 }
20189 arg1 = reinterpret_cast< wxDC * >(argp1);
20190 {
20191 arg2 = wxString_in_helper(obj1);
20192 if (arg2 == NULL) SWIG_fail;
20193 temp2 = true;
20194 }
20195 {
20196 arg3 = &temp3;
20197 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20198 }
20199 if (obj3) {
20200 ecode4 = SWIG_AsVal_int(obj3, &val4);
20201 if (!SWIG_IsOK(ecode4)) {
20202 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20203 }
20204 arg4 = static_cast< int >(val4);
20205 }
20206 if (obj4) {
20207 ecode5 = SWIG_AsVal_int(obj4, &val5);
20208 if (!SWIG_IsOK(ecode5)) {
20209 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20210 }
20211 arg5 = static_cast< int >(val5);
20212 }
20213 {
20214 PyThreadState* __tstate = wxPyBeginAllowThreads();
20215 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20216 wxPyEndAllowThreads(__tstate);
20217 if (PyErr_Occurred()) SWIG_fail;
20218 }
20219 resultobj = SWIG_Py_Void();
20220 {
20221 if (temp2)
20222 delete arg2;
20223 }
20224 return resultobj;
20225 fail:
20226 {
20227 if (temp2)
20228 delete arg2;
20229 }
20230 return NULL;
20231 }
20232
20233
20234 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20235 PyObject *resultobj = 0;
20236 wxDC *arg1 = (wxDC *) 0 ;
20237 wxString *arg2 = 0 ;
20238 wxBitmap *arg3 = 0 ;
20239 wxRect *arg4 = 0 ;
20240 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20241 int arg6 = (int) -1 ;
20242 wxRect result;
20243 void *argp1 = 0 ;
20244 int res1 = 0 ;
20245 bool temp2 = false ;
20246 void *argp3 = 0 ;
20247 int res3 = 0 ;
20248 wxRect temp4 ;
20249 int val5 ;
20250 int ecode5 = 0 ;
20251 int val6 ;
20252 int ecode6 = 0 ;
20253 PyObject * obj0 = 0 ;
20254 PyObject * obj1 = 0 ;
20255 PyObject * obj2 = 0 ;
20256 PyObject * obj3 = 0 ;
20257 PyObject * obj4 = 0 ;
20258 PyObject * obj5 = 0 ;
20259 char * kwnames[] = {
20260 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20261 };
20262
20263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20265 if (!SWIG_IsOK(res1)) {
20266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20267 }
20268 arg1 = reinterpret_cast< wxDC * >(argp1);
20269 {
20270 arg2 = wxString_in_helper(obj1);
20271 if (arg2 == NULL) SWIG_fail;
20272 temp2 = true;
20273 }
20274 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20275 if (!SWIG_IsOK(res3)) {
20276 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20277 }
20278 if (!argp3) {
20279 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20280 }
20281 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20282 {
20283 arg4 = &temp4;
20284 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20285 }
20286 if (obj4) {
20287 ecode5 = SWIG_AsVal_int(obj4, &val5);
20288 if (!SWIG_IsOK(ecode5)) {
20289 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20290 }
20291 arg5 = static_cast< int >(val5);
20292 }
20293 if (obj5) {
20294 ecode6 = SWIG_AsVal_int(obj5, &val6);
20295 if (!SWIG_IsOK(ecode6)) {
20296 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20297 }
20298 arg6 = static_cast< int >(val6);
20299 }
20300 {
20301 PyThreadState* __tstate = wxPyBeginAllowThreads();
20302 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20303 wxPyEndAllowThreads(__tstate);
20304 if (PyErr_Occurred()) SWIG_fail;
20305 }
20306 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20307 {
20308 if (temp2)
20309 delete arg2;
20310 }
20311 return resultobj;
20312 fail:
20313 {
20314 if (temp2)
20315 delete arg2;
20316 }
20317 return NULL;
20318 }
20319
20320
20321 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20322 PyObject *resultobj = 0;
20323 wxDC *arg1 = (wxDC *) 0 ;
20324 int arg2 ;
20325 wxPoint *arg3 = (wxPoint *) 0 ;
20326 void *argp1 = 0 ;
20327 int res1 = 0 ;
20328 PyObject * obj0 = 0 ;
20329 PyObject * obj1 = 0 ;
20330 char * kwnames[] = {
20331 (char *) "self",(char *) "points", NULL
20332 };
20333
20334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20336 if (!SWIG_IsOK(res1)) {
20337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20338 }
20339 arg1 = reinterpret_cast< wxDC * >(argp1);
20340 {
20341 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20342 if (arg3 == NULL) SWIG_fail;
20343 }
20344 {
20345 PyThreadState* __tstate = wxPyBeginAllowThreads();
20346 (arg1)->DrawSpline(arg2,arg3);
20347 wxPyEndAllowThreads(__tstate);
20348 if (PyErr_Occurred()) SWIG_fail;
20349 }
20350 resultobj = SWIG_Py_Void();
20351 {
20352 if (arg3) delete [] arg3;
20353 }
20354 return resultobj;
20355 fail:
20356 {
20357 if (arg3) delete [] arg3;
20358 }
20359 return NULL;
20360 }
20361
20362
20363 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20364 PyObject *resultobj = 0;
20365 wxDC *arg1 = (wxDC *) 0 ;
20366 void *argp1 = 0 ;
20367 int res1 = 0 ;
20368 PyObject *swig_obj[1] ;
20369
20370 if (!args) SWIG_fail;
20371 swig_obj[0] = args;
20372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20373 if (!SWIG_IsOK(res1)) {
20374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20375 }
20376 arg1 = reinterpret_cast< wxDC * >(argp1);
20377 {
20378 PyThreadState* __tstate = wxPyBeginAllowThreads();
20379 (arg1)->Clear();
20380 wxPyEndAllowThreads(__tstate);
20381 if (PyErr_Occurred()) SWIG_fail;
20382 }
20383 resultobj = SWIG_Py_Void();
20384 return resultobj;
20385 fail:
20386 return NULL;
20387 }
20388
20389
20390 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20391 PyObject *resultobj = 0;
20392 wxDC *arg1 = (wxDC *) 0 ;
20393 wxString *arg2 = 0 ;
20394 bool result;
20395 void *argp1 = 0 ;
20396 int res1 = 0 ;
20397 bool temp2 = false ;
20398 PyObject * obj0 = 0 ;
20399 PyObject * obj1 = 0 ;
20400 char * kwnames[] = {
20401 (char *) "self",(char *) "message", NULL
20402 };
20403
20404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20406 if (!SWIG_IsOK(res1)) {
20407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20408 }
20409 arg1 = reinterpret_cast< wxDC * >(argp1);
20410 {
20411 arg2 = wxString_in_helper(obj1);
20412 if (arg2 == NULL) SWIG_fail;
20413 temp2 = true;
20414 }
20415 {
20416 PyThreadState* __tstate = wxPyBeginAllowThreads();
20417 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20418 wxPyEndAllowThreads(__tstate);
20419 if (PyErr_Occurred()) SWIG_fail;
20420 }
20421 {
20422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20423 }
20424 {
20425 if (temp2)
20426 delete arg2;
20427 }
20428 return resultobj;
20429 fail:
20430 {
20431 if (temp2)
20432 delete arg2;
20433 }
20434 return NULL;
20435 }
20436
20437
20438 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20439 PyObject *resultobj = 0;
20440 wxDC *arg1 = (wxDC *) 0 ;
20441 void *argp1 = 0 ;
20442 int res1 = 0 ;
20443 PyObject *swig_obj[1] ;
20444
20445 if (!args) SWIG_fail;
20446 swig_obj[0] = args;
20447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20448 if (!SWIG_IsOK(res1)) {
20449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20450 }
20451 arg1 = reinterpret_cast< wxDC * >(argp1);
20452 {
20453 PyThreadState* __tstate = wxPyBeginAllowThreads();
20454 (arg1)->EndDoc();
20455 wxPyEndAllowThreads(__tstate);
20456 if (PyErr_Occurred()) SWIG_fail;
20457 }
20458 resultobj = SWIG_Py_Void();
20459 return resultobj;
20460 fail:
20461 return NULL;
20462 }
20463
20464
20465 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20466 PyObject *resultobj = 0;
20467 wxDC *arg1 = (wxDC *) 0 ;
20468 void *argp1 = 0 ;
20469 int res1 = 0 ;
20470 PyObject *swig_obj[1] ;
20471
20472 if (!args) SWIG_fail;
20473 swig_obj[0] = args;
20474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20475 if (!SWIG_IsOK(res1)) {
20476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20477 }
20478 arg1 = reinterpret_cast< wxDC * >(argp1);
20479 {
20480 PyThreadState* __tstate = wxPyBeginAllowThreads();
20481 (arg1)->StartPage();
20482 wxPyEndAllowThreads(__tstate);
20483 if (PyErr_Occurred()) SWIG_fail;
20484 }
20485 resultobj = SWIG_Py_Void();
20486 return resultobj;
20487 fail:
20488 return NULL;
20489 }
20490
20491
20492 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20493 PyObject *resultobj = 0;
20494 wxDC *arg1 = (wxDC *) 0 ;
20495 void *argp1 = 0 ;
20496 int res1 = 0 ;
20497 PyObject *swig_obj[1] ;
20498
20499 if (!args) SWIG_fail;
20500 swig_obj[0] = args;
20501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20502 if (!SWIG_IsOK(res1)) {
20503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20504 }
20505 arg1 = reinterpret_cast< wxDC * >(argp1);
20506 {
20507 PyThreadState* __tstate = wxPyBeginAllowThreads();
20508 (arg1)->EndPage();
20509 wxPyEndAllowThreads(__tstate);
20510 if (PyErr_Occurred()) SWIG_fail;
20511 }
20512 resultobj = SWIG_Py_Void();
20513 return resultobj;
20514 fail:
20515 return NULL;
20516 }
20517
20518
20519 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20520 PyObject *resultobj = 0;
20521 wxDC *arg1 = (wxDC *) 0 ;
20522 wxFont *arg2 = 0 ;
20523 void *argp1 = 0 ;
20524 int res1 = 0 ;
20525 void *argp2 = 0 ;
20526 int res2 = 0 ;
20527 PyObject * obj0 = 0 ;
20528 PyObject * obj1 = 0 ;
20529 char * kwnames[] = {
20530 (char *) "self",(char *) "font", NULL
20531 };
20532
20533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20535 if (!SWIG_IsOK(res1)) {
20536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20537 }
20538 arg1 = reinterpret_cast< wxDC * >(argp1);
20539 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20540 if (!SWIG_IsOK(res2)) {
20541 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20542 }
20543 if (!argp2) {
20544 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20545 }
20546 arg2 = reinterpret_cast< wxFont * >(argp2);
20547 {
20548 PyThreadState* __tstate = wxPyBeginAllowThreads();
20549 (arg1)->SetFont((wxFont const &)*arg2);
20550 wxPyEndAllowThreads(__tstate);
20551 if (PyErr_Occurred()) SWIG_fail;
20552 }
20553 resultobj = SWIG_Py_Void();
20554 return resultobj;
20555 fail:
20556 return NULL;
20557 }
20558
20559
20560 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20561 PyObject *resultobj = 0;
20562 wxDC *arg1 = (wxDC *) 0 ;
20563 wxPen *arg2 = 0 ;
20564 void *argp1 = 0 ;
20565 int res1 = 0 ;
20566 void *argp2 = 0 ;
20567 int res2 = 0 ;
20568 PyObject * obj0 = 0 ;
20569 PyObject * obj1 = 0 ;
20570 char * kwnames[] = {
20571 (char *) "self",(char *) "pen", NULL
20572 };
20573
20574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20576 if (!SWIG_IsOK(res1)) {
20577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20578 }
20579 arg1 = reinterpret_cast< wxDC * >(argp1);
20580 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20581 if (!SWIG_IsOK(res2)) {
20582 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20583 }
20584 if (!argp2) {
20585 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20586 }
20587 arg2 = reinterpret_cast< wxPen * >(argp2);
20588 {
20589 PyThreadState* __tstate = wxPyBeginAllowThreads();
20590 (arg1)->SetPen((wxPen const &)*arg2);
20591 wxPyEndAllowThreads(__tstate);
20592 if (PyErr_Occurred()) SWIG_fail;
20593 }
20594 resultobj = SWIG_Py_Void();
20595 return resultobj;
20596 fail:
20597 return NULL;
20598 }
20599
20600
20601 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20602 PyObject *resultobj = 0;
20603 wxDC *arg1 = (wxDC *) 0 ;
20604 wxBrush *arg2 = 0 ;
20605 void *argp1 = 0 ;
20606 int res1 = 0 ;
20607 void *argp2 = 0 ;
20608 int res2 = 0 ;
20609 PyObject * obj0 = 0 ;
20610 PyObject * obj1 = 0 ;
20611 char * kwnames[] = {
20612 (char *) "self",(char *) "brush", NULL
20613 };
20614
20615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20617 if (!SWIG_IsOK(res1)) {
20618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20619 }
20620 arg1 = reinterpret_cast< wxDC * >(argp1);
20621 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20622 if (!SWIG_IsOK(res2)) {
20623 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20624 }
20625 if (!argp2) {
20626 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20627 }
20628 arg2 = reinterpret_cast< wxBrush * >(argp2);
20629 {
20630 PyThreadState* __tstate = wxPyBeginAllowThreads();
20631 (arg1)->SetBrush((wxBrush const &)*arg2);
20632 wxPyEndAllowThreads(__tstate);
20633 if (PyErr_Occurred()) SWIG_fail;
20634 }
20635 resultobj = SWIG_Py_Void();
20636 return resultobj;
20637 fail:
20638 return NULL;
20639 }
20640
20641
20642 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20643 PyObject *resultobj = 0;
20644 wxDC *arg1 = (wxDC *) 0 ;
20645 wxBrush *arg2 = 0 ;
20646 void *argp1 = 0 ;
20647 int res1 = 0 ;
20648 void *argp2 = 0 ;
20649 int res2 = 0 ;
20650 PyObject * obj0 = 0 ;
20651 PyObject * obj1 = 0 ;
20652 char * kwnames[] = {
20653 (char *) "self",(char *) "brush", NULL
20654 };
20655
20656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20658 if (!SWIG_IsOK(res1)) {
20659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20660 }
20661 arg1 = reinterpret_cast< wxDC * >(argp1);
20662 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20663 if (!SWIG_IsOK(res2)) {
20664 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20665 }
20666 if (!argp2) {
20667 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20668 }
20669 arg2 = reinterpret_cast< wxBrush * >(argp2);
20670 {
20671 PyThreadState* __tstate = wxPyBeginAllowThreads();
20672 (arg1)->SetBackground((wxBrush const &)*arg2);
20673 wxPyEndAllowThreads(__tstate);
20674 if (PyErr_Occurred()) SWIG_fail;
20675 }
20676 resultobj = SWIG_Py_Void();
20677 return resultobj;
20678 fail:
20679 return NULL;
20680 }
20681
20682
20683 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20684 PyObject *resultobj = 0;
20685 wxDC *arg1 = (wxDC *) 0 ;
20686 int arg2 ;
20687 void *argp1 = 0 ;
20688 int res1 = 0 ;
20689 int val2 ;
20690 int ecode2 = 0 ;
20691 PyObject * obj0 = 0 ;
20692 PyObject * obj1 = 0 ;
20693 char * kwnames[] = {
20694 (char *) "self",(char *) "mode", NULL
20695 };
20696
20697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20699 if (!SWIG_IsOK(res1)) {
20700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20701 }
20702 arg1 = reinterpret_cast< wxDC * >(argp1);
20703 ecode2 = SWIG_AsVal_int(obj1, &val2);
20704 if (!SWIG_IsOK(ecode2)) {
20705 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20706 }
20707 arg2 = static_cast< int >(val2);
20708 {
20709 PyThreadState* __tstate = wxPyBeginAllowThreads();
20710 (arg1)->SetBackgroundMode(arg2);
20711 wxPyEndAllowThreads(__tstate);
20712 if (PyErr_Occurred()) SWIG_fail;
20713 }
20714 resultobj = SWIG_Py_Void();
20715 return resultobj;
20716 fail:
20717 return NULL;
20718 }
20719
20720
20721 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20722 PyObject *resultobj = 0;
20723 wxDC *arg1 = (wxDC *) 0 ;
20724 wxPalette *arg2 = 0 ;
20725 void *argp1 = 0 ;
20726 int res1 = 0 ;
20727 void *argp2 = 0 ;
20728 int res2 = 0 ;
20729 PyObject * obj0 = 0 ;
20730 PyObject * obj1 = 0 ;
20731 char * kwnames[] = {
20732 (char *) "self",(char *) "palette", NULL
20733 };
20734
20735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20737 if (!SWIG_IsOK(res1)) {
20738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20739 }
20740 arg1 = reinterpret_cast< wxDC * >(argp1);
20741 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20742 if (!SWIG_IsOK(res2)) {
20743 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20744 }
20745 if (!argp2) {
20746 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20747 }
20748 arg2 = reinterpret_cast< wxPalette * >(argp2);
20749 {
20750 PyThreadState* __tstate = wxPyBeginAllowThreads();
20751 (arg1)->SetPalette((wxPalette const &)*arg2);
20752 wxPyEndAllowThreads(__tstate);
20753 if (PyErr_Occurred()) SWIG_fail;
20754 }
20755 resultobj = SWIG_Py_Void();
20756 return resultobj;
20757 fail:
20758 return NULL;
20759 }
20760
20761
20762 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20763 PyObject *resultobj = 0;
20764 wxDC *arg1 = (wxDC *) 0 ;
20765 void *argp1 = 0 ;
20766 int res1 = 0 ;
20767 PyObject *swig_obj[1] ;
20768
20769 if (!args) SWIG_fail;
20770 swig_obj[0] = args;
20771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20772 if (!SWIG_IsOK(res1)) {
20773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20774 }
20775 arg1 = reinterpret_cast< wxDC * >(argp1);
20776 {
20777 PyThreadState* __tstate = wxPyBeginAllowThreads();
20778 (arg1)->DestroyClippingRegion();
20779 wxPyEndAllowThreads(__tstate);
20780 if (PyErr_Occurred()) SWIG_fail;
20781 }
20782 resultobj = SWIG_Py_Void();
20783 return resultobj;
20784 fail:
20785 return NULL;
20786 }
20787
20788
20789 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20790 PyObject *resultobj = 0;
20791 wxDC *arg1 = (wxDC *) 0 ;
20792 int *arg2 = (int *) 0 ;
20793 int *arg3 = (int *) 0 ;
20794 int *arg4 = (int *) 0 ;
20795 int *arg5 = (int *) 0 ;
20796 void *argp1 = 0 ;
20797 int res1 = 0 ;
20798 int temp2 ;
20799 int res2 = SWIG_TMPOBJ ;
20800 int temp3 ;
20801 int res3 = SWIG_TMPOBJ ;
20802 int temp4 ;
20803 int res4 = SWIG_TMPOBJ ;
20804 int temp5 ;
20805 int res5 = SWIG_TMPOBJ ;
20806 PyObject *swig_obj[1] ;
20807
20808 arg2 = &temp2;
20809 arg3 = &temp3;
20810 arg4 = &temp4;
20811 arg5 = &temp5;
20812 if (!args) SWIG_fail;
20813 swig_obj[0] = args;
20814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20815 if (!SWIG_IsOK(res1)) {
20816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20817 }
20818 arg1 = reinterpret_cast< wxDC * >(argp1);
20819 {
20820 PyThreadState* __tstate = wxPyBeginAllowThreads();
20821 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20822 wxPyEndAllowThreads(__tstate);
20823 if (PyErr_Occurred()) SWIG_fail;
20824 }
20825 resultobj = SWIG_Py_Void();
20826 if (SWIG_IsTmpObj(res2)) {
20827 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20828 } else {
20829 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20830 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20831 }
20832 if (SWIG_IsTmpObj(res3)) {
20833 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20834 } else {
20835 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20836 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20837 }
20838 if (SWIG_IsTmpObj(res4)) {
20839 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20840 } else {
20841 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20842 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20843 }
20844 if (SWIG_IsTmpObj(res5)) {
20845 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20846 } else {
20847 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20848 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20849 }
20850 return resultobj;
20851 fail:
20852 return NULL;
20853 }
20854
20855
20856 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20857 PyObject *resultobj = 0;
20858 wxDC *arg1 = (wxDC *) 0 ;
20859 wxRect result;
20860 void *argp1 = 0 ;
20861 int res1 = 0 ;
20862 PyObject *swig_obj[1] ;
20863
20864 if (!args) SWIG_fail;
20865 swig_obj[0] = args;
20866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20867 if (!SWIG_IsOK(res1)) {
20868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20869 }
20870 arg1 = reinterpret_cast< wxDC * >(argp1);
20871 {
20872 PyThreadState* __tstate = wxPyBeginAllowThreads();
20873 result = wxDC_GetClippingRect(arg1);
20874 wxPyEndAllowThreads(__tstate);
20875 if (PyErr_Occurred()) SWIG_fail;
20876 }
20877 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20878 return resultobj;
20879 fail:
20880 return NULL;
20881 }
20882
20883
20884 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20885 PyObject *resultobj = 0;
20886 wxDC *arg1 = (wxDC *) 0 ;
20887 int result;
20888 void *argp1 = 0 ;
20889 int res1 = 0 ;
20890 PyObject *swig_obj[1] ;
20891
20892 if (!args) SWIG_fail;
20893 swig_obj[0] = args;
20894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20895 if (!SWIG_IsOK(res1)) {
20896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20897 }
20898 arg1 = reinterpret_cast< wxDC * >(argp1);
20899 {
20900 PyThreadState* __tstate = wxPyBeginAllowThreads();
20901 result = (int)((wxDC const *)arg1)->GetCharHeight();
20902 wxPyEndAllowThreads(__tstate);
20903 if (PyErr_Occurred()) SWIG_fail;
20904 }
20905 resultobj = SWIG_From_int(static_cast< int >(result));
20906 return resultobj;
20907 fail:
20908 return NULL;
20909 }
20910
20911
20912 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20913 PyObject *resultobj = 0;
20914 wxDC *arg1 = (wxDC *) 0 ;
20915 int result;
20916 void *argp1 = 0 ;
20917 int res1 = 0 ;
20918 PyObject *swig_obj[1] ;
20919
20920 if (!args) SWIG_fail;
20921 swig_obj[0] = args;
20922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20923 if (!SWIG_IsOK(res1)) {
20924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20925 }
20926 arg1 = reinterpret_cast< wxDC * >(argp1);
20927 {
20928 PyThreadState* __tstate = wxPyBeginAllowThreads();
20929 result = (int)((wxDC const *)arg1)->GetCharWidth();
20930 wxPyEndAllowThreads(__tstate);
20931 if (PyErr_Occurred()) SWIG_fail;
20932 }
20933 resultobj = SWIG_From_int(static_cast< int >(result));
20934 return resultobj;
20935 fail:
20936 return NULL;
20937 }
20938
20939
20940 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20941 PyObject *resultobj = 0;
20942 wxDC *arg1 = (wxDC *) 0 ;
20943 wxString *arg2 = 0 ;
20944 int *arg3 = (int *) 0 ;
20945 int *arg4 = (int *) 0 ;
20946 void *argp1 = 0 ;
20947 int res1 = 0 ;
20948 bool temp2 = false ;
20949 int temp3 ;
20950 int res3 = SWIG_TMPOBJ ;
20951 int temp4 ;
20952 int res4 = SWIG_TMPOBJ ;
20953 PyObject * obj0 = 0 ;
20954 PyObject * obj1 = 0 ;
20955 char * kwnames[] = {
20956 (char *) "self",(char *) "string", NULL
20957 };
20958
20959 arg3 = &temp3;
20960 arg4 = &temp4;
20961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20963 if (!SWIG_IsOK(res1)) {
20964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20965 }
20966 arg1 = reinterpret_cast< wxDC * >(argp1);
20967 {
20968 arg2 = wxString_in_helper(obj1);
20969 if (arg2 == NULL) SWIG_fail;
20970 temp2 = true;
20971 }
20972 {
20973 PyThreadState* __tstate = wxPyBeginAllowThreads();
20974 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
20975 wxPyEndAllowThreads(__tstate);
20976 if (PyErr_Occurred()) SWIG_fail;
20977 }
20978 resultobj = SWIG_Py_Void();
20979 if (SWIG_IsTmpObj(res3)) {
20980 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20981 } else {
20982 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20983 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20984 }
20985 if (SWIG_IsTmpObj(res4)) {
20986 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20987 } else {
20988 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20989 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20990 }
20991 {
20992 if (temp2)
20993 delete arg2;
20994 }
20995 return resultobj;
20996 fail:
20997 {
20998 if (temp2)
20999 delete arg2;
21000 }
21001 return NULL;
21002 }
21003
21004
21005 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21006 PyObject *resultobj = 0;
21007 wxDC *arg1 = (wxDC *) 0 ;
21008 wxString *arg2 = 0 ;
21009 int *arg3 = (int *) 0 ;
21010 int *arg4 = (int *) 0 ;
21011 int *arg5 = (int *) 0 ;
21012 int *arg6 = (int *) 0 ;
21013 wxFont *arg7 = (wxFont *) NULL ;
21014 void *argp1 = 0 ;
21015 int res1 = 0 ;
21016 bool temp2 = false ;
21017 int temp3 ;
21018 int res3 = SWIG_TMPOBJ ;
21019 int temp4 ;
21020 int res4 = SWIG_TMPOBJ ;
21021 int temp5 ;
21022 int res5 = SWIG_TMPOBJ ;
21023 int temp6 ;
21024 int res6 = SWIG_TMPOBJ ;
21025 void *argp7 = 0 ;
21026 int res7 = 0 ;
21027 PyObject * obj0 = 0 ;
21028 PyObject * obj1 = 0 ;
21029 PyObject * obj2 = 0 ;
21030 char * kwnames[] = {
21031 (char *) "self",(char *) "string",(char *) "font", NULL
21032 };
21033
21034 arg3 = &temp3;
21035 arg4 = &temp4;
21036 arg5 = &temp5;
21037 arg6 = &temp6;
21038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21040 if (!SWIG_IsOK(res1)) {
21041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21042 }
21043 arg1 = reinterpret_cast< wxDC * >(argp1);
21044 {
21045 arg2 = wxString_in_helper(obj1);
21046 if (arg2 == NULL) SWIG_fail;
21047 temp2 = true;
21048 }
21049 if (obj2) {
21050 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21051 if (!SWIG_IsOK(res7)) {
21052 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
21053 }
21054 arg7 = reinterpret_cast< wxFont * >(argp7);
21055 }
21056 {
21057 PyThreadState* __tstate = wxPyBeginAllowThreads();
21058 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21059 wxPyEndAllowThreads(__tstate);
21060 if (PyErr_Occurred()) SWIG_fail;
21061 }
21062 resultobj = SWIG_Py_Void();
21063 if (SWIG_IsTmpObj(res3)) {
21064 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21065 } else {
21066 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21067 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21068 }
21069 if (SWIG_IsTmpObj(res4)) {
21070 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21071 } else {
21072 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21073 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21074 }
21075 if (SWIG_IsTmpObj(res5)) {
21076 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21077 } else {
21078 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21079 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21080 }
21081 if (SWIG_IsTmpObj(res6)) {
21082 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21083 } else {
21084 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21085 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21086 }
21087 {
21088 if (temp2)
21089 delete arg2;
21090 }
21091 return resultobj;
21092 fail:
21093 {
21094 if (temp2)
21095 delete arg2;
21096 }
21097 return NULL;
21098 }
21099
21100
21101 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21102 PyObject *resultobj = 0;
21103 wxDC *arg1 = (wxDC *) 0 ;
21104 wxString *arg2 = 0 ;
21105 int *arg3 = (int *) 0 ;
21106 int *arg4 = (int *) 0 ;
21107 int *arg5 = (int *) 0 ;
21108 wxFont *arg6 = (wxFont *) NULL ;
21109 void *argp1 = 0 ;
21110 int res1 = 0 ;
21111 bool temp2 = false ;
21112 int temp3 ;
21113 int res3 = SWIG_TMPOBJ ;
21114 int temp4 ;
21115 int res4 = SWIG_TMPOBJ ;
21116 int temp5 ;
21117 int res5 = SWIG_TMPOBJ ;
21118 void *argp6 = 0 ;
21119 int res6 = 0 ;
21120 PyObject * obj0 = 0 ;
21121 PyObject * obj1 = 0 ;
21122 PyObject * obj2 = 0 ;
21123 char * kwnames[] = {
21124 (char *) "self",(char *) "text",(char *) "font", NULL
21125 };
21126
21127 arg3 = &temp3;
21128 arg4 = &temp4;
21129 arg5 = &temp5;
21130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21132 if (!SWIG_IsOK(res1)) {
21133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21134 }
21135 arg1 = reinterpret_cast< wxDC * >(argp1);
21136 {
21137 arg2 = wxString_in_helper(obj1);
21138 if (arg2 == NULL) SWIG_fail;
21139 temp2 = true;
21140 }
21141 if (obj2) {
21142 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21143 if (!SWIG_IsOK(res6)) {
21144 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
21145 }
21146 arg6 = reinterpret_cast< wxFont * >(argp6);
21147 }
21148 {
21149 PyThreadState* __tstate = wxPyBeginAllowThreads();
21150 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21151 wxPyEndAllowThreads(__tstate);
21152 if (PyErr_Occurred()) SWIG_fail;
21153 }
21154 resultobj = SWIG_Py_Void();
21155 if (SWIG_IsTmpObj(res3)) {
21156 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21157 } else {
21158 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21159 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21160 }
21161 if (SWIG_IsTmpObj(res4)) {
21162 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21163 } else {
21164 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21165 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21166 }
21167 if (SWIG_IsTmpObj(res5)) {
21168 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21169 } else {
21170 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21171 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21172 }
21173 {
21174 if (temp2)
21175 delete arg2;
21176 }
21177 return resultobj;
21178 fail:
21179 {
21180 if (temp2)
21181 delete arg2;
21182 }
21183 return NULL;
21184 }
21185
21186
21187 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21188 PyObject *resultobj = 0;
21189 wxDC *arg1 = (wxDC *) 0 ;
21190 wxString *arg2 = 0 ;
21191 wxArrayInt result;
21192 void *argp1 = 0 ;
21193 int res1 = 0 ;
21194 bool temp2 = false ;
21195 PyObject * obj0 = 0 ;
21196 PyObject * obj1 = 0 ;
21197 char * kwnames[] = {
21198 (char *) "self",(char *) "text", NULL
21199 };
21200
21201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21203 if (!SWIG_IsOK(res1)) {
21204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21205 }
21206 arg1 = reinterpret_cast< wxDC * >(argp1);
21207 {
21208 arg2 = wxString_in_helper(obj1);
21209 if (arg2 == NULL) SWIG_fail;
21210 temp2 = true;
21211 }
21212 {
21213 PyThreadState* __tstate = wxPyBeginAllowThreads();
21214 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21215 wxPyEndAllowThreads(__tstate);
21216 if (PyErr_Occurred()) SWIG_fail;
21217 }
21218 {
21219 resultobj = wxArrayInt2PyList_helper(result);
21220 }
21221 {
21222 if (temp2)
21223 delete arg2;
21224 }
21225 return resultobj;
21226 fail:
21227 {
21228 if (temp2)
21229 delete arg2;
21230 }
21231 return NULL;
21232 }
21233
21234
21235 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21236 PyObject *resultobj = 0;
21237 wxDC *arg1 = (wxDC *) 0 ;
21238 wxSize result;
21239 void *argp1 = 0 ;
21240 int res1 = 0 ;
21241 PyObject *swig_obj[1] ;
21242
21243 if (!args) SWIG_fail;
21244 swig_obj[0] = args;
21245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21246 if (!SWIG_IsOK(res1)) {
21247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21248 }
21249 arg1 = reinterpret_cast< wxDC * >(argp1);
21250 {
21251 PyThreadState* __tstate = wxPyBeginAllowThreads();
21252 result = (arg1)->GetSize();
21253 wxPyEndAllowThreads(__tstate);
21254 if (PyErr_Occurred()) SWIG_fail;
21255 }
21256 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21257 return resultobj;
21258 fail:
21259 return NULL;
21260 }
21261
21262
21263 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21264 PyObject *resultobj = 0;
21265 wxDC *arg1 = (wxDC *) 0 ;
21266 int *arg2 = (int *) 0 ;
21267 int *arg3 = (int *) 0 ;
21268 void *argp1 = 0 ;
21269 int res1 = 0 ;
21270 int temp2 ;
21271 int res2 = SWIG_TMPOBJ ;
21272 int temp3 ;
21273 int res3 = SWIG_TMPOBJ ;
21274 PyObject *swig_obj[1] ;
21275
21276 arg2 = &temp2;
21277 arg3 = &temp3;
21278 if (!args) SWIG_fail;
21279 swig_obj[0] = args;
21280 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21281 if (!SWIG_IsOK(res1)) {
21282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21283 }
21284 arg1 = reinterpret_cast< wxDC * >(argp1);
21285 {
21286 PyThreadState* __tstate = wxPyBeginAllowThreads();
21287 (arg1)->GetSize(arg2,arg3);
21288 wxPyEndAllowThreads(__tstate);
21289 if (PyErr_Occurred()) SWIG_fail;
21290 }
21291 resultobj = SWIG_Py_Void();
21292 if (SWIG_IsTmpObj(res2)) {
21293 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21294 } else {
21295 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21296 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21297 }
21298 if (SWIG_IsTmpObj(res3)) {
21299 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21300 } else {
21301 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21302 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21303 }
21304 return resultobj;
21305 fail:
21306 return NULL;
21307 }
21308
21309
21310 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21311 PyObject *resultobj = 0;
21312 wxDC *arg1 = (wxDC *) 0 ;
21313 wxSize result;
21314 void *argp1 = 0 ;
21315 int res1 = 0 ;
21316 PyObject *swig_obj[1] ;
21317
21318 if (!args) SWIG_fail;
21319 swig_obj[0] = args;
21320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21321 if (!SWIG_IsOK(res1)) {
21322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21323 }
21324 arg1 = reinterpret_cast< wxDC * >(argp1);
21325 {
21326 PyThreadState* __tstate = wxPyBeginAllowThreads();
21327 result = ((wxDC const *)arg1)->GetSizeMM();
21328 wxPyEndAllowThreads(__tstate);
21329 if (PyErr_Occurred()) SWIG_fail;
21330 }
21331 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21332 return resultobj;
21333 fail:
21334 return NULL;
21335 }
21336
21337
21338 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21339 PyObject *resultobj = 0;
21340 wxDC *arg1 = (wxDC *) 0 ;
21341 int *arg2 = (int *) 0 ;
21342 int *arg3 = (int *) 0 ;
21343 void *argp1 = 0 ;
21344 int res1 = 0 ;
21345 int temp2 ;
21346 int res2 = SWIG_TMPOBJ ;
21347 int temp3 ;
21348 int res3 = SWIG_TMPOBJ ;
21349 PyObject *swig_obj[1] ;
21350
21351 arg2 = &temp2;
21352 arg3 = &temp3;
21353 if (!args) SWIG_fail;
21354 swig_obj[0] = args;
21355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21356 if (!SWIG_IsOK(res1)) {
21357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21358 }
21359 arg1 = reinterpret_cast< wxDC * >(argp1);
21360 {
21361 PyThreadState* __tstate = wxPyBeginAllowThreads();
21362 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21363 wxPyEndAllowThreads(__tstate);
21364 if (PyErr_Occurred()) SWIG_fail;
21365 }
21366 resultobj = SWIG_Py_Void();
21367 if (SWIG_IsTmpObj(res2)) {
21368 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21369 } else {
21370 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21371 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21372 }
21373 if (SWIG_IsTmpObj(res3)) {
21374 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21375 } else {
21376 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21377 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21378 }
21379 return resultobj;
21380 fail:
21381 return NULL;
21382 }
21383
21384
21385 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21386 PyObject *resultobj = 0;
21387 wxDC *arg1 = (wxDC *) 0 ;
21388 int arg2 ;
21389 int result;
21390 void *argp1 = 0 ;
21391 int res1 = 0 ;
21392 int val2 ;
21393 int ecode2 = 0 ;
21394 PyObject * obj0 = 0 ;
21395 PyObject * obj1 = 0 ;
21396 char * kwnames[] = {
21397 (char *) "self",(char *) "x", NULL
21398 };
21399
21400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21402 if (!SWIG_IsOK(res1)) {
21403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21404 }
21405 arg1 = reinterpret_cast< wxDC * >(argp1);
21406 ecode2 = SWIG_AsVal_int(obj1, &val2);
21407 if (!SWIG_IsOK(ecode2)) {
21408 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21409 }
21410 arg2 = static_cast< int >(val2);
21411 {
21412 PyThreadState* __tstate = wxPyBeginAllowThreads();
21413 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21414 wxPyEndAllowThreads(__tstate);
21415 if (PyErr_Occurred()) SWIG_fail;
21416 }
21417 resultobj = SWIG_From_int(static_cast< int >(result));
21418 return resultobj;
21419 fail:
21420 return NULL;
21421 }
21422
21423
21424 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21425 PyObject *resultobj = 0;
21426 wxDC *arg1 = (wxDC *) 0 ;
21427 int arg2 ;
21428 int result;
21429 void *argp1 = 0 ;
21430 int res1 = 0 ;
21431 int val2 ;
21432 int ecode2 = 0 ;
21433 PyObject * obj0 = 0 ;
21434 PyObject * obj1 = 0 ;
21435 char * kwnames[] = {
21436 (char *) "self",(char *) "y", NULL
21437 };
21438
21439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21441 if (!SWIG_IsOK(res1)) {
21442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21443 }
21444 arg1 = reinterpret_cast< wxDC * >(argp1);
21445 ecode2 = SWIG_AsVal_int(obj1, &val2);
21446 if (!SWIG_IsOK(ecode2)) {
21447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21448 }
21449 arg2 = static_cast< int >(val2);
21450 {
21451 PyThreadState* __tstate = wxPyBeginAllowThreads();
21452 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21453 wxPyEndAllowThreads(__tstate);
21454 if (PyErr_Occurred()) SWIG_fail;
21455 }
21456 resultobj = SWIG_From_int(static_cast< int >(result));
21457 return resultobj;
21458 fail:
21459 return NULL;
21460 }
21461
21462
21463 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21464 PyObject *resultobj = 0;
21465 wxDC *arg1 = (wxDC *) 0 ;
21466 int arg2 ;
21467 int result;
21468 void *argp1 = 0 ;
21469 int res1 = 0 ;
21470 int val2 ;
21471 int ecode2 = 0 ;
21472 PyObject * obj0 = 0 ;
21473 PyObject * obj1 = 0 ;
21474 char * kwnames[] = {
21475 (char *) "self",(char *) "x", NULL
21476 };
21477
21478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21480 if (!SWIG_IsOK(res1)) {
21481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21482 }
21483 arg1 = reinterpret_cast< wxDC * >(argp1);
21484 ecode2 = SWIG_AsVal_int(obj1, &val2);
21485 if (!SWIG_IsOK(ecode2)) {
21486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21487 }
21488 arg2 = static_cast< int >(val2);
21489 {
21490 PyThreadState* __tstate = wxPyBeginAllowThreads();
21491 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21492 wxPyEndAllowThreads(__tstate);
21493 if (PyErr_Occurred()) SWIG_fail;
21494 }
21495 resultobj = SWIG_From_int(static_cast< int >(result));
21496 return resultobj;
21497 fail:
21498 return NULL;
21499 }
21500
21501
21502 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21503 PyObject *resultobj = 0;
21504 wxDC *arg1 = (wxDC *) 0 ;
21505 int arg2 ;
21506 int result;
21507 void *argp1 = 0 ;
21508 int res1 = 0 ;
21509 int val2 ;
21510 int ecode2 = 0 ;
21511 PyObject * obj0 = 0 ;
21512 PyObject * obj1 = 0 ;
21513 char * kwnames[] = {
21514 (char *) "self",(char *) "y", NULL
21515 };
21516
21517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21519 if (!SWIG_IsOK(res1)) {
21520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21521 }
21522 arg1 = reinterpret_cast< wxDC * >(argp1);
21523 ecode2 = SWIG_AsVal_int(obj1, &val2);
21524 if (!SWIG_IsOK(ecode2)) {
21525 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21526 }
21527 arg2 = static_cast< int >(val2);
21528 {
21529 PyThreadState* __tstate = wxPyBeginAllowThreads();
21530 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21531 wxPyEndAllowThreads(__tstate);
21532 if (PyErr_Occurred()) SWIG_fail;
21533 }
21534 resultobj = SWIG_From_int(static_cast< int >(result));
21535 return resultobj;
21536 fail:
21537 return NULL;
21538 }
21539
21540
21541 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21542 PyObject *resultobj = 0;
21543 wxDC *arg1 = (wxDC *) 0 ;
21544 int arg2 ;
21545 int result;
21546 void *argp1 = 0 ;
21547 int res1 = 0 ;
21548 int val2 ;
21549 int ecode2 = 0 ;
21550 PyObject * obj0 = 0 ;
21551 PyObject * obj1 = 0 ;
21552 char * kwnames[] = {
21553 (char *) "self",(char *) "x", NULL
21554 };
21555
21556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21558 if (!SWIG_IsOK(res1)) {
21559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21560 }
21561 arg1 = reinterpret_cast< wxDC * >(argp1);
21562 ecode2 = SWIG_AsVal_int(obj1, &val2);
21563 if (!SWIG_IsOK(ecode2)) {
21564 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21565 }
21566 arg2 = static_cast< int >(val2);
21567 {
21568 PyThreadState* __tstate = wxPyBeginAllowThreads();
21569 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21570 wxPyEndAllowThreads(__tstate);
21571 if (PyErr_Occurred()) SWIG_fail;
21572 }
21573 resultobj = SWIG_From_int(static_cast< int >(result));
21574 return resultobj;
21575 fail:
21576 return NULL;
21577 }
21578
21579
21580 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21581 PyObject *resultobj = 0;
21582 wxDC *arg1 = (wxDC *) 0 ;
21583 int arg2 ;
21584 int result;
21585 void *argp1 = 0 ;
21586 int res1 = 0 ;
21587 int val2 ;
21588 int ecode2 = 0 ;
21589 PyObject * obj0 = 0 ;
21590 PyObject * obj1 = 0 ;
21591 char * kwnames[] = {
21592 (char *) "self",(char *) "y", NULL
21593 };
21594
21595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21597 if (!SWIG_IsOK(res1)) {
21598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21599 }
21600 arg1 = reinterpret_cast< wxDC * >(argp1);
21601 ecode2 = SWIG_AsVal_int(obj1, &val2);
21602 if (!SWIG_IsOK(ecode2)) {
21603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21604 }
21605 arg2 = static_cast< int >(val2);
21606 {
21607 PyThreadState* __tstate = wxPyBeginAllowThreads();
21608 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21609 wxPyEndAllowThreads(__tstate);
21610 if (PyErr_Occurred()) SWIG_fail;
21611 }
21612 resultobj = SWIG_From_int(static_cast< int >(result));
21613 return resultobj;
21614 fail:
21615 return NULL;
21616 }
21617
21618
21619 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21620 PyObject *resultobj = 0;
21621 wxDC *arg1 = (wxDC *) 0 ;
21622 int arg2 ;
21623 int result;
21624 void *argp1 = 0 ;
21625 int res1 = 0 ;
21626 int val2 ;
21627 int ecode2 = 0 ;
21628 PyObject * obj0 = 0 ;
21629 PyObject * obj1 = 0 ;
21630 char * kwnames[] = {
21631 (char *) "self",(char *) "x", NULL
21632 };
21633
21634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21636 if (!SWIG_IsOK(res1)) {
21637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21638 }
21639 arg1 = reinterpret_cast< wxDC * >(argp1);
21640 ecode2 = SWIG_AsVal_int(obj1, &val2);
21641 if (!SWIG_IsOK(ecode2)) {
21642 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21643 }
21644 arg2 = static_cast< int >(val2);
21645 {
21646 PyThreadState* __tstate = wxPyBeginAllowThreads();
21647 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21648 wxPyEndAllowThreads(__tstate);
21649 if (PyErr_Occurred()) SWIG_fail;
21650 }
21651 resultobj = SWIG_From_int(static_cast< int >(result));
21652 return resultobj;
21653 fail:
21654 return NULL;
21655 }
21656
21657
21658 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21659 PyObject *resultobj = 0;
21660 wxDC *arg1 = (wxDC *) 0 ;
21661 int arg2 ;
21662 int result;
21663 void *argp1 = 0 ;
21664 int res1 = 0 ;
21665 int val2 ;
21666 int ecode2 = 0 ;
21667 PyObject * obj0 = 0 ;
21668 PyObject * obj1 = 0 ;
21669 char * kwnames[] = {
21670 (char *) "self",(char *) "y", NULL
21671 };
21672
21673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21675 if (!SWIG_IsOK(res1)) {
21676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21677 }
21678 arg1 = reinterpret_cast< wxDC * >(argp1);
21679 ecode2 = SWIG_AsVal_int(obj1, &val2);
21680 if (!SWIG_IsOK(ecode2)) {
21681 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21682 }
21683 arg2 = static_cast< int >(val2);
21684 {
21685 PyThreadState* __tstate = wxPyBeginAllowThreads();
21686 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21687 wxPyEndAllowThreads(__tstate);
21688 if (PyErr_Occurred()) SWIG_fail;
21689 }
21690 resultobj = SWIG_From_int(static_cast< int >(result));
21691 return resultobj;
21692 fail:
21693 return NULL;
21694 }
21695
21696
21697 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21698 PyObject *resultobj = 0;
21699 wxDC *arg1 = (wxDC *) 0 ;
21700 bool result;
21701 void *argp1 = 0 ;
21702 int res1 = 0 ;
21703 PyObject *swig_obj[1] ;
21704
21705 if (!args) SWIG_fail;
21706 swig_obj[0] = args;
21707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21708 if (!SWIG_IsOK(res1)) {
21709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21710 }
21711 arg1 = reinterpret_cast< wxDC * >(argp1);
21712 {
21713 PyThreadState* __tstate = wxPyBeginAllowThreads();
21714 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21715 wxPyEndAllowThreads(__tstate);
21716 if (PyErr_Occurred()) SWIG_fail;
21717 }
21718 {
21719 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21720 }
21721 return resultobj;
21722 fail:
21723 return NULL;
21724 }
21725
21726
21727 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21728 PyObject *resultobj = 0;
21729 wxDC *arg1 = (wxDC *) 0 ;
21730 bool result;
21731 void *argp1 = 0 ;
21732 int res1 = 0 ;
21733 PyObject *swig_obj[1] ;
21734
21735 if (!args) SWIG_fail;
21736 swig_obj[0] = args;
21737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21738 if (!SWIG_IsOK(res1)) {
21739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21740 }
21741 arg1 = reinterpret_cast< wxDC * >(argp1);
21742 {
21743 PyThreadState* __tstate = wxPyBeginAllowThreads();
21744 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21745 wxPyEndAllowThreads(__tstate);
21746 if (PyErr_Occurred()) SWIG_fail;
21747 }
21748 {
21749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21750 }
21751 return resultobj;
21752 fail:
21753 return NULL;
21754 }
21755
21756
21757 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21758 PyObject *resultobj = 0;
21759 wxDC *arg1 = (wxDC *) 0 ;
21760 int result;
21761 void *argp1 = 0 ;
21762 int res1 = 0 ;
21763 PyObject *swig_obj[1] ;
21764
21765 if (!args) SWIG_fail;
21766 swig_obj[0] = args;
21767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21768 if (!SWIG_IsOK(res1)) {
21769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21770 }
21771 arg1 = reinterpret_cast< wxDC * >(argp1);
21772 {
21773 PyThreadState* __tstate = wxPyBeginAllowThreads();
21774 result = (int)((wxDC const *)arg1)->GetDepth();
21775 wxPyEndAllowThreads(__tstate);
21776 if (PyErr_Occurred()) SWIG_fail;
21777 }
21778 resultobj = SWIG_From_int(static_cast< int >(result));
21779 return resultobj;
21780 fail:
21781 return NULL;
21782 }
21783
21784
21785 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21786 PyObject *resultobj = 0;
21787 wxDC *arg1 = (wxDC *) 0 ;
21788 wxSize result;
21789 void *argp1 = 0 ;
21790 int res1 = 0 ;
21791 PyObject *swig_obj[1] ;
21792
21793 if (!args) SWIG_fail;
21794 swig_obj[0] = args;
21795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21796 if (!SWIG_IsOK(res1)) {
21797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21798 }
21799 arg1 = reinterpret_cast< wxDC * >(argp1);
21800 {
21801 PyThreadState* __tstate = wxPyBeginAllowThreads();
21802 result = ((wxDC const *)arg1)->GetPPI();
21803 wxPyEndAllowThreads(__tstate);
21804 if (PyErr_Occurred()) SWIG_fail;
21805 }
21806 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21807 return resultobj;
21808 fail:
21809 return NULL;
21810 }
21811
21812
21813 SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21814 PyObject *resultobj = 0;
21815 wxDC *arg1 = (wxDC *) 0 ;
21816 bool result;
21817 void *argp1 = 0 ;
21818 int res1 = 0 ;
21819 PyObject *swig_obj[1] ;
21820
21821 if (!args) SWIG_fail;
21822 swig_obj[0] = args;
21823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21824 if (!SWIG_IsOK(res1)) {
21825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
21826 }
21827 arg1 = reinterpret_cast< wxDC * >(argp1);
21828 {
21829 PyThreadState* __tstate = wxPyBeginAllowThreads();
21830 result = (bool)((wxDC const *)arg1)->IsOk();
21831 wxPyEndAllowThreads(__tstate);
21832 if (PyErr_Occurred()) SWIG_fail;
21833 }
21834 {
21835 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21836 }
21837 return resultobj;
21838 fail:
21839 return NULL;
21840 }
21841
21842
21843 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21844 PyObject *resultobj = 0;
21845 wxDC *arg1 = (wxDC *) 0 ;
21846 int result;
21847 void *argp1 = 0 ;
21848 int res1 = 0 ;
21849 PyObject *swig_obj[1] ;
21850
21851 if (!args) SWIG_fail;
21852 swig_obj[0] = args;
21853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21854 if (!SWIG_IsOK(res1)) {
21855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21856 }
21857 arg1 = reinterpret_cast< wxDC * >(argp1);
21858 {
21859 PyThreadState* __tstate = wxPyBeginAllowThreads();
21860 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21861 wxPyEndAllowThreads(__tstate);
21862 if (PyErr_Occurred()) SWIG_fail;
21863 }
21864 resultobj = SWIG_From_int(static_cast< int >(result));
21865 return resultobj;
21866 fail:
21867 return NULL;
21868 }
21869
21870
21871 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21872 PyObject *resultobj = 0;
21873 wxDC *arg1 = (wxDC *) 0 ;
21874 wxBrush *result = 0 ;
21875 void *argp1 = 0 ;
21876 int res1 = 0 ;
21877 PyObject *swig_obj[1] ;
21878
21879 if (!args) SWIG_fail;
21880 swig_obj[0] = args;
21881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21882 if (!SWIG_IsOK(res1)) {
21883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21884 }
21885 arg1 = reinterpret_cast< wxDC * >(argp1);
21886 {
21887 PyThreadState* __tstate = wxPyBeginAllowThreads();
21888 {
21889 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21890 result = (wxBrush *) &_result_ref;
21891 }
21892 wxPyEndAllowThreads(__tstate);
21893 if (PyErr_Occurred()) SWIG_fail;
21894 }
21895 {
21896 wxBrush* resultptr = new wxBrush(*result);
21897 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21898 }
21899 return resultobj;
21900 fail:
21901 return NULL;
21902 }
21903
21904
21905 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21906 PyObject *resultobj = 0;
21907 wxDC *arg1 = (wxDC *) 0 ;
21908 wxBrush *result = 0 ;
21909 void *argp1 = 0 ;
21910 int res1 = 0 ;
21911 PyObject *swig_obj[1] ;
21912
21913 if (!args) SWIG_fail;
21914 swig_obj[0] = args;
21915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21916 if (!SWIG_IsOK(res1)) {
21917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21918 }
21919 arg1 = reinterpret_cast< wxDC * >(argp1);
21920 {
21921 PyThreadState* __tstate = wxPyBeginAllowThreads();
21922 {
21923 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21924 result = (wxBrush *) &_result_ref;
21925 }
21926 wxPyEndAllowThreads(__tstate);
21927 if (PyErr_Occurred()) SWIG_fail;
21928 }
21929 {
21930 wxBrush* resultptr = new wxBrush(*result);
21931 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21932 }
21933 return resultobj;
21934 fail:
21935 return NULL;
21936 }
21937
21938
21939 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21940 PyObject *resultobj = 0;
21941 wxDC *arg1 = (wxDC *) 0 ;
21942 wxFont *result = 0 ;
21943 void *argp1 = 0 ;
21944 int res1 = 0 ;
21945 PyObject *swig_obj[1] ;
21946
21947 if (!args) SWIG_fail;
21948 swig_obj[0] = args;
21949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21950 if (!SWIG_IsOK(res1)) {
21951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21952 }
21953 arg1 = reinterpret_cast< wxDC * >(argp1);
21954 {
21955 PyThreadState* __tstate = wxPyBeginAllowThreads();
21956 {
21957 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21958 result = (wxFont *) &_result_ref;
21959 }
21960 wxPyEndAllowThreads(__tstate);
21961 if (PyErr_Occurred()) SWIG_fail;
21962 }
21963 {
21964 wxFont* resultptr = new wxFont(*result);
21965 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21966 }
21967 return resultobj;
21968 fail:
21969 return NULL;
21970 }
21971
21972
21973 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21974 PyObject *resultobj = 0;
21975 wxDC *arg1 = (wxDC *) 0 ;
21976 wxPen *result = 0 ;
21977 void *argp1 = 0 ;
21978 int res1 = 0 ;
21979 PyObject *swig_obj[1] ;
21980
21981 if (!args) SWIG_fail;
21982 swig_obj[0] = args;
21983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21984 if (!SWIG_IsOK(res1)) {
21985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
21986 }
21987 arg1 = reinterpret_cast< wxDC * >(argp1);
21988 {
21989 PyThreadState* __tstate = wxPyBeginAllowThreads();
21990 {
21991 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
21992 result = (wxPen *) &_result_ref;
21993 }
21994 wxPyEndAllowThreads(__tstate);
21995 if (PyErr_Occurred()) SWIG_fail;
21996 }
21997 {
21998 wxPen* resultptr = new wxPen(*result);
21999 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22000 }
22001 return resultobj;
22002 fail:
22003 return NULL;
22004 }
22005
22006
22007 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22008 PyObject *resultobj = 0;
22009 wxDC *arg1 = (wxDC *) 0 ;
22010 wxColour *result = 0 ;
22011 void *argp1 = 0 ;
22012 int res1 = 0 ;
22013 PyObject *swig_obj[1] ;
22014
22015 if (!args) SWIG_fail;
22016 swig_obj[0] = args;
22017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22018 if (!SWIG_IsOK(res1)) {
22019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22020 }
22021 arg1 = reinterpret_cast< wxDC * >(argp1);
22022 {
22023 PyThreadState* __tstate = wxPyBeginAllowThreads();
22024 {
22025 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22026 result = (wxColour *) &_result_ref;
22027 }
22028 wxPyEndAllowThreads(__tstate);
22029 if (PyErr_Occurred()) SWIG_fail;
22030 }
22031 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22032 return resultobj;
22033 fail:
22034 return NULL;
22035 }
22036
22037
22038 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22039 PyObject *resultobj = 0;
22040 wxDC *arg1 = (wxDC *) 0 ;
22041 wxColour *result = 0 ;
22042 void *argp1 = 0 ;
22043 int res1 = 0 ;
22044 PyObject *swig_obj[1] ;
22045
22046 if (!args) SWIG_fail;
22047 swig_obj[0] = args;
22048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22049 if (!SWIG_IsOK(res1)) {
22050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22051 }
22052 arg1 = reinterpret_cast< wxDC * >(argp1);
22053 {
22054 PyThreadState* __tstate = wxPyBeginAllowThreads();
22055 {
22056 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22057 result = (wxColour *) &_result_ref;
22058 }
22059 wxPyEndAllowThreads(__tstate);
22060 if (PyErr_Occurred()) SWIG_fail;
22061 }
22062 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22063 return resultobj;
22064 fail:
22065 return NULL;
22066 }
22067
22068
22069 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22070 PyObject *resultobj = 0;
22071 wxDC *arg1 = (wxDC *) 0 ;
22072 wxColour *arg2 = 0 ;
22073 void *argp1 = 0 ;
22074 int res1 = 0 ;
22075 wxColour temp2 ;
22076 PyObject * obj0 = 0 ;
22077 PyObject * obj1 = 0 ;
22078 char * kwnames[] = {
22079 (char *) "self",(char *) "colour", NULL
22080 };
22081
22082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22084 if (!SWIG_IsOK(res1)) {
22085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22086 }
22087 arg1 = reinterpret_cast< wxDC * >(argp1);
22088 {
22089 arg2 = &temp2;
22090 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22091 }
22092 {
22093 PyThreadState* __tstate = wxPyBeginAllowThreads();
22094 (arg1)->SetTextForeground((wxColour const &)*arg2);
22095 wxPyEndAllowThreads(__tstate);
22096 if (PyErr_Occurred()) SWIG_fail;
22097 }
22098 resultobj = SWIG_Py_Void();
22099 return resultobj;
22100 fail:
22101 return NULL;
22102 }
22103
22104
22105 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22106 PyObject *resultobj = 0;
22107 wxDC *arg1 = (wxDC *) 0 ;
22108 wxColour *arg2 = 0 ;
22109 void *argp1 = 0 ;
22110 int res1 = 0 ;
22111 wxColour temp2 ;
22112 PyObject * obj0 = 0 ;
22113 PyObject * obj1 = 0 ;
22114 char * kwnames[] = {
22115 (char *) "self",(char *) "colour", NULL
22116 };
22117
22118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22120 if (!SWIG_IsOK(res1)) {
22121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22122 }
22123 arg1 = reinterpret_cast< wxDC * >(argp1);
22124 {
22125 arg2 = &temp2;
22126 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22127 }
22128 {
22129 PyThreadState* __tstate = wxPyBeginAllowThreads();
22130 (arg1)->SetTextBackground((wxColour const &)*arg2);
22131 wxPyEndAllowThreads(__tstate);
22132 if (PyErr_Occurred()) SWIG_fail;
22133 }
22134 resultobj = SWIG_Py_Void();
22135 return resultobj;
22136 fail:
22137 return NULL;
22138 }
22139
22140
22141 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22142 PyObject *resultobj = 0;
22143 wxDC *arg1 = (wxDC *) 0 ;
22144 int result;
22145 void *argp1 = 0 ;
22146 int res1 = 0 ;
22147 PyObject *swig_obj[1] ;
22148
22149 if (!args) SWIG_fail;
22150 swig_obj[0] = args;
22151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22152 if (!SWIG_IsOK(res1)) {
22153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22154 }
22155 arg1 = reinterpret_cast< wxDC * >(argp1);
22156 {
22157 PyThreadState* __tstate = wxPyBeginAllowThreads();
22158 result = (int)((wxDC const *)arg1)->GetMapMode();
22159 wxPyEndAllowThreads(__tstate);
22160 if (PyErr_Occurred()) SWIG_fail;
22161 }
22162 resultobj = SWIG_From_int(static_cast< int >(result));
22163 return resultobj;
22164 fail:
22165 return NULL;
22166 }
22167
22168
22169 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22170 PyObject *resultobj = 0;
22171 wxDC *arg1 = (wxDC *) 0 ;
22172 int arg2 ;
22173 void *argp1 = 0 ;
22174 int res1 = 0 ;
22175 int val2 ;
22176 int ecode2 = 0 ;
22177 PyObject * obj0 = 0 ;
22178 PyObject * obj1 = 0 ;
22179 char * kwnames[] = {
22180 (char *) "self",(char *) "mode", NULL
22181 };
22182
22183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22185 if (!SWIG_IsOK(res1)) {
22186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22187 }
22188 arg1 = reinterpret_cast< wxDC * >(argp1);
22189 ecode2 = SWIG_AsVal_int(obj1, &val2);
22190 if (!SWIG_IsOK(ecode2)) {
22191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22192 }
22193 arg2 = static_cast< int >(val2);
22194 {
22195 PyThreadState* __tstate = wxPyBeginAllowThreads();
22196 (arg1)->SetMapMode(arg2);
22197 wxPyEndAllowThreads(__tstate);
22198 if (PyErr_Occurred()) SWIG_fail;
22199 }
22200 resultobj = SWIG_Py_Void();
22201 return resultobj;
22202 fail:
22203 return NULL;
22204 }
22205
22206
22207 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22208 PyObject *resultobj = 0;
22209 wxDC *arg1 = (wxDC *) 0 ;
22210 double *arg2 = (double *) 0 ;
22211 double *arg3 = (double *) 0 ;
22212 void *argp1 = 0 ;
22213 int res1 = 0 ;
22214 double temp2 ;
22215 int res2 = SWIG_TMPOBJ ;
22216 double temp3 ;
22217 int res3 = SWIG_TMPOBJ ;
22218 PyObject *swig_obj[1] ;
22219
22220 arg2 = &temp2;
22221 arg3 = &temp3;
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_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22227 }
22228 arg1 = reinterpret_cast< wxDC * >(argp1);
22229 {
22230 PyThreadState* __tstate = wxPyBeginAllowThreads();
22231 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22232 wxPyEndAllowThreads(__tstate);
22233 if (PyErr_Occurred()) SWIG_fail;
22234 }
22235 resultobj = SWIG_Py_Void();
22236 if (SWIG_IsTmpObj(res2)) {
22237 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22238 } else {
22239 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22240 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22241 }
22242 if (SWIG_IsTmpObj(res3)) {
22243 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22244 } else {
22245 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22246 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22247 }
22248 return resultobj;
22249 fail:
22250 return NULL;
22251 }
22252
22253
22254 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22255 PyObject *resultobj = 0;
22256 wxDC *arg1 = (wxDC *) 0 ;
22257 double arg2 ;
22258 double arg3 ;
22259 void *argp1 = 0 ;
22260 int res1 = 0 ;
22261 double val2 ;
22262 int ecode2 = 0 ;
22263 double val3 ;
22264 int ecode3 = 0 ;
22265 PyObject * obj0 = 0 ;
22266 PyObject * obj1 = 0 ;
22267 PyObject * obj2 = 0 ;
22268 char * kwnames[] = {
22269 (char *) "self",(char *) "x",(char *) "y", NULL
22270 };
22271
22272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22274 if (!SWIG_IsOK(res1)) {
22275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22276 }
22277 arg1 = reinterpret_cast< wxDC * >(argp1);
22278 ecode2 = SWIG_AsVal_double(obj1, &val2);
22279 if (!SWIG_IsOK(ecode2)) {
22280 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22281 }
22282 arg2 = static_cast< double >(val2);
22283 ecode3 = SWIG_AsVal_double(obj2, &val3);
22284 if (!SWIG_IsOK(ecode3)) {
22285 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22286 }
22287 arg3 = static_cast< double >(val3);
22288 {
22289 PyThreadState* __tstate = wxPyBeginAllowThreads();
22290 (arg1)->SetUserScale(arg2,arg3);
22291 wxPyEndAllowThreads(__tstate);
22292 if (PyErr_Occurred()) SWIG_fail;
22293 }
22294 resultobj = SWIG_Py_Void();
22295 return resultobj;
22296 fail:
22297 return NULL;
22298 }
22299
22300
22301 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22302 PyObject *resultobj = 0;
22303 wxDC *arg1 = (wxDC *) 0 ;
22304 double *arg2 = (double *) 0 ;
22305 double *arg3 = (double *) 0 ;
22306 void *argp1 = 0 ;
22307 int res1 = 0 ;
22308 double temp2 ;
22309 int res2 = SWIG_TMPOBJ ;
22310 double temp3 ;
22311 int res3 = SWIG_TMPOBJ ;
22312 PyObject *swig_obj[1] ;
22313
22314 arg2 = &temp2;
22315 arg3 = &temp3;
22316 if (!args) SWIG_fail;
22317 swig_obj[0] = args;
22318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22319 if (!SWIG_IsOK(res1)) {
22320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22321 }
22322 arg1 = reinterpret_cast< wxDC * >(argp1);
22323 {
22324 PyThreadState* __tstate = wxPyBeginAllowThreads();
22325 (arg1)->GetLogicalScale(arg2,arg3);
22326 wxPyEndAllowThreads(__tstate);
22327 if (PyErr_Occurred()) SWIG_fail;
22328 }
22329 resultobj = SWIG_Py_Void();
22330 if (SWIG_IsTmpObj(res2)) {
22331 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22332 } else {
22333 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22334 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22335 }
22336 if (SWIG_IsTmpObj(res3)) {
22337 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22338 } else {
22339 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22340 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22341 }
22342 return resultobj;
22343 fail:
22344 return NULL;
22345 }
22346
22347
22348 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22349 PyObject *resultobj = 0;
22350 wxDC *arg1 = (wxDC *) 0 ;
22351 double arg2 ;
22352 double arg3 ;
22353 void *argp1 = 0 ;
22354 int res1 = 0 ;
22355 double val2 ;
22356 int ecode2 = 0 ;
22357 double val3 ;
22358 int ecode3 = 0 ;
22359 PyObject * obj0 = 0 ;
22360 PyObject * obj1 = 0 ;
22361 PyObject * obj2 = 0 ;
22362 char * kwnames[] = {
22363 (char *) "self",(char *) "x",(char *) "y", NULL
22364 };
22365
22366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22368 if (!SWIG_IsOK(res1)) {
22369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22370 }
22371 arg1 = reinterpret_cast< wxDC * >(argp1);
22372 ecode2 = SWIG_AsVal_double(obj1, &val2);
22373 if (!SWIG_IsOK(ecode2)) {
22374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22375 }
22376 arg2 = static_cast< double >(val2);
22377 ecode3 = SWIG_AsVal_double(obj2, &val3);
22378 if (!SWIG_IsOK(ecode3)) {
22379 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22380 }
22381 arg3 = static_cast< double >(val3);
22382 {
22383 PyThreadState* __tstate = wxPyBeginAllowThreads();
22384 (arg1)->SetLogicalScale(arg2,arg3);
22385 wxPyEndAllowThreads(__tstate);
22386 if (PyErr_Occurred()) SWIG_fail;
22387 }
22388 resultobj = SWIG_Py_Void();
22389 return resultobj;
22390 fail:
22391 return NULL;
22392 }
22393
22394
22395 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22396 PyObject *resultobj = 0;
22397 wxDC *arg1 = (wxDC *) 0 ;
22398 wxPoint result;
22399 void *argp1 = 0 ;
22400 int res1 = 0 ;
22401 PyObject *swig_obj[1] ;
22402
22403 if (!args) SWIG_fail;
22404 swig_obj[0] = args;
22405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22406 if (!SWIG_IsOK(res1)) {
22407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22408 }
22409 arg1 = reinterpret_cast< wxDC * >(argp1);
22410 {
22411 PyThreadState* __tstate = wxPyBeginAllowThreads();
22412 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22413 wxPyEndAllowThreads(__tstate);
22414 if (PyErr_Occurred()) SWIG_fail;
22415 }
22416 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22417 return resultobj;
22418 fail:
22419 return NULL;
22420 }
22421
22422
22423 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22424 PyObject *resultobj = 0;
22425 wxDC *arg1 = (wxDC *) 0 ;
22426 int *arg2 = (int *) 0 ;
22427 int *arg3 = (int *) 0 ;
22428 void *argp1 = 0 ;
22429 int res1 = 0 ;
22430 int temp2 ;
22431 int res2 = SWIG_TMPOBJ ;
22432 int temp3 ;
22433 int res3 = SWIG_TMPOBJ ;
22434 PyObject *swig_obj[1] ;
22435
22436 arg2 = &temp2;
22437 arg3 = &temp3;
22438 if (!args) SWIG_fail;
22439 swig_obj[0] = args;
22440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22441 if (!SWIG_IsOK(res1)) {
22442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22443 }
22444 arg1 = reinterpret_cast< wxDC * >(argp1);
22445 {
22446 PyThreadState* __tstate = wxPyBeginAllowThreads();
22447 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22448 wxPyEndAllowThreads(__tstate);
22449 if (PyErr_Occurred()) SWIG_fail;
22450 }
22451 resultobj = SWIG_Py_Void();
22452 if (SWIG_IsTmpObj(res2)) {
22453 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22454 } else {
22455 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22456 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22457 }
22458 if (SWIG_IsTmpObj(res3)) {
22459 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22460 } else {
22461 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22462 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22463 }
22464 return resultobj;
22465 fail:
22466 return NULL;
22467 }
22468
22469
22470 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22471 PyObject *resultobj = 0;
22472 wxDC *arg1 = (wxDC *) 0 ;
22473 int arg2 ;
22474 int arg3 ;
22475 void *argp1 = 0 ;
22476 int res1 = 0 ;
22477 int val2 ;
22478 int ecode2 = 0 ;
22479 int val3 ;
22480 int ecode3 = 0 ;
22481 PyObject * obj0 = 0 ;
22482 PyObject * obj1 = 0 ;
22483 PyObject * obj2 = 0 ;
22484 char * kwnames[] = {
22485 (char *) "self",(char *) "x",(char *) "y", NULL
22486 };
22487
22488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22490 if (!SWIG_IsOK(res1)) {
22491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22492 }
22493 arg1 = reinterpret_cast< wxDC * >(argp1);
22494 ecode2 = SWIG_AsVal_int(obj1, &val2);
22495 if (!SWIG_IsOK(ecode2)) {
22496 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22497 }
22498 arg2 = static_cast< int >(val2);
22499 ecode3 = SWIG_AsVal_int(obj2, &val3);
22500 if (!SWIG_IsOK(ecode3)) {
22501 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22502 }
22503 arg3 = static_cast< int >(val3);
22504 {
22505 PyThreadState* __tstate = wxPyBeginAllowThreads();
22506 (arg1)->SetLogicalOrigin(arg2,arg3);
22507 wxPyEndAllowThreads(__tstate);
22508 if (PyErr_Occurred()) SWIG_fail;
22509 }
22510 resultobj = SWIG_Py_Void();
22511 return resultobj;
22512 fail:
22513 return NULL;
22514 }
22515
22516
22517 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22518 PyObject *resultobj = 0;
22519 wxDC *arg1 = (wxDC *) 0 ;
22520 wxPoint *arg2 = 0 ;
22521 void *argp1 = 0 ;
22522 int res1 = 0 ;
22523 wxPoint temp2 ;
22524 PyObject * obj0 = 0 ;
22525 PyObject * obj1 = 0 ;
22526 char * kwnames[] = {
22527 (char *) "self",(char *) "point", NULL
22528 };
22529
22530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22532 if (!SWIG_IsOK(res1)) {
22533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22534 }
22535 arg1 = reinterpret_cast< wxDC * >(argp1);
22536 {
22537 arg2 = &temp2;
22538 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22539 }
22540 {
22541 PyThreadState* __tstate = wxPyBeginAllowThreads();
22542 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22543 wxPyEndAllowThreads(__tstate);
22544 if (PyErr_Occurred()) SWIG_fail;
22545 }
22546 resultobj = SWIG_Py_Void();
22547 return resultobj;
22548 fail:
22549 return NULL;
22550 }
22551
22552
22553 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22554 PyObject *resultobj = 0;
22555 wxDC *arg1 = (wxDC *) 0 ;
22556 wxPoint result;
22557 void *argp1 = 0 ;
22558 int res1 = 0 ;
22559 PyObject *swig_obj[1] ;
22560
22561 if (!args) SWIG_fail;
22562 swig_obj[0] = args;
22563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22564 if (!SWIG_IsOK(res1)) {
22565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22566 }
22567 arg1 = reinterpret_cast< wxDC * >(argp1);
22568 {
22569 PyThreadState* __tstate = wxPyBeginAllowThreads();
22570 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22571 wxPyEndAllowThreads(__tstate);
22572 if (PyErr_Occurred()) SWIG_fail;
22573 }
22574 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22575 return resultobj;
22576 fail:
22577 return NULL;
22578 }
22579
22580
22581 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22582 PyObject *resultobj = 0;
22583 wxDC *arg1 = (wxDC *) 0 ;
22584 int *arg2 = (int *) 0 ;
22585 int *arg3 = (int *) 0 ;
22586 void *argp1 = 0 ;
22587 int res1 = 0 ;
22588 int temp2 ;
22589 int res2 = SWIG_TMPOBJ ;
22590 int temp3 ;
22591 int res3 = SWIG_TMPOBJ ;
22592 PyObject *swig_obj[1] ;
22593
22594 arg2 = &temp2;
22595 arg3 = &temp3;
22596 if (!args) SWIG_fail;
22597 swig_obj[0] = args;
22598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22599 if (!SWIG_IsOK(res1)) {
22600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22601 }
22602 arg1 = reinterpret_cast< wxDC * >(argp1);
22603 {
22604 PyThreadState* __tstate = wxPyBeginAllowThreads();
22605 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22606 wxPyEndAllowThreads(__tstate);
22607 if (PyErr_Occurred()) SWIG_fail;
22608 }
22609 resultobj = SWIG_Py_Void();
22610 if (SWIG_IsTmpObj(res2)) {
22611 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22612 } else {
22613 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22614 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22615 }
22616 if (SWIG_IsTmpObj(res3)) {
22617 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22618 } else {
22619 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22620 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22621 }
22622 return resultobj;
22623 fail:
22624 return NULL;
22625 }
22626
22627
22628 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22629 PyObject *resultobj = 0;
22630 wxDC *arg1 = (wxDC *) 0 ;
22631 int arg2 ;
22632 int arg3 ;
22633 void *argp1 = 0 ;
22634 int res1 = 0 ;
22635 int val2 ;
22636 int ecode2 = 0 ;
22637 int val3 ;
22638 int ecode3 = 0 ;
22639 PyObject * obj0 = 0 ;
22640 PyObject * obj1 = 0 ;
22641 PyObject * obj2 = 0 ;
22642 char * kwnames[] = {
22643 (char *) "self",(char *) "x",(char *) "y", NULL
22644 };
22645
22646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22648 if (!SWIG_IsOK(res1)) {
22649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22650 }
22651 arg1 = reinterpret_cast< wxDC * >(argp1);
22652 ecode2 = SWIG_AsVal_int(obj1, &val2);
22653 if (!SWIG_IsOK(ecode2)) {
22654 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22655 }
22656 arg2 = static_cast< int >(val2);
22657 ecode3 = SWIG_AsVal_int(obj2, &val3);
22658 if (!SWIG_IsOK(ecode3)) {
22659 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22660 }
22661 arg3 = static_cast< int >(val3);
22662 {
22663 PyThreadState* __tstate = wxPyBeginAllowThreads();
22664 (arg1)->SetDeviceOrigin(arg2,arg3);
22665 wxPyEndAllowThreads(__tstate);
22666 if (PyErr_Occurred()) SWIG_fail;
22667 }
22668 resultobj = SWIG_Py_Void();
22669 return resultobj;
22670 fail:
22671 return NULL;
22672 }
22673
22674
22675 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22676 PyObject *resultobj = 0;
22677 wxDC *arg1 = (wxDC *) 0 ;
22678 wxPoint *arg2 = 0 ;
22679 void *argp1 = 0 ;
22680 int res1 = 0 ;
22681 wxPoint temp2 ;
22682 PyObject * obj0 = 0 ;
22683 PyObject * obj1 = 0 ;
22684 char * kwnames[] = {
22685 (char *) "self",(char *) "point", NULL
22686 };
22687
22688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22690 if (!SWIG_IsOK(res1)) {
22691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22692 }
22693 arg1 = reinterpret_cast< wxDC * >(argp1);
22694 {
22695 arg2 = &temp2;
22696 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22697 }
22698 {
22699 PyThreadState* __tstate = wxPyBeginAllowThreads();
22700 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22701 wxPyEndAllowThreads(__tstate);
22702 if (PyErr_Occurred()) SWIG_fail;
22703 }
22704 resultobj = SWIG_Py_Void();
22705 return resultobj;
22706 fail:
22707 return NULL;
22708 }
22709
22710
22711 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22712 PyObject *resultobj = 0;
22713 wxDC *arg1 = (wxDC *) 0 ;
22714 bool arg2 ;
22715 bool arg3 ;
22716 void *argp1 = 0 ;
22717 int res1 = 0 ;
22718 bool val2 ;
22719 int ecode2 = 0 ;
22720 bool val3 ;
22721 int ecode3 = 0 ;
22722 PyObject * obj0 = 0 ;
22723 PyObject * obj1 = 0 ;
22724 PyObject * obj2 = 0 ;
22725 char * kwnames[] = {
22726 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22727 };
22728
22729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22731 if (!SWIG_IsOK(res1)) {
22732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22733 }
22734 arg1 = reinterpret_cast< wxDC * >(argp1);
22735 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22736 if (!SWIG_IsOK(ecode2)) {
22737 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22738 }
22739 arg2 = static_cast< bool >(val2);
22740 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22741 if (!SWIG_IsOK(ecode3)) {
22742 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22743 }
22744 arg3 = static_cast< bool >(val3);
22745 {
22746 PyThreadState* __tstate = wxPyBeginAllowThreads();
22747 (arg1)->SetAxisOrientation(arg2,arg3);
22748 wxPyEndAllowThreads(__tstate);
22749 if (PyErr_Occurred()) SWIG_fail;
22750 }
22751 resultobj = SWIG_Py_Void();
22752 return resultobj;
22753 fail:
22754 return NULL;
22755 }
22756
22757
22758 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22759 PyObject *resultobj = 0;
22760 wxDC *arg1 = (wxDC *) 0 ;
22761 int result;
22762 void *argp1 = 0 ;
22763 int res1 = 0 ;
22764 PyObject *swig_obj[1] ;
22765
22766 if (!args) SWIG_fail;
22767 swig_obj[0] = args;
22768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22769 if (!SWIG_IsOK(res1)) {
22770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22771 }
22772 arg1 = reinterpret_cast< wxDC * >(argp1);
22773 {
22774 PyThreadState* __tstate = wxPyBeginAllowThreads();
22775 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22776 wxPyEndAllowThreads(__tstate);
22777 if (PyErr_Occurred()) SWIG_fail;
22778 }
22779 resultobj = SWIG_From_int(static_cast< int >(result));
22780 return resultobj;
22781 fail:
22782 return NULL;
22783 }
22784
22785
22786 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22787 PyObject *resultobj = 0;
22788 wxDC *arg1 = (wxDC *) 0 ;
22789 int arg2 ;
22790 void *argp1 = 0 ;
22791 int res1 = 0 ;
22792 int val2 ;
22793 int ecode2 = 0 ;
22794 PyObject * obj0 = 0 ;
22795 PyObject * obj1 = 0 ;
22796 char * kwnames[] = {
22797 (char *) "self",(char *) "function", NULL
22798 };
22799
22800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22802 if (!SWIG_IsOK(res1)) {
22803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22804 }
22805 arg1 = reinterpret_cast< wxDC * >(argp1);
22806 ecode2 = SWIG_AsVal_int(obj1, &val2);
22807 if (!SWIG_IsOK(ecode2)) {
22808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22809 }
22810 arg2 = static_cast< int >(val2);
22811 {
22812 PyThreadState* __tstate = wxPyBeginAllowThreads();
22813 (arg1)->SetLogicalFunction(arg2);
22814 wxPyEndAllowThreads(__tstate);
22815 if (PyErr_Occurred()) SWIG_fail;
22816 }
22817 resultobj = SWIG_Py_Void();
22818 return resultobj;
22819 fail:
22820 return NULL;
22821 }
22822
22823
22824 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22825 PyObject *resultobj = 0;
22826 wxDC *arg1 = (wxDC *) 0 ;
22827 void *argp1 = 0 ;
22828 int res1 = 0 ;
22829 PyObject *swig_obj[1] ;
22830
22831 if (!args) SWIG_fail;
22832 swig_obj[0] = args;
22833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22834 if (!SWIG_IsOK(res1)) {
22835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22836 }
22837 arg1 = reinterpret_cast< wxDC * >(argp1);
22838 {
22839 PyThreadState* __tstate = wxPyBeginAllowThreads();
22840 (arg1)->ComputeScaleAndOrigin();
22841 wxPyEndAllowThreads(__tstate);
22842 if (PyErr_Occurred()) SWIG_fail;
22843 }
22844 resultobj = SWIG_Py_Void();
22845 return resultobj;
22846 fail:
22847 return NULL;
22848 }
22849
22850
22851 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22852 PyObject *resultobj = 0;
22853 wxDC *arg1 = (wxDC *) 0 ;
22854 int arg2 ;
22855 int arg3 ;
22856 void *argp1 = 0 ;
22857 int res1 = 0 ;
22858 int val2 ;
22859 int ecode2 = 0 ;
22860 int val3 ;
22861 int ecode3 = 0 ;
22862 PyObject * obj0 = 0 ;
22863 PyObject * obj1 = 0 ;
22864 PyObject * obj2 = 0 ;
22865 char * kwnames[] = {
22866 (char *) "self",(char *) "x",(char *) "y", NULL
22867 };
22868
22869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22871 if (!SWIG_IsOK(res1)) {
22872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22873 }
22874 arg1 = reinterpret_cast< wxDC * >(argp1);
22875 ecode2 = SWIG_AsVal_int(obj1, &val2);
22876 if (!SWIG_IsOK(ecode2)) {
22877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22878 }
22879 arg2 = static_cast< int >(val2);
22880 ecode3 = SWIG_AsVal_int(obj2, &val3);
22881 if (!SWIG_IsOK(ecode3)) {
22882 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22883 }
22884 arg3 = static_cast< int >(val3);
22885 {
22886 PyThreadState* __tstate = wxPyBeginAllowThreads();
22887 (arg1)->CalcBoundingBox(arg2,arg3);
22888 wxPyEndAllowThreads(__tstate);
22889 if (PyErr_Occurred()) SWIG_fail;
22890 }
22891 resultobj = SWIG_Py_Void();
22892 return resultobj;
22893 fail:
22894 return NULL;
22895 }
22896
22897
22898 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22899 PyObject *resultobj = 0;
22900 wxDC *arg1 = (wxDC *) 0 ;
22901 wxPoint *arg2 = 0 ;
22902 void *argp1 = 0 ;
22903 int res1 = 0 ;
22904 wxPoint temp2 ;
22905 PyObject * obj0 = 0 ;
22906 PyObject * obj1 = 0 ;
22907 char * kwnames[] = {
22908 (char *) "self",(char *) "point", NULL
22909 };
22910
22911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22913 if (!SWIG_IsOK(res1)) {
22914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22915 }
22916 arg1 = reinterpret_cast< wxDC * >(argp1);
22917 {
22918 arg2 = &temp2;
22919 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22920 }
22921 {
22922 PyThreadState* __tstate = wxPyBeginAllowThreads();
22923 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22924 wxPyEndAllowThreads(__tstate);
22925 if (PyErr_Occurred()) SWIG_fail;
22926 }
22927 resultobj = SWIG_Py_Void();
22928 return resultobj;
22929 fail:
22930 return NULL;
22931 }
22932
22933
22934 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22935 PyObject *resultobj = 0;
22936 wxDC *arg1 = (wxDC *) 0 ;
22937 void *argp1 = 0 ;
22938 int res1 = 0 ;
22939 PyObject *swig_obj[1] ;
22940
22941 if (!args) SWIG_fail;
22942 swig_obj[0] = args;
22943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22944 if (!SWIG_IsOK(res1)) {
22945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22946 }
22947 arg1 = reinterpret_cast< wxDC * >(argp1);
22948 {
22949 PyThreadState* __tstate = wxPyBeginAllowThreads();
22950 (arg1)->ResetBoundingBox();
22951 wxPyEndAllowThreads(__tstate);
22952 if (PyErr_Occurred()) SWIG_fail;
22953 }
22954 resultobj = SWIG_Py_Void();
22955 return resultobj;
22956 fail:
22957 return NULL;
22958 }
22959
22960
22961 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22962 PyObject *resultobj = 0;
22963 wxDC *arg1 = (wxDC *) 0 ;
22964 int result;
22965 void *argp1 = 0 ;
22966 int res1 = 0 ;
22967 PyObject *swig_obj[1] ;
22968
22969 if (!args) SWIG_fail;
22970 swig_obj[0] = args;
22971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22972 if (!SWIG_IsOK(res1)) {
22973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
22974 }
22975 arg1 = reinterpret_cast< wxDC * >(argp1);
22976 {
22977 PyThreadState* __tstate = wxPyBeginAllowThreads();
22978 result = (int)((wxDC const *)arg1)->MinX();
22979 wxPyEndAllowThreads(__tstate);
22980 if (PyErr_Occurred()) SWIG_fail;
22981 }
22982 resultobj = SWIG_From_int(static_cast< int >(result));
22983 return resultobj;
22984 fail:
22985 return NULL;
22986 }
22987
22988
22989 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22990 PyObject *resultobj = 0;
22991 wxDC *arg1 = (wxDC *) 0 ;
22992 int result;
22993 void *argp1 = 0 ;
22994 int res1 = 0 ;
22995 PyObject *swig_obj[1] ;
22996
22997 if (!args) SWIG_fail;
22998 swig_obj[0] = args;
22999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23000 if (!SWIG_IsOK(res1)) {
23001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23002 }
23003 arg1 = reinterpret_cast< wxDC * >(argp1);
23004 {
23005 PyThreadState* __tstate = wxPyBeginAllowThreads();
23006 result = (int)((wxDC const *)arg1)->MaxX();
23007 wxPyEndAllowThreads(__tstate);
23008 if (PyErr_Occurred()) SWIG_fail;
23009 }
23010 resultobj = SWIG_From_int(static_cast< int >(result));
23011 return resultobj;
23012 fail:
23013 return NULL;
23014 }
23015
23016
23017 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23018 PyObject *resultobj = 0;
23019 wxDC *arg1 = (wxDC *) 0 ;
23020 int result;
23021 void *argp1 = 0 ;
23022 int res1 = 0 ;
23023 PyObject *swig_obj[1] ;
23024
23025 if (!args) SWIG_fail;
23026 swig_obj[0] = args;
23027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23028 if (!SWIG_IsOK(res1)) {
23029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23030 }
23031 arg1 = reinterpret_cast< wxDC * >(argp1);
23032 {
23033 PyThreadState* __tstate = wxPyBeginAllowThreads();
23034 result = (int)((wxDC const *)arg1)->MinY();
23035 wxPyEndAllowThreads(__tstate);
23036 if (PyErr_Occurred()) SWIG_fail;
23037 }
23038 resultobj = SWIG_From_int(static_cast< int >(result));
23039 return resultobj;
23040 fail:
23041 return NULL;
23042 }
23043
23044
23045 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23046 PyObject *resultobj = 0;
23047 wxDC *arg1 = (wxDC *) 0 ;
23048 int result;
23049 void *argp1 = 0 ;
23050 int res1 = 0 ;
23051 PyObject *swig_obj[1] ;
23052
23053 if (!args) SWIG_fail;
23054 swig_obj[0] = args;
23055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23056 if (!SWIG_IsOK(res1)) {
23057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23058 }
23059 arg1 = reinterpret_cast< wxDC * >(argp1);
23060 {
23061 PyThreadState* __tstate = wxPyBeginAllowThreads();
23062 result = (int)((wxDC const *)arg1)->MaxY();
23063 wxPyEndAllowThreads(__tstate);
23064 if (PyErr_Occurred()) SWIG_fail;
23065 }
23066 resultobj = SWIG_From_int(static_cast< int >(result));
23067 return resultobj;
23068 fail:
23069 return NULL;
23070 }
23071
23072
23073 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23074 PyObject *resultobj = 0;
23075 wxDC *arg1 = (wxDC *) 0 ;
23076 int *arg2 = (int *) 0 ;
23077 int *arg3 = (int *) 0 ;
23078 int *arg4 = (int *) 0 ;
23079 int *arg5 = (int *) 0 ;
23080 void *argp1 = 0 ;
23081 int res1 = 0 ;
23082 int temp2 ;
23083 int res2 = SWIG_TMPOBJ ;
23084 int temp3 ;
23085 int res3 = SWIG_TMPOBJ ;
23086 int temp4 ;
23087 int res4 = SWIG_TMPOBJ ;
23088 int temp5 ;
23089 int res5 = SWIG_TMPOBJ ;
23090 PyObject *swig_obj[1] ;
23091
23092 arg2 = &temp2;
23093 arg3 = &temp3;
23094 arg4 = &temp4;
23095 arg5 = &temp5;
23096 if (!args) SWIG_fail;
23097 swig_obj[0] = args;
23098 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23099 if (!SWIG_IsOK(res1)) {
23100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23101 }
23102 arg1 = reinterpret_cast< wxDC * >(argp1);
23103 {
23104 PyThreadState* __tstate = wxPyBeginAllowThreads();
23105 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23106 wxPyEndAllowThreads(__tstate);
23107 if (PyErr_Occurred()) SWIG_fail;
23108 }
23109 resultobj = SWIG_Py_Void();
23110 if (SWIG_IsTmpObj(res2)) {
23111 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23112 } else {
23113 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23114 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23115 }
23116 if (SWIG_IsTmpObj(res3)) {
23117 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23118 } else {
23119 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23120 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23121 }
23122 if (SWIG_IsTmpObj(res4)) {
23123 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23124 } else {
23125 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23126 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23127 }
23128 if (SWIG_IsTmpObj(res5)) {
23129 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23130 } else {
23131 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23132 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23133 }
23134 return resultobj;
23135 fail:
23136 return NULL;
23137 }
23138
23139
23140 SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23141 PyObject *resultobj = 0;
23142 wxDC *arg1 = (wxDC *) 0 ;
23143 wxLayoutDirection result;
23144 void *argp1 = 0 ;
23145 int res1 = 0 ;
23146 PyObject *swig_obj[1] ;
23147
23148 if (!args) SWIG_fail;
23149 swig_obj[0] = args;
23150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23151 if (!SWIG_IsOK(res1)) {
23152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23153 }
23154 arg1 = reinterpret_cast< wxDC * >(argp1);
23155 {
23156 PyThreadState* __tstate = wxPyBeginAllowThreads();
23157 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23158 wxPyEndAllowThreads(__tstate);
23159 if (PyErr_Occurred()) SWIG_fail;
23160 }
23161 resultobj = SWIG_From_int(static_cast< int >(result));
23162 return resultobj;
23163 fail:
23164 return NULL;
23165 }
23166
23167
23168 SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23169 PyObject *resultobj = 0;
23170 wxDC *arg1 = (wxDC *) 0 ;
23171 wxLayoutDirection arg2 ;
23172 void *argp1 = 0 ;
23173 int res1 = 0 ;
23174 int val2 ;
23175 int ecode2 = 0 ;
23176 PyObject * obj0 = 0 ;
23177 PyObject * obj1 = 0 ;
23178 char * kwnames[] = {
23179 (char *) "self",(char *) "dir", NULL
23180 };
23181
23182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23184 if (!SWIG_IsOK(res1)) {
23185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23186 }
23187 arg1 = reinterpret_cast< wxDC * >(argp1);
23188 ecode2 = SWIG_AsVal_int(obj1, &val2);
23189 if (!SWIG_IsOK(ecode2)) {
23190 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23191 }
23192 arg2 = static_cast< wxLayoutDirection >(val2);
23193 {
23194 PyThreadState* __tstate = wxPyBeginAllowThreads();
23195 (arg1)->SetLayoutDirection(arg2);
23196 wxPyEndAllowThreads(__tstate);
23197 if (PyErr_Occurred()) SWIG_fail;
23198 }
23199 resultobj = SWIG_Py_Void();
23200 return resultobj;
23201 fail:
23202 return NULL;
23203 }
23204
23205
23206 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23207 PyObject *resultobj = 0;
23208 wxDC *arg1 = (wxDC *) 0 ;
23209 PyObject *arg2 = (PyObject *) 0 ;
23210 PyObject *arg3 = (PyObject *) 0 ;
23211 PyObject *arg4 = (PyObject *) 0 ;
23212 PyObject *result = 0 ;
23213 void *argp1 = 0 ;
23214 int res1 = 0 ;
23215 PyObject * obj0 = 0 ;
23216 PyObject * obj1 = 0 ;
23217 PyObject * obj2 = 0 ;
23218 PyObject * obj3 = 0 ;
23219 char * kwnames[] = {
23220 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23221 };
23222
23223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23225 if (!SWIG_IsOK(res1)) {
23226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23227 }
23228 arg1 = reinterpret_cast< wxDC * >(argp1);
23229 arg2 = obj1;
23230 arg3 = obj2;
23231 arg4 = obj3;
23232 {
23233 PyThreadState* __tstate = wxPyBeginAllowThreads();
23234 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23235 wxPyEndAllowThreads(__tstate);
23236 if (PyErr_Occurred()) SWIG_fail;
23237 }
23238 resultobj = result;
23239 return resultobj;
23240 fail:
23241 return NULL;
23242 }
23243
23244
23245 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23246 PyObject *resultobj = 0;
23247 wxDC *arg1 = (wxDC *) 0 ;
23248 PyObject *arg2 = (PyObject *) 0 ;
23249 PyObject *arg3 = (PyObject *) 0 ;
23250 PyObject *arg4 = (PyObject *) 0 ;
23251 PyObject *result = 0 ;
23252 void *argp1 = 0 ;
23253 int res1 = 0 ;
23254 PyObject * obj0 = 0 ;
23255 PyObject * obj1 = 0 ;
23256 PyObject * obj2 = 0 ;
23257 PyObject * obj3 = 0 ;
23258 char * kwnames[] = {
23259 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23260 };
23261
23262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23264 if (!SWIG_IsOK(res1)) {
23265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23266 }
23267 arg1 = reinterpret_cast< wxDC * >(argp1);
23268 arg2 = obj1;
23269 arg3 = obj2;
23270 arg4 = obj3;
23271 {
23272 PyThreadState* __tstate = wxPyBeginAllowThreads();
23273 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23274 wxPyEndAllowThreads(__tstate);
23275 if (PyErr_Occurred()) SWIG_fail;
23276 }
23277 resultobj = result;
23278 return resultobj;
23279 fail:
23280 return NULL;
23281 }
23282
23283
23284 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23285 PyObject *resultobj = 0;
23286 wxDC *arg1 = (wxDC *) 0 ;
23287 PyObject *arg2 = (PyObject *) 0 ;
23288 PyObject *arg3 = (PyObject *) 0 ;
23289 PyObject *arg4 = (PyObject *) 0 ;
23290 PyObject *result = 0 ;
23291 void *argp1 = 0 ;
23292 int res1 = 0 ;
23293 PyObject * obj0 = 0 ;
23294 PyObject * obj1 = 0 ;
23295 PyObject * obj2 = 0 ;
23296 PyObject * obj3 = 0 ;
23297 char * kwnames[] = {
23298 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23299 };
23300
23301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23303 if (!SWIG_IsOK(res1)) {
23304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23305 }
23306 arg1 = reinterpret_cast< wxDC * >(argp1);
23307 arg2 = obj1;
23308 arg3 = obj2;
23309 arg4 = obj3;
23310 {
23311 PyThreadState* __tstate = wxPyBeginAllowThreads();
23312 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23313 wxPyEndAllowThreads(__tstate);
23314 if (PyErr_Occurred()) SWIG_fail;
23315 }
23316 resultobj = result;
23317 return resultobj;
23318 fail:
23319 return NULL;
23320 }
23321
23322
23323 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23324 PyObject *resultobj = 0;
23325 wxDC *arg1 = (wxDC *) 0 ;
23326 PyObject *arg2 = (PyObject *) 0 ;
23327 PyObject *arg3 = (PyObject *) 0 ;
23328 PyObject *arg4 = (PyObject *) 0 ;
23329 PyObject *result = 0 ;
23330 void *argp1 = 0 ;
23331 int res1 = 0 ;
23332 PyObject * obj0 = 0 ;
23333 PyObject * obj1 = 0 ;
23334 PyObject * obj2 = 0 ;
23335 PyObject * obj3 = 0 ;
23336 char * kwnames[] = {
23337 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23338 };
23339
23340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23342 if (!SWIG_IsOK(res1)) {
23343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23344 }
23345 arg1 = reinterpret_cast< wxDC * >(argp1);
23346 arg2 = obj1;
23347 arg3 = obj2;
23348 arg4 = obj3;
23349 {
23350 PyThreadState* __tstate = wxPyBeginAllowThreads();
23351 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23352 wxPyEndAllowThreads(__tstate);
23353 if (PyErr_Occurred()) SWIG_fail;
23354 }
23355 resultobj = result;
23356 return resultobj;
23357 fail:
23358 return NULL;
23359 }
23360
23361
23362 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23363 PyObject *resultobj = 0;
23364 wxDC *arg1 = (wxDC *) 0 ;
23365 PyObject *arg2 = (PyObject *) 0 ;
23366 PyObject *arg3 = (PyObject *) 0 ;
23367 PyObject *arg4 = (PyObject *) 0 ;
23368 PyObject *result = 0 ;
23369 void *argp1 = 0 ;
23370 int res1 = 0 ;
23371 PyObject * obj0 = 0 ;
23372 PyObject * obj1 = 0 ;
23373 PyObject * obj2 = 0 ;
23374 PyObject * obj3 = 0 ;
23375 char * kwnames[] = {
23376 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23377 };
23378
23379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23381 if (!SWIG_IsOK(res1)) {
23382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23383 }
23384 arg1 = reinterpret_cast< wxDC * >(argp1);
23385 arg2 = obj1;
23386 arg3 = obj2;
23387 arg4 = obj3;
23388 {
23389 PyThreadState* __tstate = wxPyBeginAllowThreads();
23390 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23391 wxPyEndAllowThreads(__tstate);
23392 if (PyErr_Occurred()) SWIG_fail;
23393 }
23394 resultobj = result;
23395 return resultobj;
23396 fail:
23397 return NULL;
23398 }
23399
23400
23401 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23402 PyObject *resultobj = 0;
23403 wxDC *arg1 = (wxDC *) 0 ;
23404 PyObject *arg2 = (PyObject *) 0 ;
23405 PyObject *arg3 = (PyObject *) 0 ;
23406 PyObject *arg4 = (PyObject *) 0 ;
23407 PyObject *arg5 = (PyObject *) 0 ;
23408 PyObject *result = 0 ;
23409 void *argp1 = 0 ;
23410 int res1 = 0 ;
23411 PyObject * obj0 = 0 ;
23412 PyObject * obj1 = 0 ;
23413 PyObject * obj2 = 0 ;
23414 PyObject * obj3 = 0 ;
23415 PyObject * obj4 = 0 ;
23416 char * kwnames[] = {
23417 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23418 };
23419
23420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23422 if (!SWIG_IsOK(res1)) {
23423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23424 }
23425 arg1 = reinterpret_cast< wxDC * >(argp1);
23426 arg2 = obj1;
23427 arg3 = obj2;
23428 arg4 = obj3;
23429 arg5 = obj4;
23430 {
23431 PyThreadState* __tstate = wxPyBeginAllowThreads();
23432 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23433 wxPyEndAllowThreads(__tstate);
23434 if (PyErr_Occurred()) SWIG_fail;
23435 }
23436 resultobj = result;
23437 return resultobj;
23438 fail:
23439 return NULL;
23440 }
23441
23442
23443 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23444 PyObject *obj;
23445 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23446 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23447 return SWIG_Py_Void();
23448 }
23449
23450 SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23451 PyObject *resultobj = 0;
23452 wxDC *arg1 = 0 ;
23453 wxColour *arg2 = 0 ;
23454 wxDCTextColourChanger *result = 0 ;
23455 void *argp1 = 0 ;
23456 int res1 = 0 ;
23457 wxColour temp2 ;
23458 PyObject * obj0 = 0 ;
23459 PyObject * obj1 = 0 ;
23460 char * kwnames[] = {
23461 (char *) "dc",(char *) "col", NULL
23462 };
23463
23464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23465 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23466 if (!SWIG_IsOK(res1)) {
23467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23468 }
23469 if (!argp1) {
23470 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23471 }
23472 arg1 = reinterpret_cast< wxDC * >(argp1);
23473 {
23474 arg2 = &temp2;
23475 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23476 }
23477 {
23478 PyThreadState* __tstate = wxPyBeginAllowThreads();
23479 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
23480 wxPyEndAllowThreads(__tstate);
23481 if (PyErr_Occurred()) SWIG_fail;
23482 }
23483 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
23484 return resultobj;
23485 fail:
23486 return NULL;
23487 }
23488
23489
23490 SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23491 PyObject *resultobj = 0;
23492 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
23493 void *argp1 = 0 ;
23494 int res1 = 0 ;
23495 PyObject *swig_obj[1] ;
23496
23497 if (!args) SWIG_fail;
23498 swig_obj[0] = args;
23499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
23500 if (!SWIG_IsOK(res1)) {
23501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
23502 }
23503 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
23504 {
23505 PyThreadState* __tstate = wxPyBeginAllowThreads();
23506 delete arg1;
23507
23508 wxPyEndAllowThreads(__tstate);
23509 if (PyErr_Occurred()) SWIG_fail;
23510 }
23511 resultobj = SWIG_Py_Void();
23512 return resultobj;
23513 fail:
23514 return NULL;
23515 }
23516
23517
23518 SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23519 PyObject *obj;
23520 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23521 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
23522 return SWIG_Py_Void();
23523 }
23524
23525 SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23526 return SWIG_Python_InitShadowInstance(args);
23527 }
23528
23529 SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23530 PyObject *resultobj = 0;
23531 wxDC *arg1 = 0 ;
23532 wxPen *arg2 = 0 ;
23533 wxDCPenChanger *result = 0 ;
23534 void *argp1 = 0 ;
23535 int res1 = 0 ;
23536 void *argp2 = 0 ;
23537 int res2 = 0 ;
23538 PyObject * obj0 = 0 ;
23539 PyObject * obj1 = 0 ;
23540 char * kwnames[] = {
23541 (char *) "dc",(char *) "pen", NULL
23542 };
23543
23544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23545 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23546 if (!SWIG_IsOK(res1)) {
23547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23548 }
23549 if (!argp1) {
23550 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23551 }
23552 arg1 = reinterpret_cast< wxDC * >(argp1);
23553 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
23554 if (!SWIG_IsOK(res2)) {
23555 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23556 }
23557 if (!argp2) {
23558 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23559 }
23560 arg2 = reinterpret_cast< wxPen * >(argp2);
23561 {
23562 PyThreadState* __tstate = wxPyBeginAllowThreads();
23563 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
23564 wxPyEndAllowThreads(__tstate);
23565 if (PyErr_Occurred()) SWIG_fail;
23566 }
23567 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
23568 return resultobj;
23569 fail:
23570 return NULL;
23571 }
23572
23573
23574 SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23575 PyObject *resultobj = 0;
23576 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
23577 void *argp1 = 0 ;
23578 int res1 = 0 ;
23579 PyObject *swig_obj[1] ;
23580
23581 if (!args) SWIG_fail;
23582 swig_obj[0] = args;
23583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
23584 if (!SWIG_IsOK(res1)) {
23585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
23586 }
23587 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
23588 {
23589 PyThreadState* __tstate = wxPyBeginAllowThreads();
23590 delete arg1;
23591
23592 wxPyEndAllowThreads(__tstate);
23593 if (PyErr_Occurred()) SWIG_fail;
23594 }
23595 resultobj = SWIG_Py_Void();
23596 return resultobj;
23597 fail:
23598 return NULL;
23599 }
23600
23601
23602 SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23603 PyObject *obj;
23604 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23605 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
23606 return SWIG_Py_Void();
23607 }
23608
23609 SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23610 return SWIG_Python_InitShadowInstance(args);
23611 }
23612
23613 SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23614 PyObject *resultobj = 0;
23615 wxDC *arg1 = 0 ;
23616 wxBrush *arg2 = 0 ;
23617 wxDCBrushChanger *result = 0 ;
23618 void *argp1 = 0 ;
23619 int res1 = 0 ;
23620 void *argp2 = 0 ;
23621 int res2 = 0 ;
23622 PyObject * obj0 = 0 ;
23623 PyObject * obj1 = 0 ;
23624 char * kwnames[] = {
23625 (char *) "dc",(char *) "brush", NULL
23626 };
23627
23628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23629 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23630 if (!SWIG_IsOK(res1)) {
23631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23632 }
23633 if (!argp1) {
23634 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23635 }
23636 arg1 = reinterpret_cast< wxDC * >(argp1);
23637 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
23638 if (!SWIG_IsOK(res2)) {
23639 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23640 }
23641 if (!argp2) {
23642 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23643 }
23644 arg2 = reinterpret_cast< wxBrush * >(argp2);
23645 {
23646 PyThreadState* __tstate = wxPyBeginAllowThreads();
23647 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
23648 wxPyEndAllowThreads(__tstate);
23649 if (PyErr_Occurred()) SWIG_fail;
23650 }
23651 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
23652 return resultobj;
23653 fail:
23654 return NULL;
23655 }
23656
23657
23658 SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23659 PyObject *resultobj = 0;
23660 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
23661 void *argp1 = 0 ;
23662 int res1 = 0 ;
23663 PyObject *swig_obj[1] ;
23664
23665 if (!args) SWIG_fail;
23666 swig_obj[0] = args;
23667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
23668 if (!SWIG_IsOK(res1)) {
23669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
23670 }
23671 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
23672 {
23673 PyThreadState* __tstate = wxPyBeginAllowThreads();
23674 delete arg1;
23675
23676 wxPyEndAllowThreads(__tstate);
23677 if (PyErr_Occurred()) SWIG_fail;
23678 }
23679 resultobj = SWIG_Py_Void();
23680 return resultobj;
23681 fail:
23682 return NULL;
23683 }
23684
23685
23686 SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23687 PyObject *obj;
23688 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23689 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
23690 return SWIG_Py_Void();
23691 }
23692
23693 SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23694 return SWIG_Python_InitShadowInstance(args);
23695 }
23696
23697 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23698 PyObject *resultobj = 0;
23699 wxDC *arg1 = 0 ;
23700 wxRegion *arg2 = 0 ;
23701 wxDCClipper *result = 0 ;
23702 void *argp1 = 0 ;
23703 int res1 = 0 ;
23704 void *argp2 = 0 ;
23705 int res2 = 0 ;
23706
23707 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23709 if (!SWIG_IsOK(res1)) {
23710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23711 }
23712 if (!argp1) {
23713 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23714 }
23715 arg1 = reinterpret_cast< wxDC * >(argp1);
23716 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
23717 if (!SWIG_IsOK(res2)) {
23718 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23719 }
23720 if (!argp2) {
23721 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23722 }
23723 arg2 = reinterpret_cast< wxRegion * >(argp2);
23724 {
23725 PyThreadState* __tstate = wxPyBeginAllowThreads();
23726 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
23727 wxPyEndAllowThreads(__tstate);
23728 if (PyErr_Occurred()) SWIG_fail;
23729 }
23730 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23731 return resultobj;
23732 fail:
23733 return NULL;
23734 }
23735
23736
23737 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23738 PyObject *resultobj = 0;
23739 wxDC *arg1 = 0 ;
23740 wxRect *arg2 = 0 ;
23741 wxDCClipper *result = 0 ;
23742 void *argp1 = 0 ;
23743 int res1 = 0 ;
23744 wxRect temp2 ;
23745
23746 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23748 if (!SWIG_IsOK(res1)) {
23749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23750 }
23751 if (!argp1) {
23752 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23753 }
23754 arg1 = reinterpret_cast< wxDC * >(argp1);
23755 {
23756 arg2 = &temp2;
23757 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
23758 }
23759 {
23760 PyThreadState* __tstate = wxPyBeginAllowThreads();
23761 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
23762 wxPyEndAllowThreads(__tstate);
23763 if (PyErr_Occurred()) SWIG_fail;
23764 }
23765 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23766 return resultobj;
23767 fail:
23768 return NULL;
23769 }
23770
23771
23772 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23773 PyObject *resultobj = 0;
23774 wxDC *arg1 = 0 ;
23775 int arg2 ;
23776 int arg3 ;
23777 int arg4 ;
23778 int arg5 ;
23779 wxDCClipper *result = 0 ;
23780 void *argp1 = 0 ;
23781 int res1 = 0 ;
23782 int val2 ;
23783 int ecode2 = 0 ;
23784 int val3 ;
23785 int ecode3 = 0 ;
23786 int val4 ;
23787 int ecode4 = 0 ;
23788 int val5 ;
23789 int ecode5 = 0 ;
23790
23791 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
23792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23793 if (!SWIG_IsOK(res1)) {
23794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23795 }
23796 if (!argp1) {
23797 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23798 }
23799 arg1 = reinterpret_cast< wxDC * >(argp1);
23800 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
23801 if (!SWIG_IsOK(ecode2)) {
23802 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
23803 }
23804 arg2 = static_cast< int >(val2);
23805 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23806 if (!SWIG_IsOK(ecode3)) {
23807 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
23808 }
23809 arg3 = static_cast< int >(val3);
23810 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
23811 if (!SWIG_IsOK(ecode4)) {
23812 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
23813 }
23814 arg4 = static_cast< int >(val4);
23815 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
23816 if (!SWIG_IsOK(ecode5)) {
23817 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
23818 }
23819 arg5 = static_cast< int >(val5);
23820 {
23821 PyThreadState* __tstate = wxPyBeginAllowThreads();
23822 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
23823 wxPyEndAllowThreads(__tstate);
23824 if (PyErr_Occurred()) SWIG_fail;
23825 }
23826 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23827 return resultobj;
23828 fail:
23829 return NULL;
23830 }
23831
23832
23833 SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
23834 int argc;
23835 PyObject *argv[6];
23836
23837 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
23838 --argc;
23839 if (argc == 2) {
23840 int _v = 0;
23841 {
23842 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
23843 _v = SWIG_CheckState(res);
23844 }
23845 if (!_v) goto check_1;
23846 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
23847 }
23848 check_1:
23849
23850 if (argc == 2) {
23851 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
23852 }
23853 if (argc == 5) {
23854 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
23855 }
23856
23857 fail:
23858 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
23859 return NULL;
23860 }
23861
23862
23863 SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23864 PyObject *resultobj = 0;
23865 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
23866 void *argp1 = 0 ;
23867 int res1 = 0 ;
23868 PyObject *swig_obj[1] ;
23869
23870 if (!args) SWIG_fail;
23871 swig_obj[0] = args;
23872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
23873 if (!SWIG_IsOK(res1)) {
23874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
23875 }
23876 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
23877 {
23878 PyThreadState* __tstate = wxPyBeginAllowThreads();
23879 delete arg1;
23880
23881 wxPyEndAllowThreads(__tstate);
23882 if (PyErr_Occurred()) SWIG_fail;
23883 }
23884 resultobj = SWIG_Py_Void();
23885 return resultobj;
23886 fail:
23887 return NULL;
23888 }
23889
23890
23891 SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23892 PyObject *obj;
23893 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23894 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
23895 return SWIG_Py_Void();
23896 }
23897
23898 SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23899 return SWIG_Python_InitShadowInstance(args);
23900 }
23901
23902 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23903 PyObject *resultobj = 0;
23904 wxBitmap &arg1_defvalue = wxNullBitmap ;
23905 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
23906 wxMemoryDC *result = 0 ;
23907 void *argp1 = 0 ;
23908 int res1 = 0 ;
23909 PyObject * obj0 = 0 ;
23910 char * kwnames[] = {
23911 (char *) "bitmap", NULL
23912 };
23913
23914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
23915 if (obj0) {
23916 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
23917 if (!SWIG_IsOK(res1)) {
23918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
23919 }
23920 if (!argp1) {
23921 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
23922 }
23923 arg1 = reinterpret_cast< wxBitmap * >(argp1);
23924 }
23925 {
23926 if (!wxPyCheckForApp()) SWIG_fail;
23927 PyThreadState* __tstate = wxPyBeginAllowThreads();
23928 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
23929 wxPyEndAllowThreads(__tstate);
23930 if (PyErr_Occurred()) SWIG_fail;
23931 }
23932 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
23933 return resultobj;
23934 fail:
23935 return NULL;
23936 }
23937
23938
23939 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23940 PyObject *resultobj = 0;
23941 wxDC *arg1 = (wxDC *) 0 ;
23942 wxMemoryDC *result = 0 ;
23943 void *argp1 = 0 ;
23944 int res1 = 0 ;
23945 PyObject * obj0 = 0 ;
23946 char * kwnames[] = {
23947 (char *) "oldDC", NULL
23948 };
23949
23950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
23951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23952 if (!SWIG_IsOK(res1)) {
23953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
23954 }
23955 arg1 = reinterpret_cast< wxDC * >(argp1);
23956 {
23957 if (!wxPyCheckForApp()) SWIG_fail;
23958 PyThreadState* __tstate = wxPyBeginAllowThreads();
23959 result = (wxMemoryDC *)new wxMemoryDC(arg1);
23960 wxPyEndAllowThreads(__tstate);
23961 if (PyErr_Occurred()) SWIG_fail;
23962 }
23963 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
23964 return resultobj;
23965 fail:
23966 return NULL;
23967 }
23968
23969
23970 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23971 PyObject *resultobj = 0;
23972 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
23973 wxBitmap *arg2 = 0 ;
23974 void *argp1 = 0 ;
23975 int res1 = 0 ;
23976 void *argp2 = 0 ;
23977 int res2 = 0 ;
23978 PyObject * obj0 = 0 ;
23979 PyObject * obj1 = 0 ;
23980 char * kwnames[] = {
23981 (char *) "self",(char *) "bitmap", NULL
23982 };
23983
23984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
23985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
23986 if (!SWIG_IsOK(res1)) {
23987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
23988 }
23989 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
23990 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
23991 if (!SWIG_IsOK(res2)) {
23992 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
23993 }
23994 if (!argp2) {
23995 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
23996 }
23997 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23998 {
23999 PyThreadState* __tstate = wxPyBeginAllowThreads();
24000 (arg1)->SelectObject(*arg2);
24001 wxPyEndAllowThreads(__tstate);
24002 if (PyErr_Occurred()) SWIG_fail;
24003 }
24004 resultobj = SWIG_Py_Void();
24005 return resultobj;
24006 fail:
24007 return NULL;
24008 }
24009
24010
24011 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24012 PyObject *resultobj = 0;
24013 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24014 wxBitmap *arg2 = 0 ;
24015 void *argp1 = 0 ;
24016 int res1 = 0 ;
24017 void *argp2 = 0 ;
24018 int res2 = 0 ;
24019 PyObject * obj0 = 0 ;
24020 PyObject * obj1 = 0 ;
24021 char * kwnames[] = {
24022 (char *) "self",(char *) "bmp", NULL
24023 };
24024
24025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
24026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24027 if (!SWIG_IsOK(res1)) {
24028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24029 }
24030 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24031 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24032 if (!SWIG_IsOK(res2)) {
24033 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24034 }
24035 if (!argp2) {
24036 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24037 }
24038 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24039 {
24040 PyThreadState* __tstate = wxPyBeginAllowThreads();
24041 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
24042 wxPyEndAllowThreads(__tstate);
24043 if (PyErr_Occurred()) SWIG_fail;
24044 }
24045 resultobj = SWIG_Py_Void();
24046 return resultobj;
24047 fail:
24048 return NULL;
24049 }
24050
24051
24052 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24053 PyObject *obj;
24054 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24055 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
24056 return SWIG_Py_Void();
24057 }
24058
24059 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24060 return SWIG_Python_InitShadowInstance(args);
24061 }
24062
24063 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24064 PyObject *resultobj = 0;
24065 wxScreenDC *result = 0 ;
24066
24067 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
24068 {
24069 if (!wxPyCheckForApp()) SWIG_fail;
24070 PyThreadState* __tstate = wxPyBeginAllowThreads();
24071 result = (wxScreenDC *)new wxScreenDC();
24072 wxPyEndAllowThreads(__tstate);
24073 if (PyErr_Occurred()) SWIG_fail;
24074 }
24075 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
24076 return resultobj;
24077 fail:
24078 return NULL;
24079 }
24080
24081
24082 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24083 PyObject *resultobj = 0;
24084 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24085 wxWindow *arg2 = (wxWindow *) 0 ;
24086 bool result;
24087 void *argp1 = 0 ;
24088 int res1 = 0 ;
24089 void *argp2 = 0 ;
24090 int res2 = 0 ;
24091 PyObject * obj0 = 0 ;
24092 PyObject * obj1 = 0 ;
24093 char * kwnames[] = {
24094 (char *) "self",(char *) "window", NULL
24095 };
24096
24097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
24098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24099 if (!SWIG_IsOK(res1)) {
24100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24101 }
24102 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24103 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24104 if (!SWIG_IsOK(res2)) {
24105 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
24106 }
24107 arg2 = reinterpret_cast< wxWindow * >(argp2);
24108 {
24109 PyThreadState* __tstate = wxPyBeginAllowThreads();
24110 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24111 wxPyEndAllowThreads(__tstate);
24112 if (PyErr_Occurred()) SWIG_fail;
24113 }
24114 {
24115 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24116 }
24117 return resultobj;
24118 fail:
24119 return NULL;
24120 }
24121
24122
24123 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24124 PyObject *resultobj = 0;
24125 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24126 wxRect *arg2 = (wxRect *) NULL ;
24127 bool result;
24128 void *argp1 = 0 ;
24129 int res1 = 0 ;
24130 void *argp2 = 0 ;
24131 int res2 = 0 ;
24132 PyObject * obj0 = 0 ;
24133 PyObject * obj1 = 0 ;
24134 char * kwnames[] = {
24135 (char *) "self",(char *) "rect", NULL
24136 };
24137
24138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24140 if (!SWIG_IsOK(res1)) {
24141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24142 }
24143 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24144 if (obj1) {
24145 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24146 if (!SWIG_IsOK(res2)) {
24147 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24148 }
24149 arg2 = reinterpret_cast< wxRect * >(argp2);
24150 }
24151 {
24152 PyThreadState* __tstate = wxPyBeginAllowThreads();
24153 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24154 wxPyEndAllowThreads(__tstate);
24155 if (PyErr_Occurred()) SWIG_fail;
24156 }
24157 {
24158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24159 }
24160 return resultobj;
24161 fail:
24162 return NULL;
24163 }
24164
24165
24166 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24167 PyObject *resultobj = 0;
24168 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24169 bool result;
24170 void *argp1 = 0 ;
24171 int res1 = 0 ;
24172 PyObject *swig_obj[1] ;
24173
24174 if (!args) SWIG_fail;
24175 swig_obj[0] = args;
24176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24177 if (!SWIG_IsOK(res1)) {
24178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24179 }
24180 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24181 {
24182 PyThreadState* __tstate = wxPyBeginAllowThreads();
24183 result = (bool)(arg1)->EndDrawingOnTop();
24184 wxPyEndAllowThreads(__tstate);
24185 if (PyErr_Occurred()) SWIG_fail;
24186 }
24187 {
24188 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24189 }
24190 return resultobj;
24191 fail:
24192 return NULL;
24193 }
24194
24195
24196 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24197 PyObject *obj;
24198 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24199 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24200 return SWIG_Py_Void();
24201 }
24202
24203 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24204 return SWIG_Python_InitShadowInstance(args);
24205 }
24206
24207 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24208 PyObject *resultobj = 0;
24209 wxWindow *arg1 = (wxWindow *) 0 ;
24210 wxWindowDC *result = 0 ;
24211 void *argp1 = 0 ;
24212 int res1 = 0 ;
24213 PyObject * obj0 = 0 ;
24214 char * kwnames[] = {
24215 (char *) "win", NULL
24216 };
24217
24218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24220 if (!SWIG_IsOK(res1)) {
24221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24222 }
24223 arg1 = reinterpret_cast< wxWindow * >(argp1);
24224 {
24225 if (!wxPyCheckForApp()) SWIG_fail;
24226 PyThreadState* __tstate = wxPyBeginAllowThreads();
24227 result = (wxWindowDC *)new wxWindowDC(arg1);
24228 wxPyEndAllowThreads(__tstate);
24229 if (PyErr_Occurred()) SWIG_fail;
24230 }
24231 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24232 return resultobj;
24233 fail:
24234 return NULL;
24235 }
24236
24237
24238 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24239 PyObject *obj;
24240 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24241 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24242 return SWIG_Py_Void();
24243 }
24244
24245 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24246 return SWIG_Python_InitShadowInstance(args);
24247 }
24248
24249 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24250 PyObject *resultobj = 0;
24251 wxWindow *arg1 = (wxWindow *) 0 ;
24252 wxClientDC *result = 0 ;
24253 void *argp1 = 0 ;
24254 int res1 = 0 ;
24255 PyObject * obj0 = 0 ;
24256 char * kwnames[] = {
24257 (char *) "win", NULL
24258 };
24259
24260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24262 if (!SWIG_IsOK(res1)) {
24263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24264 }
24265 arg1 = reinterpret_cast< wxWindow * >(argp1);
24266 {
24267 if (!wxPyCheckForApp()) SWIG_fail;
24268 PyThreadState* __tstate = wxPyBeginAllowThreads();
24269 result = (wxClientDC *)new wxClientDC(arg1);
24270 wxPyEndAllowThreads(__tstate);
24271 if (PyErr_Occurred()) SWIG_fail;
24272 }
24273 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24274 return resultobj;
24275 fail:
24276 return NULL;
24277 }
24278
24279
24280 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24281 PyObject *obj;
24282 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24283 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24284 return SWIG_Py_Void();
24285 }
24286
24287 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24288 return SWIG_Python_InitShadowInstance(args);
24289 }
24290
24291 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24292 PyObject *resultobj = 0;
24293 wxWindow *arg1 = (wxWindow *) 0 ;
24294 wxPaintDC *result = 0 ;
24295 void *argp1 = 0 ;
24296 int res1 = 0 ;
24297 PyObject * obj0 = 0 ;
24298 char * kwnames[] = {
24299 (char *) "win", NULL
24300 };
24301
24302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24304 if (!SWIG_IsOK(res1)) {
24305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24306 }
24307 arg1 = reinterpret_cast< wxWindow * >(argp1);
24308 {
24309 if (!wxPyCheckForApp()) SWIG_fail;
24310 PyThreadState* __tstate = wxPyBeginAllowThreads();
24311 result = (wxPaintDC *)new wxPaintDC(arg1);
24312 wxPyEndAllowThreads(__tstate);
24313 if (PyErr_Occurred()) SWIG_fail;
24314 }
24315 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24316 return resultobj;
24317 fail:
24318 return NULL;
24319 }
24320
24321
24322 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24323 PyObject *obj;
24324 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24325 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24326 return SWIG_Py_Void();
24327 }
24328
24329 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24330 return SWIG_Python_InitShadowInstance(args);
24331 }
24332
24333 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24334 PyObject *resultobj = 0;
24335 wxDC *arg1 = (wxDC *) 0 ;
24336 wxBitmap &arg2_defvalue = wxNullBitmap ;
24337 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24338 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24339 wxBufferedDC *result = 0 ;
24340 void *argp1 = 0 ;
24341 int res1 = 0 ;
24342 void *argp2 = 0 ;
24343 int res2 = 0 ;
24344 int val3 ;
24345 int ecode3 = 0 ;
24346
24347 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24349 if (!SWIG_IsOK(res1)) {
24350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24351 }
24352 arg1 = reinterpret_cast< wxDC * >(argp1);
24353 if (swig_obj[1]) {
24354 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 );
24355 if (!SWIG_IsOK(res2)) {
24356 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24357 }
24358 if (!argp2) {
24359 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24360 }
24361 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24362 }
24363 if (swig_obj[2]) {
24364 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24365 if (!SWIG_IsOK(ecode3)) {
24366 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24367 }
24368 arg3 = static_cast< int >(val3);
24369 }
24370 {
24371 if (!wxPyCheckForApp()) SWIG_fail;
24372 PyThreadState* __tstate = wxPyBeginAllowThreads();
24373 result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3);
24374 wxPyEndAllowThreads(__tstate);
24375 if (PyErr_Occurred()) SWIG_fail;
24376 }
24377 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24378 return resultobj;
24379 fail:
24380 return NULL;
24381 }
24382
24383
24384 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24385 PyObject *resultobj = 0;
24386 wxDC *arg1 = (wxDC *) 0 ;
24387 wxSize *arg2 = 0 ;
24388 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24389 wxBufferedDC *result = 0 ;
24390 void *argp1 = 0 ;
24391 int res1 = 0 ;
24392 wxSize temp2 ;
24393 int val3 ;
24394 int ecode3 = 0 ;
24395
24396 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24397 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24398 if (!SWIG_IsOK(res1)) {
24399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24400 }
24401 arg1 = reinterpret_cast< wxDC * >(argp1);
24402 {
24403 arg2 = &temp2;
24404 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24405 }
24406 if (swig_obj[2]) {
24407 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24408 if (!SWIG_IsOK(ecode3)) {
24409 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24410 }
24411 arg3 = static_cast< int >(val3);
24412 }
24413 {
24414 if (!wxPyCheckForApp()) SWIG_fail;
24415 PyThreadState* __tstate = wxPyBeginAllowThreads();
24416 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24417 wxPyEndAllowThreads(__tstate);
24418 if (PyErr_Occurred()) SWIG_fail;
24419 }
24420 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24421 return resultobj;
24422 fail:
24423 return NULL;
24424 }
24425
24426
24427 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24428 int argc;
24429 PyObject *argv[4];
24430
24431 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
24432 --argc;
24433 if ((argc >= 1) && (argc <= 3)) {
24434 int _v = 0;
24435 if (argc > 1) {
24436 {
24437 void *vptr = 0;
24438 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0);
24439 _v = SWIG_CheckState(res);
24440 }
24441 if (!_v) goto check_1;
24442 }
24443 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24444 }
24445 check_1:
24446
24447 if ((argc >= 2) && (argc <= 3)) {
24448 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24449 }
24450
24451 fail:
24452 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24453 return NULL;
24454 }
24455
24456
24457 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24458 PyObject *resultobj = 0;
24459 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24460 void *argp1 = 0 ;
24461 int res1 = 0 ;
24462 PyObject *swig_obj[1] ;
24463
24464 if (!args) SWIG_fail;
24465 swig_obj[0] = args;
24466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24467 if (!SWIG_IsOK(res1)) {
24468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24469 }
24470 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24471 {
24472 PyThreadState* __tstate = wxPyBeginAllowThreads();
24473 delete arg1;
24474
24475 wxPyEndAllowThreads(__tstate);
24476 if (PyErr_Occurred()) SWIG_fail;
24477 }
24478 resultobj = SWIG_Py_Void();
24479 return resultobj;
24480 fail:
24481 return NULL;
24482 }
24483
24484
24485 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24486 PyObject *resultobj = 0;
24487 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24488 void *argp1 = 0 ;
24489 int res1 = 0 ;
24490 PyObject *swig_obj[1] ;
24491
24492 if (!args) SWIG_fail;
24493 swig_obj[0] = args;
24494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24495 if (!SWIG_IsOK(res1)) {
24496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24497 }
24498 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24499 {
24500 PyThreadState* __tstate = wxPyBeginAllowThreads();
24501 (arg1)->UnMask();
24502 wxPyEndAllowThreads(__tstate);
24503 if (PyErr_Occurred()) SWIG_fail;
24504 }
24505 resultobj = SWIG_Py_Void();
24506 return resultobj;
24507 fail:
24508 return NULL;
24509 }
24510
24511
24512 SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24513 PyObject *resultobj = 0;
24514 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24515 int arg2 ;
24516 void *argp1 = 0 ;
24517 int res1 = 0 ;
24518 int val2 ;
24519 int ecode2 = 0 ;
24520 PyObject * obj0 = 0 ;
24521 PyObject * obj1 = 0 ;
24522 char * kwnames[] = {
24523 (char *) "self",(char *) "style", NULL
24524 };
24525
24526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
24527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24528 if (!SWIG_IsOK(res1)) {
24529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24530 }
24531 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24532 ecode2 = SWIG_AsVal_int(obj1, &val2);
24533 if (!SWIG_IsOK(ecode2)) {
24534 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'");
24535 }
24536 arg2 = static_cast< int >(val2);
24537 {
24538 PyThreadState* __tstate = wxPyBeginAllowThreads();
24539 (arg1)->SetStyle(arg2);
24540 wxPyEndAllowThreads(__tstate);
24541 if (PyErr_Occurred()) SWIG_fail;
24542 }
24543 resultobj = SWIG_Py_Void();
24544 return resultobj;
24545 fail:
24546 return NULL;
24547 }
24548
24549
24550 SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24551 PyObject *resultobj = 0;
24552 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24553 int result;
24554 void *argp1 = 0 ;
24555 int res1 = 0 ;
24556 PyObject *swig_obj[1] ;
24557
24558 if (!args) SWIG_fail;
24559 swig_obj[0] = args;
24560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24561 if (!SWIG_IsOK(res1)) {
24562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'");
24563 }
24564 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24565 {
24566 PyThreadState* __tstate = wxPyBeginAllowThreads();
24567 result = (int)((wxBufferedDC const *)arg1)->GetStyle();
24568 wxPyEndAllowThreads(__tstate);
24569 if (PyErr_Occurred()) SWIG_fail;
24570 }
24571 resultobj = SWIG_From_int(static_cast< int >(result));
24572 return resultobj;
24573 fail:
24574 return NULL;
24575 }
24576
24577
24578 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24579 PyObject *obj;
24580 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24581 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
24582 return SWIG_Py_Void();
24583 }
24584
24585 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24586 return SWIG_Python_InitShadowInstance(args);
24587 }
24588
24589 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24590 PyObject *resultobj = 0;
24591 wxWindow *arg1 = (wxWindow *) 0 ;
24592 wxBitmap &arg2_defvalue = wxNullBitmap ;
24593 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24594 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24595 wxBufferedPaintDC *result = 0 ;
24596 void *argp1 = 0 ;
24597 int res1 = 0 ;
24598 void *argp2 = 0 ;
24599 int res2 = 0 ;
24600 int val3 ;
24601 int ecode3 = 0 ;
24602 PyObject * obj0 = 0 ;
24603 PyObject * obj1 = 0 ;
24604 PyObject * obj2 = 0 ;
24605 char * kwnames[] = {
24606 (char *) "window",(char *) "buffer",(char *) "style", NULL
24607 };
24608
24609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24611 if (!SWIG_IsOK(res1)) {
24612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24613 }
24614 arg1 = reinterpret_cast< wxWindow * >(argp1);
24615 if (obj1) {
24616 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24617 if (!SWIG_IsOK(res2)) {
24618 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24619 }
24620 if (!argp2) {
24621 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24622 }
24623 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24624 }
24625 if (obj2) {
24626 ecode3 = SWIG_AsVal_int(obj2, &val3);
24627 if (!SWIG_IsOK(ecode3)) {
24628 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
24629 }
24630 arg3 = static_cast< int >(val3);
24631 }
24632 {
24633 if (!wxPyCheckForApp()) SWIG_fail;
24634 PyThreadState* __tstate = wxPyBeginAllowThreads();
24635 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3);
24636 wxPyEndAllowThreads(__tstate);
24637 if (PyErr_Occurred()) SWIG_fail;
24638 }
24639 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24640 return resultobj;
24641 fail:
24642 return NULL;
24643 }
24644
24645
24646 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24647 PyObject *obj;
24648 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24649 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
24650 return SWIG_Py_Void();
24651 }
24652
24653 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24654 return SWIG_Python_InitShadowInstance(args);
24655 }
24656
24657 SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24658 PyObject *resultobj = 0;
24659 wxWindow *arg1 = (wxWindow *) 0 ;
24660 wxAutoBufferedPaintDC *result = 0 ;
24661 void *argp1 = 0 ;
24662 int res1 = 0 ;
24663 PyObject * obj0 = 0 ;
24664 char * kwnames[] = {
24665 (char *) "win", NULL
24666 };
24667
24668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
24669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24670 if (!SWIG_IsOK(res1)) {
24671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24672 }
24673 arg1 = reinterpret_cast< wxWindow * >(argp1);
24674 {
24675 PyThreadState* __tstate = wxPyBeginAllowThreads();
24676 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
24677 wxPyEndAllowThreads(__tstate);
24678 if (PyErr_Occurred()) SWIG_fail;
24679 }
24680 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24681 return resultobj;
24682 fail:
24683 return NULL;
24684 }
24685
24686
24687 SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24688 PyObject *obj;
24689 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24690 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
24691 return SWIG_Py_Void();
24692 }
24693
24694 SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24695 return SWIG_Python_InitShadowInstance(args);
24696 }
24697
24698 SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24699 PyObject *resultobj = 0;
24700 wxWindow *arg1 = (wxWindow *) 0 ;
24701 wxDC *result = 0 ;
24702 void *argp1 = 0 ;
24703 int res1 = 0 ;
24704 PyObject * obj0 = 0 ;
24705 char * kwnames[] = {
24706 (char *) "window", NULL
24707 };
24708
24709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
24710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24711 if (!SWIG_IsOK(res1)) {
24712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
24713 }
24714 arg1 = reinterpret_cast< wxWindow * >(argp1);
24715 {
24716 PyThreadState* __tstate = wxPyBeginAllowThreads();
24717 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
24718 wxPyEndAllowThreads(__tstate);
24719 if (PyErr_Occurred()) SWIG_fail;
24720 }
24721 {
24722 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
24723 }
24724 return resultobj;
24725 fail:
24726 return NULL;
24727 }
24728
24729
24730 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24731 PyObject *resultobj = 0;
24732 wxDC *arg1 = 0 ;
24733 bool arg2 ;
24734 wxMirrorDC *result = 0 ;
24735 void *argp1 = 0 ;
24736 int res1 = 0 ;
24737 bool val2 ;
24738 int ecode2 = 0 ;
24739 PyObject * obj0 = 0 ;
24740 PyObject * obj1 = 0 ;
24741 char * kwnames[] = {
24742 (char *) "dc",(char *) "mirror", NULL
24743 };
24744
24745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24746 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24747 if (!SWIG_IsOK(res1)) {
24748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24749 }
24750 if (!argp1) {
24751 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24752 }
24753 arg1 = reinterpret_cast< wxDC * >(argp1);
24754 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24755 if (!SWIG_IsOK(ecode2)) {
24756 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24757 }
24758 arg2 = static_cast< bool >(val2);
24759 {
24760 if (!wxPyCheckForApp()) SWIG_fail;
24761 PyThreadState* __tstate = wxPyBeginAllowThreads();
24762 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24763 wxPyEndAllowThreads(__tstate);
24764 if (PyErr_Occurred()) SWIG_fail;
24765 }
24766 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24767 return resultobj;
24768 fail:
24769 return NULL;
24770 }
24771
24772
24773 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24774 PyObject *obj;
24775 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24776 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
24777 return SWIG_Py_Void();
24778 }
24779
24780 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24781 return SWIG_Python_InitShadowInstance(args);
24782 }
24783
24784 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24785 PyObject *resultobj = 0;
24786 wxPrintData *arg1 = 0 ;
24787 wxPostScriptDC *result = 0 ;
24788 void *argp1 = 0 ;
24789 int res1 = 0 ;
24790 PyObject * obj0 = 0 ;
24791 char * kwnames[] = {
24792 (char *) "printData", NULL
24793 };
24794
24795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24796 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24797 if (!SWIG_IsOK(res1)) {
24798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24799 }
24800 if (!argp1) {
24801 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24802 }
24803 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24804 {
24805 if (!wxPyCheckForApp()) SWIG_fail;
24806 PyThreadState* __tstate = wxPyBeginAllowThreads();
24807 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24808 wxPyEndAllowThreads(__tstate);
24809 if (PyErr_Occurred()) SWIG_fail;
24810 }
24811 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24812 return resultobj;
24813 fail:
24814 return NULL;
24815 }
24816
24817
24818 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24819 PyObject *resultobj = 0;
24820 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24821 wxPrintData *result = 0 ;
24822 void *argp1 = 0 ;
24823 int res1 = 0 ;
24824 PyObject *swig_obj[1] ;
24825
24826 if (!args) SWIG_fail;
24827 swig_obj[0] = args;
24828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24829 if (!SWIG_IsOK(res1)) {
24830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24831 }
24832 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24833 {
24834 PyThreadState* __tstate = wxPyBeginAllowThreads();
24835 {
24836 wxPrintData &_result_ref = (arg1)->GetPrintData();
24837 result = (wxPrintData *) &_result_ref;
24838 }
24839 wxPyEndAllowThreads(__tstate);
24840 if (PyErr_Occurred()) SWIG_fail;
24841 }
24842 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24843 return resultobj;
24844 fail:
24845 return NULL;
24846 }
24847
24848
24849 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24850 PyObject *resultobj = 0;
24851 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24852 wxPrintData *arg2 = 0 ;
24853 void *argp1 = 0 ;
24854 int res1 = 0 ;
24855 void *argp2 = 0 ;
24856 int res2 = 0 ;
24857 PyObject * obj0 = 0 ;
24858 PyObject * obj1 = 0 ;
24859 char * kwnames[] = {
24860 (char *) "self",(char *) "data", NULL
24861 };
24862
24863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24865 if (!SWIG_IsOK(res1)) {
24866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24867 }
24868 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24869 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24870 if (!SWIG_IsOK(res2)) {
24871 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24872 }
24873 if (!argp2) {
24874 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24875 }
24876 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24877 {
24878 PyThreadState* __tstate = wxPyBeginAllowThreads();
24879 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24880 wxPyEndAllowThreads(__tstate);
24881 if (PyErr_Occurred()) SWIG_fail;
24882 }
24883 resultobj = SWIG_Py_Void();
24884 return resultobj;
24885 fail:
24886 return NULL;
24887 }
24888
24889
24890 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24891 PyObject *resultobj = 0;
24892 int arg1 ;
24893 int val1 ;
24894 int ecode1 = 0 ;
24895 PyObject * obj0 = 0 ;
24896 char * kwnames[] = {
24897 (char *) "ppi", NULL
24898 };
24899
24900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24901 ecode1 = SWIG_AsVal_int(obj0, &val1);
24902 if (!SWIG_IsOK(ecode1)) {
24903 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24904 }
24905 arg1 = static_cast< int >(val1);
24906 {
24907 PyThreadState* __tstate = wxPyBeginAllowThreads();
24908 wxPostScriptDC::SetResolution(arg1);
24909 wxPyEndAllowThreads(__tstate);
24910 if (PyErr_Occurred()) SWIG_fail;
24911 }
24912 resultobj = SWIG_Py_Void();
24913 return resultobj;
24914 fail:
24915 return NULL;
24916 }
24917
24918
24919 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24920 PyObject *resultobj = 0;
24921 int result;
24922
24923 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24924 {
24925 PyThreadState* __tstate = wxPyBeginAllowThreads();
24926 result = (int)wxPostScriptDC::GetResolution();
24927 wxPyEndAllowThreads(__tstate);
24928 if (PyErr_Occurred()) SWIG_fail;
24929 }
24930 resultobj = SWIG_From_int(static_cast< int >(result));
24931 return resultobj;
24932 fail:
24933 return NULL;
24934 }
24935
24936
24937 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24938 PyObject *obj;
24939 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24940 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24941 return SWIG_Py_Void();
24942 }
24943
24944 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24945 return SWIG_Python_InitShadowInstance(args);
24946 }
24947
24948 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24949 PyObject *resultobj = 0;
24950 wxString const &arg1_defvalue = wxPyEmptyString ;
24951 wxString *arg1 = (wxString *) &arg1_defvalue ;
24952 wxMetaFile *result = 0 ;
24953 bool temp1 = false ;
24954 PyObject * obj0 = 0 ;
24955 char * kwnames[] = {
24956 (char *) "filename", NULL
24957 };
24958
24959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24960 if (obj0) {
24961 {
24962 arg1 = wxString_in_helper(obj0);
24963 if (arg1 == NULL) SWIG_fail;
24964 temp1 = true;
24965 }
24966 }
24967 {
24968 if (!wxPyCheckForApp()) SWIG_fail;
24969 PyThreadState* __tstate = wxPyBeginAllowThreads();
24970 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24971 wxPyEndAllowThreads(__tstate);
24972 if (PyErr_Occurred()) SWIG_fail;
24973 }
24974 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24975 {
24976 if (temp1)
24977 delete arg1;
24978 }
24979 return resultobj;
24980 fail:
24981 {
24982 if (temp1)
24983 delete arg1;
24984 }
24985 return NULL;
24986 }
24987
24988
24989 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24990 PyObject *resultobj = 0;
24991 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24992 void *argp1 = 0 ;
24993 int res1 = 0 ;
24994 PyObject *swig_obj[1] ;
24995
24996 if (!args) SWIG_fail;
24997 swig_obj[0] = args;
24998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
24999 if (!SWIG_IsOK(res1)) {
25000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25001 }
25002 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25003 {
25004 PyThreadState* __tstate = wxPyBeginAllowThreads();
25005 delete arg1;
25006
25007 wxPyEndAllowThreads(__tstate);
25008 if (PyErr_Occurred()) SWIG_fail;
25009 }
25010 resultobj = SWIG_Py_Void();
25011 return resultobj;
25012 fail:
25013 return NULL;
25014 }
25015
25016
25017 SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25018 PyObject *resultobj = 0;
25019 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25020 bool result;
25021 void *argp1 = 0 ;
25022 int res1 = 0 ;
25023 PyObject *swig_obj[1] ;
25024
25025 if (!args) SWIG_fail;
25026 swig_obj[0] = args;
25027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25028 if (!SWIG_IsOK(res1)) {
25029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25030 }
25031 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25032 {
25033 PyThreadState* __tstate = wxPyBeginAllowThreads();
25034 result = (bool)(arg1)->IsOk();
25035 wxPyEndAllowThreads(__tstate);
25036 if (PyErr_Occurred()) SWIG_fail;
25037 }
25038 {
25039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25040 }
25041 return resultobj;
25042 fail:
25043 return NULL;
25044 }
25045
25046
25047 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25048 PyObject *resultobj = 0;
25049 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25050 int arg2 = (int) 0 ;
25051 int arg3 = (int) 0 ;
25052 bool result;
25053 void *argp1 = 0 ;
25054 int res1 = 0 ;
25055 int val2 ;
25056 int ecode2 = 0 ;
25057 int val3 ;
25058 int ecode3 = 0 ;
25059 PyObject * obj0 = 0 ;
25060 PyObject * obj1 = 0 ;
25061 PyObject * obj2 = 0 ;
25062 char * kwnames[] = {
25063 (char *) "self",(char *) "width",(char *) "height", NULL
25064 };
25065
25066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25068 if (!SWIG_IsOK(res1)) {
25069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25070 }
25071 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25072 if (obj1) {
25073 ecode2 = SWIG_AsVal_int(obj1, &val2);
25074 if (!SWIG_IsOK(ecode2)) {
25075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
25076 }
25077 arg2 = static_cast< int >(val2);
25078 }
25079 if (obj2) {
25080 ecode3 = SWIG_AsVal_int(obj2, &val3);
25081 if (!SWIG_IsOK(ecode3)) {
25082 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
25083 }
25084 arg3 = static_cast< int >(val3);
25085 }
25086 {
25087 PyThreadState* __tstate = wxPyBeginAllowThreads();
25088 result = (bool)(arg1)->SetClipboard(arg2,arg3);
25089 wxPyEndAllowThreads(__tstate);
25090 if (PyErr_Occurred()) SWIG_fail;
25091 }
25092 {
25093 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25094 }
25095 return resultobj;
25096 fail:
25097 return NULL;
25098 }
25099
25100
25101 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25102 PyObject *resultobj = 0;
25103 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25104 wxSize result;
25105 void *argp1 = 0 ;
25106 int res1 = 0 ;
25107 PyObject *swig_obj[1] ;
25108
25109 if (!args) SWIG_fail;
25110 swig_obj[0] = args;
25111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25112 if (!SWIG_IsOK(res1)) {
25113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25114 }
25115 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25116 {
25117 PyThreadState* __tstate = wxPyBeginAllowThreads();
25118 result = (arg1)->GetSize();
25119 wxPyEndAllowThreads(__tstate);
25120 if (PyErr_Occurred()) SWIG_fail;
25121 }
25122 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25123 return resultobj;
25124 fail:
25125 return NULL;
25126 }
25127
25128
25129 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25130 PyObject *resultobj = 0;
25131 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25132 int result;
25133 void *argp1 = 0 ;
25134 int res1 = 0 ;
25135 PyObject *swig_obj[1] ;
25136
25137 if (!args) SWIG_fail;
25138 swig_obj[0] = args;
25139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25140 if (!SWIG_IsOK(res1)) {
25141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25142 }
25143 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25144 {
25145 PyThreadState* __tstate = wxPyBeginAllowThreads();
25146 result = (int)(arg1)->GetWidth();
25147 wxPyEndAllowThreads(__tstate);
25148 if (PyErr_Occurred()) SWIG_fail;
25149 }
25150 resultobj = SWIG_From_int(static_cast< int >(result));
25151 return resultobj;
25152 fail:
25153 return NULL;
25154 }
25155
25156
25157 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25158 PyObject *resultobj = 0;
25159 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25160 int result;
25161 void *argp1 = 0 ;
25162 int res1 = 0 ;
25163 PyObject *swig_obj[1] ;
25164
25165 if (!args) SWIG_fail;
25166 swig_obj[0] = args;
25167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25168 if (!SWIG_IsOK(res1)) {
25169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25170 }
25171 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25172 {
25173 PyThreadState* __tstate = wxPyBeginAllowThreads();
25174 result = (int)(arg1)->GetHeight();
25175 wxPyEndAllowThreads(__tstate);
25176 if (PyErr_Occurred()) SWIG_fail;
25177 }
25178 resultobj = SWIG_From_int(static_cast< int >(result));
25179 return resultobj;
25180 fail:
25181 return NULL;
25182 }
25183
25184
25185 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25186 PyObject *obj;
25187 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25188 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25189 return SWIG_Py_Void();
25190 }
25191
25192 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25193 return SWIG_Python_InitShadowInstance(args);
25194 }
25195
25196 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25197 PyObject *resultobj = 0;
25198 wxString const &arg1_defvalue = wxPyEmptyString ;
25199 wxString *arg1 = (wxString *) &arg1_defvalue ;
25200 int arg2 = (int) 0 ;
25201 int arg3 = (int) 0 ;
25202 wxString const &arg4_defvalue = wxPyEmptyString ;
25203 wxString *arg4 = (wxString *) &arg4_defvalue ;
25204 wxMetaFileDC *result = 0 ;
25205 bool temp1 = false ;
25206 int val2 ;
25207 int ecode2 = 0 ;
25208 int val3 ;
25209 int ecode3 = 0 ;
25210 bool temp4 = false ;
25211 PyObject * obj0 = 0 ;
25212 PyObject * obj1 = 0 ;
25213 PyObject * obj2 = 0 ;
25214 PyObject * obj3 = 0 ;
25215 char * kwnames[] = {
25216 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25217 };
25218
25219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25220 if (obj0) {
25221 {
25222 arg1 = wxString_in_helper(obj0);
25223 if (arg1 == NULL) SWIG_fail;
25224 temp1 = true;
25225 }
25226 }
25227 if (obj1) {
25228 ecode2 = SWIG_AsVal_int(obj1, &val2);
25229 if (!SWIG_IsOK(ecode2)) {
25230 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25231 }
25232 arg2 = static_cast< int >(val2);
25233 }
25234 if (obj2) {
25235 ecode3 = SWIG_AsVal_int(obj2, &val3);
25236 if (!SWIG_IsOK(ecode3)) {
25237 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25238 }
25239 arg3 = static_cast< int >(val3);
25240 }
25241 if (obj3) {
25242 {
25243 arg4 = wxString_in_helper(obj3);
25244 if (arg4 == NULL) SWIG_fail;
25245 temp4 = true;
25246 }
25247 }
25248 {
25249 if (!wxPyCheckForApp()) SWIG_fail;
25250 PyThreadState* __tstate = wxPyBeginAllowThreads();
25251 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25252 wxPyEndAllowThreads(__tstate);
25253 if (PyErr_Occurred()) SWIG_fail;
25254 }
25255 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25256 {
25257 if (temp1)
25258 delete arg1;
25259 }
25260 {
25261 if (temp4)
25262 delete arg4;
25263 }
25264 return resultobj;
25265 fail:
25266 {
25267 if (temp1)
25268 delete arg1;
25269 }
25270 {
25271 if (temp4)
25272 delete arg4;
25273 }
25274 return NULL;
25275 }
25276
25277
25278 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25279 PyObject *resultobj = 0;
25280 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
25281 wxMetaFile *result = 0 ;
25282 void *argp1 = 0 ;
25283 int res1 = 0 ;
25284 PyObject *swig_obj[1] ;
25285
25286 if (!args) SWIG_fail;
25287 swig_obj[0] = args;
25288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
25289 if (!SWIG_IsOK(res1)) {
25290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
25291 }
25292 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
25293 {
25294 PyThreadState* __tstate = wxPyBeginAllowThreads();
25295 result = (wxMetaFile *)(arg1)->Close();
25296 wxPyEndAllowThreads(__tstate);
25297 if (PyErr_Occurred()) SWIG_fail;
25298 }
25299 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
25300 return resultobj;
25301 fail:
25302 return NULL;
25303 }
25304
25305
25306 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25307 PyObject *obj;
25308 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25309 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25310 return SWIG_Py_Void();
25311 }
25312
25313 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25314 return SWIG_Python_InitShadowInstance(args);
25315 }
25316
25317 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25318 PyObject *resultobj = 0;
25319 wxPrintData *arg1 = 0 ;
25320 wxPrinterDC *result = 0 ;
25321 void *argp1 = 0 ;
25322 int res1 = 0 ;
25323 PyObject * obj0 = 0 ;
25324 char * kwnames[] = {
25325 (char *) "printData", NULL
25326 };
25327
25328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25329 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25330 if (!SWIG_IsOK(res1)) {
25331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25332 }
25333 if (!argp1) {
25334 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25335 }
25336 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25337 {
25338 if (!wxPyCheckForApp()) SWIG_fail;
25339 PyThreadState* __tstate = wxPyBeginAllowThreads();
25340 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25341 wxPyEndAllowThreads(__tstate);
25342 if (PyErr_Occurred()) SWIG_fail;
25343 }
25344 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25345 return resultobj;
25346 fail:
25347 return NULL;
25348 }
25349
25350
25351 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25352 PyObject *obj;
25353 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25354 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25355 return SWIG_Py_Void();
25356 }
25357
25358 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25359 return SWIG_Python_InitShadowInstance(args);
25360 }
25361
25362 SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25363 PyObject *resultobj = 0;
25364 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
25365 wxGraphicsObject *result = 0 ;
25366 void *argp1 = 0 ;
25367 int res1 = 0 ;
25368 PyObject * obj0 = 0 ;
25369 char * kwnames[] = {
25370 (char *) "renderer", NULL
25371 };
25372
25373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
25374 if (obj0) {
25375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25376 if (!SWIG_IsOK(res1)) {
25377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
25378 }
25379 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
25380 }
25381 {
25382 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
25383 if (PyErr_Occurred()) SWIG_fail;
25384 }
25385 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
25386 return resultobj;
25387 fail:
25388 return NULL;
25389 }
25390
25391
25392 SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25393 PyObject *resultobj = 0;
25394 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25395 void *argp1 = 0 ;
25396 int res1 = 0 ;
25397 PyObject *swig_obj[1] ;
25398
25399 if (!args) SWIG_fail;
25400 swig_obj[0] = args;
25401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
25402 if (!SWIG_IsOK(res1)) {
25403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
25404 }
25405 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25406 {
25407 delete arg1;
25408
25409 if (PyErr_Occurred()) SWIG_fail;
25410 }
25411 resultobj = SWIG_Py_Void();
25412 return resultobj;
25413 fail:
25414 return NULL;
25415 }
25416
25417
25418 SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25419 PyObject *resultobj = 0;
25420 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25421 bool result;
25422 void *argp1 = 0 ;
25423 int res1 = 0 ;
25424 PyObject *swig_obj[1] ;
25425
25426 if (!args) SWIG_fail;
25427 swig_obj[0] = args;
25428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25429 if (!SWIG_IsOK(res1)) {
25430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25431 }
25432 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25433 {
25434 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
25435 if (PyErr_Occurred()) SWIG_fail;
25436 }
25437 {
25438 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25439 }
25440 return resultobj;
25441 fail:
25442 return NULL;
25443 }
25444
25445
25446 SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25447 PyObject *resultobj = 0;
25448 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25449 wxGraphicsRenderer *result = 0 ;
25450 void *argp1 = 0 ;
25451 int res1 = 0 ;
25452 PyObject *swig_obj[1] ;
25453
25454 if (!args) SWIG_fail;
25455 swig_obj[0] = args;
25456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25457 if (!SWIG_IsOK(res1)) {
25458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25459 }
25460 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25461 {
25462 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
25463 if (PyErr_Occurred()) SWIG_fail;
25464 }
25465 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25466 return resultobj;
25467 fail:
25468 return NULL;
25469 }
25470
25471
25472 SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25473 PyObject *obj;
25474 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25475 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
25476 return SWIG_Py_Void();
25477 }
25478
25479 SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25480 return SWIG_Python_InitShadowInstance(args);
25481 }
25482
25483 SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25484 PyObject *resultobj = 0;
25485 wxGraphicsPen *result = 0 ;
25486
25487 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
25488 {
25489 result = (wxGraphicsPen *)new wxGraphicsPen();
25490 if (PyErr_Occurred()) SWIG_fail;
25491 }
25492 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
25493 return resultobj;
25494 fail:
25495 return NULL;
25496 }
25497
25498
25499 SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25500 PyObject *resultobj = 0;
25501 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
25502 void *argp1 = 0 ;
25503 int res1 = 0 ;
25504 PyObject *swig_obj[1] ;
25505
25506 if (!args) SWIG_fail;
25507 swig_obj[0] = args;
25508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
25509 if (!SWIG_IsOK(res1)) {
25510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
25511 }
25512 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
25513 {
25514 delete arg1;
25515
25516 if (PyErr_Occurred()) SWIG_fail;
25517 }
25518 resultobj = SWIG_Py_Void();
25519 return resultobj;
25520 fail:
25521 return NULL;
25522 }
25523
25524
25525 SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25526 PyObject *obj;
25527 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25528 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
25529 return SWIG_Py_Void();
25530 }
25531
25532 SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25533 return SWIG_Python_InitShadowInstance(args);
25534 }
25535
25536 SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25537 PyObject *resultobj = 0;
25538 wxGraphicsBrush *result = 0 ;
25539
25540 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
25541 {
25542 result = (wxGraphicsBrush *)new wxGraphicsBrush();
25543 if (PyErr_Occurred()) SWIG_fail;
25544 }
25545 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
25546 return resultobj;
25547 fail:
25548 return NULL;
25549 }
25550
25551
25552 SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25553 PyObject *resultobj = 0;
25554 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
25555 void *argp1 = 0 ;
25556 int res1 = 0 ;
25557 PyObject *swig_obj[1] ;
25558
25559 if (!args) SWIG_fail;
25560 swig_obj[0] = args;
25561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
25562 if (!SWIG_IsOK(res1)) {
25563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
25564 }
25565 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
25566 {
25567 delete arg1;
25568
25569 if (PyErr_Occurred()) SWIG_fail;
25570 }
25571 resultobj = SWIG_Py_Void();
25572 return resultobj;
25573 fail:
25574 return NULL;
25575 }
25576
25577
25578 SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25579 PyObject *obj;
25580 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25581 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
25582 return SWIG_Py_Void();
25583 }
25584
25585 SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25586 return SWIG_Python_InitShadowInstance(args);
25587 }
25588
25589 SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25590 PyObject *resultobj = 0;
25591 wxGraphicsFont *result = 0 ;
25592
25593 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
25594 {
25595 result = (wxGraphicsFont *)new wxGraphicsFont();
25596 if (PyErr_Occurred()) SWIG_fail;
25597 }
25598 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
25599 return resultobj;
25600 fail:
25601 return NULL;
25602 }
25603
25604
25605 SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25606 PyObject *resultobj = 0;
25607 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
25608 void *argp1 = 0 ;
25609 int res1 = 0 ;
25610 PyObject *swig_obj[1] ;
25611
25612 if (!args) SWIG_fail;
25613 swig_obj[0] = args;
25614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
25615 if (!SWIG_IsOK(res1)) {
25616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
25617 }
25618 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
25619 {
25620 delete arg1;
25621
25622 if (PyErr_Occurred()) SWIG_fail;
25623 }
25624 resultobj = SWIG_Py_Void();
25625 return resultobj;
25626 fail:
25627 return NULL;
25628 }
25629
25630
25631 SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25632 PyObject *obj;
25633 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25634 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
25635 return SWIG_Py_Void();
25636 }
25637
25638 SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25639 return SWIG_Python_InitShadowInstance(args);
25640 }
25641
25642 SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25643 PyObject *resultobj = 0;
25644 wxGraphicsMatrix *result = 0 ;
25645
25646 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail;
25647 {
25648 result = (wxGraphicsMatrix *)new wxGraphicsMatrix();
25649 if (PyErr_Occurred()) SWIG_fail;
25650 }
25651 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 );
25652 return resultobj;
25653 fail:
25654 return NULL;
25655 }
25656
25657
25658 SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25659 PyObject *resultobj = 0;
25660 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25661 void *argp1 = 0 ;
25662 int res1 = 0 ;
25663 PyObject *swig_obj[1] ;
25664
25665 if (!args) SWIG_fail;
25666 swig_obj[0] = args;
25667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
25668 if (!SWIG_IsOK(res1)) {
25669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25670 }
25671 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25672 {
25673 delete arg1;
25674
25675 if (PyErr_Occurred()) SWIG_fail;
25676 }
25677 resultobj = SWIG_Py_Void();
25678 return resultobj;
25679 fail:
25680 return NULL;
25681 }
25682
25683
25684 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25685 PyObject *resultobj = 0;
25686 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25687 wxGraphicsMatrix *arg2 = 0 ;
25688 void *argp1 = 0 ;
25689 int res1 = 0 ;
25690 void *argp2 = 0 ;
25691 int res2 = 0 ;
25692 PyObject * obj0 = 0 ;
25693 PyObject * obj1 = 0 ;
25694 char * kwnames[] = {
25695 (char *) "self",(char *) "t", NULL
25696 };
25697
25698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
25699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25700 if (!SWIG_IsOK(res1)) {
25701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25702 }
25703 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25704 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25705 if (!SWIG_IsOK(res2)) {
25706 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25707 }
25708 if (!argp2) {
25709 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25710 }
25711 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
25712 {
25713 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
25714 if (PyErr_Occurred()) SWIG_fail;
25715 }
25716 resultobj = SWIG_Py_Void();
25717 return resultobj;
25718 fail:
25719 return NULL;
25720 }
25721
25722
25723 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25724 PyObject *resultobj = 0;
25725 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25726 wxGraphicsMatrix *arg2 = 0 ;
25727 void *argp1 = 0 ;
25728 int res1 = 0 ;
25729 void *argp2 = 0 ;
25730 int res2 = 0 ;
25731 PyObject * obj0 = 0 ;
25732 PyObject * obj1 = 0 ;
25733 char * kwnames[] = {
25734 (char *) "self",(char *) "t", NULL
25735 };
25736
25737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Copy",kwnames,&obj0,&obj1)) SWIG_fail;
25738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25739 if (!SWIG_IsOK(res1)) {
25740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Copy" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25741 }
25742 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25743 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25744 if (!SWIG_IsOK(res2)) {
25745 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Copy" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25746 }
25747 if (!argp2) {
25748 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Copy" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25749 }
25750 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
25751 {
25752 wxGraphicsMatrix_Copy(arg1,(wxGraphicsMatrix const &)*arg2);
25753 if (PyErr_Occurred()) SWIG_fail;
25754 }
25755 resultobj = SWIG_Py_Void();
25756 return resultobj;
25757 fail:
25758 return NULL;
25759 }
25760
25761
25762 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25763 PyObject *resultobj = 0;
25764 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25765 wxDouble arg2 = (wxDouble) 1.0 ;
25766 wxDouble arg3 = (wxDouble) 0.0 ;
25767 wxDouble arg4 = (wxDouble) 0.0 ;
25768 wxDouble arg5 = (wxDouble) 1.0 ;
25769 wxDouble arg6 = (wxDouble) 0.0 ;
25770 wxDouble arg7 = (wxDouble) 0.0 ;
25771 void *argp1 = 0 ;
25772 int res1 = 0 ;
25773 double val2 ;
25774 int ecode2 = 0 ;
25775 double val3 ;
25776 int ecode3 = 0 ;
25777 double val4 ;
25778 int ecode4 = 0 ;
25779 double val5 ;
25780 int ecode5 = 0 ;
25781 double val6 ;
25782 int ecode6 = 0 ;
25783 double val7 ;
25784 int ecode7 = 0 ;
25785 PyObject * obj0 = 0 ;
25786 PyObject * obj1 = 0 ;
25787 PyObject * obj2 = 0 ;
25788 PyObject * obj3 = 0 ;
25789 PyObject * obj4 = 0 ;
25790 PyObject * obj5 = 0 ;
25791 PyObject * obj6 = 0 ;
25792 char * kwnames[] = {
25793 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
25794 };
25795
25796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25798 if (!SWIG_IsOK(res1)) {
25799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25800 }
25801 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25802 if (obj1) {
25803 ecode2 = SWIG_AsVal_double(obj1, &val2);
25804 if (!SWIG_IsOK(ecode2)) {
25805 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
25806 }
25807 arg2 = static_cast< wxDouble >(val2);
25808 }
25809 if (obj2) {
25810 ecode3 = SWIG_AsVal_double(obj2, &val3);
25811 if (!SWIG_IsOK(ecode3)) {
25812 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
25813 }
25814 arg3 = static_cast< wxDouble >(val3);
25815 }
25816 if (obj3) {
25817 ecode4 = SWIG_AsVal_double(obj3, &val4);
25818 if (!SWIG_IsOK(ecode4)) {
25819 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
25820 }
25821 arg4 = static_cast< wxDouble >(val4);
25822 }
25823 if (obj4) {
25824 ecode5 = SWIG_AsVal_double(obj4, &val5);
25825 if (!SWIG_IsOK(ecode5)) {
25826 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
25827 }
25828 arg5 = static_cast< wxDouble >(val5);
25829 }
25830 if (obj5) {
25831 ecode6 = SWIG_AsVal_double(obj5, &val6);
25832 if (!SWIG_IsOK(ecode6)) {
25833 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
25834 }
25835 arg6 = static_cast< wxDouble >(val6);
25836 }
25837 if (obj6) {
25838 ecode7 = SWIG_AsVal_double(obj6, &val7);
25839 if (!SWIG_IsOK(ecode7)) {
25840 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
25841 }
25842 arg7 = static_cast< wxDouble >(val7);
25843 }
25844 {
25845 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
25846 if (PyErr_Occurred()) SWIG_fail;
25847 }
25848 resultobj = SWIG_Py_Void();
25849 return resultobj;
25850 fail:
25851 return NULL;
25852 }
25853
25854
25855 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25856 PyObject *resultobj = 0;
25857 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25858 void *argp1 = 0 ;
25859 int res1 = 0 ;
25860 PyObject *swig_obj[1] ;
25861
25862 if (!args) SWIG_fail;
25863 swig_obj[0] = args;
25864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25865 if (!SWIG_IsOK(res1)) {
25866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25867 }
25868 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25869 {
25870 (arg1)->Invert();
25871 if (PyErr_Occurred()) SWIG_fail;
25872 }
25873 resultobj = SWIG_Py_Void();
25874 return resultobj;
25875 fail:
25876 return NULL;
25877 }
25878
25879
25880 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25881 PyObject *resultobj = 0;
25882 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25883 wxGraphicsMatrix *arg2 = 0 ;
25884 bool result;
25885 void *argp1 = 0 ;
25886 int res1 = 0 ;
25887 void *argp2 = 0 ;
25888 int res2 = 0 ;
25889 PyObject * obj0 = 0 ;
25890 PyObject * obj1 = 0 ;
25891 char * kwnames[] = {
25892 (char *) "self",(char *) "t", NULL
25893 };
25894
25895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
25896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25897 if (!SWIG_IsOK(res1)) {
25898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
25899 }
25900 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25901 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25902 if (!SWIG_IsOK(res2)) {
25903 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25904 }
25905 if (!argp2) {
25906 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25907 }
25908 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
25909 {
25910 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
25911 if (PyErr_Occurred()) SWIG_fail;
25912 }
25913 {
25914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25915 }
25916 return resultobj;
25917 fail:
25918 return NULL;
25919 }
25920
25921
25922 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25923 PyObject *resultobj = 0;
25924 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25925 bool result;
25926 void *argp1 = 0 ;
25927 int res1 = 0 ;
25928 PyObject *swig_obj[1] ;
25929
25930 if (!args) SWIG_fail;
25931 swig_obj[0] = args;
25932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25933 if (!SWIG_IsOK(res1)) {
25934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
25935 }
25936 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25937 {
25938 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
25939 if (PyErr_Occurred()) SWIG_fail;
25940 }
25941 {
25942 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25943 }
25944 return resultobj;
25945 fail:
25946 return NULL;
25947 }
25948
25949
25950 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25951 PyObject *resultobj = 0;
25952 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25953 wxDouble arg2 ;
25954 wxDouble arg3 ;
25955 void *argp1 = 0 ;
25956 int res1 = 0 ;
25957 double val2 ;
25958 int ecode2 = 0 ;
25959 double val3 ;
25960 int ecode3 = 0 ;
25961 PyObject * obj0 = 0 ;
25962 PyObject * obj1 = 0 ;
25963 PyObject * obj2 = 0 ;
25964 char * kwnames[] = {
25965 (char *) "self",(char *) "dx",(char *) "dy", NULL
25966 };
25967
25968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25970 if (!SWIG_IsOK(res1)) {
25971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25972 }
25973 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25974 ecode2 = SWIG_AsVal_double(obj1, &val2);
25975 if (!SWIG_IsOK(ecode2)) {
25976 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
25977 }
25978 arg2 = static_cast< wxDouble >(val2);
25979 ecode3 = SWIG_AsVal_double(obj2, &val3);
25980 if (!SWIG_IsOK(ecode3)) {
25981 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
25982 }
25983 arg3 = static_cast< wxDouble >(val3);
25984 {
25985 (arg1)->Translate(arg2,arg3);
25986 if (PyErr_Occurred()) SWIG_fail;
25987 }
25988 resultobj = SWIG_Py_Void();
25989 return resultobj;
25990 fail:
25991 return NULL;
25992 }
25993
25994
25995 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25996 PyObject *resultobj = 0;
25997 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25998 wxDouble arg2 ;
25999 wxDouble arg3 ;
26000 void *argp1 = 0 ;
26001 int res1 = 0 ;
26002 double val2 ;
26003 int ecode2 = 0 ;
26004 double val3 ;
26005 int ecode3 = 0 ;
26006 PyObject * obj0 = 0 ;
26007 PyObject * obj1 = 0 ;
26008 PyObject * obj2 = 0 ;
26009 char * kwnames[] = {
26010 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
26011 };
26012
26013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26015 if (!SWIG_IsOK(res1)) {
26016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26017 }
26018 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26019 ecode2 = SWIG_AsVal_double(obj1, &val2);
26020 if (!SWIG_IsOK(ecode2)) {
26021 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
26022 }
26023 arg2 = static_cast< wxDouble >(val2);
26024 ecode3 = SWIG_AsVal_double(obj2, &val3);
26025 if (!SWIG_IsOK(ecode3)) {
26026 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
26027 }
26028 arg3 = static_cast< wxDouble >(val3);
26029 {
26030 (arg1)->Scale(arg2,arg3);
26031 if (PyErr_Occurred()) SWIG_fail;
26032 }
26033 resultobj = SWIG_Py_Void();
26034 return resultobj;
26035 fail:
26036 return NULL;
26037 }
26038
26039
26040 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26041 PyObject *resultobj = 0;
26042 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26043 wxDouble arg2 ;
26044 void *argp1 = 0 ;
26045 int res1 = 0 ;
26046 double val2 ;
26047 int ecode2 = 0 ;
26048 PyObject * obj0 = 0 ;
26049 PyObject * obj1 = 0 ;
26050 char * kwnames[] = {
26051 (char *) "self",(char *) "angle", NULL
26052 };
26053
26054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
26055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26056 if (!SWIG_IsOK(res1)) {
26057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26058 }
26059 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26060 ecode2 = SWIG_AsVal_double(obj1, &val2);
26061 if (!SWIG_IsOK(ecode2)) {
26062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
26063 }
26064 arg2 = static_cast< wxDouble >(val2);
26065 {
26066 (arg1)->Rotate(arg2);
26067 if (PyErr_Occurred()) SWIG_fail;
26068 }
26069 resultobj = SWIG_Py_Void();
26070 return resultobj;
26071 fail:
26072 return NULL;
26073 }
26074
26075
26076 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26077 PyObject *resultobj = 0;
26078 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26079 wxDouble *arg2 = (wxDouble *) 0 ;
26080 wxDouble *arg3 = (wxDouble *) 0 ;
26081 void *argp1 = 0 ;
26082 int res1 = 0 ;
26083 wxDouble temp2 ;
26084 int res2 = 0 ;
26085 wxDouble temp3 ;
26086 int res3 = 0 ;
26087 PyObject * obj0 = 0 ;
26088 PyObject * obj1 = 0 ;
26089 PyObject * obj2 = 0 ;
26090 char * kwnames[] = {
26091 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26092 };
26093
26094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26096 if (!SWIG_IsOK(res1)) {
26097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26098 }
26099 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26100 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26101 double val;
26102 int ecode = SWIG_AsVal_double(obj1, &val);
26103 if (!SWIG_IsOK(ecode)) {
26104 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26105 }
26106 temp2 = static_cast< wxDouble >(val);
26107 arg2 = &temp2;
26108 res2 = SWIG_AddTmpMask(ecode);
26109 }
26110 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26111 double val;
26112 int ecode = SWIG_AsVal_double(obj2, &val);
26113 if (!SWIG_IsOK(ecode)) {
26114 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26115 }
26116 temp3 = static_cast< wxDouble >(val);
26117 arg3 = &temp3;
26118 res3 = SWIG_AddTmpMask(ecode);
26119 }
26120 {
26121 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
26122 if (PyErr_Occurred()) SWIG_fail;
26123 }
26124 resultobj = SWIG_Py_Void();
26125 if (SWIG_IsTmpObj(res2)) {
26126 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26127 } else {
26128 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26129 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26130 }
26131 if (SWIG_IsTmpObj(res3)) {
26132 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26133 } else {
26134 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26135 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26136 }
26137 return resultobj;
26138 fail:
26139 return NULL;
26140 }
26141
26142
26143 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26144 PyObject *resultobj = 0;
26145 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26146 wxDouble *arg2 = (wxDouble *) 0 ;
26147 wxDouble *arg3 = (wxDouble *) 0 ;
26148 void *argp1 = 0 ;
26149 int res1 = 0 ;
26150 wxDouble temp2 ;
26151 int res2 = 0 ;
26152 wxDouble temp3 ;
26153 int res3 = 0 ;
26154 PyObject * obj0 = 0 ;
26155 PyObject * obj1 = 0 ;
26156 PyObject * obj2 = 0 ;
26157 char * kwnames[] = {
26158 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26159 };
26160
26161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26163 if (!SWIG_IsOK(res1)) {
26164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26165 }
26166 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26167 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26168 double val;
26169 int ecode = SWIG_AsVal_double(obj1, &val);
26170 if (!SWIG_IsOK(ecode)) {
26171 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
26172 }
26173 temp2 = static_cast< wxDouble >(val);
26174 arg2 = &temp2;
26175 res2 = SWIG_AddTmpMask(ecode);
26176 }
26177 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26178 double val;
26179 int ecode = SWIG_AsVal_double(obj2, &val);
26180 if (!SWIG_IsOK(ecode)) {
26181 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
26182 }
26183 temp3 = static_cast< wxDouble >(val);
26184 arg3 = &temp3;
26185 res3 = SWIG_AddTmpMask(ecode);
26186 }
26187 {
26188 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
26189 if (PyErr_Occurred()) SWIG_fail;
26190 }
26191 resultobj = SWIG_Py_Void();
26192 if (SWIG_IsTmpObj(res2)) {
26193 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26194 } else {
26195 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26196 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26197 }
26198 if (SWIG_IsTmpObj(res3)) {
26199 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26200 } else {
26201 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26202 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26203 }
26204 return resultobj;
26205 fail:
26206 return NULL;
26207 }
26208
26209
26210 SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26211 PyObject *resultobj = 0;
26212 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26213 void *result = 0 ;
26214 void *argp1 = 0 ;
26215 int res1 = 0 ;
26216 PyObject *swig_obj[1] ;
26217
26218 if (!args) SWIG_fail;
26219 swig_obj[0] = args;
26220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26221 if (!SWIG_IsOK(res1)) {
26222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26223 }
26224 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26225 {
26226 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
26227 if (PyErr_Occurred()) SWIG_fail;
26228 }
26229 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26230 return resultobj;
26231 fail:
26232 return NULL;
26233 }
26234
26235
26236 SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26237 PyObject *obj;
26238 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26239 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
26240 return SWIG_Py_Void();
26241 }
26242
26243 SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26244 return SWIG_Python_InitShadowInstance(args);
26245 }
26246
26247 SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26248 PyObject *resultobj = 0;
26249 wxGraphicsPath *result = 0 ;
26250
26251 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail;
26252 {
26253 if (!wxPyCheckForApp()) SWIG_fail;
26254 PyThreadState* __tstate = wxPyBeginAllowThreads();
26255 result = (wxGraphicsPath *)new wxGraphicsPath();
26256 wxPyEndAllowThreads(__tstate);
26257 if (PyErr_Occurred()) SWIG_fail;
26258 }
26259 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 );
26260 return resultobj;
26261 fail:
26262 return NULL;
26263 }
26264
26265
26266 SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26267 PyObject *resultobj = 0;
26268 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26269 void *argp1 = 0 ;
26270 int res1 = 0 ;
26271 PyObject *swig_obj[1] ;
26272
26273 if (!args) SWIG_fail;
26274 swig_obj[0] = args;
26275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
26276 if (!SWIG_IsOK(res1)) {
26277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26278 }
26279 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26280 {
26281 delete arg1;
26282
26283 if (PyErr_Occurred()) SWIG_fail;
26284 }
26285 resultobj = SWIG_Py_Void();
26286 return resultobj;
26287 fail:
26288 return NULL;
26289 }
26290
26291
26292 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26293 PyObject *resultobj = 0;
26294 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26295 wxDouble arg2 ;
26296 wxDouble arg3 ;
26297 void *argp1 = 0 ;
26298 int res1 = 0 ;
26299 double val2 ;
26300 int ecode2 = 0 ;
26301 double val3 ;
26302 int ecode3 = 0 ;
26303
26304 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26306 if (!SWIG_IsOK(res1)) {
26307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26308 }
26309 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26310 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26311 if (!SWIG_IsOK(ecode2)) {
26312 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26313 }
26314 arg2 = static_cast< wxDouble >(val2);
26315 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26316 if (!SWIG_IsOK(ecode3)) {
26317 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26318 }
26319 arg3 = static_cast< wxDouble >(val3);
26320 {
26321 (arg1)->MoveToPoint(arg2,arg3);
26322 if (PyErr_Occurred()) SWIG_fail;
26323 }
26324 resultobj = SWIG_Py_Void();
26325 return resultobj;
26326 fail:
26327 return NULL;
26328 }
26329
26330
26331 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26332 PyObject *resultobj = 0;
26333 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26334 wxPoint2D *arg2 = 0 ;
26335 void *argp1 = 0 ;
26336 int res1 = 0 ;
26337 wxPoint2D temp2 ;
26338
26339 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26341 if (!SWIG_IsOK(res1)) {
26342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26343 }
26344 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26345 {
26346 arg2 = &temp2;
26347 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26348 }
26349 {
26350 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
26351 if (PyErr_Occurred()) SWIG_fail;
26352 }
26353 resultobj = SWIG_Py_Void();
26354 return resultobj;
26355 fail:
26356 return NULL;
26357 }
26358
26359
26360 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
26361 int argc;
26362 PyObject *argv[4];
26363
26364 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
26365 --argc;
26366 if (argc == 2) {
26367 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
26368 }
26369 if (argc == 3) {
26370 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
26371 }
26372
26373 fail:
26374 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
26375 return NULL;
26376 }
26377
26378
26379 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26380 PyObject *resultobj = 0;
26381 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26382 wxDouble arg2 ;
26383 wxDouble arg3 ;
26384 void *argp1 = 0 ;
26385 int res1 = 0 ;
26386 double val2 ;
26387 int ecode2 = 0 ;
26388 double val3 ;
26389 int ecode3 = 0 ;
26390
26391 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26393 if (!SWIG_IsOK(res1)) {
26394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26395 }
26396 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26397 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26398 if (!SWIG_IsOK(ecode2)) {
26399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26400 }
26401 arg2 = static_cast< wxDouble >(val2);
26402 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26403 if (!SWIG_IsOK(ecode3)) {
26404 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26405 }
26406 arg3 = static_cast< wxDouble >(val3);
26407 {
26408 (arg1)->AddLineToPoint(arg2,arg3);
26409 if (PyErr_Occurred()) SWIG_fail;
26410 }
26411 resultobj = SWIG_Py_Void();
26412 return resultobj;
26413 fail:
26414 return NULL;
26415 }
26416
26417
26418 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26419 PyObject *resultobj = 0;
26420 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26421 wxPoint2D *arg2 = 0 ;
26422 void *argp1 = 0 ;
26423 int res1 = 0 ;
26424 wxPoint2D temp2 ;
26425
26426 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26428 if (!SWIG_IsOK(res1)) {
26429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26430 }
26431 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26432 {
26433 arg2 = &temp2;
26434 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26435 }
26436 {
26437 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
26438 if (PyErr_Occurred()) SWIG_fail;
26439 }
26440 resultobj = SWIG_Py_Void();
26441 return resultobj;
26442 fail:
26443 return NULL;
26444 }
26445
26446
26447 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
26448 int argc;
26449 PyObject *argv[4];
26450
26451 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
26452 --argc;
26453 if (argc == 2) {
26454 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
26455 }
26456 if (argc == 3) {
26457 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
26458 }
26459
26460 fail:
26461 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
26462 return NULL;
26463 }
26464
26465
26466 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26467 PyObject *resultobj = 0;
26468 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26469 wxDouble arg2 ;
26470 wxDouble arg3 ;
26471 wxDouble arg4 ;
26472 wxDouble arg5 ;
26473 wxDouble arg6 ;
26474 wxDouble arg7 ;
26475 void *argp1 = 0 ;
26476 int res1 = 0 ;
26477 double val2 ;
26478 int ecode2 = 0 ;
26479 double val3 ;
26480 int ecode3 = 0 ;
26481 double val4 ;
26482 int ecode4 = 0 ;
26483 double val5 ;
26484 int ecode5 = 0 ;
26485 double val6 ;
26486 int ecode6 = 0 ;
26487 double val7 ;
26488 int ecode7 = 0 ;
26489
26490 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
26491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26492 if (!SWIG_IsOK(res1)) {
26493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26494 }
26495 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26496 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26497 if (!SWIG_IsOK(ecode2)) {
26498 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26499 }
26500 arg2 = static_cast< wxDouble >(val2);
26501 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26502 if (!SWIG_IsOK(ecode3)) {
26503 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26504 }
26505 arg3 = static_cast< wxDouble >(val3);
26506 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26507 if (!SWIG_IsOK(ecode4)) {
26508 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26509 }
26510 arg4 = static_cast< wxDouble >(val4);
26511 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26512 if (!SWIG_IsOK(ecode5)) {
26513 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26514 }
26515 arg5 = static_cast< wxDouble >(val5);
26516 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
26517 if (!SWIG_IsOK(ecode6)) {
26518 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
26519 }
26520 arg6 = static_cast< wxDouble >(val6);
26521 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
26522 if (!SWIG_IsOK(ecode7)) {
26523 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
26524 }
26525 arg7 = static_cast< wxDouble >(val7);
26526 {
26527 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
26528 if (PyErr_Occurred()) SWIG_fail;
26529 }
26530 resultobj = SWIG_Py_Void();
26531 return resultobj;
26532 fail:
26533 return NULL;
26534 }
26535
26536
26537 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26538 PyObject *resultobj = 0;
26539 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26540 wxPoint2D *arg2 = 0 ;
26541 wxPoint2D *arg3 = 0 ;
26542 wxPoint2D *arg4 = 0 ;
26543 void *argp1 = 0 ;
26544 int res1 = 0 ;
26545 wxPoint2D temp2 ;
26546 wxPoint2D temp3 ;
26547 wxPoint2D temp4 ;
26548
26549 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
26550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26551 if (!SWIG_IsOK(res1)) {
26552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26553 }
26554 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26555 {
26556 arg2 = &temp2;
26557 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26558 }
26559 {
26560 arg3 = &temp3;
26561 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
26562 }
26563 {
26564 arg4 = &temp4;
26565 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
26566 }
26567 {
26568 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
26569 if (PyErr_Occurred()) SWIG_fail;
26570 }
26571 resultobj = SWIG_Py_Void();
26572 return resultobj;
26573 fail:
26574 return NULL;
26575 }
26576
26577
26578 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
26579 int argc;
26580 PyObject *argv[8];
26581
26582 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
26583 --argc;
26584 if (argc == 4) {
26585 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
26586 }
26587 if (argc == 7) {
26588 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
26589 }
26590
26591 fail:
26592 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
26593 return NULL;
26594 }
26595
26596
26597 SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26598 PyObject *resultobj = 0;
26599 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26600 wxGraphicsPath *arg2 = 0 ;
26601 void *argp1 = 0 ;
26602 int res1 = 0 ;
26603 void *argp2 = 0 ;
26604 int res2 = 0 ;
26605 PyObject * obj0 = 0 ;
26606 PyObject * obj1 = 0 ;
26607 char * kwnames[] = {
26608 (char *) "self",(char *) "path", NULL
26609 };
26610
26611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
26612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26613 if (!SWIG_IsOK(res1)) {
26614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26615 }
26616 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26617 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
26618 if (!SWIG_IsOK(res2)) {
26619 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
26620 }
26621 if (!argp2) {
26622 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
26623 }
26624 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
26625 {
26626 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
26627 if (PyErr_Occurred()) SWIG_fail;
26628 }
26629 resultobj = SWIG_Py_Void();
26630 return resultobj;
26631 fail:
26632 return NULL;
26633 }
26634
26635
26636 SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26637 PyObject *resultobj = 0;
26638 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26639 void *argp1 = 0 ;
26640 int res1 = 0 ;
26641 PyObject *swig_obj[1] ;
26642
26643 if (!args) SWIG_fail;
26644 swig_obj[0] = args;
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_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26648 }
26649 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26650 {
26651 (arg1)->CloseSubpath();
26652 if (PyErr_Occurred()) SWIG_fail;
26653 }
26654 resultobj = SWIG_Py_Void();
26655 return resultobj;
26656 fail:
26657 return NULL;
26658 }
26659
26660
26661 SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26662 PyObject *resultobj = 0;
26663 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26664 wxPoint2D result;
26665 void *argp1 = 0 ;
26666 int res1 = 0 ;
26667 PyObject *swig_obj[1] ;
26668
26669 if (!args) SWIG_fail;
26670 swig_obj[0] = args;
26671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26672 if (!SWIG_IsOK(res1)) {
26673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
26674 }
26675 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26676 {
26677 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
26678 if (PyErr_Occurred()) SWIG_fail;
26679 }
26680 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
26681 return resultobj;
26682 fail:
26683 return NULL;
26684 }
26685
26686
26687 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26688 PyObject *resultobj = 0;
26689 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26690 wxDouble arg2 ;
26691 wxDouble arg3 ;
26692 wxDouble arg4 ;
26693 wxDouble arg5 ;
26694 wxDouble arg6 ;
26695 bool arg7 ;
26696 void *argp1 = 0 ;
26697 int res1 = 0 ;
26698 double val2 ;
26699 int ecode2 = 0 ;
26700 double val3 ;
26701 int ecode3 = 0 ;
26702 double val4 ;
26703 int ecode4 = 0 ;
26704 double val5 ;
26705 int ecode5 = 0 ;
26706 double val6 ;
26707 int ecode6 = 0 ;
26708 bool val7 ;
26709 int ecode7 = 0 ;
26710
26711 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
26712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26713 if (!SWIG_IsOK(res1)) {
26714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26715 }
26716 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26717 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26718 if (!SWIG_IsOK(ecode2)) {
26719 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
26720 }
26721 arg2 = static_cast< wxDouble >(val2);
26722 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26723 if (!SWIG_IsOK(ecode3)) {
26724 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
26725 }
26726 arg3 = static_cast< wxDouble >(val3);
26727 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26728 if (!SWIG_IsOK(ecode4)) {
26729 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26730 }
26731 arg4 = static_cast< wxDouble >(val4);
26732 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26733 if (!SWIG_IsOK(ecode5)) {
26734 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26735 }
26736 arg5 = static_cast< wxDouble >(val5);
26737 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
26738 if (!SWIG_IsOK(ecode6)) {
26739 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
26740 }
26741 arg6 = static_cast< wxDouble >(val6);
26742 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
26743 if (!SWIG_IsOK(ecode7)) {
26744 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
26745 }
26746 arg7 = static_cast< bool >(val7);
26747 {
26748 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
26749 if (PyErr_Occurred()) SWIG_fail;
26750 }
26751 resultobj = SWIG_Py_Void();
26752 return resultobj;
26753 fail:
26754 return NULL;
26755 }
26756
26757
26758 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26759 PyObject *resultobj = 0;
26760 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26761 wxPoint2D *arg2 = 0 ;
26762 wxDouble arg3 ;
26763 wxDouble arg4 ;
26764 wxDouble arg5 ;
26765 bool arg6 ;
26766 void *argp1 = 0 ;
26767 int res1 = 0 ;
26768 wxPoint2D temp2 ;
26769 double val3 ;
26770 int ecode3 = 0 ;
26771 double val4 ;
26772 int ecode4 = 0 ;
26773 double val5 ;
26774 int ecode5 = 0 ;
26775 bool val6 ;
26776 int ecode6 = 0 ;
26777
26778 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
26779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26780 if (!SWIG_IsOK(res1)) {
26781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26782 }
26783 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26784 {
26785 arg2 = &temp2;
26786 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26787 }
26788 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26789 if (!SWIG_IsOK(ecode3)) {
26790 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
26791 }
26792 arg3 = static_cast< wxDouble >(val3);
26793 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26794 if (!SWIG_IsOK(ecode4)) {
26795 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26796 }
26797 arg4 = static_cast< wxDouble >(val4);
26798 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26799 if (!SWIG_IsOK(ecode5)) {
26800 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26801 }
26802 arg5 = static_cast< wxDouble >(val5);
26803 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
26804 if (!SWIG_IsOK(ecode6)) {
26805 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
26806 }
26807 arg6 = static_cast< bool >(val6);
26808 {
26809 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
26810 if (PyErr_Occurred()) SWIG_fail;
26811 }
26812 resultobj = SWIG_Py_Void();
26813 return resultobj;
26814 fail:
26815 return NULL;
26816 }
26817
26818
26819 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
26820 int argc;
26821 PyObject *argv[8];
26822
26823 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
26824 --argc;
26825 if (argc == 6) {
26826 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
26827 }
26828 if (argc == 7) {
26829 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
26830 }
26831
26832 fail:
26833 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
26834 return NULL;
26835 }
26836
26837
26838 SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26839 PyObject *resultobj = 0;
26840 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26841 wxDouble arg2 ;
26842 wxDouble arg3 ;
26843 wxDouble arg4 ;
26844 wxDouble arg5 ;
26845 void *argp1 = 0 ;
26846 int res1 = 0 ;
26847 double val2 ;
26848 int ecode2 = 0 ;
26849 double val3 ;
26850 int ecode3 = 0 ;
26851 double val4 ;
26852 int ecode4 = 0 ;
26853 double val5 ;
26854 int ecode5 = 0 ;
26855 PyObject * obj0 = 0 ;
26856 PyObject * obj1 = 0 ;
26857 PyObject * obj2 = 0 ;
26858 PyObject * obj3 = 0 ;
26859 PyObject * obj4 = 0 ;
26860 char * kwnames[] = {
26861 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
26862 };
26863
26864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26866 if (!SWIG_IsOK(res1)) {
26867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26868 }
26869 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26870 ecode2 = SWIG_AsVal_double(obj1, &val2);
26871 if (!SWIG_IsOK(ecode2)) {
26872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26873 }
26874 arg2 = static_cast< wxDouble >(val2);
26875 ecode3 = SWIG_AsVal_double(obj2, &val3);
26876 if (!SWIG_IsOK(ecode3)) {
26877 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26878 }
26879 arg3 = static_cast< wxDouble >(val3);
26880 ecode4 = SWIG_AsVal_double(obj3, &val4);
26881 if (!SWIG_IsOK(ecode4)) {
26882 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26883 }
26884 arg4 = static_cast< wxDouble >(val4);
26885 ecode5 = SWIG_AsVal_double(obj4, &val5);
26886 if (!SWIG_IsOK(ecode5)) {
26887 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26888 }
26889 arg5 = static_cast< wxDouble >(val5);
26890 {
26891 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
26892 if (PyErr_Occurred()) SWIG_fail;
26893 }
26894 resultobj = SWIG_Py_Void();
26895 return resultobj;
26896 fail:
26897 return NULL;
26898 }
26899
26900
26901 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26902 PyObject *resultobj = 0;
26903 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26904 wxDouble arg2 ;
26905 wxDouble arg3 ;
26906 wxDouble arg4 ;
26907 wxDouble arg5 ;
26908 void *argp1 = 0 ;
26909 int res1 = 0 ;
26910 double val2 ;
26911 int ecode2 = 0 ;
26912 double val3 ;
26913 int ecode3 = 0 ;
26914 double val4 ;
26915 int ecode4 = 0 ;
26916 double val5 ;
26917 int ecode5 = 0 ;
26918 PyObject * obj0 = 0 ;
26919 PyObject * obj1 = 0 ;
26920 PyObject * obj2 = 0 ;
26921 PyObject * obj3 = 0 ;
26922 PyObject * obj4 = 0 ;
26923 char * kwnames[] = {
26924 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26925 };
26926
26927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26929 if (!SWIG_IsOK(res1)) {
26930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26931 }
26932 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26933 ecode2 = SWIG_AsVal_double(obj1, &val2);
26934 if (!SWIG_IsOK(ecode2)) {
26935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26936 }
26937 arg2 = static_cast< wxDouble >(val2);
26938 ecode3 = SWIG_AsVal_double(obj2, &val3);
26939 if (!SWIG_IsOK(ecode3)) {
26940 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26941 }
26942 arg3 = static_cast< wxDouble >(val3);
26943 ecode4 = SWIG_AsVal_double(obj3, &val4);
26944 if (!SWIG_IsOK(ecode4)) {
26945 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26946 }
26947 arg4 = static_cast< wxDouble >(val4);
26948 ecode5 = SWIG_AsVal_double(obj4, &val5);
26949 if (!SWIG_IsOK(ecode5)) {
26950 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26951 }
26952 arg5 = static_cast< wxDouble >(val5);
26953 {
26954 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
26955 if (PyErr_Occurred()) SWIG_fail;
26956 }
26957 resultobj = SWIG_Py_Void();
26958 return resultobj;
26959 fail:
26960 return NULL;
26961 }
26962
26963
26964 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26965 PyObject *resultobj = 0;
26966 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26967 wxDouble arg2 ;
26968 wxDouble arg3 ;
26969 wxDouble arg4 ;
26970 void *argp1 = 0 ;
26971 int res1 = 0 ;
26972 double val2 ;
26973 int ecode2 = 0 ;
26974 double val3 ;
26975 int ecode3 = 0 ;
26976 double val4 ;
26977 int ecode4 = 0 ;
26978 PyObject * obj0 = 0 ;
26979 PyObject * obj1 = 0 ;
26980 PyObject * obj2 = 0 ;
26981 PyObject * obj3 = 0 ;
26982 char * kwnames[] = {
26983 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
26984 };
26985
26986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26988 if (!SWIG_IsOK(res1)) {
26989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26990 }
26991 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26992 ecode2 = SWIG_AsVal_double(obj1, &val2);
26993 if (!SWIG_IsOK(ecode2)) {
26994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
26995 }
26996 arg2 = static_cast< wxDouble >(val2);
26997 ecode3 = SWIG_AsVal_double(obj2, &val3);
26998 if (!SWIG_IsOK(ecode3)) {
26999 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
27000 }
27001 arg3 = static_cast< wxDouble >(val3);
27002 ecode4 = SWIG_AsVal_double(obj3, &val4);
27003 if (!SWIG_IsOK(ecode4)) {
27004 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
27005 }
27006 arg4 = static_cast< wxDouble >(val4);
27007 {
27008 (arg1)->AddCircle(arg2,arg3,arg4);
27009 if (PyErr_Occurred()) SWIG_fail;
27010 }
27011 resultobj = SWIG_Py_Void();
27012 return resultobj;
27013 fail:
27014 return NULL;
27015 }
27016
27017
27018 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27019 PyObject *resultobj = 0;
27020 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27021 wxDouble arg2 ;
27022 wxDouble arg3 ;
27023 wxDouble arg4 ;
27024 wxDouble arg5 ;
27025 wxDouble arg6 ;
27026 void *argp1 = 0 ;
27027 int res1 = 0 ;
27028 double val2 ;
27029 int ecode2 = 0 ;
27030 double val3 ;
27031 int ecode3 = 0 ;
27032 double val4 ;
27033 int ecode4 = 0 ;
27034 double val5 ;
27035 int ecode5 = 0 ;
27036 double val6 ;
27037 int ecode6 = 0 ;
27038 PyObject * obj0 = 0 ;
27039 PyObject * obj1 = 0 ;
27040 PyObject * obj2 = 0 ;
27041 PyObject * obj3 = 0 ;
27042 PyObject * obj4 = 0 ;
27043 PyObject * obj5 = 0 ;
27044 char * kwnames[] = {
27045 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
27046 };
27047
27048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27050 if (!SWIG_IsOK(res1)) {
27051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27052 }
27053 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27054 ecode2 = SWIG_AsVal_double(obj1, &val2);
27055 if (!SWIG_IsOK(ecode2)) {
27056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27057 }
27058 arg2 = static_cast< wxDouble >(val2);
27059 ecode3 = SWIG_AsVal_double(obj2, &val3);
27060 if (!SWIG_IsOK(ecode3)) {
27061 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27062 }
27063 arg3 = static_cast< wxDouble >(val3);
27064 ecode4 = SWIG_AsVal_double(obj3, &val4);
27065 if (!SWIG_IsOK(ecode4)) {
27066 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27067 }
27068 arg4 = static_cast< wxDouble >(val4);
27069 ecode5 = SWIG_AsVal_double(obj4, &val5);
27070 if (!SWIG_IsOK(ecode5)) {
27071 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27072 }
27073 arg5 = static_cast< wxDouble >(val5);
27074 ecode6 = SWIG_AsVal_double(obj5, &val6);
27075 if (!SWIG_IsOK(ecode6)) {
27076 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27077 }
27078 arg6 = static_cast< wxDouble >(val6);
27079 {
27080 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
27081 if (PyErr_Occurred()) SWIG_fail;
27082 }
27083 resultobj = SWIG_Py_Void();
27084 return resultobj;
27085 fail:
27086 return NULL;
27087 }
27088
27089
27090 SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27091 PyObject *resultobj = 0;
27092 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27093 wxDouble arg2 ;
27094 wxDouble arg3 ;
27095 wxDouble arg4 ;
27096 wxDouble arg5 ;
27097 void *argp1 = 0 ;
27098 int res1 = 0 ;
27099 double val2 ;
27100 int ecode2 = 0 ;
27101 double val3 ;
27102 int ecode3 = 0 ;
27103 double val4 ;
27104 int ecode4 = 0 ;
27105 double val5 ;
27106 int ecode5 = 0 ;
27107 PyObject * obj0 = 0 ;
27108 PyObject * obj1 = 0 ;
27109 PyObject * obj2 = 0 ;
27110 PyObject * obj3 = 0 ;
27111 PyObject * obj4 = 0 ;
27112 char * kwnames[] = {
27113 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27114 };
27115
27116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27118 if (!SWIG_IsOK(res1)) {
27119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27120 }
27121 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27122 ecode2 = SWIG_AsVal_double(obj1, &val2);
27123 if (!SWIG_IsOK(ecode2)) {
27124 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27125 }
27126 arg2 = static_cast< wxDouble >(val2);
27127 ecode3 = SWIG_AsVal_double(obj2, &val3);
27128 if (!SWIG_IsOK(ecode3)) {
27129 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27130 }
27131 arg3 = static_cast< wxDouble >(val3);
27132 ecode4 = SWIG_AsVal_double(obj3, &val4);
27133 if (!SWIG_IsOK(ecode4)) {
27134 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27135 }
27136 arg4 = static_cast< wxDouble >(val4);
27137 ecode5 = SWIG_AsVal_double(obj4, &val5);
27138 if (!SWIG_IsOK(ecode5)) {
27139 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27140 }
27141 arg5 = static_cast< wxDouble >(val5);
27142 {
27143 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
27144 if (PyErr_Occurred()) SWIG_fail;
27145 }
27146 resultobj = SWIG_Py_Void();
27147 return resultobj;
27148 fail:
27149 return NULL;
27150 }
27151
27152
27153 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27154 PyObject *resultobj = 0;
27155 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27156 wxDouble arg2 ;
27157 wxDouble arg3 ;
27158 wxDouble arg4 ;
27159 wxDouble arg5 ;
27160 wxDouble arg6 ;
27161 void *argp1 = 0 ;
27162 int res1 = 0 ;
27163 double val2 ;
27164 int ecode2 = 0 ;
27165 double val3 ;
27166 int ecode3 = 0 ;
27167 double val4 ;
27168 int ecode4 = 0 ;
27169 double val5 ;
27170 int ecode5 = 0 ;
27171 double val6 ;
27172 int ecode6 = 0 ;
27173 PyObject * obj0 = 0 ;
27174 PyObject * obj1 = 0 ;
27175 PyObject * obj2 = 0 ;
27176 PyObject * obj3 = 0 ;
27177 PyObject * obj4 = 0 ;
27178 PyObject * obj5 = 0 ;
27179 char * kwnames[] = {
27180 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
27181 };
27182
27183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27185 if (!SWIG_IsOK(res1)) {
27186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27187 }
27188 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27189 ecode2 = SWIG_AsVal_double(obj1, &val2);
27190 if (!SWIG_IsOK(ecode2)) {
27191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27192 }
27193 arg2 = static_cast< wxDouble >(val2);
27194 ecode3 = SWIG_AsVal_double(obj2, &val3);
27195 if (!SWIG_IsOK(ecode3)) {
27196 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27197 }
27198 arg3 = static_cast< wxDouble >(val3);
27199 ecode4 = SWIG_AsVal_double(obj3, &val4);
27200 if (!SWIG_IsOK(ecode4)) {
27201 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27202 }
27203 arg4 = static_cast< wxDouble >(val4);
27204 ecode5 = SWIG_AsVal_double(obj4, &val5);
27205 if (!SWIG_IsOK(ecode5)) {
27206 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27207 }
27208 arg5 = static_cast< wxDouble >(val5);
27209 ecode6 = SWIG_AsVal_double(obj5, &val6);
27210 if (!SWIG_IsOK(ecode6)) {
27211 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27212 }
27213 arg6 = static_cast< wxDouble >(val6);
27214 {
27215 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
27216 if (PyErr_Occurred()) SWIG_fail;
27217 }
27218 resultobj = SWIG_Py_Void();
27219 return resultobj;
27220 fail:
27221 return NULL;
27222 }
27223
27224
27225 SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27226 PyObject *resultobj = 0;
27227 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27228 void *result = 0 ;
27229 void *argp1 = 0 ;
27230 int res1 = 0 ;
27231 PyObject *swig_obj[1] ;
27232
27233 if (!args) SWIG_fail;
27234 swig_obj[0] = args;
27235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27236 if (!SWIG_IsOK(res1)) {
27237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27238 }
27239 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27240 {
27241 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
27242 if (PyErr_Occurred()) SWIG_fail;
27243 }
27244 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
27245 return resultobj;
27246 fail:
27247 return NULL;
27248 }
27249
27250
27251 SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27252 PyObject *resultobj = 0;
27253 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27254 void *arg2 = (void *) 0 ;
27255 void *argp1 = 0 ;
27256 int res1 = 0 ;
27257 int res2 ;
27258 PyObject * obj0 = 0 ;
27259 PyObject * obj1 = 0 ;
27260 char * kwnames[] = {
27261 (char *) "self",(char *) "p", NULL
27262 };
27263
27264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
27265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27266 if (!SWIG_IsOK(res1)) {
27267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27268 }
27269 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27270 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
27271 if (!SWIG_IsOK(res2)) {
27272 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
27273 }
27274 {
27275 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
27276 if (PyErr_Occurred()) SWIG_fail;
27277 }
27278 resultobj = SWIG_Py_Void();
27279 return resultobj;
27280 fail:
27281 return NULL;
27282 }
27283
27284
27285 SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27286 PyObject *resultobj = 0;
27287 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27288 wxGraphicsMatrix *arg2 = 0 ;
27289 void *argp1 = 0 ;
27290 int res1 = 0 ;
27291 void *argp2 = 0 ;
27292 int res2 = 0 ;
27293 PyObject * obj0 = 0 ;
27294 PyObject * obj1 = 0 ;
27295 char * kwnames[] = {
27296 (char *) "self",(char *) "matrix", NULL
27297 };
27298
27299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
27300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27301 if (!SWIG_IsOK(res1)) {
27302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27303 }
27304 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27305 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
27306 if (!SWIG_IsOK(res2)) {
27307 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27308 }
27309 if (!argp2) {
27310 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27311 }
27312 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
27313 {
27314 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
27315 if (PyErr_Occurred()) SWIG_fail;
27316 }
27317 resultobj = SWIG_Py_Void();
27318 return resultobj;
27319 fail:
27320 return NULL;
27321 }
27322
27323
27324 SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27325 PyObject *resultobj = 0;
27326 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27327 wxRect2DDouble result;
27328 void *argp1 = 0 ;
27329 int res1 = 0 ;
27330 PyObject *swig_obj[1] ;
27331
27332 if (!args) SWIG_fail;
27333 swig_obj[0] = args;
27334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27335 if (!SWIG_IsOK(res1)) {
27336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27337 }
27338 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27339 {
27340 result = ((wxGraphicsPath const *)arg1)->GetBox();
27341 if (PyErr_Occurred()) SWIG_fail;
27342 }
27343 resultobj = SWIG_NewPointerObj((new wxRect2DDouble(static_cast< const wxRect2DDouble& >(result))), SWIGTYPE_p_wxRect2DDouble, SWIG_POINTER_OWN | 0 );
27344 return resultobj;
27345 fail:
27346 return NULL;
27347 }
27348
27349
27350 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27351 PyObject *resultobj = 0;
27352 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27353 wxDouble arg2 ;
27354 wxDouble arg3 ;
27355 int arg4 = (int) wxODDEVEN_RULE ;
27356 bool result;
27357 void *argp1 = 0 ;
27358 int res1 = 0 ;
27359 double val2 ;
27360 int ecode2 = 0 ;
27361 double val3 ;
27362 int ecode3 = 0 ;
27363 int val4 ;
27364 int ecode4 = 0 ;
27365
27366 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
27367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27368 if (!SWIG_IsOK(res1)) {
27369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27370 }
27371 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27372 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27373 if (!SWIG_IsOK(ecode2)) {
27374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
27375 }
27376 arg2 = static_cast< wxDouble >(val2);
27377 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27378 if (!SWIG_IsOK(ecode3)) {
27379 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
27380 }
27381 arg3 = static_cast< wxDouble >(val3);
27382 if (swig_obj[3]) {
27383 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27384 if (!SWIG_IsOK(ecode4)) {
27385 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
27386 }
27387 arg4 = static_cast< int >(val4);
27388 }
27389 {
27390 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
27391 if (PyErr_Occurred()) SWIG_fail;
27392 }
27393 {
27394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27395 }
27396 return resultobj;
27397 fail:
27398 return NULL;
27399 }
27400
27401
27402 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27403 PyObject *resultobj = 0;
27404 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27405 wxPoint2DDouble *arg2 = 0 ;
27406 int arg3 = (int) wxODDEVEN_RULE ;
27407 bool result;
27408 void *argp1 = 0 ;
27409 int res1 = 0 ;
27410 void *argp2 = 0 ;
27411 int res2 = 0 ;
27412 int val3 ;
27413 int ecode3 = 0 ;
27414
27415 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
27416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27417 if (!SWIG_IsOK(res1)) {
27418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27419 }
27420 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27421 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPoint2DDouble, 0 | 0);
27422 if (!SWIG_IsOK(res2)) {
27423 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
27424 }
27425 if (!argp2) {
27426 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
27427 }
27428 arg2 = reinterpret_cast< wxPoint2DDouble * >(argp2);
27429 if (swig_obj[2]) {
27430 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27431 if (!SWIG_IsOK(ecode3)) {
27432 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
27433 }
27434 arg3 = static_cast< int >(val3);
27435 }
27436 {
27437 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2DDouble const &)*arg2,arg3);
27438 if (PyErr_Occurred()) SWIG_fail;
27439 }
27440 {
27441 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27442 }
27443 return resultobj;
27444 fail:
27445 return NULL;
27446 }
27447
27448
27449 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
27450 int argc;
27451 PyObject *argv[5];
27452
27453 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
27454 --argc;
27455 if ((argc >= 2) && (argc <= 3)) {
27456 int _v = 0;
27457 {
27458 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxPoint2DDouble, 0);
27459 _v = SWIG_CheckState(res);
27460 }
27461 if (!_v) goto check_1;
27462 if (argc > 2) {
27463 {
27464 {
27465 int res = SWIG_AsVal_int(argv[2], NULL);
27466 _v = SWIG_CheckState(res);
27467 }
27468 }
27469 if (!_v) goto check_1;
27470 }
27471 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
27472 }
27473 check_1:
27474
27475 if ((argc >= 3) && (argc <= 4)) {
27476 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
27477 }
27478
27479 fail:
27480 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
27481 return NULL;
27482 }
27483
27484
27485 SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27486 PyObject *obj;
27487 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27488 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
27489 return SWIG_Py_Void();
27490 }
27491
27492 SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27493 return SWIG_Python_InitShadowInstance(args);
27494 }
27495
27496 SWIGINTERN int NullGraphicsPen_set(PyObject *) {
27497 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
27498 return 1;
27499 }
27500
27501
27502 SWIGINTERN PyObject *NullGraphicsPen_get(void) {
27503 PyObject *pyobj = 0;
27504
27505 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
27506 return pyobj;
27507 }
27508
27509
27510 SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
27511 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
27512 return 1;
27513 }
27514
27515
27516 SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
27517 PyObject *pyobj = 0;
27518
27519 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
27520 return pyobj;
27521 }
27522
27523
27524 SWIGINTERN int NullGraphicsFont_set(PyObject *) {
27525 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
27526 return 1;
27527 }
27528
27529
27530 SWIGINTERN PyObject *NullGraphicsFont_get(void) {
27531 PyObject *pyobj = 0;
27532
27533 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
27534 return pyobj;
27535 }
27536
27537
27538 SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
27539 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
27540 return 1;
27541 }
27542
27543
27544 SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
27545 PyObject *pyobj = 0;
27546
27547 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
27548 return pyobj;
27549 }
27550
27551
27552 SWIGINTERN int NullGraphicsPath_set(PyObject *) {
27553 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
27554 return 1;
27555 }
27556
27557
27558 SWIGINTERN PyObject *NullGraphicsPath_get(void) {
27559 PyObject *pyobj = 0;
27560
27561 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
27562 return pyobj;
27563 }
27564
27565
27566 SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27567 PyObject *resultobj = 0;
27568 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27569 void *argp1 = 0 ;
27570 int res1 = 0 ;
27571 PyObject *swig_obj[1] ;
27572
27573 if (!args) SWIG_fail;
27574 swig_obj[0] = args;
27575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
27576 if (!SWIG_IsOK(res1)) {
27577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27578 }
27579 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27580 {
27581 delete arg1;
27582
27583 if (PyErr_Occurred()) SWIG_fail;
27584 }
27585 resultobj = SWIG_Py_Void();
27586 return resultobj;
27587 fail:
27588 return NULL;
27589 }
27590
27591
27592 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27593 PyObject *resultobj = 0;
27594 wxWindowDC *arg1 = 0 ;
27595 wxGraphicsContext *result = 0 ;
27596 void *argp1 = 0 ;
27597 int res1 = 0 ;
27598
27599 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
27601 if (!SWIG_IsOK(res1)) {
27602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27603 }
27604 if (!argp1) {
27605 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27606 }
27607 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
27608 {
27609 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
27610 if (PyErr_Occurred()) SWIG_fail;
27611 }
27612 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27613 return resultobj;
27614 fail:
27615 return NULL;
27616 }
27617
27618
27619 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27620 PyObject *resultobj = 0;
27621 wxWindow *arg1 = (wxWindow *) 0 ;
27622 wxGraphicsContext *result = 0 ;
27623 void *argp1 = 0 ;
27624 int res1 = 0 ;
27625
27626 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
27628 if (!SWIG_IsOK(res1)) {
27629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
27630 }
27631 arg1 = reinterpret_cast< wxWindow * >(argp1);
27632 {
27633 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
27634 if (PyErr_Occurred()) SWIG_fail;
27635 }
27636 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27637 return resultobj;
27638 fail:
27639 return NULL;
27640 }
27641
27642
27643 SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
27644 int argc;
27645 PyObject *argv[2];
27646
27647 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
27648 --argc;
27649 if (argc == 1) {
27650 int _v = 0;
27651 {
27652 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
27653 _v = SWIG_CheckState(res);
27654 }
27655 if (!_v) goto check_1;
27656 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
27657 }
27658 check_1:
27659
27660 if (argc == 1) {
27661 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
27662 }
27663
27664 fail:
27665 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
27666 return NULL;
27667 }
27668
27669
27670 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27671 PyObject *resultobj = 0;
27672 void *arg1 = (void *) 0 ;
27673 wxGraphicsContext *result = 0 ;
27674 int res1 ;
27675 PyObject * obj0 = 0 ;
27676 char * kwnames[] = {
27677 (char *) "context", NULL
27678 };
27679
27680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
27681 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27682 if (!SWIG_IsOK(res1)) {
27683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
27684 }
27685 {
27686 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
27687 if (PyErr_Occurred()) SWIG_fail;
27688 }
27689 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27690 return resultobj;
27691 fail:
27692 return NULL;
27693 }
27694
27695
27696 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27697 PyObject *resultobj = 0;
27698 void *arg1 = (void *) 0 ;
27699 wxGraphicsContext *result = 0 ;
27700 int res1 ;
27701 PyObject * obj0 = 0 ;
27702 char * kwnames[] = {
27703 (char *) "window", NULL
27704 };
27705
27706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
27707 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27708 if (!SWIG_IsOK(res1)) {
27709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
27710 }
27711 {
27712 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
27713 if (PyErr_Occurred()) SWIG_fail;
27714 }
27715 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27716 return resultobj;
27717 fail:
27718 return NULL;
27719 }
27720
27721
27722 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27723 PyObject *resultobj = 0;
27724 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27725 wxGraphicsPath result;
27726 void *argp1 = 0 ;
27727 int res1 = 0 ;
27728 PyObject *swig_obj[1] ;
27729
27730 if (!args) SWIG_fail;
27731 swig_obj[0] = args;
27732 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27733 if (!SWIG_IsOK(res1)) {
27734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27735 }
27736 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27737 {
27738 result = (arg1)->CreatePath();
27739 if (PyErr_Occurred()) SWIG_fail;
27740 }
27741 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
27742 return resultobj;
27743 fail:
27744 return NULL;
27745 }
27746
27747
27748 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27749 PyObject *resultobj = 0;
27750 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27751 wxPen *arg2 = 0 ;
27752 wxGraphicsPen result;
27753 void *argp1 = 0 ;
27754 int res1 = 0 ;
27755 void *argp2 = 0 ;
27756 int res2 = 0 ;
27757 PyObject * obj0 = 0 ;
27758 PyObject * obj1 = 0 ;
27759 char * kwnames[] = {
27760 (char *) "self",(char *) "pen", NULL
27761 };
27762
27763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
27764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27765 if (!SWIG_IsOK(res1)) {
27766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27767 }
27768 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27769 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
27770 if (!SWIG_IsOK(res2)) {
27771 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27772 }
27773 if (!argp2) {
27774 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27775 }
27776 arg2 = reinterpret_cast< wxPen * >(argp2);
27777 {
27778 result = (arg1)->CreatePen((wxPen const &)*arg2);
27779 if (PyErr_Occurred()) SWIG_fail;
27780 }
27781 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
27782 return resultobj;
27783 fail:
27784 return NULL;
27785 }
27786
27787
27788 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27789 PyObject *resultobj = 0;
27790 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27791 wxBrush *arg2 = 0 ;
27792 wxGraphicsBrush result;
27793 void *argp1 = 0 ;
27794 int res1 = 0 ;
27795 void *argp2 = 0 ;
27796 int res2 = 0 ;
27797 PyObject * obj0 = 0 ;
27798 PyObject * obj1 = 0 ;
27799 char * kwnames[] = {
27800 (char *) "self",(char *) "brush", NULL
27801 };
27802
27803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
27804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27805 if (!SWIG_IsOK(res1)) {
27806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27807 }
27808 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27809 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
27810 if (!SWIG_IsOK(res2)) {
27811 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27812 }
27813 if (!argp2) {
27814 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27815 }
27816 arg2 = reinterpret_cast< wxBrush * >(argp2);
27817 {
27818 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
27819 if (PyErr_Occurred()) SWIG_fail;
27820 }
27821 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
27822 return resultobj;
27823 fail:
27824 return NULL;
27825 }
27826
27827
27828 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27829 PyObject *resultobj = 0;
27830 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27831 wxDouble arg2 ;
27832 wxDouble arg3 ;
27833 wxDouble arg4 ;
27834 wxDouble arg5 ;
27835 wxColour *arg6 = 0 ;
27836 wxColour *arg7 = 0 ;
27837 wxGraphicsBrush result;
27838 void *argp1 = 0 ;
27839 int res1 = 0 ;
27840 double val2 ;
27841 int ecode2 = 0 ;
27842 double val3 ;
27843 int ecode3 = 0 ;
27844 double val4 ;
27845 int ecode4 = 0 ;
27846 double val5 ;
27847 int ecode5 = 0 ;
27848 wxColour temp6 ;
27849 wxColour temp7 ;
27850 PyObject * obj0 = 0 ;
27851 PyObject * obj1 = 0 ;
27852 PyObject * obj2 = 0 ;
27853 PyObject * obj3 = 0 ;
27854 PyObject * obj4 = 0 ;
27855 PyObject * obj5 = 0 ;
27856 PyObject * obj6 = 0 ;
27857 char * kwnames[] = {
27858 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
27859 };
27860
27861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27863 if (!SWIG_IsOK(res1)) {
27864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27865 }
27866 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27867 ecode2 = SWIG_AsVal_double(obj1, &val2);
27868 if (!SWIG_IsOK(ecode2)) {
27869 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
27870 }
27871 arg2 = static_cast< wxDouble >(val2);
27872 ecode3 = SWIG_AsVal_double(obj2, &val3);
27873 if (!SWIG_IsOK(ecode3)) {
27874 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
27875 }
27876 arg3 = static_cast< wxDouble >(val3);
27877 ecode4 = SWIG_AsVal_double(obj3, &val4);
27878 if (!SWIG_IsOK(ecode4)) {
27879 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
27880 }
27881 arg4 = static_cast< wxDouble >(val4);
27882 ecode5 = SWIG_AsVal_double(obj4, &val5);
27883 if (!SWIG_IsOK(ecode5)) {
27884 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
27885 }
27886 arg5 = static_cast< wxDouble >(val5);
27887 {
27888 arg6 = &temp6;
27889 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
27890 }
27891 {
27892 arg7 = &temp7;
27893 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
27894 }
27895 {
27896 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
27897 if (PyErr_Occurred()) SWIG_fail;
27898 }
27899 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
27900 return resultobj;
27901 fail:
27902 return NULL;
27903 }
27904
27905
27906 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27907 PyObject *resultobj = 0;
27908 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27909 wxDouble arg2 ;
27910 wxDouble arg3 ;
27911 wxDouble arg4 ;
27912 wxDouble arg5 ;
27913 wxDouble arg6 ;
27914 wxColour *arg7 = 0 ;
27915 wxColour *arg8 = 0 ;
27916 wxGraphicsBrush result;
27917 void *argp1 = 0 ;
27918 int res1 = 0 ;
27919 double val2 ;
27920 int ecode2 = 0 ;
27921 double val3 ;
27922 int ecode3 = 0 ;
27923 double val4 ;
27924 int ecode4 = 0 ;
27925 double val5 ;
27926 int ecode5 = 0 ;
27927 double val6 ;
27928 int ecode6 = 0 ;
27929 wxColour temp7 ;
27930 wxColour temp8 ;
27931 PyObject * obj0 = 0 ;
27932 PyObject * obj1 = 0 ;
27933 PyObject * obj2 = 0 ;
27934 PyObject * obj3 = 0 ;
27935 PyObject * obj4 = 0 ;
27936 PyObject * obj5 = 0 ;
27937 PyObject * obj6 = 0 ;
27938 PyObject * obj7 = 0 ;
27939 char * kwnames[] = {
27940 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
27941 };
27942
27943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
27944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27945 if (!SWIG_IsOK(res1)) {
27946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27947 }
27948 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27949 ecode2 = SWIG_AsVal_double(obj1, &val2);
27950 if (!SWIG_IsOK(ecode2)) {
27951 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
27952 }
27953 arg2 = static_cast< wxDouble >(val2);
27954 ecode3 = SWIG_AsVal_double(obj2, &val3);
27955 if (!SWIG_IsOK(ecode3)) {
27956 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
27957 }
27958 arg3 = static_cast< wxDouble >(val3);
27959 ecode4 = SWIG_AsVal_double(obj3, &val4);
27960 if (!SWIG_IsOK(ecode4)) {
27961 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
27962 }
27963 arg4 = static_cast< wxDouble >(val4);
27964 ecode5 = SWIG_AsVal_double(obj4, &val5);
27965 if (!SWIG_IsOK(ecode5)) {
27966 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
27967 }
27968 arg5 = static_cast< wxDouble >(val5);
27969 ecode6 = SWIG_AsVal_double(obj5, &val6);
27970 if (!SWIG_IsOK(ecode6)) {
27971 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
27972 }
27973 arg6 = static_cast< wxDouble >(val6);
27974 {
27975 arg7 = &temp7;
27976 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
27977 }
27978 {
27979 arg8 = &temp8;
27980 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
27981 }
27982 {
27983 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
27984 if (PyErr_Occurred()) SWIG_fail;
27985 }
27986 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
27987 return resultobj;
27988 fail:
27989 return NULL;
27990 }
27991
27992
27993 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27994 PyObject *resultobj = 0;
27995 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27996 wxFont *arg2 = 0 ;
27997 wxColour const &arg3_defvalue = *wxBLACK ;
27998 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
27999 wxGraphicsFont result;
28000 void *argp1 = 0 ;
28001 int res1 = 0 ;
28002 void *argp2 = 0 ;
28003 int res2 = 0 ;
28004 wxColour temp3 ;
28005 PyObject * obj0 = 0 ;
28006 PyObject * obj1 = 0 ;
28007 PyObject * obj2 = 0 ;
28008 char * kwnames[] = {
28009 (char *) "self",(char *) "font",(char *) "col", NULL
28010 };
28011
28012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28014 if (!SWIG_IsOK(res1)) {
28015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28016 }
28017 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28018 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28019 if (!SWIG_IsOK(res2)) {
28020 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28021 }
28022 if (!argp2) {
28023 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28024 }
28025 arg2 = reinterpret_cast< wxFont * >(argp2);
28026 if (obj2) {
28027 {
28028 arg3 = &temp3;
28029 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28030 }
28031 }
28032 {
28033 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
28034 if (PyErr_Occurred()) SWIG_fail;
28035 }
28036 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
28037 return resultobj;
28038 fail:
28039 return NULL;
28040 }
28041
28042
28043 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28044 PyObject *resultobj = 0;
28045 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28046 wxDouble arg2 = (wxDouble) 1.0 ;
28047 wxDouble arg3 = (wxDouble) 0.0 ;
28048 wxDouble arg4 = (wxDouble) 0.0 ;
28049 wxDouble arg5 = (wxDouble) 1.0 ;
28050 wxDouble arg6 = (wxDouble) 0.0 ;
28051 wxDouble arg7 = (wxDouble) 0.0 ;
28052 wxGraphicsMatrix result;
28053 void *argp1 = 0 ;
28054 int res1 = 0 ;
28055 double val2 ;
28056 int ecode2 = 0 ;
28057 double val3 ;
28058 int ecode3 = 0 ;
28059 double val4 ;
28060 int ecode4 = 0 ;
28061 double val5 ;
28062 int ecode5 = 0 ;
28063 double val6 ;
28064 int ecode6 = 0 ;
28065 double val7 ;
28066 int ecode7 = 0 ;
28067 PyObject * obj0 = 0 ;
28068 PyObject * obj1 = 0 ;
28069 PyObject * obj2 = 0 ;
28070 PyObject * obj3 = 0 ;
28071 PyObject * obj4 = 0 ;
28072 PyObject * obj5 = 0 ;
28073 PyObject * obj6 = 0 ;
28074 char * kwnames[] = {
28075 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
28076 };
28077
28078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28080 if (!SWIG_IsOK(res1)) {
28081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28082 }
28083 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28084 if (obj1) {
28085 ecode2 = SWIG_AsVal_double(obj1, &val2);
28086 if (!SWIG_IsOK(ecode2)) {
28087 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
28088 }
28089 arg2 = static_cast< wxDouble >(val2);
28090 }
28091 if (obj2) {
28092 ecode3 = SWIG_AsVal_double(obj2, &val3);
28093 if (!SWIG_IsOK(ecode3)) {
28094 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
28095 }
28096 arg3 = static_cast< wxDouble >(val3);
28097 }
28098 if (obj3) {
28099 ecode4 = SWIG_AsVal_double(obj3, &val4);
28100 if (!SWIG_IsOK(ecode4)) {
28101 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
28102 }
28103 arg4 = static_cast< wxDouble >(val4);
28104 }
28105 if (obj4) {
28106 ecode5 = SWIG_AsVal_double(obj4, &val5);
28107 if (!SWIG_IsOK(ecode5)) {
28108 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
28109 }
28110 arg5 = static_cast< wxDouble >(val5);
28111 }
28112 if (obj5) {
28113 ecode6 = SWIG_AsVal_double(obj5, &val6);
28114 if (!SWIG_IsOK(ecode6)) {
28115 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
28116 }
28117 arg6 = static_cast< wxDouble >(val6);
28118 }
28119 if (obj6) {
28120 ecode7 = SWIG_AsVal_double(obj6, &val7);
28121 if (!SWIG_IsOK(ecode7)) {
28122 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
28123 }
28124 arg7 = static_cast< wxDouble >(val7);
28125 }
28126 {
28127 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
28128 if (PyErr_Occurred()) SWIG_fail;
28129 }
28130 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28131 return resultobj;
28132 fail:
28133 return NULL;
28134 }
28135
28136
28137 SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28138 PyObject *resultobj = 0;
28139 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28140 void *argp1 = 0 ;
28141 int res1 = 0 ;
28142 PyObject *swig_obj[1] ;
28143
28144 if (!args) SWIG_fail;
28145 swig_obj[0] = args;
28146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28147 if (!SWIG_IsOK(res1)) {
28148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28149 }
28150 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28151 {
28152 (arg1)->PushState();
28153 if (PyErr_Occurred()) SWIG_fail;
28154 }
28155 resultobj = SWIG_Py_Void();
28156 return resultobj;
28157 fail:
28158 return NULL;
28159 }
28160
28161
28162 SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28163 PyObject *resultobj = 0;
28164 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28165 void *argp1 = 0 ;
28166 int res1 = 0 ;
28167 PyObject *swig_obj[1] ;
28168
28169 if (!args) SWIG_fail;
28170 swig_obj[0] = args;
28171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28172 if (!SWIG_IsOK(res1)) {
28173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28174 }
28175 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28176 {
28177 (arg1)->PopState();
28178 if (PyErr_Occurred()) SWIG_fail;
28179 }
28180 resultobj = SWIG_Py_Void();
28181 return resultobj;
28182 fail:
28183 return NULL;
28184 }
28185
28186
28187 SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28188 PyObject *resultobj = 0;
28189 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28190 wxRegion *arg2 = 0 ;
28191 void *argp1 = 0 ;
28192 int res1 = 0 ;
28193 void *argp2 = 0 ;
28194 int res2 = 0 ;
28195 PyObject * obj0 = 0 ;
28196 PyObject * obj1 = 0 ;
28197 char * kwnames[] = {
28198 (char *) "self",(char *) "region", NULL
28199 };
28200
28201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
28202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28203 if (!SWIG_IsOK(res1)) {
28204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28205 }
28206 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28207 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
28208 if (!SWIG_IsOK(res2)) {
28209 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
28210 }
28211 if (!argp2) {
28212 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
28213 }
28214 arg2 = reinterpret_cast< wxRegion * >(argp2);
28215 {
28216 (arg1)->Clip((wxRegion const &)*arg2);
28217 if (PyErr_Occurred()) SWIG_fail;
28218 }
28219 resultobj = SWIG_Py_Void();
28220 return resultobj;
28221 fail:
28222 return NULL;
28223 }
28224
28225
28226 SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28227 PyObject *resultobj = 0;
28228 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28229 wxDouble arg2 ;
28230 wxDouble arg3 ;
28231 wxDouble arg4 ;
28232 wxDouble arg5 ;
28233 void *argp1 = 0 ;
28234 int res1 = 0 ;
28235 double val2 ;
28236 int ecode2 = 0 ;
28237 double val3 ;
28238 int ecode3 = 0 ;
28239 double val4 ;
28240 int ecode4 = 0 ;
28241 double val5 ;
28242 int ecode5 = 0 ;
28243 PyObject * obj0 = 0 ;
28244 PyObject * obj1 = 0 ;
28245 PyObject * obj2 = 0 ;
28246 PyObject * obj3 = 0 ;
28247 PyObject * obj4 = 0 ;
28248 char * kwnames[] = {
28249 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28250 };
28251
28252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28254 if (!SWIG_IsOK(res1)) {
28255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28256 }
28257 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28258 ecode2 = SWIG_AsVal_double(obj1, &val2);
28259 if (!SWIG_IsOK(ecode2)) {
28260 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
28261 }
28262 arg2 = static_cast< wxDouble >(val2);
28263 ecode3 = SWIG_AsVal_double(obj2, &val3);
28264 if (!SWIG_IsOK(ecode3)) {
28265 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
28266 }
28267 arg3 = static_cast< wxDouble >(val3);
28268 ecode4 = SWIG_AsVal_double(obj3, &val4);
28269 if (!SWIG_IsOK(ecode4)) {
28270 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
28271 }
28272 arg4 = static_cast< wxDouble >(val4);
28273 ecode5 = SWIG_AsVal_double(obj4, &val5);
28274 if (!SWIG_IsOK(ecode5)) {
28275 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
28276 }
28277 arg5 = static_cast< wxDouble >(val5);
28278 {
28279 (arg1)->Clip(arg2,arg3,arg4,arg5);
28280 if (PyErr_Occurred()) SWIG_fail;
28281 }
28282 resultobj = SWIG_Py_Void();
28283 return resultobj;
28284 fail:
28285 return NULL;
28286 }
28287
28288
28289 SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28290 PyObject *resultobj = 0;
28291 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28292 void *argp1 = 0 ;
28293 int res1 = 0 ;
28294 PyObject *swig_obj[1] ;
28295
28296 if (!args) SWIG_fail;
28297 swig_obj[0] = args;
28298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28299 if (!SWIG_IsOK(res1)) {
28300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28301 }
28302 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28303 {
28304 (arg1)->ResetClip();
28305 if (PyErr_Occurred()) SWIG_fail;
28306 }
28307 resultobj = SWIG_Py_Void();
28308 return resultobj;
28309 fail:
28310 return NULL;
28311 }
28312
28313
28314 SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28315 PyObject *resultobj = 0;
28316 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28317 void *result = 0 ;
28318 void *argp1 = 0 ;
28319 int res1 = 0 ;
28320 PyObject *swig_obj[1] ;
28321
28322 if (!args) SWIG_fail;
28323 swig_obj[0] = args;
28324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28325 if (!SWIG_IsOK(res1)) {
28326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28327 }
28328 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28329 {
28330 result = (void *)(arg1)->GetNativeContext();
28331 if (PyErr_Occurred()) SWIG_fail;
28332 }
28333 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
28334 return resultobj;
28335 fail:
28336 return NULL;
28337 }
28338
28339
28340 SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28341 PyObject *resultobj = 0;
28342 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28343 wxDouble arg2 ;
28344 wxDouble arg3 ;
28345 void *argp1 = 0 ;
28346 int res1 = 0 ;
28347 double val2 ;
28348 int ecode2 = 0 ;
28349 double val3 ;
28350 int ecode3 = 0 ;
28351 PyObject * obj0 = 0 ;
28352 PyObject * obj1 = 0 ;
28353 PyObject * obj2 = 0 ;
28354 char * kwnames[] = {
28355 (char *) "self",(char *) "dx",(char *) "dy", NULL
28356 };
28357
28358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28360 if (!SWIG_IsOK(res1)) {
28361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28362 }
28363 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28364 ecode2 = SWIG_AsVal_double(obj1, &val2);
28365 if (!SWIG_IsOK(ecode2)) {
28366 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
28367 }
28368 arg2 = static_cast< wxDouble >(val2);
28369 ecode3 = SWIG_AsVal_double(obj2, &val3);
28370 if (!SWIG_IsOK(ecode3)) {
28371 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
28372 }
28373 arg3 = static_cast< wxDouble >(val3);
28374 {
28375 (arg1)->Translate(arg2,arg3);
28376 if (PyErr_Occurred()) SWIG_fail;
28377 }
28378 resultobj = SWIG_Py_Void();
28379 return resultobj;
28380 fail:
28381 return NULL;
28382 }
28383
28384
28385 SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28386 PyObject *resultobj = 0;
28387 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28388 wxDouble arg2 ;
28389 wxDouble arg3 ;
28390 void *argp1 = 0 ;
28391 int res1 = 0 ;
28392 double val2 ;
28393 int ecode2 = 0 ;
28394 double val3 ;
28395 int ecode3 = 0 ;
28396 PyObject * obj0 = 0 ;
28397 PyObject * obj1 = 0 ;
28398 PyObject * obj2 = 0 ;
28399 char * kwnames[] = {
28400 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
28401 };
28402
28403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28405 if (!SWIG_IsOK(res1)) {
28406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28407 }
28408 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28409 ecode2 = SWIG_AsVal_double(obj1, &val2);
28410 if (!SWIG_IsOK(ecode2)) {
28411 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
28412 }
28413 arg2 = static_cast< wxDouble >(val2);
28414 ecode3 = SWIG_AsVal_double(obj2, &val3);
28415 if (!SWIG_IsOK(ecode3)) {
28416 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
28417 }
28418 arg3 = static_cast< wxDouble >(val3);
28419 {
28420 (arg1)->Scale(arg2,arg3);
28421 if (PyErr_Occurred()) SWIG_fail;
28422 }
28423 resultobj = SWIG_Py_Void();
28424 return resultobj;
28425 fail:
28426 return NULL;
28427 }
28428
28429
28430 SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28431 PyObject *resultobj = 0;
28432 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28433 wxDouble arg2 ;
28434 void *argp1 = 0 ;
28435 int res1 = 0 ;
28436 double val2 ;
28437 int ecode2 = 0 ;
28438 PyObject * obj0 = 0 ;
28439 PyObject * obj1 = 0 ;
28440 char * kwnames[] = {
28441 (char *) "self",(char *) "angle", NULL
28442 };
28443
28444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
28445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28446 if (!SWIG_IsOK(res1)) {
28447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28448 }
28449 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28450 ecode2 = SWIG_AsVal_double(obj1, &val2);
28451 if (!SWIG_IsOK(ecode2)) {
28452 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
28453 }
28454 arg2 = static_cast< wxDouble >(val2);
28455 {
28456 (arg1)->Rotate(arg2);
28457 if (PyErr_Occurred()) SWIG_fail;
28458 }
28459 resultobj = SWIG_Py_Void();
28460 return resultobj;
28461 fail:
28462 return NULL;
28463 }
28464
28465
28466 SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28467 PyObject *resultobj = 0;
28468 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28469 wxGraphicsMatrix *arg2 = 0 ;
28470 void *argp1 = 0 ;
28471 int res1 = 0 ;
28472 void *argp2 = 0 ;
28473 int res2 = 0 ;
28474 PyObject * obj0 = 0 ;
28475 PyObject * obj1 = 0 ;
28476 char * kwnames[] = {
28477 (char *) "self",(char *) "matrix", NULL
28478 };
28479
28480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28482 if (!SWIG_IsOK(res1)) {
28483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28484 }
28485 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28486 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28487 if (!SWIG_IsOK(res2)) {
28488 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28489 }
28490 if (!argp2) {
28491 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28492 }
28493 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28494 {
28495 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
28496 if (PyErr_Occurred()) SWIG_fail;
28497 }
28498 resultobj = SWIG_Py_Void();
28499 return resultobj;
28500 fail:
28501 return NULL;
28502 }
28503
28504
28505 SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28506 PyObject *resultobj = 0;
28507 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28508 wxGraphicsMatrix *arg2 = 0 ;
28509 void *argp1 = 0 ;
28510 int res1 = 0 ;
28511 void *argp2 = 0 ;
28512 int res2 = 0 ;
28513 PyObject * obj0 = 0 ;
28514 PyObject * obj1 = 0 ;
28515 char * kwnames[] = {
28516 (char *) "self",(char *) "matrix", NULL
28517 };
28518
28519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28521 if (!SWIG_IsOK(res1)) {
28522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28523 }
28524 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28525 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28526 if (!SWIG_IsOK(res2)) {
28527 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28528 }
28529 if (!argp2) {
28530 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28531 }
28532 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28533 {
28534 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
28535 if (PyErr_Occurred()) SWIG_fail;
28536 }
28537 resultobj = SWIG_Py_Void();
28538 return resultobj;
28539 fail:
28540 return NULL;
28541 }
28542
28543
28544 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28545 PyObject *resultobj = 0;
28546 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28547 wxGraphicsMatrix result;
28548 void *argp1 = 0 ;
28549 int res1 = 0 ;
28550 PyObject *swig_obj[1] ;
28551
28552 if (!args) SWIG_fail;
28553 swig_obj[0] = args;
28554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28555 if (!SWIG_IsOK(res1)) {
28556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28557 }
28558 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28559 {
28560 result = ((wxGraphicsContext const *)arg1)->GetTransform();
28561 if (PyErr_Occurred()) SWIG_fail;
28562 }
28563 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28564 return resultobj;
28565 fail:
28566 return NULL;
28567 }
28568
28569
28570 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28571 PyObject *resultobj = 0;
28572 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28573 wxGraphicsPen *arg2 = 0 ;
28574 void *argp1 = 0 ;
28575 int res1 = 0 ;
28576 void *argp2 = 0 ;
28577 int res2 = 0 ;
28578
28579 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28581 if (!SWIG_IsOK(res1)) {
28582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28583 }
28584 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28585 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
28586 if (!SWIG_IsOK(res2)) {
28587 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28588 }
28589 if (!argp2) {
28590 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28591 }
28592 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
28593 {
28594 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
28595 if (PyErr_Occurred()) SWIG_fail;
28596 }
28597 resultobj = SWIG_Py_Void();
28598 return resultobj;
28599 fail:
28600 return NULL;
28601 }
28602
28603
28604 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28605 PyObject *resultobj = 0;
28606 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28607 wxPen *arg2 = 0 ;
28608 void *argp1 = 0 ;
28609 int res1 = 0 ;
28610 void *argp2 = 0 ;
28611 int res2 = 0 ;
28612
28613 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28615 if (!SWIG_IsOK(res1)) {
28616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28617 }
28618 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28619 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
28620 if (!SWIG_IsOK(res2)) {
28621 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28622 }
28623 if (!argp2) {
28624 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28625 }
28626 arg2 = reinterpret_cast< wxPen * >(argp2);
28627 {
28628 (arg1)->SetPen((wxPen const &)*arg2);
28629 if (PyErr_Occurred()) SWIG_fail;
28630 }
28631 resultobj = SWIG_Py_Void();
28632 return resultobj;
28633 fail:
28634 return NULL;
28635 }
28636
28637
28638 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
28639 int argc;
28640 PyObject *argv[3];
28641
28642 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
28643 --argc;
28644 if (argc == 2) {
28645 int _v = 0;
28646 {
28647 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
28648 _v = SWIG_CheckState(res);
28649 }
28650 if (!_v) goto check_1;
28651 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
28652 }
28653 check_1:
28654
28655 if (argc == 2) {
28656 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
28657 }
28658
28659 fail:
28660 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
28661 return NULL;
28662 }
28663
28664
28665 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28666 PyObject *resultobj = 0;
28667 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28668 wxGraphicsBrush *arg2 = 0 ;
28669 void *argp1 = 0 ;
28670 int res1 = 0 ;
28671 void *argp2 = 0 ;
28672 int res2 = 0 ;
28673
28674 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28676 if (!SWIG_IsOK(res1)) {
28677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28678 }
28679 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28680 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
28681 if (!SWIG_IsOK(res2)) {
28682 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28683 }
28684 if (!argp2) {
28685 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28686 }
28687 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
28688 {
28689 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
28690 if (PyErr_Occurred()) SWIG_fail;
28691 }
28692 resultobj = SWIG_Py_Void();
28693 return resultobj;
28694 fail:
28695 return NULL;
28696 }
28697
28698
28699 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28700 PyObject *resultobj = 0;
28701 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28702 wxBrush *arg2 = 0 ;
28703 void *argp1 = 0 ;
28704 int res1 = 0 ;
28705 void *argp2 = 0 ;
28706 int res2 = 0 ;
28707
28708 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28710 if (!SWIG_IsOK(res1)) {
28711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28712 }
28713 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28714 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
28715 if (!SWIG_IsOK(res2)) {
28716 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28717 }
28718 if (!argp2) {
28719 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28720 }
28721 arg2 = reinterpret_cast< wxBrush * >(argp2);
28722 {
28723 (arg1)->SetBrush((wxBrush const &)*arg2);
28724 if (PyErr_Occurred()) SWIG_fail;
28725 }
28726 resultobj = SWIG_Py_Void();
28727 return resultobj;
28728 fail:
28729 return NULL;
28730 }
28731
28732
28733 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
28734 int argc;
28735 PyObject *argv[3];
28736
28737 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
28738 --argc;
28739 if (argc == 2) {
28740 int _v = 0;
28741 {
28742 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
28743 _v = SWIG_CheckState(res);
28744 }
28745 if (!_v) goto check_1;
28746 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
28747 }
28748 check_1:
28749
28750 if (argc == 2) {
28751 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
28752 }
28753
28754 fail:
28755 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
28756 return NULL;
28757 }
28758
28759
28760 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28761 PyObject *resultobj = 0;
28762 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28763 wxGraphicsFont *arg2 = 0 ;
28764 void *argp1 = 0 ;
28765 int res1 = 0 ;
28766 void *argp2 = 0 ;
28767 int res2 = 0 ;
28768
28769 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28771 if (!SWIG_IsOK(res1)) {
28772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28773 }
28774 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28775 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
28776 if (!SWIG_IsOK(res2)) {
28777 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
28778 }
28779 if (!argp2) {
28780 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
28781 }
28782 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
28783 {
28784 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
28785 if (PyErr_Occurred()) SWIG_fail;
28786 }
28787 resultobj = SWIG_Py_Void();
28788 return resultobj;
28789 fail:
28790 return NULL;
28791 }
28792
28793
28794 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28795 PyObject *resultobj = 0;
28796 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28797 wxFont *arg2 = 0 ;
28798 wxColour const &arg3_defvalue = *wxBLACK ;
28799 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
28800 void *argp1 = 0 ;
28801 int res1 = 0 ;
28802 void *argp2 = 0 ;
28803 int res2 = 0 ;
28804 wxColour temp3 ;
28805
28806 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28808 if (!SWIG_IsOK(res1)) {
28809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28810 }
28811 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28812 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28813 if (!SWIG_IsOK(res2)) {
28814 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28815 }
28816 if (!argp2) {
28817 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28818 }
28819 arg2 = reinterpret_cast< wxFont * >(argp2);
28820 if (swig_obj[2]) {
28821 {
28822 arg3 = &temp3;
28823 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
28824 }
28825 }
28826 {
28827 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
28828 if (PyErr_Occurred()) SWIG_fail;
28829 }
28830 resultobj = SWIG_Py_Void();
28831 return resultobj;
28832 fail:
28833 return NULL;
28834 }
28835
28836
28837 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
28838 int argc;
28839 PyObject *argv[4];
28840
28841 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
28842 --argc;
28843 if (argc == 2) {
28844 int _v = 0;
28845 {
28846 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
28847 _v = SWIG_CheckState(res);
28848 }
28849 if (!_v) goto check_1;
28850 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
28851 }
28852 check_1:
28853
28854 if ((argc >= 2) && (argc <= 3)) {
28855 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
28856 }
28857
28858 fail:
28859 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
28860 return NULL;
28861 }
28862
28863
28864 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28865 PyObject *resultobj = 0;
28866 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28867 wxGraphicsPath *arg2 = 0 ;
28868 void *argp1 = 0 ;
28869 int res1 = 0 ;
28870 void *argp2 = 0 ;
28871 int res2 = 0 ;
28872 PyObject * obj0 = 0 ;
28873 PyObject * obj1 = 0 ;
28874 char * kwnames[] = {
28875 (char *) "self",(char *) "path", NULL
28876 };
28877
28878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
28879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28880 if (!SWIG_IsOK(res1)) {
28881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28882 }
28883 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28884 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
28885 if (!SWIG_IsOK(res2)) {
28886 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28887 }
28888 if (!argp2) {
28889 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28890 }
28891 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28892 {
28893 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
28894 if (PyErr_Occurred()) SWIG_fail;
28895 }
28896 resultobj = SWIG_Py_Void();
28897 return resultobj;
28898 fail:
28899 return NULL;
28900 }
28901
28902
28903 SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28904 PyObject *resultobj = 0;
28905 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28906 wxGraphicsPath *arg2 = 0 ;
28907 int arg3 = (int) wxODDEVEN_RULE ;
28908 void *argp1 = 0 ;
28909 int res1 = 0 ;
28910 void *argp2 = 0 ;
28911 int res2 = 0 ;
28912 int val3 ;
28913 int ecode3 = 0 ;
28914 PyObject * obj0 = 0 ;
28915 PyObject * obj1 = 0 ;
28916 PyObject * obj2 = 0 ;
28917 char * kwnames[] = {
28918 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28919 };
28920
28921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28923 if (!SWIG_IsOK(res1)) {
28924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28925 }
28926 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28927 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
28928 if (!SWIG_IsOK(res2)) {
28929 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28930 }
28931 if (!argp2) {
28932 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28933 }
28934 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28935 if (obj2) {
28936 ecode3 = SWIG_AsVal_int(obj2, &val3);
28937 if (!SWIG_IsOK(ecode3)) {
28938 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
28939 }
28940 arg3 = static_cast< int >(val3);
28941 }
28942 {
28943 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
28944 if (PyErr_Occurred()) SWIG_fail;
28945 }
28946 resultobj = SWIG_Py_Void();
28947 return resultobj;
28948 fail:
28949 return NULL;
28950 }
28951
28952
28953 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28954 PyObject *resultobj = 0;
28955 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28956 wxGraphicsPath *arg2 = 0 ;
28957 int arg3 = (int) wxODDEVEN_RULE ;
28958 void *argp1 = 0 ;
28959 int res1 = 0 ;
28960 void *argp2 = 0 ;
28961 int res2 = 0 ;
28962 int val3 ;
28963 int ecode3 = 0 ;
28964 PyObject * obj0 = 0 ;
28965 PyObject * obj1 = 0 ;
28966 PyObject * obj2 = 0 ;
28967 char * kwnames[] = {
28968 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28969 };
28970
28971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28973 if (!SWIG_IsOK(res1)) {
28974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28975 }
28976 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28977 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
28978 if (!SWIG_IsOK(res2)) {
28979 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28980 }
28981 if (!argp2) {
28982 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28983 }
28984 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28985 if (obj2) {
28986 ecode3 = SWIG_AsVal_int(obj2, &val3);
28987 if (!SWIG_IsOK(ecode3)) {
28988 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
28989 }
28990 arg3 = static_cast< int >(val3);
28991 }
28992 {
28993 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
28994 if (PyErr_Occurred()) SWIG_fail;
28995 }
28996 resultobj = SWIG_Py_Void();
28997 return resultobj;
28998 fail:
28999 return NULL;
29000 }
29001
29002
29003 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29004 PyObject *resultobj = 0;
29005 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29006 wxString *arg2 = 0 ;
29007 wxDouble arg3 ;
29008 wxDouble arg4 ;
29009 void *argp1 = 0 ;
29010 int res1 = 0 ;
29011 bool temp2 = false ;
29012 double val3 ;
29013 int ecode3 = 0 ;
29014 double val4 ;
29015 int ecode4 = 0 ;
29016 PyObject * obj0 = 0 ;
29017 PyObject * obj1 = 0 ;
29018 PyObject * obj2 = 0 ;
29019 PyObject * obj3 = 0 ;
29020 char * kwnames[] = {
29021 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
29022 };
29023
29024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29026 if (!SWIG_IsOK(res1)) {
29027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29028 }
29029 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29030 {
29031 arg2 = wxString_in_helper(obj1);
29032 if (arg2 == NULL) SWIG_fail;
29033 temp2 = true;
29034 }
29035 ecode3 = SWIG_AsVal_double(obj2, &val3);
29036 if (!SWIG_IsOK(ecode3)) {
29037 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
29038 }
29039 arg3 = static_cast< wxDouble >(val3);
29040 ecode4 = SWIG_AsVal_double(obj3, &val4);
29041 if (!SWIG_IsOK(ecode4)) {
29042 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
29043 }
29044 arg4 = static_cast< wxDouble >(val4);
29045 {
29046 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
29047 if (PyErr_Occurred()) SWIG_fail;
29048 }
29049 resultobj = SWIG_Py_Void();
29050 {
29051 if (temp2)
29052 delete arg2;
29053 }
29054 return resultobj;
29055 fail:
29056 {
29057 if (temp2)
29058 delete arg2;
29059 }
29060 return NULL;
29061 }
29062
29063
29064 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29065 PyObject *resultobj = 0;
29066 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29067 wxString *arg2 = 0 ;
29068 wxDouble arg3 ;
29069 wxDouble arg4 ;
29070 wxDouble arg5 ;
29071 void *argp1 = 0 ;
29072 int res1 = 0 ;
29073 bool temp2 = false ;
29074 double val3 ;
29075 int ecode3 = 0 ;
29076 double val4 ;
29077 int ecode4 = 0 ;
29078 double val5 ;
29079 int ecode5 = 0 ;
29080 PyObject * obj0 = 0 ;
29081 PyObject * obj1 = 0 ;
29082 PyObject * obj2 = 0 ;
29083 PyObject * obj3 = 0 ;
29084 PyObject * obj4 = 0 ;
29085 char * kwnames[] = {
29086 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
29087 };
29088
29089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29091 if (!SWIG_IsOK(res1)) {
29092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29093 }
29094 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29095 {
29096 arg2 = wxString_in_helper(obj1);
29097 if (arg2 == NULL) SWIG_fail;
29098 temp2 = true;
29099 }
29100 ecode3 = SWIG_AsVal_double(obj2, &val3);
29101 if (!SWIG_IsOK(ecode3)) {
29102 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
29103 }
29104 arg3 = static_cast< wxDouble >(val3);
29105 ecode4 = SWIG_AsVal_double(obj3, &val4);
29106 if (!SWIG_IsOK(ecode4)) {
29107 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
29108 }
29109 arg4 = static_cast< wxDouble >(val4);
29110 ecode5 = SWIG_AsVal_double(obj4, &val5);
29111 if (!SWIG_IsOK(ecode5)) {
29112 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
29113 }
29114 arg5 = static_cast< wxDouble >(val5);
29115 {
29116 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
29117 if (PyErr_Occurred()) SWIG_fail;
29118 }
29119 resultobj = SWIG_Py_Void();
29120 {
29121 if (temp2)
29122 delete arg2;
29123 }
29124 return resultobj;
29125 fail:
29126 {
29127 if (temp2)
29128 delete arg2;
29129 }
29130 return NULL;
29131 }
29132
29133
29134 SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29135 PyObject *resultobj = 0;
29136 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29137 wxString *arg2 = 0 ;
29138 wxDouble *arg3 = (wxDouble *) 0 ;
29139 wxDouble *arg4 = (wxDouble *) 0 ;
29140 wxDouble *arg5 = (wxDouble *) 0 ;
29141 wxDouble *arg6 = (wxDouble *) 0 ;
29142 void *argp1 = 0 ;
29143 int res1 = 0 ;
29144 bool temp2 = false ;
29145 wxDouble temp3 ;
29146 int res3 = SWIG_TMPOBJ ;
29147 wxDouble temp4 ;
29148 int res4 = SWIG_TMPOBJ ;
29149 wxDouble temp5 ;
29150 int res5 = SWIG_TMPOBJ ;
29151 wxDouble temp6 ;
29152 int res6 = SWIG_TMPOBJ ;
29153 PyObject * obj0 = 0 ;
29154 PyObject * obj1 = 0 ;
29155 char * kwnames[] = {
29156 (char *) "self",(char *) "text", NULL
29157 };
29158
29159 arg3 = &temp3;
29160 arg4 = &temp4;
29161 arg5 = &temp5;
29162 arg6 = &temp6;
29163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29165 if (!SWIG_IsOK(res1)) {
29166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29167 }
29168 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29169 {
29170 arg2 = wxString_in_helper(obj1);
29171 if (arg2 == NULL) SWIG_fail;
29172 temp2 = true;
29173 }
29174 {
29175 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
29176 if (PyErr_Occurred()) SWIG_fail;
29177 }
29178 resultobj = SWIG_Py_Void();
29179 if (SWIG_IsTmpObj(res3)) {
29180 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
29181 } else {
29182 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29183 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
29184 }
29185 if (SWIG_IsTmpObj(res4)) {
29186 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
29187 } else {
29188 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29189 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
29190 }
29191 if (SWIG_IsTmpObj(res5)) {
29192 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
29193 } else {
29194 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29195 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
29196 }
29197 if (SWIG_IsTmpObj(res6)) {
29198 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
29199 } else {
29200 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29201 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
29202 }
29203 {
29204 if (temp2)
29205 delete arg2;
29206 }
29207 return resultobj;
29208 fail:
29209 {
29210 if (temp2)
29211 delete arg2;
29212 }
29213 return NULL;
29214 }
29215
29216
29217 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29218 PyObject *resultobj = 0;
29219 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29220 wxString *arg2 = 0 ;
29221 PyObject *result = 0 ;
29222 void *argp1 = 0 ;
29223 int res1 = 0 ;
29224 bool temp2 = false ;
29225 PyObject * obj0 = 0 ;
29226 PyObject * obj1 = 0 ;
29227 char * kwnames[] = {
29228 (char *) "self",(char *) "text", NULL
29229 };
29230
29231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29233 if (!SWIG_IsOK(res1)) {
29234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29235 }
29236 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29237 {
29238 arg2 = wxString_in_helper(obj1);
29239 if (arg2 == NULL) SWIG_fail;
29240 temp2 = true;
29241 }
29242 {
29243 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
29244 if (PyErr_Occurred()) SWIG_fail;
29245 }
29246 resultobj = result;
29247 {
29248 if (temp2)
29249 delete arg2;
29250 }
29251 return resultobj;
29252 fail:
29253 {
29254 if (temp2)
29255 delete arg2;
29256 }
29257 return NULL;
29258 }
29259
29260
29261 SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29262 PyObject *resultobj = 0;
29263 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29264 wxString *arg2 = 0 ;
29265 wxArrayDouble result;
29266 void *argp1 = 0 ;
29267 int res1 = 0 ;
29268 bool temp2 = false ;
29269 PyObject * obj0 = 0 ;
29270 PyObject * obj1 = 0 ;
29271 char * kwnames[] = {
29272 (char *) "self",(char *) "text", NULL
29273 };
29274
29275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
29276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29277 if (!SWIG_IsOK(res1)) {
29278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29279 }
29280 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29281 {
29282 arg2 = wxString_in_helper(obj1);
29283 if (arg2 == NULL) SWIG_fail;
29284 temp2 = true;
29285 }
29286 {
29287 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
29288 if (PyErr_Occurred()) SWIG_fail;
29289 }
29290 {
29291 resultobj = wxArrayDouble2PyList_helper(result);
29292 }
29293 {
29294 if (temp2)
29295 delete arg2;
29296 }
29297 return resultobj;
29298 fail:
29299 {
29300 if (temp2)
29301 delete arg2;
29302 }
29303 return NULL;
29304 }
29305
29306
29307 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29308 PyObject *resultobj = 0;
29309 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29310 wxBitmap *arg2 = 0 ;
29311 wxDouble arg3 ;
29312 wxDouble arg4 ;
29313 wxDouble arg5 ;
29314 wxDouble arg6 ;
29315 void *argp1 = 0 ;
29316 int res1 = 0 ;
29317 void *argp2 = 0 ;
29318 int res2 = 0 ;
29319 double val3 ;
29320 int ecode3 = 0 ;
29321 double val4 ;
29322 int ecode4 = 0 ;
29323 double val5 ;
29324 int ecode5 = 0 ;
29325 double val6 ;
29326 int ecode6 = 0 ;
29327 PyObject * obj0 = 0 ;
29328 PyObject * obj1 = 0 ;
29329 PyObject * obj2 = 0 ;
29330 PyObject * obj3 = 0 ;
29331 PyObject * obj4 = 0 ;
29332 PyObject * obj5 = 0 ;
29333 char * kwnames[] = {
29334 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29335 };
29336
29337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29339 if (!SWIG_IsOK(res1)) {
29340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29341 }
29342 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29343 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29344 if (!SWIG_IsOK(res2)) {
29345 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29346 }
29347 if (!argp2) {
29348 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29349 }
29350 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29351 ecode3 = SWIG_AsVal_double(obj2, &val3);
29352 if (!SWIG_IsOK(ecode3)) {
29353 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
29354 }
29355 arg3 = static_cast< wxDouble >(val3);
29356 ecode4 = SWIG_AsVal_double(obj3, &val4);
29357 if (!SWIG_IsOK(ecode4)) {
29358 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
29359 }
29360 arg4 = static_cast< wxDouble >(val4);
29361 ecode5 = SWIG_AsVal_double(obj4, &val5);
29362 if (!SWIG_IsOK(ecode5)) {
29363 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
29364 }
29365 arg5 = static_cast< wxDouble >(val5);
29366 ecode6 = SWIG_AsVal_double(obj5, &val6);
29367 if (!SWIG_IsOK(ecode6)) {
29368 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
29369 }
29370 arg6 = static_cast< wxDouble >(val6);
29371 {
29372 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
29373 if (PyErr_Occurred()) SWIG_fail;
29374 }
29375 resultobj = SWIG_Py_Void();
29376 return resultobj;
29377 fail:
29378 return NULL;
29379 }
29380
29381
29382 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29383 PyObject *resultobj = 0;
29384 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29385 wxIcon *arg2 = 0 ;
29386 wxDouble arg3 ;
29387 wxDouble arg4 ;
29388 wxDouble arg5 ;
29389 wxDouble arg6 ;
29390 void *argp1 = 0 ;
29391 int res1 = 0 ;
29392 void *argp2 = 0 ;
29393 int res2 = 0 ;
29394 double val3 ;
29395 int ecode3 = 0 ;
29396 double val4 ;
29397 int ecode4 = 0 ;
29398 double val5 ;
29399 int ecode5 = 0 ;
29400 double val6 ;
29401 int ecode6 = 0 ;
29402 PyObject * obj0 = 0 ;
29403 PyObject * obj1 = 0 ;
29404 PyObject * obj2 = 0 ;
29405 PyObject * obj3 = 0 ;
29406 PyObject * obj4 = 0 ;
29407 PyObject * obj5 = 0 ;
29408 char * kwnames[] = {
29409 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29410 };
29411
29412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29414 if (!SWIG_IsOK(res1)) {
29415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29416 }
29417 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29418 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29419 if (!SWIG_IsOK(res2)) {
29420 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29421 }
29422 if (!argp2) {
29423 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29424 }
29425 arg2 = reinterpret_cast< wxIcon * >(argp2);
29426 ecode3 = SWIG_AsVal_double(obj2, &val3);
29427 if (!SWIG_IsOK(ecode3)) {
29428 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
29429 }
29430 arg3 = static_cast< wxDouble >(val3);
29431 ecode4 = SWIG_AsVal_double(obj3, &val4);
29432 if (!SWIG_IsOK(ecode4)) {
29433 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
29434 }
29435 arg4 = static_cast< wxDouble >(val4);
29436 ecode5 = SWIG_AsVal_double(obj4, &val5);
29437 if (!SWIG_IsOK(ecode5)) {
29438 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
29439 }
29440 arg5 = static_cast< wxDouble >(val5);
29441 ecode6 = SWIG_AsVal_double(obj5, &val6);
29442 if (!SWIG_IsOK(ecode6)) {
29443 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
29444 }
29445 arg6 = static_cast< wxDouble >(val6);
29446 {
29447 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
29448 if (PyErr_Occurred()) SWIG_fail;
29449 }
29450 resultobj = SWIG_Py_Void();
29451 return resultobj;
29452 fail:
29453 return NULL;
29454 }
29455
29456
29457 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29458 PyObject *resultobj = 0;
29459 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29460 wxDouble arg2 ;
29461 wxDouble arg3 ;
29462 wxDouble arg4 ;
29463 wxDouble arg5 ;
29464 void *argp1 = 0 ;
29465 int res1 = 0 ;
29466 double val2 ;
29467 int ecode2 = 0 ;
29468 double val3 ;
29469 int ecode3 = 0 ;
29470 double val4 ;
29471 int ecode4 = 0 ;
29472 double val5 ;
29473 int ecode5 = 0 ;
29474 PyObject * obj0 = 0 ;
29475 PyObject * obj1 = 0 ;
29476 PyObject * obj2 = 0 ;
29477 PyObject * obj3 = 0 ;
29478 PyObject * obj4 = 0 ;
29479 char * kwnames[] = {
29480 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
29481 };
29482
29483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29485 if (!SWIG_IsOK(res1)) {
29486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29487 }
29488 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29489 ecode2 = SWIG_AsVal_double(obj1, &val2);
29490 if (!SWIG_IsOK(ecode2)) {
29491 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
29492 }
29493 arg2 = static_cast< wxDouble >(val2);
29494 ecode3 = SWIG_AsVal_double(obj2, &val3);
29495 if (!SWIG_IsOK(ecode3)) {
29496 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
29497 }
29498 arg3 = static_cast< wxDouble >(val3);
29499 ecode4 = SWIG_AsVal_double(obj3, &val4);
29500 if (!SWIG_IsOK(ecode4)) {
29501 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
29502 }
29503 arg4 = static_cast< wxDouble >(val4);
29504 ecode5 = SWIG_AsVal_double(obj4, &val5);
29505 if (!SWIG_IsOK(ecode5)) {
29506 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
29507 }
29508 arg5 = static_cast< wxDouble >(val5);
29509 {
29510 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
29511 if (PyErr_Occurred()) SWIG_fail;
29512 }
29513 resultobj = SWIG_Py_Void();
29514 return resultobj;
29515 fail:
29516 return NULL;
29517 }
29518
29519
29520 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29521 PyObject *resultobj = 0;
29522 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29523 size_t arg2 ;
29524 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29525 void *argp1 = 0 ;
29526 int res1 = 0 ;
29527 PyObject * obj0 = 0 ;
29528 PyObject * obj1 = 0 ;
29529 char * kwnames[] = {
29530 (char *) "self",(char *) "points", NULL
29531 };
29532
29533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
29534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29535 if (!SWIG_IsOK(res1)) {
29536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29537 }
29538 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29539 {
29540 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29541 if (arg3 == NULL) SWIG_fail;
29542 }
29543 {
29544 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
29545 if (PyErr_Occurred()) SWIG_fail;
29546 }
29547 resultobj = SWIG_Py_Void();
29548 {
29549 if (arg3) delete [] arg3;
29550 }
29551 return resultobj;
29552 fail:
29553 {
29554 if (arg3) delete [] arg3;
29555 }
29556 return NULL;
29557 }
29558
29559
29560 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29561 PyObject *resultobj = 0;
29562 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29563 PyObject *arg2 = (PyObject *) 0 ;
29564 PyObject *arg3 = (PyObject *) 0 ;
29565 void *argp1 = 0 ;
29566 int res1 = 0 ;
29567 PyObject * obj0 = 0 ;
29568 PyObject * obj1 = 0 ;
29569 PyObject * obj2 = 0 ;
29570 char * kwnames[] = {
29571 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
29572 };
29573
29574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29576 if (!SWIG_IsOK(res1)) {
29577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29578 }
29579 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29580 arg2 = obj1;
29581 arg3 = obj2;
29582 {
29583 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
29584 if (PyErr_Occurred()) SWIG_fail;
29585 }
29586 resultobj = SWIG_Py_Void();
29587 return resultobj;
29588 fail:
29589 return NULL;
29590 }
29591
29592
29593 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29594 PyObject *resultobj = 0;
29595 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29596 size_t arg2 ;
29597 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29598 int arg4 = (int) wxODDEVEN_RULE ;
29599 void *argp1 = 0 ;
29600 int res1 = 0 ;
29601 int val4 ;
29602 int ecode4 = 0 ;
29603 PyObject * obj0 = 0 ;
29604 PyObject * obj1 = 0 ;
29605 PyObject * obj2 = 0 ;
29606 char * kwnames[] = {
29607 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
29608 };
29609
29610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29612 if (!SWIG_IsOK(res1)) {
29613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29614 }
29615 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29616 {
29617 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29618 if (arg3 == NULL) SWIG_fail;
29619 }
29620 if (obj2) {
29621 ecode4 = SWIG_AsVal_int(obj2, &val4);
29622 if (!SWIG_IsOK(ecode4)) {
29623 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
29624 }
29625 arg4 = static_cast< int >(val4);
29626 }
29627 {
29628 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
29629 if (PyErr_Occurred()) SWIG_fail;
29630 }
29631 resultobj = SWIG_Py_Void();
29632 {
29633 if (arg3) delete [] arg3;
29634 }
29635 return resultobj;
29636 fail:
29637 {
29638 if (arg3) delete [] arg3;
29639 }
29640 return NULL;
29641 }
29642
29643
29644 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29645 PyObject *resultobj = 0;
29646 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29647 wxDouble arg2 ;
29648 wxDouble arg3 ;
29649 wxDouble arg4 ;
29650 wxDouble arg5 ;
29651 void *argp1 = 0 ;
29652 int res1 = 0 ;
29653 double val2 ;
29654 int ecode2 = 0 ;
29655 double val3 ;
29656 int ecode3 = 0 ;
29657 double val4 ;
29658 int ecode4 = 0 ;
29659 double val5 ;
29660 int ecode5 = 0 ;
29661 PyObject * obj0 = 0 ;
29662 PyObject * obj1 = 0 ;
29663 PyObject * obj2 = 0 ;
29664 PyObject * obj3 = 0 ;
29665 PyObject * obj4 = 0 ;
29666 char * kwnames[] = {
29667 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29668 };
29669
29670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29672 if (!SWIG_IsOK(res1)) {
29673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29674 }
29675 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29676 ecode2 = SWIG_AsVal_double(obj1, &val2);
29677 if (!SWIG_IsOK(ecode2)) {
29678 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
29679 }
29680 arg2 = static_cast< wxDouble >(val2);
29681 ecode3 = SWIG_AsVal_double(obj2, &val3);
29682 if (!SWIG_IsOK(ecode3)) {
29683 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
29684 }
29685 arg3 = static_cast< wxDouble >(val3);
29686 ecode4 = SWIG_AsVal_double(obj3, &val4);
29687 if (!SWIG_IsOK(ecode4)) {
29688 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
29689 }
29690 arg4 = static_cast< wxDouble >(val4);
29691 ecode5 = SWIG_AsVal_double(obj4, &val5);
29692 if (!SWIG_IsOK(ecode5)) {
29693 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
29694 }
29695 arg5 = static_cast< wxDouble >(val5);
29696 {
29697 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
29698 if (PyErr_Occurred()) SWIG_fail;
29699 }
29700 resultobj = SWIG_Py_Void();
29701 return resultobj;
29702 fail:
29703 return NULL;
29704 }
29705
29706
29707 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29708 PyObject *resultobj = 0;
29709 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29710 wxDouble arg2 ;
29711 wxDouble arg3 ;
29712 wxDouble arg4 ;
29713 wxDouble arg5 ;
29714 void *argp1 = 0 ;
29715 int res1 = 0 ;
29716 double val2 ;
29717 int ecode2 = 0 ;
29718 double val3 ;
29719 int ecode3 = 0 ;
29720 double val4 ;
29721 int ecode4 = 0 ;
29722 double val5 ;
29723 int ecode5 = 0 ;
29724 PyObject * obj0 = 0 ;
29725 PyObject * obj1 = 0 ;
29726 PyObject * obj2 = 0 ;
29727 PyObject * obj3 = 0 ;
29728 PyObject * obj4 = 0 ;
29729 char * kwnames[] = {
29730 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29731 };
29732
29733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29735 if (!SWIG_IsOK(res1)) {
29736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29737 }
29738 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29739 ecode2 = SWIG_AsVal_double(obj1, &val2);
29740 if (!SWIG_IsOK(ecode2)) {
29741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
29742 }
29743 arg2 = static_cast< wxDouble >(val2);
29744 ecode3 = SWIG_AsVal_double(obj2, &val3);
29745 if (!SWIG_IsOK(ecode3)) {
29746 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
29747 }
29748 arg3 = static_cast< wxDouble >(val3);
29749 ecode4 = SWIG_AsVal_double(obj3, &val4);
29750 if (!SWIG_IsOK(ecode4)) {
29751 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
29752 }
29753 arg4 = static_cast< wxDouble >(val4);
29754 ecode5 = SWIG_AsVal_double(obj4, &val5);
29755 if (!SWIG_IsOK(ecode5)) {
29756 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
29757 }
29758 arg5 = static_cast< wxDouble >(val5);
29759 {
29760 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
29761 if (PyErr_Occurred()) SWIG_fail;
29762 }
29763 resultobj = SWIG_Py_Void();
29764 return resultobj;
29765 fail:
29766 return NULL;
29767 }
29768
29769
29770 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29771 PyObject *resultobj = 0;
29772 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29773 wxDouble arg2 ;
29774 wxDouble arg3 ;
29775 wxDouble arg4 ;
29776 wxDouble arg5 ;
29777 wxDouble arg6 ;
29778 void *argp1 = 0 ;
29779 int res1 = 0 ;
29780 double val2 ;
29781 int ecode2 = 0 ;
29782 double val3 ;
29783 int ecode3 = 0 ;
29784 double val4 ;
29785 int ecode4 = 0 ;
29786 double val5 ;
29787 int ecode5 = 0 ;
29788 double val6 ;
29789 int ecode6 = 0 ;
29790 PyObject * obj0 = 0 ;
29791 PyObject * obj1 = 0 ;
29792 PyObject * obj2 = 0 ;
29793 PyObject * obj3 = 0 ;
29794 PyObject * obj4 = 0 ;
29795 PyObject * obj5 = 0 ;
29796 char * kwnames[] = {
29797 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
29798 };
29799
29800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29802 if (!SWIG_IsOK(res1)) {
29803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29804 }
29805 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29806 ecode2 = SWIG_AsVal_double(obj1, &val2);
29807 if (!SWIG_IsOK(ecode2)) {
29808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
29809 }
29810 arg2 = static_cast< wxDouble >(val2);
29811 ecode3 = SWIG_AsVal_double(obj2, &val3);
29812 if (!SWIG_IsOK(ecode3)) {
29813 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
29814 }
29815 arg3 = static_cast< wxDouble >(val3);
29816 ecode4 = SWIG_AsVal_double(obj3, &val4);
29817 if (!SWIG_IsOK(ecode4)) {
29818 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
29819 }
29820 arg4 = static_cast< wxDouble >(val4);
29821 ecode5 = SWIG_AsVal_double(obj4, &val5);
29822 if (!SWIG_IsOK(ecode5)) {
29823 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
29824 }
29825 arg5 = static_cast< wxDouble >(val5);
29826 ecode6 = SWIG_AsVal_double(obj5, &val6);
29827 if (!SWIG_IsOK(ecode6)) {
29828 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
29829 }
29830 arg6 = static_cast< wxDouble >(val6);
29831 {
29832 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
29833 if (PyErr_Occurred()) SWIG_fail;
29834 }
29835 resultobj = SWIG_Py_Void();
29836 return resultobj;
29837 fail:
29838 return NULL;
29839 }
29840
29841
29842 SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29843 PyObject *resultobj = 0;
29844 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29845 bool result;
29846 void *argp1 = 0 ;
29847 int res1 = 0 ;
29848 PyObject *swig_obj[1] ;
29849
29850 if (!args) SWIG_fail;
29851 swig_obj[0] = args;
29852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29853 if (!SWIG_IsOK(res1)) {
29854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29855 }
29856 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29857 {
29858 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
29859 if (PyErr_Occurred()) SWIG_fail;
29860 }
29861 {
29862 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29863 }
29864 return resultobj;
29865 fail:
29866 return NULL;
29867 }
29868
29869
29870 SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29871 PyObject *obj;
29872 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29873 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
29874 return SWIG_Py_Void();
29875 }
29876
29877 SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29878 PyObject *resultobj = 0;
29879 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29880 void *argp1 = 0 ;
29881 int res1 = 0 ;
29882 PyObject *swig_obj[1] ;
29883
29884 if (!args) SWIG_fail;
29885 swig_obj[0] = args;
29886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
29887 if (!SWIG_IsOK(res1)) {
29888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29889 }
29890 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29891 {
29892 delete arg1;
29893
29894 if (PyErr_Occurred()) SWIG_fail;
29895 }
29896 resultobj = SWIG_Py_Void();
29897 return resultobj;
29898 fail:
29899 return NULL;
29900 }
29901
29902
29903 SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29904 PyObject *resultobj = 0;
29905 wxGraphicsRenderer *result = 0 ;
29906
29907 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
29908 {
29909 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
29910 if (PyErr_Occurred()) SWIG_fail;
29911 }
29912 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29913 return resultobj;
29914 fail:
29915 return NULL;
29916 }
29917
29918
29919 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29920 PyObject *resultobj = 0;
29921 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29922 wxWindowDC *arg2 = 0 ;
29923 wxGraphicsContext *result = 0 ;
29924 void *argp1 = 0 ;
29925 int res1 = 0 ;
29926 void *argp2 = 0 ;
29927 int res2 = 0 ;
29928
29929 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29931 if (!SWIG_IsOK(res1)) {
29932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29933 }
29934 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29935 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
29936 if (!SWIG_IsOK(res2)) {
29937 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29938 }
29939 if (!argp2) {
29940 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29941 }
29942 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
29943 {
29944 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
29945 if (PyErr_Occurred()) SWIG_fail;
29946 }
29947 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
29948 return resultobj;
29949 fail:
29950 return NULL;
29951 }
29952
29953
29954 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29955 PyObject *resultobj = 0;
29956 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29957 wxWindow *arg2 = (wxWindow *) 0 ;
29958 wxGraphicsContext *result = 0 ;
29959 void *argp1 = 0 ;
29960 int res1 = 0 ;
29961 void *argp2 = 0 ;
29962 int res2 = 0 ;
29963
29964 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29965 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29966 if (!SWIG_IsOK(res1)) {
29967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29968 }
29969 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29970 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29971 if (!SWIG_IsOK(res2)) {
29972 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
29973 }
29974 arg2 = reinterpret_cast< wxWindow * >(argp2);
29975 {
29976 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
29977 if (PyErr_Occurred()) SWIG_fail;
29978 }
29979 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
29980 return resultobj;
29981 fail:
29982 return NULL;
29983 }
29984
29985
29986 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
29987 int argc;
29988 PyObject *argv[3];
29989
29990 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
29991 --argc;
29992 if (argc == 2) {
29993 int _v = 0;
29994 {
29995 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
29996 _v = SWIG_CheckState(res);
29997 }
29998 if (!_v) goto check_1;
29999 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
30000 }
30001 check_1:
30002
30003 if (argc == 2) {
30004 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
30005 }
30006
30007 fail:
30008 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
30009 return NULL;
30010 }
30011
30012
30013 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30014 PyObject *resultobj = 0;
30015 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30016 void *arg2 = (void *) 0 ;
30017 wxGraphicsContext *result = 0 ;
30018 void *argp1 = 0 ;
30019 int res1 = 0 ;
30020 int res2 ;
30021 PyObject * obj0 = 0 ;
30022 PyObject * obj1 = 0 ;
30023 char * kwnames[] = {
30024 (char *) "self",(char *) "context", NULL
30025 };
30026
30027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
30028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30029 if (!SWIG_IsOK(res1)) {
30030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30031 }
30032 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30033 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30034 if (!SWIG_IsOK(res2)) {
30035 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
30036 }
30037 {
30038 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
30039 if (PyErr_Occurred()) SWIG_fail;
30040 }
30041 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30042 return resultobj;
30043 fail:
30044 return NULL;
30045 }
30046
30047
30048 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30049 PyObject *resultobj = 0;
30050 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30051 void *arg2 = (void *) 0 ;
30052 wxGraphicsContext *result = 0 ;
30053 void *argp1 = 0 ;
30054 int res1 = 0 ;
30055 int res2 ;
30056 PyObject * obj0 = 0 ;
30057 PyObject * obj1 = 0 ;
30058 char * kwnames[] = {
30059 (char *) "self",(char *) "window", NULL
30060 };
30061
30062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
30063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30064 if (!SWIG_IsOK(res1)) {
30065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30066 }
30067 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30068 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30069 if (!SWIG_IsOK(res2)) {
30070 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
30071 }
30072 {
30073 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
30074 if (PyErr_Occurred()) SWIG_fail;
30075 }
30076 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30077 return resultobj;
30078 fail:
30079 return NULL;
30080 }
30081
30082
30083 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30084 PyObject *resultobj = 0;
30085 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30086 wxGraphicsPath result;
30087 void *argp1 = 0 ;
30088 int res1 = 0 ;
30089 PyObject *swig_obj[1] ;
30090
30091 if (!args) SWIG_fail;
30092 swig_obj[0] = args;
30093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30094 if (!SWIG_IsOK(res1)) {
30095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30096 }
30097 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30098 {
30099 result = (arg1)->CreatePath();
30100 if (PyErr_Occurred()) SWIG_fail;
30101 }
30102 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
30103 return resultobj;
30104 fail:
30105 return NULL;
30106 }
30107
30108
30109 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30110 PyObject *resultobj = 0;
30111 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30112 wxDouble arg2 = (wxDouble) 1.0 ;
30113 wxDouble arg3 = (wxDouble) 0.0 ;
30114 wxDouble arg4 = (wxDouble) 0.0 ;
30115 wxDouble arg5 = (wxDouble) 1.0 ;
30116 wxDouble arg6 = (wxDouble) 0.0 ;
30117 wxDouble arg7 = (wxDouble) 0.0 ;
30118 wxGraphicsMatrix result;
30119 void *argp1 = 0 ;
30120 int res1 = 0 ;
30121 double val2 ;
30122 int ecode2 = 0 ;
30123 double val3 ;
30124 int ecode3 = 0 ;
30125 double val4 ;
30126 int ecode4 = 0 ;
30127 double val5 ;
30128 int ecode5 = 0 ;
30129 double val6 ;
30130 int ecode6 = 0 ;
30131 double val7 ;
30132 int ecode7 = 0 ;
30133 PyObject * obj0 = 0 ;
30134 PyObject * obj1 = 0 ;
30135 PyObject * obj2 = 0 ;
30136 PyObject * obj3 = 0 ;
30137 PyObject * obj4 = 0 ;
30138 PyObject * obj5 = 0 ;
30139 PyObject * obj6 = 0 ;
30140 char * kwnames[] = {
30141 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
30142 };
30143
30144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30146 if (!SWIG_IsOK(res1)) {
30147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30148 }
30149 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30150 if (obj1) {
30151 ecode2 = SWIG_AsVal_double(obj1, &val2);
30152 if (!SWIG_IsOK(ecode2)) {
30153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
30154 }
30155 arg2 = static_cast< wxDouble >(val2);
30156 }
30157 if (obj2) {
30158 ecode3 = SWIG_AsVal_double(obj2, &val3);
30159 if (!SWIG_IsOK(ecode3)) {
30160 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
30161 }
30162 arg3 = static_cast< wxDouble >(val3);
30163 }
30164 if (obj3) {
30165 ecode4 = SWIG_AsVal_double(obj3, &val4);
30166 if (!SWIG_IsOK(ecode4)) {
30167 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
30168 }
30169 arg4 = static_cast< wxDouble >(val4);
30170 }
30171 if (obj4) {
30172 ecode5 = SWIG_AsVal_double(obj4, &val5);
30173 if (!SWIG_IsOK(ecode5)) {
30174 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
30175 }
30176 arg5 = static_cast< wxDouble >(val5);
30177 }
30178 if (obj5) {
30179 ecode6 = SWIG_AsVal_double(obj5, &val6);
30180 if (!SWIG_IsOK(ecode6)) {
30181 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
30182 }
30183 arg6 = static_cast< wxDouble >(val6);
30184 }
30185 if (obj6) {
30186 ecode7 = SWIG_AsVal_double(obj6, &val7);
30187 if (!SWIG_IsOK(ecode7)) {
30188 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
30189 }
30190 arg7 = static_cast< wxDouble >(val7);
30191 }
30192 {
30193 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
30194 if (PyErr_Occurred()) SWIG_fail;
30195 }
30196 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
30197 return resultobj;
30198 fail:
30199 return NULL;
30200 }
30201
30202
30203 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30204 PyObject *resultobj = 0;
30205 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30206 wxPen *arg2 = 0 ;
30207 wxGraphicsPen result;
30208 void *argp1 = 0 ;
30209 int res1 = 0 ;
30210 void *argp2 = 0 ;
30211 int res2 = 0 ;
30212 PyObject * obj0 = 0 ;
30213 PyObject * obj1 = 0 ;
30214 char * kwnames[] = {
30215 (char *) "self",(char *) "pen", NULL
30216 };
30217
30218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
30219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30220 if (!SWIG_IsOK(res1)) {
30221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30222 }
30223 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30224 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
30225 if (!SWIG_IsOK(res2)) {
30226 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30227 }
30228 if (!argp2) {
30229 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30230 }
30231 arg2 = reinterpret_cast< wxPen * >(argp2);
30232 {
30233 result = (arg1)->CreatePen((wxPen const &)*arg2);
30234 if (PyErr_Occurred()) SWIG_fail;
30235 }
30236 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
30237 return resultobj;
30238 fail:
30239 return NULL;
30240 }
30241
30242
30243 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30244 PyObject *resultobj = 0;
30245 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30246 wxBrush *arg2 = 0 ;
30247 wxGraphicsBrush result;
30248 void *argp1 = 0 ;
30249 int res1 = 0 ;
30250 void *argp2 = 0 ;
30251 int res2 = 0 ;
30252 PyObject * obj0 = 0 ;
30253 PyObject * obj1 = 0 ;
30254 char * kwnames[] = {
30255 (char *) "self",(char *) "brush", NULL
30256 };
30257
30258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30260 if (!SWIG_IsOK(res1)) {
30261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30262 }
30263 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30264 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30265 if (!SWIG_IsOK(res2)) {
30266 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30267 }
30268 if (!argp2) {
30269 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30270 }
30271 arg2 = reinterpret_cast< wxBrush * >(argp2);
30272 {
30273 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
30274 if (PyErr_Occurred()) SWIG_fail;
30275 }
30276 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30277 return resultobj;
30278 fail:
30279 return NULL;
30280 }
30281
30282
30283 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30284 PyObject *resultobj = 0;
30285 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30286 wxDouble arg2 ;
30287 wxDouble arg3 ;
30288 wxDouble arg4 ;
30289 wxDouble arg5 ;
30290 wxColour *arg6 = 0 ;
30291 wxColour *arg7 = 0 ;
30292 wxGraphicsBrush result;
30293 void *argp1 = 0 ;
30294 int res1 = 0 ;
30295 double val2 ;
30296 int ecode2 = 0 ;
30297 double val3 ;
30298 int ecode3 = 0 ;
30299 double val4 ;
30300 int ecode4 = 0 ;
30301 double val5 ;
30302 int ecode5 = 0 ;
30303 wxColour temp6 ;
30304 wxColour temp7 ;
30305 PyObject * obj0 = 0 ;
30306 PyObject * obj1 = 0 ;
30307 PyObject * obj2 = 0 ;
30308 PyObject * obj3 = 0 ;
30309 PyObject * obj4 = 0 ;
30310 PyObject * obj5 = 0 ;
30311 PyObject * obj6 = 0 ;
30312 char * kwnames[] = {
30313 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
30314 };
30315
30316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30318 if (!SWIG_IsOK(res1)) {
30319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30320 }
30321 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30322 ecode2 = SWIG_AsVal_double(obj1, &val2);
30323 if (!SWIG_IsOK(ecode2)) {
30324 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
30325 }
30326 arg2 = static_cast< wxDouble >(val2);
30327 ecode3 = SWIG_AsVal_double(obj2, &val3);
30328 if (!SWIG_IsOK(ecode3)) {
30329 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
30330 }
30331 arg3 = static_cast< wxDouble >(val3);
30332 ecode4 = SWIG_AsVal_double(obj3, &val4);
30333 if (!SWIG_IsOK(ecode4)) {
30334 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
30335 }
30336 arg4 = static_cast< wxDouble >(val4);
30337 ecode5 = SWIG_AsVal_double(obj4, &val5);
30338 if (!SWIG_IsOK(ecode5)) {
30339 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
30340 }
30341 arg5 = static_cast< wxDouble >(val5);
30342 {
30343 arg6 = &temp6;
30344 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
30345 }
30346 {
30347 arg7 = &temp7;
30348 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30349 }
30350 {
30351 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
30352 if (PyErr_Occurred()) SWIG_fail;
30353 }
30354 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30355 return resultobj;
30356 fail:
30357 return NULL;
30358 }
30359
30360
30361 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30362 PyObject *resultobj = 0;
30363 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30364 wxDouble arg2 ;
30365 wxDouble arg3 ;
30366 wxDouble arg4 ;
30367 wxDouble arg5 ;
30368 wxDouble arg6 ;
30369 wxColour *arg7 = 0 ;
30370 wxColour *arg8 = 0 ;
30371 wxGraphicsBrush result;
30372 void *argp1 = 0 ;
30373 int res1 = 0 ;
30374 double val2 ;
30375 int ecode2 = 0 ;
30376 double val3 ;
30377 int ecode3 = 0 ;
30378 double val4 ;
30379 int ecode4 = 0 ;
30380 double val5 ;
30381 int ecode5 = 0 ;
30382 double val6 ;
30383 int ecode6 = 0 ;
30384 wxColour temp7 ;
30385 wxColour temp8 ;
30386 PyObject * obj0 = 0 ;
30387 PyObject * obj1 = 0 ;
30388 PyObject * obj2 = 0 ;
30389 PyObject * obj3 = 0 ;
30390 PyObject * obj4 = 0 ;
30391 PyObject * obj5 = 0 ;
30392 PyObject * obj6 = 0 ;
30393 PyObject * obj7 = 0 ;
30394 char * kwnames[] = {
30395 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
30396 };
30397
30398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
30399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30400 if (!SWIG_IsOK(res1)) {
30401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30402 }
30403 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30404 ecode2 = SWIG_AsVal_double(obj1, &val2);
30405 if (!SWIG_IsOK(ecode2)) {
30406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
30407 }
30408 arg2 = static_cast< wxDouble >(val2);
30409 ecode3 = SWIG_AsVal_double(obj2, &val3);
30410 if (!SWIG_IsOK(ecode3)) {
30411 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
30412 }
30413 arg3 = static_cast< wxDouble >(val3);
30414 ecode4 = SWIG_AsVal_double(obj3, &val4);
30415 if (!SWIG_IsOK(ecode4)) {
30416 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
30417 }
30418 arg4 = static_cast< wxDouble >(val4);
30419 ecode5 = SWIG_AsVal_double(obj4, &val5);
30420 if (!SWIG_IsOK(ecode5)) {
30421 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
30422 }
30423 arg5 = static_cast< wxDouble >(val5);
30424 ecode6 = SWIG_AsVal_double(obj5, &val6);
30425 if (!SWIG_IsOK(ecode6)) {
30426 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
30427 }
30428 arg6 = static_cast< wxDouble >(val6);
30429 {
30430 arg7 = &temp7;
30431 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30432 }
30433 {
30434 arg8 = &temp8;
30435 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
30436 }
30437 {
30438 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
30439 if (PyErr_Occurred()) SWIG_fail;
30440 }
30441 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30442 return resultobj;
30443 fail:
30444 return NULL;
30445 }
30446
30447
30448 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30449 PyObject *resultobj = 0;
30450 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30451 wxFont *arg2 = 0 ;
30452 wxColour const &arg3_defvalue = *wxBLACK ;
30453 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
30454 wxGraphicsFont result;
30455 void *argp1 = 0 ;
30456 int res1 = 0 ;
30457 void *argp2 = 0 ;
30458 int res2 = 0 ;
30459 wxColour temp3 ;
30460 PyObject * obj0 = 0 ;
30461 PyObject * obj1 = 0 ;
30462 PyObject * obj2 = 0 ;
30463 char * kwnames[] = {
30464 (char *) "self",(char *) "font",(char *) "col", NULL
30465 };
30466
30467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30469 if (!SWIG_IsOK(res1)) {
30470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30471 }
30472 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30473 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
30474 if (!SWIG_IsOK(res2)) {
30475 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30476 }
30477 if (!argp2) {
30478 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30479 }
30480 arg2 = reinterpret_cast< wxFont * >(argp2);
30481 if (obj2) {
30482 {
30483 arg3 = &temp3;
30484 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30485 }
30486 }
30487 {
30488 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
30489 if (PyErr_Occurred()) SWIG_fail;
30490 }
30491 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
30492 return resultobj;
30493 fail:
30494 return NULL;
30495 }
30496
30497
30498 SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30499 PyObject *obj;
30500 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30501 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
30502 return SWIG_Py_Void();
30503 }
30504
30505 SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30506 PyObject *resultobj = 0;
30507 wxWindowDC *arg1 = 0 ;
30508 wxGCDC *result = 0 ;
30509 void *argp1 = 0 ;
30510 int res1 = 0 ;
30511 PyObject * obj0 = 0 ;
30512 char * kwnames[] = {
30513 (char *) "dc", NULL
30514 };
30515
30516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
30517 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
30518 if (!SWIG_IsOK(res1)) {
30519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30520 }
30521 if (!argp1) {
30522 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30523 }
30524 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
30525 {
30526 if (!wxPyCheckForApp()) SWIG_fail;
30527 PyThreadState* __tstate = wxPyBeginAllowThreads();
30528 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
30529 wxPyEndAllowThreads(__tstate);
30530 if (PyErr_Occurred()) SWIG_fail;
30531 }
30532 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30533 return resultobj;
30534 fail:
30535 return NULL;
30536 }
30537
30538
30539 SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30540 PyObject *resultobj = 0;
30541 wxGCDC *arg1 = (wxGCDC *) 0 ;
30542 void *argp1 = 0 ;
30543 int res1 = 0 ;
30544 PyObject *swig_obj[1] ;
30545
30546 if (!args) SWIG_fail;
30547 swig_obj[0] = args;
30548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
30549 if (!SWIG_IsOK(res1)) {
30550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
30551 }
30552 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30553 {
30554 delete arg1;
30555
30556 if (PyErr_Occurred()) SWIG_fail;
30557 }
30558 resultobj = SWIG_Py_Void();
30559 return resultobj;
30560 fail:
30561 return NULL;
30562 }
30563
30564
30565 SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30566 PyObject *resultobj = 0;
30567 wxGCDC *arg1 = (wxGCDC *) 0 ;
30568 wxGraphicsContext *result = 0 ;
30569 void *argp1 = 0 ;
30570 int res1 = 0 ;
30571 PyObject *swig_obj[1] ;
30572
30573 if (!args) SWIG_fail;
30574 swig_obj[0] = args;
30575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30576 if (!SWIG_IsOK(res1)) {
30577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
30578 }
30579 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30580 {
30581 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
30582 if (PyErr_Occurred()) SWIG_fail;
30583 }
30584 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30585 return resultobj;
30586 fail:
30587 return NULL;
30588 }
30589
30590
30591 SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30592 PyObject *resultobj = 0;
30593 wxGCDC *arg1 = (wxGCDC *) 0 ;
30594 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
30595 void *argp1 = 0 ;
30596 int res1 = 0 ;
30597 void *argp2 = 0 ;
30598 int res2 = 0 ;
30599 PyObject * obj0 = 0 ;
30600 PyObject * obj1 = 0 ;
30601 char * kwnames[] = {
30602 (char *) "self",(char *) "ctx", NULL
30603 };
30604
30605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
30606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30607 if (!SWIG_IsOK(res1)) {
30608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
30609 }
30610 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30611 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30612 if (!SWIG_IsOK(res2)) {
30613 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
30614 }
30615 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
30616 {
30617 (arg1)->SetGraphicsContext(arg2);
30618 if (PyErr_Occurred()) SWIG_fail;
30619 }
30620 resultobj = SWIG_Py_Void();
30621 return resultobj;
30622 fail:
30623 return NULL;
30624 }
30625
30626
30627 SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30628 PyObject *obj;
30629 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30630 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
30631 return SWIG_Py_Void();
30632 }
30633
30634 SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30635 return SWIG_Python_InitShadowInstance(args);
30636 }
30637
30638 SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30639 PyObject *resultobj = 0;
30640 wxOverlay *result = 0 ;
30641
30642 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
30643 {
30644 PyThreadState* __tstate = wxPyBeginAllowThreads();
30645 result = (wxOverlay *)new wxOverlay();
30646 wxPyEndAllowThreads(__tstate);
30647 if (PyErr_Occurred()) SWIG_fail;
30648 }
30649 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
30650 return resultobj;
30651 fail:
30652 return NULL;
30653 }
30654
30655
30656 SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30657 PyObject *resultobj = 0;
30658 wxOverlay *arg1 = (wxOverlay *) 0 ;
30659 void *argp1 = 0 ;
30660 int res1 = 0 ;
30661 PyObject *swig_obj[1] ;
30662
30663 if (!args) SWIG_fail;
30664 swig_obj[0] = args;
30665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
30666 if (!SWIG_IsOK(res1)) {
30667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
30668 }
30669 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30670 {
30671 PyThreadState* __tstate = wxPyBeginAllowThreads();
30672 delete arg1;
30673
30674 wxPyEndAllowThreads(__tstate);
30675 if (PyErr_Occurred()) SWIG_fail;
30676 }
30677 resultobj = SWIG_Py_Void();
30678 return resultobj;
30679 fail:
30680 return NULL;
30681 }
30682
30683
30684 SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30685 PyObject *resultobj = 0;
30686 wxOverlay *arg1 = (wxOverlay *) 0 ;
30687 void *argp1 = 0 ;
30688 int res1 = 0 ;
30689 PyObject *swig_obj[1] ;
30690
30691 if (!args) SWIG_fail;
30692 swig_obj[0] = args;
30693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
30694 if (!SWIG_IsOK(res1)) {
30695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
30696 }
30697 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30698 {
30699 PyThreadState* __tstate = wxPyBeginAllowThreads();
30700 (arg1)->Reset();
30701 wxPyEndAllowThreads(__tstate);
30702 if (PyErr_Occurred()) SWIG_fail;
30703 }
30704 resultobj = SWIG_Py_Void();
30705 return resultobj;
30706 fail:
30707 return NULL;
30708 }
30709
30710
30711 SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30712 PyObject *obj;
30713 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30714 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
30715 return SWIG_Py_Void();
30716 }
30717
30718 SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30719 return SWIG_Python_InitShadowInstance(args);
30720 }
30721
30722 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30723 PyObject *resultobj = 0;
30724 wxOverlay *arg1 = 0 ;
30725 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30726 int arg3 ;
30727 int arg4 ;
30728 int arg5 ;
30729 int arg6 ;
30730 wxDCOverlay *result = 0 ;
30731 void *argp1 = 0 ;
30732 int res1 = 0 ;
30733 void *argp2 = 0 ;
30734 int res2 = 0 ;
30735 int val3 ;
30736 int ecode3 = 0 ;
30737 int val4 ;
30738 int ecode4 = 0 ;
30739 int val5 ;
30740 int ecode5 = 0 ;
30741 int val6 ;
30742 int ecode6 = 0 ;
30743
30744 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
30745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30746 if (!SWIG_IsOK(res1)) {
30747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30748 }
30749 if (!argp1) {
30750 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30751 }
30752 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30753 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30754 if (!SWIG_IsOK(res2)) {
30755 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30756 }
30757 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30758 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
30759 if (!SWIG_IsOK(ecode3)) {
30760 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
30761 }
30762 arg3 = static_cast< int >(val3);
30763 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
30764 if (!SWIG_IsOK(ecode4)) {
30765 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
30766 }
30767 arg4 = static_cast< int >(val4);
30768 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
30769 if (!SWIG_IsOK(ecode5)) {
30770 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
30771 }
30772 arg5 = static_cast< int >(val5);
30773 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
30774 if (!SWIG_IsOK(ecode6)) {
30775 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
30776 }
30777 arg6 = static_cast< int >(val6);
30778 {
30779 PyThreadState* __tstate = wxPyBeginAllowThreads();
30780 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
30781 wxPyEndAllowThreads(__tstate);
30782 if (PyErr_Occurred()) SWIG_fail;
30783 }
30784 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30785 return resultobj;
30786 fail:
30787 return NULL;
30788 }
30789
30790
30791 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30792 PyObject *resultobj = 0;
30793 wxOverlay *arg1 = 0 ;
30794 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30795 wxDCOverlay *result = 0 ;
30796 void *argp1 = 0 ;
30797 int res1 = 0 ;
30798 void *argp2 = 0 ;
30799 int res2 = 0 ;
30800
30801 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30803 if (!SWIG_IsOK(res1)) {
30804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30805 }
30806 if (!argp1) {
30807 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30808 }
30809 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30810 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30811 if (!SWIG_IsOK(res2)) {
30812 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30813 }
30814 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30815 {
30816 PyThreadState* __tstate = wxPyBeginAllowThreads();
30817 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
30818 wxPyEndAllowThreads(__tstate);
30819 if (PyErr_Occurred()) SWIG_fail;
30820 }
30821 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30822 return resultobj;
30823 fail:
30824 return NULL;
30825 }
30826
30827
30828 SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
30829 int argc;
30830 PyObject *argv[7];
30831
30832 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
30833 --argc;
30834 if (argc == 2) {
30835 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
30836 }
30837 if (argc == 6) {
30838 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
30839 }
30840
30841 fail:
30842 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
30843 return NULL;
30844 }
30845
30846
30847 SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30848 PyObject *resultobj = 0;
30849 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30850 void *argp1 = 0 ;
30851 int res1 = 0 ;
30852 PyObject *swig_obj[1] ;
30853
30854 if (!args) SWIG_fail;
30855 swig_obj[0] = args;
30856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
30857 if (!SWIG_IsOK(res1)) {
30858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30859 }
30860 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30861 {
30862 PyThreadState* __tstate = wxPyBeginAllowThreads();
30863 delete arg1;
30864
30865 wxPyEndAllowThreads(__tstate);
30866 if (PyErr_Occurred()) SWIG_fail;
30867 }
30868 resultobj = SWIG_Py_Void();
30869 return resultobj;
30870 fail:
30871 return NULL;
30872 }
30873
30874
30875 SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30876 PyObject *resultobj = 0;
30877 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30878 void *argp1 = 0 ;
30879 int res1 = 0 ;
30880 PyObject *swig_obj[1] ;
30881
30882 if (!args) SWIG_fail;
30883 swig_obj[0] = args;
30884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
30885 if (!SWIG_IsOK(res1)) {
30886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30887 }
30888 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30889 {
30890 PyThreadState* __tstate = wxPyBeginAllowThreads();
30891 (arg1)->Clear();
30892 wxPyEndAllowThreads(__tstate);
30893 if (PyErr_Occurred()) SWIG_fail;
30894 }
30895 resultobj = SWIG_Py_Void();
30896 return resultobj;
30897 fail:
30898 return NULL;
30899 }
30900
30901
30902 SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30903 PyObject *obj;
30904 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30905 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
30906 return SWIG_Py_Void();
30907 }
30908
30909 SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30910 return SWIG_Python_InitShadowInstance(args);
30911 }
30912
30913 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30914 PyObject *resultobj = 0;
30915 int arg1 ;
30916 int arg2 ;
30917 int arg3 = (int) true ;
30918 int arg4 = (int) 1 ;
30919 wxImageList *result = 0 ;
30920 int val1 ;
30921 int ecode1 = 0 ;
30922 int val2 ;
30923 int ecode2 = 0 ;
30924 int val3 ;
30925 int ecode3 = 0 ;
30926 int val4 ;
30927 int ecode4 = 0 ;
30928 PyObject * obj0 = 0 ;
30929 PyObject * obj1 = 0 ;
30930 PyObject * obj2 = 0 ;
30931 PyObject * obj3 = 0 ;
30932 char * kwnames[] = {
30933 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
30934 };
30935
30936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30937 ecode1 = SWIG_AsVal_int(obj0, &val1);
30938 if (!SWIG_IsOK(ecode1)) {
30939 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
30940 }
30941 arg1 = static_cast< int >(val1);
30942 ecode2 = SWIG_AsVal_int(obj1, &val2);
30943 if (!SWIG_IsOK(ecode2)) {
30944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
30945 }
30946 arg2 = static_cast< int >(val2);
30947 if (obj2) {
30948 ecode3 = SWIG_AsVal_int(obj2, &val3);
30949 if (!SWIG_IsOK(ecode3)) {
30950 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
30951 }
30952 arg3 = static_cast< int >(val3);
30953 }
30954 if (obj3) {
30955 ecode4 = SWIG_AsVal_int(obj3, &val4);
30956 if (!SWIG_IsOK(ecode4)) {
30957 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
30958 }
30959 arg4 = static_cast< int >(val4);
30960 }
30961 {
30962 if (!wxPyCheckForApp()) SWIG_fail;
30963 PyThreadState* __tstate = wxPyBeginAllowThreads();
30964 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
30965 wxPyEndAllowThreads(__tstate);
30966 if (PyErr_Occurred()) SWIG_fail;
30967 }
30968 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
30969 return resultobj;
30970 fail:
30971 return NULL;
30972 }
30973
30974
30975 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30976 PyObject *resultobj = 0;
30977 wxImageList *arg1 = (wxImageList *) 0 ;
30978 void *argp1 = 0 ;
30979 int res1 = 0 ;
30980 PyObject *swig_obj[1] ;
30981
30982 if (!args) SWIG_fail;
30983 swig_obj[0] = args;
30984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30985 if (!SWIG_IsOK(res1)) {
30986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
30987 }
30988 arg1 = reinterpret_cast< wxImageList * >(argp1);
30989 {
30990 PyThreadState* __tstate = wxPyBeginAllowThreads();
30991 delete arg1;
30992
30993 wxPyEndAllowThreads(__tstate);
30994 if (PyErr_Occurred()) SWIG_fail;
30995 }
30996 resultobj = SWIG_Py_Void();
30997 return resultobj;
30998 fail:
30999 return NULL;
31000 }
31001
31002
31003 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31004 PyObject *resultobj = 0;
31005 wxImageList *arg1 = (wxImageList *) 0 ;
31006 wxBitmap *arg2 = 0 ;
31007 wxBitmap const &arg3_defvalue = wxNullBitmap ;
31008 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
31009 int result;
31010 void *argp1 = 0 ;
31011 int res1 = 0 ;
31012 void *argp2 = 0 ;
31013 int res2 = 0 ;
31014 void *argp3 = 0 ;
31015 int res3 = 0 ;
31016 PyObject * obj0 = 0 ;
31017 PyObject * obj1 = 0 ;
31018 PyObject * obj2 = 0 ;
31019 char * kwnames[] = {
31020 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
31021 };
31022
31023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31025 if (!SWIG_IsOK(res1)) {
31026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
31027 }
31028 arg1 = reinterpret_cast< wxImageList * >(argp1);
31029 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31030 if (!SWIG_IsOK(res2)) {
31031 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31032 }
31033 if (!argp2) {
31034 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31035 }
31036 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31037 if (obj2) {
31038 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31039 if (!SWIG_IsOK(res3)) {
31040 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31041 }
31042 if (!argp3) {
31043 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31044 }
31045 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31046 }
31047 {
31048 PyThreadState* __tstate = wxPyBeginAllowThreads();
31049 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
31050 wxPyEndAllowThreads(__tstate);
31051 if (PyErr_Occurred()) SWIG_fail;
31052 }
31053 resultobj = SWIG_From_int(static_cast< int >(result));
31054 return resultobj;
31055 fail:
31056 return NULL;
31057 }
31058
31059
31060 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31061 PyObject *resultobj = 0;
31062 wxImageList *arg1 = (wxImageList *) 0 ;
31063 wxBitmap *arg2 = 0 ;
31064 wxColour *arg3 = 0 ;
31065 int result;
31066 void *argp1 = 0 ;
31067 int res1 = 0 ;
31068 void *argp2 = 0 ;
31069 int res2 = 0 ;
31070 wxColour temp3 ;
31071 PyObject * obj0 = 0 ;
31072 PyObject * obj1 = 0 ;
31073 PyObject * obj2 = 0 ;
31074 char * kwnames[] = {
31075 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
31076 };
31077
31078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31080 if (!SWIG_IsOK(res1)) {
31081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
31082 }
31083 arg1 = reinterpret_cast< wxImageList * >(argp1);
31084 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31085 if (!SWIG_IsOK(res2)) {
31086 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31087 }
31088 if (!argp2) {
31089 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31090 }
31091 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31092 {
31093 arg3 = &temp3;
31094 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31095 }
31096 {
31097 PyThreadState* __tstate = wxPyBeginAllowThreads();
31098 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
31099 wxPyEndAllowThreads(__tstate);
31100 if (PyErr_Occurred()) SWIG_fail;
31101 }
31102 resultobj = SWIG_From_int(static_cast< int >(result));
31103 return resultobj;
31104 fail:
31105 return NULL;
31106 }
31107
31108
31109 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31110 PyObject *resultobj = 0;
31111 wxImageList *arg1 = (wxImageList *) 0 ;
31112 wxIcon *arg2 = 0 ;
31113 int result;
31114 void *argp1 = 0 ;
31115 int res1 = 0 ;
31116 void *argp2 = 0 ;
31117 int res2 = 0 ;
31118 PyObject * obj0 = 0 ;
31119 PyObject * obj1 = 0 ;
31120 char * kwnames[] = {
31121 (char *) "self",(char *) "icon", NULL
31122 };
31123
31124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31126 if (!SWIG_IsOK(res1)) {
31127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
31128 }
31129 arg1 = reinterpret_cast< wxImageList * >(argp1);
31130 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
31131 if (!SWIG_IsOK(res2)) {
31132 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31133 }
31134 if (!argp2) {
31135 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31136 }
31137 arg2 = reinterpret_cast< wxIcon * >(argp2);
31138 {
31139 PyThreadState* __tstate = wxPyBeginAllowThreads();
31140 result = (int)(arg1)->Add((wxIcon const &)*arg2);
31141 wxPyEndAllowThreads(__tstate);
31142 if (PyErr_Occurred()) SWIG_fail;
31143 }
31144 resultobj = SWIG_From_int(static_cast< int >(result));
31145 return resultobj;
31146 fail:
31147 return NULL;
31148 }
31149
31150
31151 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31152 PyObject *resultobj = 0;
31153 wxImageList *arg1 = (wxImageList *) 0 ;
31154 int arg2 ;
31155 SwigValueWrapper<wxBitmap > result;
31156 void *argp1 = 0 ;
31157 int res1 = 0 ;
31158 int val2 ;
31159 int ecode2 = 0 ;
31160 PyObject * obj0 = 0 ;
31161 PyObject * obj1 = 0 ;
31162 char * kwnames[] = {
31163 (char *) "self",(char *) "index", NULL
31164 };
31165
31166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
31167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31168 if (!SWIG_IsOK(res1)) {
31169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
31170 }
31171 arg1 = reinterpret_cast< wxImageList * >(argp1);
31172 ecode2 = SWIG_AsVal_int(obj1, &val2);
31173 if (!SWIG_IsOK(ecode2)) {
31174 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
31175 }
31176 arg2 = static_cast< int >(val2);
31177 {
31178 PyThreadState* __tstate = wxPyBeginAllowThreads();
31179 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
31180 wxPyEndAllowThreads(__tstate);
31181 if (PyErr_Occurred()) SWIG_fail;
31182 }
31183 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
31184 return resultobj;
31185 fail:
31186 return NULL;
31187 }
31188
31189
31190 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31191 PyObject *resultobj = 0;
31192 wxImageList *arg1 = (wxImageList *) 0 ;
31193 int arg2 ;
31194 wxIcon result;
31195 void *argp1 = 0 ;
31196 int res1 = 0 ;
31197 int val2 ;
31198 int ecode2 = 0 ;
31199 PyObject * obj0 = 0 ;
31200 PyObject * obj1 = 0 ;
31201 char * kwnames[] = {
31202 (char *) "self",(char *) "index", NULL
31203 };
31204
31205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31207 if (!SWIG_IsOK(res1)) {
31208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
31209 }
31210 arg1 = reinterpret_cast< wxImageList * >(argp1);
31211 ecode2 = SWIG_AsVal_int(obj1, &val2);
31212 if (!SWIG_IsOK(ecode2)) {
31213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
31214 }
31215 arg2 = static_cast< int >(val2);
31216 {
31217 PyThreadState* __tstate = wxPyBeginAllowThreads();
31218 result = ((wxImageList const *)arg1)->GetIcon(arg2);
31219 wxPyEndAllowThreads(__tstate);
31220 if (PyErr_Occurred()) SWIG_fail;
31221 }
31222 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
31223 return resultobj;
31224 fail:
31225 return NULL;
31226 }
31227
31228
31229 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31230 PyObject *resultobj = 0;
31231 wxImageList *arg1 = (wxImageList *) 0 ;
31232 int arg2 ;
31233 wxBitmap *arg3 = 0 ;
31234 wxBitmap const &arg4_defvalue = wxNullBitmap ;
31235 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
31236 bool result;
31237 void *argp1 = 0 ;
31238 int res1 = 0 ;
31239 int val2 ;
31240 int ecode2 = 0 ;
31241 void *argp3 = 0 ;
31242 int res3 = 0 ;
31243 void *argp4 = 0 ;
31244 int res4 = 0 ;
31245 PyObject * obj0 = 0 ;
31246 PyObject * obj1 = 0 ;
31247 PyObject * obj2 = 0 ;
31248 PyObject * obj3 = 0 ;
31249 char * kwnames[] = {
31250 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
31251 };
31252
31253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31255 if (!SWIG_IsOK(res1)) {
31256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
31257 }
31258 arg1 = reinterpret_cast< wxImageList * >(argp1);
31259 ecode2 = SWIG_AsVal_int(obj1, &val2);
31260 if (!SWIG_IsOK(ecode2)) {
31261 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
31262 }
31263 arg2 = static_cast< int >(val2);
31264 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31265 if (!SWIG_IsOK(res3)) {
31266 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31267 }
31268 if (!argp3) {
31269 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31270 }
31271 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31272 if (obj3) {
31273 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
31274 if (!SWIG_IsOK(res4)) {
31275 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31276 }
31277 if (!argp4) {
31278 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31279 }
31280 arg4 = reinterpret_cast< wxBitmap * >(argp4);
31281 }
31282 {
31283 PyThreadState* __tstate = wxPyBeginAllowThreads();
31284 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
31285 wxPyEndAllowThreads(__tstate);
31286 if (PyErr_Occurred()) SWIG_fail;
31287 }
31288 {
31289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31290 }
31291 return resultobj;
31292 fail:
31293 return NULL;
31294 }
31295
31296
31297 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31298 PyObject *resultobj = 0;
31299 wxImageList *arg1 = (wxImageList *) 0 ;
31300 int arg2 ;
31301 wxDC *arg3 = 0 ;
31302 int arg4 ;
31303 int arg5 ;
31304 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
31305 bool arg7 = (bool) (bool)false ;
31306 bool result;
31307 void *argp1 = 0 ;
31308 int res1 = 0 ;
31309 int val2 ;
31310 int ecode2 = 0 ;
31311 void *argp3 = 0 ;
31312 int res3 = 0 ;
31313 int val4 ;
31314 int ecode4 = 0 ;
31315 int val5 ;
31316 int ecode5 = 0 ;
31317 int val6 ;
31318 int ecode6 = 0 ;
31319 bool val7 ;
31320 int ecode7 = 0 ;
31321 PyObject * obj0 = 0 ;
31322 PyObject * obj1 = 0 ;
31323 PyObject * obj2 = 0 ;
31324 PyObject * obj3 = 0 ;
31325 PyObject * obj4 = 0 ;
31326 PyObject * obj5 = 0 ;
31327 PyObject * obj6 = 0 ;
31328 char * kwnames[] = {
31329 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
31330 };
31331
31332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31334 if (!SWIG_IsOK(res1)) {
31335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
31336 }
31337 arg1 = reinterpret_cast< wxImageList * >(argp1);
31338 ecode2 = SWIG_AsVal_int(obj1, &val2);
31339 if (!SWIG_IsOK(ecode2)) {
31340 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
31341 }
31342 arg2 = static_cast< int >(val2);
31343 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31344 if (!SWIG_IsOK(res3)) {
31345 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31346 }
31347 if (!argp3) {
31348 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31349 }
31350 arg3 = reinterpret_cast< wxDC * >(argp3);
31351 ecode4 = SWIG_AsVal_int(obj3, &val4);
31352 if (!SWIG_IsOK(ecode4)) {
31353 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
31354 }
31355 arg4 = static_cast< int >(val4);
31356 ecode5 = SWIG_AsVal_int(obj4, &val5);
31357 if (!SWIG_IsOK(ecode5)) {
31358 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
31359 }
31360 arg5 = static_cast< int >(val5);
31361 if (obj5) {
31362 ecode6 = SWIG_AsVal_int(obj5, &val6);
31363 if (!SWIG_IsOK(ecode6)) {
31364 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
31365 }
31366 arg6 = static_cast< int >(val6);
31367 }
31368 if (obj6) {
31369 ecode7 = SWIG_AsVal_bool(obj6, &val7);
31370 if (!SWIG_IsOK(ecode7)) {
31371 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
31372 }
31373 arg7 = static_cast< bool >(val7);
31374 }
31375 {
31376 PyThreadState* __tstate = wxPyBeginAllowThreads();
31377 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
31378 wxPyEndAllowThreads(__tstate);
31379 if (PyErr_Occurred()) SWIG_fail;
31380 }
31381 {
31382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31383 }
31384 return resultobj;
31385 fail:
31386 return NULL;
31387 }
31388
31389
31390 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31391 PyObject *resultobj = 0;
31392 wxImageList *arg1 = (wxImageList *) 0 ;
31393 int result;
31394 void *argp1 = 0 ;
31395 int res1 = 0 ;
31396 PyObject *swig_obj[1] ;
31397
31398 if (!args) SWIG_fail;
31399 swig_obj[0] = args;
31400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31401 if (!SWIG_IsOK(res1)) {
31402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
31403 }
31404 arg1 = reinterpret_cast< wxImageList * >(argp1);
31405 {
31406 PyThreadState* __tstate = wxPyBeginAllowThreads();
31407 result = (int)(arg1)->GetImageCount();
31408 wxPyEndAllowThreads(__tstate);
31409 if (PyErr_Occurred()) SWIG_fail;
31410 }
31411 resultobj = SWIG_From_int(static_cast< int >(result));
31412 return resultobj;
31413 fail:
31414 return NULL;
31415 }
31416
31417
31418 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31419 PyObject *resultobj = 0;
31420 wxImageList *arg1 = (wxImageList *) 0 ;
31421 int arg2 ;
31422 bool result;
31423 void *argp1 = 0 ;
31424 int res1 = 0 ;
31425 int val2 ;
31426 int ecode2 = 0 ;
31427 PyObject * obj0 = 0 ;
31428 PyObject * obj1 = 0 ;
31429 char * kwnames[] = {
31430 (char *) "self",(char *) "index", NULL
31431 };
31432
31433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) 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_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
31437 }
31438 arg1 = reinterpret_cast< wxImageList * >(argp1);
31439 ecode2 = SWIG_AsVal_int(obj1, &val2);
31440 if (!SWIG_IsOK(ecode2)) {
31441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
31442 }
31443 arg2 = static_cast< int >(val2);
31444 {
31445 PyThreadState* __tstate = wxPyBeginAllowThreads();
31446 result = (bool)(arg1)->Remove(arg2);
31447 wxPyEndAllowThreads(__tstate);
31448 if (PyErr_Occurred()) SWIG_fail;
31449 }
31450 {
31451 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31452 }
31453 return resultobj;
31454 fail:
31455 return NULL;
31456 }
31457
31458
31459 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31460 PyObject *resultobj = 0;
31461 wxImageList *arg1 = (wxImageList *) 0 ;
31462 bool result;
31463 void *argp1 = 0 ;
31464 int res1 = 0 ;
31465 PyObject *swig_obj[1] ;
31466
31467 if (!args) SWIG_fail;
31468 swig_obj[0] = args;
31469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31470 if (!SWIG_IsOK(res1)) {
31471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
31472 }
31473 arg1 = reinterpret_cast< wxImageList * >(argp1);
31474 {
31475 PyThreadState* __tstate = wxPyBeginAllowThreads();
31476 result = (bool)(arg1)->RemoveAll();
31477 wxPyEndAllowThreads(__tstate);
31478 if (PyErr_Occurred()) SWIG_fail;
31479 }
31480 {
31481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31482 }
31483 return resultobj;
31484 fail:
31485 return NULL;
31486 }
31487
31488
31489 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31490 PyObject *resultobj = 0;
31491 wxImageList *arg1 = (wxImageList *) 0 ;
31492 int arg2 ;
31493 int *arg3 = 0 ;
31494 int *arg4 = 0 ;
31495 void *argp1 = 0 ;
31496 int res1 = 0 ;
31497 int val2 ;
31498 int ecode2 = 0 ;
31499 int temp3 ;
31500 int res3 = SWIG_TMPOBJ ;
31501 int temp4 ;
31502 int res4 = SWIG_TMPOBJ ;
31503 PyObject * obj0 = 0 ;
31504 PyObject * obj1 = 0 ;
31505 char * kwnames[] = {
31506 (char *) "self",(char *) "index", NULL
31507 };
31508
31509 arg3 = &temp3;
31510 arg4 = &temp4;
31511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
31512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31513 if (!SWIG_IsOK(res1)) {
31514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
31515 }
31516 arg1 = reinterpret_cast< wxImageList * >(argp1);
31517 ecode2 = SWIG_AsVal_int(obj1, &val2);
31518 if (!SWIG_IsOK(ecode2)) {
31519 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
31520 }
31521 arg2 = static_cast< int >(val2);
31522 {
31523 PyThreadState* __tstate = wxPyBeginAllowThreads();
31524 (arg1)->GetSize(arg2,*arg3,*arg4);
31525 wxPyEndAllowThreads(__tstate);
31526 if (PyErr_Occurred()) SWIG_fail;
31527 }
31528 resultobj = SWIG_Py_Void();
31529 if (SWIG_IsTmpObj(res3)) {
31530 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31531 } else {
31532 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31533 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31534 }
31535 if (SWIG_IsTmpObj(res4)) {
31536 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
31537 } else {
31538 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31539 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
31540 }
31541 return resultobj;
31542 fail:
31543 return NULL;
31544 }
31545
31546
31547 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31548 PyObject *obj;
31549 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31550 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
31551 return SWIG_Py_Void();
31552 }
31553
31554 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31555 return SWIG_Python_InitShadowInstance(args);
31556 }
31557
31558 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31559 PyObject *resultobj = 0;
31560 wxStockGDI *result = 0 ;
31561
31562 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
31563 {
31564 PyThreadState* __tstate = wxPyBeginAllowThreads();
31565 result = (wxStockGDI *)new wxStockGDI();
31566 wxPyEndAllowThreads(__tstate);
31567 if (PyErr_Occurred()) SWIG_fail;
31568 }
31569 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
31570 return resultobj;
31571 fail:
31572 return NULL;
31573 }
31574
31575
31576 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31577 PyObject *resultobj = 0;
31578 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31579 void *argp1 = 0 ;
31580 int res1 = 0 ;
31581 PyObject *swig_obj[1] ;
31582
31583 if (!args) SWIG_fail;
31584 swig_obj[0] = args;
31585 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
31586 if (!SWIG_IsOK(res1)) {
31587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31588 }
31589 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31590 {
31591 PyThreadState* __tstate = wxPyBeginAllowThreads();
31592 delete arg1;
31593
31594 wxPyEndAllowThreads(__tstate);
31595 if (PyErr_Occurred()) SWIG_fail;
31596 }
31597 resultobj = SWIG_Py_Void();
31598 return resultobj;
31599 fail:
31600 return NULL;
31601 }
31602
31603
31604 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31605 PyObject *resultobj = 0;
31606
31607 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
31608 {
31609 PyThreadState* __tstate = wxPyBeginAllowThreads();
31610 wxStockGDI::DeleteAll();
31611 wxPyEndAllowThreads(__tstate);
31612 if (PyErr_Occurred()) SWIG_fail;
31613 }
31614 resultobj = SWIG_Py_Void();
31615 return resultobj;
31616 fail:
31617 return NULL;
31618 }
31619
31620
31621 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31622 PyObject *resultobj = 0;
31623 wxStockGDI *result = 0 ;
31624
31625 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
31626 {
31627 PyThreadState* __tstate = wxPyBeginAllowThreads();
31628 {
31629 wxStockGDI &_result_ref = wxStockGDI::instance();
31630 result = (wxStockGDI *) &_result_ref;
31631 }
31632 wxPyEndAllowThreads(__tstate);
31633 if (PyErr_Occurred()) SWIG_fail;
31634 }
31635 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
31636 return resultobj;
31637 fail:
31638 return NULL;
31639 }
31640
31641
31642 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31643 PyObject *resultobj = 0;
31644 wxStockGDI::Item arg1 ;
31645 wxBrush *result = 0 ;
31646 int val1 ;
31647 int ecode1 = 0 ;
31648 PyObject * obj0 = 0 ;
31649 char * kwnames[] = {
31650 (char *) "item", NULL
31651 };
31652
31653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
31654 ecode1 = SWIG_AsVal_int(obj0, &val1);
31655 if (!SWIG_IsOK(ecode1)) {
31656 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31657 }
31658 arg1 = static_cast< wxStockGDI::Item >(val1);
31659 {
31660 PyThreadState* __tstate = wxPyBeginAllowThreads();
31661 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
31662 wxPyEndAllowThreads(__tstate);
31663 if (PyErr_Occurred()) SWIG_fail;
31664 }
31665 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
31666 return resultobj;
31667 fail:
31668 return NULL;
31669 }
31670
31671
31672 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31673 PyObject *resultobj = 0;
31674 wxStockGDI::Item arg1 ;
31675 wxColour *result = 0 ;
31676 int val1 ;
31677 int ecode1 = 0 ;
31678 PyObject * obj0 = 0 ;
31679 char * kwnames[] = {
31680 (char *) "item", NULL
31681 };
31682
31683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
31684 ecode1 = SWIG_AsVal_int(obj0, &val1);
31685 if (!SWIG_IsOK(ecode1)) {
31686 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31687 }
31688 arg1 = static_cast< wxStockGDI::Item >(val1);
31689 {
31690 PyThreadState* __tstate = wxPyBeginAllowThreads();
31691 result = (wxColour *)wxStockGDI::GetColour(arg1);
31692 wxPyEndAllowThreads(__tstate);
31693 if (PyErr_Occurred()) SWIG_fail;
31694 }
31695 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
31696 return resultobj;
31697 fail:
31698 return NULL;
31699 }
31700
31701
31702 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31703 PyObject *resultobj = 0;
31704 wxStockGDI::Item arg1 ;
31705 wxCursor *result = 0 ;
31706 int val1 ;
31707 int ecode1 = 0 ;
31708 PyObject * obj0 = 0 ;
31709 char * kwnames[] = {
31710 (char *) "item", NULL
31711 };
31712
31713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
31714 ecode1 = SWIG_AsVal_int(obj0, &val1);
31715 if (!SWIG_IsOK(ecode1)) {
31716 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31717 }
31718 arg1 = static_cast< wxStockGDI::Item >(val1);
31719 {
31720 PyThreadState* __tstate = wxPyBeginAllowThreads();
31721 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
31722 wxPyEndAllowThreads(__tstate);
31723 if (PyErr_Occurred()) SWIG_fail;
31724 }
31725 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
31726 return resultobj;
31727 fail:
31728 return NULL;
31729 }
31730
31731
31732 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31733 PyObject *resultobj = 0;
31734 wxStockGDI::Item arg1 ;
31735 wxPen *result = 0 ;
31736 int val1 ;
31737 int ecode1 = 0 ;
31738 PyObject * obj0 = 0 ;
31739 char * kwnames[] = {
31740 (char *) "item", NULL
31741 };
31742
31743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
31744 ecode1 = SWIG_AsVal_int(obj0, &val1);
31745 if (!SWIG_IsOK(ecode1)) {
31746 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31747 }
31748 arg1 = static_cast< wxStockGDI::Item >(val1);
31749 {
31750 PyThreadState* __tstate = wxPyBeginAllowThreads();
31751 result = (wxPen *)wxStockGDI::GetPen(arg1);
31752 wxPyEndAllowThreads(__tstate);
31753 if (PyErr_Occurred()) SWIG_fail;
31754 }
31755 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
31756 return resultobj;
31757 fail:
31758 return NULL;
31759 }
31760
31761
31762 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31763 PyObject *resultobj = 0;
31764 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31765 wxStockGDI::Item arg2 ;
31766 wxFont *result = 0 ;
31767 void *argp1 = 0 ;
31768 int res1 = 0 ;
31769 int val2 ;
31770 int ecode2 = 0 ;
31771 PyObject * obj0 = 0 ;
31772 PyObject * obj1 = 0 ;
31773 char * kwnames[] = {
31774 (char *) "self",(char *) "item", NULL
31775 };
31776
31777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
31778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
31779 if (!SWIG_IsOK(res1)) {
31780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31781 }
31782 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31783 ecode2 = SWIG_AsVal_int(obj1, &val2);
31784 if (!SWIG_IsOK(ecode2)) {
31785 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
31786 }
31787 arg2 = static_cast< wxStockGDI::Item >(val2);
31788 {
31789 PyThreadState* __tstate = wxPyBeginAllowThreads();
31790 result = (wxFont *)(arg1)->GetFont(arg2);
31791 wxPyEndAllowThreads(__tstate);
31792 if (PyErr_Occurred()) SWIG_fail;
31793 }
31794 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
31795 return resultobj;
31796 fail:
31797 return NULL;
31798 }
31799
31800
31801 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31802 PyObject *obj;
31803 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31804 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
31805 return SWIG_Py_Void();
31806 }
31807
31808 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31809 return SWIG_Python_InitShadowInstance(args);
31810 }
31811
31812 SWIGINTERN int NullBitmap_set(PyObject *) {
31813 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
31814 return 1;
31815 }
31816
31817
31818 SWIGINTERN PyObject *NullBitmap_get(void) {
31819 PyObject *pyobj = 0;
31820
31821 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
31822 return pyobj;
31823 }
31824
31825
31826 SWIGINTERN int NullIcon_set(PyObject *) {
31827 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
31828 return 1;
31829 }
31830
31831
31832 SWIGINTERN PyObject *NullIcon_get(void) {
31833 PyObject *pyobj = 0;
31834
31835 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
31836 return pyobj;
31837 }
31838
31839
31840 SWIGINTERN int NullCursor_set(PyObject *) {
31841 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
31842 return 1;
31843 }
31844
31845
31846 SWIGINTERN PyObject *NullCursor_get(void) {
31847 PyObject *pyobj = 0;
31848
31849 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
31850 return pyobj;
31851 }
31852
31853
31854 SWIGINTERN int NullPen_set(PyObject *) {
31855 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
31856 return 1;
31857 }
31858
31859
31860 SWIGINTERN PyObject *NullPen_get(void) {
31861 PyObject *pyobj = 0;
31862
31863 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
31864 return pyobj;
31865 }
31866
31867
31868 SWIGINTERN int NullBrush_set(PyObject *) {
31869 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
31870 return 1;
31871 }
31872
31873
31874 SWIGINTERN PyObject *NullBrush_get(void) {
31875 PyObject *pyobj = 0;
31876
31877 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
31878 return pyobj;
31879 }
31880
31881
31882 SWIGINTERN int NullPalette_set(PyObject *) {
31883 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
31884 return 1;
31885 }
31886
31887
31888 SWIGINTERN PyObject *NullPalette_get(void) {
31889 PyObject *pyobj = 0;
31890
31891 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
31892 return pyobj;
31893 }
31894
31895
31896 SWIGINTERN int NullFont_set(PyObject *) {
31897 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
31898 return 1;
31899 }
31900
31901
31902 SWIGINTERN PyObject *NullFont_get(void) {
31903 PyObject *pyobj = 0;
31904
31905 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
31906 return pyobj;
31907 }
31908
31909
31910 SWIGINTERN int NullColour_set(PyObject *) {
31911 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
31912 return 1;
31913 }
31914
31915
31916 SWIGINTERN PyObject *NullColour_get(void) {
31917 PyObject *pyobj = 0;
31918
31919 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
31920 return pyobj;
31921 }
31922
31923
31924 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31925 PyObject *resultobj = 0;
31926 wxGDIObjListBase *result = 0 ;
31927
31928 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
31929 {
31930 PyThreadState* __tstate = wxPyBeginAllowThreads();
31931 result = (wxGDIObjListBase *)new wxGDIObjListBase();
31932 wxPyEndAllowThreads(__tstate);
31933 if (PyErr_Occurred()) SWIG_fail;
31934 }
31935 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
31936 return resultobj;
31937 fail:
31938 return NULL;
31939 }
31940
31941
31942 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31943 PyObject *resultobj = 0;
31944 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
31945 void *argp1 = 0 ;
31946 int res1 = 0 ;
31947 PyObject *swig_obj[1] ;
31948
31949 if (!args) SWIG_fail;
31950 swig_obj[0] = args;
31951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
31952 if (!SWIG_IsOK(res1)) {
31953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
31954 }
31955 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
31956 {
31957 PyThreadState* __tstate = wxPyBeginAllowThreads();
31958 delete arg1;
31959
31960 wxPyEndAllowThreads(__tstate);
31961 if (PyErr_Occurred()) SWIG_fail;
31962 }
31963 resultobj = SWIG_Py_Void();
31964 return resultobj;
31965 fail:
31966 return NULL;
31967 }
31968
31969
31970 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31971 PyObject *obj;
31972 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31973 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
31974 return SWIG_Py_Void();
31975 }
31976
31977 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31978 return SWIG_Python_InitShadowInstance(args);
31979 }
31980
31981 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31982 PyObject *resultobj = 0;
31983 wxPenList *arg1 = (wxPenList *) 0 ;
31984 wxColour *arg2 = 0 ;
31985 int arg3 ;
31986 int arg4 ;
31987 wxPen *result = 0 ;
31988 void *argp1 = 0 ;
31989 int res1 = 0 ;
31990 wxColour temp2 ;
31991 int val3 ;
31992 int ecode3 = 0 ;
31993 int val4 ;
31994 int ecode4 = 0 ;
31995 PyObject * obj0 = 0 ;
31996 PyObject * obj1 = 0 ;
31997 PyObject * obj2 = 0 ;
31998 PyObject * obj3 = 0 ;
31999 char * kwnames[] = {
32000 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
32001 };
32002
32003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32005 if (!SWIG_IsOK(res1)) {
32006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
32007 }
32008 arg1 = reinterpret_cast< wxPenList * >(argp1);
32009 {
32010 arg2 = &temp2;
32011 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32012 }
32013 ecode3 = SWIG_AsVal_int(obj2, &val3);
32014 if (!SWIG_IsOK(ecode3)) {
32015 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
32016 }
32017 arg3 = static_cast< int >(val3);
32018 ecode4 = SWIG_AsVal_int(obj3, &val4);
32019 if (!SWIG_IsOK(ecode4)) {
32020 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
32021 }
32022 arg4 = static_cast< int >(val4);
32023 {
32024 PyThreadState* __tstate = wxPyBeginAllowThreads();
32025 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
32026 wxPyEndAllowThreads(__tstate);
32027 if (PyErr_Occurred()) SWIG_fail;
32028 }
32029 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32030 return resultobj;
32031 fail:
32032 return NULL;
32033 }
32034
32035
32036 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32037 PyObject *resultobj = 0;
32038 wxPenList *arg1 = (wxPenList *) 0 ;
32039 wxPen *arg2 = (wxPen *) 0 ;
32040 void *argp1 = 0 ;
32041 int res1 = 0 ;
32042 void *argp2 = 0 ;
32043 int res2 = 0 ;
32044 PyObject * obj0 = 0 ;
32045 PyObject * obj1 = 0 ;
32046 char * kwnames[] = {
32047 (char *) "self",(char *) "pen", NULL
32048 };
32049
32050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
32051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32052 if (!SWIG_IsOK(res1)) {
32053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
32054 }
32055 arg1 = reinterpret_cast< wxPenList * >(argp1);
32056 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32057 if (!SWIG_IsOK(res2)) {
32058 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
32059 }
32060 arg2 = reinterpret_cast< wxPen * >(argp2);
32061 {
32062 PyThreadState* __tstate = wxPyBeginAllowThreads();
32063 (arg1)->AddPen(arg2);
32064 wxPyEndAllowThreads(__tstate);
32065 if (PyErr_Occurred()) SWIG_fail;
32066 }
32067 resultobj = SWIG_Py_Void();
32068 return resultobj;
32069 fail:
32070 return NULL;
32071 }
32072
32073
32074 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32075 PyObject *resultobj = 0;
32076 wxPenList *arg1 = (wxPenList *) 0 ;
32077 wxPen *arg2 = (wxPen *) 0 ;
32078 void *argp1 = 0 ;
32079 int res1 = 0 ;
32080 void *argp2 = 0 ;
32081 int res2 = 0 ;
32082 PyObject * obj0 = 0 ;
32083 PyObject * obj1 = 0 ;
32084 char * kwnames[] = {
32085 (char *) "self",(char *) "pen", NULL
32086 };
32087
32088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
32089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32090 if (!SWIG_IsOK(res1)) {
32091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
32092 }
32093 arg1 = reinterpret_cast< wxPenList * >(argp1);
32094 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32095 if (!SWIG_IsOK(res2)) {
32096 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
32097 }
32098 arg2 = reinterpret_cast< wxPen * >(argp2);
32099 {
32100 PyThreadState* __tstate = wxPyBeginAllowThreads();
32101 (arg1)->RemovePen(arg2);
32102 wxPyEndAllowThreads(__tstate);
32103 if (PyErr_Occurred()) SWIG_fail;
32104 }
32105 resultobj = SWIG_Py_Void();
32106 return resultobj;
32107 fail:
32108 return NULL;
32109 }
32110
32111
32112 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32113 PyObject *obj;
32114 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32115 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
32116 return SWIG_Py_Void();
32117 }
32118
32119 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32120 PyObject *resultobj = 0;
32121 wxBrushList *arg1 = (wxBrushList *) 0 ;
32122 wxColour *arg2 = 0 ;
32123 int arg3 = (int) wxSOLID ;
32124 wxBrush *result = 0 ;
32125 void *argp1 = 0 ;
32126 int res1 = 0 ;
32127 wxColour temp2 ;
32128 int val3 ;
32129 int ecode3 = 0 ;
32130 PyObject * obj0 = 0 ;
32131 PyObject * obj1 = 0 ;
32132 PyObject * obj2 = 0 ;
32133 char * kwnames[] = {
32134 (char *) "self",(char *) "colour",(char *) "style", NULL
32135 };
32136
32137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32139 if (!SWIG_IsOK(res1)) {
32140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32141 }
32142 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32143 {
32144 arg2 = &temp2;
32145 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32146 }
32147 if (obj2) {
32148 ecode3 = SWIG_AsVal_int(obj2, &val3);
32149 if (!SWIG_IsOK(ecode3)) {
32150 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
32151 }
32152 arg3 = static_cast< int >(val3);
32153 }
32154 {
32155 PyThreadState* __tstate = wxPyBeginAllowThreads();
32156 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
32157 wxPyEndAllowThreads(__tstate);
32158 if (PyErr_Occurred()) SWIG_fail;
32159 }
32160 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32161 return resultobj;
32162 fail:
32163 return NULL;
32164 }
32165
32166
32167 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32168 PyObject *resultobj = 0;
32169 wxBrushList *arg1 = (wxBrushList *) 0 ;
32170 wxBrush *arg2 = (wxBrush *) 0 ;
32171 void *argp1 = 0 ;
32172 int res1 = 0 ;
32173 void *argp2 = 0 ;
32174 int res2 = 0 ;
32175 PyObject * obj0 = 0 ;
32176 PyObject * obj1 = 0 ;
32177 char * kwnames[] = {
32178 (char *) "self",(char *) "brush", NULL
32179 };
32180
32181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32183 if (!SWIG_IsOK(res1)) {
32184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32185 }
32186 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32187 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32188 if (!SWIG_IsOK(res2)) {
32189 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32190 }
32191 arg2 = reinterpret_cast< wxBrush * >(argp2);
32192 {
32193 PyThreadState* __tstate = wxPyBeginAllowThreads();
32194 (arg1)->AddBrush(arg2);
32195 wxPyEndAllowThreads(__tstate);
32196 if (PyErr_Occurred()) SWIG_fail;
32197 }
32198 resultobj = SWIG_Py_Void();
32199 return resultobj;
32200 fail:
32201 return NULL;
32202 }
32203
32204
32205 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32206 PyObject *resultobj = 0;
32207 wxBrushList *arg1 = (wxBrushList *) 0 ;
32208 wxBrush *arg2 = (wxBrush *) 0 ;
32209 void *argp1 = 0 ;
32210 int res1 = 0 ;
32211 void *argp2 = 0 ;
32212 int res2 = 0 ;
32213 PyObject * obj0 = 0 ;
32214 PyObject * obj1 = 0 ;
32215 char * kwnames[] = {
32216 (char *) "self",(char *) "brush", NULL
32217 };
32218
32219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32221 if (!SWIG_IsOK(res1)) {
32222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32223 }
32224 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32225 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32226 if (!SWIG_IsOK(res2)) {
32227 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32228 }
32229 arg2 = reinterpret_cast< wxBrush * >(argp2);
32230 {
32231 PyThreadState* __tstate = wxPyBeginAllowThreads();
32232 (arg1)->RemoveBrush(arg2);
32233 wxPyEndAllowThreads(__tstate);
32234 if (PyErr_Occurred()) SWIG_fail;
32235 }
32236 resultobj = SWIG_Py_Void();
32237 return resultobj;
32238 fail:
32239 return NULL;
32240 }
32241
32242
32243 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32244 PyObject *obj;
32245 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32246 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
32247 return SWIG_Py_Void();
32248 }
32249
32250 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32251 PyObject *resultobj = 0;
32252 wxFontList *arg1 = (wxFontList *) 0 ;
32253 int arg2 ;
32254 int arg3 ;
32255 int arg4 ;
32256 int arg5 ;
32257 bool arg6 = (bool) false ;
32258 wxString const &arg7_defvalue = wxPyEmptyString ;
32259 wxString *arg7 = (wxString *) &arg7_defvalue ;
32260 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
32261 wxFont *result = 0 ;
32262 void *argp1 = 0 ;
32263 int res1 = 0 ;
32264 int val2 ;
32265 int ecode2 = 0 ;
32266 int val3 ;
32267 int ecode3 = 0 ;
32268 int val4 ;
32269 int ecode4 = 0 ;
32270 int val5 ;
32271 int ecode5 = 0 ;
32272 bool val6 ;
32273 int ecode6 = 0 ;
32274 bool temp7 = false ;
32275 int val8 ;
32276 int ecode8 = 0 ;
32277 PyObject * obj0 = 0 ;
32278 PyObject * obj1 = 0 ;
32279 PyObject * obj2 = 0 ;
32280 PyObject * obj3 = 0 ;
32281 PyObject * obj4 = 0 ;
32282 PyObject * obj5 = 0 ;
32283 PyObject * obj6 = 0 ;
32284 PyObject * obj7 = 0 ;
32285 char * kwnames[] = {
32286 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
32287 };
32288
32289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
32291 if (!SWIG_IsOK(res1)) {
32292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
32293 }
32294 arg1 = reinterpret_cast< wxFontList * >(argp1);
32295 ecode2 = SWIG_AsVal_int(obj1, &val2);
32296 if (!SWIG_IsOK(ecode2)) {
32297 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
32298 }
32299 arg2 = static_cast< int >(val2);
32300 ecode3 = SWIG_AsVal_int(obj2, &val3);
32301 if (!SWIG_IsOK(ecode3)) {
32302 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
32303 }
32304 arg3 = static_cast< int >(val3);
32305 ecode4 = SWIG_AsVal_int(obj3, &val4);
32306 if (!SWIG_IsOK(ecode4)) {
32307 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
32308 }
32309 arg4 = static_cast< int >(val4);
32310 ecode5 = SWIG_AsVal_int(obj4, &val5);
32311 if (!SWIG_IsOK(ecode5)) {
32312 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
32313 }
32314 arg5 = static_cast< int >(val5);
32315 if (obj5) {
32316 ecode6 = SWIG_AsVal_bool(obj5, &val6);
32317 if (!SWIG_IsOK(ecode6)) {
32318 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
32319 }
32320 arg6 = static_cast< bool >(val6);
32321 }
32322 if (obj6) {
32323 {
32324 arg7 = wxString_in_helper(obj6);
32325 if (arg7 == NULL) SWIG_fail;
32326 temp7 = true;
32327 }
32328 }
32329 if (obj7) {
32330 ecode8 = SWIG_AsVal_int(obj7, &val8);
32331 if (!SWIG_IsOK(ecode8)) {
32332 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
32333 }
32334 arg8 = static_cast< wxFontEncoding >(val8);
32335 }
32336 {
32337 PyThreadState* __tstate = wxPyBeginAllowThreads();
32338 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
32339 wxPyEndAllowThreads(__tstate);
32340 if (PyErr_Occurred()) SWIG_fail;
32341 }
32342 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32343 {
32344 if (temp7)
32345 delete arg7;
32346 }
32347 return resultobj;
32348 fail:
32349 {
32350 if (temp7)
32351 delete arg7;
32352 }
32353 return NULL;
32354 }
32355
32356
32357 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32358 PyObject *resultobj = 0;
32359 wxFontList *arg1 = (wxFontList *) 0 ;
32360 wxFont *arg2 = (wxFont *) 0 ;
32361 void *argp1 = 0 ;
32362 int res1 = 0 ;
32363 void *argp2 = 0 ;
32364 int res2 = 0 ;
32365 PyObject * obj0 = 0 ;
32366 PyObject * obj1 = 0 ;
32367 char * kwnames[] = {
32368 (char *) "self",(char *) "font", NULL
32369 };
32370
32371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
32372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
32373 if (!SWIG_IsOK(res1)) {
32374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
32375 }
32376 arg1 = reinterpret_cast< wxFontList * >(argp1);
32377 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
32378 if (!SWIG_IsOK(res2)) {
32379 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
32380 }
32381 arg2 = reinterpret_cast< wxFont * >(argp2);
32382 {
32383 PyThreadState* __tstate = wxPyBeginAllowThreads();
32384 (arg1)->AddFont(arg2);
32385 wxPyEndAllowThreads(__tstate);
32386 if (PyErr_Occurred()) SWIG_fail;
32387 }
32388 resultobj = SWIG_Py_Void();
32389 return resultobj;
32390 fail:
32391 return NULL;
32392 }
32393
32394
32395 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32396 PyObject *resultobj = 0;
32397 wxFontList *arg1 = (wxFontList *) 0 ;
32398 wxFont *arg2 = (wxFont *) 0 ;
32399 void *argp1 = 0 ;
32400 int res1 = 0 ;
32401 void *argp2 = 0 ;
32402 int res2 = 0 ;
32403 PyObject * obj0 = 0 ;
32404 PyObject * obj1 = 0 ;
32405 char * kwnames[] = {
32406 (char *) "self",(char *) "font", NULL
32407 };
32408
32409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
32410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
32411 if (!SWIG_IsOK(res1)) {
32412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
32413 }
32414 arg1 = reinterpret_cast< wxFontList * >(argp1);
32415 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
32416 if (!SWIG_IsOK(res2)) {
32417 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
32418 }
32419 arg2 = reinterpret_cast< wxFont * >(argp2);
32420 {
32421 PyThreadState* __tstate = wxPyBeginAllowThreads();
32422 (arg1)->RemoveFont(arg2);
32423 wxPyEndAllowThreads(__tstate);
32424 if (PyErr_Occurred()) SWIG_fail;
32425 }
32426 resultobj = SWIG_Py_Void();
32427 return resultobj;
32428 fail:
32429 return NULL;
32430 }
32431
32432
32433 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32434 PyObject *obj;
32435 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32436 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
32437 return SWIG_Py_Void();
32438 }
32439
32440 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32441 PyObject *resultobj = 0;
32442 wxColourDatabase *result = 0 ;
32443
32444 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
32445 {
32446 if (!wxPyCheckForApp()) SWIG_fail;
32447 PyThreadState* __tstate = wxPyBeginAllowThreads();
32448 result = (wxColourDatabase *)new wxColourDatabase();
32449 wxPyEndAllowThreads(__tstate);
32450 if (PyErr_Occurred()) SWIG_fail;
32451 }
32452 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
32453 return resultobj;
32454 fail:
32455 return NULL;
32456 }
32457
32458
32459 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32460 PyObject *resultobj = 0;
32461 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32462 void *argp1 = 0 ;
32463 int res1 = 0 ;
32464 PyObject *swig_obj[1] ;
32465
32466 if (!args) SWIG_fail;
32467 swig_obj[0] = args;
32468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
32469 if (!SWIG_IsOK(res1)) {
32470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32471 }
32472 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32473 {
32474 PyThreadState* __tstate = wxPyBeginAllowThreads();
32475 delete arg1;
32476
32477 wxPyEndAllowThreads(__tstate);
32478 if (PyErr_Occurred()) SWIG_fail;
32479 }
32480 resultobj = SWIG_Py_Void();
32481 return resultobj;
32482 fail:
32483 return NULL;
32484 }
32485
32486
32487 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32488 PyObject *resultobj = 0;
32489 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32490 wxString *arg2 = 0 ;
32491 wxColour result;
32492 void *argp1 = 0 ;
32493 int res1 = 0 ;
32494 bool temp2 = false ;
32495 PyObject * obj0 = 0 ;
32496 PyObject * obj1 = 0 ;
32497 char * kwnames[] = {
32498 (char *) "self",(char *) "name", NULL
32499 };
32500
32501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
32502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32503 if (!SWIG_IsOK(res1)) {
32504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32505 }
32506 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32507 {
32508 arg2 = wxString_in_helper(obj1);
32509 if (arg2 == NULL) SWIG_fail;
32510 temp2 = true;
32511 }
32512 {
32513 PyThreadState* __tstate = wxPyBeginAllowThreads();
32514 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
32515 wxPyEndAllowThreads(__tstate);
32516 if (PyErr_Occurred()) SWIG_fail;
32517 }
32518 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32519 {
32520 if (temp2)
32521 delete arg2;
32522 }
32523 return resultobj;
32524 fail:
32525 {
32526 if (temp2)
32527 delete arg2;
32528 }
32529 return NULL;
32530 }
32531
32532
32533 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32534 PyObject *resultobj = 0;
32535 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32536 wxColour *arg2 = 0 ;
32537 wxString result;
32538 void *argp1 = 0 ;
32539 int res1 = 0 ;
32540 wxColour temp2 ;
32541 PyObject * obj0 = 0 ;
32542 PyObject * obj1 = 0 ;
32543 char * kwnames[] = {
32544 (char *) "self",(char *) "colour", NULL
32545 };
32546
32547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
32548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32549 if (!SWIG_IsOK(res1)) {
32550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32551 }
32552 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32553 {
32554 arg2 = &temp2;
32555 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32556 }
32557 {
32558 PyThreadState* __tstate = wxPyBeginAllowThreads();
32559 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
32560 wxPyEndAllowThreads(__tstate);
32561 if (PyErr_Occurred()) SWIG_fail;
32562 }
32563 {
32564 #if wxUSE_UNICODE
32565 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32566 #else
32567 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32568 #endif
32569 }
32570 return resultobj;
32571 fail:
32572 return NULL;
32573 }
32574
32575
32576 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32577 PyObject *resultobj = 0;
32578 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32579 wxString *arg2 = 0 ;
32580 wxColour *arg3 = 0 ;
32581 void *argp1 = 0 ;
32582 int res1 = 0 ;
32583 bool temp2 = false ;
32584 wxColour temp3 ;
32585 PyObject * obj0 = 0 ;
32586 PyObject * obj1 = 0 ;
32587 PyObject * obj2 = 0 ;
32588 char * kwnames[] = {
32589 (char *) "self",(char *) "name",(char *) "colour", NULL
32590 };
32591
32592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32594 if (!SWIG_IsOK(res1)) {
32595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32596 }
32597 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32598 {
32599 arg2 = wxString_in_helper(obj1);
32600 if (arg2 == NULL) SWIG_fail;
32601 temp2 = true;
32602 }
32603 {
32604 arg3 = &temp3;
32605 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32606 }
32607 {
32608 PyThreadState* __tstate = wxPyBeginAllowThreads();
32609 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
32610 wxPyEndAllowThreads(__tstate);
32611 if (PyErr_Occurred()) SWIG_fail;
32612 }
32613 resultobj = SWIG_Py_Void();
32614 {
32615 if (temp2)
32616 delete arg2;
32617 }
32618 return resultobj;
32619 fail:
32620 {
32621 if (temp2)
32622 delete arg2;
32623 }
32624 return NULL;
32625 }
32626
32627
32628 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32629 PyObject *resultobj = 0;
32630 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32631 wxString *arg2 = 0 ;
32632 int arg3 ;
32633 int arg4 ;
32634 int arg5 ;
32635 void *argp1 = 0 ;
32636 int res1 = 0 ;
32637 bool temp2 = false ;
32638 int val3 ;
32639 int ecode3 = 0 ;
32640 int val4 ;
32641 int ecode4 = 0 ;
32642 int val5 ;
32643 int ecode5 = 0 ;
32644 PyObject * obj0 = 0 ;
32645 PyObject * obj1 = 0 ;
32646 PyObject * obj2 = 0 ;
32647 PyObject * obj3 = 0 ;
32648 PyObject * obj4 = 0 ;
32649 char * kwnames[] = {
32650 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
32651 };
32652
32653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32655 if (!SWIG_IsOK(res1)) {
32656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32657 }
32658 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32659 {
32660 arg2 = wxString_in_helper(obj1);
32661 if (arg2 == NULL) SWIG_fail;
32662 temp2 = true;
32663 }
32664 ecode3 = SWIG_AsVal_int(obj2, &val3);
32665 if (!SWIG_IsOK(ecode3)) {
32666 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
32667 }
32668 arg3 = static_cast< int >(val3);
32669 ecode4 = SWIG_AsVal_int(obj3, &val4);
32670 if (!SWIG_IsOK(ecode4)) {
32671 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
32672 }
32673 arg4 = static_cast< int >(val4);
32674 ecode5 = SWIG_AsVal_int(obj4, &val5);
32675 if (!SWIG_IsOK(ecode5)) {
32676 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
32677 }
32678 arg5 = static_cast< int >(val5);
32679 {
32680 PyThreadState* __tstate = wxPyBeginAllowThreads();
32681 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
32682 wxPyEndAllowThreads(__tstate);
32683 if (PyErr_Occurred()) SWIG_fail;
32684 }
32685 resultobj = SWIG_Py_Void();
32686 {
32687 if (temp2)
32688 delete arg2;
32689 }
32690 return resultobj;
32691 fail:
32692 {
32693 if (temp2)
32694 delete arg2;
32695 }
32696 return NULL;
32697 }
32698
32699
32700 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32701 PyObject *obj;
32702 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32703 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
32704 return SWIG_Py_Void();
32705 }
32706
32707 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32708 return SWIG_Python_InitShadowInstance(args);
32709 }
32710
32711 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32712 PyObject *resultobj = 0;
32713 wxFontList *result = 0 ;
32714
32715 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
32716 {
32717 PyThreadState* __tstate = wxPyBeginAllowThreads();
32718 result = (wxFontList *)_wxPyInitTheFontList();
32719 wxPyEndAllowThreads(__tstate);
32720 if (PyErr_Occurred()) SWIG_fail;
32721 }
32722 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
32723 return resultobj;
32724 fail:
32725 return NULL;
32726 }
32727
32728
32729 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32730 PyObject *resultobj = 0;
32731 wxPenList *result = 0 ;
32732
32733 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
32734 {
32735 PyThreadState* __tstate = wxPyBeginAllowThreads();
32736 result = (wxPenList *)_wxPyInitThePenList();
32737 wxPyEndAllowThreads(__tstate);
32738 if (PyErr_Occurred()) SWIG_fail;
32739 }
32740 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
32741 return resultobj;
32742 fail:
32743 return NULL;
32744 }
32745
32746
32747 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32748 PyObject *resultobj = 0;
32749 wxBrushList *result = 0 ;
32750
32751 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
32752 {
32753 PyThreadState* __tstate = wxPyBeginAllowThreads();
32754 result = (wxBrushList *)_wxPyInitTheBrushList();
32755 wxPyEndAllowThreads(__tstate);
32756 if (PyErr_Occurred()) SWIG_fail;
32757 }
32758 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
32759 return resultobj;
32760 fail:
32761 return NULL;
32762 }
32763
32764
32765 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32766 PyObject *resultobj = 0;
32767 wxColourDatabase *result = 0 ;
32768
32769 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
32770 {
32771 PyThreadState* __tstate = wxPyBeginAllowThreads();
32772 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
32773 wxPyEndAllowThreads(__tstate);
32774 if (PyErr_Occurred()) SWIG_fail;
32775 }
32776 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32777 return resultobj;
32778 fail:
32779 return NULL;
32780 }
32781
32782
32783 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32784 PyObject *resultobj = 0;
32785 wxEffects *result = 0 ;
32786
32787 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
32788 {
32789 PyThreadState* __tstate = wxPyBeginAllowThreads();
32790 result = (wxEffects *)new wxEffects();
32791 wxPyEndAllowThreads(__tstate);
32792 if (PyErr_Occurred()) SWIG_fail;
32793 }
32794 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
32795 return resultobj;
32796 fail:
32797 return NULL;
32798 }
32799
32800
32801 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32802 PyObject *resultobj = 0;
32803 wxEffects *arg1 = (wxEffects *) 0 ;
32804 wxColour result;
32805 void *argp1 = 0 ;
32806 int res1 = 0 ;
32807 PyObject *swig_obj[1] ;
32808
32809 if (!args) SWIG_fail;
32810 swig_obj[0] = args;
32811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32812 if (!SWIG_IsOK(res1)) {
32813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32814 }
32815 arg1 = reinterpret_cast< wxEffects * >(argp1);
32816 {
32817 PyThreadState* __tstate = wxPyBeginAllowThreads();
32818 result = ((wxEffects const *)arg1)->GetHighlightColour();
32819 wxPyEndAllowThreads(__tstate);
32820 if (PyErr_Occurred()) SWIG_fail;
32821 }
32822 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32823 return resultobj;
32824 fail:
32825 return NULL;
32826 }
32827
32828
32829 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32830 PyObject *resultobj = 0;
32831 wxEffects *arg1 = (wxEffects *) 0 ;
32832 wxColour result;
32833 void *argp1 = 0 ;
32834 int res1 = 0 ;
32835 PyObject *swig_obj[1] ;
32836
32837 if (!args) SWIG_fail;
32838 swig_obj[0] = args;
32839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32840 if (!SWIG_IsOK(res1)) {
32841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32842 }
32843 arg1 = reinterpret_cast< wxEffects * >(argp1);
32844 {
32845 PyThreadState* __tstate = wxPyBeginAllowThreads();
32846 result = ((wxEffects const *)arg1)->GetLightShadow();
32847 wxPyEndAllowThreads(__tstate);
32848 if (PyErr_Occurred()) SWIG_fail;
32849 }
32850 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32851 return resultobj;
32852 fail:
32853 return NULL;
32854 }
32855
32856
32857 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32858 PyObject *resultobj = 0;
32859 wxEffects *arg1 = (wxEffects *) 0 ;
32860 wxColour result;
32861 void *argp1 = 0 ;
32862 int res1 = 0 ;
32863 PyObject *swig_obj[1] ;
32864
32865 if (!args) SWIG_fail;
32866 swig_obj[0] = args;
32867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32868 if (!SWIG_IsOK(res1)) {
32869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32870 }
32871 arg1 = reinterpret_cast< wxEffects * >(argp1);
32872 {
32873 PyThreadState* __tstate = wxPyBeginAllowThreads();
32874 result = ((wxEffects const *)arg1)->GetFaceColour();
32875 wxPyEndAllowThreads(__tstate);
32876 if (PyErr_Occurred()) SWIG_fail;
32877 }
32878 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32879 return resultobj;
32880 fail:
32881 return NULL;
32882 }
32883
32884
32885 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32886 PyObject *resultobj = 0;
32887 wxEffects *arg1 = (wxEffects *) 0 ;
32888 wxColour result;
32889 void *argp1 = 0 ;
32890 int res1 = 0 ;
32891 PyObject *swig_obj[1] ;
32892
32893 if (!args) SWIG_fail;
32894 swig_obj[0] = args;
32895 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32896 if (!SWIG_IsOK(res1)) {
32897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32898 }
32899 arg1 = reinterpret_cast< wxEffects * >(argp1);
32900 {
32901 PyThreadState* __tstate = wxPyBeginAllowThreads();
32902 result = ((wxEffects const *)arg1)->GetMediumShadow();
32903 wxPyEndAllowThreads(__tstate);
32904 if (PyErr_Occurred()) SWIG_fail;
32905 }
32906 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32907 return resultobj;
32908 fail:
32909 return NULL;
32910 }
32911
32912
32913 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32914 PyObject *resultobj = 0;
32915 wxEffects *arg1 = (wxEffects *) 0 ;
32916 wxColour result;
32917 void *argp1 = 0 ;
32918 int res1 = 0 ;
32919 PyObject *swig_obj[1] ;
32920
32921 if (!args) SWIG_fail;
32922 swig_obj[0] = args;
32923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32924 if (!SWIG_IsOK(res1)) {
32925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32926 }
32927 arg1 = reinterpret_cast< wxEffects * >(argp1);
32928 {
32929 PyThreadState* __tstate = wxPyBeginAllowThreads();
32930 result = ((wxEffects const *)arg1)->GetDarkShadow();
32931 wxPyEndAllowThreads(__tstate);
32932 if (PyErr_Occurred()) SWIG_fail;
32933 }
32934 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32935 return resultobj;
32936 fail:
32937 return NULL;
32938 }
32939
32940
32941 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32942 PyObject *resultobj = 0;
32943 wxEffects *arg1 = (wxEffects *) 0 ;
32944 wxColour *arg2 = 0 ;
32945 void *argp1 = 0 ;
32946 int res1 = 0 ;
32947 wxColour temp2 ;
32948 PyObject * obj0 = 0 ;
32949 PyObject * obj1 = 0 ;
32950 char * kwnames[] = {
32951 (char *) "self",(char *) "c", NULL
32952 };
32953
32954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
32955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32956 if (!SWIG_IsOK(res1)) {
32957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
32958 }
32959 arg1 = reinterpret_cast< wxEffects * >(argp1);
32960 {
32961 arg2 = &temp2;
32962 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32963 }
32964 {
32965 PyThreadState* __tstate = wxPyBeginAllowThreads();
32966 (arg1)->SetHighlightColour((wxColour const &)*arg2);
32967 wxPyEndAllowThreads(__tstate);
32968 if (PyErr_Occurred()) SWIG_fail;
32969 }
32970 resultobj = SWIG_Py_Void();
32971 return resultobj;
32972 fail:
32973 return NULL;
32974 }
32975
32976
32977 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32978 PyObject *resultobj = 0;
32979 wxEffects *arg1 = (wxEffects *) 0 ;
32980 wxColour *arg2 = 0 ;
32981 void *argp1 = 0 ;
32982 int res1 = 0 ;
32983 wxColour temp2 ;
32984 PyObject * obj0 = 0 ;
32985 PyObject * obj1 = 0 ;
32986 char * kwnames[] = {
32987 (char *) "self",(char *) "c", NULL
32988 };
32989
32990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
32991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32992 if (!SWIG_IsOK(res1)) {
32993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
32994 }
32995 arg1 = reinterpret_cast< wxEffects * >(argp1);
32996 {
32997 arg2 = &temp2;
32998 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32999 }
33000 {
33001 PyThreadState* __tstate = wxPyBeginAllowThreads();
33002 (arg1)->SetLightShadow((wxColour const &)*arg2);
33003 wxPyEndAllowThreads(__tstate);
33004 if (PyErr_Occurred()) SWIG_fail;
33005 }
33006 resultobj = SWIG_Py_Void();
33007 return resultobj;
33008 fail:
33009 return NULL;
33010 }
33011
33012
33013 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33014 PyObject *resultobj = 0;
33015 wxEffects *arg1 = (wxEffects *) 0 ;
33016 wxColour *arg2 = 0 ;
33017 void *argp1 = 0 ;
33018 int res1 = 0 ;
33019 wxColour temp2 ;
33020 PyObject * obj0 = 0 ;
33021 PyObject * obj1 = 0 ;
33022 char * kwnames[] = {
33023 (char *) "self",(char *) "c", NULL
33024 };
33025
33026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
33027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33028 if (!SWIG_IsOK(res1)) {
33029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33030 }
33031 arg1 = reinterpret_cast< wxEffects * >(argp1);
33032 {
33033 arg2 = &temp2;
33034 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33035 }
33036 {
33037 PyThreadState* __tstate = wxPyBeginAllowThreads();
33038 (arg1)->SetFaceColour((wxColour const &)*arg2);
33039 wxPyEndAllowThreads(__tstate);
33040 if (PyErr_Occurred()) SWIG_fail;
33041 }
33042 resultobj = SWIG_Py_Void();
33043 return resultobj;
33044 fail:
33045 return NULL;
33046 }
33047
33048
33049 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33050 PyObject *resultobj = 0;
33051 wxEffects *arg1 = (wxEffects *) 0 ;
33052 wxColour *arg2 = 0 ;
33053 void *argp1 = 0 ;
33054 int res1 = 0 ;
33055 wxColour temp2 ;
33056 PyObject * obj0 = 0 ;
33057 PyObject * obj1 = 0 ;
33058 char * kwnames[] = {
33059 (char *) "self",(char *) "c", NULL
33060 };
33061
33062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33064 if (!SWIG_IsOK(res1)) {
33065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33066 }
33067 arg1 = reinterpret_cast< wxEffects * >(argp1);
33068 {
33069 arg2 = &temp2;
33070 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33071 }
33072 {
33073 PyThreadState* __tstate = wxPyBeginAllowThreads();
33074 (arg1)->SetMediumShadow((wxColour const &)*arg2);
33075 wxPyEndAllowThreads(__tstate);
33076 if (PyErr_Occurred()) SWIG_fail;
33077 }
33078 resultobj = SWIG_Py_Void();
33079 return resultobj;
33080 fail:
33081 return NULL;
33082 }
33083
33084
33085 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33086 PyObject *resultobj = 0;
33087 wxEffects *arg1 = (wxEffects *) 0 ;
33088 wxColour *arg2 = 0 ;
33089 void *argp1 = 0 ;
33090 int res1 = 0 ;
33091 wxColour temp2 ;
33092 PyObject * obj0 = 0 ;
33093 PyObject * obj1 = 0 ;
33094 char * kwnames[] = {
33095 (char *) "self",(char *) "c", NULL
33096 };
33097
33098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33100 if (!SWIG_IsOK(res1)) {
33101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33102 }
33103 arg1 = reinterpret_cast< wxEffects * >(argp1);
33104 {
33105 arg2 = &temp2;
33106 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33107 }
33108 {
33109 PyThreadState* __tstate = wxPyBeginAllowThreads();
33110 (arg1)->SetDarkShadow((wxColour const &)*arg2);
33111 wxPyEndAllowThreads(__tstate);
33112 if (PyErr_Occurred()) SWIG_fail;
33113 }
33114 resultobj = SWIG_Py_Void();
33115 return resultobj;
33116 fail:
33117 return NULL;
33118 }
33119
33120
33121 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33122 PyObject *resultobj = 0;
33123 wxEffects *arg1 = (wxEffects *) 0 ;
33124 wxColour *arg2 = 0 ;
33125 wxColour *arg3 = 0 ;
33126 wxColour *arg4 = 0 ;
33127 wxColour *arg5 = 0 ;
33128 wxColour *arg6 = 0 ;
33129 void *argp1 = 0 ;
33130 int res1 = 0 ;
33131 wxColour temp2 ;
33132 wxColour temp3 ;
33133 wxColour temp4 ;
33134 wxColour temp5 ;
33135 wxColour temp6 ;
33136 PyObject * obj0 = 0 ;
33137 PyObject * obj1 = 0 ;
33138 PyObject * obj2 = 0 ;
33139 PyObject * obj3 = 0 ;
33140 PyObject * obj4 = 0 ;
33141 PyObject * obj5 = 0 ;
33142 char * kwnames[] = {
33143 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
33144 };
33145
33146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33148 if (!SWIG_IsOK(res1)) {
33149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
33150 }
33151 arg1 = reinterpret_cast< wxEffects * >(argp1);
33152 {
33153 arg2 = &temp2;
33154 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33155 }
33156 {
33157 arg3 = &temp3;
33158 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33159 }
33160 {
33161 arg4 = &temp4;
33162 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
33163 }
33164 {
33165 arg5 = &temp5;
33166 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
33167 }
33168 {
33169 arg6 = &temp6;
33170 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
33171 }
33172 {
33173 PyThreadState* __tstate = wxPyBeginAllowThreads();
33174 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
33175 wxPyEndAllowThreads(__tstate);
33176 if (PyErr_Occurred()) SWIG_fail;
33177 }
33178 resultobj = SWIG_Py_Void();
33179 return resultobj;
33180 fail:
33181 return NULL;
33182 }
33183
33184
33185 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33186 PyObject *resultobj = 0;
33187 wxEffects *arg1 = (wxEffects *) 0 ;
33188 wxDC *arg2 = 0 ;
33189 wxRect *arg3 = 0 ;
33190 int arg4 = (int) 1 ;
33191 void *argp1 = 0 ;
33192 int res1 = 0 ;
33193 void *argp2 = 0 ;
33194 int res2 = 0 ;
33195 wxRect temp3 ;
33196 int val4 ;
33197 int ecode4 = 0 ;
33198 PyObject * obj0 = 0 ;
33199 PyObject * obj1 = 0 ;
33200 PyObject * obj2 = 0 ;
33201 PyObject * obj3 = 0 ;
33202 char * kwnames[] = {
33203 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
33204 };
33205
33206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33208 if (!SWIG_IsOK(res1)) {
33209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
33210 }
33211 arg1 = reinterpret_cast< wxEffects * >(argp1);
33212 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
33213 if (!SWIG_IsOK(res2)) {
33214 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33215 }
33216 if (!argp2) {
33217 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33218 }
33219 arg2 = reinterpret_cast< wxDC * >(argp2);
33220 {
33221 arg3 = &temp3;
33222 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33223 }
33224 if (obj3) {
33225 ecode4 = SWIG_AsVal_int(obj3, &val4);
33226 if (!SWIG_IsOK(ecode4)) {
33227 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
33228 }
33229 arg4 = static_cast< int >(val4);
33230 }
33231 {
33232 PyThreadState* __tstate = wxPyBeginAllowThreads();
33233 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
33234 wxPyEndAllowThreads(__tstate);
33235 if (PyErr_Occurred()) SWIG_fail;
33236 }
33237 resultobj = SWIG_Py_Void();
33238 return resultobj;
33239 fail:
33240 return NULL;
33241 }
33242
33243
33244 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33245 PyObject *resultobj = 0;
33246 wxEffects *arg1 = (wxEffects *) 0 ;
33247 wxRect *arg2 = 0 ;
33248 wxDC *arg3 = 0 ;
33249 wxBitmap *arg4 = 0 ;
33250 bool result;
33251 void *argp1 = 0 ;
33252 int res1 = 0 ;
33253 wxRect temp2 ;
33254 void *argp3 = 0 ;
33255 int res3 = 0 ;
33256 void *argp4 = 0 ;
33257 int res4 = 0 ;
33258 PyObject * obj0 = 0 ;
33259 PyObject * obj1 = 0 ;
33260 PyObject * obj2 = 0 ;
33261 PyObject * obj3 = 0 ;
33262 char * kwnames[] = {
33263 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
33264 };
33265
33266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33268 if (!SWIG_IsOK(res1)) {
33269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
33270 }
33271 arg1 = reinterpret_cast< wxEffects * >(argp1);
33272 {
33273 arg2 = &temp2;
33274 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33275 }
33276 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33277 if (!SWIG_IsOK(res3)) {
33278 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33279 }
33280 if (!argp3) {
33281 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33282 }
33283 arg3 = reinterpret_cast< wxDC * >(argp3);
33284 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
33285 if (!SWIG_IsOK(res4)) {
33286 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33287 }
33288 if (!argp4) {
33289 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33290 }
33291 arg4 = reinterpret_cast< wxBitmap * >(argp4);
33292 {
33293 PyThreadState* __tstate = wxPyBeginAllowThreads();
33294 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
33295 wxPyEndAllowThreads(__tstate);
33296 if (PyErr_Occurred()) SWIG_fail;
33297 }
33298 {
33299 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33300 }
33301 return resultobj;
33302 fail:
33303 return NULL;
33304 }
33305
33306
33307 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33308 PyObject *obj;
33309 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33310 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
33311 return SWIG_Py_Void();
33312 }
33313
33314 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33315 return SWIG_Python_InitShadowInstance(args);
33316 }
33317
33318 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33319 PyObject *resultobj = 0;
33320 int arg1 ;
33321 int arg2 ;
33322 bool arg3 ;
33323 wxSplitterRenderParams *result = 0 ;
33324 int val1 ;
33325 int ecode1 = 0 ;
33326 int val2 ;
33327 int ecode2 = 0 ;
33328 bool val3 ;
33329 int ecode3 = 0 ;
33330 PyObject * obj0 = 0 ;
33331 PyObject * obj1 = 0 ;
33332 PyObject * obj2 = 0 ;
33333 char * kwnames[] = {
33334 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
33335 };
33336
33337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33338 ecode1 = SWIG_AsVal_int(obj0, &val1);
33339 if (!SWIG_IsOK(ecode1)) {
33340 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
33341 }
33342 arg1 = static_cast< int >(val1);
33343 ecode2 = SWIG_AsVal_int(obj1, &val2);
33344 if (!SWIG_IsOK(ecode2)) {
33345 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
33346 }
33347 arg2 = static_cast< int >(val2);
33348 ecode3 = SWIG_AsVal_bool(obj2, &val3);
33349 if (!SWIG_IsOK(ecode3)) {
33350 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
33351 }
33352 arg3 = static_cast< bool >(val3);
33353 {
33354 PyThreadState* __tstate = wxPyBeginAllowThreads();
33355 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
33356 wxPyEndAllowThreads(__tstate);
33357 if (PyErr_Occurred()) SWIG_fail;
33358 }
33359 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
33360 return resultobj;
33361 fail:
33362 return NULL;
33363 }
33364
33365
33366 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33367 PyObject *resultobj = 0;
33368 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33369 void *argp1 = 0 ;
33370 int res1 = 0 ;
33371 PyObject *swig_obj[1] ;
33372
33373 if (!args) SWIG_fail;
33374 swig_obj[0] = args;
33375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
33376 if (!SWIG_IsOK(res1)) {
33377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33378 }
33379 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33380 {
33381 PyThreadState* __tstate = wxPyBeginAllowThreads();
33382 delete arg1;
33383
33384 wxPyEndAllowThreads(__tstate);
33385 if (PyErr_Occurred()) SWIG_fail;
33386 }
33387 resultobj = SWIG_Py_Void();
33388 return resultobj;
33389 fail:
33390 return NULL;
33391 }
33392
33393
33394 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33395 PyObject *resultobj = 0;
33396 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33397 int result;
33398 void *argp1 = 0 ;
33399 int res1 = 0 ;
33400 PyObject *swig_obj[1] ;
33401
33402 if (!args) SWIG_fail;
33403 swig_obj[0] = args;
33404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33405 if (!SWIG_IsOK(res1)) {
33406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33407 }
33408 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33409 result = (int)(int) ((arg1)->widthSash);
33410 resultobj = SWIG_From_int(static_cast< int >(result));
33411 return resultobj;
33412 fail:
33413 return NULL;
33414 }
33415
33416
33417 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33418 PyObject *resultobj = 0;
33419 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33420 int result;
33421 void *argp1 = 0 ;
33422 int res1 = 0 ;
33423 PyObject *swig_obj[1] ;
33424
33425 if (!args) SWIG_fail;
33426 swig_obj[0] = args;
33427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33428 if (!SWIG_IsOK(res1)) {
33429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33430 }
33431 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33432 result = (int)(int) ((arg1)->border);
33433 resultobj = SWIG_From_int(static_cast< int >(result));
33434 return resultobj;
33435 fail:
33436 return NULL;
33437 }
33438
33439
33440 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33441 PyObject *resultobj = 0;
33442 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33443 bool result;
33444 void *argp1 = 0 ;
33445 int res1 = 0 ;
33446 PyObject *swig_obj[1] ;
33447
33448 if (!args) SWIG_fail;
33449 swig_obj[0] = args;
33450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33451 if (!SWIG_IsOK(res1)) {
33452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33453 }
33454 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33455 result = (bool)(bool) ((arg1)->isHotSensitive);
33456 resultobj = SWIG_From_bool(static_cast< bool >(result));
33457 return resultobj;
33458 fail:
33459 return NULL;
33460 }
33461
33462
33463 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33464 PyObject *obj;
33465 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33466 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
33467 return SWIG_Py_Void();
33468 }
33469
33470 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33471 return SWIG_Python_InitShadowInstance(args);
33472 }
33473
33474 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33475 PyObject *resultobj = 0;
33476 wxHeaderButtonParams *result = 0 ;
33477
33478 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
33479 {
33480 PyThreadState* __tstate = wxPyBeginAllowThreads();
33481 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
33482 wxPyEndAllowThreads(__tstate);
33483 if (PyErr_Occurred()) SWIG_fail;
33484 }
33485 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
33486 return resultobj;
33487 fail:
33488 return NULL;
33489 }
33490
33491
33492 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33493 PyObject *resultobj = 0;
33494 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33495 void *argp1 = 0 ;
33496 int res1 = 0 ;
33497 PyObject *swig_obj[1] ;
33498
33499 if (!args) SWIG_fail;
33500 swig_obj[0] = args;
33501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
33502 if (!SWIG_IsOK(res1)) {
33503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33504 }
33505 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33506 {
33507 PyThreadState* __tstate = wxPyBeginAllowThreads();
33508 delete arg1;
33509
33510 wxPyEndAllowThreads(__tstate);
33511 if (PyErr_Occurred()) SWIG_fail;
33512 }
33513 resultobj = SWIG_Py_Void();
33514 return resultobj;
33515 fail:
33516 return NULL;
33517 }
33518
33519
33520 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33521 PyObject *resultobj = 0;
33522 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33523 wxColour *arg2 = (wxColour *) 0 ;
33524 void *argp1 = 0 ;
33525 int res1 = 0 ;
33526 wxColour temp2 ;
33527 PyObject *swig_obj[2] ;
33528
33529 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
33530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33531 if (!SWIG_IsOK(res1)) {
33532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33533 }
33534 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33535 {
33536 arg2 = &temp2;
33537 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33538 }
33539 if (arg1) (arg1)->m_arrowColour = *arg2;
33540
33541 resultobj = SWIG_Py_Void();
33542 return resultobj;
33543 fail:
33544 return NULL;
33545 }
33546
33547
33548 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33549 PyObject *resultobj = 0;
33550 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33551 wxColour *result = 0 ;
33552 void *argp1 = 0 ;
33553 int res1 = 0 ;
33554 PyObject *swig_obj[1] ;
33555
33556 if (!args) SWIG_fail;
33557 swig_obj[0] = args;
33558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33559 if (!SWIG_IsOK(res1)) {
33560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33561 }
33562 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33563 result = (wxColour *)& ((arg1)->m_arrowColour);
33564 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33565 return resultobj;
33566 fail:
33567 return NULL;
33568 }
33569
33570
33571 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33572 PyObject *resultobj = 0;
33573 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33574 wxColour *arg2 = (wxColour *) 0 ;
33575 void *argp1 = 0 ;
33576 int res1 = 0 ;
33577 wxColour temp2 ;
33578 PyObject *swig_obj[2] ;
33579
33580 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
33581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33582 if (!SWIG_IsOK(res1)) {
33583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33584 }
33585 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33586 {
33587 arg2 = &temp2;
33588 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33589 }
33590 if (arg1) (arg1)->m_selectionColour = *arg2;
33591
33592 resultobj = SWIG_Py_Void();
33593 return resultobj;
33594 fail:
33595 return NULL;
33596 }
33597
33598
33599 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33600 PyObject *resultobj = 0;
33601 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33602 wxColour *result = 0 ;
33603 void *argp1 = 0 ;
33604 int res1 = 0 ;
33605 PyObject *swig_obj[1] ;
33606
33607 if (!args) SWIG_fail;
33608 swig_obj[0] = args;
33609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33610 if (!SWIG_IsOK(res1)) {
33611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33612 }
33613 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33614 result = (wxColour *)& ((arg1)->m_selectionColour);
33615 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33616 return resultobj;
33617 fail:
33618 return NULL;
33619 }
33620
33621
33622 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33623 PyObject *resultobj = 0;
33624 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33625 wxString *arg2 = (wxString *) 0 ;
33626 void *argp1 = 0 ;
33627 int res1 = 0 ;
33628 bool temp2 = false ;
33629 PyObject *swig_obj[2] ;
33630
33631 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
33632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33633 if (!SWIG_IsOK(res1)) {
33634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33635 }
33636 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33637 {
33638 arg2 = wxString_in_helper(swig_obj[1]);
33639 if (arg2 == NULL) SWIG_fail;
33640 temp2 = true;
33641 }
33642 if (arg1) (arg1)->m_labelText = *arg2;
33643
33644 resultobj = SWIG_Py_Void();
33645 {
33646 if (temp2)
33647 delete arg2;
33648 }
33649 return resultobj;
33650 fail:
33651 {
33652 if (temp2)
33653 delete arg2;
33654 }
33655 return NULL;
33656 }
33657
33658
33659 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33660 PyObject *resultobj = 0;
33661 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33662 wxString *result = 0 ;
33663 void *argp1 = 0 ;
33664 int res1 = 0 ;
33665 PyObject *swig_obj[1] ;
33666
33667 if (!args) SWIG_fail;
33668 swig_obj[0] = args;
33669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33670 if (!SWIG_IsOK(res1)) {
33671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33672 }
33673 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33674 result = (wxString *)& ((arg1)->m_labelText);
33675 {
33676 #if wxUSE_UNICODE
33677 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33678 #else
33679 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33680 #endif
33681 }
33682 return resultobj;
33683 fail:
33684 return NULL;
33685 }
33686
33687
33688 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33689 PyObject *resultobj = 0;
33690 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33691 wxFont *arg2 = (wxFont *) 0 ;
33692 void *argp1 = 0 ;
33693 int res1 = 0 ;
33694 void *argp2 = 0 ;
33695 int res2 = 0 ;
33696 PyObject *swig_obj[2] ;
33697
33698 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
33699 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33700 if (!SWIG_IsOK(res1)) {
33701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33702 }
33703 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33704 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33705 if (!SWIG_IsOK(res2)) {
33706 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
33707 }
33708 arg2 = reinterpret_cast< wxFont * >(argp2);
33709 if (arg1) (arg1)->m_labelFont = *arg2;
33710
33711 resultobj = SWIG_Py_Void();
33712 return resultobj;
33713 fail:
33714 return NULL;
33715 }
33716
33717
33718 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33719 PyObject *resultobj = 0;
33720 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33721 wxFont *result = 0 ;
33722 void *argp1 = 0 ;
33723 int res1 = 0 ;
33724 PyObject *swig_obj[1] ;
33725
33726 if (!args) SWIG_fail;
33727 swig_obj[0] = args;
33728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33729 if (!SWIG_IsOK(res1)) {
33730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33731 }
33732 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33733 result = (wxFont *)& ((arg1)->m_labelFont);
33734 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33735 return resultobj;
33736 fail:
33737 return NULL;
33738 }
33739
33740
33741 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33742 PyObject *resultobj = 0;
33743 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33744 wxColour *arg2 = (wxColour *) 0 ;
33745 void *argp1 = 0 ;
33746 int res1 = 0 ;
33747 wxColour temp2 ;
33748 PyObject *swig_obj[2] ;
33749
33750 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
33751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33752 if (!SWIG_IsOK(res1)) {
33753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33754 }
33755 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33756 {
33757 arg2 = &temp2;
33758 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33759 }
33760 if (arg1) (arg1)->m_labelColour = *arg2;
33761
33762 resultobj = SWIG_Py_Void();
33763 return resultobj;
33764 fail:
33765 return NULL;
33766 }
33767
33768
33769 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33770 PyObject *resultobj = 0;
33771 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33772 wxColour *result = 0 ;
33773 void *argp1 = 0 ;
33774 int res1 = 0 ;
33775 PyObject *swig_obj[1] ;
33776
33777 if (!args) SWIG_fail;
33778 swig_obj[0] = args;
33779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33780 if (!SWIG_IsOK(res1)) {
33781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33782 }
33783 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33784 result = (wxColour *)& ((arg1)->m_labelColour);
33785 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33786 return resultobj;
33787 fail:
33788 return NULL;
33789 }
33790
33791
33792 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33793 PyObject *resultobj = 0;
33794 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33795 wxBitmap *arg2 = (wxBitmap *) 0 ;
33796 void *argp1 = 0 ;
33797 int res1 = 0 ;
33798 void *argp2 = 0 ;
33799 int res2 = 0 ;
33800 PyObject *swig_obj[2] ;
33801
33802 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
33803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33804 if (!SWIG_IsOK(res1)) {
33805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33806 }
33807 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33808 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
33809 if (!SWIG_IsOK(res2)) {
33810 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
33811 }
33812 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33813 if (arg1) (arg1)->m_labelBitmap = *arg2;
33814
33815 resultobj = SWIG_Py_Void();
33816 return resultobj;
33817 fail:
33818 return NULL;
33819 }
33820
33821
33822 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33823 PyObject *resultobj = 0;
33824 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33825 wxBitmap *result = 0 ;
33826 void *argp1 = 0 ;
33827 int res1 = 0 ;
33828 PyObject *swig_obj[1] ;
33829
33830 if (!args) SWIG_fail;
33831 swig_obj[0] = args;
33832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33833 if (!SWIG_IsOK(res1)) {
33834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33835 }
33836 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33837 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
33838 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
33839 return resultobj;
33840 fail:
33841 return NULL;
33842 }
33843
33844
33845 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33846 PyObject *resultobj = 0;
33847 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33848 int arg2 ;
33849 void *argp1 = 0 ;
33850 int res1 = 0 ;
33851 int val2 ;
33852 int ecode2 = 0 ;
33853 PyObject *swig_obj[2] ;
33854
33855 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
33856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33857 if (!SWIG_IsOK(res1)) {
33858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33859 }
33860 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33861 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33862 if (!SWIG_IsOK(ecode2)) {
33863 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
33864 }
33865 arg2 = static_cast< int >(val2);
33866 if (arg1) (arg1)->m_labelAlignment = arg2;
33867
33868 resultobj = SWIG_Py_Void();
33869 return resultobj;
33870 fail:
33871 return NULL;
33872 }
33873
33874
33875 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33876 PyObject *resultobj = 0;
33877 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33878 int result;
33879 void *argp1 = 0 ;
33880 int res1 = 0 ;
33881 PyObject *swig_obj[1] ;
33882
33883 if (!args) SWIG_fail;
33884 swig_obj[0] = args;
33885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33886 if (!SWIG_IsOK(res1)) {
33887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33888 }
33889 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33890 result = (int) ((arg1)->m_labelAlignment);
33891 resultobj = SWIG_From_int(static_cast< int >(result));
33892 return resultobj;
33893 fail:
33894 return NULL;
33895 }
33896
33897
33898 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33899 PyObject *obj;
33900 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33901 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
33902 return SWIG_Py_Void();
33903 }
33904
33905 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33906 return SWIG_Python_InitShadowInstance(args);
33907 }
33908
33909 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33910 PyObject *resultobj = 0;
33911 int arg1 ;
33912 int arg2 ;
33913 wxRendererVersion *result = 0 ;
33914 int val1 ;
33915 int ecode1 = 0 ;
33916 int val2 ;
33917 int ecode2 = 0 ;
33918 PyObject * obj0 = 0 ;
33919 PyObject * obj1 = 0 ;
33920 char * kwnames[] = {
33921 (char *) "version_",(char *) "age_", NULL
33922 };
33923
33924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
33925 ecode1 = SWIG_AsVal_int(obj0, &val1);
33926 if (!SWIG_IsOK(ecode1)) {
33927 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
33928 }
33929 arg1 = static_cast< int >(val1);
33930 ecode2 = SWIG_AsVal_int(obj1, &val2);
33931 if (!SWIG_IsOK(ecode2)) {
33932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
33933 }
33934 arg2 = static_cast< int >(val2);
33935 {
33936 PyThreadState* __tstate = wxPyBeginAllowThreads();
33937 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
33938 wxPyEndAllowThreads(__tstate);
33939 if (PyErr_Occurred()) SWIG_fail;
33940 }
33941 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
33942 return resultobj;
33943 fail:
33944 return NULL;
33945 }
33946
33947
33948 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33949 PyObject *resultobj = 0;
33950 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33951 void *argp1 = 0 ;
33952 int res1 = 0 ;
33953 PyObject *swig_obj[1] ;
33954
33955 if (!args) SWIG_fail;
33956 swig_obj[0] = args;
33957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
33958 if (!SWIG_IsOK(res1)) {
33959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33960 }
33961 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33962 {
33963 PyThreadState* __tstate = wxPyBeginAllowThreads();
33964 delete arg1;
33965
33966 wxPyEndAllowThreads(__tstate);
33967 if (PyErr_Occurred()) SWIG_fail;
33968 }
33969 resultobj = SWIG_Py_Void();
33970 return resultobj;
33971 fail:
33972 return NULL;
33973 }
33974
33975
33976 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33977 PyObject *resultobj = 0;
33978 wxRendererVersion *arg1 = 0 ;
33979 bool result;
33980 void *argp1 = 0 ;
33981 int res1 = 0 ;
33982 PyObject * obj0 = 0 ;
33983 char * kwnames[] = {
33984 (char *) "ver", NULL
33985 };
33986
33987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
33988 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
33989 if (!SWIG_IsOK(res1)) {
33990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
33991 }
33992 if (!argp1) {
33993 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
33994 }
33995 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33996 {
33997 PyThreadState* __tstate = wxPyBeginAllowThreads();
33998 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
33999 wxPyEndAllowThreads(__tstate);
34000 if (PyErr_Occurred()) SWIG_fail;
34001 }
34002 {
34003 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34004 }
34005 return resultobj;
34006 fail:
34007 return NULL;
34008 }
34009
34010
34011 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34012 PyObject *resultobj = 0;
34013 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34014 int result;
34015 void *argp1 = 0 ;
34016 int res1 = 0 ;
34017 PyObject *swig_obj[1] ;
34018
34019 if (!args) SWIG_fail;
34020 swig_obj[0] = args;
34021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34022 if (!SWIG_IsOK(res1)) {
34023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34024 }
34025 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34026 result = (int)(int) ((arg1)->version);
34027 resultobj = SWIG_From_int(static_cast< int >(result));
34028 return resultobj;
34029 fail:
34030 return NULL;
34031 }
34032
34033
34034 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34035 PyObject *resultobj = 0;
34036 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34037 int result;
34038 void *argp1 = 0 ;
34039 int res1 = 0 ;
34040 PyObject *swig_obj[1] ;
34041
34042 if (!args) SWIG_fail;
34043 swig_obj[0] = args;
34044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34045 if (!SWIG_IsOK(res1)) {
34046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34047 }
34048 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34049 result = (int)(int) ((arg1)->age);
34050 resultobj = SWIG_From_int(static_cast< int >(result));
34051 return resultobj;
34052 fail:
34053 return NULL;
34054 }
34055
34056
34057 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34058 PyObject *obj;
34059 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34060 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
34061 return SWIG_Py_Void();
34062 }
34063
34064 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34065 return SWIG_Python_InitShadowInstance(args);
34066 }
34067
34068 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34069 PyObject *resultobj = 0;
34070 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34071 wxWindow *arg2 = (wxWindow *) 0 ;
34072 wxDC *arg3 = 0 ;
34073 wxRect *arg4 = 0 ;
34074 int arg5 = (int) 0 ;
34075 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34076 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
34077 void *argp1 = 0 ;
34078 int res1 = 0 ;
34079 void *argp2 = 0 ;
34080 int res2 = 0 ;
34081 void *argp3 = 0 ;
34082 int res3 = 0 ;
34083 wxRect temp4 ;
34084 int val5 ;
34085 int ecode5 = 0 ;
34086 int val6 ;
34087 int ecode6 = 0 ;
34088 void *argp7 = 0 ;
34089 int res7 = 0 ;
34090 PyObject * obj0 = 0 ;
34091 PyObject * obj1 = 0 ;
34092 PyObject * obj2 = 0 ;
34093 PyObject * obj3 = 0 ;
34094 PyObject * obj4 = 0 ;
34095 PyObject * obj5 = 0 ;
34096 PyObject * obj6 = 0 ;
34097 char * kwnames[] = {
34098 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34099 };
34100
34101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34103 if (!SWIG_IsOK(res1)) {
34104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34105 }
34106 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34107 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34108 if (!SWIG_IsOK(res2)) {
34109 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34110 }
34111 arg2 = reinterpret_cast< wxWindow * >(argp2);
34112 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34113 if (!SWIG_IsOK(res3)) {
34114 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34115 }
34116 if (!argp3) {
34117 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34118 }
34119 arg3 = reinterpret_cast< wxDC * >(argp3);
34120 {
34121 arg4 = &temp4;
34122 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34123 }
34124 if (obj4) {
34125 ecode5 = SWIG_AsVal_int(obj4, &val5);
34126 if (!SWIG_IsOK(ecode5)) {
34127 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
34128 }
34129 arg5 = static_cast< int >(val5);
34130 }
34131 if (obj5) {
34132 ecode6 = SWIG_AsVal_int(obj5, &val6);
34133 if (!SWIG_IsOK(ecode6)) {
34134 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34135 }
34136 arg6 = static_cast< wxHeaderSortIconType >(val6);
34137 }
34138 if (obj6) {
34139 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34140 if (!SWIG_IsOK(res7)) {
34141 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34142 }
34143 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34144 }
34145 {
34146 PyThreadState* __tstate = wxPyBeginAllowThreads();
34147 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
34148 wxPyEndAllowThreads(__tstate);
34149 if (PyErr_Occurred()) SWIG_fail;
34150 }
34151 resultobj = SWIG_Py_Void();
34152 return resultobj;
34153 fail:
34154 return NULL;
34155 }
34156
34157
34158 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34159 PyObject *resultobj = 0;
34160 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34161 wxWindow *arg2 = (wxWindow *) 0 ;
34162 wxDC *arg3 = 0 ;
34163 wxRect *arg4 = 0 ;
34164 int arg5 = (int) 0 ;
34165 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34166 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
34167 void *argp1 = 0 ;
34168 int res1 = 0 ;
34169 void *argp2 = 0 ;
34170 int res2 = 0 ;
34171 void *argp3 = 0 ;
34172 int res3 = 0 ;
34173 wxRect temp4 ;
34174 int val5 ;
34175 int ecode5 = 0 ;
34176 int val6 ;
34177 int ecode6 = 0 ;
34178 void *argp7 = 0 ;
34179 int res7 = 0 ;
34180 PyObject * obj0 = 0 ;
34181 PyObject * obj1 = 0 ;
34182 PyObject * obj2 = 0 ;
34183 PyObject * obj3 = 0 ;
34184 PyObject * obj4 = 0 ;
34185 PyObject * obj5 = 0 ;
34186 PyObject * obj6 = 0 ;
34187 char * kwnames[] = {
34188 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34189 };
34190
34191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34193 if (!SWIG_IsOK(res1)) {
34194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34195 }
34196 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34197 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34198 if (!SWIG_IsOK(res2)) {
34199 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
34200 }
34201 arg2 = reinterpret_cast< wxWindow * >(argp2);
34202 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34203 if (!SWIG_IsOK(res3)) {
34204 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34205 }
34206 if (!argp3) {
34207 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34208 }
34209 arg3 = reinterpret_cast< wxDC * >(argp3);
34210 {
34211 arg4 = &temp4;
34212 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34213 }
34214 if (obj4) {
34215 ecode5 = SWIG_AsVal_int(obj4, &val5);
34216 if (!SWIG_IsOK(ecode5)) {
34217 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
34218 }
34219 arg5 = static_cast< int >(val5);
34220 }
34221 if (obj5) {
34222 ecode6 = SWIG_AsVal_int(obj5, &val6);
34223 if (!SWIG_IsOK(ecode6)) {
34224 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34225 }
34226 arg6 = static_cast< wxHeaderSortIconType >(val6);
34227 }
34228 if (obj6) {
34229 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34230 if (!SWIG_IsOK(res7)) {
34231 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34232 }
34233 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34234 }
34235 {
34236 PyThreadState* __tstate = wxPyBeginAllowThreads();
34237 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
34238 wxPyEndAllowThreads(__tstate);
34239 if (PyErr_Occurred()) SWIG_fail;
34240 }
34241 resultobj = SWIG_Py_Void();
34242 return resultobj;
34243 fail:
34244 return NULL;
34245 }
34246
34247
34248 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34249 PyObject *resultobj = 0;
34250 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34251 wxWindow *arg2 = (wxWindow *) 0 ;
34252 int result;
34253 void *argp1 = 0 ;
34254 int res1 = 0 ;
34255 void *argp2 = 0 ;
34256 int res2 = 0 ;
34257 PyObject * obj0 = 0 ;
34258 PyObject * obj1 = 0 ;
34259 char * kwnames[] = {
34260 (char *) "self",(char *) "win", NULL
34261 };
34262
34263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
34264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34265 if (!SWIG_IsOK(res1)) {
34266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34267 }
34268 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34269 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34270 if (!SWIG_IsOK(res2)) {
34271 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
34272 }
34273 arg2 = reinterpret_cast< wxWindow * >(argp2);
34274 {
34275 PyThreadState* __tstate = wxPyBeginAllowThreads();
34276 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
34277 wxPyEndAllowThreads(__tstate);
34278 if (PyErr_Occurred()) SWIG_fail;
34279 }
34280 resultobj = SWIG_From_int(static_cast< int >(result));
34281 return resultobj;
34282 fail:
34283 return NULL;
34284 }
34285
34286
34287 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34288 PyObject *resultobj = 0;
34289 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34290 wxWindow *arg2 = (wxWindow *) 0 ;
34291 wxDC *arg3 = 0 ;
34292 wxRect *arg4 = 0 ;
34293 int arg5 = (int) 0 ;
34294 void *argp1 = 0 ;
34295 int res1 = 0 ;
34296 void *argp2 = 0 ;
34297 int res2 = 0 ;
34298 void *argp3 = 0 ;
34299 int res3 = 0 ;
34300 wxRect temp4 ;
34301 int val5 ;
34302 int ecode5 = 0 ;
34303 PyObject * obj0 = 0 ;
34304 PyObject * obj1 = 0 ;
34305 PyObject * obj2 = 0 ;
34306 PyObject * obj3 = 0 ;
34307 PyObject * obj4 = 0 ;
34308 char * kwnames[] = {
34309 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34310 };
34311
34312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34314 if (!SWIG_IsOK(res1)) {
34315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34316 }
34317 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34318 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34319 if (!SWIG_IsOK(res2)) {
34320 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34321 }
34322 arg2 = reinterpret_cast< wxWindow * >(argp2);
34323 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34324 if (!SWIG_IsOK(res3)) {
34325 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34326 }
34327 if (!argp3) {
34328 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34329 }
34330 arg3 = reinterpret_cast< wxDC * >(argp3);
34331 {
34332 arg4 = &temp4;
34333 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34334 }
34335 if (obj4) {
34336 ecode5 = SWIG_AsVal_int(obj4, &val5);
34337 if (!SWIG_IsOK(ecode5)) {
34338 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
34339 }
34340 arg5 = static_cast< int >(val5);
34341 }
34342 {
34343 PyThreadState* __tstate = wxPyBeginAllowThreads();
34344 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34345 wxPyEndAllowThreads(__tstate);
34346 if (PyErr_Occurred()) SWIG_fail;
34347 }
34348 resultobj = SWIG_Py_Void();
34349 return resultobj;
34350 fail:
34351 return NULL;
34352 }
34353
34354
34355 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34356 PyObject *resultobj = 0;
34357 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34358 wxWindow *arg2 = (wxWindow *) 0 ;
34359 wxDC *arg3 = 0 ;
34360 wxRect *arg4 = 0 ;
34361 int arg5 = (int) 0 ;
34362 void *argp1 = 0 ;
34363 int res1 = 0 ;
34364 void *argp2 = 0 ;
34365 int res2 = 0 ;
34366 void *argp3 = 0 ;
34367 int res3 = 0 ;
34368 wxRect temp4 ;
34369 int val5 ;
34370 int ecode5 = 0 ;
34371 PyObject * obj0 = 0 ;
34372 PyObject * obj1 = 0 ;
34373 PyObject * obj2 = 0 ;
34374 PyObject * obj3 = 0 ;
34375 PyObject * obj4 = 0 ;
34376 char * kwnames[] = {
34377 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34378 };
34379
34380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34382 if (!SWIG_IsOK(res1)) {
34383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34384 }
34385 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34386 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34387 if (!SWIG_IsOK(res2)) {
34388 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
34389 }
34390 arg2 = reinterpret_cast< wxWindow * >(argp2);
34391 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34392 if (!SWIG_IsOK(res3)) {
34393 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34394 }
34395 if (!argp3) {
34396 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34397 }
34398 arg3 = reinterpret_cast< wxDC * >(argp3);
34399 {
34400 arg4 = &temp4;
34401 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34402 }
34403 if (obj4) {
34404 ecode5 = SWIG_AsVal_int(obj4, &val5);
34405 if (!SWIG_IsOK(ecode5)) {
34406 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
34407 }
34408 arg5 = static_cast< int >(val5);
34409 }
34410 {
34411 PyThreadState* __tstate = wxPyBeginAllowThreads();
34412 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
34413 wxPyEndAllowThreads(__tstate);
34414 if (PyErr_Occurred()) SWIG_fail;
34415 }
34416 resultobj = SWIG_Py_Void();
34417 return resultobj;
34418 fail:
34419 return NULL;
34420 }
34421
34422
34423 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34424 PyObject *resultobj = 0;
34425 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34426 wxWindow *arg2 = (wxWindow *) 0 ;
34427 wxDC *arg3 = 0 ;
34428 wxSize *arg4 = 0 ;
34429 int arg5 ;
34430 wxOrientation arg6 ;
34431 int arg7 = (int) 0 ;
34432 void *argp1 = 0 ;
34433 int res1 = 0 ;
34434 void *argp2 = 0 ;
34435 int res2 = 0 ;
34436 void *argp3 = 0 ;
34437 int res3 = 0 ;
34438 wxSize temp4 ;
34439 int val5 ;
34440 int ecode5 = 0 ;
34441 int val6 ;
34442 int ecode6 = 0 ;
34443 int val7 ;
34444 int ecode7 = 0 ;
34445 PyObject * obj0 = 0 ;
34446 PyObject * obj1 = 0 ;
34447 PyObject * obj2 = 0 ;
34448 PyObject * obj3 = 0 ;
34449 PyObject * obj4 = 0 ;
34450 PyObject * obj5 = 0 ;
34451 PyObject * obj6 = 0 ;
34452 char * kwnames[] = {
34453 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
34454 };
34455
34456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34458 if (!SWIG_IsOK(res1)) {
34459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34460 }
34461 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34462 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34463 if (!SWIG_IsOK(res2)) {
34464 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
34465 }
34466 arg2 = reinterpret_cast< wxWindow * >(argp2);
34467 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34468 if (!SWIG_IsOK(res3)) {
34469 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34470 }
34471 if (!argp3) {
34472 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34473 }
34474 arg3 = reinterpret_cast< wxDC * >(argp3);
34475 {
34476 arg4 = &temp4;
34477 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
34478 }
34479 ecode5 = SWIG_AsVal_int(obj4, &val5);
34480 if (!SWIG_IsOK(ecode5)) {
34481 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
34482 }
34483 arg5 = static_cast< int >(val5);
34484 ecode6 = SWIG_AsVal_int(obj5, &val6);
34485 if (!SWIG_IsOK(ecode6)) {
34486 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
34487 }
34488 arg6 = static_cast< wxOrientation >(val6);
34489 if (obj6) {
34490 ecode7 = SWIG_AsVal_int(obj6, &val7);
34491 if (!SWIG_IsOK(ecode7)) {
34492 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
34493 }
34494 arg7 = static_cast< int >(val7);
34495 }
34496 {
34497 PyThreadState* __tstate = wxPyBeginAllowThreads();
34498 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
34499 wxPyEndAllowThreads(__tstate);
34500 if (PyErr_Occurred()) SWIG_fail;
34501 }
34502 resultobj = SWIG_Py_Void();
34503 return resultobj;
34504 fail:
34505 return NULL;
34506 }
34507
34508
34509 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34510 PyObject *resultobj = 0;
34511 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34512 wxWindow *arg2 = (wxWindow *) 0 ;
34513 wxDC *arg3 = 0 ;
34514 wxRect *arg4 = 0 ;
34515 int arg5 = (int) 0 ;
34516 void *argp1 = 0 ;
34517 int res1 = 0 ;
34518 void *argp2 = 0 ;
34519 int res2 = 0 ;
34520 void *argp3 = 0 ;
34521 int res3 = 0 ;
34522 wxRect temp4 ;
34523 int val5 ;
34524 int ecode5 = 0 ;
34525 PyObject * obj0 = 0 ;
34526 PyObject * obj1 = 0 ;
34527 PyObject * obj2 = 0 ;
34528 PyObject * obj3 = 0 ;
34529 PyObject * obj4 = 0 ;
34530 char * kwnames[] = {
34531 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34532 };
34533
34534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34536 if (!SWIG_IsOK(res1)) {
34537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34538 }
34539 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34540 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34541 if (!SWIG_IsOK(res2)) {
34542 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34543 }
34544 arg2 = reinterpret_cast< wxWindow * >(argp2);
34545 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34546 if (!SWIG_IsOK(res3)) {
34547 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34548 }
34549 if (!argp3) {
34550 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34551 }
34552 arg3 = reinterpret_cast< wxDC * >(argp3);
34553 {
34554 arg4 = &temp4;
34555 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34556 }
34557 if (obj4) {
34558 ecode5 = SWIG_AsVal_int(obj4, &val5);
34559 if (!SWIG_IsOK(ecode5)) {
34560 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
34561 }
34562 arg5 = static_cast< int >(val5);
34563 }
34564 {
34565 PyThreadState* __tstate = wxPyBeginAllowThreads();
34566 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34567 wxPyEndAllowThreads(__tstate);
34568 if (PyErr_Occurred()) SWIG_fail;
34569 }
34570 resultobj = SWIG_Py_Void();
34571 return resultobj;
34572 fail:
34573 return NULL;
34574 }
34575
34576
34577 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34578 PyObject *resultobj = 0;
34579 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34580 wxWindow *arg2 = (wxWindow *) 0 ;
34581 wxDC *arg3 = 0 ;
34582 wxRect *arg4 = 0 ;
34583 int arg5 = (int) 0 ;
34584 void *argp1 = 0 ;
34585 int res1 = 0 ;
34586 void *argp2 = 0 ;
34587 int res2 = 0 ;
34588 void *argp3 = 0 ;
34589 int res3 = 0 ;
34590 wxRect temp4 ;
34591 int val5 ;
34592 int ecode5 = 0 ;
34593 PyObject * obj0 = 0 ;
34594 PyObject * obj1 = 0 ;
34595 PyObject * obj2 = 0 ;
34596 PyObject * obj3 = 0 ;
34597 PyObject * obj4 = 0 ;
34598 char * kwnames[] = {
34599 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34600 };
34601
34602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34604 if (!SWIG_IsOK(res1)) {
34605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34606 }
34607 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34608 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34609 if (!SWIG_IsOK(res2)) {
34610 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
34611 }
34612 arg2 = reinterpret_cast< wxWindow * >(argp2);
34613 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34614 if (!SWIG_IsOK(res3)) {
34615 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34616 }
34617 if (!argp3) {
34618 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34619 }
34620 arg3 = reinterpret_cast< wxDC * >(argp3);
34621 {
34622 arg4 = &temp4;
34623 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34624 }
34625 if (obj4) {
34626 ecode5 = SWIG_AsVal_int(obj4, &val5);
34627 if (!SWIG_IsOK(ecode5)) {
34628 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
34629 }
34630 arg5 = static_cast< int >(val5);
34631 }
34632 {
34633 PyThreadState* __tstate = wxPyBeginAllowThreads();
34634 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
34635 wxPyEndAllowThreads(__tstate);
34636 if (PyErr_Occurred()) SWIG_fail;
34637 }
34638 resultobj = SWIG_Py_Void();
34639 return resultobj;
34640 fail:
34641 return NULL;
34642 }
34643
34644
34645 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34646 PyObject *resultobj = 0;
34647 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34648 wxWindow *arg2 = (wxWindow *) 0 ;
34649 wxDC *arg3 = 0 ;
34650 wxRect *arg4 = 0 ;
34651 int arg5 = (int) 0 ;
34652 void *argp1 = 0 ;
34653 int res1 = 0 ;
34654 void *argp2 = 0 ;
34655 int res2 = 0 ;
34656 void *argp3 = 0 ;
34657 int res3 = 0 ;
34658 wxRect temp4 ;
34659 int val5 ;
34660 int ecode5 = 0 ;
34661 PyObject * obj0 = 0 ;
34662 PyObject * obj1 = 0 ;
34663 PyObject * obj2 = 0 ;
34664 PyObject * obj3 = 0 ;
34665 PyObject * obj4 = 0 ;
34666 char * kwnames[] = {
34667 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34668 };
34669
34670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34672 if (!SWIG_IsOK(res1)) {
34673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34674 }
34675 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34676 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34677 if (!SWIG_IsOK(res2)) {
34678 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
34679 }
34680 arg2 = reinterpret_cast< wxWindow * >(argp2);
34681 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34682 if (!SWIG_IsOK(res3)) {
34683 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
34684 }
34685 if (!argp3) {
34686 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
34687 }
34688 arg3 = reinterpret_cast< wxDC * >(argp3);
34689 {
34690 arg4 = &temp4;
34691 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34692 }
34693 if (obj4) {
34694 ecode5 = SWIG_AsVal_int(obj4, &val5);
34695 if (!SWIG_IsOK(ecode5)) {
34696 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
34697 }
34698 arg5 = static_cast< int >(val5);
34699 }
34700 {
34701 PyThreadState* __tstate = wxPyBeginAllowThreads();
34702 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
34703 wxPyEndAllowThreads(__tstate);
34704 if (PyErr_Occurred()) SWIG_fail;
34705 }
34706 resultobj = SWIG_Py_Void();
34707 return resultobj;
34708 fail:
34709 return NULL;
34710 }
34711
34712
34713 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34714 PyObject *resultobj = 0;
34715 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34716 wxWindow *arg2 = (wxWindow *) 0 ;
34717 wxDC *arg3 = 0 ;
34718 wxRect *arg4 = 0 ;
34719 int arg5 = (int) 0 ;
34720 void *argp1 = 0 ;
34721 int res1 = 0 ;
34722 void *argp2 = 0 ;
34723 int res2 = 0 ;
34724 void *argp3 = 0 ;
34725 int res3 = 0 ;
34726 wxRect temp4 ;
34727 int val5 ;
34728 int ecode5 = 0 ;
34729 PyObject * obj0 = 0 ;
34730 PyObject * obj1 = 0 ;
34731 PyObject * obj2 = 0 ;
34732 PyObject * obj3 = 0 ;
34733 PyObject * obj4 = 0 ;
34734 char * kwnames[] = {
34735 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34736 };
34737
34738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34740 if (!SWIG_IsOK(res1)) {
34741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34742 }
34743 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34744 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34745 if (!SWIG_IsOK(res2)) {
34746 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34747 }
34748 arg2 = reinterpret_cast< wxWindow * >(argp2);
34749 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34750 if (!SWIG_IsOK(res3)) {
34751 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34752 }
34753 if (!argp3) {
34754 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34755 }
34756 arg3 = reinterpret_cast< wxDC * >(argp3);
34757 {
34758 arg4 = &temp4;
34759 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34760 }
34761 if (obj4) {
34762 ecode5 = SWIG_AsVal_int(obj4, &val5);
34763 if (!SWIG_IsOK(ecode5)) {
34764 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
34765 }
34766 arg5 = static_cast< int >(val5);
34767 }
34768 {
34769 PyThreadState* __tstate = wxPyBeginAllowThreads();
34770 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34771 wxPyEndAllowThreads(__tstate);
34772 if (PyErr_Occurred()) SWIG_fail;
34773 }
34774 resultobj = SWIG_Py_Void();
34775 return resultobj;
34776 fail:
34777 return NULL;
34778 }
34779
34780
34781 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34782 PyObject *resultobj = 0;
34783 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34784 wxWindow *arg2 = (wxWindow *) 0 ;
34785 wxDC *arg3 = 0 ;
34786 wxRect *arg4 = 0 ;
34787 int arg5 = (int) 0 ;
34788 void *argp1 = 0 ;
34789 int res1 = 0 ;
34790 void *argp2 = 0 ;
34791 int res2 = 0 ;
34792 void *argp3 = 0 ;
34793 int res3 = 0 ;
34794 wxRect temp4 ;
34795 int val5 ;
34796 int ecode5 = 0 ;
34797 PyObject * obj0 = 0 ;
34798 PyObject * obj1 = 0 ;
34799 PyObject * obj2 = 0 ;
34800 PyObject * obj3 = 0 ;
34801 PyObject * obj4 = 0 ;
34802 char * kwnames[] = {
34803 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34804 };
34805
34806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34808 if (!SWIG_IsOK(res1)) {
34809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34810 }
34811 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34812 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34813 if (!SWIG_IsOK(res2)) {
34814 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
34815 }
34816 arg2 = reinterpret_cast< wxWindow * >(argp2);
34817 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34818 if (!SWIG_IsOK(res3)) {
34819 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
34820 }
34821 if (!argp3) {
34822 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
34823 }
34824 arg3 = reinterpret_cast< wxDC * >(argp3);
34825 {
34826 arg4 = &temp4;
34827 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34828 }
34829 if (obj4) {
34830 ecode5 = SWIG_AsVal_int(obj4, &val5);
34831 if (!SWIG_IsOK(ecode5)) {
34832 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
34833 }
34834 arg5 = static_cast< int >(val5);
34835 }
34836 {
34837 PyThreadState* __tstate = wxPyBeginAllowThreads();
34838 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
34839 wxPyEndAllowThreads(__tstate);
34840 if (PyErr_Occurred()) SWIG_fail;
34841 }
34842 resultobj = SWIG_Py_Void();
34843 return resultobj;
34844 fail:
34845 return NULL;
34846 }
34847
34848
34849 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34850 PyObject *resultobj = 0;
34851 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34852 wxWindow *arg2 = (wxWindow *) 0 ;
34853 SwigValueWrapper<wxSplitterRenderParams > result;
34854 void *argp1 = 0 ;
34855 int res1 = 0 ;
34856 void *argp2 = 0 ;
34857 int res2 = 0 ;
34858 PyObject * obj0 = 0 ;
34859 PyObject * obj1 = 0 ;
34860 char * kwnames[] = {
34861 (char *) "self",(char *) "win", NULL
34862 };
34863
34864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
34865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34866 if (!SWIG_IsOK(res1)) {
34867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34868 }
34869 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34870 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34871 if (!SWIG_IsOK(res2)) {
34872 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
34873 }
34874 arg2 = reinterpret_cast< wxWindow * >(argp2);
34875 {
34876 PyThreadState* __tstate = wxPyBeginAllowThreads();
34877 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
34878 wxPyEndAllowThreads(__tstate);
34879 if (PyErr_Occurred()) SWIG_fail;
34880 }
34881 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
34882 return resultobj;
34883 fail:
34884 return NULL;
34885 }
34886
34887
34888 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34889 PyObject *resultobj = 0;
34890 wxRendererNative *result = 0 ;
34891
34892 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
34893 {
34894 if (!wxPyCheckForApp()) SWIG_fail;
34895 PyThreadState* __tstate = wxPyBeginAllowThreads();
34896 {
34897 wxRendererNative &_result_ref = wxRendererNative::Get();
34898 result = (wxRendererNative *) &_result_ref;
34899 }
34900 wxPyEndAllowThreads(__tstate);
34901 if (PyErr_Occurred()) SWIG_fail;
34902 }
34903 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34904 return resultobj;
34905 fail:
34906 return NULL;
34907 }
34908
34909
34910 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34911 PyObject *resultobj = 0;
34912 wxRendererNative *result = 0 ;
34913
34914 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
34915 {
34916 if (!wxPyCheckForApp()) SWIG_fail;
34917 PyThreadState* __tstate = wxPyBeginAllowThreads();
34918 {
34919 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
34920 result = (wxRendererNative *) &_result_ref;
34921 }
34922 wxPyEndAllowThreads(__tstate);
34923 if (PyErr_Occurred()) SWIG_fail;
34924 }
34925 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34926 return resultobj;
34927 fail:
34928 return NULL;
34929 }
34930
34931
34932 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34933 PyObject *resultobj = 0;
34934 wxRendererNative *result = 0 ;
34935
34936 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
34937 {
34938 if (!wxPyCheckForApp()) SWIG_fail;
34939 PyThreadState* __tstate = wxPyBeginAllowThreads();
34940 {
34941 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
34942 result = (wxRendererNative *) &_result_ref;
34943 }
34944 wxPyEndAllowThreads(__tstate);
34945 if (PyErr_Occurred()) SWIG_fail;
34946 }
34947 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34948 return resultobj;
34949 fail:
34950 return NULL;
34951 }
34952
34953
34954 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34955 PyObject *resultobj = 0;
34956 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34957 wxRendererNative *result = 0 ;
34958 void *argp1 = 0 ;
34959 int res1 = 0 ;
34960 PyObject * obj0 = 0 ;
34961 char * kwnames[] = {
34962 (char *) "renderer", NULL
34963 };
34964
34965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
34966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34967 if (!SWIG_IsOK(res1)) {
34968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34969 }
34970 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34971 {
34972 if (!wxPyCheckForApp()) SWIG_fail;
34973 PyThreadState* __tstate = wxPyBeginAllowThreads();
34974 result = (wxRendererNative *)wxRendererNative::Set(arg1);
34975 wxPyEndAllowThreads(__tstate);
34976 if (PyErr_Occurred()) SWIG_fail;
34977 }
34978 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34979 return resultobj;
34980 fail:
34981 return NULL;
34982 }
34983
34984
34985 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34986 PyObject *resultobj = 0;
34987 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34988 SwigValueWrapper<wxRendererVersion > result;
34989 void *argp1 = 0 ;
34990 int res1 = 0 ;
34991 PyObject *swig_obj[1] ;
34992
34993 if (!args) SWIG_fail;
34994 swig_obj[0] = args;
34995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34996 if (!SWIG_IsOK(res1)) {
34997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
34998 }
34999 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35000 {
35001 PyThreadState* __tstate = wxPyBeginAllowThreads();
35002 result = ((wxRendererNative const *)arg1)->GetVersion();
35003 wxPyEndAllowThreads(__tstate);
35004 if (PyErr_Occurred()) SWIG_fail;
35005 }
35006 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
35007 return resultobj;
35008 fail:
35009 return NULL;
35010 }
35011
35012
35013 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35014 PyObject *obj;
35015 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35016 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
35017 return SWIG_Py_Void();
35018 }
35019
35020 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35021 PyObject *resultobj = 0;
35022 wxPseudoDC *result = 0 ;
35023
35024 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
35025 {
35026 PyThreadState* __tstate = wxPyBeginAllowThreads();
35027 result = (wxPseudoDC *)new wxPseudoDC();
35028 wxPyEndAllowThreads(__tstate);
35029 if (PyErr_Occurred()) SWIG_fail;
35030 }
35031 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
35032 return resultobj;
35033 fail:
35034 return NULL;
35035 }
35036
35037
35038 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35039 PyObject *resultobj = 0;
35040 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35041 void *argp1 = 0 ;
35042 int res1 = 0 ;
35043 PyObject *swig_obj[1] ;
35044
35045 if (!args) SWIG_fail;
35046 swig_obj[0] = args;
35047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35048 if (!SWIG_IsOK(res1)) {
35049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35050 }
35051 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35052 {
35053 PyThreadState* __tstate = wxPyBeginAllowThreads();
35054 (arg1)->BeginDrawing();
35055 wxPyEndAllowThreads(__tstate);
35056 if (PyErr_Occurred()) SWIG_fail;
35057 }
35058 resultobj = SWIG_Py_Void();
35059 return resultobj;
35060 fail:
35061 return NULL;
35062 }
35063
35064
35065 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35066 PyObject *resultobj = 0;
35067 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35068 void *argp1 = 0 ;
35069 int res1 = 0 ;
35070 PyObject *swig_obj[1] ;
35071
35072 if (!args) SWIG_fail;
35073 swig_obj[0] = args;
35074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35075 if (!SWIG_IsOK(res1)) {
35076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35077 }
35078 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35079 {
35080 PyThreadState* __tstate = wxPyBeginAllowThreads();
35081 (arg1)->EndDrawing();
35082 wxPyEndAllowThreads(__tstate);
35083 if (PyErr_Occurred()) SWIG_fail;
35084 }
35085 resultobj = SWIG_Py_Void();
35086 return resultobj;
35087 fail:
35088 return NULL;
35089 }
35090
35091
35092 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35093 PyObject *resultobj = 0;
35094 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35095 void *argp1 = 0 ;
35096 int res1 = 0 ;
35097 PyObject *swig_obj[1] ;
35098
35099 if (!args) SWIG_fail;
35100 swig_obj[0] = args;
35101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
35102 if (!SWIG_IsOK(res1)) {
35103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35104 }
35105 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35106 {
35107 PyThreadState* __tstate = wxPyBeginAllowThreads();
35108 delete arg1;
35109
35110 wxPyEndAllowThreads(__tstate);
35111 if (PyErr_Occurred()) SWIG_fail;
35112 }
35113 resultobj = SWIG_Py_Void();
35114 return resultobj;
35115 fail:
35116 return NULL;
35117 }
35118
35119
35120 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35121 PyObject *resultobj = 0;
35122 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35123 void *argp1 = 0 ;
35124 int res1 = 0 ;
35125 PyObject *swig_obj[1] ;
35126
35127 if (!args) SWIG_fail;
35128 swig_obj[0] = args;
35129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35130 if (!SWIG_IsOK(res1)) {
35131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35132 }
35133 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35134 {
35135 PyThreadState* __tstate = wxPyBeginAllowThreads();
35136 (arg1)->RemoveAll();
35137 wxPyEndAllowThreads(__tstate);
35138 if (PyErr_Occurred()) SWIG_fail;
35139 }
35140 resultobj = SWIG_Py_Void();
35141 return resultobj;
35142 fail:
35143 return NULL;
35144 }
35145
35146
35147 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35148 PyObject *resultobj = 0;
35149 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35150 int result;
35151 void *argp1 = 0 ;
35152 int res1 = 0 ;
35153 PyObject *swig_obj[1] ;
35154
35155 if (!args) SWIG_fail;
35156 swig_obj[0] = args;
35157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35158 if (!SWIG_IsOK(res1)) {
35159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35160 }
35161 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35162 {
35163 PyThreadState* __tstate = wxPyBeginAllowThreads();
35164 result = (int)(arg1)->GetLen();
35165 wxPyEndAllowThreads(__tstate);
35166 if (PyErr_Occurred()) SWIG_fail;
35167 }
35168 resultobj = SWIG_From_int(static_cast< int >(result));
35169 return resultobj;
35170 fail:
35171 return NULL;
35172 }
35173
35174
35175 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35176 PyObject *resultobj = 0;
35177 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35178 int arg2 ;
35179 void *argp1 = 0 ;
35180 int res1 = 0 ;
35181 int val2 ;
35182 int ecode2 = 0 ;
35183 PyObject * obj0 = 0 ;
35184 PyObject * obj1 = 0 ;
35185 char * kwnames[] = {
35186 (char *) "self",(char *) "id", NULL
35187 };
35188
35189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
35190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35191 if (!SWIG_IsOK(res1)) {
35192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35193 }
35194 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35195 ecode2 = SWIG_AsVal_int(obj1, &val2);
35196 if (!SWIG_IsOK(ecode2)) {
35197 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
35198 }
35199 arg2 = static_cast< int >(val2);
35200 {
35201 PyThreadState* __tstate = wxPyBeginAllowThreads();
35202 (arg1)->SetId(arg2);
35203 wxPyEndAllowThreads(__tstate);
35204 if (PyErr_Occurred()) SWIG_fail;
35205 }
35206 resultobj = SWIG_Py_Void();
35207 return resultobj;
35208 fail:
35209 return NULL;
35210 }
35211
35212
35213 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35214 PyObject *resultobj = 0;
35215 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35216 int arg2 ;
35217 void *argp1 = 0 ;
35218 int res1 = 0 ;
35219 int val2 ;
35220 int ecode2 = 0 ;
35221 PyObject * obj0 = 0 ;
35222 PyObject * obj1 = 0 ;
35223 char * kwnames[] = {
35224 (char *) "self",(char *) "id", NULL
35225 };
35226
35227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
35228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35229 if (!SWIG_IsOK(res1)) {
35230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35231 }
35232 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35233 ecode2 = SWIG_AsVal_int(obj1, &val2);
35234 if (!SWIG_IsOK(ecode2)) {
35235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
35236 }
35237 arg2 = static_cast< int >(val2);
35238 {
35239 PyThreadState* __tstate = wxPyBeginAllowThreads();
35240 (arg1)->ClearId(arg2);
35241 wxPyEndAllowThreads(__tstate);
35242 if (PyErr_Occurred()) SWIG_fail;
35243 }
35244 resultobj = SWIG_Py_Void();
35245 return resultobj;
35246 fail:
35247 return NULL;
35248 }
35249
35250
35251 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35252 PyObject *resultobj = 0;
35253 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35254 int arg2 ;
35255 void *argp1 = 0 ;
35256 int res1 = 0 ;
35257 int val2 ;
35258 int ecode2 = 0 ;
35259 PyObject * obj0 = 0 ;
35260 PyObject * obj1 = 0 ;
35261 char * kwnames[] = {
35262 (char *) "self",(char *) "id", NULL
35263 };
35264
35265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
35266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35267 if (!SWIG_IsOK(res1)) {
35268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35269 }
35270 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35271 ecode2 = SWIG_AsVal_int(obj1, &val2);
35272 if (!SWIG_IsOK(ecode2)) {
35273 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
35274 }
35275 arg2 = static_cast< int >(val2);
35276 {
35277 PyThreadState* __tstate = wxPyBeginAllowThreads();
35278 (arg1)->RemoveId(arg2);
35279 wxPyEndAllowThreads(__tstate);
35280 if (PyErr_Occurred()) SWIG_fail;
35281 }
35282 resultobj = SWIG_Py_Void();
35283 return resultobj;
35284 fail:
35285 return NULL;
35286 }
35287
35288
35289 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35290 PyObject *resultobj = 0;
35291 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35292 int arg2 ;
35293 int arg3 ;
35294 int arg4 ;
35295 void *argp1 = 0 ;
35296 int res1 = 0 ;
35297 int val2 ;
35298 int ecode2 = 0 ;
35299 int val3 ;
35300 int ecode3 = 0 ;
35301 int val4 ;
35302 int ecode4 = 0 ;
35303 PyObject * obj0 = 0 ;
35304 PyObject * obj1 = 0 ;
35305 PyObject * obj2 = 0 ;
35306 PyObject * obj3 = 0 ;
35307 char * kwnames[] = {
35308 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
35309 };
35310
35311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35313 if (!SWIG_IsOK(res1)) {
35314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35315 }
35316 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35317 ecode2 = SWIG_AsVal_int(obj1, &val2);
35318 if (!SWIG_IsOK(ecode2)) {
35319 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
35320 }
35321 arg2 = static_cast< int >(val2);
35322 ecode3 = SWIG_AsVal_int(obj2, &val3);
35323 if (!SWIG_IsOK(ecode3)) {
35324 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
35325 }
35326 arg3 = static_cast< int >(val3);
35327 ecode4 = SWIG_AsVal_int(obj3, &val4);
35328 if (!SWIG_IsOK(ecode4)) {
35329 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
35330 }
35331 arg4 = static_cast< int >(val4);
35332 {
35333 PyThreadState* __tstate = wxPyBeginAllowThreads();
35334 (arg1)->TranslateId(arg2,arg3,arg4);
35335 wxPyEndAllowThreads(__tstate);
35336 if (PyErr_Occurred()) SWIG_fail;
35337 }
35338 resultobj = SWIG_Py_Void();
35339 return resultobj;
35340 fail:
35341 return NULL;
35342 }
35343
35344
35345 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35346 PyObject *resultobj = 0;
35347 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35348 int arg2 ;
35349 bool arg3 = (bool) true ;
35350 void *argp1 = 0 ;
35351 int res1 = 0 ;
35352 int val2 ;
35353 int ecode2 = 0 ;
35354 bool val3 ;
35355 int ecode3 = 0 ;
35356 PyObject * obj0 = 0 ;
35357 PyObject * obj1 = 0 ;
35358 PyObject * obj2 = 0 ;
35359 char * kwnames[] = {
35360 (char *) "self",(char *) "id",(char *) "greyout", NULL
35361 };
35362
35363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35365 if (!SWIG_IsOK(res1)) {
35366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35367 }
35368 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35369 ecode2 = SWIG_AsVal_int(obj1, &val2);
35370 if (!SWIG_IsOK(ecode2)) {
35371 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35372 }
35373 arg2 = static_cast< int >(val2);
35374 if (obj2) {
35375 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35376 if (!SWIG_IsOK(ecode3)) {
35377 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
35378 }
35379 arg3 = static_cast< bool >(val3);
35380 }
35381 {
35382 PyThreadState* __tstate = wxPyBeginAllowThreads();
35383 (arg1)->SetIdGreyedOut(arg2,arg3);
35384 wxPyEndAllowThreads(__tstate);
35385 if (PyErr_Occurred()) SWIG_fail;
35386 }
35387 resultobj = SWIG_Py_Void();
35388 return resultobj;
35389 fail:
35390 return NULL;
35391 }
35392
35393
35394 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35395 PyObject *resultobj = 0;
35396 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35397 int arg2 ;
35398 bool result;
35399 void *argp1 = 0 ;
35400 int res1 = 0 ;
35401 int val2 ;
35402 int ecode2 = 0 ;
35403 PyObject * obj0 = 0 ;
35404 PyObject * obj1 = 0 ;
35405 char * kwnames[] = {
35406 (char *) "self",(char *) "id", NULL
35407 };
35408
35409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
35410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35411 if (!SWIG_IsOK(res1)) {
35412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35413 }
35414 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35415 ecode2 = SWIG_AsVal_int(obj1, &val2);
35416 if (!SWIG_IsOK(ecode2)) {
35417 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35418 }
35419 arg2 = static_cast< int >(val2);
35420 {
35421 PyThreadState* __tstate = wxPyBeginAllowThreads();
35422 result = (bool)(arg1)->GetIdGreyedOut(arg2);
35423 wxPyEndAllowThreads(__tstate);
35424 if (PyErr_Occurred()) SWIG_fail;
35425 }
35426 {
35427 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35428 }
35429 return resultobj;
35430 fail:
35431 return NULL;
35432 }
35433
35434
35435 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35436 PyObject *resultobj = 0;
35437 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35438 int arg2 ;
35439 int arg3 ;
35440 int arg4 = (int) 1 ;
35441 wxColor const &arg5_defvalue = *wxWHITE ;
35442 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
35443 PyObject *result = 0 ;
35444 void *argp1 = 0 ;
35445 int res1 = 0 ;
35446 int val2 ;
35447 int ecode2 = 0 ;
35448 int val3 ;
35449 int ecode3 = 0 ;
35450 int val4 ;
35451 int ecode4 = 0 ;
35452 void *argp5 = 0 ;
35453 int res5 = 0 ;
35454 PyObject * obj0 = 0 ;
35455 PyObject * obj1 = 0 ;
35456 PyObject * obj2 = 0 ;
35457 PyObject * obj3 = 0 ;
35458 PyObject * obj4 = 0 ;
35459 char * kwnames[] = {
35460 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
35461 };
35462
35463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35465 if (!SWIG_IsOK(res1)) {
35466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35467 }
35468 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35469 ecode2 = SWIG_AsVal_int(obj1, &val2);
35470 if (!SWIG_IsOK(ecode2)) {
35471 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
35472 }
35473 arg2 = static_cast< int >(val2);
35474 ecode3 = SWIG_AsVal_int(obj2, &val3);
35475 if (!SWIG_IsOK(ecode3)) {
35476 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
35477 }
35478 arg3 = static_cast< int >(val3);
35479 if (obj3) {
35480 ecode4 = SWIG_AsVal_int(obj3, &val4);
35481 if (!SWIG_IsOK(ecode4)) {
35482 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
35483 }
35484 arg4 = static_cast< int >(val4);
35485 }
35486 if (obj4) {
35487 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
35488 if (!SWIG_IsOK(res5)) {
35489 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35490 }
35491 if (!argp5) {
35492 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35493 }
35494 arg5 = reinterpret_cast< wxColor * >(argp5);
35495 }
35496 {
35497 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
35498 if (PyErr_Occurred()) SWIG_fail;
35499 }
35500 resultobj = result;
35501 return resultobj;
35502 fail:
35503 return NULL;
35504 }
35505
35506
35507 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35508 PyObject *resultobj = 0;
35509 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35510 int arg2 ;
35511 int arg3 ;
35512 PyObject *result = 0 ;
35513 void *argp1 = 0 ;
35514 int res1 = 0 ;
35515 int val2 ;
35516 int ecode2 = 0 ;
35517 int val3 ;
35518 int ecode3 = 0 ;
35519 PyObject * obj0 = 0 ;
35520 PyObject * obj1 = 0 ;
35521 PyObject * obj2 = 0 ;
35522 char * kwnames[] = {
35523 (char *) "self",(char *) "x",(char *) "y", NULL
35524 };
35525
35526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35528 if (!SWIG_IsOK(res1)) {
35529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35530 }
35531 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35532 ecode2 = SWIG_AsVal_int(obj1, &val2);
35533 if (!SWIG_IsOK(ecode2)) {
35534 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
35535 }
35536 arg2 = static_cast< int >(val2);
35537 ecode3 = SWIG_AsVal_int(obj2, &val3);
35538 if (!SWIG_IsOK(ecode3)) {
35539 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
35540 }
35541 arg3 = static_cast< int >(val3);
35542 {
35543 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
35544 if (PyErr_Occurred()) SWIG_fail;
35545 }
35546 resultobj = result;
35547 return resultobj;
35548 fail:
35549 return NULL;
35550 }
35551
35552
35553 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35554 PyObject *resultobj = 0;
35555 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35556 int arg2 ;
35557 wxDC *arg3 = (wxDC *) 0 ;
35558 void *argp1 = 0 ;
35559 int res1 = 0 ;
35560 int val2 ;
35561 int ecode2 = 0 ;
35562 void *argp3 = 0 ;
35563 int res3 = 0 ;
35564 PyObject * obj0 = 0 ;
35565 PyObject * obj1 = 0 ;
35566 PyObject * obj2 = 0 ;
35567 char * kwnames[] = {
35568 (char *) "self",(char *) "id",(char *) "dc", NULL
35569 };
35570
35571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35573 if (!SWIG_IsOK(res1)) {
35574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35575 }
35576 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35577 ecode2 = SWIG_AsVal_int(obj1, &val2);
35578 if (!SWIG_IsOK(ecode2)) {
35579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
35580 }
35581 arg2 = static_cast< int >(val2);
35582 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
35583 if (!SWIG_IsOK(res3)) {
35584 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
35585 }
35586 arg3 = reinterpret_cast< wxDC * >(argp3);
35587 {
35588 PyThreadState* __tstate = wxPyBeginAllowThreads();
35589 (arg1)->DrawIdToDC(arg2,arg3);
35590 wxPyEndAllowThreads(__tstate);
35591 if (PyErr_Occurred()) SWIG_fail;
35592 }
35593 resultobj = SWIG_Py_Void();
35594 return resultobj;
35595 fail:
35596 return NULL;
35597 }
35598
35599
35600 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35601 PyObject *resultobj = 0;
35602 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35603 int arg2 ;
35604 wxRect *arg3 = 0 ;
35605 void *argp1 = 0 ;
35606 int res1 = 0 ;
35607 int val2 ;
35608 int ecode2 = 0 ;
35609 wxRect temp3 ;
35610 PyObject * obj0 = 0 ;
35611 PyObject * obj1 = 0 ;
35612 PyObject * obj2 = 0 ;
35613 char * kwnames[] = {
35614 (char *) "self",(char *) "id",(char *) "rect", NULL
35615 };
35616
35617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35619 if (!SWIG_IsOK(res1)) {
35620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35621 }
35622 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35623 ecode2 = SWIG_AsVal_int(obj1, &val2);
35624 if (!SWIG_IsOK(ecode2)) {
35625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
35626 }
35627 arg2 = static_cast< int >(val2);
35628 {
35629 arg3 = &temp3;
35630 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35631 }
35632 {
35633 PyThreadState* __tstate = wxPyBeginAllowThreads();
35634 (arg1)->SetIdBounds(arg2,*arg3);
35635 wxPyEndAllowThreads(__tstate);
35636 if (PyErr_Occurred()) SWIG_fail;
35637 }
35638 resultobj = SWIG_Py_Void();
35639 return resultobj;
35640 fail:
35641 return NULL;
35642 }
35643
35644
35645 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35646 PyObject *resultobj = 0;
35647 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35648 int arg2 ;
35649 wxRect result;
35650 void *argp1 = 0 ;
35651 int res1 = 0 ;
35652 int val2 ;
35653 int ecode2 = 0 ;
35654 PyObject * obj0 = 0 ;
35655 PyObject * obj1 = 0 ;
35656 char * kwnames[] = {
35657 (char *) "self",(char *) "id", NULL
35658 };
35659
35660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
35661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35662 if (!SWIG_IsOK(res1)) {
35663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35664 }
35665 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35666 ecode2 = SWIG_AsVal_int(obj1, &val2);
35667 if (!SWIG_IsOK(ecode2)) {
35668 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
35669 }
35670 arg2 = static_cast< int >(val2);
35671 {
35672 PyThreadState* __tstate = wxPyBeginAllowThreads();
35673 result = wxPseudoDC_GetIdBounds(arg1,arg2);
35674 wxPyEndAllowThreads(__tstate);
35675 if (PyErr_Occurred()) SWIG_fail;
35676 }
35677 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
35678 return resultobj;
35679 fail:
35680 return NULL;
35681 }
35682
35683
35684 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35685 PyObject *resultobj = 0;
35686 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35687 wxDC *arg2 = (wxDC *) 0 ;
35688 wxRect *arg3 = 0 ;
35689 void *argp1 = 0 ;
35690 int res1 = 0 ;
35691 void *argp2 = 0 ;
35692 int res2 = 0 ;
35693 wxRect temp3 ;
35694 PyObject * obj0 = 0 ;
35695 PyObject * obj1 = 0 ;
35696 PyObject * obj2 = 0 ;
35697 char * kwnames[] = {
35698 (char *) "self",(char *) "dc",(char *) "rect", NULL
35699 };
35700
35701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35703 if (!SWIG_IsOK(res1)) {
35704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35705 }
35706 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35707 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35708 if (!SWIG_IsOK(res2)) {
35709 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
35710 }
35711 arg2 = reinterpret_cast< wxDC * >(argp2);
35712 {
35713 arg3 = &temp3;
35714 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35715 }
35716 {
35717 PyThreadState* __tstate = wxPyBeginAllowThreads();
35718 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
35719 wxPyEndAllowThreads(__tstate);
35720 if (PyErr_Occurred()) SWIG_fail;
35721 }
35722 resultobj = SWIG_Py_Void();
35723 return resultobj;
35724 fail:
35725 return NULL;
35726 }
35727
35728
35729 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35730 PyObject *resultobj = 0;
35731 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35732 wxDC *arg2 = (wxDC *) 0 ;
35733 wxRegion *arg3 = 0 ;
35734 void *argp1 = 0 ;
35735 int res1 = 0 ;
35736 void *argp2 = 0 ;
35737 int res2 = 0 ;
35738 void *argp3 = 0 ;
35739 int res3 = 0 ;
35740 PyObject * obj0 = 0 ;
35741 PyObject * obj1 = 0 ;
35742 PyObject * obj2 = 0 ;
35743 char * kwnames[] = {
35744 (char *) "self",(char *) "dc",(char *) "region", NULL
35745 };
35746
35747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35749 if (!SWIG_IsOK(res1)) {
35750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35751 }
35752 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35753 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35754 if (!SWIG_IsOK(res2)) {
35755 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
35756 }
35757 arg2 = reinterpret_cast< wxDC * >(argp2);
35758 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
35759 if (!SWIG_IsOK(res3)) {
35760 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35761 }
35762 if (!argp3) {
35763 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35764 }
35765 arg3 = reinterpret_cast< wxRegion * >(argp3);
35766 {
35767 PyThreadState* __tstate = wxPyBeginAllowThreads();
35768 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
35769 wxPyEndAllowThreads(__tstate);
35770 if (PyErr_Occurred()) SWIG_fail;
35771 }
35772 resultobj = SWIG_Py_Void();
35773 return resultobj;
35774 fail:
35775 return NULL;
35776 }
35777
35778
35779 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35780 PyObject *resultobj = 0;
35781 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35782 wxDC *arg2 = (wxDC *) 0 ;
35783 void *argp1 = 0 ;
35784 int res1 = 0 ;
35785 void *argp2 = 0 ;
35786 int res2 = 0 ;
35787 PyObject * obj0 = 0 ;
35788 PyObject * obj1 = 0 ;
35789 char * kwnames[] = {
35790 (char *) "self",(char *) "dc", NULL
35791 };
35792
35793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
35794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35795 if (!SWIG_IsOK(res1)) {
35796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35797 }
35798 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35799 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35800 if (!SWIG_IsOK(res2)) {
35801 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
35802 }
35803 arg2 = reinterpret_cast< wxDC * >(argp2);
35804 {
35805 PyThreadState* __tstate = wxPyBeginAllowThreads();
35806 (arg1)->DrawToDC(arg2);
35807 wxPyEndAllowThreads(__tstate);
35808 if (PyErr_Occurred()) SWIG_fail;
35809 }
35810 resultobj = SWIG_Py_Void();
35811 return resultobj;
35812 fail:
35813 return NULL;
35814 }
35815
35816
35817 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35818 PyObject *resultobj = 0;
35819 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35820 int arg2 ;
35821 int arg3 ;
35822 wxColour *arg4 = 0 ;
35823 int arg5 = (int) wxFLOOD_SURFACE ;
35824 void *argp1 = 0 ;
35825 int res1 = 0 ;
35826 int val2 ;
35827 int ecode2 = 0 ;
35828 int val3 ;
35829 int ecode3 = 0 ;
35830 wxColour temp4 ;
35831 int val5 ;
35832 int ecode5 = 0 ;
35833 PyObject * obj0 = 0 ;
35834 PyObject * obj1 = 0 ;
35835 PyObject * obj2 = 0 ;
35836 PyObject * obj3 = 0 ;
35837 PyObject * obj4 = 0 ;
35838 char * kwnames[] = {
35839 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
35840 };
35841
35842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35844 if (!SWIG_IsOK(res1)) {
35845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35846 }
35847 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35848 ecode2 = SWIG_AsVal_int(obj1, &val2);
35849 if (!SWIG_IsOK(ecode2)) {
35850 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
35851 }
35852 arg2 = static_cast< int >(val2);
35853 ecode3 = SWIG_AsVal_int(obj2, &val3);
35854 if (!SWIG_IsOK(ecode3)) {
35855 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
35856 }
35857 arg3 = static_cast< int >(val3);
35858 {
35859 arg4 = &temp4;
35860 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
35861 }
35862 if (obj4) {
35863 ecode5 = SWIG_AsVal_int(obj4, &val5);
35864 if (!SWIG_IsOK(ecode5)) {
35865 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
35866 }
35867 arg5 = static_cast< int >(val5);
35868 }
35869 {
35870 PyThreadState* __tstate = wxPyBeginAllowThreads();
35871 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
35872 wxPyEndAllowThreads(__tstate);
35873 if (PyErr_Occurred()) SWIG_fail;
35874 }
35875 resultobj = SWIG_Py_Void();
35876 return resultobj;
35877 fail:
35878 return NULL;
35879 }
35880
35881
35882 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35883 PyObject *resultobj = 0;
35884 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35885 wxPoint *arg2 = 0 ;
35886 wxColour *arg3 = 0 ;
35887 int arg4 = (int) wxFLOOD_SURFACE ;
35888 void *argp1 = 0 ;
35889 int res1 = 0 ;
35890 wxPoint temp2 ;
35891 wxColour temp3 ;
35892 int val4 ;
35893 int ecode4 = 0 ;
35894 PyObject * obj0 = 0 ;
35895 PyObject * obj1 = 0 ;
35896 PyObject * obj2 = 0 ;
35897 PyObject * obj3 = 0 ;
35898 char * kwnames[] = {
35899 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
35900 };
35901
35902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35904 if (!SWIG_IsOK(res1)) {
35905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35906 }
35907 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35908 {
35909 arg2 = &temp2;
35910 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35911 }
35912 {
35913 arg3 = &temp3;
35914 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35915 }
35916 if (obj3) {
35917 ecode4 = SWIG_AsVal_int(obj3, &val4);
35918 if (!SWIG_IsOK(ecode4)) {
35919 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
35920 }
35921 arg4 = static_cast< int >(val4);
35922 }
35923 {
35924 PyThreadState* __tstate = wxPyBeginAllowThreads();
35925 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
35926 wxPyEndAllowThreads(__tstate);
35927 if (PyErr_Occurred()) SWIG_fail;
35928 }
35929 resultobj = SWIG_Py_Void();
35930 return resultobj;
35931 fail:
35932 return NULL;
35933 }
35934
35935
35936 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35937 PyObject *resultobj = 0;
35938 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35939 int arg2 ;
35940 int arg3 ;
35941 int arg4 ;
35942 int arg5 ;
35943 void *argp1 = 0 ;
35944 int res1 = 0 ;
35945 int val2 ;
35946 int ecode2 = 0 ;
35947 int val3 ;
35948 int ecode3 = 0 ;
35949 int val4 ;
35950 int ecode4 = 0 ;
35951 int val5 ;
35952 int ecode5 = 0 ;
35953 PyObject * obj0 = 0 ;
35954 PyObject * obj1 = 0 ;
35955 PyObject * obj2 = 0 ;
35956 PyObject * obj3 = 0 ;
35957 PyObject * obj4 = 0 ;
35958 char * kwnames[] = {
35959 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
35960 };
35961
35962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35964 if (!SWIG_IsOK(res1)) {
35965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35966 }
35967 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35968 ecode2 = SWIG_AsVal_int(obj1, &val2);
35969 if (!SWIG_IsOK(ecode2)) {
35970 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
35971 }
35972 arg2 = static_cast< int >(val2);
35973 ecode3 = SWIG_AsVal_int(obj2, &val3);
35974 if (!SWIG_IsOK(ecode3)) {
35975 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
35976 }
35977 arg3 = static_cast< int >(val3);
35978 ecode4 = SWIG_AsVal_int(obj3, &val4);
35979 if (!SWIG_IsOK(ecode4)) {
35980 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
35981 }
35982 arg4 = static_cast< int >(val4);
35983 ecode5 = SWIG_AsVal_int(obj4, &val5);
35984 if (!SWIG_IsOK(ecode5)) {
35985 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
35986 }
35987 arg5 = static_cast< int >(val5);
35988 {
35989 PyThreadState* __tstate = wxPyBeginAllowThreads();
35990 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
35991 wxPyEndAllowThreads(__tstate);
35992 if (PyErr_Occurred()) SWIG_fail;
35993 }
35994 resultobj = SWIG_Py_Void();
35995 return resultobj;
35996 fail:
35997 return NULL;
35998 }
35999
36000
36001 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36002 PyObject *resultobj = 0;
36003 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36004 wxPoint *arg2 = 0 ;
36005 wxPoint *arg3 = 0 ;
36006 void *argp1 = 0 ;
36007 int res1 = 0 ;
36008 wxPoint temp2 ;
36009 wxPoint temp3 ;
36010 PyObject * obj0 = 0 ;
36011 PyObject * obj1 = 0 ;
36012 PyObject * obj2 = 0 ;
36013 char * kwnames[] = {
36014 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
36015 };
36016
36017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36019 if (!SWIG_IsOK(res1)) {
36020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36021 }
36022 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36023 {
36024 arg2 = &temp2;
36025 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36026 }
36027 {
36028 arg3 = &temp3;
36029 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36030 }
36031 {
36032 PyThreadState* __tstate = wxPyBeginAllowThreads();
36033 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
36034 wxPyEndAllowThreads(__tstate);
36035 if (PyErr_Occurred()) SWIG_fail;
36036 }
36037 resultobj = SWIG_Py_Void();
36038 return resultobj;
36039 fail:
36040 return NULL;
36041 }
36042
36043
36044 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36045 PyObject *resultobj = 0;
36046 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36047 int arg2 ;
36048 int arg3 ;
36049 void *argp1 = 0 ;
36050 int res1 = 0 ;
36051 int val2 ;
36052 int ecode2 = 0 ;
36053 int val3 ;
36054 int ecode3 = 0 ;
36055 PyObject * obj0 = 0 ;
36056 PyObject * obj1 = 0 ;
36057 PyObject * obj2 = 0 ;
36058 char * kwnames[] = {
36059 (char *) "self",(char *) "x",(char *) "y", NULL
36060 };
36061
36062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36064 if (!SWIG_IsOK(res1)) {
36065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36066 }
36067 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36068 ecode2 = SWIG_AsVal_int(obj1, &val2);
36069 if (!SWIG_IsOK(ecode2)) {
36070 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
36071 }
36072 arg2 = static_cast< int >(val2);
36073 ecode3 = SWIG_AsVal_int(obj2, &val3);
36074 if (!SWIG_IsOK(ecode3)) {
36075 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
36076 }
36077 arg3 = static_cast< int >(val3);
36078 {
36079 PyThreadState* __tstate = wxPyBeginAllowThreads();
36080 (arg1)->CrossHair(arg2,arg3);
36081 wxPyEndAllowThreads(__tstate);
36082 if (PyErr_Occurred()) SWIG_fail;
36083 }
36084 resultobj = SWIG_Py_Void();
36085 return resultobj;
36086 fail:
36087 return NULL;
36088 }
36089
36090
36091 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36092 PyObject *resultobj = 0;
36093 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36094 wxPoint *arg2 = 0 ;
36095 void *argp1 = 0 ;
36096 int res1 = 0 ;
36097 wxPoint temp2 ;
36098 PyObject * obj0 = 0 ;
36099 PyObject * obj1 = 0 ;
36100 char * kwnames[] = {
36101 (char *) "self",(char *) "pt", NULL
36102 };
36103
36104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36106 if (!SWIG_IsOK(res1)) {
36107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36108 }
36109 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36110 {
36111 arg2 = &temp2;
36112 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36113 }
36114 {
36115 PyThreadState* __tstate = wxPyBeginAllowThreads();
36116 (arg1)->CrossHair((wxPoint const &)*arg2);
36117 wxPyEndAllowThreads(__tstate);
36118 if (PyErr_Occurred()) SWIG_fail;
36119 }
36120 resultobj = SWIG_Py_Void();
36121 return resultobj;
36122 fail:
36123 return NULL;
36124 }
36125
36126
36127 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36128 PyObject *resultobj = 0;
36129 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36130 int arg2 ;
36131 int arg3 ;
36132 int arg4 ;
36133 int arg5 ;
36134 int arg6 ;
36135 int arg7 ;
36136 void *argp1 = 0 ;
36137 int res1 = 0 ;
36138 int val2 ;
36139 int ecode2 = 0 ;
36140 int val3 ;
36141 int ecode3 = 0 ;
36142 int val4 ;
36143 int ecode4 = 0 ;
36144 int val5 ;
36145 int ecode5 = 0 ;
36146 int val6 ;
36147 int ecode6 = 0 ;
36148 int val7 ;
36149 int ecode7 = 0 ;
36150 PyObject * obj0 = 0 ;
36151 PyObject * obj1 = 0 ;
36152 PyObject * obj2 = 0 ;
36153 PyObject * obj3 = 0 ;
36154 PyObject * obj4 = 0 ;
36155 PyObject * obj5 = 0 ;
36156 PyObject * obj6 = 0 ;
36157 char * kwnames[] = {
36158 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
36159 };
36160
36161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36163 if (!SWIG_IsOK(res1)) {
36164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36165 }
36166 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36167 ecode2 = SWIG_AsVal_int(obj1, &val2);
36168 if (!SWIG_IsOK(ecode2)) {
36169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
36170 }
36171 arg2 = static_cast< int >(val2);
36172 ecode3 = SWIG_AsVal_int(obj2, &val3);
36173 if (!SWIG_IsOK(ecode3)) {
36174 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
36175 }
36176 arg3 = static_cast< int >(val3);
36177 ecode4 = SWIG_AsVal_int(obj3, &val4);
36178 if (!SWIG_IsOK(ecode4)) {
36179 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
36180 }
36181 arg4 = static_cast< int >(val4);
36182 ecode5 = SWIG_AsVal_int(obj4, &val5);
36183 if (!SWIG_IsOK(ecode5)) {
36184 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
36185 }
36186 arg5 = static_cast< int >(val5);
36187 ecode6 = SWIG_AsVal_int(obj5, &val6);
36188 if (!SWIG_IsOK(ecode6)) {
36189 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
36190 }
36191 arg6 = static_cast< int >(val6);
36192 ecode7 = SWIG_AsVal_int(obj6, &val7);
36193 if (!SWIG_IsOK(ecode7)) {
36194 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
36195 }
36196 arg7 = static_cast< int >(val7);
36197 {
36198 PyThreadState* __tstate = wxPyBeginAllowThreads();
36199 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
36200 wxPyEndAllowThreads(__tstate);
36201 if (PyErr_Occurred()) SWIG_fail;
36202 }
36203 resultobj = SWIG_Py_Void();
36204 return resultobj;
36205 fail:
36206 return NULL;
36207 }
36208
36209
36210 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36211 PyObject *resultobj = 0;
36212 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36213 wxPoint *arg2 = 0 ;
36214 wxPoint *arg3 = 0 ;
36215 wxPoint *arg4 = 0 ;
36216 void *argp1 = 0 ;
36217 int res1 = 0 ;
36218 wxPoint temp2 ;
36219 wxPoint temp3 ;
36220 wxPoint temp4 ;
36221 PyObject * obj0 = 0 ;
36222 PyObject * obj1 = 0 ;
36223 PyObject * obj2 = 0 ;
36224 PyObject * obj3 = 0 ;
36225 char * kwnames[] = {
36226 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
36227 };
36228
36229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36231 if (!SWIG_IsOK(res1)) {
36232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36233 }
36234 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36235 {
36236 arg2 = &temp2;
36237 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36238 }
36239 {
36240 arg3 = &temp3;
36241 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36242 }
36243 {
36244 arg4 = &temp4;
36245 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36246 }
36247 {
36248 PyThreadState* __tstate = wxPyBeginAllowThreads();
36249 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
36250 wxPyEndAllowThreads(__tstate);
36251 if (PyErr_Occurred()) SWIG_fail;
36252 }
36253 resultobj = SWIG_Py_Void();
36254 return resultobj;
36255 fail:
36256 return NULL;
36257 }
36258
36259
36260 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36261 PyObject *resultobj = 0;
36262 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36263 int arg2 ;
36264 int arg3 ;
36265 int arg4 ;
36266 int arg5 ;
36267 void *argp1 = 0 ;
36268 int res1 = 0 ;
36269 int val2 ;
36270 int ecode2 = 0 ;
36271 int val3 ;
36272 int ecode3 = 0 ;
36273 int val4 ;
36274 int ecode4 = 0 ;
36275 int val5 ;
36276 int ecode5 = 0 ;
36277 PyObject * obj0 = 0 ;
36278 PyObject * obj1 = 0 ;
36279 PyObject * obj2 = 0 ;
36280 PyObject * obj3 = 0 ;
36281 PyObject * obj4 = 0 ;
36282 char * kwnames[] = {
36283 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36284 };
36285
36286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36288 if (!SWIG_IsOK(res1)) {
36289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36290 }
36291 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36292 ecode2 = SWIG_AsVal_int(obj1, &val2);
36293 if (!SWIG_IsOK(ecode2)) {
36294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
36295 }
36296 arg2 = static_cast< int >(val2);
36297 ecode3 = SWIG_AsVal_int(obj2, &val3);
36298 if (!SWIG_IsOK(ecode3)) {
36299 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
36300 }
36301 arg3 = static_cast< int >(val3);
36302 ecode4 = SWIG_AsVal_int(obj3, &val4);
36303 if (!SWIG_IsOK(ecode4)) {
36304 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
36305 }
36306 arg4 = static_cast< int >(val4);
36307 ecode5 = SWIG_AsVal_int(obj4, &val5);
36308 if (!SWIG_IsOK(ecode5)) {
36309 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
36310 }
36311 arg5 = static_cast< int >(val5);
36312 {
36313 PyThreadState* __tstate = wxPyBeginAllowThreads();
36314 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
36315 wxPyEndAllowThreads(__tstate);
36316 if (PyErr_Occurred()) SWIG_fail;
36317 }
36318 resultobj = SWIG_Py_Void();
36319 return resultobj;
36320 fail:
36321 return NULL;
36322 }
36323
36324
36325 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36326 PyObject *resultobj = 0;
36327 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36328 wxRect *arg2 = 0 ;
36329 void *argp1 = 0 ;
36330 int res1 = 0 ;
36331 wxRect temp2 ;
36332 PyObject * obj0 = 0 ;
36333 PyObject * obj1 = 0 ;
36334 char * kwnames[] = {
36335 (char *) "self",(char *) "rect", NULL
36336 };
36337
36338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
36339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36340 if (!SWIG_IsOK(res1)) {
36341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36342 }
36343 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36344 {
36345 arg2 = &temp2;
36346 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36347 }
36348 {
36349 PyThreadState* __tstate = wxPyBeginAllowThreads();
36350 (arg1)->DrawCheckMark((wxRect const &)*arg2);
36351 wxPyEndAllowThreads(__tstate);
36352 if (PyErr_Occurred()) SWIG_fail;
36353 }
36354 resultobj = SWIG_Py_Void();
36355 return resultobj;
36356 fail:
36357 return NULL;
36358 }
36359
36360
36361 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36362 PyObject *resultobj = 0;
36363 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36364 int arg2 ;
36365 int arg3 ;
36366 int arg4 ;
36367 int arg5 ;
36368 double arg6 ;
36369 double arg7 ;
36370 void *argp1 = 0 ;
36371 int res1 = 0 ;
36372 int val2 ;
36373 int ecode2 = 0 ;
36374 int val3 ;
36375 int ecode3 = 0 ;
36376 int val4 ;
36377 int ecode4 = 0 ;
36378 int val5 ;
36379 int ecode5 = 0 ;
36380 double val6 ;
36381 int ecode6 = 0 ;
36382 double val7 ;
36383 int ecode7 = 0 ;
36384 PyObject * obj0 = 0 ;
36385 PyObject * obj1 = 0 ;
36386 PyObject * obj2 = 0 ;
36387 PyObject * obj3 = 0 ;
36388 PyObject * obj4 = 0 ;
36389 PyObject * obj5 = 0 ;
36390 PyObject * obj6 = 0 ;
36391 char * kwnames[] = {
36392 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
36393 };
36394
36395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36397 if (!SWIG_IsOK(res1)) {
36398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36399 }
36400 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36401 ecode2 = SWIG_AsVal_int(obj1, &val2);
36402 if (!SWIG_IsOK(ecode2)) {
36403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
36404 }
36405 arg2 = static_cast< int >(val2);
36406 ecode3 = SWIG_AsVal_int(obj2, &val3);
36407 if (!SWIG_IsOK(ecode3)) {
36408 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
36409 }
36410 arg3 = static_cast< int >(val3);
36411 ecode4 = SWIG_AsVal_int(obj3, &val4);
36412 if (!SWIG_IsOK(ecode4)) {
36413 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
36414 }
36415 arg4 = static_cast< int >(val4);
36416 ecode5 = SWIG_AsVal_int(obj4, &val5);
36417 if (!SWIG_IsOK(ecode5)) {
36418 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
36419 }
36420 arg5 = static_cast< int >(val5);
36421 ecode6 = SWIG_AsVal_double(obj5, &val6);
36422 if (!SWIG_IsOK(ecode6)) {
36423 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
36424 }
36425 arg6 = static_cast< double >(val6);
36426 ecode7 = SWIG_AsVal_double(obj6, &val7);
36427 if (!SWIG_IsOK(ecode7)) {
36428 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
36429 }
36430 arg7 = static_cast< double >(val7);
36431 {
36432 PyThreadState* __tstate = wxPyBeginAllowThreads();
36433 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
36434 wxPyEndAllowThreads(__tstate);
36435 if (PyErr_Occurred()) SWIG_fail;
36436 }
36437 resultobj = SWIG_Py_Void();
36438 return resultobj;
36439 fail:
36440 return NULL;
36441 }
36442
36443
36444 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36445 PyObject *resultobj = 0;
36446 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36447 wxPoint *arg2 = 0 ;
36448 wxSize *arg3 = 0 ;
36449 double arg4 ;
36450 double arg5 ;
36451 void *argp1 = 0 ;
36452 int res1 = 0 ;
36453 wxPoint temp2 ;
36454 wxSize temp3 ;
36455 double val4 ;
36456 int ecode4 = 0 ;
36457 double val5 ;
36458 int ecode5 = 0 ;
36459 PyObject * obj0 = 0 ;
36460 PyObject * obj1 = 0 ;
36461 PyObject * obj2 = 0 ;
36462 PyObject * obj3 = 0 ;
36463 PyObject * obj4 = 0 ;
36464 char * kwnames[] = {
36465 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
36466 };
36467
36468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36470 if (!SWIG_IsOK(res1)) {
36471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36472 }
36473 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36474 {
36475 arg2 = &temp2;
36476 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36477 }
36478 {
36479 arg3 = &temp3;
36480 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36481 }
36482 ecode4 = SWIG_AsVal_double(obj3, &val4);
36483 if (!SWIG_IsOK(ecode4)) {
36484 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
36485 }
36486 arg4 = static_cast< double >(val4);
36487 ecode5 = SWIG_AsVal_double(obj4, &val5);
36488 if (!SWIG_IsOK(ecode5)) {
36489 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
36490 }
36491 arg5 = static_cast< double >(val5);
36492 {
36493 PyThreadState* __tstate = wxPyBeginAllowThreads();
36494 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
36495 wxPyEndAllowThreads(__tstate);
36496 if (PyErr_Occurred()) SWIG_fail;
36497 }
36498 resultobj = SWIG_Py_Void();
36499 return resultobj;
36500 fail:
36501 return NULL;
36502 }
36503
36504
36505 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36506 PyObject *resultobj = 0;
36507 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36508 int arg2 ;
36509 int arg3 ;
36510 void *argp1 = 0 ;
36511 int res1 = 0 ;
36512 int val2 ;
36513 int ecode2 = 0 ;
36514 int val3 ;
36515 int ecode3 = 0 ;
36516 PyObject * obj0 = 0 ;
36517 PyObject * obj1 = 0 ;
36518 PyObject * obj2 = 0 ;
36519 char * kwnames[] = {
36520 (char *) "self",(char *) "x",(char *) "y", NULL
36521 };
36522
36523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36525 if (!SWIG_IsOK(res1)) {
36526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36527 }
36528 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36529 ecode2 = SWIG_AsVal_int(obj1, &val2);
36530 if (!SWIG_IsOK(ecode2)) {
36531 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
36532 }
36533 arg2 = static_cast< int >(val2);
36534 ecode3 = SWIG_AsVal_int(obj2, &val3);
36535 if (!SWIG_IsOK(ecode3)) {
36536 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
36537 }
36538 arg3 = static_cast< int >(val3);
36539 {
36540 PyThreadState* __tstate = wxPyBeginAllowThreads();
36541 (arg1)->DrawPoint(arg2,arg3);
36542 wxPyEndAllowThreads(__tstate);
36543 if (PyErr_Occurred()) SWIG_fail;
36544 }
36545 resultobj = SWIG_Py_Void();
36546 return resultobj;
36547 fail:
36548 return NULL;
36549 }
36550
36551
36552 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36553 PyObject *resultobj = 0;
36554 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36555 wxPoint *arg2 = 0 ;
36556 void *argp1 = 0 ;
36557 int res1 = 0 ;
36558 wxPoint temp2 ;
36559 PyObject * obj0 = 0 ;
36560 PyObject * obj1 = 0 ;
36561 char * kwnames[] = {
36562 (char *) "self",(char *) "pt", NULL
36563 };
36564
36565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36567 if (!SWIG_IsOK(res1)) {
36568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36569 }
36570 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36571 {
36572 arg2 = &temp2;
36573 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36574 }
36575 {
36576 PyThreadState* __tstate = wxPyBeginAllowThreads();
36577 (arg1)->DrawPoint((wxPoint const &)*arg2);
36578 wxPyEndAllowThreads(__tstate);
36579 if (PyErr_Occurred()) SWIG_fail;
36580 }
36581 resultobj = SWIG_Py_Void();
36582 return resultobj;
36583 fail:
36584 return NULL;
36585 }
36586
36587
36588 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36589 PyObject *resultobj = 0;
36590 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36591 int arg2 ;
36592 int arg3 ;
36593 int arg4 ;
36594 int arg5 ;
36595 void *argp1 = 0 ;
36596 int res1 = 0 ;
36597 int val2 ;
36598 int ecode2 = 0 ;
36599 int val3 ;
36600 int ecode3 = 0 ;
36601 int val4 ;
36602 int ecode4 = 0 ;
36603 int val5 ;
36604 int ecode5 = 0 ;
36605 PyObject * obj0 = 0 ;
36606 PyObject * obj1 = 0 ;
36607 PyObject * obj2 = 0 ;
36608 PyObject * obj3 = 0 ;
36609 PyObject * obj4 = 0 ;
36610 char * kwnames[] = {
36611 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36612 };
36613
36614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36616 if (!SWIG_IsOK(res1)) {
36617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36618 }
36619 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36620 ecode2 = SWIG_AsVal_int(obj1, &val2);
36621 if (!SWIG_IsOK(ecode2)) {
36622 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
36623 }
36624 arg2 = static_cast< int >(val2);
36625 ecode3 = SWIG_AsVal_int(obj2, &val3);
36626 if (!SWIG_IsOK(ecode3)) {
36627 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
36628 }
36629 arg3 = static_cast< int >(val3);
36630 ecode4 = SWIG_AsVal_int(obj3, &val4);
36631 if (!SWIG_IsOK(ecode4)) {
36632 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
36633 }
36634 arg4 = static_cast< int >(val4);
36635 ecode5 = SWIG_AsVal_int(obj4, &val5);
36636 if (!SWIG_IsOK(ecode5)) {
36637 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
36638 }
36639 arg5 = static_cast< int >(val5);
36640 {
36641 PyThreadState* __tstate = wxPyBeginAllowThreads();
36642 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
36643 wxPyEndAllowThreads(__tstate);
36644 if (PyErr_Occurred()) SWIG_fail;
36645 }
36646 resultobj = SWIG_Py_Void();
36647 return resultobj;
36648 fail:
36649 return NULL;
36650 }
36651
36652
36653 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36654 PyObject *resultobj = 0;
36655 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36656 wxRect *arg2 = 0 ;
36657 void *argp1 = 0 ;
36658 int res1 = 0 ;
36659 wxRect temp2 ;
36660 PyObject * obj0 = 0 ;
36661 PyObject * obj1 = 0 ;
36662 char * kwnames[] = {
36663 (char *) "self",(char *) "rect", NULL
36664 };
36665
36666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
36667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36668 if (!SWIG_IsOK(res1)) {
36669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36670 }
36671 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36672 {
36673 arg2 = &temp2;
36674 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36675 }
36676 {
36677 PyThreadState* __tstate = wxPyBeginAllowThreads();
36678 (arg1)->DrawRectangle((wxRect const &)*arg2);
36679 wxPyEndAllowThreads(__tstate);
36680 if (PyErr_Occurred()) SWIG_fail;
36681 }
36682 resultobj = SWIG_Py_Void();
36683 return resultobj;
36684 fail:
36685 return NULL;
36686 }
36687
36688
36689 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36690 PyObject *resultobj = 0;
36691 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36692 wxPoint *arg2 = 0 ;
36693 wxSize *arg3 = 0 ;
36694 void *argp1 = 0 ;
36695 int res1 = 0 ;
36696 wxPoint temp2 ;
36697 wxSize temp3 ;
36698 PyObject * obj0 = 0 ;
36699 PyObject * obj1 = 0 ;
36700 PyObject * obj2 = 0 ;
36701 char * kwnames[] = {
36702 (char *) "self",(char *) "pt",(char *) "sz", NULL
36703 };
36704
36705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36707 if (!SWIG_IsOK(res1)) {
36708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36709 }
36710 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36711 {
36712 arg2 = &temp2;
36713 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36714 }
36715 {
36716 arg3 = &temp3;
36717 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36718 }
36719 {
36720 PyThreadState* __tstate = wxPyBeginAllowThreads();
36721 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
36722 wxPyEndAllowThreads(__tstate);
36723 if (PyErr_Occurred()) SWIG_fail;
36724 }
36725 resultobj = SWIG_Py_Void();
36726 return resultobj;
36727 fail:
36728 return NULL;
36729 }
36730
36731
36732 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36733 PyObject *resultobj = 0;
36734 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36735 int arg2 ;
36736 int arg3 ;
36737 int arg4 ;
36738 int arg5 ;
36739 double arg6 ;
36740 void *argp1 = 0 ;
36741 int res1 = 0 ;
36742 int val2 ;
36743 int ecode2 = 0 ;
36744 int val3 ;
36745 int ecode3 = 0 ;
36746 int val4 ;
36747 int ecode4 = 0 ;
36748 int val5 ;
36749 int ecode5 = 0 ;
36750 double val6 ;
36751 int ecode6 = 0 ;
36752 PyObject * obj0 = 0 ;
36753 PyObject * obj1 = 0 ;
36754 PyObject * obj2 = 0 ;
36755 PyObject * obj3 = 0 ;
36756 PyObject * obj4 = 0 ;
36757 PyObject * obj5 = 0 ;
36758 char * kwnames[] = {
36759 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
36760 };
36761
36762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36764 if (!SWIG_IsOK(res1)) {
36765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36766 }
36767 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36768 ecode2 = SWIG_AsVal_int(obj1, &val2);
36769 if (!SWIG_IsOK(ecode2)) {
36770 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
36771 }
36772 arg2 = static_cast< int >(val2);
36773 ecode3 = SWIG_AsVal_int(obj2, &val3);
36774 if (!SWIG_IsOK(ecode3)) {
36775 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
36776 }
36777 arg3 = static_cast< int >(val3);
36778 ecode4 = SWIG_AsVal_int(obj3, &val4);
36779 if (!SWIG_IsOK(ecode4)) {
36780 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
36781 }
36782 arg4 = static_cast< int >(val4);
36783 ecode5 = SWIG_AsVal_int(obj4, &val5);
36784 if (!SWIG_IsOK(ecode5)) {
36785 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
36786 }
36787 arg5 = static_cast< int >(val5);
36788 ecode6 = SWIG_AsVal_double(obj5, &val6);
36789 if (!SWIG_IsOK(ecode6)) {
36790 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
36791 }
36792 arg6 = static_cast< double >(val6);
36793 {
36794 PyThreadState* __tstate = wxPyBeginAllowThreads();
36795 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
36796 wxPyEndAllowThreads(__tstate);
36797 if (PyErr_Occurred()) SWIG_fail;
36798 }
36799 resultobj = SWIG_Py_Void();
36800 return resultobj;
36801 fail:
36802 return NULL;
36803 }
36804
36805
36806 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36807 PyObject *resultobj = 0;
36808 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36809 wxRect *arg2 = 0 ;
36810 double arg3 ;
36811 void *argp1 = 0 ;
36812 int res1 = 0 ;
36813 wxRect temp2 ;
36814 double val3 ;
36815 int ecode3 = 0 ;
36816 PyObject * obj0 = 0 ;
36817 PyObject * obj1 = 0 ;
36818 PyObject * obj2 = 0 ;
36819 char * kwnames[] = {
36820 (char *) "self",(char *) "r",(char *) "radius", NULL
36821 };
36822
36823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36825 if (!SWIG_IsOK(res1)) {
36826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36827 }
36828 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36829 {
36830 arg2 = &temp2;
36831 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36832 }
36833 ecode3 = SWIG_AsVal_double(obj2, &val3);
36834 if (!SWIG_IsOK(ecode3)) {
36835 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
36836 }
36837 arg3 = static_cast< double >(val3);
36838 {
36839 PyThreadState* __tstate = wxPyBeginAllowThreads();
36840 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
36841 wxPyEndAllowThreads(__tstate);
36842 if (PyErr_Occurred()) SWIG_fail;
36843 }
36844 resultobj = SWIG_Py_Void();
36845 return resultobj;
36846 fail:
36847 return NULL;
36848 }
36849
36850
36851 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36852 PyObject *resultobj = 0;
36853 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36854 wxPoint *arg2 = 0 ;
36855 wxSize *arg3 = 0 ;
36856 double arg4 ;
36857 void *argp1 = 0 ;
36858 int res1 = 0 ;
36859 wxPoint temp2 ;
36860 wxSize temp3 ;
36861 double val4 ;
36862 int ecode4 = 0 ;
36863 PyObject * obj0 = 0 ;
36864 PyObject * obj1 = 0 ;
36865 PyObject * obj2 = 0 ;
36866 PyObject * obj3 = 0 ;
36867 char * kwnames[] = {
36868 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
36869 };
36870
36871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36873 if (!SWIG_IsOK(res1)) {
36874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36875 }
36876 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36877 {
36878 arg2 = &temp2;
36879 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36880 }
36881 {
36882 arg3 = &temp3;
36883 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36884 }
36885 ecode4 = SWIG_AsVal_double(obj3, &val4);
36886 if (!SWIG_IsOK(ecode4)) {
36887 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
36888 }
36889 arg4 = static_cast< double >(val4);
36890 {
36891 PyThreadState* __tstate = wxPyBeginAllowThreads();
36892 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
36893 wxPyEndAllowThreads(__tstate);
36894 if (PyErr_Occurred()) SWIG_fail;
36895 }
36896 resultobj = SWIG_Py_Void();
36897 return resultobj;
36898 fail:
36899 return NULL;
36900 }
36901
36902
36903 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36904 PyObject *resultobj = 0;
36905 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36906 int arg2 ;
36907 int arg3 ;
36908 int arg4 ;
36909 void *argp1 = 0 ;
36910 int res1 = 0 ;
36911 int val2 ;
36912 int ecode2 = 0 ;
36913 int val3 ;
36914 int ecode3 = 0 ;
36915 int val4 ;
36916 int ecode4 = 0 ;
36917 PyObject * obj0 = 0 ;
36918 PyObject * obj1 = 0 ;
36919 PyObject * obj2 = 0 ;
36920 PyObject * obj3 = 0 ;
36921 char * kwnames[] = {
36922 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
36923 };
36924
36925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36927 if (!SWIG_IsOK(res1)) {
36928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36929 }
36930 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36931 ecode2 = SWIG_AsVal_int(obj1, &val2);
36932 if (!SWIG_IsOK(ecode2)) {
36933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
36934 }
36935 arg2 = static_cast< int >(val2);
36936 ecode3 = SWIG_AsVal_int(obj2, &val3);
36937 if (!SWIG_IsOK(ecode3)) {
36938 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
36939 }
36940 arg3 = static_cast< int >(val3);
36941 ecode4 = SWIG_AsVal_int(obj3, &val4);
36942 if (!SWIG_IsOK(ecode4)) {
36943 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
36944 }
36945 arg4 = static_cast< int >(val4);
36946 {
36947 PyThreadState* __tstate = wxPyBeginAllowThreads();
36948 (arg1)->DrawCircle(arg2,arg3,arg4);
36949 wxPyEndAllowThreads(__tstate);
36950 if (PyErr_Occurred()) SWIG_fail;
36951 }
36952 resultobj = SWIG_Py_Void();
36953 return resultobj;
36954 fail:
36955 return NULL;
36956 }
36957
36958
36959 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36960 PyObject *resultobj = 0;
36961 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36962 wxPoint *arg2 = 0 ;
36963 int arg3 ;
36964 void *argp1 = 0 ;
36965 int res1 = 0 ;
36966 wxPoint temp2 ;
36967 int val3 ;
36968 int ecode3 = 0 ;
36969 PyObject * obj0 = 0 ;
36970 PyObject * obj1 = 0 ;
36971 PyObject * obj2 = 0 ;
36972 char * kwnames[] = {
36973 (char *) "self",(char *) "pt",(char *) "radius", NULL
36974 };
36975
36976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36978 if (!SWIG_IsOK(res1)) {
36979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36980 }
36981 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36982 {
36983 arg2 = &temp2;
36984 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36985 }
36986 ecode3 = SWIG_AsVal_int(obj2, &val3);
36987 if (!SWIG_IsOK(ecode3)) {
36988 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
36989 }
36990 arg3 = static_cast< int >(val3);
36991 {
36992 PyThreadState* __tstate = wxPyBeginAllowThreads();
36993 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
36994 wxPyEndAllowThreads(__tstate);
36995 if (PyErr_Occurred()) SWIG_fail;
36996 }
36997 resultobj = SWIG_Py_Void();
36998 return resultobj;
36999 fail:
37000 return NULL;
37001 }
37002
37003
37004 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37005 PyObject *resultobj = 0;
37006 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37007 int arg2 ;
37008 int arg3 ;
37009 int arg4 ;
37010 int arg5 ;
37011 void *argp1 = 0 ;
37012 int res1 = 0 ;
37013 int val2 ;
37014 int ecode2 = 0 ;
37015 int val3 ;
37016 int ecode3 = 0 ;
37017 int val4 ;
37018 int ecode4 = 0 ;
37019 int val5 ;
37020 int ecode5 = 0 ;
37021 PyObject * obj0 = 0 ;
37022 PyObject * obj1 = 0 ;
37023 PyObject * obj2 = 0 ;
37024 PyObject * obj3 = 0 ;
37025 PyObject * obj4 = 0 ;
37026 char * kwnames[] = {
37027 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37028 };
37029
37030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37032 if (!SWIG_IsOK(res1)) {
37033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37034 }
37035 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37036 ecode2 = SWIG_AsVal_int(obj1, &val2);
37037 if (!SWIG_IsOK(ecode2)) {
37038 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
37039 }
37040 arg2 = static_cast< int >(val2);
37041 ecode3 = SWIG_AsVal_int(obj2, &val3);
37042 if (!SWIG_IsOK(ecode3)) {
37043 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
37044 }
37045 arg3 = static_cast< int >(val3);
37046 ecode4 = SWIG_AsVal_int(obj3, &val4);
37047 if (!SWIG_IsOK(ecode4)) {
37048 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
37049 }
37050 arg4 = static_cast< int >(val4);
37051 ecode5 = SWIG_AsVal_int(obj4, &val5);
37052 if (!SWIG_IsOK(ecode5)) {
37053 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
37054 }
37055 arg5 = static_cast< int >(val5);
37056 {
37057 PyThreadState* __tstate = wxPyBeginAllowThreads();
37058 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
37059 wxPyEndAllowThreads(__tstate);
37060 if (PyErr_Occurred()) SWIG_fail;
37061 }
37062 resultobj = SWIG_Py_Void();
37063 return resultobj;
37064 fail:
37065 return NULL;
37066 }
37067
37068
37069 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37070 PyObject *resultobj = 0;
37071 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37072 wxRect *arg2 = 0 ;
37073 void *argp1 = 0 ;
37074 int res1 = 0 ;
37075 wxRect temp2 ;
37076 PyObject * obj0 = 0 ;
37077 PyObject * obj1 = 0 ;
37078 char * kwnames[] = {
37079 (char *) "self",(char *) "rect", NULL
37080 };
37081
37082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
37083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37084 if (!SWIG_IsOK(res1)) {
37085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37086 }
37087 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37088 {
37089 arg2 = &temp2;
37090 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37091 }
37092 {
37093 PyThreadState* __tstate = wxPyBeginAllowThreads();
37094 (arg1)->DrawEllipse((wxRect const &)*arg2);
37095 wxPyEndAllowThreads(__tstate);
37096 if (PyErr_Occurred()) SWIG_fail;
37097 }
37098 resultobj = SWIG_Py_Void();
37099 return resultobj;
37100 fail:
37101 return NULL;
37102 }
37103
37104
37105 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37106 PyObject *resultobj = 0;
37107 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37108 wxPoint *arg2 = 0 ;
37109 wxSize *arg3 = 0 ;
37110 void *argp1 = 0 ;
37111 int res1 = 0 ;
37112 wxPoint temp2 ;
37113 wxSize temp3 ;
37114 PyObject * obj0 = 0 ;
37115 PyObject * obj1 = 0 ;
37116 PyObject * obj2 = 0 ;
37117 char * kwnames[] = {
37118 (char *) "self",(char *) "pt",(char *) "sz", NULL
37119 };
37120
37121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37123 if (!SWIG_IsOK(res1)) {
37124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37125 }
37126 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37127 {
37128 arg2 = &temp2;
37129 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37130 }
37131 {
37132 arg3 = &temp3;
37133 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37134 }
37135 {
37136 PyThreadState* __tstate = wxPyBeginAllowThreads();
37137 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
37138 wxPyEndAllowThreads(__tstate);
37139 if (PyErr_Occurred()) SWIG_fail;
37140 }
37141 resultobj = SWIG_Py_Void();
37142 return resultobj;
37143 fail:
37144 return NULL;
37145 }
37146
37147
37148 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37149 PyObject *resultobj = 0;
37150 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37151 wxIcon *arg2 = 0 ;
37152 int arg3 ;
37153 int arg4 ;
37154 void *argp1 = 0 ;
37155 int res1 = 0 ;
37156 void *argp2 = 0 ;
37157 int res2 = 0 ;
37158 int val3 ;
37159 int ecode3 = 0 ;
37160 int val4 ;
37161 int ecode4 = 0 ;
37162 PyObject * obj0 = 0 ;
37163 PyObject * obj1 = 0 ;
37164 PyObject * obj2 = 0 ;
37165 PyObject * obj3 = 0 ;
37166 char * kwnames[] = {
37167 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
37168 };
37169
37170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37172 if (!SWIG_IsOK(res1)) {
37173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37174 }
37175 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37176 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37177 if (!SWIG_IsOK(res2)) {
37178 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37179 }
37180 if (!argp2) {
37181 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37182 }
37183 arg2 = reinterpret_cast< wxIcon * >(argp2);
37184 ecode3 = SWIG_AsVal_int(obj2, &val3);
37185 if (!SWIG_IsOK(ecode3)) {
37186 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
37187 }
37188 arg3 = static_cast< int >(val3);
37189 ecode4 = SWIG_AsVal_int(obj3, &val4);
37190 if (!SWIG_IsOK(ecode4)) {
37191 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
37192 }
37193 arg4 = static_cast< int >(val4);
37194 {
37195 PyThreadState* __tstate = wxPyBeginAllowThreads();
37196 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
37197 wxPyEndAllowThreads(__tstate);
37198 if (PyErr_Occurred()) SWIG_fail;
37199 }
37200 resultobj = SWIG_Py_Void();
37201 return resultobj;
37202 fail:
37203 return NULL;
37204 }
37205
37206
37207 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37208 PyObject *resultobj = 0;
37209 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37210 wxIcon *arg2 = 0 ;
37211 wxPoint *arg3 = 0 ;
37212 void *argp1 = 0 ;
37213 int res1 = 0 ;
37214 void *argp2 = 0 ;
37215 int res2 = 0 ;
37216 wxPoint temp3 ;
37217 PyObject * obj0 = 0 ;
37218 PyObject * obj1 = 0 ;
37219 PyObject * obj2 = 0 ;
37220 char * kwnames[] = {
37221 (char *) "self",(char *) "icon",(char *) "pt", NULL
37222 };
37223
37224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37226 if (!SWIG_IsOK(res1)) {
37227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37228 }
37229 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37230 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37231 if (!SWIG_IsOK(res2)) {
37232 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37233 }
37234 if (!argp2) {
37235 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37236 }
37237 arg2 = reinterpret_cast< wxIcon * >(argp2);
37238 {
37239 arg3 = &temp3;
37240 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37241 }
37242 {
37243 PyThreadState* __tstate = wxPyBeginAllowThreads();
37244 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
37245 wxPyEndAllowThreads(__tstate);
37246 if (PyErr_Occurred()) SWIG_fail;
37247 }
37248 resultobj = SWIG_Py_Void();
37249 return resultobj;
37250 fail:
37251 return NULL;
37252 }
37253
37254
37255 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37256 PyObject *resultobj = 0;
37257 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37258 wxBitmap *arg2 = 0 ;
37259 int arg3 ;
37260 int arg4 ;
37261 bool arg5 = (bool) false ;
37262 void *argp1 = 0 ;
37263 int res1 = 0 ;
37264 void *argp2 = 0 ;
37265 int res2 = 0 ;
37266 int val3 ;
37267 int ecode3 = 0 ;
37268 int val4 ;
37269 int ecode4 = 0 ;
37270 bool val5 ;
37271 int ecode5 = 0 ;
37272 PyObject * obj0 = 0 ;
37273 PyObject * obj1 = 0 ;
37274 PyObject * obj2 = 0 ;
37275 PyObject * obj3 = 0 ;
37276 PyObject * obj4 = 0 ;
37277 char * kwnames[] = {
37278 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
37279 };
37280
37281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37283 if (!SWIG_IsOK(res1)) {
37284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37285 }
37286 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37287 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37288 if (!SWIG_IsOK(res2)) {
37289 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37290 }
37291 if (!argp2) {
37292 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37293 }
37294 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37295 ecode3 = SWIG_AsVal_int(obj2, &val3);
37296 if (!SWIG_IsOK(ecode3)) {
37297 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
37298 }
37299 arg3 = static_cast< int >(val3);
37300 ecode4 = SWIG_AsVal_int(obj3, &val4);
37301 if (!SWIG_IsOK(ecode4)) {
37302 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
37303 }
37304 arg4 = static_cast< int >(val4);
37305 if (obj4) {
37306 ecode5 = SWIG_AsVal_bool(obj4, &val5);
37307 if (!SWIG_IsOK(ecode5)) {
37308 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
37309 }
37310 arg5 = static_cast< bool >(val5);
37311 }
37312 {
37313 PyThreadState* __tstate = wxPyBeginAllowThreads();
37314 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
37315 wxPyEndAllowThreads(__tstate);
37316 if (PyErr_Occurred()) SWIG_fail;
37317 }
37318 resultobj = SWIG_Py_Void();
37319 return resultobj;
37320 fail:
37321 return NULL;
37322 }
37323
37324
37325 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37326 PyObject *resultobj = 0;
37327 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37328 wxBitmap *arg2 = 0 ;
37329 wxPoint *arg3 = 0 ;
37330 bool arg4 = (bool) false ;
37331 void *argp1 = 0 ;
37332 int res1 = 0 ;
37333 void *argp2 = 0 ;
37334 int res2 = 0 ;
37335 wxPoint temp3 ;
37336 bool val4 ;
37337 int ecode4 = 0 ;
37338 PyObject * obj0 = 0 ;
37339 PyObject * obj1 = 0 ;
37340 PyObject * obj2 = 0 ;
37341 PyObject * obj3 = 0 ;
37342 char * kwnames[] = {
37343 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
37344 };
37345
37346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37348 if (!SWIG_IsOK(res1)) {
37349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37350 }
37351 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37352 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37353 if (!SWIG_IsOK(res2)) {
37354 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37355 }
37356 if (!argp2) {
37357 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37358 }
37359 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37360 {
37361 arg3 = &temp3;
37362 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37363 }
37364 if (obj3) {
37365 ecode4 = SWIG_AsVal_bool(obj3, &val4);
37366 if (!SWIG_IsOK(ecode4)) {
37367 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
37368 }
37369 arg4 = static_cast< bool >(val4);
37370 }
37371 {
37372 PyThreadState* __tstate = wxPyBeginAllowThreads();
37373 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
37374 wxPyEndAllowThreads(__tstate);
37375 if (PyErr_Occurred()) SWIG_fail;
37376 }
37377 resultobj = SWIG_Py_Void();
37378 return resultobj;
37379 fail:
37380 return NULL;
37381 }
37382
37383
37384 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37385 PyObject *resultobj = 0;
37386 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37387 wxString *arg2 = 0 ;
37388 int arg3 ;
37389 int arg4 ;
37390 void *argp1 = 0 ;
37391 int res1 = 0 ;
37392 bool temp2 = false ;
37393 int val3 ;
37394 int ecode3 = 0 ;
37395 int val4 ;
37396 int ecode4 = 0 ;
37397 PyObject * obj0 = 0 ;
37398 PyObject * obj1 = 0 ;
37399 PyObject * obj2 = 0 ;
37400 PyObject * obj3 = 0 ;
37401 char * kwnames[] = {
37402 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
37403 };
37404
37405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) 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_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37409 }
37410 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37411 {
37412 arg2 = wxString_in_helper(obj1);
37413 if (arg2 == NULL) SWIG_fail;
37414 temp2 = true;
37415 }
37416 ecode3 = SWIG_AsVal_int(obj2, &val3);
37417 if (!SWIG_IsOK(ecode3)) {
37418 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
37419 }
37420 arg3 = static_cast< int >(val3);
37421 ecode4 = SWIG_AsVal_int(obj3, &val4);
37422 if (!SWIG_IsOK(ecode4)) {
37423 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
37424 }
37425 arg4 = static_cast< int >(val4);
37426 {
37427 PyThreadState* __tstate = wxPyBeginAllowThreads();
37428 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
37429 wxPyEndAllowThreads(__tstate);
37430 if (PyErr_Occurred()) SWIG_fail;
37431 }
37432 resultobj = SWIG_Py_Void();
37433 {
37434 if (temp2)
37435 delete arg2;
37436 }
37437 return resultobj;
37438 fail:
37439 {
37440 if (temp2)
37441 delete arg2;
37442 }
37443 return NULL;
37444 }
37445
37446
37447 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37448 PyObject *resultobj = 0;
37449 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37450 wxString *arg2 = 0 ;
37451 wxPoint *arg3 = 0 ;
37452 void *argp1 = 0 ;
37453 int res1 = 0 ;
37454 bool temp2 = false ;
37455 wxPoint temp3 ;
37456 PyObject * obj0 = 0 ;
37457 PyObject * obj1 = 0 ;
37458 PyObject * obj2 = 0 ;
37459 char * kwnames[] = {
37460 (char *) "self",(char *) "text",(char *) "pt", NULL
37461 };
37462
37463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37465 if (!SWIG_IsOK(res1)) {
37466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37467 }
37468 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37469 {
37470 arg2 = wxString_in_helper(obj1);
37471 if (arg2 == NULL) SWIG_fail;
37472 temp2 = true;
37473 }
37474 {
37475 arg3 = &temp3;
37476 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37477 }
37478 {
37479 PyThreadState* __tstate = wxPyBeginAllowThreads();
37480 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
37481 wxPyEndAllowThreads(__tstate);
37482 if (PyErr_Occurred()) SWIG_fail;
37483 }
37484 resultobj = SWIG_Py_Void();
37485 {
37486 if (temp2)
37487 delete arg2;
37488 }
37489 return resultobj;
37490 fail:
37491 {
37492 if (temp2)
37493 delete arg2;
37494 }
37495 return NULL;
37496 }
37497
37498
37499 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37500 PyObject *resultobj = 0;
37501 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37502 wxString *arg2 = 0 ;
37503 int arg3 ;
37504 int arg4 ;
37505 double arg5 ;
37506 void *argp1 = 0 ;
37507 int res1 = 0 ;
37508 bool temp2 = false ;
37509 int val3 ;
37510 int ecode3 = 0 ;
37511 int val4 ;
37512 int ecode4 = 0 ;
37513 double val5 ;
37514 int ecode5 = 0 ;
37515 PyObject * obj0 = 0 ;
37516 PyObject * obj1 = 0 ;
37517 PyObject * obj2 = 0 ;
37518 PyObject * obj3 = 0 ;
37519 PyObject * obj4 = 0 ;
37520 char * kwnames[] = {
37521 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
37522 };
37523
37524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37526 if (!SWIG_IsOK(res1)) {
37527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37528 }
37529 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37530 {
37531 arg2 = wxString_in_helper(obj1);
37532 if (arg2 == NULL) SWIG_fail;
37533 temp2 = true;
37534 }
37535 ecode3 = SWIG_AsVal_int(obj2, &val3);
37536 if (!SWIG_IsOK(ecode3)) {
37537 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
37538 }
37539 arg3 = static_cast< int >(val3);
37540 ecode4 = SWIG_AsVal_int(obj3, &val4);
37541 if (!SWIG_IsOK(ecode4)) {
37542 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
37543 }
37544 arg4 = static_cast< int >(val4);
37545 ecode5 = SWIG_AsVal_double(obj4, &val5);
37546 if (!SWIG_IsOK(ecode5)) {
37547 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
37548 }
37549 arg5 = static_cast< double >(val5);
37550 {
37551 PyThreadState* __tstate = wxPyBeginAllowThreads();
37552 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
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_DrawRotatedTextPoint(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 double arg4 ;
37577 void *argp1 = 0 ;
37578 int res1 = 0 ;
37579 bool temp2 = false ;
37580 wxPoint temp3 ;
37581 double val4 ;
37582 int ecode4 = 0 ;
37583 PyObject * obj0 = 0 ;
37584 PyObject * obj1 = 0 ;
37585 PyObject * obj2 = 0 ;
37586 PyObject * obj3 = 0 ;
37587 char * kwnames[] = {
37588 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
37589 };
37590
37591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37593 if (!SWIG_IsOK(res1)) {
37594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37595 }
37596 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37597 {
37598 arg2 = wxString_in_helper(obj1);
37599 if (arg2 == NULL) SWIG_fail;
37600 temp2 = true;
37601 }
37602 {
37603 arg3 = &temp3;
37604 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37605 }
37606 ecode4 = SWIG_AsVal_double(obj3, &val4);
37607 if (!SWIG_IsOK(ecode4)) {
37608 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
37609 }
37610 arg4 = static_cast< double >(val4);
37611 {
37612 PyThreadState* __tstate = wxPyBeginAllowThreads();
37613 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
37614 wxPyEndAllowThreads(__tstate);
37615 if (PyErr_Occurred()) SWIG_fail;
37616 }
37617 resultobj = SWIG_Py_Void();
37618 {
37619 if (temp2)
37620 delete arg2;
37621 }
37622 return resultobj;
37623 fail:
37624 {
37625 if (temp2)
37626 delete arg2;
37627 }
37628 return NULL;
37629 }
37630
37631
37632 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37633 PyObject *resultobj = 0;
37634 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37635 int arg2 ;
37636 wxPoint *arg3 = (wxPoint *) 0 ;
37637 int arg4 = (int) 0 ;
37638 int arg5 = (int) 0 ;
37639 void *argp1 = 0 ;
37640 int res1 = 0 ;
37641 int val4 ;
37642 int ecode4 = 0 ;
37643 int val5 ;
37644 int ecode5 = 0 ;
37645 PyObject * obj0 = 0 ;
37646 PyObject * obj1 = 0 ;
37647 PyObject * obj2 = 0 ;
37648 PyObject * obj3 = 0 ;
37649 char * kwnames[] = {
37650 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
37651 };
37652
37653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37655 if (!SWIG_IsOK(res1)) {
37656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37657 }
37658 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37659 {
37660 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37661 if (arg3 == NULL) SWIG_fail;
37662 }
37663 if (obj2) {
37664 ecode4 = SWIG_AsVal_int(obj2, &val4);
37665 if (!SWIG_IsOK(ecode4)) {
37666 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
37667 }
37668 arg4 = static_cast< int >(val4);
37669 }
37670 if (obj3) {
37671 ecode5 = SWIG_AsVal_int(obj3, &val5);
37672 if (!SWIG_IsOK(ecode5)) {
37673 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
37674 }
37675 arg5 = static_cast< int >(val5);
37676 }
37677 {
37678 PyThreadState* __tstate = wxPyBeginAllowThreads();
37679 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
37680 wxPyEndAllowThreads(__tstate);
37681 if (PyErr_Occurred()) SWIG_fail;
37682 }
37683 resultobj = SWIG_Py_Void();
37684 {
37685 if (arg3) delete [] arg3;
37686 }
37687 return resultobj;
37688 fail:
37689 {
37690 if (arg3) delete [] arg3;
37691 }
37692 return NULL;
37693 }
37694
37695
37696 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37697 PyObject *resultobj = 0;
37698 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37699 int arg2 ;
37700 wxPoint *arg3 = (wxPoint *) 0 ;
37701 int arg4 = (int) 0 ;
37702 int arg5 = (int) 0 ;
37703 int arg6 = (int) wxODDEVEN_RULE ;
37704 void *argp1 = 0 ;
37705 int res1 = 0 ;
37706 int val4 ;
37707 int ecode4 = 0 ;
37708 int val5 ;
37709 int ecode5 = 0 ;
37710 int val6 ;
37711 int ecode6 = 0 ;
37712 PyObject * obj0 = 0 ;
37713 PyObject * obj1 = 0 ;
37714 PyObject * obj2 = 0 ;
37715 PyObject * obj3 = 0 ;
37716 PyObject * obj4 = 0 ;
37717 char * kwnames[] = {
37718 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
37719 };
37720
37721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37723 if (!SWIG_IsOK(res1)) {
37724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37725 }
37726 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37727 {
37728 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37729 if (arg3 == NULL) SWIG_fail;
37730 }
37731 if (obj2) {
37732 ecode4 = SWIG_AsVal_int(obj2, &val4);
37733 if (!SWIG_IsOK(ecode4)) {
37734 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
37735 }
37736 arg4 = static_cast< int >(val4);
37737 }
37738 if (obj3) {
37739 ecode5 = SWIG_AsVal_int(obj3, &val5);
37740 if (!SWIG_IsOK(ecode5)) {
37741 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
37742 }
37743 arg5 = static_cast< int >(val5);
37744 }
37745 if (obj4) {
37746 ecode6 = SWIG_AsVal_int(obj4, &val6);
37747 if (!SWIG_IsOK(ecode6)) {
37748 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
37749 }
37750 arg6 = static_cast< int >(val6);
37751 }
37752 {
37753 PyThreadState* __tstate = wxPyBeginAllowThreads();
37754 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
37755 wxPyEndAllowThreads(__tstate);
37756 if (PyErr_Occurred()) SWIG_fail;
37757 }
37758 resultobj = SWIG_Py_Void();
37759 {
37760 if (arg3) delete [] arg3;
37761 }
37762 return resultobj;
37763 fail:
37764 {
37765 if (arg3) delete [] arg3;
37766 }
37767 return NULL;
37768 }
37769
37770
37771 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37772 PyObject *resultobj = 0;
37773 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37774 wxString *arg2 = 0 ;
37775 wxRect *arg3 = 0 ;
37776 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37777 int arg5 = (int) -1 ;
37778 void *argp1 = 0 ;
37779 int res1 = 0 ;
37780 bool temp2 = false ;
37781 wxRect temp3 ;
37782 int val4 ;
37783 int ecode4 = 0 ;
37784 int val5 ;
37785 int ecode5 = 0 ;
37786 PyObject * obj0 = 0 ;
37787 PyObject * obj1 = 0 ;
37788 PyObject * obj2 = 0 ;
37789 PyObject * obj3 = 0 ;
37790 PyObject * obj4 = 0 ;
37791 char * kwnames[] = {
37792 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37793 };
37794
37795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37797 if (!SWIG_IsOK(res1)) {
37798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37799 }
37800 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37801 {
37802 arg2 = wxString_in_helper(obj1);
37803 if (arg2 == NULL) SWIG_fail;
37804 temp2 = true;
37805 }
37806 {
37807 arg3 = &temp3;
37808 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
37809 }
37810 if (obj3) {
37811 ecode4 = SWIG_AsVal_int(obj3, &val4);
37812 if (!SWIG_IsOK(ecode4)) {
37813 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
37814 }
37815 arg4 = static_cast< int >(val4);
37816 }
37817 if (obj4) {
37818 ecode5 = SWIG_AsVal_int(obj4, &val5);
37819 if (!SWIG_IsOK(ecode5)) {
37820 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
37821 }
37822 arg5 = static_cast< int >(val5);
37823 }
37824 {
37825 PyThreadState* __tstate = wxPyBeginAllowThreads();
37826 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
37827 wxPyEndAllowThreads(__tstate);
37828 if (PyErr_Occurred()) SWIG_fail;
37829 }
37830 resultobj = SWIG_Py_Void();
37831 {
37832 if (temp2)
37833 delete arg2;
37834 }
37835 return resultobj;
37836 fail:
37837 {
37838 if (temp2)
37839 delete arg2;
37840 }
37841 return NULL;
37842 }
37843
37844
37845 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37846 PyObject *resultobj = 0;
37847 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37848 wxString *arg2 = 0 ;
37849 wxBitmap *arg3 = 0 ;
37850 wxRect *arg4 = 0 ;
37851 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37852 int arg6 = (int) -1 ;
37853 void *argp1 = 0 ;
37854 int res1 = 0 ;
37855 bool temp2 = false ;
37856 void *argp3 = 0 ;
37857 int res3 = 0 ;
37858 wxRect temp4 ;
37859 int val5 ;
37860 int ecode5 = 0 ;
37861 int val6 ;
37862 int ecode6 = 0 ;
37863 PyObject * obj0 = 0 ;
37864 PyObject * obj1 = 0 ;
37865 PyObject * obj2 = 0 ;
37866 PyObject * obj3 = 0 ;
37867 PyObject * obj4 = 0 ;
37868 PyObject * obj5 = 0 ;
37869 char * kwnames[] = {
37870 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37871 };
37872
37873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37875 if (!SWIG_IsOK(res1)) {
37876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37877 }
37878 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37879 {
37880 arg2 = wxString_in_helper(obj1);
37881 if (arg2 == NULL) SWIG_fail;
37882 temp2 = true;
37883 }
37884 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
37885 if (!SWIG_IsOK(res3)) {
37886 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
37887 }
37888 if (!argp3) {
37889 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
37890 }
37891 arg3 = reinterpret_cast< wxBitmap * >(argp3);
37892 {
37893 arg4 = &temp4;
37894 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
37895 }
37896 if (obj4) {
37897 ecode5 = SWIG_AsVal_int(obj4, &val5);
37898 if (!SWIG_IsOK(ecode5)) {
37899 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
37900 }
37901 arg5 = static_cast< int >(val5);
37902 }
37903 if (obj5) {
37904 ecode6 = SWIG_AsVal_int(obj5, &val6);
37905 if (!SWIG_IsOK(ecode6)) {
37906 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
37907 }
37908 arg6 = static_cast< int >(val6);
37909 }
37910 {
37911 PyThreadState* __tstate = wxPyBeginAllowThreads();
37912 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
37913 wxPyEndAllowThreads(__tstate);
37914 if (PyErr_Occurred()) SWIG_fail;
37915 }
37916 resultobj = SWIG_Py_Void();
37917 {
37918 if (temp2)
37919 delete arg2;
37920 }
37921 return resultobj;
37922 fail:
37923 {
37924 if (temp2)
37925 delete arg2;
37926 }
37927 return NULL;
37928 }
37929
37930
37931 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37932 PyObject *resultobj = 0;
37933 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37934 int arg2 ;
37935 wxPoint *arg3 = (wxPoint *) 0 ;
37936 void *argp1 = 0 ;
37937 int res1 = 0 ;
37938 PyObject * obj0 = 0 ;
37939 PyObject * obj1 = 0 ;
37940 char * kwnames[] = {
37941 (char *) "self",(char *) "points", NULL
37942 };
37943
37944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
37945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37946 if (!SWIG_IsOK(res1)) {
37947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37948 }
37949 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37950 {
37951 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37952 if (arg3 == NULL) SWIG_fail;
37953 }
37954 {
37955 PyThreadState* __tstate = wxPyBeginAllowThreads();
37956 (arg1)->DrawSpline(arg2,arg3);
37957 wxPyEndAllowThreads(__tstate);
37958 if (PyErr_Occurred()) SWIG_fail;
37959 }
37960 resultobj = SWIG_Py_Void();
37961 {
37962 if (arg3) delete [] arg3;
37963 }
37964 return resultobj;
37965 fail:
37966 {
37967 if (arg3) delete [] arg3;
37968 }
37969 return NULL;
37970 }
37971
37972
37973 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37974 PyObject *resultobj = 0;
37975 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37976 void *argp1 = 0 ;
37977 int res1 = 0 ;
37978 PyObject *swig_obj[1] ;
37979
37980 if (!args) SWIG_fail;
37981 swig_obj[0] = args;
37982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37983 if (!SWIG_IsOK(res1)) {
37984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37985 }
37986 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37987 {
37988 PyThreadState* __tstate = wxPyBeginAllowThreads();
37989 (arg1)->Clear();
37990 wxPyEndAllowThreads(__tstate);
37991 if (PyErr_Occurred()) SWIG_fail;
37992 }
37993 resultobj = SWIG_Py_Void();
37994 return resultobj;
37995 fail:
37996 return NULL;
37997 }
37998
37999
38000 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38001 PyObject *resultobj = 0;
38002 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38003 wxFont *arg2 = 0 ;
38004 void *argp1 = 0 ;
38005 int res1 = 0 ;
38006 void *argp2 = 0 ;
38007 int res2 = 0 ;
38008 PyObject * obj0 = 0 ;
38009 PyObject * obj1 = 0 ;
38010 char * kwnames[] = {
38011 (char *) "self",(char *) "font", NULL
38012 };
38013
38014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
38015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38016 if (!SWIG_IsOK(res1)) {
38017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38018 }
38019 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38020 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
38021 if (!SWIG_IsOK(res2)) {
38022 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38023 }
38024 if (!argp2) {
38025 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38026 }
38027 arg2 = reinterpret_cast< wxFont * >(argp2);
38028 {
38029 PyThreadState* __tstate = wxPyBeginAllowThreads();
38030 (arg1)->SetFont((wxFont const &)*arg2);
38031 wxPyEndAllowThreads(__tstate);
38032 if (PyErr_Occurred()) SWIG_fail;
38033 }
38034 resultobj = SWIG_Py_Void();
38035 return resultobj;
38036 fail:
38037 return NULL;
38038 }
38039
38040
38041 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38042 PyObject *resultobj = 0;
38043 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38044 wxPen *arg2 = 0 ;
38045 void *argp1 = 0 ;
38046 int res1 = 0 ;
38047 void *argp2 = 0 ;
38048 int res2 = 0 ;
38049 PyObject * obj0 = 0 ;
38050 PyObject * obj1 = 0 ;
38051 char * kwnames[] = {
38052 (char *) "self",(char *) "pen", NULL
38053 };
38054
38055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
38056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38057 if (!SWIG_IsOK(res1)) {
38058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38059 }
38060 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38061 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
38062 if (!SWIG_IsOK(res2)) {
38063 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38064 }
38065 if (!argp2) {
38066 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38067 }
38068 arg2 = reinterpret_cast< wxPen * >(argp2);
38069 {
38070 PyThreadState* __tstate = wxPyBeginAllowThreads();
38071 (arg1)->SetPen((wxPen const &)*arg2);
38072 wxPyEndAllowThreads(__tstate);
38073 if (PyErr_Occurred()) SWIG_fail;
38074 }
38075 resultobj = SWIG_Py_Void();
38076 return resultobj;
38077 fail:
38078 return NULL;
38079 }
38080
38081
38082 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38083 PyObject *resultobj = 0;
38084 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38085 wxBrush *arg2 = 0 ;
38086 void *argp1 = 0 ;
38087 int res1 = 0 ;
38088 void *argp2 = 0 ;
38089 int res2 = 0 ;
38090 PyObject * obj0 = 0 ;
38091 PyObject * obj1 = 0 ;
38092 char * kwnames[] = {
38093 (char *) "self",(char *) "brush", NULL
38094 };
38095
38096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
38097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38098 if (!SWIG_IsOK(res1)) {
38099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38100 }
38101 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38102 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38103 if (!SWIG_IsOK(res2)) {
38104 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38105 }
38106 if (!argp2) {
38107 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38108 }
38109 arg2 = reinterpret_cast< wxBrush * >(argp2);
38110 {
38111 PyThreadState* __tstate = wxPyBeginAllowThreads();
38112 (arg1)->SetBrush((wxBrush const &)*arg2);
38113 wxPyEndAllowThreads(__tstate);
38114 if (PyErr_Occurred()) SWIG_fail;
38115 }
38116 resultobj = SWIG_Py_Void();
38117 return resultobj;
38118 fail:
38119 return NULL;
38120 }
38121
38122
38123 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38124 PyObject *resultobj = 0;
38125 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38126 wxBrush *arg2 = 0 ;
38127 void *argp1 = 0 ;
38128 int res1 = 0 ;
38129 void *argp2 = 0 ;
38130 int res2 = 0 ;
38131 PyObject * obj0 = 0 ;
38132 PyObject * obj1 = 0 ;
38133 char * kwnames[] = {
38134 (char *) "self",(char *) "brush", NULL
38135 };
38136
38137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38139 if (!SWIG_IsOK(res1)) {
38140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38141 }
38142 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38143 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38144 if (!SWIG_IsOK(res2)) {
38145 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38146 }
38147 if (!argp2) {
38148 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38149 }
38150 arg2 = reinterpret_cast< wxBrush * >(argp2);
38151 {
38152 PyThreadState* __tstate = wxPyBeginAllowThreads();
38153 (arg1)->SetBackground((wxBrush const &)*arg2);
38154 wxPyEndAllowThreads(__tstate);
38155 if (PyErr_Occurred()) SWIG_fail;
38156 }
38157 resultobj = SWIG_Py_Void();
38158 return resultobj;
38159 fail:
38160 return NULL;
38161 }
38162
38163
38164 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38165 PyObject *resultobj = 0;
38166 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38167 int arg2 ;
38168 void *argp1 = 0 ;
38169 int res1 = 0 ;
38170 int val2 ;
38171 int ecode2 = 0 ;
38172 PyObject * obj0 = 0 ;
38173 PyObject * obj1 = 0 ;
38174 char * kwnames[] = {
38175 (char *) "self",(char *) "mode", NULL
38176 };
38177
38178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
38179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38180 if (!SWIG_IsOK(res1)) {
38181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38182 }
38183 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38184 ecode2 = SWIG_AsVal_int(obj1, &val2);
38185 if (!SWIG_IsOK(ecode2)) {
38186 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
38187 }
38188 arg2 = static_cast< int >(val2);
38189 {
38190 PyThreadState* __tstate = wxPyBeginAllowThreads();
38191 (arg1)->SetBackgroundMode(arg2);
38192 wxPyEndAllowThreads(__tstate);
38193 if (PyErr_Occurred()) SWIG_fail;
38194 }
38195 resultobj = SWIG_Py_Void();
38196 return resultobj;
38197 fail:
38198 return NULL;
38199 }
38200
38201
38202 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38203 PyObject *resultobj = 0;
38204 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38205 wxPalette *arg2 = 0 ;
38206 void *argp1 = 0 ;
38207 int res1 = 0 ;
38208 void *argp2 = 0 ;
38209 int res2 = 0 ;
38210 PyObject * obj0 = 0 ;
38211 PyObject * obj1 = 0 ;
38212 char * kwnames[] = {
38213 (char *) "self",(char *) "palette", NULL
38214 };
38215
38216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
38217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38218 if (!SWIG_IsOK(res1)) {
38219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38220 }
38221 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38222 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
38223 if (!SWIG_IsOK(res2)) {
38224 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38225 }
38226 if (!argp2) {
38227 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38228 }
38229 arg2 = reinterpret_cast< wxPalette * >(argp2);
38230 {
38231 PyThreadState* __tstate = wxPyBeginAllowThreads();
38232 (arg1)->SetPalette((wxPalette const &)*arg2);
38233 wxPyEndAllowThreads(__tstate);
38234 if (PyErr_Occurred()) SWIG_fail;
38235 }
38236 resultobj = SWIG_Py_Void();
38237 return resultobj;
38238 fail:
38239 return NULL;
38240 }
38241
38242
38243 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38244 PyObject *resultobj = 0;
38245 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38246 wxColour *arg2 = 0 ;
38247 void *argp1 = 0 ;
38248 int res1 = 0 ;
38249 wxColour temp2 ;
38250 PyObject * obj0 = 0 ;
38251 PyObject * obj1 = 0 ;
38252 char * kwnames[] = {
38253 (char *) "self",(char *) "colour", NULL
38254 };
38255
38256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
38257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38258 if (!SWIG_IsOK(res1)) {
38259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38260 }
38261 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38262 {
38263 arg2 = &temp2;
38264 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38265 }
38266 {
38267 PyThreadState* __tstate = wxPyBeginAllowThreads();
38268 (arg1)->SetTextForeground((wxColour const &)*arg2);
38269 wxPyEndAllowThreads(__tstate);
38270 if (PyErr_Occurred()) SWIG_fail;
38271 }
38272 resultobj = SWIG_Py_Void();
38273 return resultobj;
38274 fail:
38275 return NULL;
38276 }
38277
38278
38279 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38280 PyObject *resultobj = 0;
38281 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38282 wxColour *arg2 = 0 ;
38283 void *argp1 = 0 ;
38284 int res1 = 0 ;
38285 wxColour temp2 ;
38286 PyObject * obj0 = 0 ;
38287 PyObject * obj1 = 0 ;
38288 char * kwnames[] = {
38289 (char *) "self",(char *) "colour", NULL
38290 };
38291
38292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38294 if (!SWIG_IsOK(res1)) {
38295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38296 }
38297 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38298 {
38299 arg2 = &temp2;
38300 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38301 }
38302 {
38303 PyThreadState* __tstate = wxPyBeginAllowThreads();
38304 (arg1)->SetTextBackground((wxColour const &)*arg2);
38305 wxPyEndAllowThreads(__tstate);
38306 if (PyErr_Occurred()) SWIG_fail;
38307 }
38308 resultobj = SWIG_Py_Void();
38309 return resultobj;
38310 fail:
38311 return NULL;
38312 }
38313
38314
38315 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38316 PyObject *resultobj = 0;
38317 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38318 int arg2 ;
38319 void *argp1 = 0 ;
38320 int res1 = 0 ;
38321 int val2 ;
38322 int ecode2 = 0 ;
38323 PyObject * obj0 = 0 ;
38324 PyObject * obj1 = 0 ;
38325 char * kwnames[] = {
38326 (char *) "self",(char *) "function", NULL
38327 };
38328
38329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
38330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38331 if (!SWIG_IsOK(res1)) {
38332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38333 }
38334 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38335 ecode2 = SWIG_AsVal_int(obj1, &val2);
38336 if (!SWIG_IsOK(ecode2)) {
38337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
38338 }
38339 arg2 = static_cast< int >(val2);
38340 {
38341 PyThreadState* __tstate = wxPyBeginAllowThreads();
38342 (arg1)->SetLogicalFunction(arg2);
38343 wxPyEndAllowThreads(__tstate);
38344 if (PyErr_Occurred()) SWIG_fail;
38345 }
38346 resultobj = SWIG_Py_Void();
38347 return resultobj;
38348 fail:
38349 return NULL;
38350 }
38351
38352
38353 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38354 PyObject *obj;
38355 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38356 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
38357 return SWIG_Py_Void();
38358 }
38359
38360 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38361 return SWIG_Python_InitShadowInstance(args);
38362 }
38363
38364 static PyMethodDef SwigMethods[] = {
38365 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
38366 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
38367 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
38368 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
38369 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
38370 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
38371 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
38372 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38373 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
38374 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
38375 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
38376 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
38377 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
38378 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
38379 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38380 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38381 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38382 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
38383 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
38384 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38385 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38386 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
38387 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
38388 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
38389 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
38390 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
38391 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
38392 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38393 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38394 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
38395 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
38396 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
38397 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
38398 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
38399 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
38400 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
38401 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
38402 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
38403 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
38404 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
38405 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
38406 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
38407 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38408 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
38409 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38410 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38411 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38412 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
38413 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38414 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38415 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38416 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
38417 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
38418 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
38419 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38420 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
38421 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38422 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38423 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
38424 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
38425 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
38426 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
38427 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
38428 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
38429 { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL},
38430 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
38431 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
38432 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
38433 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38434 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
38435 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38436 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38437 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38438 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38439 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
38440 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
38441 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
38442 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
38443 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
38444 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
38445 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
38446 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
38447 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
38448 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
38449 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38450 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
38451 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38452 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
38453 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38454 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38455 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38456 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38457 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
38458 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38459 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38460 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38461 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38462 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
38463 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
38464 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
38465 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38466 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38467 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
38468 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
38469 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
38470 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
38471 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
38472 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
38473 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
38474 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
38475 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
38476 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
38477 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
38478 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
38479 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
38480 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
38481 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
38482 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38483 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
38484 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
38485 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38486 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38487 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38488 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38489 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38490 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
38491 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
38492 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
38493 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
38494 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
38495 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
38496 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
38497 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
38498 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
38499 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
38500 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
38501 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
38502 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38503 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
38504 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
38505 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38506 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38507 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38508 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38509 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38510 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
38511 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
38512 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
38513 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
38514 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
38515 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
38516 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
38517 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
38518 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
38519 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
38520 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38521 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38522 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38523 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
38524 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
38525 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
38526 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
38527 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38528 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38529 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38530 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38531 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
38532 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
38533 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38534 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
38535 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
38536 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
38537 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
38538 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
38539 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
38540 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
38541 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
38542 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
38543 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38544 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38545 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
38546 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38547 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38548 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38549 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
38550 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
38551 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
38552 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
38553 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38554 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38555 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
38556 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
38557 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
38558 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
38559 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38560 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38561 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
38562 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
38563 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
38564 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38565 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
38566 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38567 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
38568 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
38569 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
38570 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
38571 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
38572 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38573 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
38574 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
38575 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
38576 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
38577 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38578 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
38579 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
38580 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38581 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
38582 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
38583 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38584 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
38585 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38586 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38587 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
38588 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
38589 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
38590 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
38591 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
38592 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
38593 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
38594 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
38595 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
38596 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
38597 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
38598 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
38599 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
38600 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
38601 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
38602 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
38603 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
38604 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
38605 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
38606 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
38607 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
38608 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
38609 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
38610 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
38611 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
38612 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
38613 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
38614 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
38615 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38616 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38617 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38618 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38619 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38620 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38621 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38622 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38623 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
38624 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
38625 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
38626 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
38627 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
38628 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
38629 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
38630 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
38631 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
38632 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
38633 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
38634 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
38635 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38636 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
38637 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
38638 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
38639 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38640 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38641 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
38642 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
38643 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
38644 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38645 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38646 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
38647 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38648 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
38649 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
38650 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38651 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
38652 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
38653 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38654 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38655 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
38656 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
38657 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
38658 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
38659 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
38660 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
38661 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38662 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
38663 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
38664 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38665 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38666 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
38667 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38668 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38669 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
38670 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
38671 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
38672 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
38673 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
38674 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
38675 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
38676 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
38677 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
38678 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
38679 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
38680 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
38681 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
38682 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38683 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38684 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38685 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38686 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38687 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38688 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38689 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38690 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38691 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
38692 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
38693 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
38694 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
38695 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
38696 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
38697 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
38698 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
38699 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38700 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
38701 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
38702 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
38703 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
38704 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38705 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
38706 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
38707 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
38708 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
38709 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
38710 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
38711 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
38712 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
38713 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
38714 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
38715 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
38716 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
38717 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
38718 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
38719 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
38720 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
38721 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
38722 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
38723 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
38724 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
38725 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
38726 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
38727 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
38728 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
38729 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
38730 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
38731 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
38732 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
38733 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38734 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
38735 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38736 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
38737 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38738 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
38739 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
38740 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
38741 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
38742 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
38743 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
38744 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
38745 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38746 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
38747 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
38748 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
38749 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
38750 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
38751 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
38752 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
38753 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
38754 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
38755 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
38756 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38757 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38758 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
38759 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
38760 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
38761 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
38762 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
38763 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38764 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
38765 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
38766 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38767 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38768 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
38769 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38770 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
38771 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38772 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
38773 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38774 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
38775 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
38776 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
38777 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38778 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38779 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38780 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38781 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38782 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38783 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38784 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38785 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38786 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38787 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38788 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38789 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
38790 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38791 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38792 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38793 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38794 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38795 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38796 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38797 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
38798 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38799 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
38800 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38801 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38802 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38803 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38804 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38805 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
38806 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38807 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
38808 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38809 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38810 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
38811 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
38812 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
38813 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
38814 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
38815 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
38816 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
38817 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
38818 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38819 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38820 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
38821 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
38822 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
38823 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
38824 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
38825 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
38826 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
38827 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38828 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38829 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38830 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
38831 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
38832 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
38833 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
38834 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
38835 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
38836 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
38837 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38838 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38839 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
38840 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
38841 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38842 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38843 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
38844 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
38845 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
38846 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
38847 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
38848 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
38849 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
38850 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
38851 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
38852 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
38853 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
38854 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
38855 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
38856 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38857 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
38858 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
38859 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
38860 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
38861 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
38862 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
38863 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
38864 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
38865 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38866 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38867 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
38868 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
38869 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38870 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38871 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
38872 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
38873 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
38874 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
38875 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
38876 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38877 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
38878 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
38879 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
38880 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
38881 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
38882 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
38883 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
38884 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
38885 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
38886 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
38887 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
38888 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
38889 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
38890 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
38891 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
38892 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38893 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
38894 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
38895 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
38896 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38897 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
38898 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
38899 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
38900 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38901 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
38902 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
38903 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
38904 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
38905 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
38906 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
38907 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
38908 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
38909 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
38910 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
38911 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
38912 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
38913 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
38914 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
38915 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
38916 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
38917 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
38918 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
38919 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
38920 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
38921 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
38922 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
38923 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
38924 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
38925 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
38926 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38927 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
38928 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
38929 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
38930 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
38931 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
38932 { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38933 { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL},
38934 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
38935 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
38936 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38937 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
38938 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
38939 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38940 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
38941 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
38942 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
38943 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
38944 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
38945 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
38946 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
38947 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
38948 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
38949 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
38950 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
38951 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
38952 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
38953 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
38954 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
38955 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
38956 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
38957 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
38958 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
38959 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
38960 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
38961 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
38962 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
38963 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
38964 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
38965 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
38966 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
38967 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
38968 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
38969 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
38970 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
38971 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
38972 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
38973 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
38974 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
38975 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
38976 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
38977 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
38978 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
38979 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
38980 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
38981 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
38982 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
38983 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
38984 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
38985 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
38986 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
38987 { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL},
38988 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
38989 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
38990 { (char *)"GraphicsMatrix_Copy", (PyCFunction) _wrap_GraphicsMatrix_Copy, METH_VARARGS | METH_KEYWORDS, NULL},
38991 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38992 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
38993 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
38994 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
38995 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
38996 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
38997 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
38998 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38999 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
39000 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
39001 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
39002 { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL},
39003 { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL},
39004 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
39005 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
39006 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
39007 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
39008 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
39009 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
39010 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
39011 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
39012 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39013 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39014 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39015 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39016 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39017 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39018 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
39019 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
39020 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
39021 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
39022 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
39023 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
39024 { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL},
39025 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
39026 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
39027 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
39028 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39029 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
39030 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39031 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39032 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39033 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39034 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39035 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39036 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
39037 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
39038 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39039 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
39040 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
39041 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
39042 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39043 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39044 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
39045 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39046 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39047 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
39048 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
39049 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
39050 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
39051 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
39052 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
39053 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
39054 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39055 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39056 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39057 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39058 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39059 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39060 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39061 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
39062 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
39063 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
39064 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39065 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39066 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39067 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39068 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
39069 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
39070 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
39071 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
39072 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
39073 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
39074 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39075 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
39076 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39077 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39078 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39079 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39080 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39081 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39082 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
39083 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
39084 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
39085 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
39086 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
39087 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
39088 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
39089 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
39090 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
39091 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
39092 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
39093 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
39094 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
39095 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
39096 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
39097 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
39098 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
39099 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
39100 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
39101 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
39102 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
39103 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39104 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39105 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39106 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
39107 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
39108 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
39109 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
39110 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
39111 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39112 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
39113 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
39114 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
39115 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
39116 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
39117 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
39118 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39119 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39120 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39121 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39122 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39123 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
39124 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
39125 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
39126 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
39127 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
39128 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
39129 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39130 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
39131 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
39132 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
39133 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39134 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39135 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39136 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
39137 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39138 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
39139 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
39140 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
39141 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
39142 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
39143 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
39144 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
39145 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
39146 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
39147 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
39148 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
39149 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
39150 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
39151 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
39152 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
39153 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
39154 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
39155 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
39156 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
39157 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
39158 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
39159 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
39160 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39161 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
39162 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39163 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39164 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39165 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
39166 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39167 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
39168 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
39169 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
39170 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
39171 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
39172 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
39173 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
39174 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
39175 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
39176 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
39177 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
39178 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
39179 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
39180 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
39181 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
39182 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
39183 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
39184 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
39185 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
39186 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
39187 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
39188 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
39189 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
39190 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
39191 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
39192 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
39193 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
39194 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
39195 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
39196 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
39197 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
39198 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
39199 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
39200 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
39201 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
39202 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
39203 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39204 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
39205 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
39206 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
39207 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
39208 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
39209 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
39210 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
39211 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
39212 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
39213 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
39214 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
39215 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
39216 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39217 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
39218 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
39219 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
39220 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
39221 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
39222 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
39223 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
39224 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
39225 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
39226 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
39227 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
39228 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
39229 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39230 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39231 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
39232 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
39233 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39234 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39235 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39236 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
39237 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
39238 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39239 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39240 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39241 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39242 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39243 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39244 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39245 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39246 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39247 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39248 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39249 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39250 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39251 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39252 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39253 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39254 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39255 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39256 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39257 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39258 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39259 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39260 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39261 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39262 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39263 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39264 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39265 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39266 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39267 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39268 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39269 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39270 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39271 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39272 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39273 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39274 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39275 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39276 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39277 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
39278 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39279 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39280 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39281 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39282 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39283 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39284 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39285 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39286 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39287 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
39288 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
39289 { NULL, NULL, 0, NULL }
39290 };
39291
39292
39293 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
39294
39295 static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
39296 return (void *)((wxClientDC *) ((wxPaintDC *) x));
39297 }
39298 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
39299 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
39300 }
39301 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
39302 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
39303 }
39304 static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
39305 return (void *)((wxWindowDC *) ((wxClientDC *) x));
39306 }
39307 static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
39308 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
39309 }
39310 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
39311 return (void *)((wxLocale *) ((wxPyLocale *) x));
39312 }
39313 static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
39314 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
39315 }
39316 static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
39317 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
39318 }
39319 static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
39320 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39321 }
39322 static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
39323 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
39324 }
39325 static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
39326 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
39327 }
39328 static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
39329 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
39330 }
39331 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
39332 return (void *)((wxGDIObject *) ((wxIcon *) x));
39333 }
39334 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
39335 return (void *)((wxGDIObject *) ((wxPalette *) x));
39336 }
39337 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
39338 return (void *)((wxGDIObject *) ((wxPen *) x));
39339 }
39340 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
39341 return (void *)((wxGDIObject *) ((wxFont *) x));
39342 }
39343 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
39344 return (void *)((wxGDIObject *) ((wxCursor *) x));
39345 }
39346 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
39347 return (void *)((wxGDIObject *) ((wxBitmap *) x));
39348 }
39349 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
39350 return (void *)((wxGDIObject *) ((wxRegion *) x));
39351 }
39352 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
39353 return (void *)((wxGDIObject *) ((wxBrush *) x));
39354 }
39355 static void *_p_wxGCDCTo_p_wxDC(void *x) {
39356 return (void *)((wxDC *) ((wxGCDC *) x));
39357 }
39358 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
39359 return (void *)((wxDC *) ((wxScreenDC *) x));
39360 }
39361 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
39362 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
39363 }
39364 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
39365 return (void *)((wxDC *) ((wxMirrorDC *) x));
39366 }
39367 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
39368 return (void *)((wxDC *) ((wxMemoryDC *) x));
39369 }
39370 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
39371 return (void *)((wxDC *) ((wxWindowDC *) x));
39372 }
39373 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
39374 return (void *)((wxDC *) ((wxMetaFileDC *) x));
39375 }
39376 static void *_p_wxClientDCTo_p_wxDC(void *x) {
39377 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
39378 }
39379 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
39380 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39381 }
39382 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
39383 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39384 }
39385 static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
39386 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
39387 }
39388 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
39389 return (void *)((wxDC *) ((wxPostScriptDC *) x));
39390 }
39391 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
39392 return (void *)((wxDC *) ((wxPrinterDC *) x));
39393 }
39394 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
39395 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
39396 }
39397 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
39398 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
39399 }
39400 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
39401 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
39402 }
39403 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
39404 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
39405 }
39406 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
39407 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
39408 }
39409 static void *_p_wxPenTo_p_wxObject(void *x) {
39410 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
39411 }
39412 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
39413 return (void *)((wxObject *) ((wxRegionIterator *) x));
39414 }
39415 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
39416 return (void *)((wxObject *) ((wxSizerItem *) x));
39417 }
39418 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
39419 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
39420 }
39421 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
39422 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
39423 }
39424 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
39425 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
39426 }
39427 static void *_p_wxIconTo_p_wxObject(void *x) {
39428 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
39429 }
39430 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
39431 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
39432 }
39433 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
39434 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
39435 }
39436 static void *_p_wxSizerTo_p_wxObject(void *x) {
39437 return (void *)((wxObject *) ((wxSizer *) x));
39438 }
39439 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
39440 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
39441 }
39442 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
39443 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
39444 }
39445 static void *_p_wxEventTo_p_wxObject(void *x) {
39446 return (void *)((wxObject *) ((wxEvent *) x));
39447 }
39448 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
39449 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
39450 }
39451 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
39452 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
39453 }
39454 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
39455 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
39456 }
39457 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
39458 return (void *)((wxObject *) ((wxPseudoDC *) x));
39459 }
39460 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
39461 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
39462 }
39463 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
39464 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
39465 }
39466 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
39467 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
39468 }
39469 static void *_p_wxDCTo_p_wxObject(void *x) {
39470 return (void *)((wxObject *) ((wxDC *) x));
39471 }
39472 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
39473 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
39474 }
39475 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
39476 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
39477 }
39478 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
39479 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
39480 }
39481 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
39482 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
39483 }
39484 static void *_p_wxControlTo_p_wxObject(void *x) {
39485 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
39486 }
39487 static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
39488 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
39489 }
39490 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
39491 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
39492 }
39493 static void *_p_wxClientDCTo_p_wxObject(void *x) {
39494 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
39495 }
39496 static void *_p_wxFSFileTo_p_wxObject(void *x) {
39497 return (void *)((wxObject *) ((wxFSFile *) x));
39498 }
39499 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
39500 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
39501 }
39502 static void *_p_wxRegionTo_p_wxObject(void *x) {
39503 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
39504 }
39505 static void *_p_wxPySizerTo_p_wxObject(void *x) {
39506 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
39507 }
39508 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
39509 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
39510 }
39511 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
39512 return (void *)((wxObject *) ((wxGDIObject *) x));
39513 }
39514 static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
39515 return (void *)((wxObject *) ((wxGraphicsObject *) x));
39516 }
39517 static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
39518 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
39519 }
39520 static void *_p_wxEffectsTo_p_wxObject(void *x) {
39521 return (void *)((wxObject *) ((wxEffects *) x));
39522 }
39523 static void *_p_wxPyEventTo_p_wxObject(void *x) {
39524 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
39525 }
39526 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
39527 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
39528 }
39529 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
39530 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
39531 }
39532 static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
39533 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
39534 }
39535 static void *_p_wxShowEventTo_p_wxObject(void *x) {
39536 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
39537 }
39538 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
39539 return (void *)((wxObject *) ((wxMenuItem *) x));
39540 }
39541 static void *_p_wxDateEventTo_p_wxObject(void *x) {
39542 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
39543 }
39544 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
39545 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
39546 }
39547 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
39548 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
39549 }
39550 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
39551 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
39552 }
39553 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
39554 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
39555 }
39556 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
39557 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
39558 }
39559 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
39560 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
39561 }
39562 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
39563 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
39564 }
39565 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
39566 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
39567 }
39568 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
39569 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
39570 }
39571 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
39572 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
39573 }
39574 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
39575 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
39576 }
39577 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
39578 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
39579 }
39580 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
39581 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
39582 }
39583 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
39584 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
39585 }
39586 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
39587 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
39588 }
39589 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
39590 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
39591 }
39592 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
39593 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
39594 }
39595 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
39596 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
39597 }
39598 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
39599 return (void *)((wxObject *) ((wxImageHandler *) x));
39600 }
39601 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
39602 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
39603 }
39604 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
39605 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
39606 }
39607 static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
39608 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
39609 }
39610 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
39611 return (void *)((wxObject *) ((wxEvtHandler *) x));
39612 }
39613 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
39614 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
39615 }
39616 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
39617 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39618 }
39619 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
39620 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39621 }
39622 static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
39623 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
39624 }
39625 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
39626 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
39627 }
39628 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
39629 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
39630 }
39631 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
39632 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
39633 }
39634 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
39635 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
39636 }
39637 static void *_p_wxImageTo_p_wxObject(void *x) {
39638 return (void *)((wxObject *) ((wxImage *) x));
39639 }
39640 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
39641 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
39642 }
39643 static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
39644 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
39645 }
39646 static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
39647 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
39648 }
39649 static void *_p_wxPaletteTo_p_wxObject(void *x) {
39650 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
39651 }
39652 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
39653 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
39654 }
39655 static void *_p_wxImageListTo_p_wxObject(void *x) {
39656 return (void *)((wxObject *) ((wxImageList *) x));
39657 }
39658 static void *_p_wxGCDCTo_p_wxObject(void *x) {
39659 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
39660 }
39661 static void *_p_wxCursorTo_p_wxObject(void *x) {
39662 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
39663 }
39664 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
39665 return (void *)((wxObject *) ((wxEncodingConverter *) x));
39666 }
39667 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
39668 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
39669 }
39670 static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
39671 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
39672 }
39673 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
39674 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
39675 }
39676 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
39677 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
39678 }
39679 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
39680 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
39681 }
39682 static void *_p_wxWindowTo_p_wxObject(void *x) {
39683 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
39684 }
39685 static void *_p_wxMenuTo_p_wxObject(void *x) {
39686 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
39687 }
39688 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
39689 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
39690 }
39691 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
39692 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
39693 }
39694 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
39695 return (void *)((wxObject *) ((wxFileSystem *) x));
39696 }
39697 static void *_p_wxBitmapTo_p_wxObject(void *x) {
39698 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
39699 }
39700 static void *_p_wxMaskTo_p_wxObject(void *x) {
39701 return (void *)((wxObject *) ((wxMask *) x));
39702 }
39703 static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
39704 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39705 }
39706 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
39707 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
39708 }
39709 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
39710 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
39711 }
39712 static void *_p_wxPyAppTo_p_wxObject(void *x) {
39713 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
39714 }
39715 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
39716 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
39717 }
39718 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
39719 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
39720 }
39721 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
39722 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
39723 }
39724 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
39725 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
39726 }
39727 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
39728 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
39729 }
39730 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
39731 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
39732 }
39733 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
39734 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
39735 }
39736 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
39737 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
39738 }
39739 static void *_p_wxFontTo_p_wxObject(void *x) {
39740 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
39741 }
39742 static void *_p_wxBrushTo_p_wxObject(void *x) {
39743 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
39744 }
39745 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
39746 return (void *)((wxObject *) ((wxMetaFile *) x));
39747 }
39748 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
39749 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
39750 }
39751 static void *_p_wxColourTo_p_wxObject(void *x) {
39752 return (void *)((wxObject *) ((wxColour *) x));
39753 }
39754 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
39755 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
39756 }
39757 static void *_p_wxValidatorTo_p_wxObject(void *x) {
39758 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
39759 }
39760 static void *_p_wxControlTo_p_wxWindow(void *x) {
39761 return (void *)((wxWindow *) ((wxControl *) x));
39762 }
39763 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
39764 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
39765 }
39766 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
39767 return (void *)((wxWindow *) ((wxMenuBar *) x));
39768 }
39769 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
39770 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
39771 }
39772 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
39773 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
39774 }
39775 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
39776 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
39777 static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
39778 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};
39779 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
39780 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
39781 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
39782 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
39783 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
39784 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
39785 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
39786 static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
39787 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
39788 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
39789 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
39790 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
39791 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
39792 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
39793 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
39794 static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
39795 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
39796 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
39797 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
39798 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
39799 static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
39800 static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
39801 static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
39802 static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
39803 static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
39804 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
39805 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
39806 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
39807 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
39808 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
39809 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
39810 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
39811 static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
39812 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
39813 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
39814 static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
39815 static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
39816 static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
39817 static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
39818 static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
39819 static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
39820 static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
39821 static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
39822 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
39823 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
39824 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
39825 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
39826 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
39827 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
39828 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
39829 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
39830 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
39831 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
39832 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
39833 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
39834 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
39835 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
39836 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
39837 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
39838 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
39839 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
39840 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
39841 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
39842 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
39843 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
39844 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
39845 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
39846 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
39847 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
39848 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
39849 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
39850 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
39851 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
39852 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
39853 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
39854 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
39855 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
39856 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
39857 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
39858 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
39859 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
39860 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
39861 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
39862 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
39863 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
39864 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
39865 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
39866 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
39867 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
39868 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
39869 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
39870 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
39871 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
39872 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
39873 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
39874 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
39875 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
39876 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
39877 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
39878 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
39879 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
39880 static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
39881 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
39882 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
39883 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
39884 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
39885 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
39886 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
39887 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
39888 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
39889 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
39890 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
39891 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
39892 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
39893 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
39894 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
39895 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
39896 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
39897 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
39898 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
39899 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
39900 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
39901 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
39902 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
39903 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
39904 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
39905 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
39906 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
39907 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
39908 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
39909 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
39910 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
39911 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
39912 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
39913 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
39914 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
39915 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
39916 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
39917 static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
39918 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
39919 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
39920 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
39921 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
39922 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
39923 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
39924 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
39925 static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
39926 static swig_type_info _swigt__p_wxPoint2DDouble = {"_p_wxPoint2DDouble", "wxPoint2DDouble *", 0, 0, (void*)0, 0};
39927 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
39928 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
39929 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
39930 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
39931 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
39932 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
39933 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
39934 static swig_type_info _swigt__p_wxRect2DDouble = {"_p_wxRect2DDouble", "wxRect2DDouble *", 0, 0, (void*)0, 0};
39935 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
39936 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
39937 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
39938 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
39939 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
39940 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
39941 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
39942 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
39943 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
39944 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
39945 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
39946
39947 static swig_type_info *swig_type_initial[] = {
39948 &_swigt__p_buffer,
39949 &_swigt__p_char,
39950 &_swigt__p_double,
39951 &_swigt__p_form_ops_t,
39952 &_swigt__p_int,
39953 &_swigt__p_unsigned_char,
39954 &_swigt__p_unsigned_int,
39955 &_swigt__p_unsigned_long,
39956 &_swigt__p_void,
39957 &_swigt__p_wxANIHandler,
39958 &_swigt__p_wxAcceleratorTable,
39959 &_swigt__p_wxActivateEvent,
39960 &_swigt__p_wxAlphaPixelData,
39961 &_swigt__p_wxAlphaPixelData_Accessor,
39962 &_swigt__p_wxAutoBufferedPaintDC,
39963 &_swigt__p_wxBMPHandler,
39964 &_swigt__p_wxBitmap,
39965 &_swigt__p_wxBoxSizer,
39966 &_swigt__p_wxBrush,
39967 &_swigt__p_wxBrushList,
39968 &_swigt__p_wxBufferedDC,
39969 &_swigt__p_wxBufferedPaintDC,
39970 &_swigt__p_wxCURHandler,
39971 &_swigt__p_wxChar,
39972 &_swigt__p_wxChildFocusEvent,
39973 &_swigt__p_wxClientDC,
39974 &_swigt__p_wxClipboardTextEvent,
39975 &_swigt__p_wxCloseEvent,
39976 &_swigt__p_wxColor,
39977 &_swigt__p_wxColour,
39978 &_swigt__p_wxColourDatabase,
39979 &_swigt__p_wxCommandEvent,
39980 &_swigt__p_wxContextMenuEvent,
39981 &_swigt__p_wxControl,
39982 &_swigt__p_wxControlWithItems,
39983 &_swigt__p_wxCursor,
39984 &_swigt__p_wxDC,
39985 &_swigt__p_wxDCBrushChanger,
39986 &_swigt__p_wxDCClipper,
39987 &_swigt__p_wxDCOverlay,
39988 &_swigt__p_wxDCPenChanger,
39989 &_swigt__p_wxDCTextColourChanger,
39990 &_swigt__p_wxDash,
39991 &_swigt__p_wxDateEvent,
39992 &_swigt__p_wxDisplayChangedEvent,
39993 &_swigt__p_wxDropFilesEvent,
39994 &_swigt__p_wxDuplexMode,
39995 &_swigt__p_wxEffects,
39996 &_swigt__p_wxEncodingConverter,
39997 &_swigt__p_wxEraseEvent,
39998 &_swigt__p_wxEvent,
39999 &_swigt__p_wxEvtHandler,
40000 &_swigt__p_wxFSFile,
40001 &_swigt__p_wxFileSystem,
40002 &_swigt__p_wxFlexGridSizer,
40003 &_swigt__p_wxFocusEvent,
40004 &_swigt__p_wxFont,
40005 &_swigt__p_wxFontList,
40006 &_swigt__p_wxFontMapper,
40007 &_swigt__p_wxGBSizerItem,
40008 &_swigt__p_wxGCDC,
40009 &_swigt__p_wxGDIObjListBase,
40010 &_swigt__p_wxGDIObject,
40011 &_swigt__p_wxGIFHandler,
40012 &_swigt__p_wxGraphicsBrush,
40013 &_swigt__p_wxGraphicsContext,
40014 &_swigt__p_wxGraphicsFont,
40015 &_swigt__p_wxGraphicsMatrix,
40016 &_swigt__p_wxGraphicsObject,
40017 &_swigt__p_wxGraphicsPath,
40018 &_swigt__p_wxGraphicsPen,
40019 &_swigt__p_wxGraphicsRenderer,
40020 &_swigt__p_wxGridBagSizer,
40021 &_swigt__p_wxGridSizer,
40022 &_swigt__p_wxHeaderButtonParams,
40023 &_swigt__p_wxICOHandler,
40024 &_swigt__p_wxIcon,
40025 &_swigt__p_wxIconBundle,
40026 &_swigt__p_wxIconLocation,
40027 &_swigt__p_wxIconizeEvent,
40028 &_swigt__p_wxIdleEvent,
40029 &_swigt__p_wxImage,
40030 &_swigt__p_wxImageHandler,
40031 &_swigt__p_wxImageList,
40032 &_swigt__p_wxIndividualLayoutConstraint,
40033 &_swigt__p_wxInitDialogEvent,
40034 &_swigt__p_wxJPEGHandler,
40035 &_swigt__p_wxKeyEvent,
40036 &_swigt__p_wxLanguageInfo,
40037 &_swigt__p_wxLayoutConstraints,
40038 &_swigt__p_wxLocale,
40039 &_swigt__p_wxMask,
40040 &_swigt__p_wxMaximizeEvent,
40041 &_swigt__p_wxMemoryDC,
40042 &_swigt__p_wxMenu,
40043 &_swigt__p_wxMenuBar,
40044 &_swigt__p_wxMenuEvent,
40045 &_swigt__p_wxMenuItem,
40046 &_swigt__p_wxMetaFile,
40047 &_swigt__p_wxMetaFileDC,
40048 &_swigt__p_wxMirrorDC,
40049 &_swigt__p_wxMouseCaptureChangedEvent,
40050 &_swigt__p_wxMouseCaptureLostEvent,
40051 &_swigt__p_wxMouseEvent,
40052 &_swigt__p_wxMoveEvent,
40053 &_swigt__p_wxNativeEncodingInfo,
40054 &_swigt__p_wxNativeFontInfo,
40055 &_swigt__p_wxNativePixelData,
40056 &_swigt__p_wxNativePixelData_Accessor,
40057 &_swigt__p_wxNavigationKeyEvent,
40058 &_swigt__p_wxNcPaintEvent,
40059 &_swigt__p_wxNotifyEvent,
40060 &_swigt__p_wxObject,
40061 &_swigt__p_wxOverlay,
40062 &_swigt__p_wxPCXHandler,
40063 &_swigt__p_wxPNGHandler,
40064 &_swigt__p_wxPNMHandler,
40065 &_swigt__p_wxPaintDC,
40066 &_swigt__p_wxPaintEvent,
40067 &_swigt__p_wxPalette,
40068 &_swigt__p_wxPaletteChangedEvent,
40069 &_swigt__p_wxPaperSize,
40070 &_swigt__p_wxPen,
40071 &_swigt__p_wxPenList,
40072 &_swigt__p_wxPixelDataBase,
40073 &_swigt__p_wxPoint,
40074 &_swigt__p_wxPoint2D,
40075 &_swigt__p_wxPoint2DDouble,
40076 &_swigt__p_wxPostScriptDC,
40077 &_swigt__p_wxPrintData,
40078 &_swigt__p_wxPrinterDC,
40079 &_swigt__p_wxPseudoDC,
40080 &_swigt__p_wxPyApp,
40081 &_swigt__p_wxPyCommandEvent,
40082 &_swigt__p_wxPyEvent,
40083 &_swigt__p_wxPyFontEnumerator,
40084 &_swigt__p_wxPyImageHandler,
40085 &_swigt__p_wxPyLocale,
40086 &_swigt__p_wxPySizer,
40087 &_swigt__p_wxPyValidator,
40088 &_swigt__p_wxQueryNewPaletteEvent,
40089 &_swigt__p_wxRect,
40090 &_swigt__p_wxRect2DDouble,
40091 &_swigt__p_wxRegion,
40092 &_swigt__p_wxRegionIterator,
40093 &_swigt__p_wxRendererNative,
40094 &_swigt__p_wxRendererVersion,
40095 &_swigt__p_wxScreenDC,
40096 &_swigt__p_wxScrollEvent,
40097 &_swigt__p_wxScrollWinEvent,
40098 &_swigt__p_wxSetCursorEvent,
40099 &_swigt__p_wxShowEvent,
40100 &_swigt__p_wxSize,
40101 &_swigt__p_wxSizeEvent,
40102 &_swigt__p_wxSizer,
40103 &_swigt__p_wxSizerItem,
40104 &_swigt__p_wxSplitterRenderParams,
40105 &_swigt__p_wxStaticBoxSizer,
40106 &_swigt__p_wxStdDialogButtonSizer,
40107 &_swigt__p_wxStockGDI,
40108 &_swigt__p_wxString,
40109 &_swigt__p_wxSysColourChangedEvent,
40110 &_swigt__p_wxTGAHandler,
40111 &_swigt__p_wxTIFFHandler,
40112 &_swigt__p_wxUpdateUIEvent,
40113 &_swigt__p_wxValidator,
40114 &_swigt__p_wxWindow,
40115 &_swigt__p_wxWindowCreateEvent,
40116 &_swigt__p_wxWindowDC,
40117 &_swigt__p_wxWindowDestroyEvent,
40118 &_swigt__p_wxXPMHandler,
40119 };
40120
40121 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
40122 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
40123 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
40124 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
40125 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
40126 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
40127 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
40128 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
40129 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
40130 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
40131 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
40132 static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40133 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
40134 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
40135 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
40136 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}};
40137 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40138 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
40139 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}};
40140 static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
40141 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
40142 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
40143 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
40144 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}};
40145 static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
40146 static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
40147 static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
40148 static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
40149 static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
40150 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
40151 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
40152 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
40153 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
40154 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
40155 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
40156 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
40157 static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
40158 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}};
40159 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}};
40160 static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
40161 static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
40162 static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
40163 static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
40164 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}};
40165 static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
40166 static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
40167 static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
40168 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
40169 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
40170 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
40171 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
40172 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
40173 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
40174 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
40175 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}};
40176 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
40177 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}};
40178 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
40179 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
40180 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
40181 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
40182 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
40183 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
40184 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
40185 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
40186 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
40187 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
40188 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
40189 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
40190 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40191 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40192 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
40193 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
40194 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
40195 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
40196 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
40197 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40198 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40199 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
40200 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
40201 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40202 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40203 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40204 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40205 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40206 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40207 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
40208 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
40209 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
40210 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
40211 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
40212 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
40213 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
40214 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
40215 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
40216 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
40217 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
40218 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
40219 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40220 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40221 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40222 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
40223 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
40224 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
40225 static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
40226 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
40227 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
40228 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40229 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40230 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
40231 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
40232 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
40233 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
40234 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
40235 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
40236 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
40237 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
40238 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
40239 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
40240 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
40241 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
40242 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
40243 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
40244 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40245 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40246 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
40247 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
40248 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40249 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40250 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
40251 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
40252 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
40253 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
40254 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40255 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40256 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
40257 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40258 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40259 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
40260 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
40261 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
40262 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxPseudoDC, _p_wxPseudoDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPen, _p_wxGraphicsPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsObject, _p_wxGraphicsObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPath, _p_wxGraphicsPathTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsContext, _p_wxGraphicsContextTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsBrush, _p_wxGraphicsBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsRenderer, _p_wxGraphicsRendererTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageList, _p_wxImageListTo_p_wxObject, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxGraphicsFont, _p_wxGraphicsFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxEncodingConverter, _p_wxEncodingConverterTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsMatrix, _p_wxGraphicsMatrixTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFile, _p_wxMetaFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxColour, _p_wxColourTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
40263 static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
40264 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40265 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
40266 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
40267 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
40268 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
40269 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}};
40270 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
40271 static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
40272 static swig_cast_info _swigc__p_wxPoint2DDouble[] = { {&_swigt__p_wxPoint2DDouble, 0, 0, 0},{0, 0, 0, 0}};
40273 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
40274 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
40275 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
40276 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
40277 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
40278 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
40279 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
40280 static swig_cast_info _swigc__p_wxRect2DDouble[] = { {&_swigt__p_wxRect2DDouble, 0, 0, 0},{0, 0, 0, 0}};
40281 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
40282 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
40283 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
40284 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
40285 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
40286 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
40287 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
40288 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
40289 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
40290 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}};
40291 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxWindowDC, 0, 0},{0, 0, 0, 0}};
40292
40293 static swig_cast_info *swig_cast_initial[] = {
40294 _swigc__p_buffer,
40295 _swigc__p_char,
40296 _swigc__p_double,
40297 _swigc__p_form_ops_t,
40298 _swigc__p_int,
40299 _swigc__p_unsigned_char,
40300 _swigc__p_unsigned_int,
40301 _swigc__p_unsigned_long,
40302 _swigc__p_void,
40303 _swigc__p_wxANIHandler,
40304 _swigc__p_wxAcceleratorTable,
40305 _swigc__p_wxActivateEvent,
40306 _swigc__p_wxAlphaPixelData,
40307 _swigc__p_wxAlphaPixelData_Accessor,
40308 _swigc__p_wxAutoBufferedPaintDC,
40309 _swigc__p_wxBMPHandler,
40310 _swigc__p_wxBitmap,
40311 _swigc__p_wxBoxSizer,
40312 _swigc__p_wxBrush,
40313 _swigc__p_wxBrushList,
40314 _swigc__p_wxBufferedDC,
40315 _swigc__p_wxBufferedPaintDC,
40316 _swigc__p_wxCURHandler,
40317 _swigc__p_wxChar,
40318 _swigc__p_wxChildFocusEvent,
40319 _swigc__p_wxClientDC,
40320 _swigc__p_wxClipboardTextEvent,
40321 _swigc__p_wxCloseEvent,
40322 _swigc__p_wxColor,
40323 _swigc__p_wxColour,
40324 _swigc__p_wxColourDatabase,
40325 _swigc__p_wxCommandEvent,
40326 _swigc__p_wxContextMenuEvent,
40327 _swigc__p_wxControl,
40328 _swigc__p_wxControlWithItems,
40329 _swigc__p_wxCursor,
40330 _swigc__p_wxDC,
40331 _swigc__p_wxDCBrushChanger,
40332 _swigc__p_wxDCClipper,
40333 _swigc__p_wxDCOverlay,
40334 _swigc__p_wxDCPenChanger,
40335 _swigc__p_wxDCTextColourChanger,
40336 _swigc__p_wxDash,
40337 _swigc__p_wxDateEvent,
40338 _swigc__p_wxDisplayChangedEvent,
40339 _swigc__p_wxDropFilesEvent,
40340 _swigc__p_wxDuplexMode,
40341 _swigc__p_wxEffects,
40342 _swigc__p_wxEncodingConverter,
40343 _swigc__p_wxEraseEvent,
40344 _swigc__p_wxEvent,
40345 _swigc__p_wxEvtHandler,
40346 _swigc__p_wxFSFile,
40347 _swigc__p_wxFileSystem,
40348 _swigc__p_wxFlexGridSizer,
40349 _swigc__p_wxFocusEvent,
40350 _swigc__p_wxFont,
40351 _swigc__p_wxFontList,
40352 _swigc__p_wxFontMapper,
40353 _swigc__p_wxGBSizerItem,
40354 _swigc__p_wxGCDC,
40355 _swigc__p_wxGDIObjListBase,
40356 _swigc__p_wxGDIObject,
40357 _swigc__p_wxGIFHandler,
40358 _swigc__p_wxGraphicsBrush,
40359 _swigc__p_wxGraphicsContext,
40360 _swigc__p_wxGraphicsFont,
40361 _swigc__p_wxGraphicsMatrix,
40362 _swigc__p_wxGraphicsObject,
40363 _swigc__p_wxGraphicsPath,
40364 _swigc__p_wxGraphicsPen,
40365 _swigc__p_wxGraphicsRenderer,
40366 _swigc__p_wxGridBagSizer,
40367 _swigc__p_wxGridSizer,
40368 _swigc__p_wxHeaderButtonParams,
40369 _swigc__p_wxICOHandler,
40370 _swigc__p_wxIcon,
40371 _swigc__p_wxIconBundle,
40372 _swigc__p_wxIconLocation,
40373 _swigc__p_wxIconizeEvent,
40374 _swigc__p_wxIdleEvent,
40375 _swigc__p_wxImage,
40376 _swigc__p_wxImageHandler,
40377 _swigc__p_wxImageList,
40378 _swigc__p_wxIndividualLayoutConstraint,
40379 _swigc__p_wxInitDialogEvent,
40380 _swigc__p_wxJPEGHandler,
40381 _swigc__p_wxKeyEvent,
40382 _swigc__p_wxLanguageInfo,
40383 _swigc__p_wxLayoutConstraints,
40384 _swigc__p_wxLocale,
40385 _swigc__p_wxMask,
40386 _swigc__p_wxMaximizeEvent,
40387 _swigc__p_wxMemoryDC,
40388 _swigc__p_wxMenu,
40389 _swigc__p_wxMenuBar,
40390 _swigc__p_wxMenuEvent,
40391 _swigc__p_wxMenuItem,
40392 _swigc__p_wxMetaFile,
40393 _swigc__p_wxMetaFileDC,
40394 _swigc__p_wxMirrorDC,
40395 _swigc__p_wxMouseCaptureChangedEvent,
40396 _swigc__p_wxMouseCaptureLostEvent,
40397 _swigc__p_wxMouseEvent,
40398 _swigc__p_wxMoveEvent,
40399 _swigc__p_wxNativeEncodingInfo,
40400 _swigc__p_wxNativeFontInfo,
40401 _swigc__p_wxNativePixelData,
40402 _swigc__p_wxNativePixelData_Accessor,
40403 _swigc__p_wxNavigationKeyEvent,
40404 _swigc__p_wxNcPaintEvent,
40405 _swigc__p_wxNotifyEvent,
40406 _swigc__p_wxObject,
40407 _swigc__p_wxOverlay,
40408 _swigc__p_wxPCXHandler,
40409 _swigc__p_wxPNGHandler,
40410 _swigc__p_wxPNMHandler,
40411 _swigc__p_wxPaintDC,
40412 _swigc__p_wxPaintEvent,
40413 _swigc__p_wxPalette,
40414 _swigc__p_wxPaletteChangedEvent,
40415 _swigc__p_wxPaperSize,
40416 _swigc__p_wxPen,
40417 _swigc__p_wxPenList,
40418 _swigc__p_wxPixelDataBase,
40419 _swigc__p_wxPoint,
40420 _swigc__p_wxPoint2D,
40421 _swigc__p_wxPoint2DDouble,
40422 _swigc__p_wxPostScriptDC,
40423 _swigc__p_wxPrintData,
40424 _swigc__p_wxPrinterDC,
40425 _swigc__p_wxPseudoDC,
40426 _swigc__p_wxPyApp,
40427 _swigc__p_wxPyCommandEvent,
40428 _swigc__p_wxPyEvent,
40429 _swigc__p_wxPyFontEnumerator,
40430 _swigc__p_wxPyImageHandler,
40431 _swigc__p_wxPyLocale,
40432 _swigc__p_wxPySizer,
40433 _swigc__p_wxPyValidator,
40434 _swigc__p_wxQueryNewPaletteEvent,
40435 _swigc__p_wxRect,
40436 _swigc__p_wxRect2DDouble,
40437 _swigc__p_wxRegion,
40438 _swigc__p_wxRegionIterator,
40439 _swigc__p_wxRendererNative,
40440 _swigc__p_wxRendererVersion,
40441 _swigc__p_wxScreenDC,
40442 _swigc__p_wxScrollEvent,
40443 _swigc__p_wxScrollWinEvent,
40444 _swigc__p_wxSetCursorEvent,
40445 _swigc__p_wxShowEvent,
40446 _swigc__p_wxSize,
40447 _swigc__p_wxSizeEvent,
40448 _swigc__p_wxSizer,
40449 _swigc__p_wxSizerItem,
40450 _swigc__p_wxSplitterRenderParams,
40451 _swigc__p_wxStaticBoxSizer,
40452 _swigc__p_wxStdDialogButtonSizer,
40453 _swigc__p_wxStockGDI,
40454 _swigc__p_wxString,
40455 _swigc__p_wxSysColourChangedEvent,
40456 _swigc__p_wxTGAHandler,
40457 _swigc__p_wxTIFFHandler,
40458 _swigc__p_wxUpdateUIEvent,
40459 _swigc__p_wxValidator,
40460 _swigc__p_wxWindow,
40461 _swigc__p_wxWindowCreateEvent,
40462 _swigc__p_wxWindowDC,
40463 _swigc__p_wxWindowDestroyEvent,
40464 _swigc__p_wxXPMHandler,
40465 };
40466
40467
40468 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
40469
40470 static swig_const_info swig_const_table[] = {
40471 {0, 0, 0, 0.0, 0, 0}};
40472
40473 #ifdef __cplusplus
40474 }
40475 #endif
40476 /* -----------------------------------------------------------------------------
40477 * Type initialization:
40478 * This problem is tough by the requirement that no dynamic
40479 * memory is used. Also, since swig_type_info structures store pointers to
40480 * swig_cast_info structures and swig_cast_info structures store pointers back
40481 * to swig_type_info structures, we need some lookup code at initialization.
40482 * The idea is that swig generates all the structures that are needed.
40483 * The runtime then collects these partially filled structures.
40484 * The SWIG_InitializeModule function takes these initial arrays out of
40485 * swig_module, and does all the lookup, filling in the swig_module.types
40486 * array with the correct data and linking the correct swig_cast_info
40487 * structures together.
40488 *
40489 * The generated swig_type_info structures are assigned staticly to an initial
40490 * array. We just loop though that array, and handle each type individually.
40491 * First we lookup if this type has been already loaded, and if so, use the
40492 * loaded structure instead of the generated one. Then we have to fill in the
40493 * cast linked list. The cast data is initially stored in something like a
40494 * two-dimensional array. Each row corresponds to a type (there are the same
40495 * number of rows as there are in the swig_type_initial array). Each entry in
40496 * a column is one of the swig_cast_info structures for that type.
40497 * The cast_initial array is actually an array of arrays, because each row has
40498 * a variable number of columns. So to actually build the cast linked list,
40499 * we find the array of casts associated with the type, and loop through it
40500 * adding the casts to the list. The one last trick we need to do is making
40501 * sure the type pointer in the swig_cast_info struct is correct.
40502 *
40503 * First off, we lookup the cast->type name to see if it is already loaded.
40504 * There are three cases to handle:
40505 * 1) If the cast->type has already been loaded AND the type we are adding
40506 * casting info to has not been loaded (it is in this module), THEN we
40507 * replace the cast->type pointer with the type pointer that has already
40508 * been loaded.
40509 * 2) If BOTH types (the one we are adding casting info to, and the
40510 * cast->type) are loaded, THEN the cast info has already been loaded by
40511 * the previous module so we just ignore it.
40512 * 3) Finally, if cast->type has not already been loaded, then we add that
40513 * swig_cast_info to the linked list (because the cast->type) pointer will
40514 * be correct.
40515 * ----------------------------------------------------------------------------- */
40516
40517 #ifdef __cplusplus
40518 extern "C" {
40519 #if 0
40520 } /* c-mode */
40521 #endif
40522 #endif
40523
40524 #if 0
40525 #define SWIGRUNTIME_DEBUG
40526 #endif
40527
40528 SWIGRUNTIME void
40529 SWIG_InitializeModule(void *clientdata) {
40530 size_t i;
40531 swig_module_info *module_head;
40532 static int init_run = 0;
40533
40534 clientdata = clientdata;
40535
40536 if (init_run) return;
40537 init_run = 1;
40538
40539 /* Initialize the swig_module */
40540 swig_module.type_initial = swig_type_initial;
40541 swig_module.cast_initial = swig_cast_initial;
40542
40543 /* Try and load any already created modules */
40544 module_head = SWIG_GetModule(clientdata);
40545 if (module_head) {
40546 swig_module.next = module_head->next;
40547 module_head->next = &swig_module;
40548 } else {
40549 /* This is the first module loaded */
40550 swig_module.next = &swig_module;
40551 SWIG_SetModule(clientdata, &swig_module);
40552 }
40553
40554 /* Now work on filling in swig_module.types */
40555 #ifdef SWIGRUNTIME_DEBUG
40556 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
40557 #endif
40558 for (i = 0; i < swig_module.size; ++i) {
40559 swig_type_info *type = 0;
40560 swig_type_info *ret;
40561 swig_cast_info *cast;
40562
40563 #ifdef SWIGRUNTIME_DEBUG
40564 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40565 #endif
40566
40567 /* if there is another module already loaded */
40568 if (swig_module.next != &swig_module) {
40569 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
40570 }
40571 if (type) {
40572 /* Overwrite clientdata field */
40573 #ifdef SWIGRUNTIME_DEBUG
40574 printf("SWIG_InitializeModule: found type %s\n", type->name);
40575 #endif
40576 if (swig_module.type_initial[i]->clientdata) {
40577 type->clientdata = swig_module.type_initial[i]->clientdata;
40578 #ifdef SWIGRUNTIME_DEBUG
40579 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
40580 #endif
40581 }
40582 } else {
40583 type = swig_module.type_initial[i];
40584 }
40585
40586 /* Insert casting types */
40587 cast = swig_module.cast_initial[i];
40588 while (cast->type) {
40589 /* Don't need to add information already in the list */
40590 ret = 0;
40591 #ifdef SWIGRUNTIME_DEBUG
40592 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
40593 #endif
40594 if (swig_module.next != &swig_module) {
40595 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
40596 #ifdef SWIGRUNTIME_DEBUG
40597 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
40598 #endif
40599 }
40600 if (ret) {
40601 if (type == swig_module.type_initial[i]) {
40602 #ifdef SWIGRUNTIME_DEBUG
40603 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
40604 #endif
40605 cast->type = ret;
40606 ret = 0;
40607 } else {
40608 /* Check for casting already in the list */
40609 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
40610 #ifdef SWIGRUNTIME_DEBUG
40611 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
40612 #endif
40613 if (!ocast) ret = 0;
40614 }
40615 }
40616
40617 if (!ret) {
40618 #ifdef SWIGRUNTIME_DEBUG
40619 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
40620 #endif
40621 if (type->cast) {
40622 type->cast->prev = cast;
40623 cast->next = type->cast;
40624 }
40625 type->cast = cast;
40626 }
40627 cast++;
40628 }
40629 /* Set entry in modules->types array equal to the type */
40630 swig_module.types[i] = type;
40631 }
40632 swig_module.types[i] = 0;
40633
40634 #ifdef SWIGRUNTIME_DEBUG
40635 printf("**** SWIG_InitializeModule: Cast List ******\n");
40636 for (i = 0; i < swig_module.size; ++i) {
40637 int j = 0;
40638 swig_cast_info *cast = swig_module.cast_initial[i];
40639 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40640 while (cast->type) {
40641 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
40642 cast++;
40643 ++j;
40644 }
40645 printf("---- Total casts: %d\n",j);
40646 }
40647 printf("**** SWIG_InitializeModule: Cast List ******\n");
40648 #endif
40649 }
40650
40651 /* This function will propagate the clientdata field of type to
40652 * any new swig_type_info structures that have been added into the list
40653 * of equivalent types. It is like calling
40654 * SWIG_TypeClientData(type, clientdata) a second time.
40655 */
40656 SWIGRUNTIME void
40657 SWIG_PropagateClientData(void) {
40658 size_t i;
40659 swig_cast_info *equiv;
40660 static int init_run = 0;
40661
40662 if (init_run) return;
40663 init_run = 1;
40664
40665 for (i = 0; i < swig_module.size; i++) {
40666 if (swig_module.types[i]->clientdata) {
40667 equiv = swig_module.types[i]->cast;
40668 while (equiv) {
40669 if (!equiv->converter) {
40670 if (equiv->type && !equiv->type->clientdata)
40671 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
40672 }
40673 equiv = equiv->next;
40674 }
40675 }
40676 }
40677 }
40678
40679 #ifdef __cplusplus
40680 #if 0
40681 {
40682 /* c-mode */
40683 #endif
40684 }
40685 #endif
40686
40687
40688
40689 #ifdef __cplusplus
40690 extern "C" {
40691 #endif
40692
40693 /* Python-specific SWIG API */
40694 #define SWIG_newvarlink() SWIG_Python_newvarlink()
40695 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
40696 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
40697
40698 /* -----------------------------------------------------------------------------
40699 * global variable support code.
40700 * ----------------------------------------------------------------------------- */
40701
40702 typedef struct swig_globalvar {
40703 char *name; /* Name of global variable */
40704 PyObject *(*get_attr)(void); /* Return the current value */
40705 int (*set_attr)(PyObject *); /* Set the value */
40706 struct swig_globalvar *next;
40707 } swig_globalvar;
40708
40709 typedef struct swig_varlinkobject {
40710 PyObject_HEAD
40711 swig_globalvar *vars;
40712 } swig_varlinkobject;
40713
40714 SWIGINTERN PyObject *
40715 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
40716 return PyString_FromString("<Swig global variables>");
40717 }
40718
40719 SWIGINTERN PyObject *
40720 swig_varlink_str(swig_varlinkobject *v) {
40721 PyObject *str = PyString_FromString("(");
40722 swig_globalvar *var;
40723 for (var = v->vars; var; var=var->next) {
40724 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
40725 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
40726 }
40727 PyString_ConcatAndDel(&str,PyString_FromString(")"));
40728 return str;
40729 }
40730
40731 SWIGINTERN int
40732 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
40733 PyObject *str = swig_varlink_str(v);
40734 fprintf(fp,"Swig global variables ");
40735 fprintf(fp,"%s\n", PyString_AsString(str));
40736 Py_DECREF(str);
40737 return 0;
40738 }
40739
40740 SWIGINTERN void
40741 swig_varlink_dealloc(swig_varlinkobject *v) {
40742 swig_globalvar *var = v->vars;
40743 while (var) {
40744 swig_globalvar *n = var->next;
40745 free(var->name);
40746 free(var);
40747 var = n;
40748 }
40749 }
40750
40751 SWIGINTERN PyObject *
40752 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
40753 PyObject *res = NULL;
40754 swig_globalvar *var = v->vars;
40755 while (var) {
40756 if (strcmp(var->name,n) == 0) {
40757 res = (*var->get_attr)();
40758 break;
40759 }
40760 var = var->next;
40761 }
40762 if (res == NULL && !PyErr_Occurred()) {
40763 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
40764 }
40765 return res;
40766 }
40767
40768 SWIGINTERN int
40769 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
40770 int res = 1;
40771 swig_globalvar *var = v->vars;
40772 while (var) {
40773 if (strcmp(var->name,n) == 0) {
40774 res = (*var->set_attr)(p);
40775 break;
40776 }
40777 var = var->next;
40778 }
40779 if (res == 1 && !PyErr_Occurred()) {
40780 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
40781 }
40782 return res;
40783 }
40784
40785 SWIGINTERN PyTypeObject*
40786 swig_varlink_type(void) {
40787 static char varlink__doc__[] = "Swig var link object";
40788 static PyTypeObject varlink_type;
40789 static int type_init = 0;
40790 if (!type_init) {
40791 const PyTypeObject tmp
40792 = {
40793 PyObject_HEAD_INIT(NULL)
40794 0, /* Number of items in variable part (ob_size) */
40795 (char *)"swigvarlink", /* Type name (tp_name) */
40796 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
40797 0, /* Itemsize (tp_itemsize) */
40798 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
40799 (printfunc) swig_varlink_print, /* Print (tp_print) */
40800 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
40801 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
40802 0, /* tp_compare */
40803 (reprfunc) swig_varlink_repr, /* tp_repr */
40804 0, /* tp_as_number */
40805 0, /* tp_as_sequence */
40806 0, /* tp_as_mapping */
40807 0, /* tp_hash */
40808 0, /* tp_call */
40809 (reprfunc)swig_varlink_str, /* tp_str */
40810 0, /* tp_getattro */
40811 0, /* tp_setattro */
40812 0, /* tp_as_buffer */
40813 0, /* tp_flags */
40814 varlink__doc__, /* tp_doc */
40815 0, /* tp_traverse */
40816 0, /* tp_clear */
40817 0, /* tp_richcompare */
40818 0, /* tp_weaklistoffset */
40819 #if PY_VERSION_HEX >= 0x02020000
40820 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
40821 #endif
40822 #if PY_VERSION_HEX >= 0x02030000
40823 0, /* tp_del */
40824 #endif
40825 #ifdef COUNT_ALLOCS
40826 0,0,0,0 /* tp_alloc -> tp_next */
40827 #endif
40828 };
40829 varlink_type = tmp;
40830 varlink_type.ob_type = &PyType_Type;
40831 type_init = 1;
40832 }
40833 return &varlink_type;
40834 }
40835
40836 /* Create a variable linking object for use later */
40837 SWIGINTERN PyObject *
40838 SWIG_Python_newvarlink(void) {
40839 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
40840 if (result) {
40841 result->vars = 0;
40842 }
40843 return ((PyObject*) result);
40844 }
40845
40846 SWIGINTERN void
40847 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
40848 swig_varlinkobject *v = (swig_varlinkobject *) p;
40849 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
40850 if (gv) {
40851 size_t size = strlen(name)+1;
40852 gv->name = (char *)malloc(size);
40853 if (gv->name) {
40854 strncpy(gv->name,name,size);
40855 gv->get_attr = get_attr;
40856 gv->set_attr = set_attr;
40857 gv->next = v->vars;
40858 }
40859 }
40860 v->vars = gv;
40861 }
40862
40863 SWIGINTERN PyObject *
40864 SWIG_globals() {
40865 static PyObject *_SWIG_globals = 0;
40866 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
40867 return _SWIG_globals;
40868 }
40869
40870 /* -----------------------------------------------------------------------------
40871 * constants/methods manipulation
40872 * ----------------------------------------------------------------------------- */
40873
40874 /* Install Constants */
40875 SWIGINTERN void
40876 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
40877 PyObject *obj = 0;
40878 size_t i;
40879 for (i = 0; constants[i].type; ++i) {
40880 switch(constants[i].type) {
40881 case SWIG_PY_POINTER:
40882 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
40883 break;
40884 case SWIG_PY_BINARY:
40885 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
40886 break;
40887 default:
40888 obj = 0;
40889 break;
40890 }
40891 if (obj) {
40892 PyDict_SetItemString(d, constants[i].name, obj);
40893 Py_DECREF(obj);
40894 }
40895 }
40896 }
40897
40898 /* -----------------------------------------------------------------------------*/
40899 /* Fix SwigMethods to carry the callback ptrs when needed */
40900 /* -----------------------------------------------------------------------------*/
40901
40902 SWIGINTERN void
40903 SWIG_Python_FixMethods(PyMethodDef *methods,
40904 swig_const_info *const_table,
40905 swig_type_info **types,
40906 swig_type_info **types_initial) {
40907 size_t i;
40908 for (i = 0; methods[i].ml_name; ++i) {
40909 const char *c = methods[i].ml_doc;
40910 if (c && (c = strstr(c, "swig_ptr: "))) {
40911 int j;
40912 swig_const_info *ci = 0;
40913 const char *name = c + 10;
40914 for (j = 0; const_table[j].type; ++j) {
40915 if (strncmp(const_table[j].name, name,
40916 strlen(const_table[j].name)) == 0) {
40917 ci = &(const_table[j]);
40918 break;
40919 }
40920 }
40921 if (ci) {
40922 size_t shift = (ci->ptype) - types;
40923 swig_type_info *ty = types_initial[shift];
40924 size_t ldoc = (c - methods[i].ml_doc);
40925 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
40926 char *ndoc = (char*)malloc(ldoc + lptr + 10);
40927 if (ndoc) {
40928 char *buff = ndoc;
40929 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
40930 if (ptr) {
40931 strncpy(buff, methods[i].ml_doc, ldoc);
40932 buff += ldoc;
40933 strncpy(buff, "swig_ptr: ", 10);
40934 buff += 10;
40935 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
40936 methods[i].ml_doc = ndoc;
40937 }
40938 }
40939 }
40940 }
40941 }
40942 }
40943
40944 #ifdef __cplusplus
40945 }
40946 #endif
40947
40948 /* -----------------------------------------------------------------------------*
40949 * Partial Init method
40950 * -----------------------------------------------------------------------------*/
40951
40952 #ifdef __cplusplus
40953 extern "C"
40954 #endif
40955 SWIGEXPORT void SWIG_init(void) {
40956 PyObject *m, *d;
40957
40958 /* Fix SwigMethods to carry the callback ptrs when needed */
40959 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
40960
40961 m = Py_InitModule((char *) SWIG_name, SwigMethods);
40962 d = PyModule_GetDict(m);
40963
40964 SWIG_InitializeModule(0);
40965 SWIG_InstallConstants(d,swig_const_table);
40966
40967
40968 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
40969 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
40970 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
40971 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
40972 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
40973 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
40974 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
40975 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
40976 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
40977 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
40978 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
40979 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
40980 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
40981 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
40982 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
40983 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
40984 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
40985 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
40986 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
40987 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
40988 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
40989 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
40990 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
40991 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
40992 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
40993 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
40994 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
40995 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
40996 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
40997 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
40998 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
40999 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
41000 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
41001 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
41002 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
41003 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
41004 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
41005 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
41006 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
41007 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
41008 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
41009 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
41010 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
41011 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
41012 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
41013 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
41014 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
41015 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
41016 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
41017 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
41018 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
41019 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
41020 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
41021 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
41022 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
41023 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
41024 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
41025 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
41026 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
41027 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
41028 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
41029 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
41030 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
41031 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
41032 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
41033 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
41034 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
41035 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
41036 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
41037 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
41038 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
41039 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
41040 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
41041 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
41042 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
41043 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
41044 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
41045 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
41046 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
41047 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
41048 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
41049 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
41050 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
41051 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
41052 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
41053 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
41054 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
41055 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
41056 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
41057 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
41058 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
41059 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
41060 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
41061 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
41062 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
41063 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
41064 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
41065 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
41066 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
41067 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
41068 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
41069 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
41070 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
41071 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
41072 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
41073 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
41074 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
41075 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
41076 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
41077 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
41078 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
41079 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
41080 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
41081 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
41082 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
41083 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
41084 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
41085 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
41086 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
41087 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
41088 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
41089 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
41090 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
41091 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
41092 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
41093 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
41094 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
41095 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
41096 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
41097 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
41098 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
41099 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
41100
41101 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
41102
41103 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
41104 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
41105 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
41106 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
41107 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
41108 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
41109 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
41110 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
41111 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
41112 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
41113 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
41114 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
41115 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
41116 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
41117 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
41118 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
41119 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
41120 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
41121 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
41122 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
41123 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
41124 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
41125 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
41126 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
41127 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
41128 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
41129 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
41130 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
41131 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
41132 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
41133 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
41134 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
41135 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
41136 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
41137 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
41138 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
41139 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
41140 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
41141 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
41142 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
41143 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
41144 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
41145 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
41146 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
41147 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
41148 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
41149 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
41150 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
41151 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
41152 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
41153 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
41154 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
41155 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
41156 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
41157 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
41158 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
41159 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
41160 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
41161 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
41162 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
41163 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
41164 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
41165 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
41166 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
41167 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
41168 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
41169 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
41170 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
41171 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
41172 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
41173 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
41174 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
41175 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
41176 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
41177 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
41178 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
41179 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
41180 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
41181 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
41182 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
41183 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
41184 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
41185 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
41186 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
41187 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
41188 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
41189 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
41190 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
41191 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
41192 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
41193 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
41194 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
41195 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
41196 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
41197 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
41198 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
41199 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
41200 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
41201 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
41202 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
41203 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
41204 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
41205 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
41206 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
41207 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
41208 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
41209 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
41210 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
41211 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
41212 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
41213 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
41214 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
41215 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
41216 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
41217 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
41218 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
41219 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
41220 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
41221 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
41222 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
41223 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
41224 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
41225 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
41226 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
41227 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
41228 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
41229 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
41230 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
41231 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
41232 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
41233 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
41234 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
41235 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
41236 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
41237 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
41238 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
41239 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
41240 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
41241 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
41242 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
41243 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
41244 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
41245 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
41246 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
41247 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
41248 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
41249 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
41250 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
41251 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
41252 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
41253 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
41254 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
41255 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
41256 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
41257 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
41258 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
41259 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
41260 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
41261 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
41262 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
41263 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
41264 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
41265 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
41266 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
41267 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
41268 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
41269 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
41270 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
41271 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
41272 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
41273 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
41274 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
41275 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
41276 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
41277 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
41278 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
41279 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
41280 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
41281 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
41282 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
41283 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
41284 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
41285 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
41286 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
41287 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
41288 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
41289 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
41290 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
41291 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
41292 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
41293 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
41294 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
41295 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
41296 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
41297 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
41298 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
41299 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
41300 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
41301 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
41302 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
41303 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
41304 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
41305 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
41306 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
41307 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
41308 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
41309 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
41310 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
41311 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
41312 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
41313 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
41314 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
41315 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
41316 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
41317 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
41318 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
41319 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
41320 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
41321 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
41322 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
41323 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
41324 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
41325 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
41326 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
41327 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
41328 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
41329 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
41330 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
41331 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
41332 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
41333 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
41334 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
41335 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
41336 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
41337 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
41338 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
41339 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
41340 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
41341 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
41342 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
41343 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
41344 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
41345 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
41346 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
41347 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
41348 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
41349 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
41350 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
41351 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
41352 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
41353 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
41354 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
41355 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
41356 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
41357 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
41358 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
41359 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
41360 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
41361 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
41362 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
41363 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
41364 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
41365 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
41366 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
41367 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
41368 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
41369 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
41370 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
41371 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
41372 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
41373 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
41374 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
41375 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
41376 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
41377 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
41378 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
41379 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
41380 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
41381 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
41382 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
41383 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
41384 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
41385 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
41386 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
41387 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
41388 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
41389 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
41390 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
41391 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
41392 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
41393 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
41394 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
41395 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
41396 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
41397 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
41398 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
41399 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
41400 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
41401 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
41402 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
41403 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
41404 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
41405 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
41406 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
41407 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
41408 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
41409 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
41410 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
41411 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
41412 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
41413 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
41414 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
41415 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
41416 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
41417 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
41418 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
41419 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
41420 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
41421 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
41422 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
41423 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
41424 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
41425 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
41426 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
41427
41428 // Work around a chicken/egg problem in drawlist.cpp
41429 wxPyDrawList_SetAPIPtr();
41430
41431 }
41432