]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_gdi_wrap.cpp
removing additional offset - why did this ever work ?
[wxWidgets.git] / wxPython / src / gtk / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_buffer swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_double swig_types[2]
2469 #define SWIGTYPE_p_form_ops_t swig_types[3]
2470 #define SWIGTYPE_p_int swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_void swig_types[8]
2475 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2476 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478 #define SWIGTYPE_p_wxAlphaPixelData swig_types[12]
2479 #define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13]
2480 #define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14]
2481 #define SWIGTYPE_p_wxBMPHandler swig_types[15]
2482 #define SWIGTYPE_p_wxBitmap swig_types[16]
2483 #define SWIGTYPE_p_wxBoxSizer swig_types[17]
2484 #define SWIGTYPE_p_wxBrush swig_types[18]
2485 #define SWIGTYPE_p_wxBrushList swig_types[19]
2486 #define SWIGTYPE_p_wxBufferedDC swig_types[20]
2487 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[21]
2488 #define SWIGTYPE_p_wxCURHandler swig_types[22]
2489 #define SWIGTYPE_p_wxChar swig_types[23]
2490 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491 #define SWIGTYPE_p_wxClientDC swig_types[25]
2492 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[26]
2493 #define SWIGTYPE_p_wxCloseEvent swig_types[27]
2494 #define SWIGTYPE_p_wxColor swig_types[28]
2495 #define SWIGTYPE_p_wxColour swig_types[29]
2496 #define SWIGTYPE_p_wxColourDatabase swig_types[30]
2497 #define SWIGTYPE_p_wxCommandEvent swig_types[31]
2498 #define SWIGTYPE_p_wxContextMenuEvent swig_types[32]
2499 #define SWIGTYPE_p_wxControl swig_types[33]
2500 #define SWIGTYPE_p_wxControlWithItems swig_types[34]
2501 #define SWIGTYPE_p_wxCursor swig_types[35]
2502 #define SWIGTYPE_p_wxDC swig_types[36]
2503 #define SWIGTYPE_p_wxDCBrushChanger swig_types[37]
2504 #define SWIGTYPE_p_wxDCClipper swig_types[38]
2505 #define SWIGTYPE_p_wxDCOverlay swig_types[39]
2506 #define SWIGTYPE_p_wxDCPenChanger swig_types[40]
2507 #define SWIGTYPE_p_wxDCTextColourChanger swig_types[41]
2508 #define SWIGTYPE_p_wxDash swig_types[42]
2509 #define SWIGTYPE_p_wxDateEvent swig_types[43]
2510 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44]
2511 #define SWIGTYPE_p_wxDropFilesEvent swig_types[45]
2512 #define SWIGTYPE_p_wxDuplexMode swig_types[46]
2513 #define SWIGTYPE_p_wxEffects swig_types[47]
2514 #define SWIGTYPE_p_wxEncodingConverter swig_types[48]
2515 #define SWIGTYPE_p_wxEraseEvent swig_types[49]
2516 #define SWIGTYPE_p_wxEvent swig_types[50]
2517 #define SWIGTYPE_p_wxEvtHandler swig_types[51]
2518 #define SWIGTYPE_p_wxFSFile swig_types[52]
2519 #define SWIGTYPE_p_wxFileSystem swig_types[53]
2520 #define SWIGTYPE_p_wxFlexGridSizer swig_types[54]
2521 #define SWIGTYPE_p_wxFocusEvent swig_types[55]
2522 #define SWIGTYPE_p_wxFont swig_types[56]
2523 #define SWIGTYPE_p_wxFontList swig_types[57]
2524 #define SWIGTYPE_p_wxFontMapper swig_types[58]
2525 #define SWIGTYPE_p_wxGBSizerItem swig_types[59]
2526 #define SWIGTYPE_p_wxGCDC swig_types[60]
2527 #define SWIGTYPE_p_wxGDIObjListBase swig_types[61]
2528 #define SWIGTYPE_p_wxGDIObject swig_types[62]
2529 #define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530 #define SWIGTYPE_p_wxGraphicsBrush swig_types[64]
2531 #define SWIGTYPE_p_wxGraphicsContext swig_types[65]
2532 #define SWIGTYPE_p_wxGraphicsFont swig_types[66]
2533 #define SWIGTYPE_p_wxGraphicsMatrix swig_types[67]
2534 #define SWIGTYPE_p_wxGraphicsObject swig_types[68]
2535 #define SWIGTYPE_p_wxGraphicsPath swig_types[69]
2536 #define SWIGTYPE_p_wxGraphicsPen swig_types[70]
2537 #define SWIGTYPE_p_wxGraphicsRenderer swig_types[71]
2538 #define SWIGTYPE_p_wxGridBagSizer swig_types[72]
2539 #define SWIGTYPE_p_wxGridSizer swig_types[73]
2540 #define SWIGTYPE_p_wxHeaderButtonParams swig_types[74]
2541 #define SWIGTYPE_p_wxICOHandler swig_types[75]
2542 #define SWIGTYPE_p_wxIcon swig_types[76]
2543 #define SWIGTYPE_p_wxIconBundle swig_types[77]
2544 #define SWIGTYPE_p_wxIconLocation swig_types[78]
2545 #define SWIGTYPE_p_wxIconizeEvent swig_types[79]
2546 #define SWIGTYPE_p_wxIdleEvent swig_types[80]
2547 #define SWIGTYPE_p_wxImage swig_types[81]
2548 #define SWIGTYPE_p_wxImageHandler swig_types[82]
2549 #define SWIGTYPE_p_wxImageList swig_types[83]
2550 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[84]
2551 #define SWIGTYPE_p_wxInitDialogEvent swig_types[85]
2552 #define SWIGTYPE_p_wxJPEGHandler swig_types[86]
2553 #define SWIGTYPE_p_wxKeyEvent swig_types[87]
2554 #define SWIGTYPE_p_wxLanguageInfo swig_types[88]
2555 #define SWIGTYPE_p_wxLayoutConstraints swig_types[89]
2556 #define SWIGTYPE_p_wxLocale swig_types[90]
2557 #define SWIGTYPE_p_wxMask swig_types[91]
2558 #define SWIGTYPE_p_wxMaximizeEvent swig_types[92]
2559 #define SWIGTYPE_p_wxMemoryDC swig_types[93]
2560 #define SWIGTYPE_p_wxMenu swig_types[94]
2561 #define SWIGTYPE_p_wxMenuBar swig_types[95]
2562 #define SWIGTYPE_p_wxMenuEvent swig_types[96]
2563 #define SWIGTYPE_p_wxMenuItem swig_types[97]
2564 #define SWIGTYPE_p_wxMetaFile swig_types[98]
2565 #define SWIGTYPE_p_wxMetaFileDC swig_types[99]
2566 #define SWIGTYPE_p_wxMirrorDC swig_types[100]
2567 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569 #define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570 #define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[105]
2572 #define SWIGTYPE_p_wxNativeFontInfo swig_types[106]
2573 #define SWIGTYPE_p_wxNativePixelData swig_types[107]
2574 #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[108]
2575 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[109]
2576 #define SWIGTYPE_p_wxNcPaintEvent swig_types[110]
2577 #define SWIGTYPE_p_wxNotifyEvent swig_types[111]
2578 #define SWIGTYPE_p_wxObject swig_types[112]
2579 #define SWIGTYPE_p_wxOverlay swig_types[113]
2580 #define SWIGTYPE_p_wxPCXHandler swig_types[114]
2581 #define SWIGTYPE_p_wxPNGHandler swig_types[115]
2582 #define SWIGTYPE_p_wxPNMHandler swig_types[116]
2583 #define SWIGTYPE_p_wxPaintDC swig_types[117]
2584 #define SWIGTYPE_p_wxPaintEvent swig_types[118]
2585 #define SWIGTYPE_p_wxPalette swig_types[119]
2586 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[120]
2587 #define SWIGTYPE_p_wxPaperSize swig_types[121]
2588 #define SWIGTYPE_p_wxPen swig_types[122]
2589 #define SWIGTYPE_p_wxPenList swig_types[123]
2590 #define SWIGTYPE_p_wxPixelDataBase swig_types[124]
2591 #define SWIGTYPE_p_wxPoint swig_types[125]
2592 #define SWIGTYPE_p_wxPoint2D swig_types[126]
2593 #define SWIGTYPE_p_wxPoint2DDouble swig_types[127]
2594 #define SWIGTYPE_p_wxPostScriptDC swig_types[128]
2595 #define SWIGTYPE_p_wxPrintData swig_types[129]
2596 #define SWIGTYPE_p_wxPrinterDC swig_types[130]
2597 #define SWIGTYPE_p_wxPseudoDC swig_types[131]
2598 #define SWIGTYPE_p_wxPyApp swig_types[132]
2599 #define SWIGTYPE_p_wxPyCommandEvent swig_types[133]
2600 #define SWIGTYPE_p_wxPyEvent swig_types[134]
2601 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[135]
2602 #define SWIGTYPE_p_wxPyImageHandler swig_types[136]
2603 #define SWIGTYPE_p_wxPyLocale swig_types[137]
2604 #define SWIGTYPE_p_wxPySizer swig_types[138]
2605 #define SWIGTYPE_p_wxPyValidator swig_types[139]
2606 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[140]
2607 #define SWIGTYPE_p_wxRect swig_types[141]
2608 #define SWIGTYPE_p_wxRect2DDouble swig_types[142]
2609 #define SWIGTYPE_p_wxRegion swig_types[143]
2610 #define SWIGTYPE_p_wxRegionIterator swig_types[144]
2611 #define SWIGTYPE_p_wxRendererNative swig_types[145]
2612 #define SWIGTYPE_p_wxRendererVersion swig_types[146]
2613 #define SWIGTYPE_p_wxScreenDC swig_types[147]
2614 #define SWIGTYPE_p_wxScrollEvent swig_types[148]
2615 #define SWIGTYPE_p_wxScrollWinEvent swig_types[149]
2616 #define SWIGTYPE_p_wxSetCursorEvent swig_types[150]
2617 #define SWIGTYPE_p_wxShowEvent swig_types[151]
2618 #define SWIGTYPE_p_wxSize swig_types[152]
2619 #define SWIGTYPE_p_wxSizeEvent swig_types[153]
2620 #define SWIGTYPE_p_wxSizer swig_types[154]
2621 #define SWIGTYPE_p_wxSizerItem swig_types[155]
2622 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[156]
2623 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[157]
2624 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[158]
2625 #define SWIGTYPE_p_wxStockGDI swig_types[159]
2626 #define SWIGTYPE_p_wxString swig_types[160]
2627 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[161]
2628 #define SWIGTYPE_p_wxTGAHandler swig_types[162]
2629 #define SWIGTYPE_p_wxTIFFHandler swig_types[163]
2630 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[164]
2631 #define SWIGTYPE_p_wxValidator swig_types[165]
2632 #define SWIGTYPE_p_wxWindow swig_types[166]
2633 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[167]
2634 #define SWIGTYPE_p_wxWindowDC swig_types[168]
2635 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[169]
2636 #define SWIGTYPE_p_wxXPMHandler swig_types[170]
2637 static swig_type_info *swig_types[172];
2638 static swig_module_info swig_module = {swig_types, 171, 0, 0, 0, 0};
2639 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2640 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2641
2642 /* -------- TYPES TABLE (END) -------- */
2643
2644 #if (PY_VERSION_HEX <= 0x02000000)
2645 # if !defined(SWIG_PYTHON_CLASSIC)
2646 # error "This python version requires to use swig with the '-classic' option"
2647 # endif
2648 #endif
2649 #if (PY_VERSION_HEX <= 0x02020000)
2650 # error "This python version requires to use swig with the '-nomodern' option"
2651 #endif
2652 #if (PY_VERSION_HEX <= 0x02020000)
2653 # error "This python version requires to use swig with the '-nomodernargs' option"
2654 #endif
2655 #ifndef METH_O
2656 # error "This python version requires to use swig with the '-nofastunpack' option"
2657 #endif
2658
2659 /*-----------------------------------------------
2660 @(target):= _gdi_.so
2661 ------------------------------------------------*/
2662 #define SWIG_init init_gdi_
2663
2664 #define SWIG_name "_gdi_"
2665
2666 #define SWIGVERSION 0x010329
2667
2668
2669 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2670 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2671
2672
2673 #include <stdexcept>
2674
2675
2676 namespace swig {
2677 class PyObject_ptr {
2678 protected:
2679 PyObject *_obj;
2680
2681 public:
2682 PyObject_ptr() :_obj(0)
2683 {
2684 }
2685
2686 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2687 {
2688 Py_XINCREF(_obj);
2689 }
2690
2691 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2692 {
2693 if (initial_ref) Py_XINCREF(_obj);
2694 }
2695
2696 PyObject_ptr & operator=(const PyObject_ptr& item)
2697 {
2698 Py_XINCREF(item._obj);
2699 Py_XDECREF(_obj);
2700 _obj = item._obj;
2701 return *this;
2702 }
2703
2704 ~PyObject_ptr()
2705 {
2706 Py_XDECREF(_obj);
2707 }
2708
2709 operator PyObject *() const
2710 {
2711 return _obj;
2712 }
2713
2714 PyObject *operator->() const
2715 {
2716 return _obj;
2717 }
2718 };
2719 }
2720
2721
2722 namespace swig {
2723 struct PyObject_var : PyObject_ptr {
2724 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2725
2726 PyObject_var & operator = (PyObject* obj)
2727 {
2728 Py_XDECREF(_obj);
2729 _obj = obj;
2730 return *this;
2731 }
2732 };
2733 }
2734
2735
2736 #include "wx/wxPython/wxPython.h"
2737 #include "wx/wxPython/pyclasses.h"
2738
2739
2740 static const wxString wxPyEmptyString(wxEmptyString);
2741
2742 #define SWIG_From_long PyInt_FromLong
2743
2744
2745 SWIGINTERNINLINE PyObject *
2746 SWIG_From_int (int value)
2747 {
2748 return SWIG_From_long (value);
2749 }
2750
2751
2752 #include <limits.h>
2753 #ifndef LLONG_MIN
2754 # define LLONG_MIN LONG_LONG_MIN
2755 #endif
2756 #ifndef LLONG_MAX
2757 # define LLONG_MAX LONG_LONG_MAX
2758 #endif
2759 #ifndef ULLONG_MAX
2760 # define ULLONG_MAX ULONG_LONG_MAX
2761 #endif
2762
2763
2764 SWIGINTERN int
2765 SWIG_AsVal_long (PyObject* obj, long* val)
2766 {
2767 if (PyNumber_Check(obj)) {
2768 if (val) *val = PyInt_AsLong(obj);
2769 return SWIG_OK;
2770 }
2771 return SWIG_TypeError;
2772 }
2773
2774
2775 SWIGINTERN int
2776 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2777 {
2778 long v = 0;
2779 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2780 return SWIG_TypeError;
2781 }
2782 else if (val)
2783 *val = (unsigned long)v;
2784 return SWIG_OK;
2785 }
2786
2787
2788 SWIGINTERN int
2789 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2790 {
2791 unsigned long v;
2792 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2793 if (SWIG_IsOK(res)) {
2794 if ((v > UCHAR_MAX)) {
2795 return SWIG_OverflowError;
2796 } else {
2797 if (val) *val = static_cast< unsigned char >(v);
2798 }
2799 }
2800 return res;
2801 }
2802
2803
2804 SWIGINTERNINLINE PyObject*
2805 SWIG_From_unsigned_SS_long (unsigned long value)
2806 {
2807 return (value > LONG_MAX) ?
2808 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2809 }
2810
2811
2812 SWIGINTERNINLINE PyObject *
2813 SWIG_From_unsigned_SS_char (unsigned char value)
2814 {
2815 return SWIG_From_unsigned_SS_long (value);
2816 }
2817
2818 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2819 wxColour temp, *obj = &temp;
2820 if ( other == Py_None ) return false;
2821 if ( ! wxColour_helper(other, &obj) ) {
2822 PyErr_Clear();
2823 return false;
2824 }
2825 return self->operator==(*obj);
2826 }
2827 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2828 wxColour temp, *obj = &temp;
2829 if ( other == Py_None ) return true;
2830 if ( ! wxColour_helper(other, &obj)) {
2831 PyErr_Clear();
2832 return true;
2833 }
2834 return self->operator!=(*obj);
2835 }
2836
2837 SWIGINTERN int
2838 SWIG_AsVal_bool (PyObject *obj, bool *val)
2839 {
2840 if (obj == Py_True) {
2841 if (val) *val = true;
2842 return SWIG_OK;
2843 } else if (obj == Py_False) {
2844 if (val) *val = false;
2845 return SWIG_OK;
2846 } else {
2847 long v = 0;
2848 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2849 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2850 return res;
2851 }
2852 }
2853
2854 SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2855 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
2856 int red = -1;
2857 int green = -1;
2858 int blue = -1;
2859 int alpha = wxALPHA_OPAQUE;
2860 if (self->IsOk()) {
2861 red = self->Red();
2862 green = self->Green();
2863 blue = self->Blue();
2864 alpha = self->Alpha();
2865 }
2866 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2867 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2868 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2869 if (includeAlpha)
2870 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
2871 return rv;
2872 }
2873 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2874 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2875 }
2876
2877 SWIGINTERN int
2878 SWIG_AsVal_int (PyObject * obj, int *val)
2879 {
2880 long v;
2881 int res = SWIG_AsVal_long (obj, &v);
2882 if (SWIG_IsOK(res)) {
2883 if ((v < INT_MIN || v > INT_MAX)) {
2884 return SWIG_OverflowError;
2885 } else {
2886 if (val) *val = static_cast< int >(v);
2887 }
2888 }
2889 return res;
2890 }
2891
2892 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2893 wxDash* dashes;
2894 int count = self->GetDashes(&dashes);
2895 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2896 PyObject* retval = PyList_New(0);
2897 for (int x=0; x<count; x++) {
2898 PyObject* pyint = PyInt_FromLong(dashes[x]);
2899 PyList_Append(retval, pyint);
2900 Py_DECREF(pyint);
2901 }
2902 wxPyEndBlockThreads(blocked);
2903 return retval;
2904 }
2905 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2906 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2907 int size = PyList_Size(pyDashes);
2908 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2909
2910 // black magic warning! The array of wxDashes needs to exist as
2911 // long as the pen does because wxPen does not copy the array. So
2912 // stick a copy in a Python string object and attach it to _self,
2913 // and then call SetDashes with a pointer to that array. Then
2914 // when the Python pen object is destroyed the array will be
2915 // cleaned up too.
2916 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2917 PyObject_SetAttrString(_self, "_dashes", strDashes);
2918
2919 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2920 delete [] dashes;
2921 Py_DECREF(strDashes);
2922 wxPyEndBlockThreads(blocked);
2923 }
2924 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2925 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2926
2927 #include <wx/rawbmp.h>
2928
2929
2930 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2931 // appears to me that the other platforms are already doing it, so I'll just
2932 // automatically do it for wxMSW here.
2933 #ifdef __WXMSW__
2934 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2935 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2936 #else
2937 #define wxPy_premultiply(p, a) (p)
2938 #define wxPy_unpremultiply(p, a) (p)
2939 #endif
2940
2941
2942 #include <wx/image.h>
2943
2944 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2945 char** cArray = NULL;
2946 int count;
2947
2948 if (!PyList_Check(listOfStrings)) {
2949 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2950 return NULL;
2951 }
2952 count = PyList_Size(listOfStrings);
2953 cArray = new char*[count];
2954
2955 for(int x=0; x<count; x++) {
2956 // TODO: Need some validation and error checking here
2957 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2958 }
2959 return cArray;
2960 }
2961
2962
2963 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2964 char** cArray = NULL;
2965 wxBitmap* bmp;
2966
2967 cArray = ConvertListOfStrings(listOfStrings);
2968 if (! cArray)
2969 return NULL;
2970 bmp = new wxBitmap(cArray);
2971 delete [] cArray;
2972 return bmp;
2973 }
2974 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2975 char* buf;
2976 Py_ssize_t length;
2977 PyString_AsStringAndSize(bits, &buf, &length);
2978 return new wxBitmap(buf, width, height, depth);
2979 }
2980 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2981 wxSize size(self->GetWidth(), self->GetHeight());
2982 return size;
2983 }
2984 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2985 wxMask *mask = new wxMask(*self, colour);
2986 self->SetMask(mask);
2987 }
2988 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2989 self->SetWidth(size.x);
2990 self->SetHeight(size.y);
2991 }
2992 SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){
2993 int height=self->GetHeight();
2994 int width=self->GetWidth();
2995
2996 if (DATASIZE != width * height * 3) {
2997 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2998 }
2999 wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3000 if (! pixData) {
3001 // raise an exception...
3002 wxPyErr_SetString(PyExc_RuntimeError,
3003 "Failed to gain raw access to bitmap data.");
3004 return;
3005 }
3006
3007 wxNativePixelData::Iterator p(pixData);
3008 for (int y=0; y<height; y++) {
3009 wxNativePixelData::Iterator rowStart = p;
3010 for (int x=0; x<width; x++) {
3011 p.Red() = *(data++);
3012 p.Green() = *(data++);
3013 p.Blue() = *(data++);
3014 ++p;
3015 }
3016 p = rowStart;
3017 p.OffsetY(pixData, 1);
3018 }
3019 }
3020 SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){
3021 int height=self->GetHeight();
3022 int width=self->GetWidth();
3023
3024 if (DATASIZE != width * height * 4) {
3025 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3026 }
3027 wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3028 if (! pixData) {
3029 // raise an exception...
3030 wxPyErr_SetString(PyExc_RuntimeError,
3031 "Failed to gain raw access to bitmap data.");
3032 return;
3033 }
3034
3035 pixData.UseAlpha();
3036 wxAlphaPixelData::Iterator p(pixData);
3037 for (int y=0; y<height; y++) {
3038 wxAlphaPixelData::Iterator rowStart = p;
3039 for (int x=0; x<width; x++) {
3040 byte a = data[3];
3041 p.Red() = wxPy_premultiply(*(data++), a);
3042 p.Green() = wxPy_premultiply(*(data++), a);
3043 p.Blue() = wxPy_premultiply(*(data++), a);
3044 p.Alpha() = a; data++;
3045 ++p;
3046 }
3047 p = rowStart;
3048 p.OffsetY(pixData, 1);
3049 }
3050 }
3051 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; }
3052 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; }
3053
3054 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3055 buffer data, int DATASIZE,
3056 buffer alpha, int ALPHASIZE)
3057 {
3058 if (DATASIZE != width*height*3) {
3059 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3060 return NULL;
3061 }
3062
3063 if (ALPHASIZE != width*height) {
3064 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3065 return NULL;
3066 }
3067
3068 wxBitmap* bmp = new wxBitmap(width, height, 32);
3069 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3070 if (! pixData) {
3071 // raise an exception...
3072 wxPyErr_SetString(PyExc_RuntimeError,
3073 "Failed to gain raw access to bitmap data.");
3074 return NULL;
3075 }
3076
3077 pixData.UseAlpha();
3078 wxAlphaPixelData::Iterator p(pixData);
3079 for (int y=0; y<height; y++) {
3080 wxAlphaPixelData::Iterator rowStart = p;
3081 for (int x=0; x<width; x++) {
3082 byte a = *(alpha++);
3083 p.Red() = wxPy_premultiply(*(data++), a);
3084 p.Green() = wxPy_premultiply(*(data++), a);
3085 p.Blue() = wxPy_premultiply(*(data++), a);
3086 p.Alpha() = a;
3087 ++p;
3088 }
3089 p = rowStart;
3090 p.OffsetY(pixData, 1);
3091 }
3092 return bmp;
3093 }
3094
3095 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3096 {
3097 if (DATASIZE != width*height*3) {
3098 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3099 return NULL;
3100 }
3101
3102 wxBitmap* bmp = new wxBitmap(width, height, 24);
3103 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3104 if (! pixData) {
3105 // raise an exception...
3106 wxPyErr_SetString(PyExc_RuntimeError,
3107 "Failed to gain raw access to bitmap data.");
3108 return NULL;
3109 }
3110
3111 wxNativePixelData::Iterator p(pixData);
3112 for (int y=0; y<height; y++) {
3113 wxNativePixelData::Iterator rowStart = p;
3114 for (int x=0; x<width; x++) {
3115 p.Red() = *(data++);
3116 p.Green() = *(data++);
3117 p.Blue() = *(data++);
3118 ++p;
3119 }
3120 p = rowStart;
3121 p.OffsetY(pixData, 1);
3122 }
3123 return bmp;
3124 }
3125
3126
3127 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3128 {
3129 if (DATASIZE != width*height*4) {
3130 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3131 return NULL;
3132 }
3133
3134 wxBitmap* bmp = new wxBitmap(width, height, 32);
3135 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3136 if (! pixData) {
3137 // raise an exception...
3138 wxPyErr_SetString(PyExc_RuntimeError,
3139 "Failed to gain raw access to bitmap data.");
3140 return NULL;
3141 }
3142
3143 pixData.UseAlpha();
3144 wxAlphaPixelData::Iterator p(pixData);
3145 for (int y=0; y<height; y++) {
3146 wxAlphaPixelData::Iterator rowStart = p;
3147 for (int x=0; x<width; x++) {
3148 byte a = data[3];
3149 p.Red() = wxPy_premultiply(*(data++), a);
3150 p.Green() = wxPy_premultiply(*(data++), a);
3151 p.Blue() = wxPy_premultiply(*(data++), a);
3152 p.Alpha() = a; data++;
3153 ++p;
3154 }
3155 p = rowStart;
3156 p.OffsetY(pixData, 1);
3157 }
3158 return bmp;
3159 }
3160
3161
3162 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3163
3164 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3165 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3166 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3167 self->Red() = red;
3168 self->Green() = green;
3169 self->Blue() = blue;
3170 }
3171 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3172 PyObject* rv = PyTuple_New(3);
3173 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3174 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3175 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3176 return rv;
3177 }
3178
3179 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3180
3181 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3182 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3183 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3184 self->Red() = wxPy_premultiply(red, alpha);
3185 self->Green() = wxPy_premultiply(green, alpha);
3186 self->Blue() = wxPy_premultiply(blue, alpha);
3187 self->Alpha() = alpha;
3188 }
3189 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3190 PyObject* rv = PyTuple_New(4);
3191 int red = self->Red();
3192 int green = self->Green();
3193 int blue = self->Blue();
3194 int alpha = self->Alpha();
3195
3196 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3197 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3198 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3199 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3200 return rv;
3201 }
3202 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3203 if ( !colour.IsOk() )
3204 return new wxMask(bitmap, *wxBLACK);
3205 else
3206 return new wxMask(bitmap, colour);
3207 }
3208
3209 #include <wx/iconbndl.h>
3210
3211 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3212 wxIcon* icon = new wxIcon();
3213 icon->CopyFromBitmap(bmp);
3214 return icon;
3215 }
3216 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3217 char** cArray = NULL;
3218 wxIcon* icon;
3219
3220 cArray = ConvertListOfStrings(listOfStrings);
3221 if (! cArray)
3222 return NULL;
3223 icon = new wxIcon(cArray);
3224 delete [] cArray;
3225 return icon;
3226 }
3227 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3228
3229
3230
3231 return new wxIconLocation(*filename);
3232
3233 }
3234 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3235
3236
3237
3238 // do nothing
3239
3240 }
3241 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3242
3243
3244
3245 return -1;
3246
3247 }
3248 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3249 #ifdef __WXGTK__
3250 wxImage img(cursorName, type);
3251 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3252 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3253 return new wxCursor(img);
3254 #else
3255 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3256 #endif
3257 }
3258
3259
3260 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3261 (*self) ++;
3262 }
3263 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3264 return self->operator bool();
3265 }
3266
3267 #include <wx/fontutil.h>
3268 #include <wx/fontmap.h>
3269 #include <wx/fontenum.h>
3270
3271 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3272 return self->ToString();
3273 }
3274
3275 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3276 static wxNativeEncodingInfo info;
3277 if ( wxGetNativeFontEncoding(encoding, &info) )
3278 return &info;
3279 else
3280 return NULL;
3281 }
3282
3283
3284 SWIGINTERNINLINE PyObject *
3285 SWIG_From_size_t (size_t value)
3286 {
3287 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3288 }
3289
3290
3291 SWIGINTERNINLINE int
3292 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3293 {
3294 unsigned long v;
3295 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3296 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3297 return res;
3298 }
3299
3300 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3301 wxFontEncoding alt_enc;
3302 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3303 return PyInt_FromLong(alt_enc);
3304 else {
3305 Py_INCREF(Py_None);
3306 return Py_None;
3307 }
3308 }
3309 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3310 wxNativeFontInfo nfi;
3311 nfi.FromString(info);
3312 return new wxFont(nfi);
3313 }
3314 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3315 return wxFont::New(pointSize, family, flags, face, encoding);
3316 }
3317 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3318 return wxFontBase::New(pixelSize, family,
3319 style, weight, underlined,
3320 face, encoding);
3321 }
3322 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3323 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3324 }
3325 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3326 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3327
3328 class wxPyFontEnumerator : public wxFontEnumerator {
3329 public:
3330 wxPyFontEnumerator() {}
3331 ~wxPyFontEnumerator() {}
3332
3333 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3334 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3335
3336 PYPRIVATE;
3337 };
3338
3339 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3340 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3341
3342
3343 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3344 PyObject* ret;
3345 wxArrayString arr = wxFontEnumerator::GetEncodings();
3346 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3347 ret = wxArrayString2PyList_helper(arr);
3348 wxPyEndBlockThreads(blocked);
3349 return ret;
3350 }
3351 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3352 PyObject* ret;
3353 wxArrayString arr = wxFontEnumerator::GetFacenames();
3354 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3355 ret = wxArrayString2PyList_helper(arr);
3356 wxPyEndBlockThreads(blocked);
3357 return ret;
3358 }
3359
3360 #include <locale.h>
3361
3362 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3363 wxLocale* loc;
3364 if (language == -1)
3365 loc = new wxLocale();
3366 else
3367 loc = new wxLocale(language, flags);
3368 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3369 // for the floating point conversions and such to work right.
3370 #if PY_VERSION_HEX < 0x02040000
3371 setlocale(LC_NUMERIC, "C");
3372 #endif
3373 return loc;
3374 }
3375 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3376 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3377 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3378 // for the floating point conversions and such to work right.
3379 #if PY_VERSION_HEX < 0x02040000
3380 setlocale(LC_NUMERIC, "C");
3381 #endif
3382 return rc;
3383 }
3384 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3385 bool rc = self->Init(language, flags);
3386 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3387 // for the floating point conversions and such to work right.
3388 #if PY_VERSION_HEX < 0x02040000
3389 setlocale(LC_NUMERIC, "C");
3390 #endif
3391 return rc;
3392 }
3393
3394 class wxPyLocale : public wxLocale
3395 {
3396 public:
3397 wxPyLocale();
3398
3399 wxPyLocale(const wxChar *szName, // name (for messages)
3400 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3401 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3402 bool bLoadDefault = true, // preload wxstd.mo?
3403 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3404
3405 wxPyLocale(int language, // wxLanguage id or custom language
3406 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3407
3408 ~wxPyLocale();
3409
3410 virtual const wxChar *GetString(const wxChar *szOrigString,
3411 const wxChar *szDomain = NULL) const;
3412 virtual const wxChar *GetString(const wxChar *szOrigString,
3413 const wxChar *szOrigString2, size_t n,
3414 const wxChar *szDomain = NULL) const;
3415
3416 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3417 const wxChar *szDomain = NULL) const;
3418 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3419 const wxChar *szOrigString2, size_t n,
3420 const wxChar *szDomain = NULL) const;
3421
3422 PYPRIVATE;
3423 private:
3424 DECLARE_NO_COPY_CLASS(wxPyLocale)
3425 };
3426
3427 wxPyLocale::wxPyLocale() : wxLocale()
3428 {
3429 }
3430
3431 wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3432 const wxChar *szShort, // dir prefix (for msg files)
3433 const wxChar *szLocale, // locale (for setlocale)
3434 bool bLoadDefault, // preload wxstd.mo?
3435 bool bConvertEncoding) // convert Win<->Unix if necessary?
3436 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3437 {
3438 }
3439
3440 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3441 int flags) : wxLocale(language, flags)
3442 {
3443 }
3444
3445 wxPyLocale::~wxPyLocale()
3446 {
3447 }
3448
3449 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3450 const wxChar *szDomain) const
3451 {
3452 wxChar *str = GetSingularString(szOrigString, szDomain);
3453 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3454 }
3455
3456 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3457 const wxChar *szOrigString2, size_t n,
3458 const wxChar *szDomain) const
3459 {
3460 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3461 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3462 }
3463
3464 wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3465 const wxChar *szDomain) const
3466 {
3467 bool found;
3468 static wxString str;
3469 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3470 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3471 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3472 PyObject* param1 = wx2PyString(szOrigString);
3473 PyObject* param2 = wx2PyString(szDomain);
3474 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3475 Py_DECREF(param1);
3476 Py_DECREF(param2);
3477 if (ret) {
3478 str = Py2wxString(ret);
3479 Py_DECREF(ret);
3480 }
3481 }
3482 wxPyEndBlockThreads(blocked);
3483 return (found ? (wxChar*)str.c_str() : NULL);
3484 }
3485
3486 wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3487 const wxChar *szOrigString2, size_t n,
3488 const wxChar *szDomain) const
3489 {
3490 bool found;
3491 static wxString str;
3492 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3493 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3494 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3495 PyObject* param1 = wx2PyString(szOrigString);
3496 PyObject* param2 = wx2PyString(szOrigString2);
3497 PyObject* param4 = wx2PyString(szDomain);
3498 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3499 Py_DECREF(param1);
3500 Py_DECREF(param2);
3501 Py_DECREF(param4);
3502 if( ret) {
3503 str = Py2wxString(ret);
3504 Py_DECREF(ret);
3505 }
3506 }
3507 wxPyEndBlockThreads(blocked);
3508 return (found ? (wxChar*)str.c_str() : NULL);
3509 }
3510
3511 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3512 wxPyLocale* loc;
3513 if (language == -1)
3514 loc = new wxPyLocale();
3515 else
3516 loc = new wxPyLocale(language, flags);
3517 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3518 // for the floating point conversions and such to work right.
3519 #if PY_VERSION_HEX < 0x02040000
3520 setlocale(LC_NUMERIC, "C");
3521 #endif
3522 return loc;
3523 }
3524
3525 #include "wx/wxPython/pydrawxxx.h"
3526
3527 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3528 wxColour col;
3529 self->GetPixel(x, y, &col);
3530 return col;
3531 }
3532 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3533 wxColour col;
3534 self->GetPixel(pt, &col);
3535 return col;
3536 }
3537
3538 SWIGINTERN int
3539 SWIG_AsVal_double (PyObject *obj, double* val)
3540 {
3541 if (PyNumber_Check(obj)) {
3542 if (val) *val = PyFloat_AsDouble(obj);
3543 return SWIG_OK;
3544 }
3545 return SWIG_TypeError;
3546 }
3547
3548 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3549 wxRect rv;
3550 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3551 return rv;
3552 }
3553 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3554 wxRect rect;
3555 self->GetClippingBox(rect);
3556 return rect;
3557 }
3558 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3559 wxArrayInt widths;
3560 self->GetPartialTextExtents(text, widths);
3561 return widths;
3562 }
3563
3564 #define SWIG_From_double PyFloat_FromDouble
3565
3566 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3567 self->SetLogicalOrigin(point.x, point.y);
3568 }
3569 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3570 self->SetDeviceOrigin(point.x, point.y);
3571 }
3572 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3573 self->CalcBoundingBox(point.x, point.y);
3574 }
3575 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3576 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3577 }
3578 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3579 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3580 }
3581 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3582 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3583 }
3584 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3585 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3586 }
3587 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3588 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3589 }
3590 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3591 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3592 }
3593
3594 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3595 *x1 = dc->MinX();
3596 *y1 = dc->MinY();
3597 *x2 = dc->MaxX();
3598 *y2 = dc->MaxY();
3599 }
3600
3601
3602 #include <wx/dcbuffer.h>
3603
3604
3605 #include <wx/dcps.h>
3606
3607
3608 class wxMetaFile : public wxObject {
3609 public:
3610 wxMetaFile(const wxString&)
3611 { wxPyRaiseNotImplemented(); }
3612 };
3613
3614 class wxMetaFileDC : public wxClientDC {
3615 public:
3616 wxMetaFileDC(const wxString&, int, int, const wxString&)
3617 { wxPyRaiseNotImplemented(); }
3618 };
3619
3620
3621
3622 class wxPrinterDC : public wxClientDC {
3623 public:
3624 wxPrinterDC(const wxPrintData&)
3625 { wxPyRaiseNotImplemented(); }
3626
3627 };
3628
3629
3630 #include <wx/graphics.h>
3631
3632
3633 #if !wxUSE_GRAPHICS_CONTEXT
3634 // C++ stub classes for platforms or build configurations that don't have
3635 // wxGraphicsContext yet.
3636
3637
3638 class wxGraphicsObject : public wxObject
3639 {
3640 public :
3641 wxGraphicsObject( wxGraphicsRenderer* ) {
3642 PyErr_SetString(PyExc_NotImplementedError,
3643 "wx.GraphicsObject is not available on this platform.");
3644 }
3645 wxGraphicsObject( const wxGraphicsObject& ) {}
3646 virtual ~wxGraphicsObject() {}
3647 bool IsNull() const { return false; }
3648 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3649 } ;
3650
3651
3652
3653 class wxGraphicsPen : public wxGraphicsObject
3654 {
3655 wxGraphicsPen() {}
3656 virtual ~wxGraphicsPen() {}
3657 } ;
3658 wxGraphicsPen wxNullGraphicsPen;
3659
3660
3661
3662 class wxGraphicsBrush : public wxGraphicsObject
3663 {
3664 public :
3665 wxGraphicsBrush() {}
3666 virtual ~wxGraphicsBrush() {}
3667 } ;
3668 wxGraphicsBrush wxNullGraphicsBrush;
3669
3670
3671
3672 class wxGraphicsFont : public wxGraphicsObject
3673 {
3674 public :
3675 wxGraphicsFont() {}
3676 virtual ~wxGraphicsFont() {}
3677 } ;
3678 wxGraphicsFont wxNullGraphicsFont;
3679
3680
3681
3682 class wxGraphicsPath : public wxGraphicsObject
3683 {
3684 public :
3685 wxGraphicsPath(wxGraphicsRenderer* ) {
3686 PyErr_SetString(PyExc_NotImplementedError,
3687 "wx.GraphicsPath is not available on this platform.");
3688 }
3689 virtual ~wxGraphicsPath() {}
3690
3691 void MoveToPoint( wxDouble, wxDouble ) {}
3692 void MoveToPoint( const wxPoint2DDouble& ) {}
3693 void AddLineToPoint( wxDouble, wxDouble ) {}
3694 void AddLineToPoint( const wxPoint2DDouble& ) {}
3695 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3696 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3697 void AddPath( const wxGraphicsPath* ) {}
3698 void CloseSubpath() {}
3699 void GetCurrentPoint( wxDouble&, wxDouble&) {}
3700 wxPoint2DDouble GetCurrentPoint() { reutrn wxPoint2D(0,0); }
3701 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3702 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
3703
3704 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3705 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3706 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3707 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3708
3709 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3710 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3711 void * GetNativePath() const { return NULL; }
3712 void UnGetNativePath(void *) {}
3713 void Transform( wxGraphicsMatrix* ) {}
3714 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) {}
3715 wxRect2D GetBox() { return wxRect2D(0,0,0,0); }
3716
3717 bool Contains( wxDouble , wxDouble , int ) { return false; }
3718 bool Contains( const wxPoint2DDouble& , int ) { return false; }
3719 };
3720 wxGraphicsPath wxNullGraphicsPath;
3721
3722
3723 class wxGraphicsMatrix : public wxGraphicsObject
3724 {
3725 public :
3726 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3727 PyErr_SetString(PyExc_NotImplementedError,
3728 "wx.GraphicsMatrix is not available on this platform.");
3729 }
3730 virtual ~wxGraphicsMatrix() {}
3731 virtual void Concat( const wxGraphicsMatrix * ) {}
3732 virtual void Copy( const wxGraphicsMatrix * ) {}
3733 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3734 wxDouble , wxDouble ) {}
3735 virtual void Invert() {}
3736 virtual bool IsEqual( const wxGraphicsMatrix* t) const {}
3737 virtual bool IsIdentity() { return false; }
3738 virtual void Translate( wxDouble , wxDouble ) {}
3739 virtual void Scale( wxDouble , wxDouble ) {}
3740 virtual void Rotate( wxDouble ) {}
3741 virtual void TransformPoint( wxDouble *, wxDouble * ) {}
3742 virtual void TransformDistance( wxDouble *, wxDouble * ) {}
3743 virtual void * GetNativeMatrix() const { return NULL; }
3744 };
3745 wxGraphicsMatrix wxNullGraphicsMatrix;
3746
3747
3748 class wxGraphicsContext : public wxGraphicsObject
3749 {
3750 public:
3751
3752 wxGraphicsContext(wxGraphicsRenderer* ) {
3753 PyErr_SetString(PyExc_NotImplementedError,
3754 "wx.GraphicsContext is not available on this platform.");
3755 }
3756
3757 virtual ~wxGraphicsContext() {}
3758
3759 static wxGraphicsContext* Create( const wxWindowDC& ) {
3760 PyErr_SetString(PyExc_NotImplementedError,
3761 "wx.GraphicsContext is not available on this platform.");
3762 }
3763
3764 static wxGraphicsContext* CreateFromNative( void * ) {
3765 PyErr_SetString(PyExc_NotImplementedError,
3766 "wx.GraphicsContext is not available on this platform.");
3767 }
3768
3769 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3770 PyErr_SetString(PyExc_NotImplementedError,
3771 "wx.GraphicsContext is not available on this platform.");
3772 }
3773
3774 static wxGraphicsContext* Create( wxWindow* ) {
3775 PyErr_SetString(PyExc_NotImplementedError,
3776 "wx.GraphicsContext is not available on this platform.");
3777 }
3778
3779 wxGraphicsPath * CreatePath() { return NULL; }
3780
3781 virtual wxGraphicsPen CreatePen(const wxPen& ) { return NULL; }
3782
3783 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return NULL; }
3784
3785 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3786 const wxColour&, const wxColour&) { return NULL; }
3787
3788 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3789 wxDouble xc, wxDouble yc, wxDouble radius,
3790 const wxColour &oColor, const wxColour &cColor) { return NULL; }
3791
3792 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return NULL; }
3793
3794 virtual wxGraphicsMatrix* CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3795 wxDouble, wxDouble) { return NULL; }
3796
3797 virtual void PushState() {}
3798 virtual void PopState() {}
3799 virtual void Clip( const wxRegion & ) {}
3800 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3801 virtual void ResetClip() {}
3802 virtual void * GetNativeContext() { return NULL; }
3803 virtual void Translate( wxDouble , wxDouble ) {}
3804 virtual void Scale( wxDouble , wxDouble ) {}
3805 virtual void Rotate( wxDouble ) {}
3806 virtual void ConcatTransform( const wxGraphicsMatrix* ) {}
3807 virtual void SetTransform( const wxGraphicsMatrix* ) {}
3808 virtual void GetTransform( wxGraphicsMatrix* ) {}
3809
3810 virtual void SetPen( const wxGraphicsPen& ) {}
3811 void SetPen( const wxPen& ) {}
3812
3813 virtual void SetBrush( const wxGraphicsBrush& ) {}
3814 void SetBrush( const wxBrush& ) {}
3815
3816 virtual void SetFont( const wxGraphicsFont& ) {}
3817 void SetFont( const wxFont&, const wxColour& ) {}
3818
3819 virtual void StrokePath( const wxGraphicsPath * ) {}
3820 virtual void FillPath( const wxGraphicsPath *, int ) {}
3821 virtual void DrawPath( const wxGraphicsPath *, int ) {}
3822
3823 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3824 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3825 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3826 wxDouble *, wxDouble * ) const {}
3827 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3828
3829 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3830 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3831
3832 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3833 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3834 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3835 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3836 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3837 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3838 virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {}
3839 virtual bool ShouldOffset() const { return false; }
3840 };
3841
3842
3843 class wxGraphicsRenderer : public wxObject
3844 {
3845 public :
3846 wxGraphicsRenderer() {
3847 PyErr_SetString(PyExc_NotImplementedError,
3848 "wx.GraphicsRenderer is not available on this platform.");
3849 }
3850
3851 virtual ~wxGraphicsRenderer() {}
3852
3853 static wxGraphicsRenderer* GetDefaultRenderer(
3854 PyErr_SetString(PyExc_NotImplementedError,
3855 "wx.GraphicsRenderer is not available on this platform.");
3856 );
3857
3858 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3859 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3860 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3861 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
3862
3863 virtual wxGraphicsPath * CreatePath() { return NULL; }
3864
3865 virtual wxGraphicsMatrix * CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3866 wxDouble , wxDouble ) { return NULL; }
3867
3868 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGaphicsPen; }
3869 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGaphicsBrush; }
3870 virtual wxGraphicsBrush CreateLinearGradientBrush(xDouble , wxDouble , wxDouble , wxDouble ,
3871 const wxColour&, const wxColour&) { return wxNullGaphicsBrush; }
3872 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3873 const wxColour &, const wxColour &) { return wxNullGaphicsBrush; }
3874 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGaphicsFont; }
3875 };
3876
3877
3878
3879 class wxGCDC: public wxWindowDC
3880 {
3881 public:
3882 wxGCDC(const wxWindowDC&) {
3883 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3884 PyErr_SetString(PyExc_NotImplementedError,
3885 "wxGCDC is not available on this platform.");
3886 wxPyEndBlockThreads(blocked);
3887 }
3888
3889 wxGCDC() {
3890 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3891 PyErr_SetString(PyExc_NotImplementedError,
3892 "wxGCDC is not available on this platform.");
3893 wxPyEndBlockThreads(blocked);
3894 }
3895
3896 virtual ~wxGCDC() {}
3897
3898 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3899 void SetGraphicsContext( wxGraphicsContext* ) {}
3900 };
3901
3902 #endif
3903
3904 SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3905 wxDouble width = 0.0,
3906 height = 0.0;
3907 self->GetTextExtent(text, &width, &height, NULL, NULL);
3908 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3909 PyObject* rv = PyTuple_New(2);
3910 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3911 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3912 return rv;
3913 }
3914 SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3915 wxArrayDouble widths;
3916 self->GetPartialTextExtents(text, widths);
3917 return widths;
3918 }
3919 SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
3920 size_t c1, c2, count;
3921 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3922 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3923
3924 if ( beginP != NULL && endP != NULL )
3925 {
3926 count = wxMin(c1, c2);
3927 self->StrokeLines(count, beginP, endP);
3928 }
3929 delete [] beginP;
3930 delete [] endP;
3931 }
3932
3933 #include "wx/dcgraph.h"
3934
3935
3936 #include <wx/overlay.h>
3937
3938
3939
3940 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3941 self->AddColour(name, wxColour(red, green, blue));
3942 }
3943
3944 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3945 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3946 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3947 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3948
3949
3950 #include <wx/effects.h>
3951
3952
3953 #include "wx/renderer.h"
3954
3955
3956 SWIGINTERNINLINE PyObject*
3957 SWIG_From_bool (bool value)
3958 {
3959 return PyBool_FromLong(value ? 1 : 0);
3960 }
3961
3962
3963 #include "wx/wxPython/pseudodc.h"
3964
3965 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3966 wxRect rect;
3967 self->GetIdBounds(id, rect);
3968 return rect;
3969 }
3970 #ifdef __cplusplus
3971 extern "C" {
3972 #endif
3973 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3974 PyObject *resultobj = 0;
3975 wxGDIObject *result = 0 ;
3976
3977 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3978 {
3979 if (!wxPyCheckForApp()) SWIG_fail;
3980 PyThreadState* __tstate = wxPyBeginAllowThreads();
3981 result = (wxGDIObject *)new wxGDIObject();
3982 wxPyEndAllowThreads(__tstate);
3983 if (PyErr_Occurred()) SWIG_fail;
3984 }
3985 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3986 return resultobj;
3987 fail:
3988 return NULL;
3989 }
3990
3991
3992 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3993 PyObject *resultobj = 0;
3994 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3995 void *argp1 = 0 ;
3996 int res1 = 0 ;
3997 PyObject *swig_obj[1] ;
3998
3999 if (!args) SWIG_fail;
4000 swig_obj[0] = args;
4001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
4002 if (!SWIG_IsOK(res1)) {
4003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4004 }
4005 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4006 {
4007 PyThreadState* __tstate = wxPyBeginAllowThreads();
4008 delete arg1;
4009
4010 wxPyEndAllowThreads(__tstate);
4011 if (PyErr_Occurred()) SWIG_fail;
4012 }
4013 resultobj = SWIG_Py_Void();
4014 return resultobj;
4015 fail:
4016 return NULL;
4017 }
4018
4019
4020 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4021 PyObject *resultobj = 0;
4022 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4023 bool result;
4024 void *argp1 = 0 ;
4025 int res1 = 0 ;
4026 PyObject *swig_obj[1] ;
4027
4028 if (!args) SWIG_fail;
4029 swig_obj[0] = args;
4030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4031 if (!SWIG_IsOK(res1)) {
4032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4033 }
4034 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4035 {
4036 PyThreadState* __tstate = wxPyBeginAllowThreads();
4037 result = (bool)(arg1)->IsNull();
4038 wxPyEndAllowThreads(__tstate);
4039 if (PyErr_Occurred()) SWIG_fail;
4040 }
4041 {
4042 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4043 }
4044 return resultobj;
4045 fail:
4046 return NULL;
4047 }
4048
4049
4050 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4051 PyObject *obj;
4052 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4053 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4054 return SWIG_Py_Void();
4055 }
4056
4057 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4058 return SWIG_Python_InitShadowInstance(args);
4059 }
4060
4061 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4062 PyObject *resultobj = 0;
4063 byte arg1 = (byte) 0 ;
4064 byte arg2 = (byte) 0 ;
4065 byte arg3 = (byte) 0 ;
4066 byte arg4 = (byte) wxALPHA_OPAQUE ;
4067 wxColour *result = 0 ;
4068 unsigned char val1 ;
4069 int ecode1 = 0 ;
4070 unsigned char val2 ;
4071 int ecode2 = 0 ;
4072 unsigned char val3 ;
4073 int ecode3 = 0 ;
4074 unsigned char val4 ;
4075 int ecode4 = 0 ;
4076 PyObject * obj0 = 0 ;
4077 PyObject * obj1 = 0 ;
4078 PyObject * obj2 = 0 ;
4079 PyObject * obj3 = 0 ;
4080 char * kwnames[] = {
4081 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4082 };
4083
4084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4085 if (obj0) {
4086 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4087 if (!SWIG_IsOK(ecode1)) {
4088 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4089 }
4090 arg1 = static_cast< byte >(val1);
4091 }
4092 if (obj1) {
4093 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4094 if (!SWIG_IsOK(ecode2)) {
4095 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4096 }
4097 arg2 = static_cast< byte >(val2);
4098 }
4099 if (obj2) {
4100 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4101 if (!SWIG_IsOK(ecode3)) {
4102 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4103 }
4104 arg3 = static_cast< byte >(val3);
4105 }
4106 if (obj3) {
4107 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4108 if (!SWIG_IsOK(ecode4)) {
4109 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4110 }
4111 arg4 = static_cast< byte >(val4);
4112 }
4113 {
4114 PyThreadState* __tstate = wxPyBeginAllowThreads();
4115 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
4116 wxPyEndAllowThreads(__tstate);
4117 if (PyErr_Occurred()) SWIG_fail;
4118 }
4119 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4120 return resultobj;
4121 fail:
4122 return NULL;
4123 }
4124
4125
4126 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4127 PyObject *resultobj = 0;
4128 wxString *arg1 = 0 ;
4129 wxColour *result = 0 ;
4130 bool temp1 = false ;
4131 PyObject * obj0 = 0 ;
4132 char * kwnames[] = {
4133 (char *) "colorName", NULL
4134 };
4135
4136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4137 {
4138 arg1 = wxString_in_helper(obj0);
4139 if (arg1 == NULL) SWIG_fail;
4140 temp1 = true;
4141 }
4142 {
4143 if (!wxPyCheckForApp()) SWIG_fail;
4144 PyThreadState* __tstate = wxPyBeginAllowThreads();
4145 result = (wxColour *)new wxColour((wxString const &)*arg1);
4146 wxPyEndAllowThreads(__tstate);
4147 if (PyErr_Occurred()) SWIG_fail;
4148 }
4149 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4150 {
4151 if (temp1)
4152 delete arg1;
4153 }
4154 return resultobj;
4155 fail:
4156 {
4157 if (temp1)
4158 delete arg1;
4159 }
4160 return NULL;
4161 }
4162
4163
4164 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4165 PyObject *resultobj = 0;
4166 unsigned long arg1 ;
4167 wxColour *result = 0 ;
4168 unsigned long val1 ;
4169 int ecode1 = 0 ;
4170 PyObject * obj0 = 0 ;
4171 char * kwnames[] = {
4172 (char *) "colRGB", NULL
4173 };
4174
4175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4176 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4177 if (!SWIG_IsOK(ecode1)) {
4178 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4179 }
4180 arg1 = static_cast< unsigned long >(val1);
4181 {
4182 PyThreadState* __tstate = wxPyBeginAllowThreads();
4183 result = (wxColour *)new wxColour(arg1);
4184 wxPyEndAllowThreads(__tstate);
4185 if (PyErr_Occurred()) SWIG_fail;
4186 }
4187 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4188 return resultobj;
4189 fail:
4190 return NULL;
4191 }
4192
4193
4194 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4195 PyObject *resultobj = 0;
4196 wxColour *arg1 = (wxColour *) 0 ;
4197 void *argp1 = 0 ;
4198 int res1 = 0 ;
4199 PyObject *swig_obj[1] ;
4200
4201 if (!args) SWIG_fail;
4202 swig_obj[0] = args;
4203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4204 if (!SWIG_IsOK(res1)) {
4205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4206 }
4207 arg1 = reinterpret_cast< wxColour * >(argp1);
4208 {
4209 PyThreadState* __tstate = wxPyBeginAllowThreads();
4210 delete arg1;
4211
4212 wxPyEndAllowThreads(__tstate);
4213 if (PyErr_Occurred()) SWIG_fail;
4214 }
4215 resultobj = SWIG_Py_Void();
4216 return resultobj;
4217 fail:
4218 return NULL;
4219 }
4220
4221
4222 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4223 PyObject *resultobj = 0;
4224 wxColour *arg1 = (wxColour *) 0 ;
4225 byte result;
4226 void *argp1 = 0 ;
4227 int res1 = 0 ;
4228 PyObject *swig_obj[1] ;
4229
4230 if (!args) SWIG_fail;
4231 swig_obj[0] = args;
4232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4233 if (!SWIG_IsOK(res1)) {
4234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4235 }
4236 arg1 = reinterpret_cast< wxColour * >(argp1);
4237 {
4238 PyThreadState* __tstate = wxPyBeginAllowThreads();
4239 result = (byte)(arg1)->Red();
4240 wxPyEndAllowThreads(__tstate);
4241 if (PyErr_Occurred()) SWIG_fail;
4242 }
4243 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4244 return resultobj;
4245 fail:
4246 return NULL;
4247 }
4248
4249
4250 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4251 PyObject *resultobj = 0;
4252 wxColour *arg1 = (wxColour *) 0 ;
4253 byte result;
4254 void *argp1 = 0 ;
4255 int res1 = 0 ;
4256 PyObject *swig_obj[1] ;
4257
4258 if (!args) SWIG_fail;
4259 swig_obj[0] = args;
4260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4261 if (!SWIG_IsOK(res1)) {
4262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4263 }
4264 arg1 = reinterpret_cast< wxColour * >(argp1);
4265 {
4266 PyThreadState* __tstate = wxPyBeginAllowThreads();
4267 result = (byte)(arg1)->Green();
4268 wxPyEndAllowThreads(__tstate);
4269 if (PyErr_Occurred()) SWIG_fail;
4270 }
4271 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4272 return resultobj;
4273 fail:
4274 return NULL;
4275 }
4276
4277
4278 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4279 PyObject *resultobj = 0;
4280 wxColour *arg1 = (wxColour *) 0 ;
4281 byte result;
4282 void *argp1 = 0 ;
4283 int res1 = 0 ;
4284 PyObject *swig_obj[1] ;
4285
4286 if (!args) SWIG_fail;
4287 swig_obj[0] = args;
4288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4289 if (!SWIG_IsOK(res1)) {
4290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4291 }
4292 arg1 = reinterpret_cast< wxColour * >(argp1);
4293 {
4294 PyThreadState* __tstate = wxPyBeginAllowThreads();
4295 result = (byte)(arg1)->Blue();
4296 wxPyEndAllowThreads(__tstate);
4297 if (PyErr_Occurred()) SWIG_fail;
4298 }
4299 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4300 return resultobj;
4301 fail:
4302 return NULL;
4303 }
4304
4305
4306 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4307 PyObject *resultobj = 0;
4308 wxColour *arg1 = (wxColour *) 0 ;
4309 byte result;
4310 void *argp1 = 0 ;
4311 int res1 = 0 ;
4312 PyObject *swig_obj[1] ;
4313
4314 if (!args) SWIG_fail;
4315 swig_obj[0] = args;
4316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4317 if (!SWIG_IsOK(res1)) {
4318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4319 }
4320 arg1 = reinterpret_cast< wxColour * >(argp1);
4321 {
4322 PyThreadState* __tstate = wxPyBeginAllowThreads();
4323 result = (byte)(arg1)->Alpha();
4324 wxPyEndAllowThreads(__tstate);
4325 if (PyErr_Occurred()) SWIG_fail;
4326 }
4327 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4328 return resultobj;
4329 fail:
4330 return NULL;
4331 }
4332
4333
4334 SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4335 PyObject *resultobj = 0;
4336 wxColour *arg1 = (wxColour *) 0 ;
4337 bool result;
4338 void *argp1 = 0 ;
4339 int res1 = 0 ;
4340 PyObject *swig_obj[1] ;
4341
4342 if (!args) SWIG_fail;
4343 swig_obj[0] = args;
4344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4345 if (!SWIG_IsOK(res1)) {
4346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
4347 }
4348 arg1 = reinterpret_cast< wxColour * >(argp1);
4349 {
4350 PyThreadState* __tstate = wxPyBeginAllowThreads();
4351 result = (bool)(arg1)->IsOk();
4352 wxPyEndAllowThreads(__tstate);
4353 if (PyErr_Occurred()) SWIG_fail;
4354 }
4355 {
4356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4357 }
4358 return resultobj;
4359 fail:
4360 return NULL;
4361 }
4362
4363
4364 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4365 PyObject *resultobj = 0;
4366 wxColour *arg1 = (wxColour *) 0 ;
4367 byte arg2 ;
4368 byte arg3 ;
4369 byte arg4 ;
4370 byte arg5 = (byte) wxALPHA_OPAQUE ;
4371 void *argp1 = 0 ;
4372 int res1 = 0 ;
4373 unsigned char val2 ;
4374 int ecode2 = 0 ;
4375 unsigned char val3 ;
4376 int ecode3 = 0 ;
4377 unsigned char val4 ;
4378 int ecode4 = 0 ;
4379 unsigned char val5 ;
4380 int ecode5 = 0 ;
4381 PyObject * obj0 = 0 ;
4382 PyObject * obj1 = 0 ;
4383 PyObject * obj2 = 0 ;
4384 PyObject * obj3 = 0 ;
4385 PyObject * obj4 = 0 ;
4386 char * kwnames[] = {
4387 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4388 };
4389
4390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4392 if (!SWIG_IsOK(res1)) {
4393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4394 }
4395 arg1 = reinterpret_cast< wxColour * >(argp1);
4396 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4397 if (!SWIG_IsOK(ecode2)) {
4398 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4399 }
4400 arg2 = static_cast< byte >(val2);
4401 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4402 if (!SWIG_IsOK(ecode3)) {
4403 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4404 }
4405 arg3 = static_cast< byte >(val3);
4406 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4407 if (!SWIG_IsOK(ecode4)) {
4408 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4409 }
4410 arg4 = static_cast< byte >(val4);
4411 if (obj4) {
4412 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4413 if (!SWIG_IsOK(ecode5)) {
4414 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4415 }
4416 arg5 = static_cast< byte >(val5);
4417 }
4418 {
4419 PyThreadState* __tstate = wxPyBeginAllowThreads();
4420 (arg1)->Set(arg2,arg3,arg4,arg5);
4421 wxPyEndAllowThreads(__tstate);
4422 if (PyErr_Occurred()) SWIG_fail;
4423 }
4424 resultobj = SWIG_Py_Void();
4425 return resultobj;
4426 fail:
4427 return NULL;
4428 }
4429
4430
4431 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4432 PyObject *resultobj = 0;
4433 wxColour *arg1 = (wxColour *) 0 ;
4434 unsigned long arg2 ;
4435 void *argp1 = 0 ;
4436 int res1 = 0 ;
4437 unsigned long val2 ;
4438 int ecode2 = 0 ;
4439 PyObject * obj0 = 0 ;
4440 PyObject * obj1 = 0 ;
4441 char * kwnames[] = {
4442 (char *) "self",(char *) "colRGB", NULL
4443 };
4444
4445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4447 if (!SWIG_IsOK(res1)) {
4448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4449 }
4450 arg1 = reinterpret_cast< wxColour * >(argp1);
4451 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4452 if (!SWIG_IsOK(ecode2)) {
4453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4454 }
4455 arg2 = static_cast< unsigned long >(val2);
4456 {
4457 PyThreadState* __tstate = wxPyBeginAllowThreads();
4458 (arg1)->Set(arg2);
4459 wxPyEndAllowThreads(__tstate);
4460 if (PyErr_Occurred()) SWIG_fail;
4461 }
4462 resultobj = SWIG_Py_Void();
4463 return resultobj;
4464 fail:
4465 return NULL;
4466 }
4467
4468
4469 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4470 PyObject *resultobj = 0;
4471 wxColour *arg1 = (wxColour *) 0 ;
4472 wxString *arg2 = 0 ;
4473 void *argp1 = 0 ;
4474 int res1 = 0 ;
4475 bool temp2 = false ;
4476 PyObject * obj0 = 0 ;
4477 PyObject * obj1 = 0 ;
4478 char * kwnames[] = {
4479 (char *) "self",(char *) "colourName", NULL
4480 };
4481
4482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4484 if (!SWIG_IsOK(res1)) {
4485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4486 }
4487 arg1 = reinterpret_cast< wxColour * >(argp1);
4488 {
4489 arg2 = wxString_in_helper(obj1);
4490 if (arg2 == NULL) SWIG_fail;
4491 temp2 = true;
4492 }
4493 {
4494 PyThreadState* __tstate = wxPyBeginAllowThreads();
4495 (arg1)->Set((wxString const &)*arg2);
4496 wxPyEndAllowThreads(__tstate);
4497 if (PyErr_Occurred()) SWIG_fail;
4498 }
4499 resultobj = SWIG_Py_Void();
4500 {
4501 if (temp2)
4502 delete arg2;
4503 }
4504 return resultobj;
4505 fail:
4506 {
4507 if (temp2)
4508 delete arg2;
4509 }
4510 return NULL;
4511 }
4512
4513
4514 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4515 PyObject *resultobj = 0;
4516 wxColour *arg1 = (wxColour *) 0 ;
4517 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4518 wxString result;
4519 void *argp1 = 0 ;
4520 int res1 = 0 ;
4521 long val2 ;
4522 int ecode2 = 0 ;
4523 PyObject * obj0 = 0 ;
4524 PyObject * obj1 = 0 ;
4525 char * kwnames[] = {
4526 (char *) "self",(char *) "flags", NULL
4527 };
4528
4529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4531 if (!SWIG_IsOK(res1)) {
4532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4533 }
4534 arg1 = reinterpret_cast< wxColour * >(argp1);
4535 if (obj1) {
4536 ecode2 = SWIG_AsVal_long(obj1, &val2);
4537 if (!SWIG_IsOK(ecode2)) {
4538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4539 }
4540 arg2 = static_cast< long >(val2);
4541 }
4542 {
4543 PyThreadState* __tstate = wxPyBeginAllowThreads();
4544 result = ((wxColour const *)arg1)->GetAsString(arg2);
4545 wxPyEndAllowThreads(__tstate);
4546 if (PyErr_Occurred()) SWIG_fail;
4547 }
4548 {
4549 #if wxUSE_UNICODE
4550 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4551 #else
4552 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4553 #endif
4554 }
4555 return resultobj;
4556 fail:
4557 return NULL;
4558 }
4559
4560
4561 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4562 PyObject *resultobj = 0;
4563 wxColour *arg1 = (wxColour *) 0 ;
4564 long result;
4565 void *argp1 = 0 ;
4566 int res1 = 0 ;
4567 PyObject *swig_obj[1] ;
4568
4569 if (!args) SWIG_fail;
4570 swig_obj[0] = args;
4571 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4572 if (!SWIG_IsOK(res1)) {
4573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4574 }
4575 arg1 = reinterpret_cast< wxColour * >(argp1);
4576 {
4577 PyThreadState* __tstate = wxPyBeginAllowThreads();
4578 result = (long)((wxColour const *)arg1)->GetPixel();
4579 wxPyEndAllowThreads(__tstate);
4580 if (PyErr_Occurred()) SWIG_fail;
4581 }
4582 resultobj = SWIG_From_long(static_cast< long >(result));
4583 return resultobj;
4584 fail:
4585 return NULL;
4586 }
4587
4588
4589 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4590 PyObject *resultobj = 0;
4591 wxColour *arg1 = (wxColour *) 0 ;
4592 PyObject *arg2 = (PyObject *) 0 ;
4593 bool result;
4594 void *argp1 = 0 ;
4595 int res1 = 0 ;
4596 PyObject * obj0 = 0 ;
4597 PyObject * obj1 = 0 ;
4598 char * kwnames[] = {
4599 (char *) "self",(char *) "other", NULL
4600 };
4601
4602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4604 if (!SWIG_IsOK(res1)) {
4605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4606 }
4607 arg1 = reinterpret_cast< wxColour * >(argp1);
4608 arg2 = obj1;
4609 {
4610 result = (bool)wxColour___eq__(arg1,arg2);
4611 if (PyErr_Occurred()) SWIG_fail;
4612 }
4613 {
4614 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4615 }
4616 return resultobj;
4617 fail:
4618 return NULL;
4619 }
4620
4621
4622 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4623 PyObject *resultobj = 0;
4624 wxColour *arg1 = (wxColour *) 0 ;
4625 PyObject *arg2 = (PyObject *) 0 ;
4626 bool result;
4627 void *argp1 = 0 ;
4628 int res1 = 0 ;
4629 PyObject * obj0 = 0 ;
4630 PyObject * obj1 = 0 ;
4631 char * kwnames[] = {
4632 (char *) "self",(char *) "other", NULL
4633 };
4634
4635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4637 if (!SWIG_IsOK(res1)) {
4638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4639 }
4640 arg1 = reinterpret_cast< wxColour * >(argp1);
4641 arg2 = obj1;
4642 {
4643 result = (bool)wxColour___ne__(arg1,arg2);
4644 if (PyErr_Occurred()) SWIG_fail;
4645 }
4646 {
4647 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4648 }
4649 return resultobj;
4650 fail:
4651 return NULL;
4652 }
4653
4654
4655 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4656 PyObject *resultobj = 0;
4657 wxColour *arg1 = (wxColour *) 0 ;
4658 bool arg2 = (bool) false ;
4659 PyObject *result = 0 ;
4660 void *argp1 = 0 ;
4661 int res1 = 0 ;
4662 bool val2 ;
4663 int ecode2 = 0 ;
4664 PyObject * obj0 = 0 ;
4665 PyObject * obj1 = 0 ;
4666 char * kwnames[] = {
4667 (char *) "self",(char *) "includeAlpha", NULL
4668 };
4669
4670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4672 if (!SWIG_IsOK(res1)) {
4673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4674 }
4675 arg1 = reinterpret_cast< wxColour * >(argp1);
4676 if (obj1) {
4677 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4678 if (!SWIG_IsOK(ecode2)) {
4679 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4680 }
4681 arg2 = static_cast< bool >(val2);
4682 }
4683 {
4684 result = (PyObject *)wxColour_Get(arg1,arg2);
4685 if (PyErr_Occurred()) SWIG_fail;
4686 }
4687 resultobj = result;
4688 return resultobj;
4689 fail:
4690 return NULL;
4691 }
4692
4693
4694 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4695 PyObject *resultobj = 0;
4696 wxColour *arg1 = (wxColour *) 0 ;
4697 unsigned long result;
4698 void *argp1 = 0 ;
4699 int res1 = 0 ;
4700 PyObject *swig_obj[1] ;
4701
4702 if (!args) SWIG_fail;
4703 swig_obj[0] = args;
4704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4705 if (!SWIG_IsOK(res1)) {
4706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4707 }
4708 arg1 = reinterpret_cast< wxColour * >(argp1);
4709 {
4710 result = (unsigned long)wxColour_GetRGB(arg1);
4711 if (PyErr_Occurred()) SWIG_fail;
4712 }
4713 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4714 return resultobj;
4715 fail:
4716 return NULL;
4717 }
4718
4719
4720 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4721 PyObject *obj;
4722 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4723 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4724 return SWIG_Py_Void();
4725 }
4726
4727 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4728 return SWIG_Python_InitShadowInstance(args);
4729 }
4730
4731 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4732 PyObject *resultobj = 0;
4733 int arg1 ;
4734 unsigned char *arg2 = (unsigned char *) 0 ;
4735 unsigned char *arg3 = (unsigned char *) 0 ;
4736 unsigned char *arg4 = (unsigned char *) 0 ;
4737 wxPalette *result = 0 ;
4738 int val1 ;
4739 int ecode1 = 0 ;
4740 void *argp2 = 0 ;
4741 int res2 = 0 ;
4742 void *argp3 = 0 ;
4743 int res3 = 0 ;
4744 void *argp4 = 0 ;
4745 int res4 = 0 ;
4746 PyObject * obj0 = 0 ;
4747 PyObject * obj1 = 0 ;
4748 PyObject * obj2 = 0 ;
4749 PyObject * obj3 = 0 ;
4750 char * kwnames[] = {
4751 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4752 };
4753
4754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4755 ecode1 = SWIG_AsVal_int(obj0, &val1);
4756 if (!SWIG_IsOK(ecode1)) {
4757 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4758 }
4759 arg1 = static_cast< int >(val1);
4760 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4761 if (!SWIG_IsOK(res2)) {
4762 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4763 }
4764 arg2 = reinterpret_cast< unsigned char * >(argp2);
4765 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4766 if (!SWIG_IsOK(res3)) {
4767 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4768 }
4769 arg3 = reinterpret_cast< unsigned char * >(argp3);
4770 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4771 if (!SWIG_IsOK(res4)) {
4772 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4773 }
4774 arg4 = reinterpret_cast< unsigned char * >(argp4);
4775 {
4776 if (!wxPyCheckForApp()) SWIG_fail;
4777 PyThreadState* __tstate = wxPyBeginAllowThreads();
4778 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4779 wxPyEndAllowThreads(__tstate);
4780 if (PyErr_Occurred()) SWIG_fail;
4781 }
4782 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4783 return resultobj;
4784 fail:
4785 return NULL;
4786 }
4787
4788
4789 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4790 PyObject *resultobj = 0;
4791 wxPalette *arg1 = (wxPalette *) 0 ;
4792 void *argp1 = 0 ;
4793 int res1 = 0 ;
4794 PyObject *swig_obj[1] ;
4795
4796 if (!args) SWIG_fail;
4797 swig_obj[0] = args;
4798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4799 if (!SWIG_IsOK(res1)) {
4800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4801 }
4802 arg1 = reinterpret_cast< wxPalette * >(argp1);
4803 {
4804 PyThreadState* __tstate = wxPyBeginAllowThreads();
4805 delete arg1;
4806
4807 wxPyEndAllowThreads(__tstate);
4808 if (PyErr_Occurred()) SWIG_fail;
4809 }
4810 resultobj = SWIG_Py_Void();
4811 return resultobj;
4812 fail:
4813 return NULL;
4814 }
4815
4816
4817 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4818 PyObject *resultobj = 0;
4819 wxPalette *arg1 = (wxPalette *) 0 ;
4820 byte arg2 ;
4821 byte arg3 ;
4822 byte arg4 ;
4823 int result;
4824 void *argp1 = 0 ;
4825 int res1 = 0 ;
4826 unsigned char val2 ;
4827 int ecode2 = 0 ;
4828 unsigned char val3 ;
4829 int ecode3 = 0 ;
4830 unsigned char val4 ;
4831 int ecode4 = 0 ;
4832 PyObject * obj0 = 0 ;
4833 PyObject * obj1 = 0 ;
4834 PyObject * obj2 = 0 ;
4835 PyObject * obj3 = 0 ;
4836 char * kwnames[] = {
4837 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4838 };
4839
4840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4842 if (!SWIG_IsOK(res1)) {
4843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4844 }
4845 arg1 = reinterpret_cast< wxPalette * >(argp1);
4846 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4847 if (!SWIG_IsOK(ecode2)) {
4848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4849 }
4850 arg2 = static_cast< byte >(val2);
4851 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4852 if (!SWIG_IsOK(ecode3)) {
4853 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4854 }
4855 arg3 = static_cast< byte >(val3);
4856 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4857 if (!SWIG_IsOK(ecode4)) {
4858 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4859 }
4860 arg4 = static_cast< byte >(val4);
4861 {
4862 PyThreadState* __tstate = wxPyBeginAllowThreads();
4863 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4864 wxPyEndAllowThreads(__tstate);
4865 if (PyErr_Occurred()) SWIG_fail;
4866 }
4867 resultobj = SWIG_From_int(static_cast< int >(result));
4868 return resultobj;
4869 fail:
4870 return NULL;
4871 }
4872
4873
4874 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4875 PyObject *resultobj = 0;
4876 wxPalette *arg1 = (wxPalette *) 0 ;
4877 int arg2 ;
4878 byte *arg3 = (byte *) 0 ;
4879 byte *arg4 = (byte *) 0 ;
4880 byte *arg5 = (byte *) 0 ;
4881 bool result;
4882 void *argp1 = 0 ;
4883 int res1 = 0 ;
4884 int val2 ;
4885 int ecode2 = 0 ;
4886 byte temp3 ;
4887 int res3 = SWIG_TMPOBJ ;
4888 byte temp4 ;
4889 int res4 = SWIG_TMPOBJ ;
4890 byte temp5 ;
4891 int res5 = SWIG_TMPOBJ ;
4892 PyObject * obj0 = 0 ;
4893 PyObject * obj1 = 0 ;
4894 char * kwnames[] = {
4895 (char *) "self",(char *) "pixel", NULL
4896 };
4897
4898 arg3 = &temp3;
4899 arg4 = &temp4;
4900 arg5 = &temp5;
4901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4903 if (!SWIG_IsOK(res1)) {
4904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4905 }
4906 arg1 = reinterpret_cast< wxPalette * >(argp1);
4907 ecode2 = SWIG_AsVal_int(obj1, &val2);
4908 if (!SWIG_IsOK(ecode2)) {
4909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4910 }
4911 arg2 = static_cast< int >(val2);
4912 {
4913 PyThreadState* __tstate = wxPyBeginAllowThreads();
4914 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4915 wxPyEndAllowThreads(__tstate);
4916 if (PyErr_Occurred()) SWIG_fail;
4917 }
4918 {
4919 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4920 }
4921 if (SWIG_IsTmpObj(res3)) {
4922 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4923 } else {
4924 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4925 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4926 }
4927 if (SWIG_IsTmpObj(res4)) {
4928 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4929 } else {
4930 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4931 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4932 }
4933 if (SWIG_IsTmpObj(res5)) {
4934 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4935 } else {
4936 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4937 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4938 }
4939 return resultobj;
4940 fail:
4941 return NULL;
4942 }
4943
4944
4945 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4946 PyObject *resultobj = 0;
4947 wxPalette *arg1 = (wxPalette *) 0 ;
4948 int result;
4949 void *argp1 = 0 ;
4950 int res1 = 0 ;
4951 PyObject *swig_obj[1] ;
4952
4953 if (!args) SWIG_fail;
4954 swig_obj[0] = args;
4955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4956 if (!SWIG_IsOK(res1)) {
4957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4958 }
4959 arg1 = reinterpret_cast< wxPalette * >(argp1);
4960 {
4961 PyThreadState* __tstate = wxPyBeginAllowThreads();
4962 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4963 wxPyEndAllowThreads(__tstate);
4964 if (PyErr_Occurred()) SWIG_fail;
4965 }
4966 resultobj = SWIG_From_int(static_cast< int >(result));
4967 return resultobj;
4968 fail:
4969 return NULL;
4970 }
4971
4972
4973 SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4974 PyObject *resultobj = 0;
4975 wxPalette *arg1 = (wxPalette *) 0 ;
4976 bool result;
4977 void *argp1 = 0 ;
4978 int res1 = 0 ;
4979 PyObject *swig_obj[1] ;
4980
4981 if (!args) SWIG_fail;
4982 swig_obj[0] = args;
4983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4984 if (!SWIG_IsOK(res1)) {
4985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
4986 }
4987 arg1 = reinterpret_cast< wxPalette * >(argp1);
4988 {
4989 PyThreadState* __tstate = wxPyBeginAllowThreads();
4990 result = (bool)(arg1)->IsOk();
4991 wxPyEndAllowThreads(__tstate);
4992 if (PyErr_Occurred()) SWIG_fail;
4993 }
4994 {
4995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4996 }
4997 return resultobj;
4998 fail:
4999 return NULL;
5000 }
5001
5002
5003 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5004 PyObject *obj;
5005 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5006 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
5007 return SWIG_Py_Void();
5008 }
5009
5010 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5011 return SWIG_Python_InitShadowInstance(args);
5012 }
5013
5014 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5015 PyObject *resultobj = 0;
5016 wxColour *arg1 = 0 ;
5017 int arg2 = (int) 1 ;
5018 int arg3 = (int) wxSOLID ;
5019 wxPen *result = 0 ;
5020 wxColour temp1 ;
5021 int val2 ;
5022 int ecode2 = 0 ;
5023 int val3 ;
5024 int ecode3 = 0 ;
5025 PyObject * obj0 = 0 ;
5026 PyObject * obj1 = 0 ;
5027 PyObject * obj2 = 0 ;
5028 char * kwnames[] = {
5029 (char *) "colour",(char *) "width",(char *) "style", NULL
5030 };
5031
5032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5033 {
5034 arg1 = &temp1;
5035 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5036 }
5037 if (obj1) {
5038 ecode2 = SWIG_AsVal_int(obj1, &val2);
5039 if (!SWIG_IsOK(ecode2)) {
5040 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5041 }
5042 arg2 = static_cast< int >(val2);
5043 }
5044 if (obj2) {
5045 ecode3 = SWIG_AsVal_int(obj2, &val3);
5046 if (!SWIG_IsOK(ecode3)) {
5047 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5048 }
5049 arg3 = static_cast< int >(val3);
5050 }
5051 {
5052 if (!wxPyCheckForApp()) SWIG_fail;
5053 PyThreadState* __tstate = wxPyBeginAllowThreads();
5054 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5055 wxPyEndAllowThreads(__tstate);
5056 if (PyErr_Occurred()) SWIG_fail;
5057 }
5058 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5059 return resultobj;
5060 fail:
5061 return NULL;
5062 }
5063
5064
5065 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5066 PyObject *resultobj = 0;
5067 wxPen *arg1 = (wxPen *) 0 ;
5068 void *argp1 = 0 ;
5069 int res1 = 0 ;
5070 PyObject *swig_obj[1] ;
5071
5072 if (!args) SWIG_fail;
5073 swig_obj[0] = args;
5074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5075 if (!SWIG_IsOK(res1)) {
5076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5077 }
5078 arg1 = reinterpret_cast< wxPen * >(argp1);
5079 {
5080 PyThreadState* __tstate = wxPyBeginAllowThreads();
5081 delete arg1;
5082
5083 wxPyEndAllowThreads(__tstate);
5084 if (PyErr_Occurred()) SWIG_fail;
5085 }
5086 resultobj = SWIG_Py_Void();
5087 return resultobj;
5088 fail:
5089 return NULL;
5090 }
5091
5092
5093 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5094 PyObject *resultobj = 0;
5095 wxPen *arg1 = (wxPen *) 0 ;
5096 int result;
5097 void *argp1 = 0 ;
5098 int res1 = 0 ;
5099 PyObject *swig_obj[1] ;
5100
5101 if (!args) SWIG_fail;
5102 swig_obj[0] = args;
5103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5104 if (!SWIG_IsOK(res1)) {
5105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5106 }
5107 arg1 = reinterpret_cast< wxPen * >(argp1);
5108 {
5109 PyThreadState* __tstate = wxPyBeginAllowThreads();
5110 result = (int)(arg1)->GetCap();
5111 wxPyEndAllowThreads(__tstate);
5112 if (PyErr_Occurred()) SWIG_fail;
5113 }
5114 resultobj = SWIG_From_int(static_cast< int >(result));
5115 return resultobj;
5116 fail:
5117 return NULL;
5118 }
5119
5120
5121 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5122 PyObject *resultobj = 0;
5123 wxPen *arg1 = (wxPen *) 0 ;
5124 wxColour result;
5125 void *argp1 = 0 ;
5126 int res1 = 0 ;
5127 PyObject *swig_obj[1] ;
5128
5129 if (!args) SWIG_fail;
5130 swig_obj[0] = args;
5131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5132 if (!SWIG_IsOK(res1)) {
5133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5134 }
5135 arg1 = reinterpret_cast< wxPen * >(argp1);
5136 {
5137 PyThreadState* __tstate = wxPyBeginAllowThreads();
5138 result = (arg1)->GetColour();
5139 wxPyEndAllowThreads(__tstate);
5140 if (PyErr_Occurred()) SWIG_fail;
5141 }
5142 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5143 return resultobj;
5144 fail:
5145 return NULL;
5146 }
5147
5148
5149 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5150 PyObject *resultobj = 0;
5151 wxPen *arg1 = (wxPen *) 0 ;
5152 int result;
5153 void *argp1 = 0 ;
5154 int res1 = 0 ;
5155 PyObject *swig_obj[1] ;
5156
5157 if (!args) SWIG_fail;
5158 swig_obj[0] = args;
5159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5160 if (!SWIG_IsOK(res1)) {
5161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5162 }
5163 arg1 = reinterpret_cast< wxPen * >(argp1);
5164 {
5165 PyThreadState* __tstate = wxPyBeginAllowThreads();
5166 result = (int)(arg1)->GetJoin();
5167 wxPyEndAllowThreads(__tstate);
5168 if (PyErr_Occurred()) SWIG_fail;
5169 }
5170 resultobj = SWIG_From_int(static_cast< int >(result));
5171 return resultobj;
5172 fail:
5173 return NULL;
5174 }
5175
5176
5177 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5178 PyObject *resultobj = 0;
5179 wxPen *arg1 = (wxPen *) 0 ;
5180 int result;
5181 void *argp1 = 0 ;
5182 int res1 = 0 ;
5183 PyObject *swig_obj[1] ;
5184
5185 if (!args) SWIG_fail;
5186 swig_obj[0] = args;
5187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5188 if (!SWIG_IsOK(res1)) {
5189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5190 }
5191 arg1 = reinterpret_cast< wxPen * >(argp1);
5192 {
5193 PyThreadState* __tstate = wxPyBeginAllowThreads();
5194 result = (int)(arg1)->GetStyle();
5195 wxPyEndAllowThreads(__tstate);
5196 if (PyErr_Occurred()) SWIG_fail;
5197 }
5198 resultobj = SWIG_From_int(static_cast< int >(result));
5199 return resultobj;
5200 fail:
5201 return NULL;
5202 }
5203
5204
5205 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5206 PyObject *resultobj = 0;
5207 wxPen *arg1 = (wxPen *) 0 ;
5208 int result;
5209 void *argp1 = 0 ;
5210 int res1 = 0 ;
5211 PyObject *swig_obj[1] ;
5212
5213 if (!args) SWIG_fail;
5214 swig_obj[0] = args;
5215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5216 if (!SWIG_IsOK(res1)) {
5217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5218 }
5219 arg1 = reinterpret_cast< wxPen * >(argp1);
5220 {
5221 PyThreadState* __tstate = wxPyBeginAllowThreads();
5222 result = (int)(arg1)->GetWidth();
5223 wxPyEndAllowThreads(__tstate);
5224 if (PyErr_Occurred()) SWIG_fail;
5225 }
5226 resultobj = SWIG_From_int(static_cast< int >(result));
5227 return resultobj;
5228 fail:
5229 return NULL;
5230 }
5231
5232
5233 SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5234 PyObject *resultobj = 0;
5235 wxPen *arg1 = (wxPen *) 0 ;
5236 bool result;
5237 void *argp1 = 0 ;
5238 int res1 = 0 ;
5239 PyObject *swig_obj[1] ;
5240
5241 if (!args) SWIG_fail;
5242 swig_obj[0] = args;
5243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5244 if (!SWIG_IsOK(res1)) {
5245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
5246 }
5247 arg1 = reinterpret_cast< wxPen * >(argp1);
5248 {
5249 PyThreadState* __tstate = wxPyBeginAllowThreads();
5250 result = (bool)(arg1)->IsOk();
5251 wxPyEndAllowThreads(__tstate);
5252 if (PyErr_Occurred()) SWIG_fail;
5253 }
5254 {
5255 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5256 }
5257 return resultobj;
5258 fail:
5259 return NULL;
5260 }
5261
5262
5263 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5264 PyObject *resultobj = 0;
5265 wxPen *arg1 = (wxPen *) 0 ;
5266 int arg2 ;
5267 void *argp1 = 0 ;
5268 int res1 = 0 ;
5269 int val2 ;
5270 int ecode2 = 0 ;
5271 PyObject * obj0 = 0 ;
5272 PyObject * obj1 = 0 ;
5273 char * kwnames[] = {
5274 (char *) "self",(char *) "cap_style", NULL
5275 };
5276
5277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5279 if (!SWIG_IsOK(res1)) {
5280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5281 }
5282 arg1 = reinterpret_cast< wxPen * >(argp1);
5283 ecode2 = SWIG_AsVal_int(obj1, &val2);
5284 if (!SWIG_IsOK(ecode2)) {
5285 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5286 }
5287 arg2 = static_cast< int >(val2);
5288 {
5289 PyThreadState* __tstate = wxPyBeginAllowThreads();
5290 (arg1)->SetCap(arg2);
5291 wxPyEndAllowThreads(__tstate);
5292 if (PyErr_Occurred()) SWIG_fail;
5293 }
5294 resultobj = SWIG_Py_Void();
5295 return resultobj;
5296 fail:
5297 return NULL;
5298 }
5299
5300
5301 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5302 PyObject *resultobj = 0;
5303 wxPen *arg1 = (wxPen *) 0 ;
5304 wxColour *arg2 = 0 ;
5305 void *argp1 = 0 ;
5306 int res1 = 0 ;
5307 wxColour temp2 ;
5308 PyObject * obj0 = 0 ;
5309 PyObject * obj1 = 0 ;
5310 char * kwnames[] = {
5311 (char *) "self",(char *) "colour", NULL
5312 };
5313
5314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5316 if (!SWIG_IsOK(res1)) {
5317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5318 }
5319 arg1 = reinterpret_cast< wxPen * >(argp1);
5320 {
5321 arg2 = &temp2;
5322 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5323 }
5324 {
5325 PyThreadState* __tstate = wxPyBeginAllowThreads();
5326 (arg1)->SetColour(*arg2);
5327 wxPyEndAllowThreads(__tstate);
5328 if (PyErr_Occurred()) SWIG_fail;
5329 }
5330 resultobj = SWIG_Py_Void();
5331 return resultobj;
5332 fail:
5333 return NULL;
5334 }
5335
5336
5337 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5338 PyObject *resultobj = 0;
5339 wxPen *arg1 = (wxPen *) 0 ;
5340 int arg2 ;
5341 void *argp1 = 0 ;
5342 int res1 = 0 ;
5343 int val2 ;
5344 int ecode2 = 0 ;
5345 PyObject * obj0 = 0 ;
5346 PyObject * obj1 = 0 ;
5347 char * kwnames[] = {
5348 (char *) "self",(char *) "join_style", NULL
5349 };
5350
5351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5353 if (!SWIG_IsOK(res1)) {
5354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5355 }
5356 arg1 = reinterpret_cast< wxPen * >(argp1);
5357 ecode2 = SWIG_AsVal_int(obj1, &val2);
5358 if (!SWIG_IsOK(ecode2)) {
5359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5360 }
5361 arg2 = static_cast< int >(val2);
5362 {
5363 PyThreadState* __tstate = wxPyBeginAllowThreads();
5364 (arg1)->SetJoin(arg2);
5365 wxPyEndAllowThreads(__tstate);
5366 if (PyErr_Occurred()) SWIG_fail;
5367 }
5368 resultobj = SWIG_Py_Void();
5369 return resultobj;
5370 fail:
5371 return NULL;
5372 }
5373
5374
5375 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5376 PyObject *resultobj = 0;
5377 wxPen *arg1 = (wxPen *) 0 ;
5378 int arg2 ;
5379 void *argp1 = 0 ;
5380 int res1 = 0 ;
5381 int val2 ;
5382 int ecode2 = 0 ;
5383 PyObject * obj0 = 0 ;
5384 PyObject * obj1 = 0 ;
5385 char * kwnames[] = {
5386 (char *) "self",(char *) "style", NULL
5387 };
5388
5389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5391 if (!SWIG_IsOK(res1)) {
5392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5393 }
5394 arg1 = reinterpret_cast< wxPen * >(argp1);
5395 ecode2 = SWIG_AsVal_int(obj1, &val2);
5396 if (!SWIG_IsOK(ecode2)) {
5397 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5398 }
5399 arg2 = static_cast< int >(val2);
5400 {
5401 PyThreadState* __tstate = wxPyBeginAllowThreads();
5402 (arg1)->SetStyle(arg2);
5403 wxPyEndAllowThreads(__tstate);
5404 if (PyErr_Occurred()) SWIG_fail;
5405 }
5406 resultobj = SWIG_Py_Void();
5407 return resultobj;
5408 fail:
5409 return NULL;
5410 }
5411
5412
5413 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5414 PyObject *resultobj = 0;
5415 wxPen *arg1 = (wxPen *) 0 ;
5416 int arg2 ;
5417 void *argp1 = 0 ;
5418 int res1 = 0 ;
5419 int val2 ;
5420 int ecode2 = 0 ;
5421 PyObject * obj0 = 0 ;
5422 PyObject * obj1 = 0 ;
5423 char * kwnames[] = {
5424 (char *) "self",(char *) "width", NULL
5425 };
5426
5427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5429 if (!SWIG_IsOK(res1)) {
5430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5431 }
5432 arg1 = reinterpret_cast< wxPen * >(argp1);
5433 ecode2 = SWIG_AsVal_int(obj1, &val2);
5434 if (!SWIG_IsOK(ecode2)) {
5435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5436 }
5437 arg2 = static_cast< int >(val2);
5438 {
5439 PyThreadState* __tstate = wxPyBeginAllowThreads();
5440 (arg1)->SetWidth(arg2);
5441 wxPyEndAllowThreads(__tstate);
5442 if (PyErr_Occurred()) SWIG_fail;
5443 }
5444 resultobj = SWIG_Py_Void();
5445 return resultobj;
5446 fail:
5447 return NULL;
5448 }
5449
5450
5451 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5452 PyObject *resultobj = 0;
5453 wxPen *arg1 = (wxPen *) 0 ;
5454 int arg2 ;
5455 wxDash *arg3 = (wxDash *) 0 ;
5456 void *argp1 = 0 ;
5457 int res1 = 0 ;
5458 PyObject * obj0 = 0 ;
5459 PyObject * obj1 = 0 ;
5460 char * kwnames[] = {
5461 (char *) "self",(char *) "dashes", NULL
5462 };
5463
5464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5466 if (!SWIG_IsOK(res1)) {
5467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5468 }
5469 arg1 = reinterpret_cast< wxPen * >(argp1);
5470 {
5471 arg2 = PyList_Size(obj1);
5472 arg3 = (wxDash*)byte_LIST_helper(obj1);
5473 if (arg3 == NULL) SWIG_fail;
5474 }
5475 {
5476 PyThreadState* __tstate = wxPyBeginAllowThreads();
5477 (arg1)->SetDashes(arg2,arg3);
5478 wxPyEndAllowThreads(__tstate);
5479 if (PyErr_Occurred()) SWIG_fail;
5480 }
5481 resultobj = SWIG_Py_Void();
5482 {
5483 if (arg3) delete [] arg3;
5484 }
5485 return resultobj;
5486 fail:
5487 {
5488 if (arg3) delete [] arg3;
5489 }
5490 return NULL;
5491 }
5492
5493
5494 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5495 PyObject *resultobj = 0;
5496 wxPen *arg1 = (wxPen *) 0 ;
5497 PyObject *result = 0 ;
5498 void *argp1 = 0 ;
5499 int res1 = 0 ;
5500 PyObject *swig_obj[1] ;
5501
5502 if (!args) SWIG_fail;
5503 swig_obj[0] = args;
5504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5505 if (!SWIG_IsOK(res1)) {
5506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5507 }
5508 arg1 = reinterpret_cast< wxPen * >(argp1);
5509 {
5510 PyThreadState* __tstate = wxPyBeginAllowThreads();
5511 result = (PyObject *)wxPen_GetDashes(arg1);
5512 wxPyEndAllowThreads(__tstate);
5513 if (PyErr_Occurred()) SWIG_fail;
5514 }
5515 resultobj = result;
5516 return resultobj;
5517 fail:
5518 return NULL;
5519 }
5520
5521
5522 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5523 PyObject *resultobj = 0;
5524 wxPen *arg1 = (wxPen *) 0 ;
5525 PyObject *arg2 = (PyObject *) 0 ;
5526 PyObject *arg3 = (PyObject *) 0 ;
5527 void *argp1 = 0 ;
5528 int res1 = 0 ;
5529 PyObject * obj0 = 0 ;
5530 PyObject * obj1 = 0 ;
5531 PyObject * obj2 = 0 ;
5532 char * kwnames[] = {
5533 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5534 };
5535
5536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5538 if (!SWIG_IsOK(res1)) {
5539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5540 }
5541 arg1 = reinterpret_cast< wxPen * >(argp1);
5542 arg2 = obj1;
5543 arg3 = obj2;
5544 {
5545 PyThreadState* __tstate = wxPyBeginAllowThreads();
5546 wxPen__SetDashes(arg1,arg2,arg3);
5547 wxPyEndAllowThreads(__tstate);
5548 if (PyErr_Occurred()) SWIG_fail;
5549 }
5550 resultobj = SWIG_Py_Void();
5551 return resultobj;
5552 fail:
5553 return NULL;
5554 }
5555
5556
5557 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5558 PyObject *resultobj = 0;
5559 wxPen *arg1 = (wxPen *) 0 ;
5560 int result;
5561 void *argp1 = 0 ;
5562 int res1 = 0 ;
5563 PyObject *swig_obj[1] ;
5564
5565 if (!args) SWIG_fail;
5566 swig_obj[0] = args;
5567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5568 if (!SWIG_IsOK(res1)) {
5569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5570 }
5571 arg1 = reinterpret_cast< wxPen * >(argp1);
5572 {
5573 PyThreadState* __tstate = wxPyBeginAllowThreads();
5574 result = (int)((wxPen const *)arg1)->GetDashCount();
5575 wxPyEndAllowThreads(__tstate);
5576 if (PyErr_Occurred()) SWIG_fail;
5577 }
5578 resultobj = SWIG_From_int(static_cast< int >(result));
5579 return resultobj;
5580 fail:
5581 return NULL;
5582 }
5583
5584
5585 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5586 PyObject *resultobj = 0;
5587 wxPen *arg1 = (wxPen *) 0 ;
5588 wxPen *arg2 = (wxPen *) 0 ;
5589 bool result;
5590 void *argp1 = 0 ;
5591 int res1 = 0 ;
5592 void *argp2 = 0 ;
5593 int res2 = 0 ;
5594 PyObject * obj0 = 0 ;
5595 PyObject * obj1 = 0 ;
5596 char * kwnames[] = {
5597 (char *) "self",(char *) "other", NULL
5598 };
5599
5600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5602 if (!SWIG_IsOK(res1)) {
5603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5604 }
5605 arg1 = reinterpret_cast< wxPen * >(argp1);
5606 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5607 if (!SWIG_IsOK(res2)) {
5608 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5609 }
5610 arg2 = reinterpret_cast< wxPen * >(argp2);
5611 {
5612 PyThreadState* __tstate = wxPyBeginAllowThreads();
5613 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5614 wxPyEndAllowThreads(__tstate);
5615 if (PyErr_Occurred()) SWIG_fail;
5616 }
5617 {
5618 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5619 }
5620 return resultobj;
5621 fail:
5622 return NULL;
5623 }
5624
5625
5626 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5627 PyObject *resultobj = 0;
5628 wxPen *arg1 = (wxPen *) 0 ;
5629 wxPen *arg2 = (wxPen *) 0 ;
5630 bool result;
5631 void *argp1 = 0 ;
5632 int res1 = 0 ;
5633 void *argp2 = 0 ;
5634 int res2 = 0 ;
5635 PyObject * obj0 = 0 ;
5636 PyObject * obj1 = 0 ;
5637 char * kwnames[] = {
5638 (char *) "self",(char *) "other", NULL
5639 };
5640
5641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5643 if (!SWIG_IsOK(res1)) {
5644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5645 }
5646 arg1 = reinterpret_cast< wxPen * >(argp1);
5647 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5648 if (!SWIG_IsOK(res2)) {
5649 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5650 }
5651 arg2 = reinterpret_cast< wxPen * >(argp2);
5652 {
5653 PyThreadState* __tstate = wxPyBeginAllowThreads();
5654 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5655 wxPyEndAllowThreads(__tstate);
5656 if (PyErr_Occurred()) SWIG_fail;
5657 }
5658 {
5659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5660 }
5661 return resultobj;
5662 fail:
5663 return NULL;
5664 }
5665
5666
5667 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5668 PyObject *obj;
5669 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5670 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5671 return SWIG_Py_Void();
5672 }
5673
5674 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5675 return SWIG_Python_InitShadowInstance(args);
5676 }
5677
5678 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5679 PyObject *resultobj = 0;
5680 wxColour *arg1 = 0 ;
5681 int arg2 = (int) wxSOLID ;
5682 wxBrush *result = 0 ;
5683 wxColour temp1 ;
5684 int val2 ;
5685 int ecode2 = 0 ;
5686 PyObject * obj0 = 0 ;
5687 PyObject * obj1 = 0 ;
5688 char * kwnames[] = {
5689 (char *) "colour",(char *) "style", NULL
5690 };
5691
5692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5693 {
5694 arg1 = &temp1;
5695 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5696 }
5697 if (obj1) {
5698 ecode2 = SWIG_AsVal_int(obj1, &val2);
5699 if (!SWIG_IsOK(ecode2)) {
5700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5701 }
5702 arg2 = static_cast< int >(val2);
5703 }
5704 {
5705 if (!wxPyCheckForApp()) SWIG_fail;
5706 PyThreadState* __tstate = wxPyBeginAllowThreads();
5707 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5708 wxPyEndAllowThreads(__tstate);
5709 if (PyErr_Occurred()) SWIG_fail;
5710 }
5711 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5712 return resultobj;
5713 fail:
5714 return NULL;
5715 }
5716
5717
5718 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5719 PyObject *resultobj = 0;
5720 wxBitmap *arg1 = 0 ;
5721 wxBrush *result = 0 ;
5722 void *argp1 = 0 ;
5723 int res1 = 0 ;
5724 PyObject * obj0 = 0 ;
5725 char * kwnames[] = {
5726 (char *) "stippleBitmap", NULL
5727 };
5728
5729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5730 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5731 if (!SWIG_IsOK(res1)) {
5732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5733 }
5734 if (!argp1) {
5735 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5736 }
5737 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5738 {
5739 if (!wxPyCheckForApp()) SWIG_fail;
5740 PyThreadState* __tstate = wxPyBeginAllowThreads();
5741 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5742 wxPyEndAllowThreads(__tstate);
5743 if (PyErr_Occurred()) SWIG_fail;
5744 }
5745 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5746 return resultobj;
5747 fail:
5748 return NULL;
5749 }
5750
5751
5752 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5753 PyObject *resultobj = 0;
5754 wxBrush *arg1 = (wxBrush *) 0 ;
5755 void *argp1 = 0 ;
5756 int res1 = 0 ;
5757 PyObject *swig_obj[1] ;
5758
5759 if (!args) SWIG_fail;
5760 swig_obj[0] = args;
5761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5762 if (!SWIG_IsOK(res1)) {
5763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5764 }
5765 arg1 = reinterpret_cast< wxBrush * >(argp1);
5766 {
5767 PyThreadState* __tstate = wxPyBeginAllowThreads();
5768 delete arg1;
5769
5770 wxPyEndAllowThreads(__tstate);
5771 if (PyErr_Occurred()) SWIG_fail;
5772 }
5773 resultobj = SWIG_Py_Void();
5774 return resultobj;
5775 fail:
5776 return NULL;
5777 }
5778
5779
5780 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5781 PyObject *resultobj = 0;
5782 wxBrush *arg1 = (wxBrush *) 0 ;
5783 wxColour *arg2 = 0 ;
5784 void *argp1 = 0 ;
5785 int res1 = 0 ;
5786 wxColour temp2 ;
5787 PyObject * obj0 = 0 ;
5788 PyObject * obj1 = 0 ;
5789 char * kwnames[] = {
5790 (char *) "self",(char *) "col", NULL
5791 };
5792
5793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5795 if (!SWIG_IsOK(res1)) {
5796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5797 }
5798 arg1 = reinterpret_cast< wxBrush * >(argp1);
5799 {
5800 arg2 = &temp2;
5801 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5802 }
5803 {
5804 PyThreadState* __tstate = wxPyBeginAllowThreads();
5805 (arg1)->SetColour((wxColour const &)*arg2);
5806 wxPyEndAllowThreads(__tstate);
5807 if (PyErr_Occurred()) SWIG_fail;
5808 }
5809 resultobj = SWIG_Py_Void();
5810 return resultobj;
5811 fail:
5812 return NULL;
5813 }
5814
5815
5816 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5817 PyObject *resultobj = 0;
5818 wxBrush *arg1 = (wxBrush *) 0 ;
5819 int arg2 ;
5820 void *argp1 = 0 ;
5821 int res1 = 0 ;
5822 int val2 ;
5823 int ecode2 = 0 ;
5824 PyObject * obj0 = 0 ;
5825 PyObject * obj1 = 0 ;
5826 char * kwnames[] = {
5827 (char *) "self",(char *) "style", NULL
5828 };
5829
5830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5832 if (!SWIG_IsOK(res1)) {
5833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5834 }
5835 arg1 = reinterpret_cast< wxBrush * >(argp1);
5836 ecode2 = SWIG_AsVal_int(obj1, &val2);
5837 if (!SWIG_IsOK(ecode2)) {
5838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5839 }
5840 arg2 = static_cast< int >(val2);
5841 {
5842 PyThreadState* __tstate = wxPyBeginAllowThreads();
5843 (arg1)->SetStyle(arg2);
5844 wxPyEndAllowThreads(__tstate);
5845 if (PyErr_Occurred()) SWIG_fail;
5846 }
5847 resultobj = SWIG_Py_Void();
5848 return resultobj;
5849 fail:
5850 return NULL;
5851 }
5852
5853
5854 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5855 PyObject *resultobj = 0;
5856 wxBrush *arg1 = (wxBrush *) 0 ;
5857 wxBitmap *arg2 = 0 ;
5858 void *argp1 = 0 ;
5859 int res1 = 0 ;
5860 void *argp2 = 0 ;
5861 int res2 = 0 ;
5862 PyObject * obj0 = 0 ;
5863 PyObject * obj1 = 0 ;
5864 char * kwnames[] = {
5865 (char *) "self",(char *) "stipple", NULL
5866 };
5867
5868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5870 if (!SWIG_IsOK(res1)) {
5871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5872 }
5873 arg1 = reinterpret_cast< wxBrush * >(argp1);
5874 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5875 if (!SWIG_IsOK(res2)) {
5876 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5877 }
5878 if (!argp2) {
5879 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5880 }
5881 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5882 {
5883 PyThreadState* __tstate = wxPyBeginAllowThreads();
5884 (arg1)->SetStipple((wxBitmap const &)*arg2);
5885 wxPyEndAllowThreads(__tstate);
5886 if (PyErr_Occurred()) SWIG_fail;
5887 }
5888 resultobj = SWIG_Py_Void();
5889 return resultobj;
5890 fail:
5891 return NULL;
5892 }
5893
5894
5895 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5896 PyObject *resultobj = 0;
5897 wxBrush *arg1 = (wxBrush *) 0 ;
5898 wxColour result;
5899 void *argp1 = 0 ;
5900 int res1 = 0 ;
5901 PyObject *swig_obj[1] ;
5902
5903 if (!args) SWIG_fail;
5904 swig_obj[0] = args;
5905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5906 if (!SWIG_IsOK(res1)) {
5907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5908 }
5909 arg1 = reinterpret_cast< wxBrush * >(argp1);
5910 {
5911 PyThreadState* __tstate = wxPyBeginAllowThreads();
5912 result = ((wxBrush const *)arg1)->GetColour();
5913 wxPyEndAllowThreads(__tstate);
5914 if (PyErr_Occurred()) SWIG_fail;
5915 }
5916 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5917 return resultobj;
5918 fail:
5919 return NULL;
5920 }
5921
5922
5923 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5924 PyObject *resultobj = 0;
5925 wxBrush *arg1 = (wxBrush *) 0 ;
5926 int result;
5927 void *argp1 = 0 ;
5928 int res1 = 0 ;
5929 PyObject *swig_obj[1] ;
5930
5931 if (!args) SWIG_fail;
5932 swig_obj[0] = args;
5933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5934 if (!SWIG_IsOK(res1)) {
5935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5936 }
5937 arg1 = reinterpret_cast< wxBrush * >(argp1);
5938 {
5939 PyThreadState* __tstate = wxPyBeginAllowThreads();
5940 result = (int)((wxBrush const *)arg1)->GetStyle();
5941 wxPyEndAllowThreads(__tstate);
5942 if (PyErr_Occurred()) SWIG_fail;
5943 }
5944 resultobj = SWIG_From_int(static_cast< int >(result));
5945 return resultobj;
5946 fail:
5947 return NULL;
5948 }
5949
5950
5951 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5952 PyObject *resultobj = 0;
5953 wxBrush *arg1 = (wxBrush *) 0 ;
5954 wxBitmap *result = 0 ;
5955 void *argp1 = 0 ;
5956 int res1 = 0 ;
5957 PyObject *swig_obj[1] ;
5958
5959 if (!args) SWIG_fail;
5960 swig_obj[0] = args;
5961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5962 if (!SWIG_IsOK(res1)) {
5963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5964 }
5965 arg1 = reinterpret_cast< wxBrush * >(argp1);
5966 {
5967 PyThreadState* __tstate = wxPyBeginAllowThreads();
5968 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5969 wxPyEndAllowThreads(__tstate);
5970 if (PyErr_Occurred()) SWIG_fail;
5971 }
5972 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5973 return resultobj;
5974 fail:
5975 return NULL;
5976 }
5977
5978
5979 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5980 PyObject *resultobj = 0;
5981 wxBrush *arg1 = (wxBrush *) 0 ;
5982 bool result;
5983 void *argp1 = 0 ;
5984 int res1 = 0 ;
5985 PyObject *swig_obj[1] ;
5986
5987 if (!args) SWIG_fail;
5988 swig_obj[0] = args;
5989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5990 if (!SWIG_IsOK(res1)) {
5991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5992 }
5993 arg1 = reinterpret_cast< wxBrush * >(argp1);
5994 {
5995 PyThreadState* __tstate = wxPyBeginAllowThreads();
5996 result = (bool)((wxBrush const *)arg1)->IsHatch();
5997 wxPyEndAllowThreads(__tstate);
5998 if (PyErr_Occurred()) SWIG_fail;
5999 }
6000 {
6001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6002 }
6003 return resultobj;
6004 fail:
6005 return NULL;
6006 }
6007
6008
6009 SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6010 PyObject *resultobj = 0;
6011 wxBrush *arg1 = (wxBrush *) 0 ;
6012 bool result;
6013 void *argp1 = 0 ;
6014 int res1 = 0 ;
6015 PyObject *swig_obj[1] ;
6016
6017 if (!args) SWIG_fail;
6018 swig_obj[0] = args;
6019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6020 if (!SWIG_IsOK(res1)) {
6021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
6022 }
6023 arg1 = reinterpret_cast< wxBrush * >(argp1);
6024 {
6025 PyThreadState* __tstate = wxPyBeginAllowThreads();
6026 result = (bool)(arg1)->IsOk();
6027 wxPyEndAllowThreads(__tstate);
6028 if (PyErr_Occurred()) SWIG_fail;
6029 }
6030 {
6031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6032 }
6033 return resultobj;
6034 fail:
6035 return NULL;
6036 }
6037
6038
6039 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6040 PyObject *obj;
6041 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6042 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6043 return SWIG_Py_Void();
6044 }
6045
6046 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6047 return SWIG_Python_InitShadowInstance(args);
6048 }
6049
6050 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6051 PyObject *resultobj = 0;
6052 wxString *arg1 = 0 ;
6053 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6054 wxBitmap *result = 0 ;
6055 bool temp1 = false ;
6056 int val2 ;
6057 int ecode2 = 0 ;
6058 PyObject * obj0 = 0 ;
6059 PyObject * obj1 = 0 ;
6060 char * kwnames[] = {
6061 (char *) "name",(char *) "type", NULL
6062 };
6063
6064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6065 {
6066 arg1 = wxString_in_helper(obj0);
6067 if (arg1 == NULL) SWIG_fail;
6068 temp1 = true;
6069 }
6070 if (obj1) {
6071 ecode2 = SWIG_AsVal_int(obj1, &val2);
6072 if (!SWIG_IsOK(ecode2)) {
6073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6074 }
6075 arg2 = static_cast< wxBitmapType >(val2);
6076 }
6077 {
6078 if (!wxPyCheckForApp()) SWIG_fail;
6079 PyThreadState* __tstate = wxPyBeginAllowThreads();
6080 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6081 wxPyEndAllowThreads(__tstate);
6082 if (PyErr_Occurred()) SWIG_fail;
6083 }
6084 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6085 {
6086 if (temp1)
6087 delete arg1;
6088 }
6089 return resultobj;
6090 fail:
6091 {
6092 if (temp1)
6093 delete arg1;
6094 }
6095 return NULL;
6096 }
6097
6098
6099 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6100 PyObject *resultobj = 0;
6101 wxBitmap *arg1 = (wxBitmap *) 0 ;
6102 void *argp1 = 0 ;
6103 int res1 = 0 ;
6104 PyObject *swig_obj[1] ;
6105
6106 if (!args) SWIG_fail;
6107 swig_obj[0] = args;
6108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6109 if (!SWIG_IsOK(res1)) {
6110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6111 }
6112 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6113 {
6114 delete arg1;
6115
6116 if (PyErr_Occurred()) SWIG_fail;
6117 }
6118 resultobj = SWIG_Py_Void();
6119 return resultobj;
6120 fail:
6121 return NULL;
6122 }
6123
6124
6125 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6126 PyObject *resultobj = 0;
6127 int arg1 ;
6128 int arg2 ;
6129 int arg3 = (int) -1 ;
6130 wxBitmap *result = 0 ;
6131 int val1 ;
6132 int ecode1 = 0 ;
6133 int val2 ;
6134 int ecode2 = 0 ;
6135 int val3 ;
6136 int ecode3 = 0 ;
6137 PyObject * obj0 = 0 ;
6138 PyObject * obj1 = 0 ;
6139 PyObject * obj2 = 0 ;
6140 char * kwnames[] = {
6141 (char *) "width",(char *) "height",(char *) "depth", NULL
6142 };
6143
6144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6145 ecode1 = SWIG_AsVal_int(obj0, &val1);
6146 if (!SWIG_IsOK(ecode1)) {
6147 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6148 }
6149 arg1 = static_cast< int >(val1);
6150 ecode2 = SWIG_AsVal_int(obj1, &val2);
6151 if (!SWIG_IsOK(ecode2)) {
6152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6153 }
6154 arg2 = static_cast< int >(val2);
6155 if (obj2) {
6156 ecode3 = SWIG_AsVal_int(obj2, &val3);
6157 if (!SWIG_IsOK(ecode3)) {
6158 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6159 }
6160 arg3 = static_cast< int >(val3);
6161 }
6162 {
6163 if (!wxPyCheckForApp()) SWIG_fail;
6164 PyThreadState* __tstate = wxPyBeginAllowThreads();
6165 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6166 wxPyEndAllowThreads(__tstate);
6167 if (PyErr_Occurred()) SWIG_fail;
6168 }
6169 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6170 return resultobj;
6171 fail:
6172 return NULL;
6173 }
6174
6175
6176 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6177 PyObject *resultobj = 0;
6178 wxIcon *arg1 = 0 ;
6179 wxBitmap *result = 0 ;
6180 void *argp1 = 0 ;
6181 int res1 = 0 ;
6182 PyObject * obj0 = 0 ;
6183 char * kwnames[] = {
6184 (char *) "icon", NULL
6185 };
6186
6187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6188 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6189 if (!SWIG_IsOK(res1)) {
6190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6191 }
6192 if (!argp1) {
6193 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6194 }
6195 arg1 = reinterpret_cast< wxIcon * >(argp1);
6196 {
6197 if (!wxPyCheckForApp()) SWIG_fail;
6198 PyThreadState* __tstate = wxPyBeginAllowThreads();
6199 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6200 wxPyEndAllowThreads(__tstate);
6201 if (PyErr_Occurred()) SWIG_fail;
6202 }
6203 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6204 return resultobj;
6205 fail:
6206 return NULL;
6207 }
6208
6209
6210 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6211 PyObject *resultobj = 0;
6212 wxImage *arg1 = 0 ;
6213 int arg2 = (int) -1 ;
6214 wxBitmap *result = 0 ;
6215 void *argp1 = 0 ;
6216 int res1 = 0 ;
6217 int val2 ;
6218 int ecode2 = 0 ;
6219 PyObject * obj0 = 0 ;
6220 PyObject * obj1 = 0 ;
6221 char * kwnames[] = {
6222 (char *) "image",(char *) "depth", NULL
6223 };
6224
6225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6226 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6227 if (!SWIG_IsOK(res1)) {
6228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6229 }
6230 if (!argp1) {
6231 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6232 }
6233 arg1 = reinterpret_cast< wxImage * >(argp1);
6234 if (obj1) {
6235 ecode2 = SWIG_AsVal_int(obj1, &val2);
6236 if (!SWIG_IsOK(ecode2)) {
6237 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6238 }
6239 arg2 = static_cast< int >(val2);
6240 }
6241 {
6242 if (!wxPyCheckForApp()) SWIG_fail;
6243 PyThreadState* __tstate = wxPyBeginAllowThreads();
6244 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
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_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6256 PyObject *resultobj = 0;
6257 PyObject *arg1 = (PyObject *) 0 ;
6258 wxBitmap *result = 0 ;
6259 PyObject * obj0 = 0 ;
6260 char * kwnames[] = {
6261 (char *) "listOfStrings", NULL
6262 };
6263
6264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6265 arg1 = obj0;
6266 {
6267 if (!wxPyCheckForApp()) SWIG_fail;
6268 PyThreadState* __tstate = wxPyBeginAllowThreads();
6269 result = (wxBitmap *)new_wxBitmap(arg1);
6270 wxPyEndAllowThreads(__tstate);
6271 if (PyErr_Occurred()) SWIG_fail;
6272 }
6273 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6274 return resultobj;
6275 fail:
6276 return NULL;
6277 }
6278
6279
6280 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6281 PyObject *resultobj = 0;
6282 PyObject *arg1 = (PyObject *) 0 ;
6283 int arg2 ;
6284 int arg3 ;
6285 int arg4 = (int) 1 ;
6286 wxBitmap *result = 0 ;
6287 int val2 ;
6288 int ecode2 = 0 ;
6289 int val3 ;
6290 int ecode3 = 0 ;
6291 int val4 ;
6292 int ecode4 = 0 ;
6293 PyObject * obj0 = 0 ;
6294 PyObject * obj1 = 0 ;
6295 PyObject * obj2 = 0 ;
6296 PyObject * obj3 = 0 ;
6297 char * kwnames[] = {
6298 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6299 };
6300
6301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6302 arg1 = obj0;
6303 ecode2 = SWIG_AsVal_int(obj1, &val2);
6304 if (!SWIG_IsOK(ecode2)) {
6305 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6306 }
6307 arg2 = static_cast< int >(val2);
6308 ecode3 = SWIG_AsVal_int(obj2, &val3);
6309 if (!SWIG_IsOK(ecode3)) {
6310 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6311 }
6312 arg3 = static_cast< int >(val3);
6313 if (obj3) {
6314 ecode4 = SWIG_AsVal_int(obj3, &val4);
6315 if (!SWIG_IsOK(ecode4)) {
6316 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6317 }
6318 arg4 = static_cast< int >(val4);
6319 }
6320 {
6321 if (!wxPyCheckForApp()) SWIG_fail;
6322 PyThreadState* __tstate = wxPyBeginAllowThreads();
6323 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6324 wxPyEndAllowThreads(__tstate);
6325 if (PyErr_Occurred()) SWIG_fail;
6326 }
6327 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6328 return resultobj;
6329 fail:
6330 return NULL;
6331 }
6332
6333
6334 SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6335 PyObject *resultobj = 0;
6336 wxBitmap *arg1 = (wxBitmap *) 0 ;
6337 bool result;
6338 void *argp1 = 0 ;
6339 int res1 = 0 ;
6340 PyObject *swig_obj[1] ;
6341
6342 if (!args) SWIG_fail;
6343 swig_obj[0] = args;
6344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6345 if (!SWIG_IsOK(res1)) {
6346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
6347 }
6348 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6349 {
6350 result = (bool)(arg1)->IsOk();
6351 if (PyErr_Occurred()) SWIG_fail;
6352 }
6353 {
6354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6355 }
6356 return resultobj;
6357 fail:
6358 return NULL;
6359 }
6360
6361
6362 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6363 PyObject *resultobj = 0;
6364 wxBitmap *arg1 = (wxBitmap *) 0 ;
6365 int result;
6366 void *argp1 = 0 ;
6367 int res1 = 0 ;
6368 PyObject *swig_obj[1] ;
6369
6370 if (!args) SWIG_fail;
6371 swig_obj[0] = args;
6372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6373 if (!SWIG_IsOK(res1)) {
6374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6375 }
6376 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6377 {
6378 result = (int)(arg1)->GetWidth();
6379 if (PyErr_Occurred()) SWIG_fail;
6380 }
6381 resultobj = SWIG_From_int(static_cast< int >(result));
6382 return resultobj;
6383 fail:
6384 return NULL;
6385 }
6386
6387
6388 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6389 PyObject *resultobj = 0;
6390 wxBitmap *arg1 = (wxBitmap *) 0 ;
6391 int result;
6392 void *argp1 = 0 ;
6393 int res1 = 0 ;
6394 PyObject *swig_obj[1] ;
6395
6396 if (!args) SWIG_fail;
6397 swig_obj[0] = args;
6398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6399 if (!SWIG_IsOK(res1)) {
6400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6401 }
6402 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6403 {
6404 result = (int)(arg1)->GetHeight();
6405 if (PyErr_Occurred()) SWIG_fail;
6406 }
6407 resultobj = SWIG_From_int(static_cast< int >(result));
6408 return resultobj;
6409 fail:
6410 return NULL;
6411 }
6412
6413
6414 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6415 PyObject *resultobj = 0;
6416 wxBitmap *arg1 = (wxBitmap *) 0 ;
6417 int result;
6418 void *argp1 = 0 ;
6419 int res1 = 0 ;
6420 PyObject *swig_obj[1] ;
6421
6422 if (!args) SWIG_fail;
6423 swig_obj[0] = args;
6424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6425 if (!SWIG_IsOK(res1)) {
6426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6427 }
6428 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6429 {
6430 result = (int)(arg1)->GetDepth();
6431 if (PyErr_Occurred()) SWIG_fail;
6432 }
6433 resultobj = SWIG_From_int(static_cast< int >(result));
6434 return resultobj;
6435 fail:
6436 return NULL;
6437 }
6438
6439
6440 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6441 PyObject *resultobj = 0;
6442 wxBitmap *arg1 = (wxBitmap *) 0 ;
6443 wxSize result;
6444 void *argp1 = 0 ;
6445 int res1 = 0 ;
6446 PyObject *swig_obj[1] ;
6447
6448 if (!args) SWIG_fail;
6449 swig_obj[0] = args;
6450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6451 if (!SWIG_IsOK(res1)) {
6452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6453 }
6454 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6455 {
6456 result = wxBitmap_GetSize(arg1);
6457 if (PyErr_Occurred()) SWIG_fail;
6458 }
6459 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6460 return resultobj;
6461 fail:
6462 return NULL;
6463 }
6464
6465
6466 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6467 PyObject *resultobj = 0;
6468 wxBitmap *arg1 = (wxBitmap *) 0 ;
6469 SwigValueWrapper<wxImage > result;
6470 void *argp1 = 0 ;
6471 int res1 = 0 ;
6472 PyObject *swig_obj[1] ;
6473
6474 if (!args) SWIG_fail;
6475 swig_obj[0] = args;
6476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6477 if (!SWIG_IsOK(res1)) {
6478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6479 }
6480 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6481 {
6482 result = ((wxBitmap const *)arg1)->ConvertToImage();
6483 if (PyErr_Occurred()) SWIG_fail;
6484 }
6485 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6486 return resultobj;
6487 fail:
6488 return NULL;
6489 }
6490
6491
6492 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6493 PyObject *resultobj = 0;
6494 wxBitmap *arg1 = (wxBitmap *) 0 ;
6495 wxMask *result = 0 ;
6496 void *argp1 = 0 ;
6497 int res1 = 0 ;
6498 PyObject *swig_obj[1] ;
6499
6500 if (!args) SWIG_fail;
6501 swig_obj[0] = args;
6502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6503 if (!SWIG_IsOK(res1)) {
6504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6505 }
6506 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6507 {
6508 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6509 if (PyErr_Occurred()) SWIG_fail;
6510 }
6511 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6512 return resultobj;
6513 fail:
6514 return NULL;
6515 }
6516
6517
6518 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6519 PyObject *resultobj = 0;
6520 wxBitmap *arg1 = (wxBitmap *) 0 ;
6521 wxMask *arg2 = (wxMask *) 0 ;
6522 void *argp1 = 0 ;
6523 int res1 = 0 ;
6524 int res2 = 0 ;
6525 PyObject * obj0 = 0 ;
6526 PyObject * obj1 = 0 ;
6527 char * kwnames[] = {
6528 (char *) "self",(char *) "mask", NULL
6529 };
6530
6531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6533 if (!SWIG_IsOK(res1)) {
6534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6535 }
6536 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6537 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6538 if (!SWIG_IsOK(res2)) {
6539 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6540 }
6541 {
6542 (arg1)->SetMask(arg2);
6543 if (PyErr_Occurred()) SWIG_fail;
6544 }
6545 resultobj = SWIG_Py_Void();
6546 return resultobj;
6547 fail:
6548 return NULL;
6549 }
6550
6551
6552 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6553 PyObject *resultobj = 0;
6554 wxBitmap *arg1 = (wxBitmap *) 0 ;
6555 wxColour *arg2 = 0 ;
6556 void *argp1 = 0 ;
6557 int res1 = 0 ;
6558 wxColour temp2 ;
6559 PyObject * obj0 = 0 ;
6560 PyObject * obj1 = 0 ;
6561 char * kwnames[] = {
6562 (char *) "self",(char *) "colour", NULL
6563 };
6564
6565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6567 if (!SWIG_IsOK(res1)) {
6568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6569 }
6570 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6571 {
6572 arg2 = &temp2;
6573 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6574 }
6575 {
6576 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6577 if (PyErr_Occurred()) SWIG_fail;
6578 }
6579 resultobj = SWIG_Py_Void();
6580 return resultobj;
6581 fail:
6582 return NULL;
6583 }
6584
6585
6586 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6587 PyObject *resultobj = 0;
6588 wxBitmap *arg1 = (wxBitmap *) 0 ;
6589 wxRect *arg2 = 0 ;
6590 SwigValueWrapper<wxBitmap > result;
6591 void *argp1 = 0 ;
6592 int res1 = 0 ;
6593 wxRect temp2 ;
6594 PyObject * obj0 = 0 ;
6595 PyObject * obj1 = 0 ;
6596 char * kwnames[] = {
6597 (char *) "self",(char *) "rect", NULL
6598 };
6599
6600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6602 if (!SWIG_IsOK(res1)) {
6603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6604 }
6605 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6606 {
6607 arg2 = &temp2;
6608 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6609 }
6610 {
6611 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6612 if (PyErr_Occurred()) SWIG_fail;
6613 }
6614 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6615 return resultobj;
6616 fail:
6617 return NULL;
6618 }
6619
6620
6621 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6622 PyObject *resultobj = 0;
6623 wxBitmap *arg1 = (wxBitmap *) 0 ;
6624 wxString *arg2 = 0 ;
6625 wxBitmapType arg3 ;
6626 wxPalette *arg4 = (wxPalette *) NULL ;
6627 bool result;
6628 void *argp1 = 0 ;
6629 int res1 = 0 ;
6630 bool temp2 = false ;
6631 int val3 ;
6632 int ecode3 = 0 ;
6633 void *argp4 = 0 ;
6634 int res4 = 0 ;
6635 PyObject * obj0 = 0 ;
6636 PyObject * obj1 = 0 ;
6637 PyObject * obj2 = 0 ;
6638 PyObject * obj3 = 0 ;
6639 char * kwnames[] = {
6640 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6641 };
6642
6643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6645 if (!SWIG_IsOK(res1)) {
6646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6647 }
6648 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6649 {
6650 arg2 = wxString_in_helper(obj1);
6651 if (arg2 == NULL) SWIG_fail;
6652 temp2 = true;
6653 }
6654 ecode3 = SWIG_AsVal_int(obj2, &val3);
6655 if (!SWIG_IsOK(ecode3)) {
6656 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6657 }
6658 arg3 = static_cast< wxBitmapType >(val3);
6659 if (obj3) {
6660 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6661 if (!SWIG_IsOK(res4)) {
6662 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6663 }
6664 arg4 = reinterpret_cast< wxPalette * >(argp4);
6665 }
6666 {
6667 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6668 if (PyErr_Occurred()) SWIG_fail;
6669 }
6670 {
6671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6672 }
6673 {
6674 if (temp2)
6675 delete arg2;
6676 }
6677 return resultobj;
6678 fail:
6679 {
6680 if (temp2)
6681 delete arg2;
6682 }
6683 return NULL;
6684 }
6685
6686
6687 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6688 PyObject *resultobj = 0;
6689 wxBitmap *arg1 = (wxBitmap *) 0 ;
6690 wxString *arg2 = 0 ;
6691 wxBitmapType arg3 ;
6692 bool result;
6693 void *argp1 = 0 ;
6694 int res1 = 0 ;
6695 bool temp2 = false ;
6696 int val3 ;
6697 int ecode3 = 0 ;
6698 PyObject * obj0 = 0 ;
6699 PyObject * obj1 = 0 ;
6700 PyObject * obj2 = 0 ;
6701 char * kwnames[] = {
6702 (char *) "self",(char *) "name",(char *) "type", NULL
6703 };
6704
6705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6707 if (!SWIG_IsOK(res1)) {
6708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6709 }
6710 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6711 {
6712 arg2 = wxString_in_helper(obj1);
6713 if (arg2 == NULL) SWIG_fail;
6714 temp2 = true;
6715 }
6716 ecode3 = SWIG_AsVal_int(obj2, &val3);
6717 if (!SWIG_IsOK(ecode3)) {
6718 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6719 }
6720 arg3 = static_cast< wxBitmapType >(val3);
6721 {
6722 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6723 if (PyErr_Occurred()) SWIG_fail;
6724 }
6725 {
6726 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6727 }
6728 {
6729 if (temp2)
6730 delete arg2;
6731 }
6732 return resultobj;
6733 fail:
6734 {
6735 if (temp2)
6736 delete arg2;
6737 }
6738 return NULL;
6739 }
6740
6741
6742 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6743 PyObject *resultobj = 0;
6744 wxBitmap *arg1 = (wxBitmap *) 0 ;
6745 wxPalette *result = 0 ;
6746 void *argp1 = 0 ;
6747 int res1 = 0 ;
6748 PyObject *swig_obj[1] ;
6749
6750 if (!args) SWIG_fail;
6751 swig_obj[0] = args;
6752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6753 if (!SWIG_IsOK(res1)) {
6754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6755 }
6756 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6757 {
6758 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6759 if (PyErr_Occurred()) SWIG_fail;
6760 }
6761 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6762 return resultobj;
6763 fail:
6764 return NULL;
6765 }
6766
6767
6768 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6769 PyObject *resultobj = 0;
6770 wxBitmap *arg1 = (wxBitmap *) 0 ;
6771 wxIcon *arg2 = 0 ;
6772 bool result;
6773 void *argp1 = 0 ;
6774 int res1 = 0 ;
6775 void *argp2 = 0 ;
6776 int res2 = 0 ;
6777 PyObject * obj0 = 0 ;
6778 PyObject * obj1 = 0 ;
6779 char * kwnames[] = {
6780 (char *) "self",(char *) "icon", NULL
6781 };
6782
6783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6785 if (!SWIG_IsOK(res1)) {
6786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6787 }
6788 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6789 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6790 if (!SWIG_IsOK(res2)) {
6791 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6792 }
6793 if (!argp2) {
6794 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6795 }
6796 arg2 = reinterpret_cast< wxIcon * >(argp2);
6797 {
6798 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6799 if (PyErr_Occurred()) SWIG_fail;
6800 }
6801 {
6802 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6803 }
6804 return resultobj;
6805 fail:
6806 return NULL;
6807 }
6808
6809
6810 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6811 PyObject *resultobj = 0;
6812 wxBitmap *arg1 = (wxBitmap *) 0 ;
6813 int arg2 ;
6814 void *argp1 = 0 ;
6815 int res1 = 0 ;
6816 int val2 ;
6817 int ecode2 = 0 ;
6818 PyObject * obj0 = 0 ;
6819 PyObject * obj1 = 0 ;
6820 char * kwnames[] = {
6821 (char *) "self",(char *) "height", NULL
6822 };
6823
6824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6826 if (!SWIG_IsOK(res1)) {
6827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6828 }
6829 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6830 ecode2 = SWIG_AsVal_int(obj1, &val2);
6831 if (!SWIG_IsOK(ecode2)) {
6832 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6833 }
6834 arg2 = static_cast< int >(val2);
6835 {
6836 (arg1)->SetHeight(arg2);
6837 if (PyErr_Occurred()) SWIG_fail;
6838 }
6839 resultobj = SWIG_Py_Void();
6840 return resultobj;
6841 fail:
6842 return NULL;
6843 }
6844
6845
6846 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6847 PyObject *resultobj = 0;
6848 wxBitmap *arg1 = (wxBitmap *) 0 ;
6849 int arg2 ;
6850 void *argp1 = 0 ;
6851 int res1 = 0 ;
6852 int val2 ;
6853 int ecode2 = 0 ;
6854 PyObject * obj0 = 0 ;
6855 PyObject * obj1 = 0 ;
6856 char * kwnames[] = {
6857 (char *) "self",(char *) "width", NULL
6858 };
6859
6860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6862 if (!SWIG_IsOK(res1)) {
6863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6864 }
6865 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6866 ecode2 = SWIG_AsVal_int(obj1, &val2);
6867 if (!SWIG_IsOK(ecode2)) {
6868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6869 }
6870 arg2 = static_cast< int >(val2);
6871 {
6872 (arg1)->SetWidth(arg2);
6873 if (PyErr_Occurred()) SWIG_fail;
6874 }
6875 resultobj = SWIG_Py_Void();
6876 return resultobj;
6877 fail:
6878 return NULL;
6879 }
6880
6881
6882 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6883 PyObject *resultobj = 0;
6884 wxBitmap *arg1 = (wxBitmap *) 0 ;
6885 int arg2 ;
6886 void *argp1 = 0 ;
6887 int res1 = 0 ;
6888 int val2 ;
6889 int ecode2 = 0 ;
6890 PyObject * obj0 = 0 ;
6891 PyObject * obj1 = 0 ;
6892 char * kwnames[] = {
6893 (char *) "self",(char *) "depth", NULL
6894 };
6895
6896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6898 if (!SWIG_IsOK(res1)) {
6899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6900 }
6901 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6902 ecode2 = SWIG_AsVal_int(obj1, &val2);
6903 if (!SWIG_IsOK(ecode2)) {
6904 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6905 }
6906 arg2 = static_cast< int >(val2);
6907 {
6908 (arg1)->SetDepth(arg2);
6909 if (PyErr_Occurred()) SWIG_fail;
6910 }
6911 resultobj = SWIG_Py_Void();
6912 return resultobj;
6913 fail:
6914 return NULL;
6915 }
6916
6917
6918 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6919 PyObject *resultobj = 0;
6920 wxBitmap *arg1 = (wxBitmap *) 0 ;
6921 wxSize *arg2 = 0 ;
6922 void *argp1 = 0 ;
6923 int res1 = 0 ;
6924 wxSize temp2 ;
6925 PyObject * obj0 = 0 ;
6926 PyObject * obj1 = 0 ;
6927 char * kwnames[] = {
6928 (char *) "self",(char *) "size", NULL
6929 };
6930
6931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6933 if (!SWIG_IsOK(res1)) {
6934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6935 }
6936 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6937 {
6938 arg2 = &temp2;
6939 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6940 }
6941 {
6942 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6943 if (PyErr_Occurred()) SWIG_fail;
6944 }
6945 resultobj = SWIG_Py_Void();
6946 return resultobj;
6947 fail:
6948 return NULL;
6949 }
6950
6951
6952 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6953 PyObject *resultobj = 0;
6954 wxBitmap *arg1 = (wxBitmap *) 0 ;
6955 buffer arg2 ;
6956 int arg3 ;
6957 void *argp1 = 0 ;
6958 int res1 = 0 ;
6959 Py_ssize_t temp2 ;
6960 PyObject * obj0 = 0 ;
6961 PyObject * obj1 = 0 ;
6962 char * kwnames[] = {
6963 (char *) "self",(char *) "data", NULL
6964 };
6965
6966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
6967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6968 if (!SWIG_IsOK(res1)) {
6969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
6970 }
6971 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6972 {
6973 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
6974 arg3 = (int)temp2;
6975 }
6976 {
6977 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
6978 if (PyErr_Occurred()) SWIG_fail;
6979 }
6980 resultobj = SWIG_Py_Void();
6981 return resultobj;
6982 fail:
6983 return NULL;
6984 }
6985
6986
6987 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6988 PyObject *resultobj = 0;
6989 wxBitmap *arg1 = (wxBitmap *) 0 ;
6990 buffer arg2 ;
6991 int arg3 ;
6992 void *argp1 = 0 ;
6993 int res1 = 0 ;
6994 Py_ssize_t temp2 ;
6995 PyObject * obj0 = 0 ;
6996 PyObject * obj1 = 0 ;
6997 char * kwnames[] = {
6998 (char *) "self",(char *) "data", NULL
6999 };
7000
7001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7003 if (!SWIG_IsOK(res1)) {
7004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7005 }
7006 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7007 {
7008 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7009 arg3 = (int)temp2;
7010 }
7011 {
7012 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7013 if (PyErr_Occurred()) SWIG_fail;
7014 }
7015 resultobj = SWIG_Py_Void();
7016 return resultobj;
7017 fail:
7018 return NULL;
7019 }
7020
7021
7022 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7023 PyObject *resultobj = 0;
7024 wxBitmap *arg1 = (wxBitmap *) 0 ;
7025 wxBitmap *arg2 = (wxBitmap *) 0 ;
7026 bool result;
7027 void *argp1 = 0 ;
7028 int res1 = 0 ;
7029 void *argp2 = 0 ;
7030 int res2 = 0 ;
7031 PyObject * obj0 = 0 ;
7032 PyObject * obj1 = 0 ;
7033 char * kwnames[] = {
7034 (char *) "self",(char *) "other", NULL
7035 };
7036
7037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7039 if (!SWIG_IsOK(res1)) {
7040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7041 }
7042 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7043 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7044 if (!SWIG_IsOK(res2)) {
7045 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7046 }
7047 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7048 {
7049 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
7050 if (PyErr_Occurred()) SWIG_fail;
7051 }
7052 {
7053 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7054 }
7055 return resultobj;
7056 fail:
7057 return NULL;
7058 }
7059
7060
7061 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7062 PyObject *resultobj = 0;
7063 wxBitmap *arg1 = (wxBitmap *) 0 ;
7064 wxBitmap *arg2 = (wxBitmap *) 0 ;
7065 bool result;
7066 void *argp1 = 0 ;
7067 int res1 = 0 ;
7068 void *argp2 = 0 ;
7069 int res2 = 0 ;
7070 PyObject * obj0 = 0 ;
7071 PyObject * obj1 = 0 ;
7072 char * kwnames[] = {
7073 (char *) "self",(char *) "other", NULL
7074 };
7075
7076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7078 if (!SWIG_IsOK(res1)) {
7079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7080 }
7081 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7082 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7083 if (!SWIG_IsOK(res2)) {
7084 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7085 }
7086 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7087 {
7088 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7089 if (PyErr_Occurred()) SWIG_fail;
7090 }
7091 {
7092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7093 }
7094 return resultobj;
7095 fail:
7096 return NULL;
7097 }
7098
7099
7100 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7101 PyObject *obj;
7102 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7103 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7104 return SWIG_Py_Void();
7105 }
7106
7107 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7108 return SWIG_Python_InitShadowInstance(args);
7109 }
7110
7111 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7112 PyObject *resultobj = 0;
7113 int arg1 ;
7114 int arg2 ;
7115 buffer arg3 ;
7116 int arg4 ;
7117 buffer arg5 ;
7118 int arg6 ;
7119 wxBitmap *result = 0 ;
7120 int val1 ;
7121 int ecode1 = 0 ;
7122 int val2 ;
7123 int ecode2 = 0 ;
7124 Py_ssize_t temp3 ;
7125 Py_ssize_t temp5 ;
7126 PyObject * obj0 = 0 ;
7127 PyObject * obj1 = 0 ;
7128 PyObject * obj2 = 0 ;
7129 PyObject * obj3 = 0 ;
7130 char * kwnames[] = {
7131 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7132 };
7133
7134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7135 ecode1 = SWIG_AsVal_int(obj0, &val1);
7136 if (!SWIG_IsOK(ecode1)) {
7137 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7138 }
7139 arg1 = static_cast< int >(val1);
7140 ecode2 = SWIG_AsVal_int(obj1, &val2);
7141 if (!SWIG_IsOK(ecode2)) {
7142 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7143 }
7144 arg2 = static_cast< int >(val2);
7145 {
7146 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7147 arg4 = (int)temp3;
7148 }
7149 {
7150 if (obj3 != Py_None) {
7151 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7152 arg6 = (int)temp5;
7153 }
7154 }
7155 {
7156 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7157 if (PyErr_Occurred()) SWIG_fail;
7158 }
7159 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7160 return resultobj;
7161 fail:
7162 return NULL;
7163 }
7164
7165
7166 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7167 PyObject *resultobj = 0;
7168 int arg1 ;
7169 int arg2 ;
7170 buffer arg3 ;
7171 int arg4 ;
7172 wxBitmap *result = 0 ;
7173 int val1 ;
7174 int ecode1 = 0 ;
7175 int val2 ;
7176 int ecode2 = 0 ;
7177 Py_ssize_t temp3 ;
7178 PyObject * obj0 = 0 ;
7179 PyObject * obj1 = 0 ;
7180 PyObject * obj2 = 0 ;
7181 char * kwnames[] = {
7182 (char *) "width",(char *) "height",(char *) "data", NULL
7183 };
7184
7185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7186 ecode1 = SWIG_AsVal_int(obj0, &val1);
7187 if (!SWIG_IsOK(ecode1)) {
7188 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7189 }
7190 arg1 = static_cast< int >(val1);
7191 ecode2 = SWIG_AsVal_int(obj1, &val2);
7192 if (!SWIG_IsOK(ecode2)) {
7193 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7194 }
7195 arg2 = static_cast< int >(val2);
7196 {
7197 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7198 arg4 = (int)temp3;
7199 }
7200 {
7201 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
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__BitmapFromBufferRGBA(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:_BitmapFromBufferRGBA",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 '" "_BitmapFromBufferRGBA" "', 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 '" "_BitmapFromBufferRGBA" "', 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 *)_BitmapFromBufferRGBA(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_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7257 PyObject *resultobj = 0;
7258 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7259 wxPoint result;
7260 void *argp1 = 0 ;
7261 int res1 = 0 ;
7262 PyObject *swig_obj[1] ;
7263
7264 if (!args) SWIG_fail;
7265 swig_obj[0] = args;
7266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7267 if (!SWIG_IsOK(res1)) {
7268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7269 }
7270 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7271 {
7272 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7273 if (PyErr_Occurred()) SWIG_fail;
7274 }
7275 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7276 return resultobj;
7277 fail:
7278 return NULL;
7279 }
7280
7281
7282 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7283 PyObject *resultobj = 0;
7284 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7285 int result;
7286 void *argp1 = 0 ;
7287 int res1 = 0 ;
7288 PyObject *swig_obj[1] ;
7289
7290 if (!args) SWIG_fail;
7291 swig_obj[0] = args;
7292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7293 if (!SWIG_IsOK(res1)) {
7294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7295 }
7296 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7297 {
7298 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7299 if (PyErr_Occurred()) SWIG_fail;
7300 }
7301 resultobj = SWIG_From_int(static_cast< int >(result));
7302 return resultobj;
7303 fail:
7304 return NULL;
7305 }
7306
7307
7308 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7309 PyObject *resultobj = 0;
7310 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7311 int result;
7312 void *argp1 = 0 ;
7313 int res1 = 0 ;
7314 PyObject *swig_obj[1] ;
7315
7316 if (!args) SWIG_fail;
7317 swig_obj[0] = args;
7318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7319 if (!SWIG_IsOK(res1)) {
7320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7321 }
7322 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7323 {
7324 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7325 if (PyErr_Occurred()) SWIG_fail;
7326 }
7327 resultobj = SWIG_From_int(static_cast< int >(result));
7328 return resultobj;
7329 fail:
7330 return NULL;
7331 }
7332
7333
7334 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7335 PyObject *resultobj = 0;
7336 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7337 wxSize result;
7338 void *argp1 = 0 ;
7339 int res1 = 0 ;
7340 PyObject *swig_obj[1] ;
7341
7342 if (!args) SWIG_fail;
7343 swig_obj[0] = args;
7344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7345 if (!SWIG_IsOK(res1)) {
7346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7347 }
7348 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7349 {
7350 result = ((wxPixelDataBase const *)arg1)->GetSize();
7351 if (PyErr_Occurred()) SWIG_fail;
7352 }
7353 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7354 return resultobj;
7355 fail:
7356 return NULL;
7357 }
7358
7359
7360 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7361 PyObject *resultobj = 0;
7362 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7363 int result;
7364 void *argp1 = 0 ;
7365 int res1 = 0 ;
7366 PyObject *swig_obj[1] ;
7367
7368 if (!args) SWIG_fail;
7369 swig_obj[0] = args;
7370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7371 if (!SWIG_IsOK(res1)) {
7372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7373 }
7374 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7375 {
7376 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7377 if (PyErr_Occurred()) SWIG_fail;
7378 }
7379 resultobj = SWIG_From_int(static_cast< int >(result));
7380 return resultobj;
7381 fail:
7382 return NULL;
7383 }
7384
7385
7386 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7387 PyObject *obj;
7388 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7389 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7390 return SWIG_Py_Void();
7391 }
7392
7393 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7394 PyObject *resultobj = 0;
7395 wxBitmap *arg1 = 0 ;
7396 wxNativePixelData *result = 0 ;
7397 void *argp1 = 0 ;
7398 int res1 = 0 ;
7399
7400 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7402 if (!SWIG_IsOK(res1)) {
7403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7404 }
7405 if (!argp1) {
7406 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7407 }
7408 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7409 {
7410 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7411 if (PyErr_Occurred()) SWIG_fail;
7412 }
7413 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7414 return resultobj;
7415 fail:
7416 return NULL;
7417 }
7418
7419
7420 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7421 PyObject *resultobj = 0;
7422 wxBitmap *arg1 = 0 ;
7423 wxRect *arg2 = 0 ;
7424 wxNativePixelData *result = 0 ;
7425 void *argp1 = 0 ;
7426 int res1 = 0 ;
7427 wxRect temp2 ;
7428
7429 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7431 if (!SWIG_IsOK(res1)) {
7432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7433 }
7434 if (!argp1) {
7435 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7436 }
7437 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7438 {
7439 arg2 = &temp2;
7440 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7441 }
7442 {
7443 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7444 if (PyErr_Occurred()) SWIG_fail;
7445 }
7446 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7447 return resultobj;
7448 fail:
7449 return NULL;
7450 }
7451
7452
7453 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7454 PyObject *resultobj = 0;
7455 wxBitmap *arg1 = 0 ;
7456 wxPoint *arg2 = 0 ;
7457 wxSize *arg3 = 0 ;
7458 wxNativePixelData *result = 0 ;
7459 void *argp1 = 0 ;
7460 int res1 = 0 ;
7461 wxPoint temp2 ;
7462 wxSize temp3 ;
7463
7464 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7466 if (!SWIG_IsOK(res1)) {
7467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7468 }
7469 if (!argp1) {
7470 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7471 }
7472 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7473 {
7474 arg2 = &temp2;
7475 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7476 }
7477 {
7478 arg3 = &temp3;
7479 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7480 }
7481 {
7482 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7483 if (PyErr_Occurred()) SWIG_fail;
7484 }
7485 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7486 return resultobj;
7487 fail:
7488 return NULL;
7489 }
7490
7491
7492 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7493 int argc;
7494 PyObject *argv[4];
7495
7496 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7497 --argc;
7498 if (argc == 1) {
7499 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7500 }
7501 if (argc == 2) {
7502 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7503 }
7504 if (argc == 3) {
7505 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7506 }
7507
7508 fail:
7509 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7510 return NULL;
7511 }
7512
7513
7514 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7515 PyObject *resultobj = 0;
7516 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7517 void *argp1 = 0 ;
7518 int res1 = 0 ;
7519 PyObject *swig_obj[1] ;
7520
7521 if (!args) SWIG_fail;
7522 swig_obj[0] = args;
7523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7524 if (!SWIG_IsOK(res1)) {
7525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7526 }
7527 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7528 {
7529 delete arg1;
7530
7531 if (PyErr_Occurred()) SWIG_fail;
7532 }
7533 resultobj = SWIG_Py_Void();
7534 return resultobj;
7535 fail:
7536 return NULL;
7537 }
7538
7539
7540 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7541 PyObject *resultobj = 0;
7542 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7543 wxNativePixelData_Accessor result;
7544 void *argp1 = 0 ;
7545 int res1 = 0 ;
7546 PyObject *swig_obj[1] ;
7547
7548 if (!args) SWIG_fail;
7549 swig_obj[0] = args;
7550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7551 if (!SWIG_IsOK(res1)) {
7552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7553 }
7554 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7555 {
7556 result = ((wxNativePixelData const *)arg1)->GetPixels();
7557 if (PyErr_Occurred()) SWIG_fail;
7558 }
7559 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7560 return resultobj;
7561 fail:
7562 return NULL;
7563 }
7564
7565
7566 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7567 PyObject *resultobj = 0;
7568 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7569 void *argp1 = 0 ;
7570 int res1 = 0 ;
7571 PyObject *swig_obj[1] ;
7572
7573 if (!args) SWIG_fail;
7574 swig_obj[0] = args;
7575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7576 if (!SWIG_IsOK(res1)) {
7577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7578 }
7579 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7580 {
7581 (arg1)->UseAlpha();
7582 if (PyErr_Occurred()) SWIG_fail;
7583 }
7584 resultobj = SWIG_Py_Void();
7585 return resultobj;
7586 fail:
7587 return NULL;
7588 }
7589
7590
7591 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7592 PyObject *resultobj = 0;
7593 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7594 bool result;
7595 void *argp1 = 0 ;
7596 int res1 = 0 ;
7597 PyObject *swig_obj[1] ;
7598
7599 if (!args) SWIG_fail;
7600 swig_obj[0] = args;
7601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7602 if (!SWIG_IsOK(res1)) {
7603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7604 }
7605 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7606 {
7607 result = (bool)wxNativePixelData___nonzero__(arg1);
7608 if (PyErr_Occurred()) SWIG_fail;
7609 }
7610 {
7611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7612 }
7613 return resultobj;
7614 fail:
7615 return NULL;
7616 }
7617
7618
7619 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7620 PyObject *obj;
7621 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7622 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7623 return SWIG_Py_Void();
7624 }
7625
7626 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7627 return SWIG_Python_InitShadowInstance(args);
7628 }
7629
7630 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7631 PyObject *resultobj = 0;
7632 wxNativePixelData *arg1 = 0 ;
7633 wxNativePixelData_Accessor *result = 0 ;
7634 void *argp1 = 0 ;
7635 int res1 = 0 ;
7636
7637 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7639 if (!SWIG_IsOK(res1)) {
7640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7641 }
7642 if (!argp1) {
7643 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7644 }
7645 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7646 {
7647 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7648 if (PyErr_Occurred()) SWIG_fail;
7649 }
7650 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7651 return resultobj;
7652 fail:
7653 return NULL;
7654 }
7655
7656
7657 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7658 PyObject *resultobj = 0;
7659 wxBitmap *arg1 = 0 ;
7660 wxNativePixelData *arg2 = 0 ;
7661 wxNativePixelData_Accessor *result = 0 ;
7662 void *argp1 = 0 ;
7663 int res1 = 0 ;
7664 void *argp2 = 0 ;
7665 int res2 = 0 ;
7666
7667 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7669 if (!SWIG_IsOK(res1)) {
7670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7671 }
7672 if (!argp1) {
7673 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7674 }
7675 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7676 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7677 if (!SWIG_IsOK(res2)) {
7678 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7679 }
7680 if (!argp2) {
7681 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7682 }
7683 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7684 {
7685 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7686 if (PyErr_Occurred()) SWIG_fail;
7687 }
7688 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7689 return resultobj;
7690 fail:
7691 return NULL;
7692 }
7693
7694
7695 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7696 PyObject *resultobj = 0;
7697 wxNativePixelData_Accessor *result = 0 ;
7698
7699 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7700 {
7701 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7702 if (PyErr_Occurred()) SWIG_fail;
7703 }
7704 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7705 return resultobj;
7706 fail:
7707 return NULL;
7708 }
7709
7710
7711 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7712 int argc;
7713 PyObject *argv[3];
7714
7715 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7716 --argc;
7717 if (argc == 0) {
7718 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7719 }
7720 if (argc == 1) {
7721 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7722 }
7723 if (argc == 2) {
7724 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7725 }
7726
7727 fail:
7728 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7729 return NULL;
7730 }
7731
7732
7733 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7734 PyObject *resultobj = 0;
7735 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7736 void *argp1 = 0 ;
7737 int res1 = 0 ;
7738 PyObject *swig_obj[1] ;
7739
7740 if (!args) SWIG_fail;
7741 swig_obj[0] = args;
7742 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7743 if (!SWIG_IsOK(res1)) {
7744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7745 }
7746 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7747 {
7748 delete arg1;
7749
7750 if (PyErr_Occurred()) SWIG_fail;
7751 }
7752 resultobj = SWIG_Py_Void();
7753 return resultobj;
7754 fail:
7755 return NULL;
7756 }
7757
7758
7759 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7760 PyObject *resultobj = 0;
7761 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7762 wxNativePixelData *arg2 = 0 ;
7763 void *argp1 = 0 ;
7764 int res1 = 0 ;
7765 void *argp2 = 0 ;
7766 int res2 = 0 ;
7767 PyObject * obj0 = 0 ;
7768 PyObject * obj1 = 0 ;
7769 char * kwnames[] = {
7770 (char *) "self",(char *) "data", NULL
7771 };
7772
7773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7775 if (!SWIG_IsOK(res1)) {
7776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7777 }
7778 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7779 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7780 if (!SWIG_IsOK(res2)) {
7781 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7782 }
7783 if (!argp2) {
7784 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7785 }
7786 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7787 {
7788 (arg1)->Reset((wxNativePixelData const &)*arg2);
7789 if (PyErr_Occurred()) SWIG_fail;
7790 }
7791 resultobj = SWIG_Py_Void();
7792 return resultobj;
7793 fail:
7794 return NULL;
7795 }
7796
7797
7798 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7799 PyObject *resultobj = 0;
7800 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7801 bool result;
7802 void *argp1 = 0 ;
7803 int res1 = 0 ;
7804 PyObject *swig_obj[1] ;
7805
7806 if (!args) SWIG_fail;
7807 swig_obj[0] = args;
7808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7809 if (!SWIG_IsOK(res1)) {
7810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7811 }
7812 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7813 {
7814 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7815 if (PyErr_Occurred()) SWIG_fail;
7816 }
7817 {
7818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7819 }
7820 return resultobj;
7821 fail:
7822 return NULL;
7823 }
7824
7825
7826 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7827 PyObject *resultobj = 0;
7828 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7829 void *argp1 = 0 ;
7830 int res1 = 0 ;
7831 PyObject *swig_obj[1] ;
7832
7833 if (!args) SWIG_fail;
7834 swig_obj[0] = args;
7835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7836 if (!SWIG_IsOK(res1)) {
7837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7838 }
7839 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7840 {
7841 wxNativePixelData_Accessor_nextPixel(arg1);
7842 if (PyErr_Occurred()) SWIG_fail;
7843 }
7844 resultobj = SWIG_Py_Void();
7845 return resultobj;
7846 fail:
7847 return NULL;
7848 }
7849
7850
7851 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7852 PyObject *resultobj = 0;
7853 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7854 wxNativePixelData *arg2 = 0 ;
7855 int arg3 ;
7856 int arg4 ;
7857 void *argp1 = 0 ;
7858 int res1 = 0 ;
7859 void *argp2 = 0 ;
7860 int res2 = 0 ;
7861 int val3 ;
7862 int ecode3 = 0 ;
7863 int val4 ;
7864 int ecode4 = 0 ;
7865 PyObject * obj0 = 0 ;
7866 PyObject * obj1 = 0 ;
7867 PyObject * obj2 = 0 ;
7868 PyObject * obj3 = 0 ;
7869 char * kwnames[] = {
7870 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7871 };
7872
7873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7875 if (!SWIG_IsOK(res1)) {
7876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7877 }
7878 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7879 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7880 if (!SWIG_IsOK(res2)) {
7881 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7882 }
7883 if (!argp2) {
7884 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7885 }
7886 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7887 ecode3 = SWIG_AsVal_int(obj2, &val3);
7888 if (!SWIG_IsOK(ecode3)) {
7889 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7890 }
7891 arg3 = static_cast< int >(val3);
7892 ecode4 = SWIG_AsVal_int(obj3, &val4);
7893 if (!SWIG_IsOK(ecode4)) {
7894 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7895 }
7896 arg4 = static_cast< int >(val4);
7897 {
7898 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7899 if (PyErr_Occurred()) SWIG_fail;
7900 }
7901 resultobj = SWIG_Py_Void();
7902 return resultobj;
7903 fail:
7904 return NULL;
7905 }
7906
7907
7908 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7909 PyObject *resultobj = 0;
7910 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7911 wxNativePixelData *arg2 = 0 ;
7912 int arg3 ;
7913 void *argp1 = 0 ;
7914 int res1 = 0 ;
7915 void *argp2 = 0 ;
7916 int res2 = 0 ;
7917 int val3 ;
7918 int ecode3 = 0 ;
7919 PyObject * obj0 = 0 ;
7920 PyObject * obj1 = 0 ;
7921 PyObject * obj2 = 0 ;
7922 char * kwnames[] = {
7923 (char *) "self",(char *) "data",(char *) "x", NULL
7924 };
7925
7926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7928 if (!SWIG_IsOK(res1)) {
7929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7930 }
7931 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7932 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7933 if (!SWIG_IsOK(res2)) {
7934 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7935 }
7936 if (!argp2) {
7937 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7938 }
7939 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7940 ecode3 = SWIG_AsVal_int(obj2, &val3);
7941 if (!SWIG_IsOK(ecode3)) {
7942 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7943 }
7944 arg3 = static_cast< int >(val3);
7945 {
7946 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7947 if (PyErr_Occurred()) SWIG_fail;
7948 }
7949 resultobj = SWIG_Py_Void();
7950 return resultobj;
7951 fail:
7952 return NULL;
7953 }
7954
7955
7956 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7957 PyObject *resultobj = 0;
7958 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7959 wxNativePixelData *arg2 = 0 ;
7960 int arg3 ;
7961 void *argp1 = 0 ;
7962 int res1 = 0 ;
7963 void *argp2 = 0 ;
7964 int res2 = 0 ;
7965 int val3 ;
7966 int ecode3 = 0 ;
7967 PyObject * obj0 = 0 ;
7968 PyObject * obj1 = 0 ;
7969 PyObject * obj2 = 0 ;
7970 char * kwnames[] = {
7971 (char *) "self",(char *) "data",(char *) "y", NULL
7972 };
7973
7974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7976 if (!SWIG_IsOK(res1)) {
7977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7978 }
7979 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7980 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7981 if (!SWIG_IsOK(res2)) {
7982 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7983 }
7984 if (!argp2) {
7985 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7986 }
7987 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7988 ecode3 = SWIG_AsVal_int(obj2, &val3);
7989 if (!SWIG_IsOK(ecode3)) {
7990 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7991 }
7992 arg3 = static_cast< int >(val3);
7993 {
7994 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7995 if (PyErr_Occurred()) SWIG_fail;
7996 }
7997 resultobj = SWIG_Py_Void();
7998 return resultobj;
7999 fail:
8000 return NULL;
8001 }
8002
8003
8004 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8005 PyObject *resultobj = 0;
8006 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8007 wxNativePixelData *arg2 = 0 ;
8008 int arg3 ;
8009 int arg4 ;
8010 void *argp1 = 0 ;
8011 int res1 = 0 ;
8012 void *argp2 = 0 ;
8013 int res2 = 0 ;
8014 int val3 ;
8015 int ecode3 = 0 ;
8016 int val4 ;
8017 int ecode4 = 0 ;
8018 PyObject * obj0 = 0 ;
8019 PyObject * obj1 = 0 ;
8020 PyObject * obj2 = 0 ;
8021 PyObject * obj3 = 0 ;
8022 char * kwnames[] = {
8023 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8024 };
8025
8026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8028 if (!SWIG_IsOK(res1)) {
8029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8030 }
8031 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8032 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8033 if (!SWIG_IsOK(res2)) {
8034 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8035 }
8036 if (!argp2) {
8037 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8038 }
8039 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8040 ecode3 = SWIG_AsVal_int(obj2, &val3);
8041 if (!SWIG_IsOK(ecode3)) {
8042 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8043 }
8044 arg3 = static_cast< int >(val3);
8045 ecode4 = SWIG_AsVal_int(obj3, &val4);
8046 if (!SWIG_IsOK(ecode4)) {
8047 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8048 }
8049 arg4 = static_cast< int >(val4);
8050 {
8051 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8052 if (PyErr_Occurred()) SWIG_fail;
8053 }
8054 resultobj = SWIG_Py_Void();
8055 return resultobj;
8056 fail:
8057 return NULL;
8058 }
8059
8060
8061 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8062 PyObject *resultobj = 0;
8063 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8064 byte arg2 ;
8065 byte arg3 ;
8066 byte arg4 ;
8067 void *argp1 = 0 ;
8068 int res1 = 0 ;
8069 unsigned char val2 ;
8070 int ecode2 = 0 ;
8071 unsigned char val3 ;
8072 int ecode3 = 0 ;
8073 unsigned char val4 ;
8074 int ecode4 = 0 ;
8075 PyObject * obj0 = 0 ;
8076 PyObject * obj1 = 0 ;
8077 PyObject * obj2 = 0 ;
8078 PyObject * obj3 = 0 ;
8079 char * kwnames[] = {
8080 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8081 };
8082
8083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8085 if (!SWIG_IsOK(res1)) {
8086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8087 }
8088 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8089 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8090 if (!SWIG_IsOK(ecode2)) {
8091 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8092 }
8093 arg2 = static_cast< byte >(val2);
8094 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8095 if (!SWIG_IsOK(ecode3)) {
8096 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8097 }
8098 arg3 = static_cast< byte >(val3);
8099 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8100 if (!SWIG_IsOK(ecode4)) {
8101 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8102 }
8103 arg4 = static_cast< byte >(val4);
8104 {
8105 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8106 if (PyErr_Occurred()) SWIG_fail;
8107 }
8108 resultobj = SWIG_Py_Void();
8109 return resultobj;
8110 fail:
8111 return NULL;
8112 }
8113
8114
8115 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8116 PyObject *resultobj = 0;
8117 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8118 PyObject *result = 0 ;
8119 void *argp1 = 0 ;
8120 int res1 = 0 ;
8121 PyObject *swig_obj[1] ;
8122
8123 if (!args) SWIG_fail;
8124 swig_obj[0] = args;
8125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8126 if (!SWIG_IsOK(res1)) {
8127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8128 }
8129 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8130 {
8131 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8132 if (PyErr_Occurred()) SWIG_fail;
8133 }
8134 resultobj = result;
8135 return resultobj;
8136 fail:
8137 return NULL;
8138 }
8139
8140
8141 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8142 PyObject *obj;
8143 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8144 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8145 return SWIG_Py_Void();
8146 }
8147
8148 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8149 return SWIG_Python_InitShadowInstance(args);
8150 }
8151
8152 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8153 PyObject *resultobj = 0;
8154 wxBitmap *arg1 = 0 ;
8155 wxAlphaPixelData *result = 0 ;
8156 void *argp1 = 0 ;
8157 int res1 = 0 ;
8158
8159 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8161 if (!SWIG_IsOK(res1)) {
8162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8163 }
8164 if (!argp1) {
8165 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8166 }
8167 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8168 {
8169 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8170 if (PyErr_Occurred()) SWIG_fail;
8171 }
8172 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8173 return resultobj;
8174 fail:
8175 return NULL;
8176 }
8177
8178
8179 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8180 PyObject *resultobj = 0;
8181 wxBitmap *arg1 = 0 ;
8182 wxRect *arg2 = 0 ;
8183 wxAlphaPixelData *result = 0 ;
8184 void *argp1 = 0 ;
8185 int res1 = 0 ;
8186 wxRect temp2 ;
8187
8188 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8190 if (!SWIG_IsOK(res1)) {
8191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8192 }
8193 if (!argp1) {
8194 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8195 }
8196 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8197 {
8198 arg2 = &temp2;
8199 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8200 }
8201 {
8202 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8203 if (PyErr_Occurred()) SWIG_fail;
8204 }
8205 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8206 return resultobj;
8207 fail:
8208 return NULL;
8209 }
8210
8211
8212 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8213 PyObject *resultobj = 0;
8214 wxBitmap *arg1 = 0 ;
8215 wxPoint *arg2 = 0 ;
8216 wxSize *arg3 = 0 ;
8217 wxAlphaPixelData *result = 0 ;
8218 void *argp1 = 0 ;
8219 int res1 = 0 ;
8220 wxPoint temp2 ;
8221 wxSize temp3 ;
8222
8223 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8225 if (!SWIG_IsOK(res1)) {
8226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8227 }
8228 if (!argp1) {
8229 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8230 }
8231 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8232 {
8233 arg2 = &temp2;
8234 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8235 }
8236 {
8237 arg3 = &temp3;
8238 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8239 }
8240 {
8241 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8242 if (PyErr_Occurred()) SWIG_fail;
8243 }
8244 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8245 return resultobj;
8246 fail:
8247 return NULL;
8248 }
8249
8250
8251 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8252 int argc;
8253 PyObject *argv[4];
8254
8255 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8256 --argc;
8257 if (argc == 1) {
8258 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8259 }
8260 if (argc == 2) {
8261 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8262 }
8263 if (argc == 3) {
8264 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8265 }
8266
8267 fail:
8268 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8269 return NULL;
8270 }
8271
8272
8273 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8274 PyObject *resultobj = 0;
8275 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8276 void *argp1 = 0 ;
8277 int res1 = 0 ;
8278 PyObject *swig_obj[1] ;
8279
8280 if (!args) SWIG_fail;
8281 swig_obj[0] = args;
8282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8283 if (!SWIG_IsOK(res1)) {
8284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8285 }
8286 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8287 {
8288 delete arg1;
8289
8290 if (PyErr_Occurred()) SWIG_fail;
8291 }
8292 resultobj = SWIG_Py_Void();
8293 return resultobj;
8294 fail:
8295 return NULL;
8296 }
8297
8298
8299 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8300 PyObject *resultobj = 0;
8301 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8302 wxAlphaPixelData_Accessor result;
8303 void *argp1 = 0 ;
8304 int res1 = 0 ;
8305 PyObject *swig_obj[1] ;
8306
8307 if (!args) SWIG_fail;
8308 swig_obj[0] = args;
8309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8310 if (!SWIG_IsOK(res1)) {
8311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8312 }
8313 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8314 {
8315 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8316 if (PyErr_Occurred()) SWIG_fail;
8317 }
8318 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8319 return resultobj;
8320 fail:
8321 return NULL;
8322 }
8323
8324
8325 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8326 PyObject *resultobj = 0;
8327 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8328 void *argp1 = 0 ;
8329 int res1 = 0 ;
8330 PyObject *swig_obj[1] ;
8331
8332 if (!args) SWIG_fail;
8333 swig_obj[0] = args;
8334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8335 if (!SWIG_IsOK(res1)) {
8336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8337 }
8338 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8339 {
8340 (arg1)->UseAlpha();
8341 if (PyErr_Occurred()) SWIG_fail;
8342 }
8343 resultobj = SWIG_Py_Void();
8344 return resultobj;
8345 fail:
8346 return NULL;
8347 }
8348
8349
8350 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8351 PyObject *resultobj = 0;
8352 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8353 bool result;
8354 void *argp1 = 0 ;
8355 int res1 = 0 ;
8356 PyObject *swig_obj[1] ;
8357
8358 if (!args) SWIG_fail;
8359 swig_obj[0] = args;
8360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8361 if (!SWIG_IsOK(res1)) {
8362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8363 }
8364 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8365 {
8366 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8367 if (PyErr_Occurred()) SWIG_fail;
8368 }
8369 {
8370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8371 }
8372 return resultobj;
8373 fail:
8374 return NULL;
8375 }
8376
8377
8378 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8379 PyObject *obj;
8380 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8381 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8382 return SWIG_Py_Void();
8383 }
8384
8385 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8386 return SWIG_Python_InitShadowInstance(args);
8387 }
8388
8389 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8390 PyObject *resultobj = 0;
8391 wxAlphaPixelData *arg1 = 0 ;
8392 wxAlphaPixelData_Accessor *result = 0 ;
8393 void *argp1 = 0 ;
8394 int res1 = 0 ;
8395
8396 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8397 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8398 if (!SWIG_IsOK(res1)) {
8399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8400 }
8401 if (!argp1) {
8402 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8403 }
8404 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8405 {
8406 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8407 if (PyErr_Occurred()) SWIG_fail;
8408 }
8409 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8410 return resultobj;
8411 fail:
8412 return NULL;
8413 }
8414
8415
8416 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8417 PyObject *resultobj = 0;
8418 wxBitmap *arg1 = 0 ;
8419 wxAlphaPixelData *arg2 = 0 ;
8420 wxAlphaPixelData_Accessor *result = 0 ;
8421 void *argp1 = 0 ;
8422 int res1 = 0 ;
8423 void *argp2 = 0 ;
8424 int res2 = 0 ;
8425
8426 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8428 if (!SWIG_IsOK(res1)) {
8429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8430 }
8431 if (!argp1) {
8432 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8433 }
8434 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8435 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8436 if (!SWIG_IsOK(res2)) {
8437 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8438 }
8439 if (!argp2) {
8440 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8441 }
8442 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8443 {
8444 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8445 if (PyErr_Occurred()) SWIG_fail;
8446 }
8447 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8448 return resultobj;
8449 fail:
8450 return NULL;
8451 }
8452
8453
8454 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8455 PyObject *resultobj = 0;
8456 wxAlphaPixelData_Accessor *result = 0 ;
8457
8458 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8459 {
8460 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8461 if (PyErr_Occurred()) SWIG_fail;
8462 }
8463 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8464 return resultobj;
8465 fail:
8466 return NULL;
8467 }
8468
8469
8470 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8471 int argc;
8472 PyObject *argv[3];
8473
8474 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8475 --argc;
8476 if (argc == 0) {
8477 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8478 }
8479 if (argc == 1) {
8480 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8481 }
8482 if (argc == 2) {
8483 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8484 }
8485
8486 fail:
8487 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8488 return NULL;
8489 }
8490
8491
8492 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8493 PyObject *resultobj = 0;
8494 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8495 void *argp1 = 0 ;
8496 int res1 = 0 ;
8497 PyObject *swig_obj[1] ;
8498
8499 if (!args) SWIG_fail;
8500 swig_obj[0] = args;
8501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8502 if (!SWIG_IsOK(res1)) {
8503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8504 }
8505 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8506 {
8507 delete arg1;
8508
8509 if (PyErr_Occurred()) SWIG_fail;
8510 }
8511 resultobj = SWIG_Py_Void();
8512 return resultobj;
8513 fail:
8514 return NULL;
8515 }
8516
8517
8518 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8519 PyObject *resultobj = 0;
8520 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8521 wxAlphaPixelData *arg2 = 0 ;
8522 void *argp1 = 0 ;
8523 int res1 = 0 ;
8524 void *argp2 = 0 ;
8525 int res2 = 0 ;
8526 PyObject * obj0 = 0 ;
8527 PyObject * obj1 = 0 ;
8528 char * kwnames[] = {
8529 (char *) "self",(char *) "data", NULL
8530 };
8531
8532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8534 if (!SWIG_IsOK(res1)) {
8535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8536 }
8537 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8538 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8539 if (!SWIG_IsOK(res2)) {
8540 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8541 }
8542 if (!argp2) {
8543 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8544 }
8545 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8546 {
8547 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8548 if (PyErr_Occurred()) SWIG_fail;
8549 }
8550 resultobj = SWIG_Py_Void();
8551 return resultobj;
8552 fail:
8553 return NULL;
8554 }
8555
8556
8557 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8558 PyObject *resultobj = 0;
8559 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8560 bool result;
8561 void *argp1 = 0 ;
8562 int res1 = 0 ;
8563 PyObject *swig_obj[1] ;
8564
8565 if (!args) SWIG_fail;
8566 swig_obj[0] = args;
8567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8568 if (!SWIG_IsOK(res1)) {
8569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8570 }
8571 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8572 {
8573 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8574 if (PyErr_Occurred()) SWIG_fail;
8575 }
8576 {
8577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8578 }
8579 return resultobj;
8580 fail:
8581 return NULL;
8582 }
8583
8584
8585 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8586 PyObject *resultobj = 0;
8587 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8588 void *argp1 = 0 ;
8589 int res1 = 0 ;
8590 PyObject *swig_obj[1] ;
8591
8592 if (!args) SWIG_fail;
8593 swig_obj[0] = args;
8594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8595 if (!SWIG_IsOK(res1)) {
8596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8597 }
8598 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8599 {
8600 wxAlphaPixelData_Accessor_nextPixel(arg1);
8601 if (PyErr_Occurred()) SWIG_fail;
8602 }
8603 resultobj = SWIG_Py_Void();
8604 return resultobj;
8605 fail:
8606 return NULL;
8607 }
8608
8609
8610 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8611 PyObject *resultobj = 0;
8612 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8613 wxAlphaPixelData *arg2 = 0 ;
8614 int arg3 ;
8615 int arg4 ;
8616 void *argp1 = 0 ;
8617 int res1 = 0 ;
8618 void *argp2 = 0 ;
8619 int res2 = 0 ;
8620 int val3 ;
8621 int ecode3 = 0 ;
8622 int val4 ;
8623 int ecode4 = 0 ;
8624 PyObject * obj0 = 0 ;
8625 PyObject * obj1 = 0 ;
8626 PyObject * obj2 = 0 ;
8627 PyObject * obj3 = 0 ;
8628 char * kwnames[] = {
8629 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8630 };
8631
8632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8634 if (!SWIG_IsOK(res1)) {
8635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8636 }
8637 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8638 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8639 if (!SWIG_IsOK(res2)) {
8640 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8641 }
8642 if (!argp2) {
8643 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8644 }
8645 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8646 ecode3 = SWIG_AsVal_int(obj2, &val3);
8647 if (!SWIG_IsOK(ecode3)) {
8648 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8649 }
8650 arg3 = static_cast< int >(val3);
8651 ecode4 = SWIG_AsVal_int(obj3, &val4);
8652 if (!SWIG_IsOK(ecode4)) {
8653 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8654 }
8655 arg4 = static_cast< int >(val4);
8656 {
8657 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8658 if (PyErr_Occurred()) SWIG_fail;
8659 }
8660 resultobj = SWIG_Py_Void();
8661 return resultobj;
8662 fail:
8663 return NULL;
8664 }
8665
8666
8667 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8668 PyObject *resultobj = 0;
8669 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8670 wxAlphaPixelData *arg2 = 0 ;
8671 int arg3 ;
8672 void *argp1 = 0 ;
8673 int res1 = 0 ;
8674 void *argp2 = 0 ;
8675 int res2 = 0 ;
8676 int val3 ;
8677 int ecode3 = 0 ;
8678 PyObject * obj0 = 0 ;
8679 PyObject * obj1 = 0 ;
8680 PyObject * obj2 = 0 ;
8681 char * kwnames[] = {
8682 (char *) "self",(char *) "data",(char *) "x", NULL
8683 };
8684
8685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8687 if (!SWIG_IsOK(res1)) {
8688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8689 }
8690 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8691 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8692 if (!SWIG_IsOK(res2)) {
8693 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8694 }
8695 if (!argp2) {
8696 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8697 }
8698 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8699 ecode3 = SWIG_AsVal_int(obj2, &val3);
8700 if (!SWIG_IsOK(ecode3)) {
8701 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8702 }
8703 arg3 = static_cast< int >(val3);
8704 {
8705 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8706 if (PyErr_Occurred()) SWIG_fail;
8707 }
8708 resultobj = SWIG_Py_Void();
8709 return resultobj;
8710 fail:
8711 return NULL;
8712 }
8713
8714
8715 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8716 PyObject *resultobj = 0;
8717 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8718 wxAlphaPixelData *arg2 = 0 ;
8719 int arg3 ;
8720 void *argp1 = 0 ;
8721 int res1 = 0 ;
8722 void *argp2 = 0 ;
8723 int res2 = 0 ;
8724 int val3 ;
8725 int ecode3 = 0 ;
8726 PyObject * obj0 = 0 ;
8727 PyObject * obj1 = 0 ;
8728 PyObject * obj2 = 0 ;
8729 char * kwnames[] = {
8730 (char *) "self",(char *) "data",(char *) "y", NULL
8731 };
8732
8733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8735 if (!SWIG_IsOK(res1)) {
8736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8737 }
8738 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8739 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8740 if (!SWIG_IsOK(res2)) {
8741 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8742 }
8743 if (!argp2) {
8744 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8745 }
8746 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8747 ecode3 = SWIG_AsVal_int(obj2, &val3);
8748 if (!SWIG_IsOK(ecode3)) {
8749 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8750 }
8751 arg3 = static_cast< int >(val3);
8752 {
8753 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8754 if (PyErr_Occurred()) SWIG_fail;
8755 }
8756 resultobj = SWIG_Py_Void();
8757 return resultobj;
8758 fail:
8759 return NULL;
8760 }
8761
8762
8763 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8764 PyObject *resultobj = 0;
8765 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8766 wxAlphaPixelData *arg2 = 0 ;
8767 int arg3 ;
8768 int arg4 ;
8769 void *argp1 = 0 ;
8770 int res1 = 0 ;
8771 void *argp2 = 0 ;
8772 int res2 = 0 ;
8773 int val3 ;
8774 int ecode3 = 0 ;
8775 int val4 ;
8776 int ecode4 = 0 ;
8777 PyObject * obj0 = 0 ;
8778 PyObject * obj1 = 0 ;
8779 PyObject * obj2 = 0 ;
8780 PyObject * obj3 = 0 ;
8781 char * kwnames[] = {
8782 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8783 };
8784
8785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8787 if (!SWIG_IsOK(res1)) {
8788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8789 }
8790 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8791 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8792 if (!SWIG_IsOK(res2)) {
8793 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8794 }
8795 if (!argp2) {
8796 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8797 }
8798 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8799 ecode3 = SWIG_AsVal_int(obj2, &val3);
8800 if (!SWIG_IsOK(ecode3)) {
8801 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8802 }
8803 arg3 = static_cast< int >(val3);
8804 ecode4 = SWIG_AsVal_int(obj3, &val4);
8805 if (!SWIG_IsOK(ecode4)) {
8806 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8807 }
8808 arg4 = static_cast< int >(val4);
8809 {
8810 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8811 if (PyErr_Occurred()) SWIG_fail;
8812 }
8813 resultobj = SWIG_Py_Void();
8814 return resultobj;
8815 fail:
8816 return NULL;
8817 }
8818
8819
8820 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8821 PyObject *resultobj = 0;
8822 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8823 byte arg2 ;
8824 byte arg3 ;
8825 byte arg4 ;
8826 byte arg5 ;
8827 void *argp1 = 0 ;
8828 int res1 = 0 ;
8829 unsigned char val2 ;
8830 int ecode2 = 0 ;
8831 unsigned char val3 ;
8832 int ecode3 = 0 ;
8833 unsigned char val4 ;
8834 int ecode4 = 0 ;
8835 unsigned char val5 ;
8836 int ecode5 = 0 ;
8837 PyObject * obj0 = 0 ;
8838 PyObject * obj1 = 0 ;
8839 PyObject * obj2 = 0 ;
8840 PyObject * obj3 = 0 ;
8841 PyObject * obj4 = 0 ;
8842 char * kwnames[] = {
8843 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8844 };
8845
8846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8848 if (!SWIG_IsOK(res1)) {
8849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8850 }
8851 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8852 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8853 if (!SWIG_IsOK(ecode2)) {
8854 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8855 }
8856 arg2 = static_cast< byte >(val2);
8857 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8858 if (!SWIG_IsOK(ecode3)) {
8859 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8860 }
8861 arg3 = static_cast< byte >(val3);
8862 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8863 if (!SWIG_IsOK(ecode4)) {
8864 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8865 }
8866 arg4 = static_cast< byte >(val4);
8867 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8868 if (!SWIG_IsOK(ecode5)) {
8869 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8870 }
8871 arg5 = static_cast< byte >(val5);
8872 {
8873 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8874 if (PyErr_Occurred()) SWIG_fail;
8875 }
8876 resultobj = SWIG_Py_Void();
8877 return resultobj;
8878 fail:
8879 return NULL;
8880 }
8881
8882
8883 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8884 PyObject *resultobj = 0;
8885 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8886 PyObject *result = 0 ;
8887 void *argp1 = 0 ;
8888 int res1 = 0 ;
8889 PyObject *swig_obj[1] ;
8890
8891 if (!args) SWIG_fail;
8892 swig_obj[0] = args;
8893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8894 if (!SWIG_IsOK(res1)) {
8895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8896 }
8897 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8898 {
8899 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
8900 if (PyErr_Occurred()) SWIG_fail;
8901 }
8902 resultobj = result;
8903 return resultobj;
8904 fail:
8905 return NULL;
8906 }
8907
8908
8909 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8910 PyObject *obj;
8911 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8912 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
8913 return SWIG_Py_Void();
8914 }
8915
8916 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8917 return SWIG_Python_InitShadowInstance(args);
8918 }
8919
8920 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8921 PyObject *resultobj = 0;
8922 wxBitmap *arg1 = 0 ;
8923 wxColour const &arg2_defvalue = wxNullColour ;
8924 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8925 wxMask *result = 0 ;
8926 void *argp1 = 0 ;
8927 int res1 = 0 ;
8928 wxColour temp2 ;
8929 PyObject * obj0 = 0 ;
8930 PyObject * obj1 = 0 ;
8931 char * kwnames[] = {
8932 (char *) "bitmap",(char *) "colour", NULL
8933 };
8934
8935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8936 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8937 if (!SWIG_IsOK(res1)) {
8938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8939 }
8940 if (!argp1) {
8941 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8942 }
8943 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8944 if (obj1) {
8945 {
8946 arg2 = &temp2;
8947 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8948 }
8949 }
8950 {
8951 if (!wxPyCheckForApp()) SWIG_fail;
8952 PyThreadState* __tstate = wxPyBeginAllowThreads();
8953 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8954 wxPyEndAllowThreads(__tstate);
8955 if (PyErr_Occurred()) SWIG_fail;
8956 }
8957 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8958 return resultobj;
8959 fail:
8960 return NULL;
8961 }
8962
8963
8964 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8965 PyObject *resultobj = 0;
8966 wxMask *arg1 = (wxMask *) 0 ;
8967 void *argp1 = 0 ;
8968 int res1 = 0 ;
8969 PyObject *swig_obj[1] ;
8970
8971 if (!args) SWIG_fail;
8972 swig_obj[0] = args;
8973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8974 if (!SWIG_IsOK(res1)) {
8975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8976 }
8977 arg1 = reinterpret_cast< wxMask * >(argp1);
8978 {
8979 delete arg1;
8980
8981 if (PyErr_Occurred()) SWIG_fail;
8982 }
8983 resultobj = SWIG_Py_Void();
8984 return resultobj;
8985 fail:
8986 return NULL;
8987 }
8988
8989
8990 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8991 PyObject *obj;
8992 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8993 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8994 return SWIG_Py_Void();
8995 }
8996
8997 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8998 return SWIG_Python_InitShadowInstance(args);
8999 }
9000
9001 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9002 PyObject *resultobj = 0;
9003 wxString *arg1 = 0 ;
9004 wxBitmapType arg2 ;
9005 int arg3 = (int) -1 ;
9006 int arg4 = (int) -1 ;
9007 wxIcon *result = 0 ;
9008 bool temp1 = false ;
9009 int val2 ;
9010 int ecode2 = 0 ;
9011 int val3 ;
9012 int ecode3 = 0 ;
9013 int val4 ;
9014 int ecode4 = 0 ;
9015 PyObject * obj0 = 0 ;
9016 PyObject * obj1 = 0 ;
9017 PyObject * obj2 = 0 ;
9018 PyObject * obj3 = 0 ;
9019 char * kwnames[] = {
9020 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9021 };
9022
9023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9024 {
9025 arg1 = wxString_in_helper(obj0);
9026 if (arg1 == NULL) SWIG_fail;
9027 temp1 = true;
9028 }
9029 ecode2 = SWIG_AsVal_int(obj1, &val2);
9030 if (!SWIG_IsOK(ecode2)) {
9031 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9032 }
9033 arg2 = static_cast< wxBitmapType >(val2);
9034 if (obj2) {
9035 ecode3 = SWIG_AsVal_int(obj2, &val3);
9036 if (!SWIG_IsOK(ecode3)) {
9037 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9038 }
9039 arg3 = static_cast< int >(val3);
9040 }
9041 if (obj3) {
9042 ecode4 = SWIG_AsVal_int(obj3, &val4);
9043 if (!SWIG_IsOK(ecode4)) {
9044 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9045 }
9046 arg4 = static_cast< int >(val4);
9047 }
9048 {
9049 if (!wxPyCheckForApp()) SWIG_fail;
9050 PyThreadState* __tstate = wxPyBeginAllowThreads();
9051 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9052 wxPyEndAllowThreads(__tstate);
9053 if (PyErr_Occurred()) SWIG_fail;
9054 }
9055 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9056 {
9057 if (temp1)
9058 delete arg1;
9059 }
9060 return resultobj;
9061 fail:
9062 {
9063 if (temp1)
9064 delete arg1;
9065 }
9066 return NULL;
9067 }
9068
9069
9070 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9071 PyObject *resultobj = 0;
9072 wxIcon *arg1 = (wxIcon *) 0 ;
9073 void *argp1 = 0 ;
9074 int res1 = 0 ;
9075 PyObject *swig_obj[1] ;
9076
9077 if (!args) SWIG_fail;
9078 swig_obj[0] = args;
9079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9080 if (!SWIG_IsOK(res1)) {
9081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9082 }
9083 arg1 = reinterpret_cast< wxIcon * >(argp1);
9084 {
9085 PyThreadState* __tstate = wxPyBeginAllowThreads();
9086 delete arg1;
9087
9088 wxPyEndAllowThreads(__tstate);
9089 if (PyErr_Occurred()) SWIG_fail;
9090 }
9091 resultobj = SWIG_Py_Void();
9092 return resultobj;
9093 fail:
9094 return NULL;
9095 }
9096
9097
9098 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9099 PyObject *resultobj = 0;
9100 wxIcon *result = 0 ;
9101
9102 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9103 {
9104 if (!wxPyCheckForApp()) SWIG_fail;
9105 PyThreadState* __tstate = wxPyBeginAllowThreads();
9106 result = (wxIcon *)new wxIcon();
9107 wxPyEndAllowThreads(__tstate);
9108 if (PyErr_Occurred()) SWIG_fail;
9109 }
9110 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9111 return resultobj;
9112 fail:
9113 return NULL;
9114 }
9115
9116
9117 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9118 PyObject *resultobj = 0;
9119 wxIconLocation *arg1 = 0 ;
9120 wxIcon *result = 0 ;
9121 void *argp1 = 0 ;
9122 int res1 = 0 ;
9123 PyObject * obj0 = 0 ;
9124 char * kwnames[] = {
9125 (char *) "loc", NULL
9126 };
9127
9128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9129 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9130 if (!SWIG_IsOK(res1)) {
9131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9132 }
9133 if (!argp1) {
9134 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9135 }
9136 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9137 {
9138 if (!wxPyCheckForApp()) SWIG_fail;
9139 PyThreadState* __tstate = wxPyBeginAllowThreads();
9140 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9141 wxPyEndAllowThreads(__tstate);
9142 if (PyErr_Occurred()) SWIG_fail;
9143 }
9144 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9145 return resultobj;
9146 fail:
9147 return NULL;
9148 }
9149
9150
9151 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9152 PyObject *resultobj = 0;
9153 wxBitmap *arg1 = 0 ;
9154 wxIcon *result = 0 ;
9155 void *argp1 = 0 ;
9156 int res1 = 0 ;
9157 PyObject * obj0 = 0 ;
9158 char * kwnames[] = {
9159 (char *) "bmp", NULL
9160 };
9161
9162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9163 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9164 if (!SWIG_IsOK(res1)) {
9165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9166 }
9167 if (!argp1) {
9168 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9169 }
9170 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9171 {
9172 if (!wxPyCheckForApp()) SWIG_fail;
9173 PyThreadState* __tstate = wxPyBeginAllowThreads();
9174 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9175 wxPyEndAllowThreads(__tstate);
9176 if (PyErr_Occurred()) SWIG_fail;
9177 }
9178 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9179 return resultobj;
9180 fail:
9181 return NULL;
9182 }
9183
9184
9185 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9186 PyObject *resultobj = 0;
9187 PyObject *arg1 = (PyObject *) 0 ;
9188 wxIcon *result = 0 ;
9189 PyObject * obj0 = 0 ;
9190 char * kwnames[] = {
9191 (char *) "listOfStrings", NULL
9192 };
9193
9194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9195 arg1 = obj0;
9196 {
9197 if (!wxPyCheckForApp()) SWIG_fail;
9198 PyThreadState* __tstate = wxPyBeginAllowThreads();
9199 result = (wxIcon *)new_wxIcon(arg1);
9200 wxPyEndAllowThreads(__tstate);
9201 if (PyErr_Occurred()) SWIG_fail;
9202 }
9203 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9204 return resultobj;
9205 fail:
9206 return NULL;
9207 }
9208
9209
9210 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9211 PyObject *resultobj = 0;
9212 wxIcon *arg1 = (wxIcon *) 0 ;
9213 wxString *arg2 = 0 ;
9214 wxBitmapType arg3 ;
9215 bool result;
9216 void *argp1 = 0 ;
9217 int res1 = 0 ;
9218 bool temp2 = false ;
9219 int val3 ;
9220 int ecode3 = 0 ;
9221 PyObject * obj0 = 0 ;
9222 PyObject * obj1 = 0 ;
9223 PyObject * obj2 = 0 ;
9224 char * kwnames[] = {
9225 (char *) "self",(char *) "name",(char *) "type", NULL
9226 };
9227
9228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9230 if (!SWIG_IsOK(res1)) {
9231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
9232 }
9233 arg1 = reinterpret_cast< wxIcon * >(argp1);
9234 {
9235 arg2 = wxString_in_helper(obj1);
9236 if (arg2 == NULL) SWIG_fail;
9237 temp2 = true;
9238 }
9239 ecode3 = SWIG_AsVal_int(obj2, &val3);
9240 if (!SWIG_IsOK(ecode3)) {
9241 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
9242 }
9243 arg3 = static_cast< wxBitmapType >(val3);
9244 {
9245 PyThreadState* __tstate = wxPyBeginAllowThreads();
9246 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
9247 wxPyEndAllowThreads(__tstate);
9248 if (PyErr_Occurred()) SWIG_fail;
9249 }
9250 {
9251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9252 }
9253 {
9254 if (temp2)
9255 delete arg2;
9256 }
9257 return resultobj;
9258 fail:
9259 {
9260 if (temp2)
9261 delete arg2;
9262 }
9263 return NULL;
9264 }
9265
9266
9267 SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9268 PyObject *resultobj = 0;
9269 wxIcon *arg1 = (wxIcon *) 0 ;
9270 bool result;
9271 void *argp1 = 0 ;
9272 int res1 = 0 ;
9273 PyObject *swig_obj[1] ;
9274
9275 if (!args) SWIG_fail;
9276 swig_obj[0] = args;
9277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9278 if (!SWIG_IsOK(res1)) {
9279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
9280 }
9281 arg1 = reinterpret_cast< wxIcon * >(argp1);
9282 {
9283 PyThreadState* __tstate = wxPyBeginAllowThreads();
9284 result = (bool)(arg1)->IsOk();
9285 wxPyEndAllowThreads(__tstate);
9286 if (PyErr_Occurred()) SWIG_fail;
9287 }
9288 {
9289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9290 }
9291 return resultobj;
9292 fail:
9293 return NULL;
9294 }
9295
9296
9297 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9298 PyObject *resultobj = 0;
9299 wxIcon *arg1 = (wxIcon *) 0 ;
9300 int result;
9301 void *argp1 = 0 ;
9302 int res1 = 0 ;
9303 PyObject *swig_obj[1] ;
9304
9305 if (!args) SWIG_fail;
9306 swig_obj[0] = args;
9307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9308 if (!SWIG_IsOK(res1)) {
9309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9310 }
9311 arg1 = reinterpret_cast< wxIcon * >(argp1);
9312 {
9313 PyThreadState* __tstate = wxPyBeginAllowThreads();
9314 result = (int)(arg1)->GetWidth();
9315 wxPyEndAllowThreads(__tstate);
9316 if (PyErr_Occurred()) SWIG_fail;
9317 }
9318 resultobj = SWIG_From_int(static_cast< int >(result));
9319 return resultobj;
9320 fail:
9321 return NULL;
9322 }
9323
9324
9325 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9326 PyObject *resultobj = 0;
9327 wxIcon *arg1 = (wxIcon *) 0 ;
9328 int result;
9329 void *argp1 = 0 ;
9330 int res1 = 0 ;
9331 PyObject *swig_obj[1] ;
9332
9333 if (!args) SWIG_fail;
9334 swig_obj[0] = args;
9335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9336 if (!SWIG_IsOK(res1)) {
9337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9338 }
9339 arg1 = reinterpret_cast< wxIcon * >(argp1);
9340 {
9341 PyThreadState* __tstate = wxPyBeginAllowThreads();
9342 result = (int)(arg1)->GetHeight();
9343 wxPyEndAllowThreads(__tstate);
9344 if (PyErr_Occurred()) SWIG_fail;
9345 }
9346 resultobj = SWIG_From_int(static_cast< int >(result));
9347 return resultobj;
9348 fail:
9349 return NULL;
9350 }
9351
9352
9353 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9354 PyObject *resultobj = 0;
9355 wxIcon *arg1 = (wxIcon *) 0 ;
9356 int result;
9357 void *argp1 = 0 ;
9358 int res1 = 0 ;
9359 PyObject *swig_obj[1] ;
9360
9361 if (!args) SWIG_fail;
9362 swig_obj[0] = args;
9363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9364 if (!SWIG_IsOK(res1)) {
9365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9366 }
9367 arg1 = reinterpret_cast< wxIcon * >(argp1);
9368 {
9369 PyThreadState* __tstate = wxPyBeginAllowThreads();
9370 result = (int)(arg1)->GetDepth();
9371 wxPyEndAllowThreads(__tstate);
9372 if (PyErr_Occurred()) SWIG_fail;
9373 }
9374 resultobj = SWIG_From_int(static_cast< int >(result));
9375 return resultobj;
9376 fail:
9377 return NULL;
9378 }
9379
9380
9381 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9382 PyObject *resultobj = 0;
9383 wxIcon *arg1 = (wxIcon *) 0 ;
9384 int arg2 ;
9385 void *argp1 = 0 ;
9386 int res1 = 0 ;
9387 int val2 ;
9388 int ecode2 = 0 ;
9389 PyObject * obj0 = 0 ;
9390 PyObject * obj1 = 0 ;
9391 char * kwnames[] = {
9392 (char *) "self",(char *) "w", NULL
9393 };
9394
9395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9397 if (!SWIG_IsOK(res1)) {
9398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9399 }
9400 arg1 = reinterpret_cast< wxIcon * >(argp1);
9401 ecode2 = SWIG_AsVal_int(obj1, &val2);
9402 if (!SWIG_IsOK(ecode2)) {
9403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9404 }
9405 arg2 = static_cast< int >(val2);
9406 {
9407 PyThreadState* __tstate = wxPyBeginAllowThreads();
9408 (arg1)->SetWidth(arg2);
9409 wxPyEndAllowThreads(__tstate);
9410 if (PyErr_Occurred()) SWIG_fail;
9411 }
9412 resultobj = SWIG_Py_Void();
9413 return resultobj;
9414 fail:
9415 return NULL;
9416 }
9417
9418
9419 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9420 PyObject *resultobj = 0;
9421 wxIcon *arg1 = (wxIcon *) 0 ;
9422 int arg2 ;
9423 void *argp1 = 0 ;
9424 int res1 = 0 ;
9425 int val2 ;
9426 int ecode2 = 0 ;
9427 PyObject * obj0 = 0 ;
9428 PyObject * obj1 = 0 ;
9429 char * kwnames[] = {
9430 (char *) "self",(char *) "h", NULL
9431 };
9432
9433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9435 if (!SWIG_IsOK(res1)) {
9436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9437 }
9438 arg1 = reinterpret_cast< wxIcon * >(argp1);
9439 ecode2 = SWIG_AsVal_int(obj1, &val2);
9440 if (!SWIG_IsOK(ecode2)) {
9441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9442 }
9443 arg2 = static_cast< int >(val2);
9444 {
9445 PyThreadState* __tstate = wxPyBeginAllowThreads();
9446 (arg1)->SetHeight(arg2);
9447 wxPyEndAllowThreads(__tstate);
9448 if (PyErr_Occurred()) SWIG_fail;
9449 }
9450 resultobj = SWIG_Py_Void();
9451 return resultobj;
9452 fail:
9453 return NULL;
9454 }
9455
9456
9457 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9458 PyObject *resultobj = 0;
9459 wxIcon *arg1 = (wxIcon *) 0 ;
9460 int arg2 ;
9461 void *argp1 = 0 ;
9462 int res1 = 0 ;
9463 int val2 ;
9464 int ecode2 = 0 ;
9465 PyObject * obj0 = 0 ;
9466 PyObject * obj1 = 0 ;
9467 char * kwnames[] = {
9468 (char *) "self",(char *) "d", NULL
9469 };
9470
9471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9473 if (!SWIG_IsOK(res1)) {
9474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9475 }
9476 arg1 = reinterpret_cast< wxIcon * >(argp1);
9477 ecode2 = SWIG_AsVal_int(obj1, &val2);
9478 if (!SWIG_IsOK(ecode2)) {
9479 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9480 }
9481 arg2 = static_cast< int >(val2);
9482 {
9483 PyThreadState* __tstate = wxPyBeginAllowThreads();
9484 (arg1)->SetDepth(arg2);
9485 wxPyEndAllowThreads(__tstate);
9486 if (PyErr_Occurred()) SWIG_fail;
9487 }
9488 resultobj = SWIG_Py_Void();
9489 return resultobj;
9490 fail:
9491 return NULL;
9492 }
9493
9494
9495 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9496 PyObject *resultobj = 0;
9497 wxIcon *arg1 = (wxIcon *) 0 ;
9498 wxBitmap *arg2 = 0 ;
9499 void *argp1 = 0 ;
9500 int res1 = 0 ;
9501 void *argp2 = 0 ;
9502 int res2 = 0 ;
9503 PyObject * obj0 = 0 ;
9504 PyObject * obj1 = 0 ;
9505 char * kwnames[] = {
9506 (char *) "self",(char *) "bmp", NULL
9507 };
9508
9509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9511 if (!SWIG_IsOK(res1)) {
9512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9513 }
9514 arg1 = reinterpret_cast< wxIcon * >(argp1);
9515 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9516 if (!SWIG_IsOK(res2)) {
9517 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9518 }
9519 if (!argp2) {
9520 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9521 }
9522 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9523 {
9524 PyThreadState* __tstate = wxPyBeginAllowThreads();
9525 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9526 wxPyEndAllowThreads(__tstate);
9527 if (PyErr_Occurred()) SWIG_fail;
9528 }
9529 resultobj = SWIG_Py_Void();
9530 return resultobj;
9531 fail:
9532 return NULL;
9533 }
9534
9535
9536 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9537 PyObject *obj;
9538 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9539 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9540 return SWIG_Py_Void();
9541 }
9542
9543 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9544 return SWIG_Python_InitShadowInstance(args);
9545 }
9546
9547 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9548 PyObject *resultobj = 0;
9549 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9550 int arg2 = (int) 0 ;
9551 wxIconLocation *result = 0 ;
9552 bool temp1 = false ;
9553 int val2 ;
9554 int ecode2 = 0 ;
9555 PyObject * obj0 = 0 ;
9556 PyObject * obj1 = 0 ;
9557 char * kwnames[] = {
9558 (char *) "filename",(char *) "num", NULL
9559 };
9560
9561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9562 if (obj0) {
9563 {
9564 arg1 = wxString_in_helper(obj0);
9565 if (arg1 == NULL) SWIG_fail;
9566 temp1 = true;
9567 }
9568 }
9569 if (obj1) {
9570 ecode2 = SWIG_AsVal_int(obj1, &val2);
9571 if (!SWIG_IsOK(ecode2)) {
9572 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9573 }
9574 arg2 = static_cast< int >(val2);
9575 }
9576 {
9577 PyThreadState* __tstate = wxPyBeginAllowThreads();
9578 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9579 wxPyEndAllowThreads(__tstate);
9580 if (PyErr_Occurred()) SWIG_fail;
9581 }
9582 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9583 {
9584 if (temp1)
9585 delete arg1;
9586 }
9587 return resultobj;
9588 fail:
9589 {
9590 if (temp1)
9591 delete arg1;
9592 }
9593 return NULL;
9594 }
9595
9596
9597 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9598 PyObject *resultobj = 0;
9599 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9600 void *argp1 = 0 ;
9601 int res1 = 0 ;
9602 PyObject *swig_obj[1] ;
9603
9604 if (!args) SWIG_fail;
9605 swig_obj[0] = args;
9606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9607 if (!SWIG_IsOK(res1)) {
9608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9609 }
9610 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9611 {
9612 PyThreadState* __tstate = wxPyBeginAllowThreads();
9613 delete arg1;
9614
9615 wxPyEndAllowThreads(__tstate);
9616 if (PyErr_Occurred()) SWIG_fail;
9617 }
9618 resultobj = SWIG_Py_Void();
9619 return resultobj;
9620 fail:
9621 return NULL;
9622 }
9623
9624
9625 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9626 PyObject *resultobj = 0;
9627 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9628 bool result;
9629 void *argp1 = 0 ;
9630 int res1 = 0 ;
9631 PyObject *swig_obj[1] ;
9632
9633 if (!args) SWIG_fail;
9634 swig_obj[0] = args;
9635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9636 if (!SWIG_IsOK(res1)) {
9637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9638 }
9639 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9640 {
9641 PyThreadState* __tstate = wxPyBeginAllowThreads();
9642 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9643 wxPyEndAllowThreads(__tstate);
9644 if (PyErr_Occurred()) SWIG_fail;
9645 }
9646 {
9647 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9648 }
9649 return resultobj;
9650 fail:
9651 return NULL;
9652 }
9653
9654
9655 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9656 PyObject *resultobj = 0;
9657 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9658 wxString *arg2 = 0 ;
9659 void *argp1 = 0 ;
9660 int res1 = 0 ;
9661 bool temp2 = false ;
9662 PyObject * obj0 = 0 ;
9663 PyObject * obj1 = 0 ;
9664 char * kwnames[] = {
9665 (char *) "self",(char *) "filename", NULL
9666 };
9667
9668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9670 if (!SWIG_IsOK(res1)) {
9671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9672 }
9673 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9674 {
9675 arg2 = wxString_in_helper(obj1);
9676 if (arg2 == NULL) SWIG_fail;
9677 temp2 = true;
9678 }
9679 {
9680 PyThreadState* __tstate = wxPyBeginAllowThreads();
9681 (arg1)->SetFileName((wxString const &)*arg2);
9682 wxPyEndAllowThreads(__tstate);
9683 if (PyErr_Occurred()) SWIG_fail;
9684 }
9685 resultobj = SWIG_Py_Void();
9686 {
9687 if (temp2)
9688 delete arg2;
9689 }
9690 return resultobj;
9691 fail:
9692 {
9693 if (temp2)
9694 delete arg2;
9695 }
9696 return NULL;
9697 }
9698
9699
9700 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9701 PyObject *resultobj = 0;
9702 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9703 wxString *result = 0 ;
9704 void *argp1 = 0 ;
9705 int res1 = 0 ;
9706 PyObject *swig_obj[1] ;
9707
9708 if (!args) SWIG_fail;
9709 swig_obj[0] = args;
9710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9711 if (!SWIG_IsOK(res1)) {
9712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9713 }
9714 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9715 {
9716 PyThreadState* __tstate = wxPyBeginAllowThreads();
9717 {
9718 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9719 result = (wxString *) &_result_ref;
9720 }
9721 wxPyEndAllowThreads(__tstate);
9722 if (PyErr_Occurred()) SWIG_fail;
9723 }
9724 {
9725 #if wxUSE_UNICODE
9726 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9727 #else
9728 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9729 #endif
9730 }
9731 return resultobj;
9732 fail:
9733 return NULL;
9734 }
9735
9736
9737 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9738 PyObject *resultobj = 0;
9739 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9740 int arg2 ;
9741 void *argp1 = 0 ;
9742 int res1 = 0 ;
9743 int val2 ;
9744 int ecode2 = 0 ;
9745 PyObject * obj0 = 0 ;
9746 PyObject * obj1 = 0 ;
9747 char * kwnames[] = {
9748 (char *) "self",(char *) "num", NULL
9749 };
9750
9751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9753 if (!SWIG_IsOK(res1)) {
9754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9755 }
9756 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9757 ecode2 = SWIG_AsVal_int(obj1, &val2);
9758 if (!SWIG_IsOK(ecode2)) {
9759 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9760 }
9761 arg2 = static_cast< int >(val2);
9762 {
9763 PyThreadState* __tstate = wxPyBeginAllowThreads();
9764 wxIconLocation_SetIndex(arg1,arg2);
9765 wxPyEndAllowThreads(__tstate);
9766 if (PyErr_Occurred()) SWIG_fail;
9767 }
9768 resultobj = SWIG_Py_Void();
9769 return resultobj;
9770 fail:
9771 return NULL;
9772 }
9773
9774
9775 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9776 PyObject *resultobj = 0;
9777 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9778 int result;
9779 void *argp1 = 0 ;
9780 int res1 = 0 ;
9781 PyObject *swig_obj[1] ;
9782
9783 if (!args) SWIG_fail;
9784 swig_obj[0] = args;
9785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9786 if (!SWIG_IsOK(res1)) {
9787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9788 }
9789 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9790 {
9791 PyThreadState* __tstate = wxPyBeginAllowThreads();
9792 result = (int)wxIconLocation_GetIndex(arg1);
9793 wxPyEndAllowThreads(__tstate);
9794 if (PyErr_Occurred()) SWIG_fail;
9795 }
9796 resultobj = SWIG_From_int(static_cast< int >(result));
9797 return resultobj;
9798 fail:
9799 return NULL;
9800 }
9801
9802
9803 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9804 PyObject *obj;
9805 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9806 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9807 return SWIG_Py_Void();
9808 }
9809
9810 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9811 return SWIG_Python_InitShadowInstance(args);
9812 }
9813
9814 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9815 PyObject *resultobj = 0;
9816 wxIconBundle *result = 0 ;
9817
9818 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9819 {
9820 PyThreadState* __tstate = wxPyBeginAllowThreads();
9821 result = (wxIconBundle *)new wxIconBundle();
9822 wxPyEndAllowThreads(__tstate);
9823 if (PyErr_Occurred()) SWIG_fail;
9824 }
9825 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9826 return resultobj;
9827 fail:
9828 return NULL;
9829 }
9830
9831
9832 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9833 PyObject *resultobj = 0;
9834 wxString *arg1 = 0 ;
9835 long arg2 ;
9836 wxIconBundle *result = 0 ;
9837 bool temp1 = false ;
9838 long val2 ;
9839 int ecode2 = 0 ;
9840 PyObject * obj0 = 0 ;
9841 PyObject * obj1 = 0 ;
9842 char * kwnames[] = {
9843 (char *) "file",(char *) "type", NULL
9844 };
9845
9846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9847 {
9848 arg1 = wxString_in_helper(obj0);
9849 if (arg1 == NULL) SWIG_fail;
9850 temp1 = true;
9851 }
9852 ecode2 = SWIG_AsVal_long(obj1, &val2);
9853 if (!SWIG_IsOK(ecode2)) {
9854 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9855 }
9856 arg2 = static_cast< long >(val2);
9857 {
9858 PyThreadState* __tstate = wxPyBeginAllowThreads();
9859 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9860 wxPyEndAllowThreads(__tstate);
9861 if (PyErr_Occurred()) SWIG_fail;
9862 }
9863 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9864 {
9865 if (temp1)
9866 delete arg1;
9867 }
9868 return resultobj;
9869 fail:
9870 {
9871 if (temp1)
9872 delete arg1;
9873 }
9874 return NULL;
9875 }
9876
9877
9878 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9879 PyObject *resultobj = 0;
9880 wxIcon *arg1 = 0 ;
9881 wxIconBundle *result = 0 ;
9882 void *argp1 = 0 ;
9883 int res1 = 0 ;
9884 PyObject * obj0 = 0 ;
9885 char * kwnames[] = {
9886 (char *) "icon", NULL
9887 };
9888
9889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9890 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9891 if (!SWIG_IsOK(res1)) {
9892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9893 }
9894 if (!argp1) {
9895 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9896 }
9897 arg1 = reinterpret_cast< wxIcon * >(argp1);
9898 {
9899 PyThreadState* __tstate = wxPyBeginAllowThreads();
9900 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9901 wxPyEndAllowThreads(__tstate);
9902 if (PyErr_Occurred()) SWIG_fail;
9903 }
9904 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9905 return resultobj;
9906 fail:
9907 return NULL;
9908 }
9909
9910
9911 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9912 PyObject *resultobj = 0;
9913 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9914 void *argp1 = 0 ;
9915 int res1 = 0 ;
9916 PyObject *swig_obj[1] ;
9917
9918 if (!args) SWIG_fail;
9919 swig_obj[0] = args;
9920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9921 if (!SWIG_IsOK(res1)) {
9922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9923 }
9924 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9925 {
9926 PyThreadState* __tstate = wxPyBeginAllowThreads();
9927 delete arg1;
9928
9929 wxPyEndAllowThreads(__tstate);
9930 if (PyErr_Occurred()) SWIG_fail;
9931 }
9932 resultobj = SWIG_Py_Void();
9933 return resultobj;
9934 fail:
9935 return NULL;
9936 }
9937
9938
9939 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9940 PyObject *resultobj = 0;
9941 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9942 wxIcon *arg2 = 0 ;
9943 void *argp1 = 0 ;
9944 int res1 = 0 ;
9945 void *argp2 = 0 ;
9946 int res2 = 0 ;
9947 PyObject * obj0 = 0 ;
9948 PyObject * obj1 = 0 ;
9949 char * kwnames[] = {
9950 (char *) "self",(char *) "icon", NULL
9951 };
9952
9953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9955 if (!SWIG_IsOK(res1)) {
9956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9957 }
9958 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9959 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9960 if (!SWIG_IsOK(res2)) {
9961 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9962 }
9963 if (!argp2) {
9964 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9965 }
9966 arg2 = reinterpret_cast< wxIcon * >(argp2);
9967 {
9968 PyThreadState* __tstate = wxPyBeginAllowThreads();
9969 (arg1)->AddIcon((wxIcon const &)*arg2);
9970 wxPyEndAllowThreads(__tstate);
9971 if (PyErr_Occurred()) SWIG_fail;
9972 }
9973 resultobj = SWIG_Py_Void();
9974 return resultobj;
9975 fail:
9976 return NULL;
9977 }
9978
9979
9980 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9981 PyObject *resultobj = 0;
9982 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9983 wxString *arg2 = 0 ;
9984 long arg3 ;
9985 void *argp1 = 0 ;
9986 int res1 = 0 ;
9987 bool temp2 = false ;
9988 long val3 ;
9989 int ecode3 = 0 ;
9990 PyObject * obj0 = 0 ;
9991 PyObject * obj1 = 0 ;
9992 PyObject * obj2 = 0 ;
9993 char * kwnames[] = {
9994 (char *) "self",(char *) "file",(char *) "type", NULL
9995 };
9996
9997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9999 if (!SWIG_IsOK(res1)) {
10000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10001 }
10002 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10003 {
10004 arg2 = wxString_in_helper(obj1);
10005 if (arg2 == NULL) SWIG_fail;
10006 temp2 = true;
10007 }
10008 ecode3 = SWIG_AsVal_long(obj2, &val3);
10009 if (!SWIG_IsOK(ecode3)) {
10010 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10011 }
10012 arg3 = static_cast< long >(val3);
10013 {
10014 PyThreadState* __tstate = wxPyBeginAllowThreads();
10015 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10016 wxPyEndAllowThreads(__tstate);
10017 if (PyErr_Occurred()) SWIG_fail;
10018 }
10019 resultobj = SWIG_Py_Void();
10020 {
10021 if (temp2)
10022 delete arg2;
10023 }
10024 return resultobj;
10025 fail:
10026 {
10027 if (temp2)
10028 delete arg2;
10029 }
10030 return NULL;
10031 }
10032
10033
10034 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10035 PyObject *resultobj = 0;
10036 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10037 wxSize *arg2 = 0 ;
10038 wxIcon *result = 0 ;
10039 void *argp1 = 0 ;
10040 int res1 = 0 ;
10041 wxSize temp2 ;
10042 PyObject * obj0 = 0 ;
10043 PyObject * obj1 = 0 ;
10044 char * kwnames[] = {
10045 (char *) "self",(char *) "size", NULL
10046 };
10047
10048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10050 if (!SWIG_IsOK(res1)) {
10051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10052 }
10053 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10054 {
10055 arg2 = &temp2;
10056 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10057 }
10058 {
10059 PyThreadState* __tstate = wxPyBeginAllowThreads();
10060 {
10061 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10062 result = (wxIcon *) &_result_ref;
10063 }
10064 wxPyEndAllowThreads(__tstate);
10065 if (PyErr_Occurred()) SWIG_fail;
10066 }
10067 {
10068 wxIcon* resultptr = new wxIcon(*result);
10069 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10070 }
10071 return resultobj;
10072 fail:
10073 return NULL;
10074 }
10075
10076
10077 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10078 PyObject *obj;
10079 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10080 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10081 return SWIG_Py_Void();
10082 }
10083
10084 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10085 return SWIG_Python_InitShadowInstance(args);
10086 }
10087
10088 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10089 PyObject *resultobj = 0;
10090 wxString *arg1 = 0 ;
10091 long arg2 ;
10092 int arg3 = (int) 0 ;
10093 int arg4 = (int) 0 ;
10094 wxCursor *result = 0 ;
10095 bool temp1 = false ;
10096 long val2 ;
10097 int ecode2 = 0 ;
10098 int val3 ;
10099 int ecode3 = 0 ;
10100 int val4 ;
10101 int ecode4 = 0 ;
10102 PyObject * obj0 = 0 ;
10103 PyObject * obj1 = 0 ;
10104 PyObject * obj2 = 0 ;
10105 PyObject * obj3 = 0 ;
10106 char * kwnames[] = {
10107 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10108 };
10109
10110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10111 {
10112 arg1 = wxString_in_helper(obj0);
10113 if (arg1 == NULL) SWIG_fail;
10114 temp1 = true;
10115 }
10116 ecode2 = SWIG_AsVal_long(obj1, &val2);
10117 if (!SWIG_IsOK(ecode2)) {
10118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10119 }
10120 arg2 = static_cast< long >(val2);
10121 if (obj2) {
10122 ecode3 = SWIG_AsVal_int(obj2, &val3);
10123 if (!SWIG_IsOK(ecode3)) {
10124 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10125 }
10126 arg3 = static_cast< int >(val3);
10127 }
10128 if (obj3) {
10129 ecode4 = SWIG_AsVal_int(obj3, &val4);
10130 if (!SWIG_IsOK(ecode4)) {
10131 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10132 }
10133 arg4 = static_cast< int >(val4);
10134 }
10135 {
10136 if (!wxPyCheckForApp()) SWIG_fail;
10137 PyThreadState* __tstate = wxPyBeginAllowThreads();
10138 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10139 wxPyEndAllowThreads(__tstate);
10140 if (PyErr_Occurred()) SWIG_fail;
10141 }
10142 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10143 {
10144 if (temp1)
10145 delete arg1;
10146 }
10147 return resultobj;
10148 fail:
10149 {
10150 if (temp1)
10151 delete arg1;
10152 }
10153 return NULL;
10154 }
10155
10156
10157 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10158 PyObject *resultobj = 0;
10159 wxCursor *arg1 = (wxCursor *) 0 ;
10160 void *argp1 = 0 ;
10161 int res1 = 0 ;
10162 PyObject *swig_obj[1] ;
10163
10164 if (!args) SWIG_fail;
10165 swig_obj[0] = args;
10166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10167 if (!SWIG_IsOK(res1)) {
10168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10169 }
10170 arg1 = reinterpret_cast< wxCursor * >(argp1);
10171 {
10172 PyThreadState* __tstate = wxPyBeginAllowThreads();
10173 delete arg1;
10174
10175 wxPyEndAllowThreads(__tstate);
10176 if (PyErr_Occurred()) SWIG_fail;
10177 }
10178 resultobj = SWIG_Py_Void();
10179 return resultobj;
10180 fail:
10181 return NULL;
10182 }
10183
10184
10185 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10186 PyObject *resultobj = 0;
10187 int arg1 ;
10188 wxCursor *result = 0 ;
10189 int val1 ;
10190 int ecode1 = 0 ;
10191 PyObject * obj0 = 0 ;
10192 char * kwnames[] = {
10193 (char *) "id", NULL
10194 };
10195
10196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10197 ecode1 = SWIG_AsVal_int(obj0, &val1);
10198 if (!SWIG_IsOK(ecode1)) {
10199 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10200 }
10201 arg1 = static_cast< int >(val1);
10202 {
10203 if (!wxPyCheckForApp()) SWIG_fail;
10204 PyThreadState* __tstate = wxPyBeginAllowThreads();
10205 result = (wxCursor *)new wxCursor(arg1);
10206 wxPyEndAllowThreads(__tstate);
10207 if (PyErr_Occurred()) SWIG_fail;
10208 }
10209 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10210 return resultobj;
10211 fail:
10212 return NULL;
10213 }
10214
10215
10216 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10217 PyObject *resultobj = 0;
10218 wxImage *arg1 = 0 ;
10219 wxCursor *result = 0 ;
10220 void *argp1 = 0 ;
10221 int res1 = 0 ;
10222 PyObject * obj0 = 0 ;
10223 char * kwnames[] = {
10224 (char *) "image", NULL
10225 };
10226
10227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10228 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10229 if (!SWIG_IsOK(res1)) {
10230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10231 }
10232 if (!argp1) {
10233 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10234 }
10235 arg1 = reinterpret_cast< wxImage * >(argp1);
10236 {
10237 if (!wxPyCheckForApp()) SWIG_fail;
10238 PyThreadState* __tstate = wxPyBeginAllowThreads();
10239 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10240 wxPyEndAllowThreads(__tstate);
10241 if (PyErr_Occurred()) SWIG_fail;
10242 }
10243 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10244 return resultobj;
10245 fail:
10246 return NULL;
10247 }
10248
10249
10250 SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10251 PyObject *resultobj = 0;
10252 wxCursor *arg1 = (wxCursor *) 0 ;
10253 bool result;
10254 void *argp1 = 0 ;
10255 int res1 = 0 ;
10256 PyObject *swig_obj[1] ;
10257
10258 if (!args) SWIG_fail;
10259 swig_obj[0] = args;
10260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10261 if (!SWIG_IsOK(res1)) {
10262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
10263 }
10264 arg1 = reinterpret_cast< wxCursor * >(argp1);
10265 {
10266 PyThreadState* __tstate = wxPyBeginAllowThreads();
10267 result = (bool)(arg1)->IsOk();
10268 wxPyEndAllowThreads(__tstate);
10269 if (PyErr_Occurred()) SWIG_fail;
10270 }
10271 {
10272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10273 }
10274 return resultobj;
10275 fail:
10276 return NULL;
10277 }
10278
10279
10280 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10281 PyObject *obj;
10282 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10283 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10284 return SWIG_Py_Void();
10285 }
10286
10287 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10288 return SWIG_Python_InitShadowInstance(args);
10289 }
10290
10291 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10292 PyObject *resultobj = 0;
10293 int arg1 = (int) 0 ;
10294 int arg2 = (int) 0 ;
10295 int arg3 = (int) 0 ;
10296 int arg4 = (int) 0 ;
10297 wxRegion *result = 0 ;
10298 int val1 ;
10299 int ecode1 = 0 ;
10300 int val2 ;
10301 int ecode2 = 0 ;
10302 int val3 ;
10303 int ecode3 = 0 ;
10304 int val4 ;
10305 int ecode4 = 0 ;
10306 PyObject * obj0 = 0 ;
10307 PyObject * obj1 = 0 ;
10308 PyObject * obj2 = 0 ;
10309 PyObject * obj3 = 0 ;
10310 char * kwnames[] = {
10311 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10312 };
10313
10314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10315 if (obj0) {
10316 ecode1 = SWIG_AsVal_int(obj0, &val1);
10317 if (!SWIG_IsOK(ecode1)) {
10318 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10319 }
10320 arg1 = static_cast< int >(val1);
10321 }
10322 if (obj1) {
10323 ecode2 = SWIG_AsVal_int(obj1, &val2);
10324 if (!SWIG_IsOK(ecode2)) {
10325 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10326 }
10327 arg2 = static_cast< int >(val2);
10328 }
10329 if (obj2) {
10330 ecode3 = SWIG_AsVal_int(obj2, &val3);
10331 if (!SWIG_IsOK(ecode3)) {
10332 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10333 }
10334 arg3 = static_cast< int >(val3);
10335 }
10336 if (obj3) {
10337 ecode4 = SWIG_AsVal_int(obj3, &val4);
10338 if (!SWIG_IsOK(ecode4)) {
10339 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10340 }
10341 arg4 = static_cast< int >(val4);
10342 }
10343 {
10344 if (!wxPyCheckForApp()) SWIG_fail;
10345 PyThreadState* __tstate = wxPyBeginAllowThreads();
10346 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10347 wxPyEndAllowThreads(__tstate);
10348 if (PyErr_Occurred()) SWIG_fail;
10349 }
10350 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10351 return resultobj;
10352 fail:
10353 return NULL;
10354 }
10355
10356
10357 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10358 PyObject *resultobj = 0;
10359 wxBitmap *arg1 = 0 ;
10360 wxRegion *result = 0 ;
10361 void *argp1 = 0 ;
10362 int res1 = 0 ;
10363 PyObject * obj0 = 0 ;
10364 char * kwnames[] = {
10365 (char *) "bmp", NULL
10366 };
10367
10368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10369 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10370 if (!SWIG_IsOK(res1)) {
10371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10372 }
10373 if (!argp1) {
10374 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10375 }
10376 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10377 {
10378 if (!wxPyCheckForApp()) SWIG_fail;
10379 PyThreadState* __tstate = wxPyBeginAllowThreads();
10380 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10381 wxPyEndAllowThreads(__tstate);
10382 if (PyErr_Occurred()) SWIG_fail;
10383 }
10384 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10385 return resultobj;
10386 fail:
10387 return NULL;
10388 }
10389
10390
10391 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10392 PyObject *resultobj = 0;
10393 wxBitmap *arg1 = 0 ;
10394 wxColour *arg2 = 0 ;
10395 int arg3 = (int) 0 ;
10396 wxRegion *result = 0 ;
10397 void *argp1 = 0 ;
10398 int res1 = 0 ;
10399 wxColour temp2 ;
10400 int val3 ;
10401 int ecode3 = 0 ;
10402 PyObject * obj0 = 0 ;
10403 PyObject * obj1 = 0 ;
10404 PyObject * obj2 = 0 ;
10405 char * kwnames[] = {
10406 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10407 };
10408
10409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10410 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10411 if (!SWIG_IsOK(res1)) {
10412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10413 }
10414 if (!argp1) {
10415 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10416 }
10417 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10418 {
10419 arg2 = &temp2;
10420 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10421 }
10422 if (obj2) {
10423 ecode3 = SWIG_AsVal_int(obj2, &val3);
10424 if (!SWIG_IsOK(ecode3)) {
10425 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10426 }
10427 arg3 = static_cast< int >(val3);
10428 }
10429 {
10430 if (!wxPyCheckForApp()) SWIG_fail;
10431 PyThreadState* __tstate = wxPyBeginAllowThreads();
10432 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10433 wxPyEndAllowThreads(__tstate);
10434 if (PyErr_Occurred()) SWIG_fail;
10435 }
10436 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10437 return resultobj;
10438 fail:
10439 return NULL;
10440 }
10441
10442
10443 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10444 PyObject *resultobj = 0;
10445 int arg1 ;
10446 wxPoint *arg2 = (wxPoint *) 0 ;
10447 int arg3 = (int) wxWINDING_RULE ;
10448 wxRegion *result = 0 ;
10449 int val3 ;
10450 int ecode3 = 0 ;
10451 PyObject * obj0 = 0 ;
10452 PyObject * obj1 = 0 ;
10453 char * kwnames[] = {
10454 (char *) "points",(char *) "fillStyle", NULL
10455 };
10456
10457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10458 {
10459 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10460 if (arg2 == NULL) SWIG_fail;
10461 }
10462 if (obj1) {
10463 ecode3 = SWIG_AsVal_int(obj1, &val3);
10464 if (!SWIG_IsOK(ecode3)) {
10465 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10466 }
10467 arg3 = static_cast< int >(val3);
10468 }
10469 {
10470 if (!wxPyCheckForApp()) SWIG_fail;
10471 PyThreadState* __tstate = wxPyBeginAllowThreads();
10472 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10473 wxPyEndAllowThreads(__tstate);
10474 if (PyErr_Occurred()) SWIG_fail;
10475 }
10476 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10477 {
10478 if (arg2) delete [] arg2;
10479 }
10480 return resultobj;
10481 fail:
10482 {
10483 if (arg2) delete [] arg2;
10484 }
10485 return NULL;
10486 }
10487
10488
10489 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10490 PyObject *resultobj = 0;
10491 wxRegion *arg1 = (wxRegion *) 0 ;
10492 void *argp1 = 0 ;
10493 int res1 = 0 ;
10494 PyObject *swig_obj[1] ;
10495
10496 if (!args) SWIG_fail;
10497 swig_obj[0] = args;
10498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10499 if (!SWIG_IsOK(res1)) {
10500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10501 }
10502 arg1 = reinterpret_cast< wxRegion * >(argp1);
10503 {
10504 PyThreadState* __tstate = wxPyBeginAllowThreads();
10505 delete arg1;
10506
10507 wxPyEndAllowThreads(__tstate);
10508 if (PyErr_Occurred()) SWIG_fail;
10509 }
10510 resultobj = SWIG_Py_Void();
10511 return resultobj;
10512 fail:
10513 return NULL;
10514 }
10515
10516
10517 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10518 PyObject *resultobj = 0;
10519 wxRegion *arg1 = (wxRegion *) 0 ;
10520 void *argp1 = 0 ;
10521 int res1 = 0 ;
10522 PyObject *swig_obj[1] ;
10523
10524 if (!args) SWIG_fail;
10525 swig_obj[0] = args;
10526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10527 if (!SWIG_IsOK(res1)) {
10528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10529 }
10530 arg1 = reinterpret_cast< wxRegion * >(argp1);
10531 {
10532 PyThreadState* __tstate = wxPyBeginAllowThreads();
10533 (arg1)->Clear();
10534 wxPyEndAllowThreads(__tstate);
10535 if (PyErr_Occurred()) SWIG_fail;
10536 }
10537 resultobj = SWIG_Py_Void();
10538 return resultobj;
10539 fail:
10540 return NULL;
10541 }
10542
10543
10544 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10545 PyObject *resultobj = 0;
10546 wxRegion *arg1 = (wxRegion *) 0 ;
10547 int arg2 ;
10548 int arg3 ;
10549 bool result;
10550 void *argp1 = 0 ;
10551 int res1 = 0 ;
10552 int val2 ;
10553 int ecode2 = 0 ;
10554 int val3 ;
10555 int ecode3 = 0 ;
10556 PyObject * obj0 = 0 ;
10557 PyObject * obj1 = 0 ;
10558 PyObject * obj2 = 0 ;
10559 char * kwnames[] = {
10560 (char *) "self",(char *) "x",(char *) "y", NULL
10561 };
10562
10563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10565 if (!SWIG_IsOK(res1)) {
10566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10567 }
10568 arg1 = reinterpret_cast< wxRegion * >(argp1);
10569 ecode2 = SWIG_AsVal_int(obj1, &val2);
10570 if (!SWIG_IsOK(ecode2)) {
10571 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10572 }
10573 arg2 = static_cast< int >(val2);
10574 ecode3 = SWIG_AsVal_int(obj2, &val3);
10575 if (!SWIG_IsOK(ecode3)) {
10576 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10577 }
10578 arg3 = static_cast< int >(val3);
10579 {
10580 PyThreadState* __tstate = wxPyBeginAllowThreads();
10581 result = (bool)(arg1)->Offset(arg2,arg3);
10582 wxPyEndAllowThreads(__tstate);
10583 if (PyErr_Occurred()) SWIG_fail;
10584 }
10585 {
10586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10587 }
10588 return resultobj;
10589 fail:
10590 return NULL;
10591 }
10592
10593
10594 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10595 PyObject *resultobj = 0;
10596 wxRegion *arg1 = (wxRegion *) 0 ;
10597 int arg2 ;
10598 int arg3 ;
10599 wxRegionContain result;
10600 void *argp1 = 0 ;
10601 int res1 = 0 ;
10602 int val2 ;
10603 int ecode2 = 0 ;
10604 int val3 ;
10605 int ecode3 = 0 ;
10606 PyObject * obj0 = 0 ;
10607 PyObject * obj1 = 0 ;
10608 PyObject * obj2 = 0 ;
10609 char * kwnames[] = {
10610 (char *) "self",(char *) "x",(char *) "y", NULL
10611 };
10612
10613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10615 if (!SWIG_IsOK(res1)) {
10616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10617 }
10618 arg1 = reinterpret_cast< wxRegion * >(argp1);
10619 ecode2 = SWIG_AsVal_int(obj1, &val2);
10620 if (!SWIG_IsOK(ecode2)) {
10621 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10622 }
10623 arg2 = static_cast< int >(val2);
10624 ecode3 = SWIG_AsVal_int(obj2, &val3);
10625 if (!SWIG_IsOK(ecode3)) {
10626 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10627 }
10628 arg3 = static_cast< int >(val3);
10629 {
10630 PyThreadState* __tstate = wxPyBeginAllowThreads();
10631 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10632 wxPyEndAllowThreads(__tstate);
10633 if (PyErr_Occurred()) SWIG_fail;
10634 }
10635 resultobj = SWIG_From_int(static_cast< int >(result));
10636 return resultobj;
10637 fail:
10638 return NULL;
10639 }
10640
10641
10642 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10643 PyObject *resultobj = 0;
10644 wxRegion *arg1 = (wxRegion *) 0 ;
10645 wxPoint *arg2 = 0 ;
10646 wxRegionContain result;
10647 void *argp1 = 0 ;
10648 int res1 = 0 ;
10649 wxPoint temp2 ;
10650 PyObject * obj0 = 0 ;
10651 PyObject * obj1 = 0 ;
10652 char * kwnames[] = {
10653 (char *) "self",(char *) "pt", NULL
10654 };
10655
10656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10658 if (!SWIG_IsOK(res1)) {
10659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10660 }
10661 arg1 = reinterpret_cast< wxRegion * >(argp1);
10662 {
10663 arg2 = &temp2;
10664 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10665 }
10666 {
10667 PyThreadState* __tstate = wxPyBeginAllowThreads();
10668 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10669 wxPyEndAllowThreads(__tstate);
10670 if (PyErr_Occurred()) SWIG_fail;
10671 }
10672 resultobj = SWIG_From_int(static_cast< int >(result));
10673 return resultobj;
10674 fail:
10675 return NULL;
10676 }
10677
10678
10679 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10680 PyObject *resultobj = 0;
10681 wxRegion *arg1 = (wxRegion *) 0 ;
10682 wxRect *arg2 = 0 ;
10683 wxRegionContain result;
10684 void *argp1 = 0 ;
10685 int res1 = 0 ;
10686 wxRect temp2 ;
10687 PyObject * obj0 = 0 ;
10688 PyObject * obj1 = 0 ;
10689 char * kwnames[] = {
10690 (char *) "self",(char *) "rect", NULL
10691 };
10692
10693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10695 if (!SWIG_IsOK(res1)) {
10696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10697 }
10698 arg1 = reinterpret_cast< wxRegion * >(argp1);
10699 {
10700 arg2 = &temp2;
10701 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10702 }
10703 {
10704 PyThreadState* __tstate = wxPyBeginAllowThreads();
10705 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10706 wxPyEndAllowThreads(__tstate);
10707 if (PyErr_Occurred()) SWIG_fail;
10708 }
10709 resultobj = SWIG_From_int(static_cast< int >(result));
10710 return resultobj;
10711 fail:
10712 return NULL;
10713 }
10714
10715
10716 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10717 PyObject *resultobj = 0;
10718 wxRegion *arg1 = (wxRegion *) 0 ;
10719 int arg2 ;
10720 int arg3 ;
10721 int arg4 ;
10722 int arg5 ;
10723 wxRegionContain result;
10724 void *argp1 = 0 ;
10725 int res1 = 0 ;
10726 int val2 ;
10727 int ecode2 = 0 ;
10728 int val3 ;
10729 int ecode3 = 0 ;
10730 int val4 ;
10731 int ecode4 = 0 ;
10732 int val5 ;
10733 int ecode5 = 0 ;
10734 PyObject * obj0 = 0 ;
10735 PyObject * obj1 = 0 ;
10736 PyObject * obj2 = 0 ;
10737 PyObject * obj3 = 0 ;
10738 PyObject * obj4 = 0 ;
10739 char * kwnames[] = {
10740 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10741 };
10742
10743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10745 if (!SWIG_IsOK(res1)) {
10746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10747 }
10748 arg1 = reinterpret_cast< wxRegion * >(argp1);
10749 ecode2 = SWIG_AsVal_int(obj1, &val2);
10750 if (!SWIG_IsOK(ecode2)) {
10751 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10752 }
10753 arg2 = static_cast< int >(val2);
10754 ecode3 = SWIG_AsVal_int(obj2, &val3);
10755 if (!SWIG_IsOK(ecode3)) {
10756 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10757 }
10758 arg3 = static_cast< int >(val3);
10759 ecode4 = SWIG_AsVal_int(obj3, &val4);
10760 if (!SWIG_IsOK(ecode4)) {
10761 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10762 }
10763 arg4 = static_cast< int >(val4);
10764 ecode5 = SWIG_AsVal_int(obj4, &val5);
10765 if (!SWIG_IsOK(ecode5)) {
10766 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10767 }
10768 arg5 = static_cast< int >(val5);
10769 {
10770 PyThreadState* __tstate = wxPyBeginAllowThreads();
10771 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10772 wxPyEndAllowThreads(__tstate);
10773 if (PyErr_Occurred()) SWIG_fail;
10774 }
10775 resultobj = SWIG_From_int(static_cast< int >(result));
10776 return resultobj;
10777 fail:
10778 return NULL;
10779 }
10780
10781
10782 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10783 PyObject *resultobj = 0;
10784 wxRegion *arg1 = (wxRegion *) 0 ;
10785 wxRect result;
10786 void *argp1 = 0 ;
10787 int res1 = 0 ;
10788 PyObject *swig_obj[1] ;
10789
10790 if (!args) SWIG_fail;
10791 swig_obj[0] = args;
10792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10793 if (!SWIG_IsOK(res1)) {
10794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10795 }
10796 arg1 = reinterpret_cast< wxRegion * >(argp1);
10797 {
10798 PyThreadState* __tstate = wxPyBeginAllowThreads();
10799 result = (arg1)->GetBox();
10800 wxPyEndAllowThreads(__tstate);
10801 if (PyErr_Occurred()) SWIG_fail;
10802 }
10803 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10804 return resultobj;
10805 fail:
10806 return NULL;
10807 }
10808
10809
10810 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10811 PyObject *resultobj = 0;
10812 wxRegion *arg1 = (wxRegion *) 0 ;
10813 int arg2 ;
10814 int arg3 ;
10815 int arg4 ;
10816 int arg5 ;
10817 bool result;
10818 void *argp1 = 0 ;
10819 int res1 = 0 ;
10820 int val2 ;
10821 int ecode2 = 0 ;
10822 int val3 ;
10823 int ecode3 = 0 ;
10824 int val4 ;
10825 int ecode4 = 0 ;
10826 int val5 ;
10827 int ecode5 = 0 ;
10828 PyObject * obj0 = 0 ;
10829 PyObject * obj1 = 0 ;
10830 PyObject * obj2 = 0 ;
10831 PyObject * obj3 = 0 ;
10832 PyObject * obj4 = 0 ;
10833 char * kwnames[] = {
10834 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10835 };
10836
10837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10839 if (!SWIG_IsOK(res1)) {
10840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10841 }
10842 arg1 = reinterpret_cast< wxRegion * >(argp1);
10843 ecode2 = SWIG_AsVal_int(obj1, &val2);
10844 if (!SWIG_IsOK(ecode2)) {
10845 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10846 }
10847 arg2 = static_cast< int >(val2);
10848 ecode3 = SWIG_AsVal_int(obj2, &val3);
10849 if (!SWIG_IsOK(ecode3)) {
10850 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10851 }
10852 arg3 = static_cast< int >(val3);
10853 ecode4 = SWIG_AsVal_int(obj3, &val4);
10854 if (!SWIG_IsOK(ecode4)) {
10855 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10856 }
10857 arg4 = static_cast< int >(val4);
10858 ecode5 = SWIG_AsVal_int(obj4, &val5);
10859 if (!SWIG_IsOK(ecode5)) {
10860 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10861 }
10862 arg5 = static_cast< int >(val5);
10863 {
10864 PyThreadState* __tstate = wxPyBeginAllowThreads();
10865 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10866 wxPyEndAllowThreads(__tstate);
10867 if (PyErr_Occurred()) SWIG_fail;
10868 }
10869 {
10870 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10871 }
10872 return resultobj;
10873 fail:
10874 return NULL;
10875 }
10876
10877
10878 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10879 PyObject *resultobj = 0;
10880 wxRegion *arg1 = (wxRegion *) 0 ;
10881 wxRect *arg2 = 0 ;
10882 bool result;
10883 void *argp1 = 0 ;
10884 int res1 = 0 ;
10885 wxRect temp2 ;
10886 PyObject * obj0 = 0 ;
10887 PyObject * obj1 = 0 ;
10888 char * kwnames[] = {
10889 (char *) "self",(char *) "rect", NULL
10890 };
10891
10892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10894 if (!SWIG_IsOK(res1)) {
10895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10896 }
10897 arg1 = reinterpret_cast< wxRegion * >(argp1);
10898 {
10899 arg2 = &temp2;
10900 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10901 }
10902 {
10903 PyThreadState* __tstate = wxPyBeginAllowThreads();
10904 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10905 wxPyEndAllowThreads(__tstate);
10906 if (PyErr_Occurred()) SWIG_fail;
10907 }
10908 {
10909 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10910 }
10911 return resultobj;
10912 fail:
10913 return NULL;
10914 }
10915
10916
10917 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10918 PyObject *resultobj = 0;
10919 wxRegion *arg1 = (wxRegion *) 0 ;
10920 wxRegion *arg2 = 0 ;
10921 bool result;
10922 void *argp1 = 0 ;
10923 int res1 = 0 ;
10924 void *argp2 = 0 ;
10925 int res2 = 0 ;
10926 PyObject * obj0 = 0 ;
10927 PyObject * obj1 = 0 ;
10928 char * kwnames[] = {
10929 (char *) "self",(char *) "region", NULL
10930 };
10931
10932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10934 if (!SWIG_IsOK(res1)) {
10935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10936 }
10937 arg1 = reinterpret_cast< wxRegion * >(argp1);
10938 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10939 if (!SWIG_IsOK(res2)) {
10940 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10941 }
10942 if (!argp2) {
10943 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10944 }
10945 arg2 = reinterpret_cast< wxRegion * >(argp2);
10946 {
10947 PyThreadState* __tstate = wxPyBeginAllowThreads();
10948 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10949 wxPyEndAllowThreads(__tstate);
10950 if (PyErr_Occurred()) SWIG_fail;
10951 }
10952 {
10953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10954 }
10955 return resultobj;
10956 fail:
10957 return NULL;
10958 }
10959
10960
10961 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10962 PyObject *resultobj = 0;
10963 wxRegion *arg1 = (wxRegion *) 0 ;
10964 bool result;
10965 void *argp1 = 0 ;
10966 int res1 = 0 ;
10967 PyObject *swig_obj[1] ;
10968
10969 if (!args) SWIG_fail;
10970 swig_obj[0] = args;
10971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10972 if (!SWIG_IsOK(res1)) {
10973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10974 }
10975 arg1 = reinterpret_cast< wxRegion * >(argp1);
10976 {
10977 PyThreadState* __tstate = wxPyBeginAllowThreads();
10978 result = (bool)(arg1)->IsEmpty();
10979 wxPyEndAllowThreads(__tstate);
10980 if (PyErr_Occurred()) SWIG_fail;
10981 }
10982 {
10983 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10984 }
10985 return resultobj;
10986 fail:
10987 return NULL;
10988 }
10989
10990
10991 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10992 PyObject *resultobj = 0;
10993 wxRegion *arg1 = (wxRegion *) 0 ;
10994 wxRegion *arg2 = 0 ;
10995 bool result;
10996 void *argp1 = 0 ;
10997 int res1 = 0 ;
10998 void *argp2 = 0 ;
10999 int res2 = 0 ;
11000 PyObject * obj0 = 0 ;
11001 PyObject * obj1 = 0 ;
11002 char * kwnames[] = {
11003 (char *) "self",(char *) "region", NULL
11004 };
11005
11006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11008 if (!SWIG_IsOK(res1)) {
11009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11010 }
11011 arg1 = reinterpret_cast< wxRegion * >(argp1);
11012 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11013 if (!SWIG_IsOK(res2)) {
11014 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11015 }
11016 if (!argp2) {
11017 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11018 }
11019 arg2 = reinterpret_cast< wxRegion * >(argp2);
11020 {
11021 PyThreadState* __tstate = wxPyBeginAllowThreads();
11022 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11023 wxPyEndAllowThreads(__tstate);
11024 if (PyErr_Occurred()) SWIG_fail;
11025 }
11026 {
11027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11028 }
11029 return resultobj;
11030 fail:
11031 return NULL;
11032 }
11033
11034
11035 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11036 PyObject *resultobj = 0;
11037 wxRegion *arg1 = (wxRegion *) 0 ;
11038 int arg2 ;
11039 int arg3 ;
11040 int arg4 ;
11041 int arg5 ;
11042 bool result;
11043 void *argp1 = 0 ;
11044 int res1 = 0 ;
11045 int val2 ;
11046 int ecode2 = 0 ;
11047 int val3 ;
11048 int ecode3 = 0 ;
11049 int val4 ;
11050 int ecode4 = 0 ;
11051 int val5 ;
11052 int ecode5 = 0 ;
11053 PyObject * obj0 = 0 ;
11054 PyObject * obj1 = 0 ;
11055 PyObject * obj2 = 0 ;
11056 PyObject * obj3 = 0 ;
11057 PyObject * obj4 = 0 ;
11058 char * kwnames[] = {
11059 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11060 };
11061
11062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11064 if (!SWIG_IsOK(res1)) {
11065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11066 }
11067 arg1 = reinterpret_cast< wxRegion * >(argp1);
11068 ecode2 = SWIG_AsVal_int(obj1, &val2);
11069 if (!SWIG_IsOK(ecode2)) {
11070 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11071 }
11072 arg2 = static_cast< int >(val2);
11073 ecode3 = SWIG_AsVal_int(obj2, &val3);
11074 if (!SWIG_IsOK(ecode3)) {
11075 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11076 }
11077 arg3 = static_cast< int >(val3);
11078 ecode4 = SWIG_AsVal_int(obj3, &val4);
11079 if (!SWIG_IsOK(ecode4)) {
11080 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11081 }
11082 arg4 = static_cast< int >(val4);
11083 ecode5 = SWIG_AsVal_int(obj4, &val5);
11084 if (!SWIG_IsOK(ecode5)) {
11085 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11086 }
11087 arg5 = static_cast< int >(val5);
11088 {
11089 PyThreadState* __tstate = wxPyBeginAllowThreads();
11090 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11091 wxPyEndAllowThreads(__tstate);
11092 if (PyErr_Occurred()) SWIG_fail;
11093 }
11094 {
11095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11096 }
11097 return resultobj;
11098 fail:
11099 return NULL;
11100 }
11101
11102
11103 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11104 PyObject *resultobj = 0;
11105 wxRegion *arg1 = (wxRegion *) 0 ;
11106 wxRect *arg2 = 0 ;
11107 bool result;
11108 void *argp1 = 0 ;
11109 int res1 = 0 ;
11110 wxRect temp2 ;
11111 PyObject * obj0 = 0 ;
11112 PyObject * obj1 = 0 ;
11113 char * kwnames[] = {
11114 (char *) "self",(char *) "rect", NULL
11115 };
11116
11117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11119 if (!SWIG_IsOK(res1)) {
11120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11121 }
11122 arg1 = reinterpret_cast< wxRegion * >(argp1);
11123 {
11124 arg2 = &temp2;
11125 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11126 }
11127 {
11128 PyThreadState* __tstate = wxPyBeginAllowThreads();
11129 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11130 wxPyEndAllowThreads(__tstate);
11131 if (PyErr_Occurred()) SWIG_fail;
11132 }
11133 {
11134 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11135 }
11136 return resultobj;
11137 fail:
11138 return NULL;
11139 }
11140
11141
11142 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11143 PyObject *resultobj = 0;
11144 wxRegion *arg1 = (wxRegion *) 0 ;
11145 wxRegion *arg2 = 0 ;
11146 bool result;
11147 void *argp1 = 0 ;
11148 int res1 = 0 ;
11149 void *argp2 = 0 ;
11150 int res2 = 0 ;
11151 PyObject * obj0 = 0 ;
11152 PyObject * obj1 = 0 ;
11153 char * kwnames[] = {
11154 (char *) "self",(char *) "region", NULL
11155 };
11156
11157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11159 if (!SWIG_IsOK(res1)) {
11160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11161 }
11162 arg1 = reinterpret_cast< wxRegion * >(argp1);
11163 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11164 if (!SWIG_IsOK(res2)) {
11165 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11166 }
11167 if (!argp2) {
11168 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11169 }
11170 arg2 = reinterpret_cast< wxRegion * >(argp2);
11171 {
11172 PyThreadState* __tstate = wxPyBeginAllowThreads();
11173 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11174 wxPyEndAllowThreads(__tstate);
11175 if (PyErr_Occurred()) SWIG_fail;
11176 }
11177 {
11178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11179 }
11180 return resultobj;
11181 fail:
11182 return NULL;
11183 }
11184
11185
11186 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11187 PyObject *resultobj = 0;
11188 wxRegion *arg1 = (wxRegion *) 0 ;
11189 int arg2 ;
11190 int arg3 ;
11191 int arg4 ;
11192 int arg5 ;
11193 bool result;
11194 void *argp1 = 0 ;
11195 int res1 = 0 ;
11196 int val2 ;
11197 int ecode2 = 0 ;
11198 int val3 ;
11199 int ecode3 = 0 ;
11200 int val4 ;
11201 int ecode4 = 0 ;
11202 int val5 ;
11203 int ecode5 = 0 ;
11204 PyObject * obj0 = 0 ;
11205 PyObject * obj1 = 0 ;
11206 PyObject * obj2 = 0 ;
11207 PyObject * obj3 = 0 ;
11208 PyObject * obj4 = 0 ;
11209 char * kwnames[] = {
11210 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11211 };
11212
11213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11215 if (!SWIG_IsOK(res1)) {
11216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11217 }
11218 arg1 = reinterpret_cast< wxRegion * >(argp1);
11219 ecode2 = SWIG_AsVal_int(obj1, &val2);
11220 if (!SWIG_IsOK(ecode2)) {
11221 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11222 }
11223 arg2 = static_cast< int >(val2);
11224 ecode3 = SWIG_AsVal_int(obj2, &val3);
11225 if (!SWIG_IsOK(ecode3)) {
11226 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11227 }
11228 arg3 = static_cast< int >(val3);
11229 ecode4 = SWIG_AsVal_int(obj3, &val4);
11230 if (!SWIG_IsOK(ecode4)) {
11231 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11232 }
11233 arg4 = static_cast< int >(val4);
11234 ecode5 = SWIG_AsVal_int(obj4, &val5);
11235 if (!SWIG_IsOK(ecode5)) {
11236 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11237 }
11238 arg5 = static_cast< int >(val5);
11239 {
11240 PyThreadState* __tstate = wxPyBeginAllowThreads();
11241 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11242 wxPyEndAllowThreads(__tstate);
11243 if (PyErr_Occurred()) SWIG_fail;
11244 }
11245 {
11246 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11247 }
11248 return resultobj;
11249 fail:
11250 return NULL;
11251 }
11252
11253
11254 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11255 PyObject *resultobj = 0;
11256 wxRegion *arg1 = (wxRegion *) 0 ;
11257 wxRect *arg2 = 0 ;
11258 bool result;
11259 void *argp1 = 0 ;
11260 int res1 = 0 ;
11261 wxRect temp2 ;
11262 PyObject * obj0 = 0 ;
11263 PyObject * obj1 = 0 ;
11264 char * kwnames[] = {
11265 (char *) "self",(char *) "rect", NULL
11266 };
11267
11268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11270 if (!SWIG_IsOK(res1)) {
11271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11272 }
11273 arg1 = reinterpret_cast< wxRegion * >(argp1);
11274 {
11275 arg2 = &temp2;
11276 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11277 }
11278 {
11279 PyThreadState* __tstate = wxPyBeginAllowThreads();
11280 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11281 wxPyEndAllowThreads(__tstate);
11282 if (PyErr_Occurred()) SWIG_fail;
11283 }
11284 {
11285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11286 }
11287 return resultobj;
11288 fail:
11289 return NULL;
11290 }
11291
11292
11293 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11294 PyObject *resultobj = 0;
11295 wxRegion *arg1 = (wxRegion *) 0 ;
11296 wxRegion *arg2 = 0 ;
11297 bool result;
11298 void *argp1 = 0 ;
11299 int res1 = 0 ;
11300 void *argp2 = 0 ;
11301 int res2 = 0 ;
11302 PyObject * obj0 = 0 ;
11303 PyObject * obj1 = 0 ;
11304 char * kwnames[] = {
11305 (char *) "self",(char *) "region", NULL
11306 };
11307
11308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11310 if (!SWIG_IsOK(res1)) {
11311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11312 }
11313 arg1 = reinterpret_cast< wxRegion * >(argp1);
11314 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11315 if (!SWIG_IsOK(res2)) {
11316 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11317 }
11318 if (!argp2) {
11319 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11320 }
11321 arg2 = reinterpret_cast< wxRegion * >(argp2);
11322 {
11323 PyThreadState* __tstate = wxPyBeginAllowThreads();
11324 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11325 wxPyEndAllowThreads(__tstate);
11326 if (PyErr_Occurred()) SWIG_fail;
11327 }
11328 {
11329 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11330 }
11331 return resultobj;
11332 fail:
11333 return NULL;
11334 }
11335
11336
11337 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11338 PyObject *resultobj = 0;
11339 wxRegion *arg1 = (wxRegion *) 0 ;
11340 int arg2 ;
11341 int arg3 ;
11342 int arg4 ;
11343 int arg5 ;
11344 bool result;
11345 void *argp1 = 0 ;
11346 int res1 = 0 ;
11347 int val2 ;
11348 int ecode2 = 0 ;
11349 int val3 ;
11350 int ecode3 = 0 ;
11351 int val4 ;
11352 int ecode4 = 0 ;
11353 int val5 ;
11354 int ecode5 = 0 ;
11355 PyObject * obj0 = 0 ;
11356 PyObject * obj1 = 0 ;
11357 PyObject * obj2 = 0 ;
11358 PyObject * obj3 = 0 ;
11359 PyObject * obj4 = 0 ;
11360 char * kwnames[] = {
11361 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11362 };
11363
11364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11366 if (!SWIG_IsOK(res1)) {
11367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11368 }
11369 arg1 = reinterpret_cast< wxRegion * >(argp1);
11370 ecode2 = SWIG_AsVal_int(obj1, &val2);
11371 if (!SWIG_IsOK(ecode2)) {
11372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11373 }
11374 arg2 = static_cast< int >(val2);
11375 ecode3 = SWIG_AsVal_int(obj2, &val3);
11376 if (!SWIG_IsOK(ecode3)) {
11377 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11378 }
11379 arg3 = static_cast< int >(val3);
11380 ecode4 = SWIG_AsVal_int(obj3, &val4);
11381 if (!SWIG_IsOK(ecode4)) {
11382 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11383 }
11384 arg4 = static_cast< int >(val4);
11385 ecode5 = SWIG_AsVal_int(obj4, &val5);
11386 if (!SWIG_IsOK(ecode5)) {
11387 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11388 }
11389 arg5 = static_cast< int >(val5);
11390 {
11391 PyThreadState* __tstate = wxPyBeginAllowThreads();
11392 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11393 wxPyEndAllowThreads(__tstate);
11394 if (PyErr_Occurred()) SWIG_fail;
11395 }
11396 {
11397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11398 }
11399 return resultobj;
11400 fail:
11401 return NULL;
11402 }
11403
11404
11405 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11406 PyObject *resultobj = 0;
11407 wxRegion *arg1 = (wxRegion *) 0 ;
11408 wxRect *arg2 = 0 ;
11409 bool result;
11410 void *argp1 = 0 ;
11411 int res1 = 0 ;
11412 wxRect temp2 ;
11413 PyObject * obj0 = 0 ;
11414 PyObject * obj1 = 0 ;
11415 char * kwnames[] = {
11416 (char *) "self",(char *) "rect", NULL
11417 };
11418
11419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11421 if (!SWIG_IsOK(res1)) {
11422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11423 }
11424 arg1 = reinterpret_cast< wxRegion * >(argp1);
11425 {
11426 arg2 = &temp2;
11427 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11428 }
11429 {
11430 PyThreadState* __tstate = wxPyBeginAllowThreads();
11431 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11432 wxPyEndAllowThreads(__tstate);
11433 if (PyErr_Occurred()) SWIG_fail;
11434 }
11435 {
11436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11437 }
11438 return resultobj;
11439 fail:
11440 return NULL;
11441 }
11442
11443
11444 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11445 PyObject *resultobj = 0;
11446 wxRegion *arg1 = (wxRegion *) 0 ;
11447 wxRegion *arg2 = 0 ;
11448 bool result;
11449 void *argp1 = 0 ;
11450 int res1 = 0 ;
11451 void *argp2 = 0 ;
11452 int res2 = 0 ;
11453 PyObject * obj0 = 0 ;
11454 PyObject * obj1 = 0 ;
11455 char * kwnames[] = {
11456 (char *) "self",(char *) "region", NULL
11457 };
11458
11459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11461 if (!SWIG_IsOK(res1)) {
11462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11463 }
11464 arg1 = reinterpret_cast< wxRegion * >(argp1);
11465 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11466 if (!SWIG_IsOK(res2)) {
11467 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11468 }
11469 if (!argp2) {
11470 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11471 }
11472 arg2 = reinterpret_cast< wxRegion * >(argp2);
11473 {
11474 PyThreadState* __tstate = wxPyBeginAllowThreads();
11475 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11476 wxPyEndAllowThreads(__tstate);
11477 if (PyErr_Occurred()) SWIG_fail;
11478 }
11479 {
11480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11481 }
11482 return resultobj;
11483 fail:
11484 return NULL;
11485 }
11486
11487
11488 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11489 PyObject *resultobj = 0;
11490 wxRegion *arg1 = (wxRegion *) 0 ;
11491 SwigValueWrapper<wxBitmap > result;
11492 void *argp1 = 0 ;
11493 int res1 = 0 ;
11494 PyObject *swig_obj[1] ;
11495
11496 if (!args) SWIG_fail;
11497 swig_obj[0] = args;
11498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11499 if (!SWIG_IsOK(res1)) {
11500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11501 }
11502 arg1 = reinterpret_cast< wxRegion * >(argp1);
11503 {
11504 PyThreadState* __tstate = wxPyBeginAllowThreads();
11505 result = (arg1)->ConvertToBitmap();
11506 wxPyEndAllowThreads(__tstate);
11507 if (PyErr_Occurred()) SWIG_fail;
11508 }
11509 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11510 return resultobj;
11511 fail:
11512 return NULL;
11513 }
11514
11515
11516 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11517 PyObject *resultobj = 0;
11518 wxRegion *arg1 = (wxRegion *) 0 ;
11519 wxBitmap *arg2 = 0 ;
11520 bool result;
11521 void *argp1 = 0 ;
11522 int res1 = 0 ;
11523 void *argp2 = 0 ;
11524 int res2 = 0 ;
11525 PyObject * obj0 = 0 ;
11526 PyObject * obj1 = 0 ;
11527 char * kwnames[] = {
11528 (char *) "self",(char *) "bmp", NULL
11529 };
11530
11531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11533 if (!SWIG_IsOK(res1)) {
11534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11535 }
11536 arg1 = reinterpret_cast< wxRegion * >(argp1);
11537 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11538 if (!SWIG_IsOK(res2)) {
11539 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11540 }
11541 if (!argp2) {
11542 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11543 }
11544 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11545 {
11546 PyThreadState* __tstate = wxPyBeginAllowThreads();
11547 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11548 wxPyEndAllowThreads(__tstate);
11549 if (PyErr_Occurred()) SWIG_fail;
11550 }
11551 {
11552 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11553 }
11554 return resultobj;
11555 fail:
11556 return NULL;
11557 }
11558
11559
11560 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11561 PyObject *resultobj = 0;
11562 wxRegion *arg1 = (wxRegion *) 0 ;
11563 wxBitmap *arg2 = 0 ;
11564 wxColour *arg3 = 0 ;
11565 int arg4 = (int) 0 ;
11566 bool result;
11567 void *argp1 = 0 ;
11568 int res1 = 0 ;
11569 void *argp2 = 0 ;
11570 int res2 = 0 ;
11571 wxColour temp3 ;
11572 int val4 ;
11573 int ecode4 = 0 ;
11574 PyObject * obj0 = 0 ;
11575 PyObject * obj1 = 0 ;
11576 PyObject * obj2 = 0 ;
11577 PyObject * obj3 = 0 ;
11578 char * kwnames[] = {
11579 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11580 };
11581
11582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11584 if (!SWIG_IsOK(res1)) {
11585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11586 }
11587 arg1 = reinterpret_cast< wxRegion * >(argp1);
11588 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11589 if (!SWIG_IsOK(res2)) {
11590 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11591 }
11592 if (!argp2) {
11593 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11594 }
11595 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11596 {
11597 arg3 = &temp3;
11598 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11599 }
11600 if (obj3) {
11601 ecode4 = SWIG_AsVal_int(obj3, &val4);
11602 if (!SWIG_IsOK(ecode4)) {
11603 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11604 }
11605 arg4 = static_cast< int >(val4);
11606 }
11607 {
11608 PyThreadState* __tstate = wxPyBeginAllowThreads();
11609 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11610 wxPyEndAllowThreads(__tstate);
11611 if (PyErr_Occurred()) SWIG_fail;
11612 }
11613 {
11614 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11615 }
11616 return resultobj;
11617 fail:
11618 return NULL;
11619 }
11620
11621
11622 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11623 PyObject *obj;
11624 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11625 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11626 return SWIG_Py_Void();
11627 }
11628
11629 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11630 return SWIG_Python_InitShadowInstance(args);
11631 }
11632
11633 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11634 PyObject *resultobj = 0;
11635 wxRegion *arg1 = 0 ;
11636 wxRegionIterator *result = 0 ;
11637 void *argp1 = 0 ;
11638 int res1 = 0 ;
11639 PyObject * obj0 = 0 ;
11640 char * kwnames[] = {
11641 (char *) "region", NULL
11642 };
11643
11644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11645 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11646 if (!SWIG_IsOK(res1)) {
11647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11648 }
11649 if (!argp1) {
11650 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11651 }
11652 arg1 = reinterpret_cast< wxRegion * >(argp1);
11653 {
11654 if (!wxPyCheckForApp()) SWIG_fail;
11655 PyThreadState* __tstate = wxPyBeginAllowThreads();
11656 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11657 wxPyEndAllowThreads(__tstate);
11658 if (PyErr_Occurred()) SWIG_fail;
11659 }
11660 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11661 return resultobj;
11662 fail:
11663 return NULL;
11664 }
11665
11666
11667 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11668 PyObject *resultobj = 0;
11669 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11670 void *argp1 = 0 ;
11671 int res1 = 0 ;
11672 PyObject *swig_obj[1] ;
11673
11674 if (!args) SWIG_fail;
11675 swig_obj[0] = args;
11676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11677 if (!SWIG_IsOK(res1)) {
11678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11679 }
11680 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11681 {
11682 PyThreadState* __tstate = wxPyBeginAllowThreads();
11683 delete arg1;
11684
11685 wxPyEndAllowThreads(__tstate);
11686 if (PyErr_Occurred()) SWIG_fail;
11687 }
11688 resultobj = SWIG_Py_Void();
11689 return resultobj;
11690 fail:
11691 return NULL;
11692 }
11693
11694
11695 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11696 PyObject *resultobj = 0;
11697 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11698 int result;
11699 void *argp1 = 0 ;
11700 int res1 = 0 ;
11701 PyObject *swig_obj[1] ;
11702
11703 if (!args) SWIG_fail;
11704 swig_obj[0] = args;
11705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11706 if (!SWIG_IsOK(res1)) {
11707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11708 }
11709 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11710 {
11711 PyThreadState* __tstate = wxPyBeginAllowThreads();
11712 result = (int)(arg1)->GetX();
11713 wxPyEndAllowThreads(__tstate);
11714 if (PyErr_Occurred()) SWIG_fail;
11715 }
11716 resultobj = SWIG_From_int(static_cast< int >(result));
11717 return resultobj;
11718 fail:
11719 return NULL;
11720 }
11721
11722
11723 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11724 PyObject *resultobj = 0;
11725 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11726 int result;
11727 void *argp1 = 0 ;
11728 int res1 = 0 ;
11729 PyObject *swig_obj[1] ;
11730
11731 if (!args) SWIG_fail;
11732 swig_obj[0] = args;
11733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11734 if (!SWIG_IsOK(res1)) {
11735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11736 }
11737 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11738 {
11739 PyThreadState* __tstate = wxPyBeginAllowThreads();
11740 result = (int)(arg1)->GetY();
11741 wxPyEndAllowThreads(__tstate);
11742 if (PyErr_Occurred()) SWIG_fail;
11743 }
11744 resultobj = SWIG_From_int(static_cast< int >(result));
11745 return resultobj;
11746 fail:
11747 return NULL;
11748 }
11749
11750
11751 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11752 PyObject *resultobj = 0;
11753 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11754 int result;
11755 void *argp1 = 0 ;
11756 int res1 = 0 ;
11757 PyObject *swig_obj[1] ;
11758
11759 if (!args) SWIG_fail;
11760 swig_obj[0] = args;
11761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11762 if (!SWIG_IsOK(res1)) {
11763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11764 }
11765 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11766 {
11767 PyThreadState* __tstate = wxPyBeginAllowThreads();
11768 result = (int)(arg1)->GetW();
11769 wxPyEndAllowThreads(__tstate);
11770 if (PyErr_Occurred()) SWIG_fail;
11771 }
11772 resultobj = SWIG_From_int(static_cast< int >(result));
11773 return resultobj;
11774 fail:
11775 return NULL;
11776 }
11777
11778
11779 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11780 PyObject *resultobj = 0;
11781 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11782 int result;
11783 void *argp1 = 0 ;
11784 int res1 = 0 ;
11785 PyObject *swig_obj[1] ;
11786
11787 if (!args) SWIG_fail;
11788 swig_obj[0] = args;
11789 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11790 if (!SWIG_IsOK(res1)) {
11791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11792 }
11793 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11794 {
11795 PyThreadState* __tstate = wxPyBeginAllowThreads();
11796 result = (int)(arg1)->GetWidth();
11797 wxPyEndAllowThreads(__tstate);
11798 if (PyErr_Occurred()) SWIG_fail;
11799 }
11800 resultobj = SWIG_From_int(static_cast< int >(result));
11801 return resultobj;
11802 fail:
11803 return NULL;
11804 }
11805
11806
11807 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11808 PyObject *resultobj = 0;
11809 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11810 int result;
11811 void *argp1 = 0 ;
11812 int res1 = 0 ;
11813 PyObject *swig_obj[1] ;
11814
11815 if (!args) SWIG_fail;
11816 swig_obj[0] = args;
11817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11818 if (!SWIG_IsOK(res1)) {
11819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11820 }
11821 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11822 {
11823 PyThreadState* __tstate = wxPyBeginAllowThreads();
11824 result = (int)(arg1)->GetH();
11825 wxPyEndAllowThreads(__tstate);
11826 if (PyErr_Occurred()) SWIG_fail;
11827 }
11828 resultobj = SWIG_From_int(static_cast< int >(result));
11829 return resultobj;
11830 fail:
11831 return NULL;
11832 }
11833
11834
11835 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11836 PyObject *resultobj = 0;
11837 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11838 int result;
11839 void *argp1 = 0 ;
11840 int res1 = 0 ;
11841 PyObject *swig_obj[1] ;
11842
11843 if (!args) SWIG_fail;
11844 swig_obj[0] = args;
11845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11846 if (!SWIG_IsOK(res1)) {
11847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11848 }
11849 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11850 {
11851 PyThreadState* __tstate = wxPyBeginAllowThreads();
11852 result = (int)(arg1)->GetHeight();
11853 wxPyEndAllowThreads(__tstate);
11854 if (PyErr_Occurred()) SWIG_fail;
11855 }
11856 resultobj = SWIG_From_int(static_cast< int >(result));
11857 return resultobj;
11858 fail:
11859 return NULL;
11860 }
11861
11862
11863 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11864 PyObject *resultobj = 0;
11865 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11866 wxRect result;
11867 void *argp1 = 0 ;
11868 int res1 = 0 ;
11869 PyObject *swig_obj[1] ;
11870
11871 if (!args) SWIG_fail;
11872 swig_obj[0] = args;
11873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11874 if (!SWIG_IsOK(res1)) {
11875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11876 }
11877 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11878 {
11879 PyThreadState* __tstate = wxPyBeginAllowThreads();
11880 result = (arg1)->GetRect();
11881 wxPyEndAllowThreads(__tstate);
11882 if (PyErr_Occurred()) SWIG_fail;
11883 }
11884 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11885 return resultobj;
11886 fail:
11887 return NULL;
11888 }
11889
11890
11891 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11892 PyObject *resultobj = 0;
11893 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11894 bool result;
11895 void *argp1 = 0 ;
11896 int res1 = 0 ;
11897 PyObject *swig_obj[1] ;
11898
11899 if (!args) SWIG_fail;
11900 swig_obj[0] = args;
11901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11902 if (!SWIG_IsOK(res1)) {
11903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11904 }
11905 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11906 {
11907 PyThreadState* __tstate = wxPyBeginAllowThreads();
11908 result = (bool)(arg1)->HaveRects();
11909 wxPyEndAllowThreads(__tstate);
11910 if (PyErr_Occurred()) SWIG_fail;
11911 }
11912 {
11913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11914 }
11915 return resultobj;
11916 fail:
11917 return NULL;
11918 }
11919
11920
11921 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11922 PyObject *resultobj = 0;
11923 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11924 void *argp1 = 0 ;
11925 int res1 = 0 ;
11926 PyObject *swig_obj[1] ;
11927
11928 if (!args) SWIG_fail;
11929 swig_obj[0] = args;
11930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11931 if (!SWIG_IsOK(res1)) {
11932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11933 }
11934 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11935 {
11936 PyThreadState* __tstate = wxPyBeginAllowThreads();
11937 (arg1)->Reset();
11938 wxPyEndAllowThreads(__tstate);
11939 if (PyErr_Occurred()) SWIG_fail;
11940 }
11941 resultobj = SWIG_Py_Void();
11942 return resultobj;
11943 fail:
11944 return NULL;
11945 }
11946
11947
11948 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11949 PyObject *resultobj = 0;
11950 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11951 void *argp1 = 0 ;
11952 int res1 = 0 ;
11953 PyObject *swig_obj[1] ;
11954
11955 if (!args) SWIG_fail;
11956 swig_obj[0] = args;
11957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11958 if (!SWIG_IsOK(res1)) {
11959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11960 }
11961 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11962 {
11963 PyThreadState* __tstate = wxPyBeginAllowThreads();
11964 wxRegionIterator_Next(arg1);
11965 wxPyEndAllowThreads(__tstate);
11966 if (PyErr_Occurred()) SWIG_fail;
11967 }
11968 resultobj = SWIG_Py_Void();
11969 return resultobj;
11970 fail:
11971 return NULL;
11972 }
11973
11974
11975 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11976 PyObject *resultobj = 0;
11977 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11978 bool result;
11979 void *argp1 = 0 ;
11980 int res1 = 0 ;
11981 PyObject *swig_obj[1] ;
11982
11983 if (!args) SWIG_fail;
11984 swig_obj[0] = args;
11985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11986 if (!SWIG_IsOK(res1)) {
11987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11988 }
11989 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11990 {
11991 PyThreadState* __tstate = wxPyBeginAllowThreads();
11992 result = (bool)wxRegionIterator___nonzero__(arg1);
11993 wxPyEndAllowThreads(__tstate);
11994 if (PyErr_Occurred()) SWIG_fail;
11995 }
11996 {
11997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11998 }
11999 return resultobj;
12000 fail:
12001 return NULL;
12002 }
12003
12004
12005 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12006 PyObject *obj;
12007 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12008 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12009 return SWIG_Py_Void();
12010 }
12011
12012 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12013 return SWIG_Python_InitShadowInstance(args);
12014 }
12015
12016 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12017 PyObject *resultobj = 0;
12018 wxNativeFontInfo *result = 0 ;
12019
12020 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12021 {
12022 PyThreadState* __tstate = wxPyBeginAllowThreads();
12023 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12024 wxPyEndAllowThreads(__tstate);
12025 if (PyErr_Occurred()) SWIG_fail;
12026 }
12027 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12028 return resultobj;
12029 fail:
12030 return NULL;
12031 }
12032
12033
12034 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12035 PyObject *resultobj = 0;
12036 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12037 void *argp1 = 0 ;
12038 int res1 = 0 ;
12039 PyObject *swig_obj[1] ;
12040
12041 if (!args) SWIG_fail;
12042 swig_obj[0] = args;
12043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12044 if (!SWIG_IsOK(res1)) {
12045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12046 }
12047 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12048 {
12049 PyThreadState* __tstate = wxPyBeginAllowThreads();
12050 delete arg1;
12051
12052 wxPyEndAllowThreads(__tstate);
12053 if (PyErr_Occurred()) SWIG_fail;
12054 }
12055 resultobj = SWIG_Py_Void();
12056 return resultobj;
12057 fail:
12058 return NULL;
12059 }
12060
12061
12062 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12063 PyObject *resultobj = 0;
12064 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12065 void *argp1 = 0 ;
12066 int res1 = 0 ;
12067 PyObject *swig_obj[1] ;
12068
12069 if (!args) SWIG_fail;
12070 swig_obj[0] = args;
12071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12072 if (!SWIG_IsOK(res1)) {
12073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12074 }
12075 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12076 {
12077 PyThreadState* __tstate = wxPyBeginAllowThreads();
12078 (arg1)->Init();
12079 wxPyEndAllowThreads(__tstate);
12080 if (PyErr_Occurred()) SWIG_fail;
12081 }
12082 resultobj = SWIG_Py_Void();
12083 return resultobj;
12084 fail:
12085 return NULL;
12086 }
12087
12088
12089 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12090 PyObject *resultobj = 0;
12091 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12092 wxFont *arg2 = 0 ;
12093 void *argp1 = 0 ;
12094 int res1 = 0 ;
12095 void *argp2 = 0 ;
12096 int res2 = 0 ;
12097 PyObject * obj0 = 0 ;
12098 PyObject * obj1 = 0 ;
12099 char * kwnames[] = {
12100 (char *) "self",(char *) "font", NULL
12101 };
12102
12103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12105 if (!SWIG_IsOK(res1)) {
12106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12107 }
12108 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12109 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12110 if (!SWIG_IsOK(res2)) {
12111 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12112 }
12113 if (!argp2) {
12114 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12115 }
12116 arg2 = reinterpret_cast< wxFont * >(argp2);
12117 {
12118 PyThreadState* __tstate = wxPyBeginAllowThreads();
12119 (arg1)->InitFromFont((wxFont const &)*arg2);
12120 wxPyEndAllowThreads(__tstate);
12121 if (PyErr_Occurred()) SWIG_fail;
12122 }
12123 resultobj = SWIG_Py_Void();
12124 return resultobj;
12125 fail:
12126 return NULL;
12127 }
12128
12129
12130 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12131 PyObject *resultobj = 0;
12132 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12133 int result;
12134 void *argp1 = 0 ;
12135 int res1 = 0 ;
12136 PyObject *swig_obj[1] ;
12137
12138 if (!args) SWIG_fail;
12139 swig_obj[0] = args;
12140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12141 if (!SWIG_IsOK(res1)) {
12142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12143 }
12144 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12145 {
12146 PyThreadState* __tstate = wxPyBeginAllowThreads();
12147 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12148 wxPyEndAllowThreads(__tstate);
12149 if (PyErr_Occurred()) SWIG_fail;
12150 }
12151 resultobj = SWIG_From_int(static_cast< int >(result));
12152 return resultobj;
12153 fail:
12154 return NULL;
12155 }
12156
12157
12158 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12159 PyObject *resultobj = 0;
12160 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12161 wxFontStyle result;
12162 void *argp1 = 0 ;
12163 int res1 = 0 ;
12164 PyObject *swig_obj[1] ;
12165
12166 if (!args) SWIG_fail;
12167 swig_obj[0] = args;
12168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12169 if (!SWIG_IsOK(res1)) {
12170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12171 }
12172 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12173 {
12174 PyThreadState* __tstate = wxPyBeginAllowThreads();
12175 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12176 wxPyEndAllowThreads(__tstate);
12177 if (PyErr_Occurred()) SWIG_fail;
12178 }
12179 resultobj = SWIG_From_int(static_cast< int >(result));
12180 return resultobj;
12181 fail:
12182 return NULL;
12183 }
12184
12185
12186 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12187 PyObject *resultobj = 0;
12188 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12189 wxFontWeight result;
12190 void *argp1 = 0 ;
12191 int res1 = 0 ;
12192 PyObject *swig_obj[1] ;
12193
12194 if (!args) SWIG_fail;
12195 swig_obj[0] = args;
12196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12197 if (!SWIG_IsOK(res1)) {
12198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12199 }
12200 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12201 {
12202 PyThreadState* __tstate = wxPyBeginAllowThreads();
12203 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12204 wxPyEndAllowThreads(__tstate);
12205 if (PyErr_Occurred()) SWIG_fail;
12206 }
12207 resultobj = SWIG_From_int(static_cast< int >(result));
12208 return resultobj;
12209 fail:
12210 return NULL;
12211 }
12212
12213
12214 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12215 PyObject *resultobj = 0;
12216 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12217 bool result;
12218 void *argp1 = 0 ;
12219 int res1 = 0 ;
12220 PyObject *swig_obj[1] ;
12221
12222 if (!args) SWIG_fail;
12223 swig_obj[0] = args;
12224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12225 if (!SWIG_IsOK(res1)) {
12226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12227 }
12228 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12229 {
12230 PyThreadState* __tstate = wxPyBeginAllowThreads();
12231 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12232 wxPyEndAllowThreads(__tstate);
12233 if (PyErr_Occurred()) SWIG_fail;
12234 }
12235 {
12236 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12237 }
12238 return resultobj;
12239 fail:
12240 return NULL;
12241 }
12242
12243
12244 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12245 PyObject *resultobj = 0;
12246 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12247 wxString result;
12248 void *argp1 = 0 ;
12249 int res1 = 0 ;
12250 PyObject *swig_obj[1] ;
12251
12252 if (!args) SWIG_fail;
12253 swig_obj[0] = args;
12254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12255 if (!SWIG_IsOK(res1)) {
12256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12257 }
12258 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12259 {
12260 PyThreadState* __tstate = wxPyBeginAllowThreads();
12261 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12262 wxPyEndAllowThreads(__tstate);
12263 if (PyErr_Occurred()) SWIG_fail;
12264 }
12265 {
12266 #if wxUSE_UNICODE
12267 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12268 #else
12269 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12270 #endif
12271 }
12272 return resultobj;
12273 fail:
12274 return NULL;
12275 }
12276
12277
12278 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12279 PyObject *resultobj = 0;
12280 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12281 wxFontFamily result;
12282 void *argp1 = 0 ;
12283 int res1 = 0 ;
12284 PyObject *swig_obj[1] ;
12285
12286 if (!args) SWIG_fail;
12287 swig_obj[0] = args;
12288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12289 if (!SWIG_IsOK(res1)) {
12290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12291 }
12292 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12293 {
12294 PyThreadState* __tstate = wxPyBeginAllowThreads();
12295 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12296 wxPyEndAllowThreads(__tstate);
12297 if (PyErr_Occurred()) SWIG_fail;
12298 }
12299 resultobj = SWIG_From_int(static_cast< int >(result));
12300 return resultobj;
12301 fail:
12302 return NULL;
12303 }
12304
12305
12306 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12307 PyObject *resultobj = 0;
12308 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12309 wxFontEncoding result;
12310 void *argp1 = 0 ;
12311 int res1 = 0 ;
12312 PyObject *swig_obj[1] ;
12313
12314 if (!args) SWIG_fail;
12315 swig_obj[0] = args;
12316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12317 if (!SWIG_IsOK(res1)) {
12318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12319 }
12320 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12321 {
12322 PyThreadState* __tstate = wxPyBeginAllowThreads();
12323 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12324 wxPyEndAllowThreads(__tstate);
12325 if (PyErr_Occurred()) SWIG_fail;
12326 }
12327 resultobj = SWIG_From_int(static_cast< int >(result));
12328 return resultobj;
12329 fail:
12330 return NULL;
12331 }
12332
12333
12334 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12335 PyObject *resultobj = 0;
12336 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12337 int arg2 ;
12338 void *argp1 = 0 ;
12339 int res1 = 0 ;
12340 int val2 ;
12341 int ecode2 = 0 ;
12342 PyObject * obj0 = 0 ;
12343 PyObject * obj1 = 0 ;
12344 char * kwnames[] = {
12345 (char *) "self",(char *) "pointsize", NULL
12346 };
12347
12348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12350 if (!SWIG_IsOK(res1)) {
12351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12352 }
12353 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12354 ecode2 = SWIG_AsVal_int(obj1, &val2);
12355 if (!SWIG_IsOK(ecode2)) {
12356 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12357 }
12358 arg2 = static_cast< int >(val2);
12359 {
12360 PyThreadState* __tstate = wxPyBeginAllowThreads();
12361 (arg1)->SetPointSize(arg2);
12362 wxPyEndAllowThreads(__tstate);
12363 if (PyErr_Occurred()) SWIG_fail;
12364 }
12365 resultobj = SWIG_Py_Void();
12366 return resultobj;
12367 fail:
12368 return NULL;
12369 }
12370
12371
12372 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12373 PyObject *resultobj = 0;
12374 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12375 wxFontStyle arg2 ;
12376 void *argp1 = 0 ;
12377 int res1 = 0 ;
12378 int val2 ;
12379 int ecode2 = 0 ;
12380 PyObject * obj0 = 0 ;
12381 PyObject * obj1 = 0 ;
12382 char * kwnames[] = {
12383 (char *) "self",(char *) "style", NULL
12384 };
12385
12386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12388 if (!SWIG_IsOK(res1)) {
12389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12390 }
12391 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12392 ecode2 = SWIG_AsVal_int(obj1, &val2);
12393 if (!SWIG_IsOK(ecode2)) {
12394 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12395 }
12396 arg2 = static_cast< wxFontStyle >(val2);
12397 {
12398 PyThreadState* __tstate = wxPyBeginAllowThreads();
12399 (arg1)->SetStyle(arg2);
12400 wxPyEndAllowThreads(__tstate);
12401 if (PyErr_Occurred()) SWIG_fail;
12402 }
12403 resultobj = SWIG_Py_Void();
12404 return resultobj;
12405 fail:
12406 return NULL;
12407 }
12408
12409
12410 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12411 PyObject *resultobj = 0;
12412 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12413 wxFontWeight arg2 ;
12414 void *argp1 = 0 ;
12415 int res1 = 0 ;
12416 int val2 ;
12417 int ecode2 = 0 ;
12418 PyObject * obj0 = 0 ;
12419 PyObject * obj1 = 0 ;
12420 char * kwnames[] = {
12421 (char *) "self",(char *) "weight", NULL
12422 };
12423
12424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12426 if (!SWIG_IsOK(res1)) {
12427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12428 }
12429 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12430 ecode2 = SWIG_AsVal_int(obj1, &val2);
12431 if (!SWIG_IsOK(ecode2)) {
12432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12433 }
12434 arg2 = static_cast< wxFontWeight >(val2);
12435 {
12436 PyThreadState* __tstate = wxPyBeginAllowThreads();
12437 (arg1)->SetWeight(arg2);
12438 wxPyEndAllowThreads(__tstate);
12439 if (PyErr_Occurred()) SWIG_fail;
12440 }
12441 resultobj = SWIG_Py_Void();
12442 return resultobj;
12443 fail:
12444 return NULL;
12445 }
12446
12447
12448 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12449 PyObject *resultobj = 0;
12450 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12451 bool arg2 ;
12452 void *argp1 = 0 ;
12453 int res1 = 0 ;
12454 bool val2 ;
12455 int ecode2 = 0 ;
12456 PyObject * obj0 = 0 ;
12457 PyObject * obj1 = 0 ;
12458 char * kwnames[] = {
12459 (char *) "self",(char *) "underlined", NULL
12460 };
12461
12462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12464 if (!SWIG_IsOK(res1)) {
12465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12466 }
12467 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12468 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12469 if (!SWIG_IsOK(ecode2)) {
12470 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12471 }
12472 arg2 = static_cast< bool >(val2);
12473 {
12474 PyThreadState* __tstate = wxPyBeginAllowThreads();
12475 (arg1)->SetUnderlined(arg2);
12476 wxPyEndAllowThreads(__tstate);
12477 if (PyErr_Occurred()) SWIG_fail;
12478 }
12479 resultobj = SWIG_Py_Void();
12480 return resultobj;
12481 fail:
12482 return NULL;
12483 }
12484
12485
12486 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12487 PyObject *resultobj = 0;
12488 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12489 wxString arg2 ;
12490 bool result;
12491 void *argp1 = 0 ;
12492 int res1 = 0 ;
12493 PyObject * obj0 = 0 ;
12494 PyObject * obj1 = 0 ;
12495 char * kwnames[] = {
12496 (char *) "self",(char *) "facename", NULL
12497 };
12498
12499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12501 if (!SWIG_IsOK(res1)) {
12502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12503 }
12504 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12505 {
12506 wxString* sptr = wxString_in_helper(obj1);
12507 if (sptr == NULL) SWIG_fail;
12508 arg2 = *sptr;
12509 delete sptr;
12510 }
12511 {
12512 PyThreadState* __tstate = wxPyBeginAllowThreads();
12513 result = (bool)(arg1)->SetFaceName(arg2);
12514 wxPyEndAllowThreads(__tstate);
12515 if (PyErr_Occurred()) SWIG_fail;
12516 }
12517 {
12518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12519 }
12520 return resultobj;
12521 fail:
12522 return NULL;
12523 }
12524
12525
12526 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12527 PyObject *resultobj = 0;
12528 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12529 wxFontFamily arg2 ;
12530 void *argp1 = 0 ;
12531 int res1 = 0 ;
12532 int val2 ;
12533 int ecode2 = 0 ;
12534 PyObject * obj0 = 0 ;
12535 PyObject * obj1 = 0 ;
12536 char * kwnames[] = {
12537 (char *) "self",(char *) "family", NULL
12538 };
12539
12540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12542 if (!SWIG_IsOK(res1)) {
12543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12544 }
12545 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12546 ecode2 = SWIG_AsVal_int(obj1, &val2);
12547 if (!SWIG_IsOK(ecode2)) {
12548 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12549 }
12550 arg2 = static_cast< wxFontFamily >(val2);
12551 {
12552 PyThreadState* __tstate = wxPyBeginAllowThreads();
12553 (arg1)->SetFamily(arg2);
12554 wxPyEndAllowThreads(__tstate);
12555 if (PyErr_Occurred()) SWIG_fail;
12556 }
12557 resultobj = SWIG_Py_Void();
12558 return resultobj;
12559 fail:
12560 return NULL;
12561 }
12562
12563
12564 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12565 PyObject *resultobj = 0;
12566 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12567 wxFontEncoding arg2 ;
12568 void *argp1 = 0 ;
12569 int res1 = 0 ;
12570 int val2 ;
12571 int ecode2 = 0 ;
12572 PyObject * obj0 = 0 ;
12573 PyObject * obj1 = 0 ;
12574 char * kwnames[] = {
12575 (char *) "self",(char *) "encoding", NULL
12576 };
12577
12578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12580 if (!SWIG_IsOK(res1)) {
12581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12582 }
12583 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12584 ecode2 = SWIG_AsVal_int(obj1, &val2);
12585 if (!SWIG_IsOK(ecode2)) {
12586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12587 }
12588 arg2 = static_cast< wxFontEncoding >(val2);
12589 {
12590 PyThreadState* __tstate = wxPyBeginAllowThreads();
12591 (arg1)->SetEncoding(arg2);
12592 wxPyEndAllowThreads(__tstate);
12593 if (PyErr_Occurred()) SWIG_fail;
12594 }
12595 resultobj = SWIG_Py_Void();
12596 return resultobj;
12597 fail:
12598 return NULL;
12599 }
12600
12601
12602 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12603 PyObject *resultobj = 0;
12604 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12605 wxString *arg2 = 0 ;
12606 bool result;
12607 void *argp1 = 0 ;
12608 int res1 = 0 ;
12609 bool temp2 = false ;
12610 PyObject * obj0 = 0 ;
12611 PyObject * obj1 = 0 ;
12612 char * kwnames[] = {
12613 (char *) "self",(char *) "s", NULL
12614 };
12615
12616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12618 if (!SWIG_IsOK(res1)) {
12619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12620 }
12621 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12622 {
12623 arg2 = wxString_in_helper(obj1);
12624 if (arg2 == NULL) SWIG_fail;
12625 temp2 = true;
12626 }
12627 {
12628 PyThreadState* __tstate = wxPyBeginAllowThreads();
12629 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12630 wxPyEndAllowThreads(__tstate);
12631 if (PyErr_Occurred()) SWIG_fail;
12632 }
12633 {
12634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12635 }
12636 {
12637 if (temp2)
12638 delete arg2;
12639 }
12640 return resultobj;
12641 fail:
12642 {
12643 if (temp2)
12644 delete arg2;
12645 }
12646 return NULL;
12647 }
12648
12649
12650 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12651 PyObject *resultobj = 0;
12652 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12653 wxString result;
12654 void *argp1 = 0 ;
12655 int res1 = 0 ;
12656 PyObject *swig_obj[1] ;
12657
12658 if (!args) SWIG_fail;
12659 swig_obj[0] = args;
12660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12661 if (!SWIG_IsOK(res1)) {
12662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12663 }
12664 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12665 {
12666 PyThreadState* __tstate = wxPyBeginAllowThreads();
12667 result = ((wxNativeFontInfo const *)arg1)->ToString();
12668 wxPyEndAllowThreads(__tstate);
12669 if (PyErr_Occurred()) SWIG_fail;
12670 }
12671 {
12672 #if wxUSE_UNICODE
12673 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12674 #else
12675 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12676 #endif
12677 }
12678 return resultobj;
12679 fail:
12680 return NULL;
12681 }
12682
12683
12684 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12685 PyObject *resultobj = 0;
12686 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12687 wxString result;
12688 void *argp1 = 0 ;
12689 int res1 = 0 ;
12690 PyObject *swig_obj[1] ;
12691
12692 if (!args) SWIG_fail;
12693 swig_obj[0] = args;
12694 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12695 if (!SWIG_IsOK(res1)) {
12696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12697 }
12698 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12699 {
12700 PyThreadState* __tstate = wxPyBeginAllowThreads();
12701 result = wxNativeFontInfo___str__(arg1);
12702 wxPyEndAllowThreads(__tstate);
12703 if (PyErr_Occurred()) SWIG_fail;
12704 }
12705 {
12706 #if wxUSE_UNICODE
12707 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12708 #else
12709 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12710 #endif
12711 }
12712 return resultobj;
12713 fail:
12714 return NULL;
12715 }
12716
12717
12718 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12719 PyObject *resultobj = 0;
12720 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12721 wxString *arg2 = 0 ;
12722 bool result;
12723 void *argp1 = 0 ;
12724 int res1 = 0 ;
12725 bool temp2 = false ;
12726 PyObject * obj0 = 0 ;
12727 PyObject * obj1 = 0 ;
12728 char * kwnames[] = {
12729 (char *) "self",(char *) "s", NULL
12730 };
12731
12732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12734 if (!SWIG_IsOK(res1)) {
12735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12736 }
12737 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12738 {
12739 arg2 = wxString_in_helper(obj1);
12740 if (arg2 == NULL) SWIG_fail;
12741 temp2 = true;
12742 }
12743 {
12744 PyThreadState* __tstate = wxPyBeginAllowThreads();
12745 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12746 wxPyEndAllowThreads(__tstate);
12747 if (PyErr_Occurred()) SWIG_fail;
12748 }
12749 {
12750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12751 }
12752 {
12753 if (temp2)
12754 delete arg2;
12755 }
12756 return resultobj;
12757 fail:
12758 {
12759 if (temp2)
12760 delete arg2;
12761 }
12762 return NULL;
12763 }
12764
12765
12766 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12767 PyObject *resultobj = 0;
12768 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12769 wxString result;
12770 void *argp1 = 0 ;
12771 int res1 = 0 ;
12772 PyObject *swig_obj[1] ;
12773
12774 if (!args) SWIG_fail;
12775 swig_obj[0] = args;
12776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12777 if (!SWIG_IsOK(res1)) {
12778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12779 }
12780 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12781 {
12782 PyThreadState* __tstate = wxPyBeginAllowThreads();
12783 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12784 wxPyEndAllowThreads(__tstate);
12785 if (PyErr_Occurred()) SWIG_fail;
12786 }
12787 {
12788 #if wxUSE_UNICODE
12789 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12790 #else
12791 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12792 #endif
12793 }
12794 return resultobj;
12795 fail:
12796 return NULL;
12797 }
12798
12799
12800 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12801 PyObject *obj;
12802 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12803 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12804 return SWIG_Py_Void();
12805 }
12806
12807 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12808 return SWIG_Python_InitShadowInstance(args);
12809 }
12810
12811 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12812 PyObject *resultobj = 0;
12813 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12814 wxString *arg2 = (wxString *) 0 ;
12815 void *argp1 = 0 ;
12816 int res1 = 0 ;
12817 bool temp2 = false ;
12818 PyObject *swig_obj[2] ;
12819
12820 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12822 if (!SWIG_IsOK(res1)) {
12823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12824 }
12825 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12826 {
12827 arg2 = wxString_in_helper(swig_obj[1]);
12828 if (arg2 == NULL) SWIG_fail;
12829 temp2 = true;
12830 }
12831 if (arg1) (arg1)->facename = *arg2;
12832
12833 resultobj = SWIG_Py_Void();
12834 {
12835 if (temp2)
12836 delete arg2;
12837 }
12838 return resultobj;
12839 fail:
12840 {
12841 if (temp2)
12842 delete arg2;
12843 }
12844 return NULL;
12845 }
12846
12847
12848 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12849 PyObject *resultobj = 0;
12850 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12851 wxString *result = 0 ;
12852 void *argp1 = 0 ;
12853 int res1 = 0 ;
12854 PyObject *swig_obj[1] ;
12855
12856 if (!args) SWIG_fail;
12857 swig_obj[0] = args;
12858 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12859 if (!SWIG_IsOK(res1)) {
12860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12861 }
12862 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12863 result = (wxString *)& ((arg1)->facename);
12864 {
12865 #if wxUSE_UNICODE
12866 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12867 #else
12868 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12869 #endif
12870 }
12871 return resultobj;
12872 fail:
12873 return NULL;
12874 }
12875
12876
12877 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12878 PyObject *resultobj = 0;
12879 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12880 wxFontEncoding arg2 ;
12881 void *argp1 = 0 ;
12882 int res1 = 0 ;
12883 int val2 ;
12884 int ecode2 = 0 ;
12885 PyObject *swig_obj[2] ;
12886
12887 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12889 if (!SWIG_IsOK(res1)) {
12890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12891 }
12892 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12893 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12894 if (!SWIG_IsOK(ecode2)) {
12895 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12896 }
12897 arg2 = static_cast< wxFontEncoding >(val2);
12898 if (arg1) (arg1)->encoding = arg2;
12899
12900 resultobj = SWIG_Py_Void();
12901 return resultobj;
12902 fail:
12903 return NULL;
12904 }
12905
12906
12907 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12908 PyObject *resultobj = 0;
12909 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12910 wxFontEncoding result;
12911 void *argp1 = 0 ;
12912 int res1 = 0 ;
12913 PyObject *swig_obj[1] ;
12914
12915 if (!args) SWIG_fail;
12916 swig_obj[0] = args;
12917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12918 if (!SWIG_IsOK(res1)) {
12919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12920 }
12921 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12922 result = (wxFontEncoding) ((arg1)->encoding);
12923 resultobj = SWIG_From_int(static_cast< int >(result));
12924 return resultobj;
12925 fail:
12926 return NULL;
12927 }
12928
12929
12930 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12931 PyObject *resultobj = 0;
12932 wxNativeEncodingInfo *result = 0 ;
12933
12934 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12935 {
12936 PyThreadState* __tstate = wxPyBeginAllowThreads();
12937 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12938 wxPyEndAllowThreads(__tstate);
12939 if (PyErr_Occurred()) SWIG_fail;
12940 }
12941 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12942 return resultobj;
12943 fail:
12944 return NULL;
12945 }
12946
12947
12948 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12949 PyObject *resultobj = 0;
12950 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12951 void *argp1 = 0 ;
12952 int res1 = 0 ;
12953 PyObject *swig_obj[1] ;
12954
12955 if (!args) SWIG_fail;
12956 swig_obj[0] = args;
12957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12958 if (!SWIG_IsOK(res1)) {
12959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12960 }
12961 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12962 {
12963 PyThreadState* __tstate = wxPyBeginAllowThreads();
12964 delete arg1;
12965
12966 wxPyEndAllowThreads(__tstate);
12967 if (PyErr_Occurred()) SWIG_fail;
12968 }
12969 resultobj = SWIG_Py_Void();
12970 return resultobj;
12971 fail:
12972 return NULL;
12973 }
12974
12975
12976 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12977 PyObject *resultobj = 0;
12978 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12979 wxString *arg2 = 0 ;
12980 bool result;
12981 void *argp1 = 0 ;
12982 int res1 = 0 ;
12983 bool temp2 = false ;
12984 PyObject * obj0 = 0 ;
12985 PyObject * obj1 = 0 ;
12986 char * kwnames[] = {
12987 (char *) "self",(char *) "s", NULL
12988 };
12989
12990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12992 if (!SWIG_IsOK(res1)) {
12993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12994 }
12995 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12996 {
12997 arg2 = wxString_in_helper(obj1);
12998 if (arg2 == NULL) SWIG_fail;
12999 temp2 = true;
13000 }
13001 {
13002 PyThreadState* __tstate = wxPyBeginAllowThreads();
13003 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13004 wxPyEndAllowThreads(__tstate);
13005 if (PyErr_Occurred()) SWIG_fail;
13006 }
13007 {
13008 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13009 }
13010 {
13011 if (temp2)
13012 delete arg2;
13013 }
13014 return resultobj;
13015 fail:
13016 {
13017 if (temp2)
13018 delete arg2;
13019 }
13020 return NULL;
13021 }
13022
13023
13024 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13025 PyObject *resultobj = 0;
13026 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13027 wxString result;
13028 void *argp1 = 0 ;
13029 int res1 = 0 ;
13030 PyObject *swig_obj[1] ;
13031
13032 if (!args) SWIG_fail;
13033 swig_obj[0] = args;
13034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13035 if (!SWIG_IsOK(res1)) {
13036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13037 }
13038 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13039 {
13040 PyThreadState* __tstate = wxPyBeginAllowThreads();
13041 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13042 wxPyEndAllowThreads(__tstate);
13043 if (PyErr_Occurred()) SWIG_fail;
13044 }
13045 {
13046 #if wxUSE_UNICODE
13047 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13048 #else
13049 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13050 #endif
13051 }
13052 return resultobj;
13053 fail:
13054 return NULL;
13055 }
13056
13057
13058 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13059 PyObject *obj;
13060 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13061 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13062 return SWIG_Py_Void();
13063 }
13064
13065 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13066 return SWIG_Python_InitShadowInstance(args);
13067 }
13068
13069 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13070 PyObject *resultobj = 0;
13071 wxFontEncoding arg1 ;
13072 wxNativeEncodingInfo *result = 0 ;
13073 int val1 ;
13074 int ecode1 = 0 ;
13075 PyObject * obj0 = 0 ;
13076 char * kwnames[] = {
13077 (char *) "encoding", NULL
13078 };
13079
13080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13081 ecode1 = SWIG_AsVal_int(obj0, &val1);
13082 if (!SWIG_IsOK(ecode1)) {
13083 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13084 }
13085 arg1 = static_cast< wxFontEncoding >(val1);
13086 {
13087 PyThreadState* __tstate = wxPyBeginAllowThreads();
13088 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13089 wxPyEndAllowThreads(__tstate);
13090 if (PyErr_Occurred()) SWIG_fail;
13091 }
13092 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13093 return resultobj;
13094 fail:
13095 return NULL;
13096 }
13097
13098
13099 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13100 PyObject *resultobj = 0;
13101 wxNativeEncodingInfo *arg1 = 0 ;
13102 bool result;
13103 void *argp1 = 0 ;
13104 int res1 = 0 ;
13105 PyObject * obj0 = 0 ;
13106 char * kwnames[] = {
13107 (char *) "info", NULL
13108 };
13109
13110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13111 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13112 if (!SWIG_IsOK(res1)) {
13113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13114 }
13115 if (!argp1) {
13116 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13117 }
13118 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13119 {
13120 PyThreadState* __tstate = wxPyBeginAllowThreads();
13121 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13122 wxPyEndAllowThreads(__tstate);
13123 if (PyErr_Occurred()) SWIG_fail;
13124 }
13125 {
13126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13127 }
13128 return resultobj;
13129 fail:
13130 return NULL;
13131 }
13132
13133
13134 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13135 PyObject *resultobj = 0;
13136 wxFontMapper *result = 0 ;
13137
13138 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13139 {
13140 PyThreadState* __tstate = wxPyBeginAllowThreads();
13141 result = (wxFontMapper *)new wxFontMapper();
13142 wxPyEndAllowThreads(__tstate);
13143 if (PyErr_Occurred()) SWIG_fail;
13144 }
13145 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13146 return resultobj;
13147 fail:
13148 return NULL;
13149 }
13150
13151
13152 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13153 PyObject *resultobj = 0;
13154 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13155 void *argp1 = 0 ;
13156 int res1 = 0 ;
13157 PyObject *swig_obj[1] ;
13158
13159 if (!args) SWIG_fail;
13160 swig_obj[0] = args;
13161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13162 if (!SWIG_IsOK(res1)) {
13163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13164 }
13165 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13166 {
13167 PyThreadState* __tstate = wxPyBeginAllowThreads();
13168 delete arg1;
13169
13170 wxPyEndAllowThreads(__tstate);
13171 if (PyErr_Occurred()) SWIG_fail;
13172 }
13173 resultobj = SWIG_Py_Void();
13174 return resultobj;
13175 fail:
13176 return NULL;
13177 }
13178
13179
13180 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13181 PyObject *resultobj = 0;
13182 wxFontMapper *result = 0 ;
13183
13184 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13185 {
13186 PyThreadState* __tstate = wxPyBeginAllowThreads();
13187 result = (wxFontMapper *)wxFontMapper::Get();
13188 wxPyEndAllowThreads(__tstate);
13189 if (PyErr_Occurred()) SWIG_fail;
13190 }
13191 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13192 return resultobj;
13193 fail:
13194 return NULL;
13195 }
13196
13197
13198 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13199 PyObject *resultobj = 0;
13200 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13201 wxFontMapper *result = 0 ;
13202 void *argp1 = 0 ;
13203 int res1 = 0 ;
13204 PyObject * obj0 = 0 ;
13205 char * kwnames[] = {
13206 (char *) "mapper", NULL
13207 };
13208
13209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13211 if (!SWIG_IsOK(res1)) {
13212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13213 }
13214 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13215 {
13216 PyThreadState* __tstate = wxPyBeginAllowThreads();
13217 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13218 wxPyEndAllowThreads(__tstate);
13219 if (PyErr_Occurred()) SWIG_fail;
13220 }
13221 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13222 return resultobj;
13223 fail:
13224 return NULL;
13225 }
13226
13227
13228 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13229 PyObject *resultobj = 0;
13230 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13231 wxString *arg2 = 0 ;
13232 bool arg3 = (bool) true ;
13233 wxFontEncoding result;
13234 void *argp1 = 0 ;
13235 int res1 = 0 ;
13236 bool temp2 = false ;
13237 bool val3 ;
13238 int ecode3 = 0 ;
13239 PyObject * obj0 = 0 ;
13240 PyObject * obj1 = 0 ;
13241 PyObject * obj2 = 0 ;
13242 char * kwnames[] = {
13243 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13244 };
13245
13246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13248 if (!SWIG_IsOK(res1)) {
13249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13250 }
13251 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13252 {
13253 arg2 = wxString_in_helper(obj1);
13254 if (arg2 == NULL) SWIG_fail;
13255 temp2 = true;
13256 }
13257 if (obj2) {
13258 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13259 if (!SWIG_IsOK(ecode3)) {
13260 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13261 }
13262 arg3 = static_cast< bool >(val3);
13263 }
13264 {
13265 PyThreadState* __tstate = wxPyBeginAllowThreads();
13266 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13267 wxPyEndAllowThreads(__tstate);
13268 if (PyErr_Occurred()) SWIG_fail;
13269 }
13270 resultobj = SWIG_From_int(static_cast< int >(result));
13271 {
13272 if (temp2)
13273 delete arg2;
13274 }
13275 return resultobj;
13276 fail:
13277 {
13278 if (temp2)
13279 delete arg2;
13280 }
13281 return NULL;
13282 }
13283
13284
13285 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13286 PyObject *resultobj = 0;
13287 size_t result;
13288
13289 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13290 {
13291 PyThreadState* __tstate = wxPyBeginAllowThreads();
13292 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13293 wxPyEndAllowThreads(__tstate);
13294 if (PyErr_Occurred()) SWIG_fail;
13295 }
13296 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13297 return resultobj;
13298 fail:
13299 return NULL;
13300 }
13301
13302
13303 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13304 PyObject *resultobj = 0;
13305 size_t arg1 ;
13306 wxFontEncoding result;
13307 size_t val1 ;
13308 int ecode1 = 0 ;
13309 PyObject * obj0 = 0 ;
13310 char * kwnames[] = {
13311 (char *) "n", NULL
13312 };
13313
13314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13315 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13316 if (!SWIG_IsOK(ecode1)) {
13317 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13318 }
13319 arg1 = static_cast< size_t >(val1);
13320 {
13321 PyThreadState* __tstate = wxPyBeginAllowThreads();
13322 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13323 wxPyEndAllowThreads(__tstate);
13324 if (PyErr_Occurred()) SWIG_fail;
13325 }
13326 resultobj = SWIG_From_int(static_cast< int >(result));
13327 return resultobj;
13328 fail:
13329 return NULL;
13330 }
13331
13332
13333 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13334 PyObject *resultobj = 0;
13335 wxFontEncoding arg1 ;
13336 wxString result;
13337 int val1 ;
13338 int ecode1 = 0 ;
13339 PyObject * obj0 = 0 ;
13340 char * kwnames[] = {
13341 (char *) "encoding", NULL
13342 };
13343
13344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13345 ecode1 = SWIG_AsVal_int(obj0, &val1);
13346 if (!SWIG_IsOK(ecode1)) {
13347 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13348 }
13349 arg1 = static_cast< wxFontEncoding >(val1);
13350 {
13351 PyThreadState* __tstate = wxPyBeginAllowThreads();
13352 result = wxFontMapper::GetEncodingName(arg1);
13353 wxPyEndAllowThreads(__tstate);
13354 if (PyErr_Occurred()) SWIG_fail;
13355 }
13356 {
13357 #if wxUSE_UNICODE
13358 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13359 #else
13360 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13361 #endif
13362 }
13363 return resultobj;
13364 fail:
13365 return NULL;
13366 }
13367
13368
13369 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13370 PyObject *resultobj = 0;
13371 wxFontEncoding arg1 ;
13372 wxString result;
13373 int val1 ;
13374 int ecode1 = 0 ;
13375 PyObject * obj0 = 0 ;
13376 char * kwnames[] = {
13377 (char *) "encoding", NULL
13378 };
13379
13380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13381 ecode1 = SWIG_AsVal_int(obj0, &val1);
13382 if (!SWIG_IsOK(ecode1)) {
13383 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13384 }
13385 arg1 = static_cast< wxFontEncoding >(val1);
13386 {
13387 PyThreadState* __tstate = wxPyBeginAllowThreads();
13388 result = wxFontMapper::GetEncodingDescription(arg1);
13389 wxPyEndAllowThreads(__tstate);
13390 if (PyErr_Occurred()) SWIG_fail;
13391 }
13392 {
13393 #if wxUSE_UNICODE
13394 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13395 #else
13396 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13397 #endif
13398 }
13399 return resultobj;
13400 fail:
13401 return NULL;
13402 }
13403
13404
13405 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13406 PyObject *resultobj = 0;
13407 wxString *arg1 = 0 ;
13408 wxFontEncoding result;
13409 bool temp1 = false ;
13410 PyObject * obj0 = 0 ;
13411 char * kwnames[] = {
13412 (char *) "name", NULL
13413 };
13414
13415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13416 {
13417 arg1 = wxString_in_helper(obj0);
13418 if (arg1 == NULL) SWIG_fail;
13419 temp1 = true;
13420 }
13421 {
13422 PyThreadState* __tstate = wxPyBeginAllowThreads();
13423 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13424 wxPyEndAllowThreads(__tstate);
13425 if (PyErr_Occurred()) SWIG_fail;
13426 }
13427 resultobj = SWIG_From_int(static_cast< int >(result));
13428 {
13429 if (temp1)
13430 delete arg1;
13431 }
13432 return resultobj;
13433 fail:
13434 {
13435 if (temp1)
13436 delete arg1;
13437 }
13438 return NULL;
13439 }
13440
13441
13442 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13443 PyObject *resultobj = 0;
13444 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13445 wxString *arg2 = 0 ;
13446 void *argp1 = 0 ;
13447 int res1 = 0 ;
13448 bool temp2 = false ;
13449 PyObject * obj0 = 0 ;
13450 PyObject * obj1 = 0 ;
13451 char * kwnames[] = {
13452 (char *) "self",(char *) "prefix", NULL
13453 };
13454
13455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13457 if (!SWIG_IsOK(res1)) {
13458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13459 }
13460 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13461 {
13462 arg2 = wxString_in_helper(obj1);
13463 if (arg2 == NULL) SWIG_fail;
13464 temp2 = true;
13465 }
13466 {
13467 PyThreadState* __tstate = wxPyBeginAllowThreads();
13468 (arg1)->SetConfigPath((wxString const &)*arg2);
13469 wxPyEndAllowThreads(__tstate);
13470 if (PyErr_Occurred()) SWIG_fail;
13471 }
13472 resultobj = SWIG_Py_Void();
13473 {
13474 if (temp2)
13475 delete arg2;
13476 }
13477 return resultobj;
13478 fail:
13479 {
13480 if (temp2)
13481 delete arg2;
13482 }
13483 return NULL;
13484 }
13485
13486
13487 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13488 PyObject *resultobj = 0;
13489 wxString result;
13490
13491 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13492 {
13493 PyThreadState* __tstate = wxPyBeginAllowThreads();
13494 result = wxFontMapper::GetDefaultConfigPath();
13495 wxPyEndAllowThreads(__tstate);
13496 if (PyErr_Occurred()) SWIG_fail;
13497 }
13498 {
13499 #if wxUSE_UNICODE
13500 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13501 #else
13502 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13503 #endif
13504 }
13505 return resultobj;
13506 fail:
13507 return NULL;
13508 }
13509
13510
13511 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13512 PyObject *resultobj = 0;
13513 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13514 wxFontEncoding arg2 ;
13515 wxString const &arg3_defvalue = wxPyEmptyString ;
13516 wxString *arg3 = (wxString *) &arg3_defvalue ;
13517 bool arg4 = (bool) true ;
13518 PyObject *result = 0 ;
13519 void *argp1 = 0 ;
13520 int res1 = 0 ;
13521 int val2 ;
13522 int ecode2 = 0 ;
13523 bool temp3 = false ;
13524 bool val4 ;
13525 int ecode4 = 0 ;
13526 PyObject * obj0 = 0 ;
13527 PyObject * obj1 = 0 ;
13528 PyObject * obj2 = 0 ;
13529 PyObject * obj3 = 0 ;
13530 char * kwnames[] = {
13531 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13532 };
13533
13534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13536 if (!SWIG_IsOK(res1)) {
13537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13538 }
13539 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13540 ecode2 = SWIG_AsVal_int(obj1, &val2);
13541 if (!SWIG_IsOK(ecode2)) {
13542 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13543 }
13544 arg2 = static_cast< wxFontEncoding >(val2);
13545 if (obj2) {
13546 {
13547 arg3 = wxString_in_helper(obj2);
13548 if (arg3 == NULL) SWIG_fail;
13549 temp3 = true;
13550 }
13551 }
13552 if (obj3) {
13553 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13554 if (!SWIG_IsOK(ecode4)) {
13555 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13556 }
13557 arg4 = static_cast< bool >(val4);
13558 }
13559 {
13560 PyThreadState* __tstate = wxPyBeginAllowThreads();
13561 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13562 wxPyEndAllowThreads(__tstate);
13563 if (PyErr_Occurred()) SWIG_fail;
13564 }
13565 resultobj = result;
13566 {
13567 if (temp3)
13568 delete arg3;
13569 }
13570 return resultobj;
13571 fail:
13572 {
13573 if (temp3)
13574 delete arg3;
13575 }
13576 return NULL;
13577 }
13578
13579
13580 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13581 PyObject *resultobj = 0;
13582 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13583 wxFontEncoding arg2 ;
13584 wxString const &arg3_defvalue = wxPyEmptyString ;
13585 wxString *arg3 = (wxString *) &arg3_defvalue ;
13586 bool result;
13587 void *argp1 = 0 ;
13588 int res1 = 0 ;
13589 int val2 ;
13590 int ecode2 = 0 ;
13591 bool temp3 = false ;
13592 PyObject * obj0 = 0 ;
13593 PyObject * obj1 = 0 ;
13594 PyObject * obj2 = 0 ;
13595 char * kwnames[] = {
13596 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13597 };
13598
13599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13601 if (!SWIG_IsOK(res1)) {
13602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13603 }
13604 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13605 ecode2 = SWIG_AsVal_int(obj1, &val2);
13606 if (!SWIG_IsOK(ecode2)) {
13607 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13608 }
13609 arg2 = static_cast< wxFontEncoding >(val2);
13610 if (obj2) {
13611 {
13612 arg3 = wxString_in_helper(obj2);
13613 if (arg3 == NULL) SWIG_fail;
13614 temp3 = true;
13615 }
13616 }
13617 {
13618 PyThreadState* __tstate = wxPyBeginAllowThreads();
13619 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13620 wxPyEndAllowThreads(__tstate);
13621 if (PyErr_Occurred()) SWIG_fail;
13622 }
13623 {
13624 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13625 }
13626 {
13627 if (temp3)
13628 delete arg3;
13629 }
13630 return resultobj;
13631 fail:
13632 {
13633 if (temp3)
13634 delete arg3;
13635 }
13636 return NULL;
13637 }
13638
13639
13640 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13641 PyObject *resultobj = 0;
13642 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13643 wxWindow *arg2 = (wxWindow *) 0 ;
13644 void *argp1 = 0 ;
13645 int res1 = 0 ;
13646 void *argp2 = 0 ;
13647 int res2 = 0 ;
13648 PyObject * obj0 = 0 ;
13649 PyObject * obj1 = 0 ;
13650 char * kwnames[] = {
13651 (char *) "self",(char *) "parent", NULL
13652 };
13653
13654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13656 if (!SWIG_IsOK(res1)) {
13657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13658 }
13659 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13660 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13661 if (!SWIG_IsOK(res2)) {
13662 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13663 }
13664 arg2 = reinterpret_cast< wxWindow * >(argp2);
13665 {
13666 PyThreadState* __tstate = wxPyBeginAllowThreads();
13667 (arg1)->SetDialogParent(arg2);
13668 wxPyEndAllowThreads(__tstate);
13669 if (PyErr_Occurred()) SWIG_fail;
13670 }
13671 resultobj = SWIG_Py_Void();
13672 return resultobj;
13673 fail:
13674 return NULL;
13675 }
13676
13677
13678 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13679 PyObject *resultobj = 0;
13680 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13681 wxString *arg2 = 0 ;
13682 void *argp1 = 0 ;
13683 int res1 = 0 ;
13684 bool temp2 = false ;
13685 PyObject * obj0 = 0 ;
13686 PyObject * obj1 = 0 ;
13687 char * kwnames[] = {
13688 (char *) "self",(char *) "title", NULL
13689 };
13690
13691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13693 if (!SWIG_IsOK(res1)) {
13694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13695 }
13696 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13697 {
13698 arg2 = wxString_in_helper(obj1);
13699 if (arg2 == NULL) SWIG_fail;
13700 temp2 = true;
13701 }
13702 {
13703 PyThreadState* __tstate = wxPyBeginAllowThreads();
13704 (arg1)->SetDialogTitle((wxString const &)*arg2);
13705 wxPyEndAllowThreads(__tstate);
13706 if (PyErr_Occurred()) SWIG_fail;
13707 }
13708 resultobj = SWIG_Py_Void();
13709 {
13710 if (temp2)
13711 delete arg2;
13712 }
13713 return resultobj;
13714 fail:
13715 {
13716 if (temp2)
13717 delete arg2;
13718 }
13719 return NULL;
13720 }
13721
13722
13723 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13724 PyObject *obj;
13725 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13726 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13727 return SWIG_Py_Void();
13728 }
13729
13730 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13731 return SWIG_Python_InitShadowInstance(args);
13732 }
13733
13734 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13735 PyObject *resultobj = 0;
13736 int arg1 ;
13737 int arg2 ;
13738 int arg3 ;
13739 int arg4 ;
13740 bool arg5 = (bool) false ;
13741 wxString const &arg6_defvalue = wxPyEmptyString ;
13742 wxString *arg6 = (wxString *) &arg6_defvalue ;
13743 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13744 wxFont *result = 0 ;
13745 int val1 ;
13746 int ecode1 = 0 ;
13747 int val2 ;
13748 int ecode2 = 0 ;
13749 int val3 ;
13750 int ecode3 = 0 ;
13751 int val4 ;
13752 int ecode4 = 0 ;
13753 bool val5 ;
13754 int ecode5 = 0 ;
13755 bool temp6 = false ;
13756 int val7 ;
13757 int ecode7 = 0 ;
13758 PyObject * obj0 = 0 ;
13759 PyObject * obj1 = 0 ;
13760 PyObject * obj2 = 0 ;
13761 PyObject * obj3 = 0 ;
13762 PyObject * obj4 = 0 ;
13763 PyObject * obj5 = 0 ;
13764 PyObject * obj6 = 0 ;
13765 char * kwnames[] = {
13766 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13767 };
13768
13769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13770 ecode1 = SWIG_AsVal_int(obj0, &val1);
13771 if (!SWIG_IsOK(ecode1)) {
13772 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13773 }
13774 arg1 = static_cast< int >(val1);
13775 ecode2 = SWIG_AsVal_int(obj1, &val2);
13776 if (!SWIG_IsOK(ecode2)) {
13777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13778 }
13779 arg2 = static_cast< int >(val2);
13780 ecode3 = SWIG_AsVal_int(obj2, &val3);
13781 if (!SWIG_IsOK(ecode3)) {
13782 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13783 }
13784 arg3 = static_cast< int >(val3);
13785 ecode4 = SWIG_AsVal_int(obj3, &val4);
13786 if (!SWIG_IsOK(ecode4)) {
13787 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13788 }
13789 arg4 = static_cast< int >(val4);
13790 if (obj4) {
13791 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13792 if (!SWIG_IsOK(ecode5)) {
13793 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13794 }
13795 arg5 = static_cast< bool >(val5);
13796 }
13797 if (obj5) {
13798 {
13799 arg6 = wxString_in_helper(obj5);
13800 if (arg6 == NULL) SWIG_fail;
13801 temp6 = true;
13802 }
13803 }
13804 if (obj6) {
13805 ecode7 = SWIG_AsVal_int(obj6, &val7);
13806 if (!SWIG_IsOK(ecode7)) {
13807 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13808 }
13809 arg7 = static_cast< wxFontEncoding >(val7);
13810 }
13811 {
13812 if (!wxPyCheckForApp()) SWIG_fail;
13813 PyThreadState* __tstate = wxPyBeginAllowThreads();
13814 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13815 wxPyEndAllowThreads(__tstate);
13816 if (PyErr_Occurred()) SWIG_fail;
13817 }
13818 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13819 {
13820 if (temp6)
13821 delete arg6;
13822 }
13823 return resultobj;
13824 fail:
13825 {
13826 if (temp6)
13827 delete arg6;
13828 }
13829 return NULL;
13830 }
13831
13832
13833 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13834 PyObject *resultobj = 0;
13835 wxFont *arg1 = (wxFont *) 0 ;
13836 void *argp1 = 0 ;
13837 int res1 = 0 ;
13838 PyObject *swig_obj[1] ;
13839
13840 if (!args) SWIG_fail;
13841 swig_obj[0] = args;
13842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13843 if (!SWIG_IsOK(res1)) {
13844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13845 }
13846 arg1 = reinterpret_cast< wxFont * >(argp1);
13847 {
13848 PyThreadState* __tstate = wxPyBeginAllowThreads();
13849 delete arg1;
13850
13851 wxPyEndAllowThreads(__tstate);
13852 if (PyErr_Occurred()) SWIG_fail;
13853 }
13854 resultobj = SWIG_Py_Void();
13855 return resultobj;
13856 fail:
13857 return NULL;
13858 }
13859
13860
13861 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13862 PyObject *resultobj = 0;
13863 wxNativeFontInfo *arg1 = 0 ;
13864 wxFont *result = 0 ;
13865 void *argp1 = 0 ;
13866 int res1 = 0 ;
13867 PyObject * obj0 = 0 ;
13868 char * kwnames[] = {
13869 (char *) "info", NULL
13870 };
13871
13872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13873 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13874 if (!SWIG_IsOK(res1)) {
13875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13876 }
13877 if (!argp1) {
13878 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13879 }
13880 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13881 {
13882 if (!wxPyCheckForApp()) SWIG_fail;
13883 PyThreadState* __tstate = wxPyBeginAllowThreads();
13884 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13885 wxPyEndAllowThreads(__tstate);
13886 if (PyErr_Occurred()) SWIG_fail;
13887 }
13888 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13889 return resultobj;
13890 fail:
13891 return NULL;
13892 }
13893
13894
13895 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13896 PyObject *resultobj = 0;
13897 wxString *arg1 = 0 ;
13898 wxFont *result = 0 ;
13899 bool temp1 = false ;
13900 PyObject * obj0 = 0 ;
13901 char * kwnames[] = {
13902 (char *) "info", NULL
13903 };
13904
13905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13906 {
13907 arg1 = wxString_in_helper(obj0);
13908 if (arg1 == NULL) SWIG_fail;
13909 temp1 = true;
13910 }
13911 {
13912 if (!wxPyCheckForApp()) SWIG_fail;
13913 PyThreadState* __tstate = wxPyBeginAllowThreads();
13914 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13915 wxPyEndAllowThreads(__tstate);
13916 if (PyErr_Occurred()) SWIG_fail;
13917 }
13918 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13919 {
13920 if (temp1)
13921 delete arg1;
13922 }
13923 return resultobj;
13924 fail:
13925 {
13926 if (temp1)
13927 delete arg1;
13928 }
13929 return NULL;
13930 }
13931
13932
13933 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13934 PyObject *resultobj = 0;
13935 int arg1 ;
13936 wxFontFamily arg2 ;
13937 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13938 wxString const &arg4_defvalue = wxPyEmptyString ;
13939 wxString *arg4 = (wxString *) &arg4_defvalue ;
13940 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13941 wxFont *result = 0 ;
13942 int val1 ;
13943 int ecode1 = 0 ;
13944 int val2 ;
13945 int ecode2 = 0 ;
13946 int val3 ;
13947 int ecode3 = 0 ;
13948 bool temp4 = false ;
13949 int val5 ;
13950 int ecode5 = 0 ;
13951 PyObject * obj0 = 0 ;
13952 PyObject * obj1 = 0 ;
13953 PyObject * obj2 = 0 ;
13954 PyObject * obj3 = 0 ;
13955 PyObject * obj4 = 0 ;
13956 char * kwnames[] = {
13957 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13958 };
13959
13960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13961 ecode1 = SWIG_AsVal_int(obj0, &val1);
13962 if (!SWIG_IsOK(ecode1)) {
13963 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13964 }
13965 arg1 = static_cast< int >(val1);
13966 ecode2 = SWIG_AsVal_int(obj1, &val2);
13967 if (!SWIG_IsOK(ecode2)) {
13968 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13969 }
13970 arg2 = static_cast< wxFontFamily >(val2);
13971 if (obj2) {
13972 ecode3 = SWIG_AsVal_int(obj2, &val3);
13973 if (!SWIG_IsOK(ecode3)) {
13974 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13975 }
13976 arg3 = static_cast< int >(val3);
13977 }
13978 if (obj3) {
13979 {
13980 arg4 = wxString_in_helper(obj3);
13981 if (arg4 == NULL) SWIG_fail;
13982 temp4 = true;
13983 }
13984 }
13985 if (obj4) {
13986 ecode5 = SWIG_AsVal_int(obj4, &val5);
13987 if (!SWIG_IsOK(ecode5)) {
13988 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13989 }
13990 arg5 = static_cast< wxFontEncoding >(val5);
13991 }
13992 {
13993 if (!wxPyCheckForApp()) SWIG_fail;
13994 PyThreadState* __tstate = wxPyBeginAllowThreads();
13995 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13996 wxPyEndAllowThreads(__tstate);
13997 if (PyErr_Occurred()) SWIG_fail;
13998 }
13999 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14000 {
14001 if (temp4)
14002 delete arg4;
14003 }
14004 return resultobj;
14005 fail:
14006 {
14007 if (temp4)
14008 delete arg4;
14009 }
14010 return NULL;
14011 }
14012
14013
14014 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14015 PyObject *resultobj = 0;
14016 wxSize *arg1 = 0 ;
14017 int arg2 ;
14018 int arg3 ;
14019 int arg4 ;
14020 bool arg5 = (bool) false ;
14021 wxString const &arg6_defvalue = wxEmptyString ;
14022 wxString *arg6 = (wxString *) &arg6_defvalue ;
14023 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14024 wxFont *result = 0 ;
14025 wxSize temp1 ;
14026 int val2 ;
14027 int ecode2 = 0 ;
14028 int val3 ;
14029 int ecode3 = 0 ;
14030 int val4 ;
14031 int ecode4 = 0 ;
14032 bool val5 ;
14033 int ecode5 = 0 ;
14034 bool temp6 = false ;
14035 int val7 ;
14036 int ecode7 = 0 ;
14037 PyObject * obj0 = 0 ;
14038 PyObject * obj1 = 0 ;
14039 PyObject * obj2 = 0 ;
14040 PyObject * obj3 = 0 ;
14041 PyObject * obj4 = 0 ;
14042 PyObject * obj5 = 0 ;
14043 PyObject * obj6 = 0 ;
14044 char * kwnames[] = {
14045 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14046 };
14047
14048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14049 {
14050 arg1 = &temp1;
14051 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14052 }
14053 ecode2 = SWIG_AsVal_int(obj1, &val2);
14054 if (!SWIG_IsOK(ecode2)) {
14055 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14056 }
14057 arg2 = static_cast< int >(val2);
14058 ecode3 = SWIG_AsVal_int(obj2, &val3);
14059 if (!SWIG_IsOK(ecode3)) {
14060 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14061 }
14062 arg3 = static_cast< int >(val3);
14063 ecode4 = SWIG_AsVal_int(obj3, &val4);
14064 if (!SWIG_IsOK(ecode4)) {
14065 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14066 }
14067 arg4 = static_cast< int >(val4);
14068 if (obj4) {
14069 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14070 if (!SWIG_IsOK(ecode5)) {
14071 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14072 }
14073 arg5 = static_cast< bool >(val5);
14074 }
14075 if (obj5) {
14076 {
14077 arg6 = wxString_in_helper(obj5);
14078 if (arg6 == NULL) SWIG_fail;
14079 temp6 = true;
14080 }
14081 }
14082 if (obj6) {
14083 ecode7 = SWIG_AsVal_int(obj6, &val7);
14084 if (!SWIG_IsOK(ecode7)) {
14085 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14086 }
14087 arg7 = static_cast< wxFontEncoding >(val7);
14088 }
14089 {
14090 if (!wxPyCheckForApp()) SWIG_fail;
14091 PyThreadState* __tstate = wxPyBeginAllowThreads();
14092 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14093 wxPyEndAllowThreads(__tstate);
14094 if (PyErr_Occurred()) SWIG_fail;
14095 }
14096 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14097 {
14098 if (temp6)
14099 delete arg6;
14100 }
14101 return resultobj;
14102 fail:
14103 {
14104 if (temp6)
14105 delete arg6;
14106 }
14107 return NULL;
14108 }
14109
14110
14111 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14112 PyObject *resultobj = 0;
14113 wxSize *arg1 = 0 ;
14114 wxFontFamily arg2 ;
14115 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14116 wxString const &arg4_defvalue = wxEmptyString ;
14117 wxString *arg4 = (wxString *) &arg4_defvalue ;
14118 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14119 wxFont *result = 0 ;
14120 wxSize temp1 ;
14121 int val2 ;
14122 int ecode2 = 0 ;
14123 int val3 ;
14124 int ecode3 = 0 ;
14125 bool temp4 = false ;
14126 int val5 ;
14127 int ecode5 = 0 ;
14128 PyObject * obj0 = 0 ;
14129 PyObject * obj1 = 0 ;
14130 PyObject * obj2 = 0 ;
14131 PyObject * obj3 = 0 ;
14132 PyObject * obj4 = 0 ;
14133 char * kwnames[] = {
14134 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14135 };
14136
14137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14138 {
14139 arg1 = &temp1;
14140 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14141 }
14142 ecode2 = SWIG_AsVal_int(obj1, &val2);
14143 if (!SWIG_IsOK(ecode2)) {
14144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14145 }
14146 arg2 = static_cast< wxFontFamily >(val2);
14147 if (obj2) {
14148 ecode3 = SWIG_AsVal_int(obj2, &val3);
14149 if (!SWIG_IsOK(ecode3)) {
14150 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14151 }
14152 arg3 = static_cast< int >(val3);
14153 }
14154 if (obj3) {
14155 {
14156 arg4 = wxString_in_helper(obj3);
14157 if (arg4 == NULL) SWIG_fail;
14158 temp4 = true;
14159 }
14160 }
14161 if (obj4) {
14162 ecode5 = SWIG_AsVal_int(obj4, &val5);
14163 if (!SWIG_IsOK(ecode5)) {
14164 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14165 }
14166 arg5 = static_cast< wxFontEncoding >(val5);
14167 }
14168 {
14169 if (!wxPyCheckForApp()) SWIG_fail;
14170 PyThreadState* __tstate = wxPyBeginAllowThreads();
14171 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14172 wxPyEndAllowThreads(__tstate);
14173 if (PyErr_Occurred()) SWIG_fail;
14174 }
14175 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14176 {
14177 if (temp4)
14178 delete arg4;
14179 }
14180 return resultobj;
14181 fail:
14182 {
14183 if (temp4)
14184 delete arg4;
14185 }
14186 return NULL;
14187 }
14188
14189
14190 SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14191 PyObject *resultobj = 0;
14192 wxFont *arg1 = (wxFont *) 0 ;
14193 bool result;
14194 void *argp1 = 0 ;
14195 int res1 = 0 ;
14196 PyObject *swig_obj[1] ;
14197
14198 if (!args) SWIG_fail;
14199 swig_obj[0] = args;
14200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14201 if (!SWIG_IsOK(res1)) {
14202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
14203 }
14204 arg1 = reinterpret_cast< wxFont * >(argp1);
14205 {
14206 PyThreadState* __tstate = wxPyBeginAllowThreads();
14207 result = (bool)((wxFont const *)arg1)->IsOk();
14208 wxPyEndAllowThreads(__tstate);
14209 if (PyErr_Occurred()) SWIG_fail;
14210 }
14211 {
14212 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14213 }
14214 return resultobj;
14215 fail:
14216 return NULL;
14217 }
14218
14219
14220 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14221 PyObject *resultobj = 0;
14222 wxFont *arg1 = (wxFont *) 0 ;
14223 wxFont *arg2 = (wxFont *) 0 ;
14224 bool result;
14225 void *argp1 = 0 ;
14226 int res1 = 0 ;
14227 void *argp2 = 0 ;
14228 int res2 = 0 ;
14229 PyObject * obj0 = 0 ;
14230 PyObject * obj1 = 0 ;
14231 char * kwnames[] = {
14232 (char *) "self",(char *) "other", NULL
14233 };
14234
14235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14237 if (!SWIG_IsOK(res1)) {
14238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14239 }
14240 arg1 = reinterpret_cast< wxFont * >(argp1);
14241 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14242 if (!SWIG_IsOK(res2)) {
14243 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14244 }
14245 arg2 = reinterpret_cast< wxFont * >(argp2);
14246 {
14247 PyThreadState* __tstate = wxPyBeginAllowThreads();
14248 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14249 wxPyEndAllowThreads(__tstate);
14250 if (PyErr_Occurred()) SWIG_fail;
14251 }
14252 {
14253 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14254 }
14255 return resultobj;
14256 fail:
14257 return NULL;
14258 }
14259
14260
14261 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14262 PyObject *resultobj = 0;
14263 wxFont *arg1 = (wxFont *) 0 ;
14264 wxFont *arg2 = (wxFont *) 0 ;
14265 bool result;
14266 void *argp1 = 0 ;
14267 int res1 = 0 ;
14268 void *argp2 = 0 ;
14269 int res2 = 0 ;
14270 PyObject * obj0 = 0 ;
14271 PyObject * obj1 = 0 ;
14272 char * kwnames[] = {
14273 (char *) "self",(char *) "other", NULL
14274 };
14275
14276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14278 if (!SWIG_IsOK(res1)) {
14279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14280 }
14281 arg1 = reinterpret_cast< wxFont * >(argp1);
14282 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14283 if (!SWIG_IsOK(res2)) {
14284 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14285 }
14286 arg2 = reinterpret_cast< wxFont * >(argp2);
14287 {
14288 PyThreadState* __tstate = wxPyBeginAllowThreads();
14289 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14290 wxPyEndAllowThreads(__tstate);
14291 if (PyErr_Occurred()) SWIG_fail;
14292 }
14293 {
14294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14295 }
14296 return resultobj;
14297 fail:
14298 return NULL;
14299 }
14300
14301
14302 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14303 PyObject *resultobj = 0;
14304 wxFont *arg1 = (wxFont *) 0 ;
14305 int result;
14306 void *argp1 = 0 ;
14307 int res1 = 0 ;
14308 PyObject *swig_obj[1] ;
14309
14310 if (!args) SWIG_fail;
14311 swig_obj[0] = args;
14312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14313 if (!SWIG_IsOK(res1)) {
14314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14315 }
14316 arg1 = reinterpret_cast< wxFont * >(argp1);
14317 {
14318 PyThreadState* __tstate = wxPyBeginAllowThreads();
14319 result = (int)((wxFont const *)arg1)->GetPointSize();
14320 wxPyEndAllowThreads(__tstate);
14321 if (PyErr_Occurred()) SWIG_fail;
14322 }
14323 resultobj = SWIG_From_int(static_cast< int >(result));
14324 return resultobj;
14325 fail:
14326 return NULL;
14327 }
14328
14329
14330 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14331 PyObject *resultobj = 0;
14332 wxFont *arg1 = (wxFont *) 0 ;
14333 wxSize result;
14334 void *argp1 = 0 ;
14335 int res1 = 0 ;
14336 PyObject *swig_obj[1] ;
14337
14338 if (!args) SWIG_fail;
14339 swig_obj[0] = args;
14340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14341 if (!SWIG_IsOK(res1)) {
14342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14343 }
14344 arg1 = reinterpret_cast< wxFont * >(argp1);
14345 {
14346 PyThreadState* __tstate = wxPyBeginAllowThreads();
14347 result = ((wxFont const *)arg1)->GetPixelSize();
14348 wxPyEndAllowThreads(__tstate);
14349 if (PyErr_Occurred()) SWIG_fail;
14350 }
14351 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14352 return resultobj;
14353 fail:
14354 return NULL;
14355 }
14356
14357
14358 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14359 PyObject *resultobj = 0;
14360 wxFont *arg1 = (wxFont *) 0 ;
14361 bool result;
14362 void *argp1 = 0 ;
14363 int res1 = 0 ;
14364 PyObject *swig_obj[1] ;
14365
14366 if (!args) SWIG_fail;
14367 swig_obj[0] = args;
14368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14369 if (!SWIG_IsOK(res1)) {
14370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14371 }
14372 arg1 = reinterpret_cast< wxFont * >(argp1);
14373 {
14374 PyThreadState* __tstate = wxPyBeginAllowThreads();
14375 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14376 wxPyEndAllowThreads(__tstate);
14377 if (PyErr_Occurred()) SWIG_fail;
14378 }
14379 {
14380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14381 }
14382 return resultobj;
14383 fail:
14384 return NULL;
14385 }
14386
14387
14388 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14389 PyObject *resultobj = 0;
14390 wxFont *arg1 = (wxFont *) 0 ;
14391 int result;
14392 void *argp1 = 0 ;
14393 int res1 = 0 ;
14394 PyObject *swig_obj[1] ;
14395
14396 if (!args) SWIG_fail;
14397 swig_obj[0] = args;
14398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14399 if (!SWIG_IsOK(res1)) {
14400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14401 }
14402 arg1 = reinterpret_cast< wxFont * >(argp1);
14403 {
14404 PyThreadState* __tstate = wxPyBeginAllowThreads();
14405 result = (int)((wxFont const *)arg1)->GetFamily();
14406 wxPyEndAllowThreads(__tstate);
14407 if (PyErr_Occurred()) SWIG_fail;
14408 }
14409 resultobj = SWIG_From_int(static_cast< int >(result));
14410 return resultobj;
14411 fail:
14412 return NULL;
14413 }
14414
14415
14416 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14417 PyObject *resultobj = 0;
14418 wxFont *arg1 = (wxFont *) 0 ;
14419 int result;
14420 void *argp1 = 0 ;
14421 int res1 = 0 ;
14422 PyObject *swig_obj[1] ;
14423
14424 if (!args) SWIG_fail;
14425 swig_obj[0] = args;
14426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14427 if (!SWIG_IsOK(res1)) {
14428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14429 }
14430 arg1 = reinterpret_cast< wxFont * >(argp1);
14431 {
14432 PyThreadState* __tstate = wxPyBeginAllowThreads();
14433 result = (int)((wxFont const *)arg1)->GetStyle();
14434 wxPyEndAllowThreads(__tstate);
14435 if (PyErr_Occurred()) SWIG_fail;
14436 }
14437 resultobj = SWIG_From_int(static_cast< int >(result));
14438 return resultobj;
14439 fail:
14440 return NULL;
14441 }
14442
14443
14444 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14445 PyObject *resultobj = 0;
14446 wxFont *arg1 = (wxFont *) 0 ;
14447 int result;
14448 void *argp1 = 0 ;
14449 int res1 = 0 ;
14450 PyObject *swig_obj[1] ;
14451
14452 if (!args) SWIG_fail;
14453 swig_obj[0] = args;
14454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14455 if (!SWIG_IsOK(res1)) {
14456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14457 }
14458 arg1 = reinterpret_cast< wxFont * >(argp1);
14459 {
14460 PyThreadState* __tstate = wxPyBeginAllowThreads();
14461 result = (int)((wxFont const *)arg1)->GetWeight();
14462 wxPyEndAllowThreads(__tstate);
14463 if (PyErr_Occurred()) SWIG_fail;
14464 }
14465 resultobj = SWIG_From_int(static_cast< int >(result));
14466 return resultobj;
14467 fail:
14468 return NULL;
14469 }
14470
14471
14472 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14473 PyObject *resultobj = 0;
14474 wxFont *arg1 = (wxFont *) 0 ;
14475 bool result;
14476 void *argp1 = 0 ;
14477 int res1 = 0 ;
14478 PyObject *swig_obj[1] ;
14479
14480 if (!args) SWIG_fail;
14481 swig_obj[0] = args;
14482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14483 if (!SWIG_IsOK(res1)) {
14484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14485 }
14486 arg1 = reinterpret_cast< wxFont * >(argp1);
14487 {
14488 PyThreadState* __tstate = wxPyBeginAllowThreads();
14489 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14490 wxPyEndAllowThreads(__tstate);
14491 if (PyErr_Occurred()) SWIG_fail;
14492 }
14493 {
14494 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14495 }
14496 return resultobj;
14497 fail:
14498 return NULL;
14499 }
14500
14501
14502 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14503 PyObject *resultobj = 0;
14504 wxFont *arg1 = (wxFont *) 0 ;
14505 wxString result;
14506 void *argp1 = 0 ;
14507 int res1 = 0 ;
14508 PyObject *swig_obj[1] ;
14509
14510 if (!args) SWIG_fail;
14511 swig_obj[0] = args;
14512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14513 if (!SWIG_IsOK(res1)) {
14514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14515 }
14516 arg1 = reinterpret_cast< wxFont * >(argp1);
14517 {
14518 PyThreadState* __tstate = wxPyBeginAllowThreads();
14519 result = ((wxFont const *)arg1)->GetFaceName();
14520 wxPyEndAllowThreads(__tstate);
14521 if (PyErr_Occurred()) SWIG_fail;
14522 }
14523 {
14524 #if wxUSE_UNICODE
14525 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14526 #else
14527 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14528 #endif
14529 }
14530 return resultobj;
14531 fail:
14532 return NULL;
14533 }
14534
14535
14536 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14537 PyObject *resultobj = 0;
14538 wxFont *arg1 = (wxFont *) 0 ;
14539 wxFontEncoding result;
14540 void *argp1 = 0 ;
14541 int res1 = 0 ;
14542 PyObject *swig_obj[1] ;
14543
14544 if (!args) SWIG_fail;
14545 swig_obj[0] = args;
14546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14547 if (!SWIG_IsOK(res1)) {
14548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14549 }
14550 arg1 = reinterpret_cast< wxFont * >(argp1);
14551 {
14552 PyThreadState* __tstate = wxPyBeginAllowThreads();
14553 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14554 wxPyEndAllowThreads(__tstate);
14555 if (PyErr_Occurred()) SWIG_fail;
14556 }
14557 resultobj = SWIG_From_int(static_cast< int >(result));
14558 return resultobj;
14559 fail:
14560 return NULL;
14561 }
14562
14563
14564 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14565 PyObject *resultobj = 0;
14566 wxFont *arg1 = (wxFont *) 0 ;
14567 wxNativeFontInfo *result = 0 ;
14568 void *argp1 = 0 ;
14569 int res1 = 0 ;
14570 PyObject *swig_obj[1] ;
14571
14572 if (!args) SWIG_fail;
14573 swig_obj[0] = args;
14574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14575 if (!SWIG_IsOK(res1)) {
14576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14577 }
14578 arg1 = reinterpret_cast< wxFont * >(argp1);
14579 {
14580 PyThreadState* __tstate = wxPyBeginAllowThreads();
14581 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14582 wxPyEndAllowThreads(__tstate);
14583 if (PyErr_Occurred()) SWIG_fail;
14584 }
14585 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14586 return resultobj;
14587 fail:
14588 return NULL;
14589 }
14590
14591
14592 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14593 PyObject *resultobj = 0;
14594 wxFont *arg1 = (wxFont *) 0 ;
14595 bool result;
14596 void *argp1 = 0 ;
14597 int res1 = 0 ;
14598 PyObject *swig_obj[1] ;
14599
14600 if (!args) SWIG_fail;
14601 swig_obj[0] = args;
14602 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14603 if (!SWIG_IsOK(res1)) {
14604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14605 }
14606 arg1 = reinterpret_cast< wxFont * >(argp1);
14607 {
14608 PyThreadState* __tstate = wxPyBeginAllowThreads();
14609 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14610 wxPyEndAllowThreads(__tstate);
14611 if (PyErr_Occurred()) SWIG_fail;
14612 }
14613 {
14614 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14615 }
14616 return resultobj;
14617 fail:
14618 return NULL;
14619 }
14620
14621
14622 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14623 PyObject *resultobj = 0;
14624 wxFont *arg1 = (wxFont *) 0 ;
14625 wxString result;
14626 void *argp1 = 0 ;
14627 int res1 = 0 ;
14628 PyObject *swig_obj[1] ;
14629
14630 if (!args) SWIG_fail;
14631 swig_obj[0] = args;
14632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14633 if (!SWIG_IsOK(res1)) {
14634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14635 }
14636 arg1 = reinterpret_cast< wxFont * >(argp1);
14637 {
14638 PyThreadState* __tstate = wxPyBeginAllowThreads();
14639 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14640 wxPyEndAllowThreads(__tstate);
14641 if (PyErr_Occurred()) SWIG_fail;
14642 }
14643 {
14644 #if wxUSE_UNICODE
14645 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14646 #else
14647 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14648 #endif
14649 }
14650 return resultobj;
14651 fail:
14652 return NULL;
14653 }
14654
14655
14656 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14657 PyObject *resultobj = 0;
14658 wxFont *arg1 = (wxFont *) 0 ;
14659 wxString result;
14660 void *argp1 = 0 ;
14661 int res1 = 0 ;
14662 PyObject *swig_obj[1] ;
14663
14664 if (!args) SWIG_fail;
14665 swig_obj[0] = args;
14666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14667 if (!SWIG_IsOK(res1)) {
14668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14669 }
14670 arg1 = reinterpret_cast< wxFont * >(argp1);
14671 {
14672 PyThreadState* __tstate = wxPyBeginAllowThreads();
14673 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14674 wxPyEndAllowThreads(__tstate);
14675 if (PyErr_Occurred()) SWIG_fail;
14676 }
14677 {
14678 #if wxUSE_UNICODE
14679 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14680 #else
14681 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14682 #endif
14683 }
14684 return resultobj;
14685 fail:
14686 return NULL;
14687 }
14688
14689
14690 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14691 PyObject *resultobj = 0;
14692 wxFont *arg1 = (wxFont *) 0 ;
14693 int arg2 ;
14694 void *argp1 = 0 ;
14695 int res1 = 0 ;
14696 int val2 ;
14697 int ecode2 = 0 ;
14698 PyObject * obj0 = 0 ;
14699 PyObject * obj1 = 0 ;
14700 char * kwnames[] = {
14701 (char *) "self",(char *) "pointSize", NULL
14702 };
14703
14704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14706 if (!SWIG_IsOK(res1)) {
14707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14708 }
14709 arg1 = reinterpret_cast< wxFont * >(argp1);
14710 ecode2 = SWIG_AsVal_int(obj1, &val2);
14711 if (!SWIG_IsOK(ecode2)) {
14712 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14713 }
14714 arg2 = static_cast< int >(val2);
14715 {
14716 PyThreadState* __tstate = wxPyBeginAllowThreads();
14717 (arg1)->SetPointSize(arg2);
14718 wxPyEndAllowThreads(__tstate);
14719 if (PyErr_Occurred()) SWIG_fail;
14720 }
14721 resultobj = SWIG_Py_Void();
14722 return resultobj;
14723 fail:
14724 return NULL;
14725 }
14726
14727
14728 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14729 PyObject *resultobj = 0;
14730 wxFont *arg1 = (wxFont *) 0 ;
14731 wxSize *arg2 = 0 ;
14732 void *argp1 = 0 ;
14733 int res1 = 0 ;
14734 wxSize temp2 ;
14735 PyObject * obj0 = 0 ;
14736 PyObject * obj1 = 0 ;
14737 char * kwnames[] = {
14738 (char *) "self",(char *) "pixelSize", NULL
14739 };
14740
14741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14743 if (!SWIG_IsOK(res1)) {
14744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14745 }
14746 arg1 = reinterpret_cast< wxFont * >(argp1);
14747 {
14748 arg2 = &temp2;
14749 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14750 }
14751 {
14752 PyThreadState* __tstate = wxPyBeginAllowThreads();
14753 (arg1)->SetPixelSize((wxSize const &)*arg2);
14754 wxPyEndAllowThreads(__tstate);
14755 if (PyErr_Occurred()) SWIG_fail;
14756 }
14757 resultobj = SWIG_Py_Void();
14758 return resultobj;
14759 fail:
14760 return NULL;
14761 }
14762
14763
14764 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14765 PyObject *resultobj = 0;
14766 wxFont *arg1 = (wxFont *) 0 ;
14767 int arg2 ;
14768 void *argp1 = 0 ;
14769 int res1 = 0 ;
14770 int val2 ;
14771 int ecode2 = 0 ;
14772 PyObject * obj0 = 0 ;
14773 PyObject * obj1 = 0 ;
14774 char * kwnames[] = {
14775 (char *) "self",(char *) "family", NULL
14776 };
14777
14778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14780 if (!SWIG_IsOK(res1)) {
14781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14782 }
14783 arg1 = reinterpret_cast< wxFont * >(argp1);
14784 ecode2 = SWIG_AsVal_int(obj1, &val2);
14785 if (!SWIG_IsOK(ecode2)) {
14786 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14787 }
14788 arg2 = static_cast< int >(val2);
14789 {
14790 PyThreadState* __tstate = wxPyBeginAllowThreads();
14791 (arg1)->SetFamily(arg2);
14792 wxPyEndAllowThreads(__tstate);
14793 if (PyErr_Occurred()) SWIG_fail;
14794 }
14795 resultobj = SWIG_Py_Void();
14796 return resultobj;
14797 fail:
14798 return NULL;
14799 }
14800
14801
14802 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14803 PyObject *resultobj = 0;
14804 wxFont *arg1 = (wxFont *) 0 ;
14805 int arg2 ;
14806 void *argp1 = 0 ;
14807 int res1 = 0 ;
14808 int val2 ;
14809 int ecode2 = 0 ;
14810 PyObject * obj0 = 0 ;
14811 PyObject * obj1 = 0 ;
14812 char * kwnames[] = {
14813 (char *) "self",(char *) "style", NULL
14814 };
14815
14816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14818 if (!SWIG_IsOK(res1)) {
14819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14820 }
14821 arg1 = reinterpret_cast< wxFont * >(argp1);
14822 ecode2 = SWIG_AsVal_int(obj1, &val2);
14823 if (!SWIG_IsOK(ecode2)) {
14824 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14825 }
14826 arg2 = static_cast< int >(val2);
14827 {
14828 PyThreadState* __tstate = wxPyBeginAllowThreads();
14829 (arg1)->SetStyle(arg2);
14830 wxPyEndAllowThreads(__tstate);
14831 if (PyErr_Occurred()) SWIG_fail;
14832 }
14833 resultobj = SWIG_Py_Void();
14834 return resultobj;
14835 fail:
14836 return NULL;
14837 }
14838
14839
14840 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14841 PyObject *resultobj = 0;
14842 wxFont *arg1 = (wxFont *) 0 ;
14843 int arg2 ;
14844 void *argp1 = 0 ;
14845 int res1 = 0 ;
14846 int val2 ;
14847 int ecode2 = 0 ;
14848 PyObject * obj0 = 0 ;
14849 PyObject * obj1 = 0 ;
14850 char * kwnames[] = {
14851 (char *) "self",(char *) "weight", NULL
14852 };
14853
14854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14856 if (!SWIG_IsOK(res1)) {
14857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14858 }
14859 arg1 = reinterpret_cast< wxFont * >(argp1);
14860 ecode2 = SWIG_AsVal_int(obj1, &val2);
14861 if (!SWIG_IsOK(ecode2)) {
14862 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14863 }
14864 arg2 = static_cast< int >(val2);
14865 {
14866 PyThreadState* __tstate = wxPyBeginAllowThreads();
14867 (arg1)->SetWeight(arg2);
14868 wxPyEndAllowThreads(__tstate);
14869 if (PyErr_Occurred()) SWIG_fail;
14870 }
14871 resultobj = SWIG_Py_Void();
14872 return resultobj;
14873 fail:
14874 return NULL;
14875 }
14876
14877
14878 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14879 PyObject *resultobj = 0;
14880 wxFont *arg1 = (wxFont *) 0 ;
14881 wxString *arg2 = 0 ;
14882 bool result;
14883 void *argp1 = 0 ;
14884 int res1 = 0 ;
14885 bool temp2 = false ;
14886 PyObject * obj0 = 0 ;
14887 PyObject * obj1 = 0 ;
14888 char * kwnames[] = {
14889 (char *) "self",(char *) "faceName", NULL
14890 };
14891
14892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14894 if (!SWIG_IsOK(res1)) {
14895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14896 }
14897 arg1 = reinterpret_cast< wxFont * >(argp1);
14898 {
14899 arg2 = wxString_in_helper(obj1);
14900 if (arg2 == NULL) SWIG_fail;
14901 temp2 = true;
14902 }
14903 {
14904 PyThreadState* __tstate = wxPyBeginAllowThreads();
14905 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
14906 wxPyEndAllowThreads(__tstate);
14907 if (PyErr_Occurred()) SWIG_fail;
14908 }
14909 {
14910 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14911 }
14912 {
14913 if (temp2)
14914 delete arg2;
14915 }
14916 return resultobj;
14917 fail:
14918 {
14919 if (temp2)
14920 delete arg2;
14921 }
14922 return NULL;
14923 }
14924
14925
14926 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14927 PyObject *resultobj = 0;
14928 wxFont *arg1 = (wxFont *) 0 ;
14929 bool arg2 ;
14930 void *argp1 = 0 ;
14931 int res1 = 0 ;
14932 bool val2 ;
14933 int ecode2 = 0 ;
14934 PyObject * obj0 = 0 ;
14935 PyObject * obj1 = 0 ;
14936 char * kwnames[] = {
14937 (char *) "self",(char *) "underlined", NULL
14938 };
14939
14940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14942 if (!SWIG_IsOK(res1)) {
14943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14944 }
14945 arg1 = reinterpret_cast< wxFont * >(argp1);
14946 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14947 if (!SWIG_IsOK(ecode2)) {
14948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14949 }
14950 arg2 = static_cast< bool >(val2);
14951 {
14952 PyThreadState* __tstate = wxPyBeginAllowThreads();
14953 (arg1)->SetUnderlined(arg2);
14954 wxPyEndAllowThreads(__tstate);
14955 if (PyErr_Occurred()) SWIG_fail;
14956 }
14957 resultobj = SWIG_Py_Void();
14958 return resultobj;
14959 fail:
14960 return NULL;
14961 }
14962
14963
14964 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14965 PyObject *resultobj = 0;
14966 wxFont *arg1 = (wxFont *) 0 ;
14967 wxFontEncoding arg2 ;
14968 void *argp1 = 0 ;
14969 int res1 = 0 ;
14970 int val2 ;
14971 int ecode2 = 0 ;
14972 PyObject * obj0 = 0 ;
14973 PyObject * obj1 = 0 ;
14974 char * kwnames[] = {
14975 (char *) "self",(char *) "encoding", NULL
14976 };
14977
14978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14980 if (!SWIG_IsOK(res1)) {
14981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
14982 }
14983 arg1 = reinterpret_cast< wxFont * >(argp1);
14984 ecode2 = SWIG_AsVal_int(obj1, &val2);
14985 if (!SWIG_IsOK(ecode2)) {
14986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14987 }
14988 arg2 = static_cast< wxFontEncoding >(val2);
14989 {
14990 PyThreadState* __tstate = wxPyBeginAllowThreads();
14991 (arg1)->SetEncoding(arg2);
14992 wxPyEndAllowThreads(__tstate);
14993 if (PyErr_Occurred()) SWIG_fail;
14994 }
14995 resultobj = SWIG_Py_Void();
14996 return resultobj;
14997 fail:
14998 return NULL;
14999 }
15000
15001
15002 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15003 PyObject *resultobj = 0;
15004 wxFont *arg1 = (wxFont *) 0 ;
15005 wxNativeFontInfo *arg2 = 0 ;
15006 void *argp1 = 0 ;
15007 int res1 = 0 ;
15008 void *argp2 = 0 ;
15009 int res2 = 0 ;
15010 PyObject * obj0 = 0 ;
15011 PyObject * obj1 = 0 ;
15012 char * kwnames[] = {
15013 (char *) "self",(char *) "info", NULL
15014 };
15015
15016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15018 if (!SWIG_IsOK(res1)) {
15019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15020 }
15021 arg1 = reinterpret_cast< wxFont * >(argp1);
15022 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15023 if (!SWIG_IsOK(res2)) {
15024 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15025 }
15026 if (!argp2) {
15027 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15028 }
15029 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15030 {
15031 PyThreadState* __tstate = wxPyBeginAllowThreads();
15032 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15033 wxPyEndAllowThreads(__tstate);
15034 if (PyErr_Occurred()) SWIG_fail;
15035 }
15036 resultobj = SWIG_Py_Void();
15037 return resultobj;
15038 fail:
15039 return NULL;
15040 }
15041
15042
15043 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15044 PyObject *resultobj = 0;
15045 wxFont *arg1 = (wxFont *) 0 ;
15046 wxString *arg2 = 0 ;
15047 bool result;
15048 void *argp1 = 0 ;
15049 int res1 = 0 ;
15050 bool temp2 = false ;
15051 PyObject * obj0 = 0 ;
15052 PyObject * obj1 = 0 ;
15053 char * kwnames[] = {
15054 (char *) "self",(char *) "info", NULL
15055 };
15056
15057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15059 if (!SWIG_IsOK(res1)) {
15060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15061 }
15062 arg1 = reinterpret_cast< wxFont * >(argp1);
15063 {
15064 arg2 = wxString_in_helper(obj1);
15065 if (arg2 == NULL) SWIG_fail;
15066 temp2 = true;
15067 }
15068 {
15069 PyThreadState* __tstate = wxPyBeginAllowThreads();
15070 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
15071 wxPyEndAllowThreads(__tstate);
15072 if (PyErr_Occurred()) SWIG_fail;
15073 }
15074 {
15075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15076 }
15077 {
15078 if (temp2)
15079 delete arg2;
15080 }
15081 return resultobj;
15082 fail:
15083 {
15084 if (temp2)
15085 delete arg2;
15086 }
15087 return NULL;
15088 }
15089
15090
15091 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15092 PyObject *resultobj = 0;
15093 wxFont *arg1 = (wxFont *) 0 ;
15094 wxString *arg2 = 0 ;
15095 bool result;
15096 void *argp1 = 0 ;
15097 int res1 = 0 ;
15098 bool temp2 = false ;
15099 PyObject * obj0 = 0 ;
15100 PyObject * obj1 = 0 ;
15101 char * kwnames[] = {
15102 (char *) "self",(char *) "info", NULL
15103 };
15104
15105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15107 if (!SWIG_IsOK(res1)) {
15108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15109 }
15110 arg1 = reinterpret_cast< wxFont * >(argp1);
15111 {
15112 arg2 = wxString_in_helper(obj1);
15113 if (arg2 == NULL) SWIG_fail;
15114 temp2 = true;
15115 }
15116 {
15117 PyThreadState* __tstate = wxPyBeginAllowThreads();
15118 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
15119 wxPyEndAllowThreads(__tstate);
15120 if (PyErr_Occurred()) SWIG_fail;
15121 }
15122 {
15123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15124 }
15125 {
15126 if (temp2)
15127 delete arg2;
15128 }
15129 return resultobj;
15130 fail:
15131 {
15132 if (temp2)
15133 delete arg2;
15134 }
15135 return NULL;
15136 }
15137
15138
15139 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15140 PyObject *resultobj = 0;
15141 wxFont *arg1 = (wxFont *) 0 ;
15142 wxString result;
15143 void *argp1 = 0 ;
15144 int res1 = 0 ;
15145 PyObject *swig_obj[1] ;
15146
15147 if (!args) SWIG_fail;
15148 swig_obj[0] = args;
15149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15150 if (!SWIG_IsOK(res1)) {
15151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15152 }
15153 arg1 = reinterpret_cast< wxFont * >(argp1);
15154 {
15155 PyThreadState* __tstate = wxPyBeginAllowThreads();
15156 result = ((wxFont const *)arg1)->GetFamilyString();
15157 wxPyEndAllowThreads(__tstate);
15158 if (PyErr_Occurred()) SWIG_fail;
15159 }
15160 {
15161 #if wxUSE_UNICODE
15162 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15163 #else
15164 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15165 #endif
15166 }
15167 return resultobj;
15168 fail:
15169 return NULL;
15170 }
15171
15172
15173 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15174 PyObject *resultobj = 0;
15175 wxFont *arg1 = (wxFont *) 0 ;
15176 wxString result;
15177 void *argp1 = 0 ;
15178 int res1 = 0 ;
15179 PyObject *swig_obj[1] ;
15180
15181 if (!args) SWIG_fail;
15182 swig_obj[0] = args;
15183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15184 if (!SWIG_IsOK(res1)) {
15185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15186 }
15187 arg1 = reinterpret_cast< wxFont * >(argp1);
15188 {
15189 PyThreadState* __tstate = wxPyBeginAllowThreads();
15190 result = ((wxFont const *)arg1)->GetStyleString();
15191 wxPyEndAllowThreads(__tstate);
15192 if (PyErr_Occurred()) SWIG_fail;
15193 }
15194 {
15195 #if wxUSE_UNICODE
15196 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15197 #else
15198 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15199 #endif
15200 }
15201 return resultobj;
15202 fail:
15203 return NULL;
15204 }
15205
15206
15207 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15208 PyObject *resultobj = 0;
15209 wxFont *arg1 = (wxFont *) 0 ;
15210 wxString result;
15211 void *argp1 = 0 ;
15212 int res1 = 0 ;
15213 PyObject *swig_obj[1] ;
15214
15215 if (!args) SWIG_fail;
15216 swig_obj[0] = args;
15217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15218 if (!SWIG_IsOK(res1)) {
15219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15220 }
15221 arg1 = reinterpret_cast< wxFont * >(argp1);
15222 {
15223 PyThreadState* __tstate = wxPyBeginAllowThreads();
15224 result = ((wxFont const *)arg1)->GetWeightString();
15225 wxPyEndAllowThreads(__tstate);
15226 if (PyErr_Occurred()) SWIG_fail;
15227 }
15228 {
15229 #if wxUSE_UNICODE
15230 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15231 #else
15232 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15233 #endif
15234 }
15235 return resultobj;
15236 fail:
15237 return NULL;
15238 }
15239
15240
15241 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15242 PyObject *resultobj = 0;
15243 wxFont *arg1 = (wxFont *) 0 ;
15244 bool arg2 = (bool) true ;
15245 void *argp1 = 0 ;
15246 int res1 = 0 ;
15247 bool val2 ;
15248 int ecode2 = 0 ;
15249 PyObject * obj0 = 0 ;
15250 PyObject * obj1 = 0 ;
15251 char * kwnames[] = {
15252 (char *) "self",(char *) "no", NULL
15253 };
15254
15255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15257 if (!SWIG_IsOK(res1)) {
15258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15259 }
15260 arg1 = reinterpret_cast< wxFont * >(argp1);
15261 if (obj1) {
15262 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15263 if (!SWIG_IsOK(ecode2)) {
15264 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15265 }
15266 arg2 = static_cast< bool >(val2);
15267 }
15268 {
15269 PyThreadState* __tstate = wxPyBeginAllowThreads();
15270 (arg1)->SetNoAntiAliasing(arg2);
15271 wxPyEndAllowThreads(__tstate);
15272 if (PyErr_Occurred()) SWIG_fail;
15273 }
15274 resultobj = SWIG_Py_Void();
15275 return resultobj;
15276 fail:
15277 return NULL;
15278 }
15279
15280
15281 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15282 PyObject *resultobj = 0;
15283 wxFont *arg1 = (wxFont *) 0 ;
15284 bool result;
15285 void *argp1 = 0 ;
15286 int res1 = 0 ;
15287 PyObject *swig_obj[1] ;
15288
15289 if (!args) SWIG_fail;
15290 swig_obj[0] = args;
15291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15292 if (!SWIG_IsOK(res1)) {
15293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15294 }
15295 arg1 = reinterpret_cast< wxFont * >(argp1);
15296 {
15297 PyThreadState* __tstate = wxPyBeginAllowThreads();
15298 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15299 wxPyEndAllowThreads(__tstate);
15300 if (PyErr_Occurred()) SWIG_fail;
15301 }
15302 {
15303 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15304 }
15305 return resultobj;
15306 fail:
15307 return NULL;
15308 }
15309
15310
15311 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15312 PyObject *resultobj = 0;
15313 wxFontEncoding result;
15314
15315 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15316 {
15317 if (!wxPyCheckForApp()) SWIG_fail;
15318 PyThreadState* __tstate = wxPyBeginAllowThreads();
15319 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15320 wxPyEndAllowThreads(__tstate);
15321 if (PyErr_Occurred()) SWIG_fail;
15322 }
15323 resultobj = SWIG_From_int(static_cast< int >(result));
15324 return resultobj;
15325 fail:
15326 return NULL;
15327 }
15328
15329
15330 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15331 PyObject *resultobj = 0;
15332 wxFontEncoding arg1 ;
15333 int val1 ;
15334 int ecode1 = 0 ;
15335 PyObject * obj0 = 0 ;
15336 char * kwnames[] = {
15337 (char *) "encoding", NULL
15338 };
15339
15340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15341 ecode1 = SWIG_AsVal_int(obj0, &val1);
15342 if (!SWIG_IsOK(ecode1)) {
15343 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15344 }
15345 arg1 = static_cast< wxFontEncoding >(val1);
15346 {
15347 if (!wxPyCheckForApp()) SWIG_fail;
15348 PyThreadState* __tstate = wxPyBeginAllowThreads();
15349 wxFont::SetDefaultEncoding(arg1);
15350 wxPyEndAllowThreads(__tstate);
15351 if (PyErr_Occurred()) SWIG_fail;
15352 }
15353 resultobj = SWIG_Py_Void();
15354 return resultobj;
15355 fail:
15356 return NULL;
15357 }
15358
15359
15360 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15361 PyObject *obj;
15362 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15363 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15364 return SWIG_Py_Void();
15365 }
15366
15367 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15368 return SWIG_Python_InitShadowInstance(args);
15369 }
15370
15371 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15372 PyObject *resultobj = 0;
15373 wxPyFontEnumerator *result = 0 ;
15374
15375 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15376 {
15377 if (!wxPyCheckForApp()) SWIG_fail;
15378 PyThreadState* __tstate = wxPyBeginAllowThreads();
15379 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15380 wxPyEndAllowThreads(__tstate);
15381 if (PyErr_Occurred()) SWIG_fail;
15382 }
15383 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15384 return resultobj;
15385 fail:
15386 return NULL;
15387 }
15388
15389
15390 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15391 PyObject *resultobj = 0;
15392 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15393 void *argp1 = 0 ;
15394 int res1 = 0 ;
15395 PyObject *swig_obj[1] ;
15396
15397 if (!args) SWIG_fail;
15398 swig_obj[0] = args;
15399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15400 if (!SWIG_IsOK(res1)) {
15401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15402 }
15403 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15404 {
15405 PyThreadState* __tstate = wxPyBeginAllowThreads();
15406 delete arg1;
15407
15408 wxPyEndAllowThreads(__tstate);
15409 if (PyErr_Occurred()) SWIG_fail;
15410 }
15411 resultobj = SWIG_Py_Void();
15412 return resultobj;
15413 fail:
15414 return NULL;
15415 }
15416
15417
15418 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15419 PyObject *resultobj = 0;
15420 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15421 PyObject *arg2 = (PyObject *) 0 ;
15422 PyObject *arg3 = (PyObject *) 0 ;
15423 bool arg4 ;
15424 void *argp1 = 0 ;
15425 int res1 = 0 ;
15426 bool val4 ;
15427 int ecode4 = 0 ;
15428 PyObject * obj0 = 0 ;
15429 PyObject * obj1 = 0 ;
15430 PyObject * obj2 = 0 ;
15431 PyObject * obj3 = 0 ;
15432 char * kwnames[] = {
15433 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15434 };
15435
15436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15438 if (!SWIG_IsOK(res1)) {
15439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15440 }
15441 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15442 arg2 = obj1;
15443 arg3 = obj2;
15444 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15445 if (!SWIG_IsOK(ecode4)) {
15446 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15447 }
15448 arg4 = static_cast< bool >(val4);
15449 {
15450 PyThreadState* __tstate = wxPyBeginAllowThreads();
15451 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15452 wxPyEndAllowThreads(__tstate);
15453 if (PyErr_Occurred()) SWIG_fail;
15454 }
15455 resultobj = SWIG_Py_Void();
15456 return resultobj;
15457 fail:
15458 return NULL;
15459 }
15460
15461
15462 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15463 PyObject *resultobj = 0;
15464 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15465 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15466 bool arg3 = (bool) false ;
15467 bool result;
15468 void *argp1 = 0 ;
15469 int res1 = 0 ;
15470 int val2 ;
15471 int ecode2 = 0 ;
15472 bool val3 ;
15473 int ecode3 = 0 ;
15474 PyObject * obj0 = 0 ;
15475 PyObject * obj1 = 0 ;
15476 PyObject * obj2 = 0 ;
15477 char * kwnames[] = {
15478 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15479 };
15480
15481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15483 if (!SWIG_IsOK(res1)) {
15484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15485 }
15486 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15487 if (obj1) {
15488 ecode2 = SWIG_AsVal_int(obj1, &val2);
15489 if (!SWIG_IsOK(ecode2)) {
15490 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15491 }
15492 arg2 = static_cast< wxFontEncoding >(val2);
15493 }
15494 if (obj2) {
15495 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15496 if (!SWIG_IsOK(ecode3)) {
15497 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15498 }
15499 arg3 = static_cast< bool >(val3);
15500 }
15501 {
15502 PyThreadState* __tstate = wxPyBeginAllowThreads();
15503 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15504 wxPyEndAllowThreads(__tstate);
15505 if (PyErr_Occurred()) SWIG_fail;
15506 }
15507 {
15508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15509 }
15510 return resultobj;
15511 fail:
15512 return NULL;
15513 }
15514
15515
15516 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15517 PyObject *resultobj = 0;
15518 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15519 wxString const &arg2_defvalue = wxPyEmptyString ;
15520 wxString *arg2 = (wxString *) &arg2_defvalue ;
15521 bool result;
15522 void *argp1 = 0 ;
15523 int res1 = 0 ;
15524 bool temp2 = false ;
15525 PyObject * obj0 = 0 ;
15526 PyObject * obj1 = 0 ;
15527 char * kwnames[] = {
15528 (char *) "self",(char *) "facename", NULL
15529 };
15530
15531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15533 if (!SWIG_IsOK(res1)) {
15534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15535 }
15536 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15537 if (obj1) {
15538 {
15539 arg2 = wxString_in_helper(obj1);
15540 if (arg2 == NULL) SWIG_fail;
15541 temp2 = true;
15542 }
15543 }
15544 {
15545 PyThreadState* __tstate = wxPyBeginAllowThreads();
15546 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15547 wxPyEndAllowThreads(__tstate);
15548 if (PyErr_Occurred()) SWIG_fail;
15549 }
15550 {
15551 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15552 }
15553 {
15554 if (temp2)
15555 delete arg2;
15556 }
15557 return resultobj;
15558 fail:
15559 {
15560 if (temp2)
15561 delete arg2;
15562 }
15563 return NULL;
15564 }
15565
15566
15567 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15568 PyObject *resultobj = 0;
15569 PyObject *result = 0 ;
15570
15571 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
15572 {
15573 PyThreadState* __tstate = wxPyBeginAllowThreads();
15574 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
15575 wxPyEndAllowThreads(__tstate);
15576 if (PyErr_Occurred()) SWIG_fail;
15577 }
15578 resultobj = result;
15579 return resultobj;
15580 fail:
15581 return NULL;
15582 }
15583
15584
15585 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15586 PyObject *resultobj = 0;
15587 PyObject *result = 0 ;
15588
15589 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
15590 {
15591 PyThreadState* __tstate = wxPyBeginAllowThreads();
15592 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
15593 wxPyEndAllowThreads(__tstate);
15594 if (PyErr_Occurred()) SWIG_fail;
15595 }
15596 resultobj = result;
15597 return resultobj;
15598 fail:
15599 return NULL;
15600 }
15601
15602
15603 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15604 PyObject *resultobj = 0;
15605 wxString *arg1 = 0 ;
15606 bool result;
15607 bool temp1 = false ;
15608 PyObject * obj0 = 0 ;
15609 char * kwnames[] = {
15610 (char *) "str", NULL
15611 };
15612
15613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15614 {
15615 arg1 = wxString_in_helper(obj0);
15616 if (arg1 == NULL) SWIG_fail;
15617 temp1 = true;
15618 }
15619 {
15620 PyThreadState* __tstate = wxPyBeginAllowThreads();
15621 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15622 wxPyEndAllowThreads(__tstate);
15623 if (PyErr_Occurred()) SWIG_fail;
15624 }
15625 {
15626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15627 }
15628 {
15629 if (temp1)
15630 delete arg1;
15631 }
15632 return resultobj;
15633 fail:
15634 {
15635 if (temp1)
15636 delete arg1;
15637 }
15638 return NULL;
15639 }
15640
15641
15642 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15643 PyObject *obj;
15644 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15645 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15646 return SWIG_Py_Void();
15647 }
15648
15649 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15650 return SWIG_Python_InitShadowInstance(args);
15651 }
15652
15653 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15654 PyObject *resultobj = 0;
15655 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15656 int arg2 ;
15657 void *argp1 = 0 ;
15658 int res1 = 0 ;
15659 int val2 ;
15660 int ecode2 = 0 ;
15661 PyObject *swig_obj[2] ;
15662
15663 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15665 if (!SWIG_IsOK(res1)) {
15666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15667 }
15668 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15669 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15670 if (!SWIG_IsOK(ecode2)) {
15671 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15672 }
15673 arg2 = static_cast< int >(val2);
15674 if (arg1) (arg1)->Language = arg2;
15675
15676 resultobj = SWIG_Py_Void();
15677 return resultobj;
15678 fail:
15679 return NULL;
15680 }
15681
15682
15683 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15684 PyObject *resultobj = 0;
15685 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15686 int result;
15687 void *argp1 = 0 ;
15688 int res1 = 0 ;
15689 PyObject *swig_obj[1] ;
15690
15691 if (!args) SWIG_fail;
15692 swig_obj[0] = args;
15693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15694 if (!SWIG_IsOK(res1)) {
15695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15696 }
15697 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15698 result = (int) ((arg1)->Language);
15699 resultobj = SWIG_From_int(static_cast< int >(result));
15700 return resultobj;
15701 fail:
15702 return NULL;
15703 }
15704
15705
15706 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15707 PyObject *resultobj = 0;
15708 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15709 wxString *arg2 = (wxString *) 0 ;
15710 void *argp1 = 0 ;
15711 int res1 = 0 ;
15712 bool temp2 = false ;
15713 PyObject *swig_obj[2] ;
15714
15715 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15717 if (!SWIG_IsOK(res1)) {
15718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15719 }
15720 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15721 {
15722 arg2 = wxString_in_helper(swig_obj[1]);
15723 if (arg2 == NULL) SWIG_fail;
15724 temp2 = true;
15725 }
15726 if (arg1) (arg1)->CanonicalName = *arg2;
15727
15728 resultobj = SWIG_Py_Void();
15729 {
15730 if (temp2)
15731 delete arg2;
15732 }
15733 return resultobj;
15734 fail:
15735 {
15736 if (temp2)
15737 delete arg2;
15738 }
15739 return NULL;
15740 }
15741
15742
15743 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15744 PyObject *resultobj = 0;
15745 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15746 wxString *result = 0 ;
15747 void *argp1 = 0 ;
15748 int res1 = 0 ;
15749 PyObject *swig_obj[1] ;
15750
15751 if (!args) SWIG_fail;
15752 swig_obj[0] = args;
15753 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15754 if (!SWIG_IsOK(res1)) {
15755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15756 }
15757 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15758 result = (wxString *)& ((arg1)->CanonicalName);
15759 {
15760 #if wxUSE_UNICODE
15761 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15762 #else
15763 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15764 #endif
15765 }
15766 return resultobj;
15767 fail:
15768 return NULL;
15769 }
15770
15771
15772 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15773 PyObject *resultobj = 0;
15774 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15775 wxString *arg2 = (wxString *) 0 ;
15776 void *argp1 = 0 ;
15777 int res1 = 0 ;
15778 bool temp2 = false ;
15779 PyObject *swig_obj[2] ;
15780
15781 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15782 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15783 if (!SWIG_IsOK(res1)) {
15784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15785 }
15786 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15787 {
15788 arg2 = wxString_in_helper(swig_obj[1]);
15789 if (arg2 == NULL) SWIG_fail;
15790 temp2 = true;
15791 }
15792 if (arg1) (arg1)->Description = *arg2;
15793
15794 resultobj = SWIG_Py_Void();
15795 {
15796 if (temp2)
15797 delete arg2;
15798 }
15799 return resultobj;
15800 fail:
15801 {
15802 if (temp2)
15803 delete arg2;
15804 }
15805 return NULL;
15806 }
15807
15808
15809 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15810 PyObject *resultobj = 0;
15811 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15812 wxString *result = 0 ;
15813 void *argp1 = 0 ;
15814 int res1 = 0 ;
15815 PyObject *swig_obj[1] ;
15816
15817 if (!args) SWIG_fail;
15818 swig_obj[0] = args;
15819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15820 if (!SWIG_IsOK(res1)) {
15821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15822 }
15823 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15824 result = (wxString *)& ((arg1)->Description);
15825 {
15826 #if wxUSE_UNICODE
15827 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15828 #else
15829 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15830 #endif
15831 }
15832 return resultobj;
15833 fail:
15834 return NULL;
15835 }
15836
15837
15838 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15839 PyObject *obj;
15840 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15841 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15842 return SWIG_Py_Void();
15843 }
15844
15845 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15846 PyObject *resultobj = 0;
15847 int arg1 = (int) -1 ;
15848 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15849 wxLocale *result = 0 ;
15850 int val1 ;
15851 int ecode1 = 0 ;
15852 int val2 ;
15853 int ecode2 = 0 ;
15854 PyObject * obj0 = 0 ;
15855 PyObject * obj1 = 0 ;
15856 char * kwnames[] = {
15857 (char *) "language",(char *) "flags", NULL
15858 };
15859
15860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15861 if (obj0) {
15862 ecode1 = SWIG_AsVal_int(obj0, &val1);
15863 if (!SWIG_IsOK(ecode1)) {
15864 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15865 }
15866 arg1 = static_cast< int >(val1);
15867 }
15868 if (obj1) {
15869 ecode2 = SWIG_AsVal_int(obj1, &val2);
15870 if (!SWIG_IsOK(ecode2)) {
15871 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15872 }
15873 arg2 = static_cast< int >(val2);
15874 }
15875 {
15876 PyThreadState* __tstate = wxPyBeginAllowThreads();
15877 result = (wxLocale *)new_wxLocale(arg1,arg2);
15878 wxPyEndAllowThreads(__tstate);
15879 if (PyErr_Occurred()) SWIG_fail;
15880 }
15881 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15882 return resultobj;
15883 fail:
15884 return NULL;
15885 }
15886
15887
15888 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15889 PyObject *resultobj = 0;
15890 wxLocale *arg1 = (wxLocale *) 0 ;
15891 void *argp1 = 0 ;
15892 int res1 = 0 ;
15893 PyObject *swig_obj[1] ;
15894
15895 if (!args) SWIG_fail;
15896 swig_obj[0] = args;
15897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15898 if (!SWIG_IsOK(res1)) {
15899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15900 }
15901 arg1 = reinterpret_cast< wxLocale * >(argp1);
15902 {
15903 PyThreadState* __tstate = wxPyBeginAllowThreads();
15904 delete arg1;
15905
15906 wxPyEndAllowThreads(__tstate);
15907 if (PyErr_Occurred()) SWIG_fail;
15908 }
15909 resultobj = SWIG_Py_Void();
15910 return resultobj;
15911 fail:
15912 return NULL;
15913 }
15914
15915
15916 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15917 PyObject *resultobj = 0;
15918 wxLocale *arg1 = (wxLocale *) 0 ;
15919 wxString *arg2 = 0 ;
15920 wxString const &arg3_defvalue = wxPyEmptyString ;
15921 wxString *arg3 = (wxString *) &arg3_defvalue ;
15922 wxString const &arg4_defvalue = wxPyEmptyString ;
15923 wxString *arg4 = (wxString *) &arg4_defvalue ;
15924 bool arg5 = (bool) true ;
15925 bool arg6 = (bool) false ;
15926 bool result;
15927 void *argp1 = 0 ;
15928 int res1 = 0 ;
15929 bool temp2 = false ;
15930 bool temp3 = false ;
15931 bool temp4 = false ;
15932 bool val5 ;
15933 int ecode5 = 0 ;
15934 bool val6 ;
15935 int ecode6 = 0 ;
15936 PyObject * obj0 = 0 ;
15937 PyObject * obj1 = 0 ;
15938 PyObject * obj2 = 0 ;
15939 PyObject * obj3 = 0 ;
15940 PyObject * obj4 = 0 ;
15941 PyObject * obj5 = 0 ;
15942 char * kwnames[] = {
15943 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15944 };
15945
15946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15948 if (!SWIG_IsOK(res1)) {
15949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15950 }
15951 arg1 = reinterpret_cast< wxLocale * >(argp1);
15952 {
15953 arg2 = wxString_in_helper(obj1);
15954 if (arg2 == NULL) SWIG_fail;
15955 temp2 = true;
15956 }
15957 if (obj2) {
15958 {
15959 arg3 = wxString_in_helper(obj2);
15960 if (arg3 == NULL) SWIG_fail;
15961 temp3 = true;
15962 }
15963 }
15964 if (obj3) {
15965 {
15966 arg4 = wxString_in_helper(obj3);
15967 if (arg4 == NULL) SWIG_fail;
15968 temp4 = true;
15969 }
15970 }
15971 if (obj4) {
15972 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15973 if (!SWIG_IsOK(ecode5)) {
15974 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15975 }
15976 arg5 = static_cast< bool >(val5);
15977 }
15978 if (obj5) {
15979 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15980 if (!SWIG_IsOK(ecode6)) {
15981 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
15982 }
15983 arg6 = static_cast< bool >(val6);
15984 }
15985 {
15986 PyThreadState* __tstate = wxPyBeginAllowThreads();
15987 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
15988 wxPyEndAllowThreads(__tstate);
15989 if (PyErr_Occurred()) SWIG_fail;
15990 }
15991 {
15992 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15993 }
15994 {
15995 if (temp2)
15996 delete arg2;
15997 }
15998 {
15999 if (temp3)
16000 delete arg3;
16001 }
16002 {
16003 if (temp4)
16004 delete arg4;
16005 }
16006 return resultobj;
16007 fail:
16008 {
16009 if (temp2)
16010 delete arg2;
16011 }
16012 {
16013 if (temp3)
16014 delete arg3;
16015 }
16016 {
16017 if (temp4)
16018 delete arg4;
16019 }
16020 return NULL;
16021 }
16022
16023
16024 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16025 PyObject *resultobj = 0;
16026 wxLocale *arg1 = (wxLocale *) 0 ;
16027 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16028 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16029 bool result;
16030 void *argp1 = 0 ;
16031 int res1 = 0 ;
16032 int val2 ;
16033 int ecode2 = 0 ;
16034 int val3 ;
16035 int ecode3 = 0 ;
16036 PyObject * obj0 = 0 ;
16037 PyObject * obj1 = 0 ;
16038 PyObject * obj2 = 0 ;
16039 char * kwnames[] = {
16040 (char *) "self",(char *) "language",(char *) "flags", NULL
16041 };
16042
16043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16045 if (!SWIG_IsOK(res1)) {
16046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16047 }
16048 arg1 = reinterpret_cast< wxLocale * >(argp1);
16049 if (obj1) {
16050 ecode2 = SWIG_AsVal_int(obj1, &val2);
16051 if (!SWIG_IsOK(ecode2)) {
16052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16053 }
16054 arg2 = static_cast< int >(val2);
16055 }
16056 if (obj2) {
16057 ecode3 = SWIG_AsVal_int(obj2, &val3);
16058 if (!SWIG_IsOK(ecode3)) {
16059 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16060 }
16061 arg3 = static_cast< int >(val3);
16062 }
16063 {
16064 PyThreadState* __tstate = wxPyBeginAllowThreads();
16065 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16066 wxPyEndAllowThreads(__tstate);
16067 if (PyErr_Occurred()) SWIG_fail;
16068 }
16069 {
16070 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16071 }
16072 return resultobj;
16073 fail:
16074 return NULL;
16075 }
16076
16077
16078 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16079 PyObject *resultobj = 0;
16080 int result;
16081
16082 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16083 {
16084 PyThreadState* __tstate = wxPyBeginAllowThreads();
16085 result = (int)wxLocale::GetSystemLanguage();
16086 wxPyEndAllowThreads(__tstate);
16087 if (PyErr_Occurred()) SWIG_fail;
16088 }
16089 resultobj = SWIG_From_int(static_cast< int >(result));
16090 return resultobj;
16091 fail:
16092 return NULL;
16093 }
16094
16095
16096 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16097 PyObject *resultobj = 0;
16098 wxFontEncoding result;
16099
16100 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16101 {
16102 PyThreadState* __tstate = wxPyBeginAllowThreads();
16103 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16104 wxPyEndAllowThreads(__tstate);
16105 if (PyErr_Occurred()) SWIG_fail;
16106 }
16107 resultobj = SWIG_From_int(static_cast< int >(result));
16108 return resultobj;
16109 fail:
16110 return NULL;
16111 }
16112
16113
16114 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16115 PyObject *resultobj = 0;
16116 wxString result;
16117
16118 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16119 {
16120 PyThreadState* __tstate = wxPyBeginAllowThreads();
16121 result = wxLocale::GetSystemEncodingName();
16122 wxPyEndAllowThreads(__tstate);
16123 if (PyErr_Occurred()) SWIG_fail;
16124 }
16125 {
16126 #if wxUSE_UNICODE
16127 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16128 #else
16129 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16130 #endif
16131 }
16132 return resultobj;
16133 fail:
16134 return NULL;
16135 }
16136
16137
16138 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16139 PyObject *resultobj = 0;
16140 wxLocale *arg1 = (wxLocale *) 0 ;
16141 bool result;
16142 void *argp1 = 0 ;
16143 int res1 = 0 ;
16144 PyObject *swig_obj[1] ;
16145
16146 if (!args) SWIG_fail;
16147 swig_obj[0] = args;
16148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16149 if (!SWIG_IsOK(res1)) {
16150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16151 }
16152 arg1 = reinterpret_cast< wxLocale * >(argp1);
16153 {
16154 PyThreadState* __tstate = wxPyBeginAllowThreads();
16155 result = (bool)((wxLocale const *)arg1)->IsOk();
16156 wxPyEndAllowThreads(__tstate);
16157 if (PyErr_Occurred()) SWIG_fail;
16158 }
16159 {
16160 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16161 }
16162 return resultobj;
16163 fail:
16164 return NULL;
16165 }
16166
16167
16168 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16169 PyObject *resultobj = 0;
16170 wxLocale *arg1 = (wxLocale *) 0 ;
16171 wxString result;
16172 void *argp1 = 0 ;
16173 int res1 = 0 ;
16174 PyObject *swig_obj[1] ;
16175
16176 if (!args) SWIG_fail;
16177 swig_obj[0] = args;
16178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16179 if (!SWIG_IsOK(res1)) {
16180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16181 }
16182 arg1 = reinterpret_cast< wxLocale * >(argp1);
16183 {
16184 PyThreadState* __tstate = wxPyBeginAllowThreads();
16185 result = ((wxLocale const *)arg1)->GetLocale();
16186 wxPyEndAllowThreads(__tstate);
16187 if (PyErr_Occurred()) SWIG_fail;
16188 }
16189 {
16190 #if wxUSE_UNICODE
16191 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16192 #else
16193 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16194 #endif
16195 }
16196 return resultobj;
16197 fail:
16198 return NULL;
16199 }
16200
16201
16202 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16203 PyObject *resultobj = 0;
16204 wxLocale *arg1 = (wxLocale *) 0 ;
16205 int result;
16206 void *argp1 = 0 ;
16207 int res1 = 0 ;
16208 PyObject *swig_obj[1] ;
16209
16210 if (!args) SWIG_fail;
16211 swig_obj[0] = args;
16212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16213 if (!SWIG_IsOK(res1)) {
16214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16215 }
16216 arg1 = reinterpret_cast< wxLocale * >(argp1);
16217 {
16218 PyThreadState* __tstate = wxPyBeginAllowThreads();
16219 result = (int)((wxLocale const *)arg1)->GetLanguage();
16220 wxPyEndAllowThreads(__tstate);
16221 if (PyErr_Occurred()) SWIG_fail;
16222 }
16223 resultobj = SWIG_From_int(static_cast< int >(result));
16224 return resultobj;
16225 fail:
16226 return NULL;
16227 }
16228
16229
16230 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16231 PyObject *resultobj = 0;
16232 wxLocale *arg1 = (wxLocale *) 0 ;
16233 wxString result;
16234 void *argp1 = 0 ;
16235 int res1 = 0 ;
16236 PyObject *swig_obj[1] ;
16237
16238 if (!args) SWIG_fail;
16239 swig_obj[0] = args;
16240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16241 if (!SWIG_IsOK(res1)) {
16242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16243 }
16244 arg1 = reinterpret_cast< wxLocale * >(argp1);
16245 {
16246 PyThreadState* __tstate = wxPyBeginAllowThreads();
16247 result = ((wxLocale const *)arg1)->GetSysName();
16248 wxPyEndAllowThreads(__tstate);
16249 if (PyErr_Occurred()) SWIG_fail;
16250 }
16251 {
16252 #if wxUSE_UNICODE
16253 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16254 #else
16255 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16256 #endif
16257 }
16258 return resultobj;
16259 fail:
16260 return NULL;
16261 }
16262
16263
16264 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16265 PyObject *resultobj = 0;
16266 wxLocale *arg1 = (wxLocale *) 0 ;
16267 wxString result;
16268 void *argp1 = 0 ;
16269 int res1 = 0 ;
16270 PyObject *swig_obj[1] ;
16271
16272 if (!args) SWIG_fail;
16273 swig_obj[0] = args;
16274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16275 if (!SWIG_IsOK(res1)) {
16276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16277 }
16278 arg1 = reinterpret_cast< wxLocale * >(argp1);
16279 {
16280 PyThreadState* __tstate = wxPyBeginAllowThreads();
16281 result = ((wxLocale const *)arg1)->GetCanonicalName();
16282 wxPyEndAllowThreads(__tstate);
16283 if (PyErr_Occurred()) SWIG_fail;
16284 }
16285 {
16286 #if wxUSE_UNICODE
16287 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16288 #else
16289 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16290 #endif
16291 }
16292 return resultobj;
16293 fail:
16294 return NULL;
16295 }
16296
16297
16298 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16299 PyObject *resultobj = 0;
16300 wxString *arg1 = 0 ;
16301 bool temp1 = false ;
16302 PyObject * obj0 = 0 ;
16303 char * kwnames[] = {
16304 (char *) "prefix", NULL
16305 };
16306
16307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16308 {
16309 arg1 = wxString_in_helper(obj0);
16310 if (arg1 == NULL) SWIG_fail;
16311 temp1 = true;
16312 }
16313 {
16314 PyThreadState* __tstate = wxPyBeginAllowThreads();
16315 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16316 wxPyEndAllowThreads(__tstate);
16317 if (PyErr_Occurred()) SWIG_fail;
16318 }
16319 resultobj = SWIG_Py_Void();
16320 {
16321 if (temp1)
16322 delete arg1;
16323 }
16324 return resultobj;
16325 fail:
16326 {
16327 if (temp1)
16328 delete arg1;
16329 }
16330 return NULL;
16331 }
16332
16333
16334 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16335 PyObject *resultobj = 0;
16336 wxLocale *arg1 = (wxLocale *) 0 ;
16337 wxString *arg2 = 0 ;
16338 bool result;
16339 void *argp1 = 0 ;
16340 int res1 = 0 ;
16341 bool temp2 = false ;
16342 PyObject * obj0 = 0 ;
16343 PyObject * obj1 = 0 ;
16344 char * kwnames[] = {
16345 (char *) "self",(char *) "szDomain", NULL
16346 };
16347
16348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16350 if (!SWIG_IsOK(res1)) {
16351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16352 }
16353 arg1 = reinterpret_cast< wxLocale * >(argp1);
16354 {
16355 arg2 = wxString_in_helper(obj1);
16356 if (arg2 == NULL) SWIG_fail;
16357 temp2 = true;
16358 }
16359 {
16360 PyThreadState* __tstate = wxPyBeginAllowThreads();
16361 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16362 wxPyEndAllowThreads(__tstate);
16363 if (PyErr_Occurred()) SWIG_fail;
16364 }
16365 {
16366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16367 }
16368 {
16369 if (temp2)
16370 delete arg2;
16371 }
16372 return resultobj;
16373 fail:
16374 {
16375 if (temp2)
16376 delete arg2;
16377 }
16378 return NULL;
16379 }
16380
16381
16382 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16383 PyObject *resultobj = 0;
16384 int arg1 ;
16385 bool result;
16386 int val1 ;
16387 int ecode1 = 0 ;
16388 PyObject * obj0 = 0 ;
16389 char * kwnames[] = {
16390 (char *) "lang", NULL
16391 };
16392
16393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16394 ecode1 = SWIG_AsVal_int(obj0, &val1);
16395 if (!SWIG_IsOK(ecode1)) {
16396 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16397 }
16398 arg1 = static_cast< int >(val1);
16399 {
16400 PyThreadState* __tstate = wxPyBeginAllowThreads();
16401 result = (bool)wxLocale::IsAvailable(arg1);
16402 wxPyEndAllowThreads(__tstate);
16403 if (PyErr_Occurred()) SWIG_fail;
16404 }
16405 {
16406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16407 }
16408 return resultobj;
16409 fail:
16410 return NULL;
16411 }
16412
16413
16414 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16415 PyObject *resultobj = 0;
16416 wxLocale *arg1 = (wxLocale *) 0 ;
16417 wxString *arg2 = 0 ;
16418 bool result;
16419 void *argp1 = 0 ;
16420 int res1 = 0 ;
16421 bool temp2 = false ;
16422 PyObject * obj0 = 0 ;
16423 PyObject * obj1 = 0 ;
16424 char * kwnames[] = {
16425 (char *) "self",(char *) "szDomain", NULL
16426 };
16427
16428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16430 if (!SWIG_IsOK(res1)) {
16431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16432 }
16433 arg1 = reinterpret_cast< wxLocale * >(argp1);
16434 {
16435 arg2 = wxString_in_helper(obj1);
16436 if (arg2 == NULL) SWIG_fail;
16437 temp2 = true;
16438 }
16439 {
16440 PyThreadState* __tstate = wxPyBeginAllowThreads();
16441 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16442 wxPyEndAllowThreads(__tstate);
16443 if (PyErr_Occurred()) SWIG_fail;
16444 }
16445 {
16446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16447 }
16448 {
16449 if (temp2)
16450 delete arg2;
16451 }
16452 return resultobj;
16453 fail:
16454 {
16455 if (temp2)
16456 delete arg2;
16457 }
16458 return NULL;
16459 }
16460
16461
16462 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16463 PyObject *resultobj = 0;
16464 int arg1 ;
16465 wxLanguageInfo *result = 0 ;
16466 int val1 ;
16467 int ecode1 = 0 ;
16468 PyObject * obj0 = 0 ;
16469 char * kwnames[] = {
16470 (char *) "lang", NULL
16471 };
16472
16473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16474 ecode1 = SWIG_AsVal_int(obj0, &val1);
16475 if (!SWIG_IsOK(ecode1)) {
16476 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16477 }
16478 arg1 = static_cast< int >(val1);
16479 {
16480 PyThreadState* __tstate = wxPyBeginAllowThreads();
16481 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16482 wxPyEndAllowThreads(__tstate);
16483 if (PyErr_Occurred()) SWIG_fail;
16484 }
16485 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16486 return resultobj;
16487 fail:
16488 return NULL;
16489 }
16490
16491
16492 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16493 PyObject *resultobj = 0;
16494 int arg1 ;
16495 wxString result;
16496 int val1 ;
16497 int ecode1 = 0 ;
16498 PyObject * obj0 = 0 ;
16499 char * kwnames[] = {
16500 (char *) "lang", NULL
16501 };
16502
16503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16504 ecode1 = SWIG_AsVal_int(obj0, &val1);
16505 if (!SWIG_IsOK(ecode1)) {
16506 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16507 }
16508 arg1 = static_cast< int >(val1);
16509 {
16510 PyThreadState* __tstate = wxPyBeginAllowThreads();
16511 result = wxLocale::GetLanguageName(arg1);
16512 wxPyEndAllowThreads(__tstate);
16513 if (PyErr_Occurred()) SWIG_fail;
16514 }
16515 {
16516 #if wxUSE_UNICODE
16517 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16518 #else
16519 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16520 #endif
16521 }
16522 return resultobj;
16523 fail:
16524 return NULL;
16525 }
16526
16527
16528 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16529 PyObject *resultobj = 0;
16530 wxString *arg1 = 0 ;
16531 wxLanguageInfo *result = 0 ;
16532 bool temp1 = false ;
16533 PyObject * obj0 = 0 ;
16534 char * kwnames[] = {
16535 (char *) "locale", NULL
16536 };
16537
16538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16539 {
16540 arg1 = wxString_in_helper(obj0);
16541 if (arg1 == NULL) SWIG_fail;
16542 temp1 = true;
16543 }
16544 {
16545 PyThreadState* __tstate = wxPyBeginAllowThreads();
16546 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16547 wxPyEndAllowThreads(__tstate);
16548 if (PyErr_Occurred()) SWIG_fail;
16549 }
16550 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16551 {
16552 if (temp1)
16553 delete arg1;
16554 }
16555 return resultobj;
16556 fail:
16557 {
16558 if (temp1)
16559 delete arg1;
16560 }
16561 return NULL;
16562 }
16563
16564
16565 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16566 PyObject *resultobj = 0;
16567 wxLanguageInfo *arg1 = 0 ;
16568 void *argp1 = 0 ;
16569 int res1 = 0 ;
16570 PyObject * obj0 = 0 ;
16571 char * kwnames[] = {
16572 (char *) "info", NULL
16573 };
16574
16575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16576 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16577 if (!SWIG_IsOK(res1)) {
16578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16579 }
16580 if (!argp1) {
16581 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16582 }
16583 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16584 {
16585 PyThreadState* __tstate = wxPyBeginAllowThreads();
16586 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16587 wxPyEndAllowThreads(__tstate);
16588 if (PyErr_Occurred()) SWIG_fail;
16589 }
16590 resultobj = SWIG_Py_Void();
16591 return resultobj;
16592 fail:
16593 return NULL;
16594 }
16595
16596
16597 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16598 PyObject *resultobj = 0;
16599 wxLocale *arg1 = (wxLocale *) 0 ;
16600 wxString *arg2 = 0 ;
16601 wxString const &arg3_defvalue = wxPyEmptyString ;
16602 wxString *arg3 = (wxString *) &arg3_defvalue ;
16603 wxString result;
16604 void *argp1 = 0 ;
16605 int res1 = 0 ;
16606 bool temp2 = false ;
16607 bool temp3 = false ;
16608 PyObject * obj0 = 0 ;
16609 PyObject * obj1 = 0 ;
16610 PyObject * obj2 = 0 ;
16611 char * kwnames[] = {
16612 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16613 };
16614
16615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16617 if (!SWIG_IsOK(res1)) {
16618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16619 }
16620 arg1 = reinterpret_cast< wxLocale * >(argp1);
16621 {
16622 arg2 = wxString_in_helper(obj1);
16623 if (arg2 == NULL) SWIG_fail;
16624 temp2 = true;
16625 }
16626 if (obj2) {
16627 {
16628 arg3 = wxString_in_helper(obj2);
16629 if (arg3 == NULL) SWIG_fail;
16630 temp3 = true;
16631 }
16632 }
16633 {
16634 PyThreadState* __tstate = wxPyBeginAllowThreads();
16635 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16636 wxPyEndAllowThreads(__tstate);
16637 if (PyErr_Occurred()) SWIG_fail;
16638 }
16639 {
16640 #if wxUSE_UNICODE
16641 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16642 #else
16643 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16644 #endif
16645 }
16646 {
16647 if (temp2)
16648 delete arg2;
16649 }
16650 {
16651 if (temp3)
16652 delete arg3;
16653 }
16654 return resultobj;
16655 fail:
16656 {
16657 if (temp2)
16658 delete arg2;
16659 }
16660 {
16661 if (temp3)
16662 delete arg3;
16663 }
16664 return NULL;
16665 }
16666
16667
16668 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16669 PyObject *resultobj = 0;
16670 wxLocale *arg1 = (wxLocale *) 0 ;
16671 wxString *result = 0 ;
16672 void *argp1 = 0 ;
16673 int res1 = 0 ;
16674 PyObject *swig_obj[1] ;
16675
16676 if (!args) SWIG_fail;
16677 swig_obj[0] = args;
16678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16679 if (!SWIG_IsOK(res1)) {
16680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16681 }
16682 arg1 = reinterpret_cast< wxLocale * >(argp1);
16683 {
16684 PyThreadState* __tstate = wxPyBeginAllowThreads();
16685 {
16686 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16687 result = (wxString *) &_result_ref;
16688 }
16689 wxPyEndAllowThreads(__tstate);
16690 if (PyErr_Occurred()) SWIG_fail;
16691 }
16692 {
16693 #if wxUSE_UNICODE
16694 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16695 #else
16696 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16697 #endif
16698 }
16699 return resultobj;
16700 fail:
16701 return NULL;
16702 }
16703
16704
16705 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16706 PyObject *obj;
16707 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16708 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16709 return SWIG_Py_Void();
16710 }
16711
16712 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16713 return SWIG_Python_InitShadowInstance(args);
16714 }
16715
16716 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16717 PyObject *resultobj = 0;
16718 int arg1 = (int) -1 ;
16719 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16720 wxPyLocale *result = 0 ;
16721 int val1 ;
16722 int ecode1 = 0 ;
16723 int val2 ;
16724 int ecode2 = 0 ;
16725 PyObject * obj0 = 0 ;
16726 PyObject * obj1 = 0 ;
16727 char * kwnames[] = {
16728 (char *) "language",(char *) "flags", NULL
16729 };
16730
16731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16732 if (obj0) {
16733 ecode1 = SWIG_AsVal_int(obj0, &val1);
16734 if (!SWIG_IsOK(ecode1)) {
16735 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16736 }
16737 arg1 = static_cast< int >(val1);
16738 }
16739 if (obj1) {
16740 ecode2 = SWIG_AsVal_int(obj1, &val2);
16741 if (!SWIG_IsOK(ecode2)) {
16742 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16743 }
16744 arg2 = static_cast< int >(val2);
16745 }
16746 {
16747 PyThreadState* __tstate = wxPyBeginAllowThreads();
16748 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16749 wxPyEndAllowThreads(__tstate);
16750 if (PyErr_Occurred()) SWIG_fail;
16751 }
16752 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16753 return resultobj;
16754 fail:
16755 return NULL;
16756 }
16757
16758
16759 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16760 PyObject *resultobj = 0;
16761 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16762 void *argp1 = 0 ;
16763 int res1 = 0 ;
16764 PyObject *swig_obj[1] ;
16765
16766 if (!args) SWIG_fail;
16767 swig_obj[0] = args;
16768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16769 if (!SWIG_IsOK(res1)) {
16770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16771 }
16772 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16773 {
16774 PyThreadState* __tstate = wxPyBeginAllowThreads();
16775 delete arg1;
16776
16777 wxPyEndAllowThreads(__tstate);
16778 if (PyErr_Occurred()) SWIG_fail;
16779 }
16780 resultobj = SWIG_Py_Void();
16781 return resultobj;
16782 fail:
16783 return NULL;
16784 }
16785
16786
16787 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16788 PyObject *resultobj = 0;
16789 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16790 PyObject *arg2 = (PyObject *) 0 ;
16791 PyObject *arg3 = (PyObject *) 0 ;
16792 void *argp1 = 0 ;
16793 int res1 = 0 ;
16794 PyObject * obj0 = 0 ;
16795 PyObject * obj1 = 0 ;
16796 PyObject * obj2 = 0 ;
16797 char * kwnames[] = {
16798 (char *) "self",(char *) "self",(char *) "_class", NULL
16799 };
16800
16801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16803 if (!SWIG_IsOK(res1)) {
16804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16805 }
16806 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16807 arg2 = obj1;
16808 arg3 = obj2;
16809 {
16810 PyThreadState* __tstate = wxPyBeginAllowThreads();
16811 (arg1)->_setCallbackInfo(arg2,arg3);
16812 wxPyEndAllowThreads(__tstate);
16813 if (PyErr_Occurred()) SWIG_fail;
16814 }
16815 resultobj = SWIG_Py_Void();
16816 return resultobj;
16817 fail:
16818 return NULL;
16819 }
16820
16821
16822 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16823 PyObject *resultobj = 0;
16824 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16825 wxChar *arg2 = (wxChar *) 0 ;
16826 wxChar *arg3 = (wxChar *) NULL ;
16827 wxChar *result = 0 ;
16828 void *argp1 = 0 ;
16829 int res1 = 0 ;
16830 void *argp2 = 0 ;
16831 int res2 = 0 ;
16832 void *argp3 = 0 ;
16833 int res3 = 0 ;
16834 PyObject * obj0 = 0 ;
16835 PyObject * obj1 = 0 ;
16836 PyObject * obj2 = 0 ;
16837 char * kwnames[] = {
16838 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16839 };
16840
16841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16843 if (!SWIG_IsOK(res1)) {
16844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16845 }
16846 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16847 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16848 if (!SWIG_IsOK(res2)) {
16849 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
16850 }
16851 arg2 = reinterpret_cast< wxChar * >(argp2);
16852 if (obj2) {
16853 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16854 if (!SWIG_IsOK(res3)) {
16855 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
16856 }
16857 arg3 = reinterpret_cast< wxChar * >(argp3);
16858 }
16859 {
16860 PyThreadState* __tstate = wxPyBeginAllowThreads();
16861 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
16862 wxPyEndAllowThreads(__tstate);
16863 if (PyErr_Occurred()) SWIG_fail;
16864 }
16865 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16866 return resultobj;
16867 fail:
16868 return NULL;
16869 }
16870
16871
16872 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16873 PyObject *resultobj = 0;
16874 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16875 wxChar *arg2 = (wxChar *) 0 ;
16876 wxChar *arg3 = (wxChar *) 0 ;
16877 size_t arg4 ;
16878 wxChar *arg5 = (wxChar *) NULL ;
16879 wxChar *result = 0 ;
16880 void *argp1 = 0 ;
16881 int res1 = 0 ;
16882 void *argp2 = 0 ;
16883 int res2 = 0 ;
16884 void *argp3 = 0 ;
16885 int res3 = 0 ;
16886 size_t val4 ;
16887 int ecode4 = 0 ;
16888 void *argp5 = 0 ;
16889 int res5 = 0 ;
16890 PyObject * obj0 = 0 ;
16891 PyObject * obj1 = 0 ;
16892 PyObject * obj2 = 0 ;
16893 PyObject * obj3 = 0 ;
16894 PyObject * obj4 = 0 ;
16895 char * kwnames[] = {
16896 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16897 };
16898
16899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16901 if (!SWIG_IsOK(res1)) {
16902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16903 }
16904 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16905 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16906 if (!SWIG_IsOK(res2)) {
16907 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16908 }
16909 arg2 = reinterpret_cast< wxChar * >(argp2);
16910 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16911 if (!SWIG_IsOK(res3)) {
16912 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16913 }
16914 arg3 = reinterpret_cast< wxChar * >(argp3);
16915 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16916 if (!SWIG_IsOK(ecode4)) {
16917 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16918 }
16919 arg4 = static_cast< size_t >(val4);
16920 if (obj4) {
16921 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16922 if (!SWIG_IsOK(res5)) {
16923 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16924 }
16925 arg5 = reinterpret_cast< wxChar * >(argp5);
16926 }
16927 {
16928 PyThreadState* __tstate = wxPyBeginAllowThreads();
16929 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
16930 wxPyEndAllowThreads(__tstate);
16931 if (PyErr_Occurred()) SWIG_fail;
16932 }
16933 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16934 return resultobj;
16935 fail:
16936 return NULL;
16937 }
16938
16939
16940 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16941 PyObject *obj;
16942 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16943 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
16944 return SWIG_Py_Void();
16945 }
16946
16947 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16948 return SWIG_Python_InitShadowInstance(args);
16949 }
16950
16951 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16952 PyObject *resultobj = 0;
16953 wxLocale *result = 0 ;
16954
16955 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16956 {
16957 PyThreadState* __tstate = wxPyBeginAllowThreads();
16958 result = (wxLocale *)wxGetLocale();
16959 wxPyEndAllowThreads(__tstate);
16960 if (PyErr_Occurred()) SWIG_fail;
16961 }
16962 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16963 return resultobj;
16964 fail:
16965 return NULL;
16966 }
16967
16968
16969 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16970 PyObject *resultobj = 0;
16971 wxString *arg1 = 0 ;
16972 wxString result;
16973 bool temp1 = false ;
16974
16975 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16976 {
16977 arg1 = wxString_in_helper(swig_obj[0]);
16978 if (arg1 == NULL) SWIG_fail;
16979 temp1 = true;
16980 }
16981 {
16982 PyThreadState* __tstate = wxPyBeginAllowThreads();
16983 result = wxGetTranslation((wxString const &)*arg1);
16984 wxPyEndAllowThreads(__tstate);
16985 if (PyErr_Occurred()) SWIG_fail;
16986 }
16987 {
16988 #if wxUSE_UNICODE
16989 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16990 #else
16991 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16992 #endif
16993 }
16994 {
16995 if (temp1)
16996 delete arg1;
16997 }
16998 return resultobj;
16999 fail:
17000 {
17001 if (temp1)
17002 delete arg1;
17003 }
17004 return NULL;
17005 }
17006
17007
17008 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17009 PyObject *resultobj = 0;
17010 wxString *arg1 = 0 ;
17011 wxString *arg2 = 0 ;
17012 wxString result;
17013 bool temp1 = false ;
17014 bool temp2 = false ;
17015
17016 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17017 {
17018 arg1 = wxString_in_helper(swig_obj[0]);
17019 if (arg1 == NULL) SWIG_fail;
17020 temp1 = true;
17021 }
17022 {
17023 arg2 = wxString_in_helper(swig_obj[1]);
17024 if (arg2 == NULL) SWIG_fail;
17025 temp2 = true;
17026 }
17027 {
17028 PyThreadState* __tstate = wxPyBeginAllowThreads();
17029 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17030 wxPyEndAllowThreads(__tstate);
17031 if (PyErr_Occurred()) SWIG_fail;
17032 }
17033 {
17034 #if wxUSE_UNICODE
17035 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17036 #else
17037 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17038 #endif
17039 }
17040 {
17041 if (temp1)
17042 delete arg1;
17043 }
17044 {
17045 if (temp2)
17046 delete arg2;
17047 }
17048 return resultobj;
17049 fail:
17050 {
17051 if (temp1)
17052 delete arg1;
17053 }
17054 {
17055 if (temp2)
17056 delete arg2;
17057 }
17058 return NULL;
17059 }
17060
17061
17062 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17063 PyObject *resultobj = 0;
17064 wxString *arg1 = 0 ;
17065 wxString *arg2 = 0 ;
17066 size_t arg3 ;
17067 wxString result;
17068 bool temp1 = false ;
17069 bool temp2 = false ;
17070 size_t val3 ;
17071 int ecode3 = 0 ;
17072
17073 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17074 {
17075 arg1 = wxString_in_helper(swig_obj[0]);
17076 if (arg1 == NULL) SWIG_fail;
17077 temp1 = true;
17078 }
17079 {
17080 arg2 = wxString_in_helper(swig_obj[1]);
17081 if (arg2 == NULL) SWIG_fail;
17082 temp2 = true;
17083 }
17084 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17085 if (!SWIG_IsOK(ecode3)) {
17086 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17087 }
17088 arg3 = static_cast< size_t >(val3);
17089 {
17090 PyThreadState* __tstate = wxPyBeginAllowThreads();
17091 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17092 wxPyEndAllowThreads(__tstate);
17093 if (PyErr_Occurred()) SWIG_fail;
17094 }
17095 {
17096 #if wxUSE_UNICODE
17097 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17098 #else
17099 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17100 #endif
17101 }
17102 {
17103 if (temp1)
17104 delete arg1;
17105 }
17106 {
17107 if (temp2)
17108 delete arg2;
17109 }
17110 return resultobj;
17111 fail:
17112 {
17113 if (temp1)
17114 delete arg1;
17115 }
17116 {
17117 if (temp2)
17118 delete arg2;
17119 }
17120 return NULL;
17121 }
17122
17123
17124 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17125 PyObject *resultobj = 0;
17126 wxString *arg1 = 0 ;
17127 wxString *arg2 = 0 ;
17128 size_t arg3 ;
17129 wxString *arg4 = 0 ;
17130 wxString result;
17131 bool temp1 = false ;
17132 bool temp2 = false ;
17133 size_t val3 ;
17134 int ecode3 = 0 ;
17135 bool temp4 = false ;
17136
17137 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17138 {
17139 arg1 = wxString_in_helper(swig_obj[0]);
17140 if (arg1 == NULL) SWIG_fail;
17141 temp1 = true;
17142 }
17143 {
17144 arg2 = wxString_in_helper(swig_obj[1]);
17145 if (arg2 == NULL) SWIG_fail;
17146 temp2 = true;
17147 }
17148 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17149 if (!SWIG_IsOK(ecode3)) {
17150 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17151 }
17152 arg3 = static_cast< size_t >(val3);
17153 {
17154 arg4 = wxString_in_helper(swig_obj[3]);
17155 if (arg4 == NULL) SWIG_fail;
17156 temp4 = true;
17157 }
17158 {
17159 PyThreadState* __tstate = wxPyBeginAllowThreads();
17160 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17161 wxPyEndAllowThreads(__tstate);
17162 if (PyErr_Occurred()) SWIG_fail;
17163 }
17164 {
17165 #if wxUSE_UNICODE
17166 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17167 #else
17168 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17169 #endif
17170 }
17171 {
17172 if (temp1)
17173 delete arg1;
17174 }
17175 {
17176 if (temp2)
17177 delete arg2;
17178 }
17179 {
17180 if (temp4)
17181 delete arg4;
17182 }
17183 return resultobj;
17184 fail:
17185 {
17186 if (temp1)
17187 delete arg1;
17188 }
17189 {
17190 if (temp2)
17191 delete arg2;
17192 }
17193 {
17194 if (temp4)
17195 delete arg4;
17196 }
17197 return NULL;
17198 }
17199
17200
17201 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17202 int argc;
17203 PyObject *argv[5];
17204
17205 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
17206 --argc;
17207 if (argc == 1) {
17208 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17209 }
17210 if (argc == 2) {
17211 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17212 }
17213 if (argc == 3) {
17214 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17215 }
17216 if (argc == 4) {
17217 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17218 }
17219
17220 fail:
17221 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17222 return NULL;
17223 }
17224
17225
17226 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17227 PyObject *resultobj = 0;
17228 wxEncodingConverter *result = 0 ;
17229
17230 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17231 {
17232 PyThreadState* __tstate = wxPyBeginAllowThreads();
17233 result = (wxEncodingConverter *)new wxEncodingConverter();
17234 wxPyEndAllowThreads(__tstate);
17235 if (PyErr_Occurred()) SWIG_fail;
17236 }
17237 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17238 return resultobj;
17239 fail:
17240 return NULL;
17241 }
17242
17243
17244 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17245 PyObject *resultobj = 0;
17246 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17247 void *argp1 = 0 ;
17248 int res1 = 0 ;
17249 PyObject *swig_obj[1] ;
17250
17251 if (!args) SWIG_fail;
17252 swig_obj[0] = args;
17253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17254 if (!SWIG_IsOK(res1)) {
17255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17256 }
17257 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17258 {
17259 PyThreadState* __tstate = wxPyBeginAllowThreads();
17260 delete arg1;
17261
17262 wxPyEndAllowThreads(__tstate);
17263 if (PyErr_Occurred()) SWIG_fail;
17264 }
17265 resultobj = SWIG_Py_Void();
17266 return resultobj;
17267 fail:
17268 return NULL;
17269 }
17270
17271
17272 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17273 PyObject *resultobj = 0;
17274 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17275 wxFontEncoding arg2 ;
17276 wxFontEncoding arg3 ;
17277 int arg4 = (int) wxCONVERT_STRICT ;
17278 bool result;
17279 void *argp1 = 0 ;
17280 int res1 = 0 ;
17281 int val2 ;
17282 int ecode2 = 0 ;
17283 int val3 ;
17284 int ecode3 = 0 ;
17285 int val4 ;
17286 int ecode4 = 0 ;
17287 PyObject * obj0 = 0 ;
17288 PyObject * obj1 = 0 ;
17289 PyObject * obj2 = 0 ;
17290 PyObject * obj3 = 0 ;
17291 char * kwnames[] = {
17292 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17293 };
17294
17295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17297 if (!SWIG_IsOK(res1)) {
17298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17299 }
17300 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17301 ecode2 = SWIG_AsVal_int(obj1, &val2);
17302 if (!SWIG_IsOK(ecode2)) {
17303 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17304 }
17305 arg2 = static_cast< wxFontEncoding >(val2);
17306 ecode3 = SWIG_AsVal_int(obj2, &val3);
17307 if (!SWIG_IsOK(ecode3)) {
17308 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17309 }
17310 arg3 = static_cast< wxFontEncoding >(val3);
17311 if (obj3) {
17312 ecode4 = SWIG_AsVal_int(obj3, &val4);
17313 if (!SWIG_IsOK(ecode4)) {
17314 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17315 }
17316 arg4 = static_cast< int >(val4);
17317 }
17318 {
17319 PyThreadState* __tstate = wxPyBeginAllowThreads();
17320 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17321 wxPyEndAllowThreads(__tstate);
17322 if (PyErr_Occurred()) SWIG_fail;
17323 }
17324 {
17325 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17326 }
17327 return resultobj;
17328 fail:
17329 return NULL;
17330 }
17331
17332
17333 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17334 PyObject *resultobj = 0;
17335 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17336 wxString *arg2 = 0 ;
17337 wxString result;
17338 void *argp1 = 0 ;
17339 int res1 = 0 ;
17340 bool temp2 = false ;
17341 PyObject * obj0 = 0 ;
17342 PyObject * obj1 = 0 ;
17343 char * kwnames[] = {
17344 (char *) "self",(char *) "input", NULL
17345 };
17346
17347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17349 if (!SWIG_IsOK(res1)) {
17350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17351 }
17352 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17353 {
17354 arg2 = wxString_in_helper(obj1);
17355 if (arg2 == NULL) SWIG_fail;
17356 temp2 = true;
17357 }
17358 {
17359 PyThreadState* __tstate = wxPyBeginAllowThreads();
17360 result = (arg1)->Convert((wxString const &)*arg2);
17361 wxPyEndAllowThreads(__tstate);
17362 if (PyErr_Occurred()) SWIG_fail;
17363 }
17364 {
17365 #if wxUSE_UNICODE
17366 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17367 #else
17368 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17369 #endif
17370 }
17371 {
17372 if (temp2)
17373 delete arg2;
17374 }
17375 return resultobj;
17376 fail:
17377 {
17378 if (temp2)
17379 delete arg2;
17380 }
17381 return NULL;
17382 }
17383
17384
17385 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17386 PyObject *resultobj = 0;
17387 wxFontEncoding arg1 ;
17388 int arg2 = (int) wxPLATFORM_CURRENT ;
17389 wxFontEncodingArray result;
17390 int val1 ;
17391 int ecode1 = 0 ;
17392 int val2 ;
17393 int ecode2 = 0 ;
17394 PyObject * obj0 = 0 ;
17395 PyObject * obj1 = 0 ;
17396 char * kwnames[] = {
17397 (char *) "enc",(char *) "platform", NULL
17398 };
17399
17400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17401 ecode1 = SWIG_AsVal_int(obj0, &val1);
17402 if (!SWIG_IsOK(ecode1)) {
17403 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17404 }
17405 arg1 = static_cast< wxFontEncoding >(val1);
17406 if (obj1) {
17407 ecode2 = SWIG_AsVal_int(obj1, &val2);
17408 if (!SWIG_IsOK(ecode2)) {
17409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17410 }
17411 arg2 = static_cast< int >(val2);
17412 }
17413 {
17414 PyThreadState* __tstate = wxPyBeginAllowThreads();
17415 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17416 wxPyEndAllowThreads(__tstate);
17417 if (PyErr_Occurred()) SWIG_fail;
17418 }
17419 {
17420 resultobj = PyList_New(0);
17421 for (size_t i=0; i < (&result)->GetCount(); i++) {
17422 PyObject* number = PyInt_FromLong((&result)->Item(i));
17423 PyList_Append(resultobj, number);
17424 Py_DECREF(number);
17425 }
17426 }
17427 return resultobj;
17428 fail:
17429 return NULL;
17430 }
17431
17432
17433 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17434 PyObject *resultobj = 0;
17435 wxFontEncoding arg1 ;
17436 wxFontEncodingArray result;
17437 int val1 ;
17438 int ecode1 = 0 ;
17439 PyObject * obj0 = 0 ;
17440 char * kwnames[] = {
17441 (char *) "enc", NULL
17442 };
17443
17444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17445 ecode1 = SWIG_AsVal_int(obj0, &val1);
17446 if (!SWIG_IsOK(ecode1)) {
17447 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17448 }
17449 arg1 = static_cast< wxFontEncoding >(val1);
17450 {
17451 PyThreadState* __tstate = wxPyBeginAllowThreads();
17452 result = wxEncodingConverter::GetAllEquivalents(arg1);
17453 wxPyEndAllowThreads(__tstate);
17454 if (PyErr_Occurred()) SWIG_fail;
17455 }
17456 {
17457 resultobj = PyList_New(0);
17458 for (size_t i=0; i < (&result)->GetCount(); i++) {
17459 PyObject* number = PyInt_FromLong((&result)->Item(i));
17460 PyList_Append(resultobj, number);
17461 Py_DECREF(number);
17462 }
17463 }
17464 return resultobj;
17465 fail:
17466 return NULL;
17467 }
17468
17469
17470 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17471 PyObject *resultobj = 0;
17472 wxFontEncoding arg1 ;
17473 wxFontEncoding arg2 ;
17474 bool result;
17475 int val1 ;
17476 int ecode1 = 0 ;
17477 int val2 ;
17478 int ecode2 = 0 ;
17479 PyObject * obj0 = 0 ;
17480 PyObject * obj1 = 0 ;
17481 char * kwnames[] = {
17482 (char *) "encIn",(char *) "encOut", NULL
17483 };
17484
17485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17486 ecode1 = SWIG_AsVal_int(obj0, &val1);
17487 if (!SWIG_IsOK(ecode1)) {
17488 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17489 }
17490 arg1 = static_cast< wxFontEncoding >(val1);
17491 ecode2 = SWIG_AsVal_int(obj1, &val2);
17492 if (!SWIG_IsOK(ecode2)) {
17493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17494 }
17495 arg2 = static_cast< wxFontEncoding >(val2);
17496 {
17497 PyThreadState* __tstate = wxPyBeginAllowThreads();
17498 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17499 wxPyEndAllowThreads(__tstate);
17500 if (PyErr_Occurred()) SWIG_fail;
17501 }
17502 {
17503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17504 }
17505 return resultobj;
17506 fail:
17507 return NULL;
17508 }
17509
17510
17511 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17512 PyObject *obj;
17513 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17514 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17515 return SWIG_Py_Void();
17516 }
17517
17518 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17519 return SWIG_Python_InitShadowInstance(args);
17520 }
17521
17522 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17523 PyObject *resultobj = 0;
17524 wxDC *arg1 = (wxDC *) 0 ;
17525 void *argp1 = 0 ;
17526 int res1 = 0 ;
17527 PyObject *swig_obj[1] ;
17528
17529 if (!args) SWIG_fail;
17530 swig_obj[0] = args;
17531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17532 if (!SWIG_IsOK(res1)) {
17533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17534 }
17535 arg1 = reinterpret_cast< wxDC * >(argp1);
17536 {
17537 PyThreadState* __tstate = wxPyBeginAllowThreads();
17538 delete arg1;
17539
17540 wxPyEndAllowThreads(__tstate);
17541 if (PyErr_Occurred()) SWIG_fail;
17542 }
17543 resultobj = SWIG_Py_Void();
17544 return resultobj;
17545 fail:
17546 return NULL;
17547 }
17548
17549
17550 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17551 PyObject *resultobj = 0;
17552 wxDC *arg1 = (wxDC *) 0 ;
17553 int arg2 ;
17554 int arg3 ;
17555 wxColour *arg4 = 0 ;
17556 int arg5 = (int) wxFLOOD_SURFACE ;
17557 bool result;
17558 void *argp1 = 0 ;
17559 int res1 = 0 ;
17560 int val2 ;
17561 int ecode2 = 0 ;
17562 int val3 ;
17563 int ecode3 = 0 ;
17564 wxColour temp4 ;
17565 int val5 ;
17566 int ecode5 = 0 ;
17567 PyObject * obj0 = 0 ;
17568 PyObject * obj1 = 0 ;
17569 PyObject * obj2 = 0 ;
17570 PyObject * obj3 = 0 ;
17571 PyObject * obj4 = 0 ;
17572 char * kwnames[] = {
17573 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17574 };
17575
17576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17578 if (!SWIG_IsOK(res1)) {
17579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17580 }
17581 arg1 = reinterpret_cast< wxDC * >(argp1);
17582 ecode2 = SWIG_AsVal_int(obj1, &val2);
17583 if (!SWIG_IsOK(ecode2)) {
17584 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17585 }
17586 arg2 = static_cast< int >(val2);
17587 ecode3 = SWIG_AsVal_int(obj2, &val3);
17588 if (!SWIG_IsOK(ecode3)) {
17589 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17590 }
17591 arg3 = static_cast< int >(val3);
17592 {
17593 arg4 = &temp4;
17594 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17595 }
17596 if (obj4) {
17597 ecode5 = SWIG_AsVal_int(obj4, &val5);
17598 if (!SWIG_IsOK(ecode5)) {
17599 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17600 }
17601 arg5 = static_cast< int >(val5);
17602 }
17603 {
17604 PyThreadState* __tstate = wxPyBeginAllowThreads();
17605 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17606 wxPyEndAllowThreads(__tstate);
17607 if (PyErr_Occurred()) SWIG_fail;
17608 }
17609 {
17610 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17611 }
17612 return resultobj;
17613 fail:
17614 return NULL;
17615 }
17616
17617
17618 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17619 PyObject *resultobj = 0;
17620 wxDC *arg1 = (wxDC *) 0 ;
17621 wxPoint *arg2 = 0 ;
17622 wxColour *arg3 = 0 ;
17623 int arg4 = (int) wxFLOOD_SURFACE ;
17624 bool result;
17625 void *argp1 = 0 ;
17626 int res1 = 0 ;
17627 wxPoint temp2 ;
17628 wxColour temp3 ;
17629 int val4 ;
17630 int ecode4 = 0 ;
17631 PyObject * obj0 = 0 ;
17632 PyObject * obj1 = 0 ;
17633 PyObject * obj2 = 0 ;
17634 PyObject * obj3 = 0 ;
17635 char * kwnames[] = {
17636 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17637 };
17638
17639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17641 if (!SWIG_IsOK(res1)) {
17642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17643 }
17644 arg1 = reinterpret_cast< wxDC * >(argp1);
17645 {
17646 arg2 = &temp2;
17647 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17648 }
17649 {
17650 arg3 = &temp3;
17651 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17652 }
17653 if (obj3) {
17654 ecode4 = SWIG_AsVal_int(obj3, &val4);
17655 if (!SWIG_IsOK(ecode4)) {
17656 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17657 }
17658 arg4 = static_cast< int >(val4);
17659 }
17660 {
17661 PyThreadState* __tstate = wxPyBeginAllowThreads();
17662 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17663 wxPyEndAllowThreads(__tstate);
17664 if (PyErr_Occurred()) SWIG_fail;
17665 }
17666 {
17667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17668 }
17669 return resultobj;
17670 fail:
17671 return NULL;
17672 }
17673
17674
17675 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17676 PyObject *resultobj = 0;
17677 wxDC *arg1 = (wxDC *) 0 ;
17678 wxRect *arg2 = 0 ;
17679 wxColour *arg3 = 0 ;
17680 wxColour *arg4 = 0 ;
17681 wxPoint *arg5 = 0 ;
17682 void *argp1 = 0 ;
17683 int res1 = 0 ;
17684 wxRect temp2 ;
17685 wxColour temp3 ;
17686 wxColour temp4 ;
17687 wxPoint temp5 ;
17688 PyObject * obj0 = 0 ;
17689 PyObject * obj1 = 0 ;
17690 PyObject * obj2 = 0 ;
17691 PyObject * obj3 = 0 ;
17692 PyObject * obj4 = 0 ;
17693 char * kwnames[] = {
17694 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17695 };
17696
17697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17699 if (!SWIG_IsOK(res1)) {
17700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17701 }
17702 arg1 = reinterpret_cast< wxDC * >(argp1);
17703 {
17704 arg2 = &temp2;
17705 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17706 }
17707 {
17708 arg3 = &temp3;
17709 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17710 }
17711 {
17712 arg4 = &temp4;
17713 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17714 }
17715 {
17716 arg5 = &temp5;
17717 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17718 }
17719 {
17720 PyThreadState* __tstate = wxPyBeginAllowThreads();
17721 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17722 wxPyEndAllowThreads(__tstate);
17723 if (PyErr_Occurred()) SWIG_fail;
17724 }
17725 resultobj = SWIG_Py_Void();
17726 return resultobj;
17727 fail:
17728 return NULL;
17729 }
17730
17731
17732 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17733 PyObject *resultobj = 0;
17734 wxDC *arg1 = (wxDC *) 0 ;
17735 wxRect *arg2 = 0 ;
17736 wxColour *arg3 = 0 ;
17737 wxColour *arg4 = 0 ;
17738 wxDirection arg5 = (wxDirection) wxEAST ;
17739 void *argp1 = 0 ;
17740 int res1 = 0 ;
17741 wxRect temp2 ;
17742 wxColour temp3 ;
17743 wxColour temp4 ;
17744 int val5 ;
17745 int ecode5 = 0 ;
17746 PyObject * obj0 = 0 ;
17747 PyObject * obj1 = 0 ;
17748 PyObject * obj2 = 0 ;
17749 PyObject * obj3 = 0 ;
17750 PyObject * obj4 = 0 ;
17751 char * kwnames[] = {
17752 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17753 };
17754
17755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17757 if (!SWIG_IsOK(res1)) {
17758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17759 }
17760 arg1 = reinterpret_cast< wxDC * >(argp1);
17761 {
17762 arg2 = &temp2;
17763 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17764 }
17765 {
17766 arg3 = &temp3;
17767 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17768 }
17769 {
17770 arg4 = &temp4;
17771 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17772 }
17773 if (obj4) {
17774 ecode5 = SWIG_AsVal_int(obj4, &val5);
17775 if (!SWIG_IsOK(ecode5)) {
17776 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17777 }
17778 arg5 = static_cast< wxDirection >(val5);
17779 }
17780 {
17781 PyThreadState* __tstate = wxPyBeginAllowThreads();
17782 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17783 wxPyEndAllowThreads(__tstate);
17784 if (PyErr_Occurred()) SWIG_fail;
17785 }
17786 resultobj = SWIG_Py_Void();
17787 return resultobj;
17788 fail:
17789 return NULL;
17790 }
17791
17792
17793 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17794 PyObject *resultobj = 0;
17795 wxDC *arg1 = (wxDC *) 0 ;
17796 int arg2 ;
17797 int arg3 ;
17798 wxColour result;
17799 void *argp1 = 0 ;
17800 int res1 = 0 ;
17801 int val2 ;
17802 int ecode2 = 0 ;
17803 int val3 ;
17804 int ecode3 = 0 ;
17805 PyObject * obj0 = 0 ;
17806 PyObject * obj1 = 0 ;
17807 PyObject * obj2 = 0 ;
17808 char * kwnames[] = {
17809 (char *) "self",(char *) "x",(char *) "y", NULL
17810 };
17811
17812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17814 if (!SWIG_IsOK(res1)) {
17815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17816 }
17817 arg1 = reinterpret_cast< wxDC * >(argp1);
17818 ecode2 = SWIG_AsVal_int(obj1, &val2);
17819 if (!SWIG_IsOK(ecode2)) {
17820 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17821 }
17822 arg2 = static_cast< int >(val2);
17823 ecode3 = SWIG_AsVal_int(obj2, &val3);
17824 if (!SWIG_IsOK(ecode3)) {
17825 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17826 }
17827 arg3 = static_cast< int >(val3);
17828 {
17829 PyThreadState* __tstate = wxPyBeginAllowThreads();
17830 result = wxDC_GetPixel(arg1,arg2,arg3);
17831 wxPyEndAllowThreads(__tstate);
17832 if (PyErr_Occurred()) SWIG_fail;
17833 }
17834 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17835 return resultobj;
17836 fail:
17837 return NULL;
17838 }
17839
17840
17841 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17842 PyObject *resultobj = 0;
17843 wxDC *arg1 = (wxDC *) 0 ;
17844 wxPoint *arg2 = 0 ;
17845 wxColour result;
17846 void *argp1 = 0 ;
17847 int res1 = 0 ;
17848 wxPoint temp2 ;
17849 PyObject * obj0 = 0 ;
17850 PyObject * obj1 = 0 ;
17851 char * kwnames[] = {
17852 (char *) "self",(char *) "pt", NULL
17853 };
17854
17855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17857 if (!SWIG_IsOK(res1)) {
17858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17859 }
17860 arg1 = reinterpret_cast< wxDC * >(argp1);
17861 {
17862 arg2 = &temp2;
17863 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17864 }
17865 {
17866 PyThreadState* __tstate = wxPyBeginAllowThreads();
17867 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17868 wxPyEndAllowThreads(__tstate);
17869 if (PyErr_Occurred()) SWIG_fail;
17870 }
17871 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17872 return resultobj;
17873 fail:
17874 return NULL;
17875 }
17876
17877
17878 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17879 PyObject *resultobj = 0;
17880 wxDC *arg1 = (wxDC *) 0 ;
17881 int arg2 ;
17882 int arg3 ;
17883 int arg4 ;
17884 int arg5 ;
17885 void *argp1 = 0 ;
17886 int res1 = 0 ;
17887 int val2 ;
17888 int ecode2 = 0 ;
17889 int val3 ;
17890 int ecode3 = 0 ;
17891 int val4 ;
17892 int ecode4 = 0 ;
17893 int val5 ;
17894 int ecode5 = 0 ;
17895 PyObject * obj0 = 0 ;
17896 PyObject * obj1 = 0 ;
17897 PyObject * obj2 = 0 ;
17898 PyObject * obj3 = 0 ;
17899 PyObject * obj4 = 0 ;
17900 char * kwnames[] = {
17901 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17902 };
17903
17904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17906 if (!SWIG_IsOK(res1)) {
17907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17908 }
17909 arg1 = reinterpret_cast< wxDC * >(argp1);
17910 ecode2 = SWIG_AsVal_int(obj1, &val2);
17911 if (!SWIG_IsOK(ecode2)) {
17912 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17913 }
17914 arg2 = static_cast< int >(val2);
17915 ecode3 = SWIG_AsVal_int(obj2, &val3);
17916 if (!SWIG_IsOK(ecode3)) {
17917 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17918 }
17919 arg3 = static_cast< int >(val3);
17920 ecode4 = SWIG_AsVal_int(obj3, &val4);
17921 if (!SWIG_IsOK(ecode4)) {
17922 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17923 }
17924 arg4 = static_cast< int >(val4);
17925 ecode5 = SWIG_AsVal_int(obj4, &val5);
17926 if (!SWIG_IsOK(ecode5)) {
17927 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17928 }
17929 arg5 = static_cast< int >(val5);
17930 {
17931 PyThreadState* __tstate = wxPyBeginAllowThreads();
17932 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17933 wxPyEndAllowThreads(__tstate);
17934 if (PyErr_Occurred()) SWIG_fail;
17935 }
17936 resultobj = SWIG_Py_Void();
17937 return resultobj;
17938 fail:
17939 return NULL;
17940 }
17941
17942
17943 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17944 PyObject *resultobj = 0;
17945 wxDC *arg1 = (wxDC *) 0 ;
17946 wxPoint *arg2 = 0 ;
17947 wxPoint *arg3 = 0 ;
17948 void *argp1 = 0 ;
17949 int res1 = 0 ;
17950 wxPoint temp2 ;
17951 wxPoint temp3 ;
17952 PyObject * obj0 = 0 ;
17953 PyObject * obj1 = 0 ;
17954 PyObject * obj2 = 0 ;
17955 char * kwnames[] = {
17956 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17957 };
17958
17959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17961 if (!SWIG_IsOK(res1)) {
17962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17963 }
17964 arg1 = reinterpret_cast< wxDC * >(argp1);
17965 {
17966 arg2 = &temp2;
17967 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17968 }
17969 {
17970 arg3 = &temp3;
17971 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17972 }
17973 {
17974 PyThreadState* __tstate = wxPyBeginAllowThreads();
17975 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17976 wxPyEndAllowThreads(__tstate);
17977 if (PyErr_Occurred()) SWIG_fail;
17978 }
17979 resultobj = SWIG_Py_Void();
17980 return resultobj;
17981 fail:
17982 return NULL;
17983 }
17984
17985
17986 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17987 PyObject *resultobj = 0;
17988 wxDC *arg1 = (wxDC *) 0 ;
17989 int arg2 ;
17990 int arg3 ;
17991 void *argp1 = 0 ;
17992 int res1 = 0 ;
17993 int val2 ;
17994 int ecode2 = 0 ;
17995 int val3 ;
17996 int ecode3 = 0 ;
17997 PyObject * obj0 = 0 ;
17998 PyObject * obj1 = 0 ;
17999 PyObject * obj2 = 0 ;
18000 char * kwnames[] = {
18001 (char *) "self",(char *) "x",(char *) "y", NULL
18002 };
18003
18004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18006 if (!SWIG_IsOK(res1)) {
18007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18008 }
18009 arg1 = reinterpret_cast< wxDC * >(argp1);
18010 ecode2 = SWIG_AsVal_int(obj1, &val2);
18011 if (!SWIG_IsOK(ecode2)) {
18012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18013 }
18014 arg2 = static_cast< int >(val2);
18015 ecode3 = SWIG_AsVal_int(obj2, &val3);
18016 if (!SWIG_IsOK(ecode3)) {
18017 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18018 }
18019 arg3 = static_cast< int >(val3);
18020 {
18021 PyThreadState* __tstate = wxPyBeginAllowThreads();
18022 (arg1)->CrossHair(arg2,arg3);
18023 wxPyEndAllowThreads(__tstate);
18024 if (PyErr_Occurred()) SWIG_fail;
18025 }
18026 resultobj = SWIG_Py_Void();
18027 return resultobj;
18028 fail:
18029 return NULL;
18030 }
18031
18032
18033 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18034 PyObject *resultobj = 0;
18035 wxDC *arg1 = (wxDC *) 0 ;
18036 wxPoint *arg2 = 0 ;
18037 void *argp1 = 0 ;
18038 int res1 = 0 ;
18039 wxPoint temp2 ;
18040 PyObject * obj0 = 0 ;
18041 PyObject * obj1 = 0 ;
18042 char * kwnames[] = {
18043 (char *) "self",(char *) "pt", NULL
18044 };
18045
18046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18048 if (!SWIG_IsOK(res1)) {
18049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18050 }
18051 arg1 = reinterpret_cast< wxDC * >(argp1);
18052 {
18053 arg2 = &temp2;
18054 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18055 }
18056 {
18057 PyThreadState* __tstate = wxPyBeginAllowThreads();
18058 (arg1)->CrossHair((wxPoint const &)*arg2);
18059 wxPyEndAllowThreads(__tstate);
18060 if (PyErr_Occurred()) SWIG_fail;
18061 }
18062 resultobj = SWIG_Py_Void();
18063 return resultobj;
18064 fail:
18065 return NULL;
18066 }
18067
18068
18069 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18070 PyObject *resultobj = 0;
18071 wxDC *arg1 = (wxDC *) 0 ;
18072 int arg2 ;
18073 int arg3 ;
18074 int arg4 ;
18075 int arg5 ;
18076 int arg6 ;
18077 int arg7 ;
18078 void *argp1 = 0 ;
18079 int res1 = 0 ;
18080 int val2 ;
18081 int ecode2 = 0 ;
18082 int val3 ;
18083 int ecode3 = 0 ;
18084 int val4 ;
18085 int ecode4 = 0 ;
18086 int val5 ;
18087 int ecode5 = 0 ;
18088 int val6 ;
18089 int ecode6 = 0 ;
18090 int val7 ;
18091 int ecode7 = 0 ;
18092 PyObject * obj0 = 0 ;
18093 PyObject * obj1 = 0 ;
18094 PyObject * obj2 = 0 ;
18095 PyObject * obj3 = 0 ;
18096 PyObject * obj4 = 0 ;
18097 PyObject * obj5 = 0 ;
18098 PyObject * obj6 = 0 ;
18099 char * kwnames[] = {
18100 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18101 };
18102
18103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18105 if (!SWIG_IsOK(res1)) {
18106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18107 }
18108 arg1 = reinterpret_cast< wxDC * >(argp1);
18109 ecode2 = SWIG_AsVal_int(obj1, &val2);
18110 if (!SWIG_IsOK(ecode2)) {
18111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18112 }
18113 arg2 = static_cast< int >(val2);
18114 ecode3 = SWIG_AsVal_int(obj2, &val3);
18115 if (!SWIG_IsOK(ecode3)) {
18116 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18117 }
18118 arg3 = static_cast< int >(val3);
18119 ecode4 = SWIG_AsVal_int(obj3, &val4);
18120 if (!SWIG_IsOK(ecode4)) {
18121 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18122 }
18123 arg4 = static_cast< int >(val4);
18124 ecode5 = SWIG_AsVal_int(obj4, &val5);
18125 if (!SWIG_IsOK(ecode5)) {
18126 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18127 }
18128 arg5 = static_cast< int >(val5);
18129 ecode6 = SWIG_AsVal_int(obj5, &val6);
18130 if (!SWIG_IsOK(ecode6)) {
18131 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18132 }
18133 arg6 = static_cast< int >(val6);
18134 ecode7 = SWIG_AsVal_int(obj6, &val7);
18135 if (!SWIG_IsOK(ecode7)) {
18136 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18137 }
18138 arg7 = static_cast< int >(val7);
18139 {
18140 PyThreadState* __tstate = wxPyBeginAllowThreads();
18141 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18142 wxPyEndAllowThreads(__tstate);
18143 if (PyErr_Occurred()) SWIG_fail;
18144 }
18145 resultobj = SWIG_Py_Void();
18146 return resultobj;
18147 fail:
18148 return NULL;
18149 }
18150
18151
18152 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18153 PyObject *resultobj = 0;
18154 wxDC *arg1 = (wxDC *) 0 ;
18155 wxPoint *arg2 = 0 ;
18156 wxPoint *arg3 = 0 ;
18157 wxPoint *arg4 = 0 ;
18158 void *argp1 = 0 ;
18159 int res1 = 0 ;
18160 wxPoint temp2 ;
18161 wxPoint temp3 ;
18162 wxPoint temp4 ;
18163 PyObject * obj0 = 0 ;
18164 PyObject * obj1 = 0 ;
18165 PyObject * obj2 = 0 ;
18166 PyObject * obj3 = 0 ;
18167 char * kwnames[] = {
18168 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18169 };
18170
18171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18173 if (!SWIG_IsOK(res1)) {
18174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18175 }
18176 arg1 = reinterpret_cast< wxDC * >(argp1);
18177 {
18178 arg2 = &temp2;
18179 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18180 }
18181 {
18182 arg3 = &temp3;
18183 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18184 }
18185 {
18186 arg4 = &temp4;
18187 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18188 }
18189 {
18190 PyThreadState* __tstate = wxPyBeginAllowThreads();
18191 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18192 wxPyEndAllowThreads(__tstate);
18193 if (PyErr_Occurred()) SWIG_fail;
18194 }
18195 resultobj = SWIG_Py_Void();
18196 return resultobj;
18197 fail:
18198 return NULL;
18199 }
18200
18201
18202 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18203 PyObject *resultobj = 0;
18204 wxDC *arg1 = (wxDC *) 0 ;
18205 int arg2 ;
18206 int arg3 ;
18207 int arg4 ;
18208 int arg5 ;
18209 void *argp1 = 0 ;
18210 int res1 = 0 ;
18211 int val2 ;
18212 int ecode2 = 0 ;
18213 int val3 ;
18214 int ecode3 = 0 ;
18215 int val4 ;
18216 int ecode4 = 0 ;
18217 int val5 ;
18218 int ecode5 = 0 ;
18219 PyObject * obj0 = 0 ;
18220 PyObject * obj1 = 0 ;
18221 PyObject * obj2 = 0 ;
18222 PyObject * obj3 = 0 ;
18223 PyObject * obj4 = 0 ;
18224 char * kwnames[] = {
18225 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18226 };
18227
18228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18230 if (!SWIG_IsOK(res1)) {
18231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18232 }
18233 arg1 = reinterpret_cast< wxDC * >(argp1);
18234 ecode2 = SWIG_AsVal_int(obj1, &val2);
18235 if (!SWIG_IsOK(ecode2)) {
18236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18237 }
18238 arg2 = static_cast< int >(val2);
18239 ecode3 = SWIG_AsVal_int(obj2, &val3);
18240 if (!SWIG_IsOK(ecode3)) {
18241 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18242 }
18243 arg3 = static_cast< int >(val3);
18244 ecode4 = SWIG_AsVal_int(obj3, &val4);
18245 if (!SWIG_IsOK(ecode4)) {
18246 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18247 }
18248 arg4 = static_cast< int >(val4);
18249 ecode5 = SWIG_AsVal_int(obj4, &val5);
18250 if (!SWIG_IsOK(ecode5)) {
18251 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18252 }
18253 arg5 = static_cast< int >(val5);
18254 {
18255 PyThreadState* __tstate = wxPyBeginAllowThreads();
18256 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18257 wxPyEndAllowThreads(__tstate);
18258 if (PyErr_Occurred()) SWIG_fail;
18259 }
18260 resultobj = SWIG_Py_Void();
18261 return resultobj;
18262 fail:
18263 return NULL;
18264 }
18265
18266
18267 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18268 PyObject *resultobj = 0;
18269 wxDC *arg1 = (wxDC *) 0 ;
18270 wxRect *arg2 = 0 ;
18271 void *argp1 = 0 ;
18272 int res1 = 0 ;
18273 wxRect temp2 ;
18274 PyObject * obj0 = 0 ;
18275 PyObject * obj1 = 0 ;
18276 char * kwnames[] = {
18277 (char *) "self",(char *) "rect", NULL
18278 };
18279
18280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18282 if (!SWIG_IsOK(res1)) {
18283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18284 }
18285 arg1 = reinterpret_cast< wxDC * >(argp1);
18286 {
18287 arg2 = &temp2;
18288 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18289 }
18290 {
18291 PyThreadState* __tstate = wxPyBeginAllowThreads();
18292 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18293 wxPyEndAllowThreads(__tstate);
18294 if (PyErr_Occurred()) SWIG_fail;
18295 }
18296 resultobj = SWIG_Py_Void();
18297 return resultobj;
18298 fail:
18299 return NULL;
18300 }
18301
18302
18303 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18304 PyObject *resultobj = 0;
18305 wxDC *arg1 = (wxDC *) 0 ;
18306 int arg2 ;
18307 int arg3 ;
18308 int arg4 ;
18309 int arg5 ;
18310 double arg6 ;
18311 double arg7 ;
18312 void *argp1 = 0 ;
18313 int res1 = 0 ;
18314 int val2 ;
18315 int ecode2 = 0 ;
18316 int val3 ;
18317 int ecode3 = 0 ;
18318 int val4 ;
18319 int ecode4 = 0 ;
18320 int val5 ;
18321 int ecode5 = 0 ;
18322 double val6 ;
18323 int ecode6 = 0 ;
18324 double val7 ;
18325 int ecode7 = 0 ;
18326 PyObject * obj0 = 0 ;
18327 PyObject * obj1 = 0 ;
18328 PyObject * obj2 = 0 ;
18329 PyObject * obj3 = 0 ;
18330 PyObject * obj4 = 0 ;
18331 PyObject * obj5 = 0 ;
18332 PyObject * obj6 = 0 ;
18333 char * kwnames[] = {
18334 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18335 };
18336
18337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18339 if (!SWIG_IsOK(res1)) {
18340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18341 }
18342 arg1 = reinterpret_cast< wxDC * >(argp1);
18343 ecode2 = SWIG_AsVal_int(obj1, &val2);
18344 if (!SWIG_IsOK(ecode2)) {
18345 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18346 }
18347 arg2 = static_cast< int >(val2);
18348 ecode3 = SWIG_AsVal_int(obj2, &val3);
18349 if (!SWIG_IsOK(ecode3)) {
18350 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18351 }
18352 arg3 = static_cast< int >(val3);
18353 ecode4 = SWIG_AsVal_int(obj3, &val4);
18354 if (!SWIG_IsOK(ecode4)) {
18355 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18356 }
18357 arg4 = static_cast< int >(val4);
18358 ecode5 = SWIG_AsVal_int(obj4, &val5);
18359 if (!SWIG_IsOK(ecode5)) {
18360 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18361 }
18362 arg5 = static_cast< int >(val5);
18363 ecode6 = SWIG_AsVal_double(obj5, &val6);
18364 if (!SWIG_IsOK(ecode6)) {
18365 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18366 }
18367 arg6 = static_cast< double >(val6);
18368 ecode7 = SWIG_AsVal_double(obj6, &val7);
18369 if (!SWIG_IsOK(ecode7)) {
18370 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18371 }
18372 arg7 = static_cast< double >(val7);
18373 {
18374 PyThreadState* __tstate = wxPyBeginAllowThreads();
18375 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18376 wxPyEndAllowThreads(__tstate);
18377 if (PyErr_Occurred()) SWIG_fail;
18378 }
18379 resultobj = SWIG_Py_Void();
18380 return resultobj;
18381 fail:
18382 return NULL;
18383 }
18384
18385
18386 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18387 PyObject *resultobj = 0;
18388 wxDC *arg1 = (wxDC *) 0 ;
18389 wxPoint *arg2 = 0 ;
18390 wxSize *arg3 = 0 ;
18391 double arg4 ;
18392 double arg5 ;
18393 void *argp1 = 0 ;
18394 int res1 = 0 ;
18395 wxPoint temp2 ;
18396 wxSize temp3 ;
18397 double val4 ;
18398 int ecode4 = 0 ;
18399 double val5 ;
18400 int ecode5 = 0 ;
18401 PyObject * obj0 = 0 ;
18402 PyObject * obj1 = 0 ;
18403 PyObject * obj2 = 0 ;
18404 PyObject * obj3 = 0 ;
18405 PyObject * obj4 = 0 ;
18406 char * kwnames[] = {
18407 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18408 };
18409
18410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18412 if (!SWIG_IsOK(res1)) {
18413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18414 }
18415 arg1 = reinterpret_cast< wxDC * >(argp1);
18416 {
18417 arg2 = &temp2;
18418 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18419 }
18420 {
18421 arg3 = &temp3;
18422 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18423 }
18424 ecode4 = SWIG_AsVal_double(obj3, &val4);
18425 if (!SWIG_IsOK(ecode4)) {
18426 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18427 }
18428 arg4 = static_cast< double >(val4);
18429 ecode5 = SWIG_AsVal_double(obj4, &val5);
18430 if (!SWIG_IsOK(ecode5)) {
18431 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18432 }
18433 arg5 = static_cast< double >(val5);
18434 {
18435 PyThreadState* __tstate = wxPyBeginAllowThreads();
18436 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18437 wxPyEndAllowThreads(__tstate);
18438 if (PyErr_Occurred()) SWIG_fail;
18439 }
18440 resultobj = SWIG_Py_Void();
18441 return resultobj;
18442 fail:
18443 return NULL;
18444 }
18445
18446
18447 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18448 PyObject *resultobj = 0;
18449 wxDC *arg1 = (wxDC *) 0 ;
18450 int arg2 ;
18451 int arg3 ;
18452 void *argp1 = 0 ;
18453 int res1 = 0 ;
18454 int val2 ;
18455 int ecode2 = 0 ;
18456 int val3 ;
18457 int ecode3 = 0 ;
18458 PyObject * obj0 = 0 ;
18459 PyObject * obj1 = 0 ;
18460 PyObject * obj2 = 0 ;
18461 char * kwnames[] = {
18462 (char *) "self",(char *) "x",(char *) "y", NULL
18463 };
18464
18465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18467 if (!SWIG_IsOK(res1)) {
18468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18469 }
18470 arg1 = reinterpret_cast< wxDC * >(argp1);
18471 ecode2 = SWIG_AsVal_int(obj1, &val2);
18472 if (!SWIG_IsOK(ecode2)) {
18473 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18474 }
18475 arg2 = static_cast< int >(val2);
18476 ecode3 = SWIG_AsVal_int(obj2, &val3);
18477 if (!SWIG_IsOK(ecode3)) {
18478 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18479 }
18480 arg3 = static_cast< int >(val3);
18481 {
18482 PyThreadState* __tstate = wxPyBeginAllowThreads();
18483 (arg1)->DrawPoint(arg2,arg3);
18484 wxPyEndAllowThreads(__tstate);
18485 if (PyErr_Occurred()) SWIG_fail;
18486 }
18487 resultobj = SWIG_Py_Void();
18488 return resultobj;
18489 fail:
18490 return NULL;
18491 }
18492
18493
18494 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18495 PyObject *resultobj = 0;
18496 wxDC *arg1 = (wxDC *) 0 ;
18497 wxPoint *arg2 = 0 ;
18498 void *argp1 = 0 ;
18499 int res1 = 0 ;
18500 wxPoint temp2 ;
18501 PyObject * obj0 = 0 ;
18502 PyObject * obj1 = 0 ;
18503 char * kwnames[] = {
18504 (char *) "self",(char *) "pt", NULL
18505 };
18506
18507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18509 if (!SWIG_IsOK(res1)) {
18510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18511 }
18512 arg1 = reinterpret_cast< wxDC * >(argp1);
18513 {
18514 arg2 = &temp2;
18515 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18516 }
18517 {
18518 PyThreadState* __tstate = wxPyBeginAllowThreads();
18519 (arg1)->DrawPoint((wxPoint const &)*arg2);
18520 wxPyEndAllowThreads(__tstate);
18521 if (PyErr_Occurred()) SWIG_fail;
18522 }
18523 resultobj = SWIG_Py_Void();
18524 return resultobj;
18525 fail:
18526 return NULL;
18527 }
18528
18529
18530 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18531 PyObject *resultobj = 0;
18532 wxDC *arg1 = (wxDC *) 0 ;
18533 int arg2 ;
18534 int arg3 ;
18535 int arg4 ;
18536 int arg5 ;
18537 void *argp1 = 0 ;
18538 int res1 = 0 ;
18539 int val2 ;
18540 int ecode2 = 0 ;
18541 int val3 ;
18542 int ecode3 = 0 ;
18543 int val4 ;
18544 int ecode4 = 0 ;
18545 int val5 ;
18546 int ecode5 = 0 ;
18547 PyObject * obj0 = 0 ;
18548 PyObject * obj1 = 0 ;
18549 PyObject * obj2 = 0 ;
18550 PyObject * obj3 = 0 ;
18551 PyObject * obj4 = 0 ;
18552 char * kwnames[] = {
18553 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18554 };
18555
18556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18558 if (!SWIG_IsOK(res1)) {
18559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18560 }
18561 arg1 = reinterpret_cast< wxDC * >(argp1);
18562 ecode2 = SWIG_AsVal_int(obj1, &val2);
18563 if (!SWIG_IsOK(ecode2)) {
18564 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18565 }
18566 arg2 = static_cast< int >(val2);
18567 ecode3 = SWIG_AsVal_int(obj2, &val3);
18568 if (!SWIG_IsOK(ecode3)) {
18569 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18570 }
18571 arg3 = static_cast< int >(val3);
18572 ecode4 = SWIG_AsVal_int(obj3, &val4);
18573 if (!SWIG_IsOK(ecode4)) {
18574 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18575 }
18576 arg4 = static_cast< int >(val4);
18577 ecode5 = SWIG_AsVal_int(obj4, &val5);
18578 if (!SWIG_IsOK(ecode5)) {
18579 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18580 }
18581 arg5 = static_cast< int >(val5);
18582 {
18583 PyThreadState* __tstate = wxPyBeginAllowThreads();
18584 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18585 wxPyEndAllowThreads(__tstate);
18586 if (PyErr_Occurred()) SWIG_fail;
18587 }
18588 resultobj = SWIG_Py_Void();
18589 return resultobj;
18590 fail:
18591 return NULL;
18592 }
18593
18594
18595 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18596 PyObject *resultobj = 0;
18597 wxDC *arg1 = (wxDC *) 0 ;
18598 wxRect *arg2 = 0 ;
18599 void *argp1 = 0 ;
18600 int res1 = 0 ;
18601 wxRect temp2 ;
18602 PyObject * obj0 = 0 ;
18603 PyObject * obj1 = 0 ;
18604 char * kwnames[] = {
18605 (char *) "self",(char *) "rect", NULL
18606 };
18607
18608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18610 if (!SWIG_IsOK(res1)) {
18611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18612 }
18613 arg1 = reinterpret_cast< wxDC * >(argp1);
18614 {
18615 arg2 = &temp2;
18616 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18617 }
18618 {
18619 PyThreadState* __tstate = wxPyBeginAllowThreads();
18620 (arg1)->DrawRectangle((wxRect const &)*arg2);
18621 wxPyEndAllowThreads(__tstate);
18622 if (PyErr_Occurred()) SWIG_fail;
18623 }
18624 resultobj = SWIG_Py_Void();
18625 return resultobj;
18626 fail:
18627 return NULL;
18628 }
18629
18630
18631 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18632 PyObject *resultobj = 0;
18633 wxDC *arg1 = (wxDC *) 0 ;
18634 wxPoint *arg2 = 0 ;
18635 wxSize *arg3 = 0 ;
18636 void *argp1 = 0 ;
18637 int res1 = 0 ;
18638 wxPoint temp2 ;
18639 wxSize temp3 ;
18640 PyObject * obj0 = 0 ;
18641 PyObject * obj1 = 0 ;
18642 PyObject * obj2 = 0 ;
18643 char * kwnames[] = {
18644 (char *) "self",(char *) "pt",(char *) "sz", NULL
18645 };
18646
18647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18649 if (!SWIG_IsOK(res1)) {
18650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18651 }
18652 arg1 = reinterpret_cast< wxDC * >(argp1);
18653 {
18654 arg2 = &temp2;
18655 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18656 }
18657 {
18658 arg3 = &temp3;
18659 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18660 }
18661 {
18662 PyThreadState* __tstate = wxPyBeginAllowThreads();
18663 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18664 wxPyEndAllowThreads(__tstate);
18665 if (PyErr_Occurred()) SWIG_fail;
18666 }
18667 resultobj = SWIG_Py_Void();
18668 return resultobj;
18669 fail:
18670 return NULL;
18671 }
18672
18673
18674 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18675 PyObject *resultobj = 0;
18676 wxDC *arg1 = (wxDC *) 0 ;
18677 int arg2 ;
18678 int arg3 ;
18679 int arg4 ;
18680 int arg5 ;
18681 double arg6 ;
18682 void *argp1 = 0 ;
18683 int res1 = 0 ;
18684 int val2 ;
18685 int ecode2 = 0 ;
18686 int val3 ;
18687 int ecode3 = 0 ;
18688 int val4 ;
18689 int ecode4 = 0 ;
18690 int val5 ;
18691 int ecode5 = 0 ;
18692 double val6 ;
18693 int ecode6 = 0 ;
18694 PyObject * obj0 = 0 ;
18695 PyObject * obj1 = 0 ;
18696 PyObject * obj2 = 0 ;
18697 PyObject * obj3 = 0 ;
18698 PyObject * obj4 = 0 ;
18699 PyObject * obj5 = 0 ;
18700 char * kwnames[] = {
18701 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18702 };
18703
18704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18706 if (!SWIG_IsOK(res1)) {
18707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18708 }
18709 arg1 = reinterpret_cast< wxDC * >(argp1);
18710 ecode2 = SWIG_AsVal_int(obj1, &val2);
18711 if (!SWIG_IsOK(ecode2)) {
18712 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18713 }
18714 arg2 = static_cast< int >(val2);
18715 ecode3 = SWIG_AsVal_int(obj2, &val3);
18716 if (!SWIG_IsOK(ecode3)) {
18717 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18718 }
18719 arg3 = static_cast< int >(val3);
18720 ecode4 = SWIG_AsVal_int(obj3, &val4);
18721 if (!SWIG_IsOK(ecode4)) {
18722 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18723 }
18724 arg4 = static_cast< int >(val4);
18725 ecode5 = SWIG_AsVal_int(obj4, &val5);
18726 if (!SWIG_IsOK(ecode5)) {
18727 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18728 }
18729 arg5 = static_cast< int >(val5);
18730 ecode6 = SWIG_AsVal_double(obj5, &val6);
18731 if (!SWIG_IsOK(ecode6)) {
18732 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18733 }
18734 arg6 = static_cast< double >(val6);
18735 {
18736 PyThreadState* __tstate = wxPyBeginAllowThreads();
18737 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18738 wxPyEndAllowThreads(__tstate);
18739 if (PyErr_Occurred()) SWIG_fail;
18740 }
18741 resultobj = SWIG_Py_Void();
18742 return resultobj;
18743 fail:
18744 return NULL;
18745 }
18746
18747
18748 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18749 PyObject *resultobj = 0;
18750 wxDC *arg1 = (wxDC *) 0 ;
18751 wxRect *arg2 = 0 ;
18752 double arg3 ;
18753 void *argp1 = 0 ;
18754 int res1 = 0 ;
18755 wxRect temp2 ;
18756 double val3 ;
18757 int ecode3 = 0 ;
18758 PyObject * obj0 = 0 ;
18759 PyObject * obj1 = 0 ;
18760 PyObject * obj2 = 0 ;
18761 char * kwnames[] = {
18762 (char *) "self",(char *) "r",(char *) "radius", NULL
18763 };
18764
18765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18767 if (!SWIG_IsOK(res1)) {
18768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18769 }
18770 arg1 = reinterpret_cast< wxDC * >(argp1);
18771 {
18772 arg2 = &temp2;
18773 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18774 }
18775 ecode3 = SWIG_AsVal_double(obj2, &val3);
18776 if (!SWIG_IsOK(ecode3)) {
18777 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18778 }
18779 arg3 = static_cast< double >(val3);
18780 {
18781 PyThreadState* __tstate = wxPyBeginAllowThreads();
18782 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18783 wxPyEndAllowThreads(__tstate);
18784 if (PyErr_Occurred()) SWIG_fail;
18785 }
18786 resultobj = SWIG_Py_Void();
18787 return resultobj;
18788 fail:
18789 return NULL;
18790 }
18791
18792
18793 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18794 PyObject *resultobj = 0;
18795 wxDC *arg1 = (wxDC *) 0 ;
18796 wxPoint *arg2 = 0 ;
18797 wxSize *arg3 = 0 ;
18798 double arg4 ;
18799 void *argp1 = 0 ;
18800 int res1 = 0 ;
18801 wxPoint temp2 ;
18802 wxSize temp3 ;
18803 double val4 ;
18804 int ecode4 = 0 ;
18805 PyObject * obj0 = 0 ;
18806 PyObject * obj1 = 0 ;
18807 PyObject * obj2 = 0 ;
18808 PyObject * obj3 = 0 ;
18809 char * kwnames[] = {
18810 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18811 };
18812
18813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18815 if (!SWIG_IsOK(res1)) {
18816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18817 }
18818 arg1 = reinterpret_cast< wxDC * >(argp1);
18819 {
18820 arg2 = &temp2;
18821 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18822 }
18823 {
18824 arg3 = &temp3;
18825 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18826 }
18827 ecode4 = SWIG_AsVal_double(obj3, &val4);
18828 if (!SWIG_IsOK(ecode4)) {
18829 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18830 }
18831 arg4 = static_cast< double >(val4);
18832 {
18833 PyThreadState* __tstate = wxPyBeginAllowThreads();
18834 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18835 wxPyEndAllowThreads(__tstate);
18836 if (PyErr_Occurred()) SWIG_fail;
18837 }
18838 resultobj = SWIG_Py_Void();
18839 return resultobj;
18840 fail:
18841 return NULL;
18842 }
18843
18844
18845 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18846 PyObject *resultobj = 0;
18847 wxDC *arg1 = (wxDC *) 0 ;
18848 int arg2 ;
18849 int arg3 ;
18850 int arg4 ;
18851 void *argp1 = 0 ;
18852 int res1 = 0 ;
18853 int val2 ;
18854 int ecode2 = 0 ;
18855 int val3 ;
18856 int ecode3 = 0 ;
18857 int val4 ;
18858 int ecode4 = 0 ;
18859 PyObject * obj0 = 0 ;
18860 PyObject * obj1 = 0 ;
18861 PyObject * obj2 = 0 ;
18862 PyObject * obj3 = 0 ;
18863 char * kwnames[] = {
18864 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18865 };
18866
18867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18869 if (!SWIG_IsOK(res1)) {
18870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18871 }
18872 arg1 = reinterpret_cast< wxDC * >(argp1);
18873 ecode2 = SWIG_AsVal_int(obj1, &val2);
18874 if (!SWIG_IsOK(ecode2)) {
18875 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18876 }
18877 arg2 = static_cast< int >(val2);
18878 ecode3 = SWIG_AsVal_int(obj2, &val3);
18879 if (!SWIG_IsOK(ecode3)) {
18880 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18881 }
18882 arg3 = static_cast< int >(val3);
18883 ecode4 = SWIG_AsVal_int(obj3, &val4);
18884 if (!SWIG_IsOK(ecode4)) {
18885 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18886 }
18887 arg4 = static_cast< int >(val4);
18888 {
18889 PyThreadState* __tstate = wxPyBeginAllowThreads();
18890 (arg1)->DrawCircle(arg2,arg3,arg4);
18891 wxPyEndAllowThreads(__tstate);
18892 if (PyErr_Occurred()) SWIG_fail;
18893 }
18894 resultobj = SWIG_Py_Void();
18895 return resultobj;
18896 fail:
18897 return NULL;
18898 }
18899
18900
18901 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18902 PyObject *resultobj = 0;
18903 wxDC *arg1 = (wxDC *) 0 ;
18904 wxPoint *arg2 = 0 ;
18905 int arg3 ;
18906 void *argp1 = 0 ;
18907 int res1 = 0 ;
18908 wxPoint temp2 ;
18909 int val3 ;
18910 int ecode3 = 0 ;
18911 PyObject * obj0 = 0 ;
18912 PyObject * obj1 = 0 ;
18913 PyObject * obj2 = 0 ;
18914 char * kwnames[] = {
18915 (char *) "self",(char *) "pt",(char *) "radius", NULL
18916 };
18917
18918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18920 if (!SWIG_IsOK(res1)) {
18921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18922 }
18923 arg1 = reinterpret_cast< wxDC * >(argp1);
18924 {
18925 arg2 = &temp2;
18926 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18927 }
18928 ecode3 = SWIG_AsVal_int(obj2, &val3);
18929 if (!SWIG_IsOK(ecode3)) {
18930 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18931 }
18932 arg3 = static_cast< int >(val3);
18933 {
18934 PyThreadState* __tstate = wxPyBeginAllowThreads();
18935 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18936 wxPyEndAllowThreads(__tstate);
18937 if (PyErr_Occurred()) SWIG_fail;
18938 }
18939 resultobj = SWIG_Py_Void();
18940 return resultobj;
18941 fail:
18942 return NULL;
18943 }
18944
18945
18946 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18947 PyObject *resultobj = 0;
18948 wxDC *arg1 = (wxDC *) 0 ;
18949 int arg2 ;
18950 int arg3 ;
18951 int arg4 ;
18952 int arg5 ;
18953 void *argp1 = 0 ;
18954 int res1 = 0 ;
18955 int val2 ;
18956 int ecode2 = 0 ;
18957 int val3 ;
18958 int ecode3 = 0 ;
18959 int val4 ;
18960 int ecode4 = 0 ;
18961 int val5 ;
18962 int ecode5 = 0 ;
18963 PyObject * obj0 = 0 ;
18964 PyObject * obj1 = 0 ;
18965 PyObject * obj2 = 0 ;
18966 PyObject * obj3 = 0 ;
18967 PyObject * obj4 = 0 ;
18968 char * kwnames[] = {
18969 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18970 };
18971
18972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18974 if (!SWIG_IsOK(res1)) {
18975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18976 }
18977 arg1 = reinterpret_cast< wxDC * >(argp1);
18978 ecode2 = SWIG_AsVal_int(obj1, &val2);
18979 if (!SWIG_IsOK(ecode2)) {
18980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
18981 }
18982 arg2 = static_cast< int >(val2);
18983 ecode3 = SWIG_AsVal_int(obj2, &val3);
18984 if (!SWIG_IsOK(ecode3)) {
18985 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
18986 }
18987 arg3 = static_cast< int >(val3);
18988 ecode4 = SWIG_AsVal_int(obj3, &val4);
18989 if (!SWIG_IsOK(ecode4)) {
18990 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
18991 }
18992 arg4 = static_cast< int >(val4);
18993 ecode5 = SWIG_AsVal_int(obj4, &val5);
18994 if (!SWIG_IsOK(ecode5)) {
18995 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
18996 }
18997 arg5 = static_cast< int >(val5);
18998 {
18999 PyThreadState* __tstate = wxPyBeginAllowThreads();
19000 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19001 wxPyEndAllowThreads(__tstate);
19002 if (PyErr_Occurred()) SWIG_fail;
19003 }
19004 resultobj = SWIG_Py_Void();
19005 return resultobj;
19006 fail:
19007 return NULL;
19008 }
19009
19010
19011 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19012 PyObject *resultobj = 0;
19013 wxDC *arg1 = (wxDC *) 0 ;
19014 wxRect *arg2 = 0 ;
19015 void *argp1 = 0 ;
19016 int res1 = 0 ;
19017 wxRect temp2 ;
19018 PyObject * obj0 = 0 ;
19019 PyObject * obj1 = 0 ;
19020 char * kwnames[] = {
19021 (char *) "self",(char *) "rect", NULL
19022 };
19023
19024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19026 if (!SWIG_IsOK(res1)) {
19027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19028 }
19029 arg1 = reinterpret_cast< wxDC * >(argp1);
19030 {
19031 arg2 = &temp2;
19032 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19033 }
19034 {
19035 PyThreadState* __tstate = wxPyBeginAllowThreads();
19036 (arg1)->DrawEllipse((wxRect const &)*arg2);
19037 wxPyEndAllowThreads(__tstate);
19038 if (PyErr_Occurred()) SWIG_fail;
19039 }
19040 resultobj = SWIG_Py_Void();
19041 return resultobj;
19042 fail:
19043 return NULL;
19044 }
19045
19046
19047 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19048 PyObject *resultobj = 0;
19049 wxDC *arg1 = (wxDC *) 0 ;
19050 wxPoint *arg2 = 0 ;
19051 wxSize *arg3 = 0 ;
19052 void *argp1 = 0 ;
19053 int res1 = 0 ;
19054 wxPoint temp2 ;
19055 wxSize temp3 ;
19056 PyObject * obj0 = 0 ;
19057 PyObject * obj1 = 0 ;
19058 PyObject * obj2 = 0 ;
19059 char * kwnames[] = {
19060 (char *) "self",(char *) "pt",(char *) "sz", NULL
19061 };
19062
19063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19065 if (!SWIG_IsOK(res1)) {
19066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19067 }
19068 arg1 = reinterpret_cast< wxDC * >(argp1);
19069 {
19070 arg2 = &temp2;
19071 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19072 }
19073 {
19074 arg3 = &temp3;
19075 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19076 }
19077 {
19078 PyThreadState* __tstate = wxPyBeginAllowThreads();
19079 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19080 wxPyEndAllowThreads(__tstate);
19081 if (PyErr_Occurred()) SWIG_fail;
19082 }
19083 resultobj = SWIG_Py_Void();
19084 return resultobj;
19085 fail:
19086 return NULL;
19087 }
19088
19089
19090 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19091 PyObject *resultobj = 0;
19092 wxDC *arg1 = (wxDC *) 0 ;
19093 wxIcon *arg2 = 0 ;
19094 int arg3 ;
19095 int arg4 ;
19096 void *argp1 = 0 ;
19097 int res1 = 0 ;
19098 void *argp2 = 0 ;
19099 int res2 = 0 ;
19100 int val3 ;
19101 int ecode3 = 0 ;
19102 int val4 ;
19103 int ecode4 = 0 ;
19104 PyObject * obj0 = 0 ;
19105 PyObject * obj1 = 0 ;
19106 PyObject * obj2 = 0 ;
19107 PyObject * obj3 = 0 ;
19108 char * kwnames[] = {
19109 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19110 };
19111
19112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19114 if (!SWIG_IsOK(res1)) {
19115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19116 }
19117 arg1 = reinterpret_cast< wxDC * >(argp1);
19118 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19119 if (!SWIG_IsOK(res2)) {
19120 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19121 }
19122 if (!argp2) {
19123 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19124 }
19125 arg2 = reinterpret_cast< wxIcon * >(argp2);
19126 ecode3 = SWIG_AsVal_int(obj2, &val3);
19127 if (!SWIG_IsOK(ecode3)) {
19128 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19129 }
19130 arg3 = static_cast< int >(val3);
19131 ecode4 = SWIG_AsVal_int(obj3, &val4);
19132 if (!SWIG_IsOK(ecode4)) {
19133 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19134 }
19135 arg4 = static_cast< int >(val4);
19136 {
19137 PyThreadState* __tstate = wxPyBeginAllowThreads();
19138 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19139 wxPyEndAllowThreads(__tstate);
19140 if (PyErr_Occurred()) SWIG_fail;
19141 }
19142 resultobj = SWIG_Py_Void();
19143 return resultobj;
19144 fail:
19145 return NULL;
19146 }
19147
19148
19149 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19150 PyObject *resultobj = 0;
19151 wxDC *arg1 = (wxDC *) 0 ;
19152 wxIcon *arg2 = 0 ;
19153 wxPoint *arg3 = 0 ;
19154 void *argp1 = 0 ;
19155 int res1 = 0 ;
19156 void *argp2 = 0 ;
19157 int res2 = 0 ;
19158 wxPoint temp3 ;
19159 PyObject * obj0 = 0 ;
19160 PyObject * obj1 = 0 ;
19161 PyObject * obj2 = 0 ;
19162 char * kwnames[] = {
19163 (char *) "self",(char *) "icon",(char *) "pt", NULL
19164 };
19165
19166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19168 if (!SWIG_IsOK(res1)) {
19169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19170 }
19171 arg1 = reinterpret_cast< wxDC * >(argp1);
19172 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19173 if (!SWIG_IsOK(res2)) {
19174 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19175 }
19176 if (!argp2) {
19177 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19178 }
19179 arg2 = reinterpret_cast< wxIcon * >(argp2);
19180 {
19181 arg3 = &temp3;
19182 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19183 }
19184 {
19185 PyThreadState* __tstate = wxPyBeginAllowThreads();
19186 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19187 wxPyEndAllowThreads(__tstate);
19188 if (PyErr_Occurred()) SWIG_fail;
19189 }
19190 resultobj = SWIG_Py_Void();
19191 return resultobj;
19192 fail:
19193 return NULL;
19194 }
19195
19196
19197 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19198 PyObject *resultobj = 0;
19199 wxDC *arg1 = (wxDC *) 0 ;
19200 wxBitmap *arg2 = 0 ;
19201 int arg3 ;
19202 int arg4 ;
19203 bool arg5 = (bool) false ;
19204 void *argp1 = 0 ;
19205 int res1 = 0 ;
19206 void *argp2 = 0 ;
19207 int res2 = 0 ;
19208 int val3 ;
19209 int ecode3 = 0 ;
19210 int val4 ;
19211 int ecode4 = 0 ;
19212 bool val5 ;
19213 int ecode5 = 0 ;
19214 PyObject * obj0 = 0 ;
19215 PyObject * obj1 = 0 ;
19216 PyObject * obj2 = 0 ;
19217 PyObject * obj3 = 0 ;
19218 PyObject * obj4 = 0 ;
19219 char * kwnames[] = {
19220 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19221 };
19222
19223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19225 if (!SWIG_IsOK(res1)) {
19226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19227 }
19228 arg1 = reinterpret_cast< wxDC * >(argp1);
19229 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19230 if (!SWIG_IsOK(res2)) {
19231 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19232 }
19233 if (!argp2) {
19234 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19235 }
19236 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19237 ecode3 = SWIG_AsVal_int(obj2, &val3);
19238 if (!SWIG_IsOK(ecode3)) {
19239 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19240 }
19241 arg3 = static_cast< int >(val3);
19242 ecode4 = SWIG_AsVal_int(obj3, &val4);
19243 if (!SWIG_IsOK(ecode4)) {
19244 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19245 }
19246 arg4 = static_cast< int >(val4);
19247 if (obj4) {
19248 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19249 if (!SWIG_IsOK(ecode5)) {
19250 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19251 }
19252 arg5 = static_cast< bool >(val5);
19253 }
19254 {
19255 PyThreadState* __tstate = wxPyBeginAllowThreads();
19256 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19257 wxPyEndAllowThreads(__tstate);
19258 if (PyErr_Occurred()) SWIG_fail;
19259 }
19260 resultobj = SWIG_Py_Void();
19261 return resultobj;
19262 fail:
19263 return NULL;
19264 }
19265
19266
19267 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19268 PyObject *resultobj = 0;
19269 wxDC *arg1 = (wxDC *) 0 ;
19270 wxBitmap *arg2 = 0 ;
19271 wxPoint *arg3 = 0 ;
19272 bool arg4 = (bool) false ;
19273 void *argp1 = 0 ;
19274 int res1 = 0 ;
19275 void *argp2 = 0 ;
19276 int res2 = 0 ;
19277 wxPoint temp3 ;
19278 bool val4 ;
19279 int ecode4 = 0 ;
19280 PyObject * obj0 = 0 ;
19281 PyObject * obj1 = 0 ;
19282 PyObject * obj2 = 0 ;
19283 PyObject * obj3 = 0 ;
19284 char * kwnames[] = {
19285 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19286 };
19287
19288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19290 if (!SWIG_IsOK(res1)) {
19291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19292 }
19293 arg1 = reinterpret_cast< wxDC * >(argp1);
19294 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19295 if (!SWIG_IsOK(res2)) {
19296 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19297 }
19298 if (!argp2) {
19299 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19300 }
19301 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19302 {
19303 arg3 = &temp3;
19304 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19305 }
19306 if (obj3) {
19307 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19308 if (!SWIG_IsOK(ecode4)) {
19309 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19310 }
19311 arg4 = static_cast< bool >(val4);
19312 }
19313 {
19314 PyThreadState* __tstate = wxPyBeginAllowThreads();
19315 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19316 wxPyEndAllowThreads(__tstate);
19317 if (PyErr_Occurred()) SWIG_fail;
19318 }
19319 resultobj = SWIG_Py_Void();
19320 return resultobj;
19321 fail:
19322 return NULL;
19323 }
19324
19325
19326 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19327 PyObject *resultobj = 0;
19328 wxDC *arg1 = (wxDC *) 0 ;
19329 wxString *arg2 = 0 ;
19330 int arg3 ;
19331 int arg4 ;
19332 void *argp1 = 0 ;
19333 int res1 = 0 ;
19334 bool temp2 = false ;
19335 int val3 ;
19336 int ecode3 = 0 ;
19337 int val4 ;
19338 int ecode4 = 0 ;
19339 PyObject * obj0 = 0 ;
19340 PyObject * obj1 = 0 ;
19341 PyObject * obj2 = 0 ;
19342 PyObject * obj3 = 0 ;
19343 char * kwnames[] = {
19344 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19345 };
19346
19347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19349 if (!SWIG_IsOK(res1)) {
19350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19351 }
19352 arg1 = reinterpret_cast< wxDC * >(argp1);
19353 {
19354 arg2 = wxString_in_helper(obj1);
19355 if (arg2 == NULL) SWIG_fail;
19356 temp2 = true;
19357 }
19358 ecode3 = SWIG_AsVal_int(obj2, &val3);
19359 if (!SWIG_IsOK(ecode3)) {
19360 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19361 }
19362 arg3 = static_cast< int >(val3);
19363 ecode4 = SWIG_AsVal_int(obj3, &val4);
19364 if (!SWIG_IsOK(ecode4)) {
19365 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19366 }
19367 arg4 = static_cast< int >(val4);
19368 {
19369 PyThreadState* __tstate = wxPyBeginAllowThreads();
19370 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19371 wxPyEndAllowThreads(__tstate);
19372 if (PyErr_Occurred()) SWIG_fail;
19373 }
19374 resultobj = SWIG_Py_Void();
19375 {
19376 if (temp2)
19377 delete arg2;
19378 }
19379 return resultobj;
19380 fail:
19381 {
19382 if (temp2)
19383 delete arg2;
19384 }
19385 return NULL;
19386 }
19387
19388
19389 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19390 PyObject *resultobj = 0;
19391 wxDC *arg1 = (wxDC *) 0 ;
19392 wxString *arg2 = 0 ;
19393 wxPoint *arg3 = 0 ;
19394 void *argp1 = 0 ;
19395 int res1 = 0 ;
19396 bool temp2 = false ;
19397 wxPoint temp3 ;
19398 PyObject * obj0 = 0 ;
19399 PyObject * obj1 = 0 ;
19400 PyObject * obj2 = 0 ;
19401 char * kwnames[] = {
19402 (char *) "self",(char *) "text",(char *) "pt", NULL
19403 };
19404
19405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19407 if (!SWIG_IsOK(res1)) {
19408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19409 }
19410 arg1 = reinterpret_cast< wxDC * >(argp1);
19411 {
19412 arg2 = wxString_in_helper(obj1);
19413 if (arg2 == NULL) SWIG_fail;
19414 temp2 = true;
19415 }
19416 {
19417 arg3 = &temp3;
19418 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19419 }
19420 {
19421 PyThreadState* __tstate = wxPyBeginAllowThreads();
19422 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19423 wxPyEndAllowThreads(__tstate);
19424 if (PyErr_Occurred()) SWIG_fail;
19425 }
19426 resultobj = SWIG_Py_Void();
19427 {
19428 if (temp2)
19429 delete arg2;
19430 }
19431 return resultobj;
19432 fail:
19433 {
19434 if (temp2)
19435 delete arg2;
19436 }
19437 return NULL;
19438 }
19439
19440
19441 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19442 PyObject *resultobj = 0;
19443 wxDC *arg1 = (wxDC *) 0 ;
19444 wxString *arg2 = 0 ;
19445 int arg3 ;
19446 int arg4 ;
19447 double arg5 ;
19448 void *argp1 = 0 ;
19449 int res1 = 0 ;
19450 bool temp2 = false ;
19451 int val3 ;
19452 int ecode3 = 0 ;
19453 int val4 ;
19454 int ecode4 = 0 ;
19455 double val5 ;
19456 int ecode5 = 0 ;
19457 PyObject * obj0 = 0 ;
19458 PyObject * obj1 = 0 ;
19459 PyObject * obj2 = 0 ;
19460 PyObject * obj3 = 0 ;
19461 PyObject * obj4 = 0 ;
19462 char * kwnames[] = {
19463 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19464 };
19465
19466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19468 if (!SWIG_IsOK(res1)) {
19469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19470 }
19471 arg1 = reinterpret_cast< wxDC * >(argp1);
19472 {
19473 arg2 = wxString_in_helper(obj1);
19474 if (arg2 == NULL) SWIG_fail;
19475 temp2 = true;
19476 }
19477 ecode3 = SWIG_AsVal_int(obj2, &val3);
19478 if (!SWIG_IsOK(ecode3)) {
19479 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19480 }
19481 arg3 = static_cast< int >(val3);
19482 ecode4 = SWIG_AsVal_int(obj3, &val4);
19483 if (!SWIG_IsOK(ecode4)) {
19484 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19485 }
19486 arg4 = static_cast< int >(val4);
19487 ecode5 = SWIG_AsVal_double(obj4, &val5);
19488 if (!SWIG_IsOK(ecode5)) {
19489 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19490 }
19491 arg5 = static_cast< double >(val5);
19492 {
19493 PyThreadState* __tstate = wxPyBeginAllowThreads();
19494 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19495 wxPyEndAllowThreads(__tstate);
19496 if (PyErr_Occurred()) SWIG_fail;
19497 }
19498 resultobj = SWIG_Py_Void();
19499 {
19500 if (temp2)
19501 delete arg2;
19502 }
19503 return resultobj;
19504 fail:
19505 {
19506 if (temp2)
19507 delete arg2;
19508 }
19509 return NULL;
19510 }
19511
19512
19513 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19514 PyObject *resultobj = 0;
19515 wxDC *arg1 = (wxDC *) 0 ;
19516 wxString *arg2 = 0 ;
19517 wxPoint *arg3 = 0 ;
19518 double arg4 ;
19519 void *argp1 = 0 ;
19520 int res1 = 0 ;
19521 bool temp2 = false ;
19522 wxPoint temp3 ;
19523 double val4 ;
19524 int ecode4 = 0 ;
19525 PyObject * obj0 = 0 ;
19526 PyObject * obj1 = 0 ;
19527 PyObject * obj2 = 0 ;
19528 PyObject * obj3 = 0 ;
19529 char * kwnames[] = {
19530 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19531 };
19532
19533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19535 if (!SWIG_IsOK(res1)) {
19536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19537 }
19538 arg1 = reinterpret_cast< wxDC * >(argp1);
19539 {
19540 arg2 = wxString_in_helper(obj1);
19541 if (arg2 == NULL) SWIG_fail;
19542 temp2 = true;
19543 }
19544 {
19545 arg3 = &temp3;
19546 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19547 }
19548 ecode4 = SWIG_AsVal_double(obj3, &val4);
19549 if (!SWIG_IsOK(ecode4)) {
19550 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19551 }
19552 arg4 = static_cast< double >(val4);
19553 {
19554 PyThreadState* __tstate = wxPyBeginAllowThreads();
19555 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19556 wxPyEndAllowThreads(__tstate);
19557 if (PyErr_Occurred()) SWIG_fail;
19558 }
19559 resultobj = SWIG_Py_Void();
19560 {
19561 if (temp2)
19562 delete arg2;
19563 }
19564 return resultobj;
19565 fail:
19566 {
19567 if (temp2)
19568 delete arg2;
19569 }
19570 return NULL;
19571 }
19572
19573
19574 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19575 PyObject *resultobj = 0;
19576 wxDC *arg1 = (wxDC *) 0 ;
19577 int arg2 ;
19578 int arg3 ;
19579 int arg4 ;
19580 int arg5 ;
19581 wxDC *arg6 = (wxDC *) 0 ;
19582 int arg7 ;
19583 int arg8 ;
19584 int arg9 = (int) wxCOPY ;
19585 bool arg10 = (bool) false ;
19586 int arg11 = (int) -1 ;
19587 int arg12 = (int) -1 ;
19588 bool result;
19589 void *argp1 = 0 ;
19590 int res1 = 0 ;
19591 int val2 ;
19592 int ecode2 = 0 ;
19593 int val3 ;
19594 int ecode3 = 0 ;
19595 int val4 ;
19596 int ecode4 = 0 ;
19597 int val5 ;
19598 int ecode5 = 0 ;
19599 void *argp6 = 0 ;
19600 int res6 = 0 ;
19601 int val7 ;
19602 int ecode7 = 0 ;
19603 int val8 ;
19604 int ecode8 = 0 ;
19605 int val9 ;
19606 int ecode9 = 0 ;
19607 bool val10 ;
19608 int ecode10 = 0 ;
19609 int val11 ;
19610 int ecode11 = 0 ;
19611 int val12 ;
19612 int ecode12 = 0 ;
19613 PyObject * obj0 = 0 ;
19614 PyObject * obj1 = 0 ;
19615 PyObject * obj2 = 0 ;
19616 PyObject * obj3 = 0 ;
19617 PyObject * obj4 = 0 ;
19618 PyObject * obj5 = 0 ;
19619 PyObject * obj6 = 0 ;
19620 PyObject * obj7 = 0 ;
19621 PyObject * obj8 = 0 ;
19622 PyObject * obj9 = 0 ;
19623 PyObject * obj10 = 0 ;
19624 PyObject * obj11 = 0 ;
19625 char * kwnames[] = {
19626 (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
19627 };
19628
19629 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;
19630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19631 if (!SWIG_IsOK(res1)) {
19632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19633 }
19634 arg1 = reinterpret_cast< wxDC * >(argp1);
19635 ecode2 = SWIG_AsVal_int(obj1, &val2);
19636 if (!SWIG_IsOK(ecode2)) {
19637 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19638 }
19639 arg2 = static_cast< int >(val2);
19640 ecode3 = SWIG_AsVal_int(obj2, &val3);
19641 if (!SWIG_IsOK(ecode3)) {
19642 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19643 }
19644 arg3 = static_cast< int >(val3);
19645 ecode4 = SWIG_AsVal_int(obj3, &val4);
19646 if (!SWIG_IsOK(ecode4)) {
19647 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19648 }
19649 arg4 = static_cast< int >(val4);
19650 ecode5 = SWIG_AsVal_int(obj4, &val5);
19651 if (!SWIG_IsOK(ecode5)) {
19652 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19653 }
19654 arg5 = static_cast< int >(val5);
19655 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19656 if (!SWIG_IsOK(res6)) {
19657 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19658 }
19659 arg6 = reinterpret_cast< wxDC * >(argp6);
19660 ecode7 = SWIG_AsVal_int(obj6, &val7);
19661 if (!SWIG_IsOK(ecode7)) {
19662 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19663 }
19664 arg7 = static_cast< int >(val7);
19665 ecode8 = SWIG_AsVal_int(obj7, &val8);
19666 if (!SWIG_IsOK(ecode8)) {
19667 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19668 }
19669 arg8 = static_cast< int >(val8);
19670 if (obj8) {
19671 ecode9 = SWIG_AsVal_int(obj8, &val9);
19672 if (!SWIG_IsOK(ecode9)) {
19673 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19674 }
19675 arg9 = static_cast< int >(val9);
19676 }
19677 if (obj9) {
19678 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19679 if (!SWIG_IsOK(ecode10)) {
19680 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19681 }
19682 arg10 = static_cast< bool >(val10);
19683 }
19684 if (obj10) {
19685 ecode11 = SWIG_AsVal_int(obj10, &val11);
19686 if (!SWIG_IsOK(ecode11)) {
19687 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19688 }
19689 arg11 = static_cast< int >(val11);
19690 }
19691 if (obj11) {
19692 ecode12 = SWIG_AsVal_int(obj11, &val12);
19693 if (!SWIG_IsOK(ecode12)) {
19694 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19695 }
19696 arg12 = static_cast< int >(val12);
19697 }
19698 {
19699 PyThreadState* __tstate = wxPyBeginAllowThreads();
19700 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19701 wxPyEndAllowThreads(__tstate);
19702 if (PyErr_Occurred()) SWIG_fail;
19703 }
19704 {
19705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19706 }
19707 return resultobj;
19708 fail:
19709 return NULL;
19710 }
19711
19712
19713 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19714 PyObject *resultobj = 0;
19715 wxDC *arg1 = (wxDC *) 0 ;
19716 wxPoint *arg2 = 0 ;
19717 wxSize *arg3 = 0 ;
19718 wxDC *arg4 = (wxDC *) 0 ;
19719 wxPoint *arg5 = 0 ;
19720 int arg6 = (int) wxCOPY ;
19721 bool arg7 = (bool) false ;
19722 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19723 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19724 bool result;
19725 void *argp1 = 0 ;
19726 int res1 = 0 ;
19727 wxPoint temp2 ;
19728 wxSize temp3 ;
19729 void *argp4 = 0 ;
19730 int res4 = 0 ;
19731 wxPoint temp5 ;
19732 int val6 ;
19733 int ecode6 = 0 ;
19734 bool val7 ;
19735 int ecode7 = 0 ;
19736 wxPoint temp8 ;
19737 PyObject * obj0 = 0 ;
19738 PyObject * obj1 = 0 ;
19739 PyObject * obj2 = 0 ;
19740 PyObject * obj3 = 0 ;
19741 PyObject * obj4 = 0 ;
19742 PyObject * obj5 = 0 ;
19743 PyObject * obj6 = 0 ;
19744 PyObject * obj7 = 0 ;
19745 char * kwnames[] = {
19746 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19747 };
19748
19749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19751 if (!SWIG_IsOK(res1)) {
19752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19753 }
19754 arg1 = reinterpret_cast< wxDC * >(argp1);
19755 {
19756 arg2 = &temp2;
19757 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19758 }
19759 {
19760 arg3 = &temp3;
19761 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19762 }
19763 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19764 if (!SWIG_IsOK(res4)) {
19765 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19766 }
19767 arg4 = reinterpret_cast< wxDC * >(argp4);
19768 {
19769 arg5 = &temp5;
19770 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19771 }
19772 if (obj5) {
19773 ecode6 = SWIG_AsVal_int(obj5, &val6);
19774 if (!SWIG_IsOK(ecode6)) {
19775 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19776 }
19777 arg6 = static_cast< int >(val6);
19778 }
19779 if (obj6) {
19780 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19781 if (!SWIG_IsOK(ecode7)) {
19782 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19783 }
19784 arg7 = static_cast< bool >(val7);
19785 }
19786 if (obj7) {
19787 {
19788 arg8 = &temp8;
19789 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
19790 }
19791 }
19792 {
19793 PyThreadState* __tstate = wxPyBeginAllowThreads();
19794 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19795 wxPyEndAllowThreads(__tstate);
19796 if (PyErr_Occurred()) SWIG_fail;
19797 }
19798 {
19799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19800 }
19801 return resultobj;
19802 fail:
19803 return NULL;
19804 }
19805
19806
19807 SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19808 PyObject *resultobj = 0;
19809 wxDC *arg1 = (wxDC *) 0 ;
19810 wxRect *arg2 = (wxRect *) NULL ;
19811 SwigValueWrapper<wxBitmap > result;
19812 void *argp1 = 0 ;
19813 int res1 = 0 ;
19814 void *argp2 = 0 ;
19815 int res2 = 0 ;
19816 PyObject * obj0 = 0 ;
19817 PyObject * obj1 = 0 ;
19818 char * kwnames[] = {
19819 (char *) "self",(char *) "subrect", NULL
19820 };
19821
19822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
19823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19824 if (!SWIG_IsOK(res1)) {
19825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
19826 }
19827 arg1 = reinterpret_cast< wxDC * >(argp1);
19828 if (obj1) {
19829 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
19830 if (!SWIG_IsOK(res2)) {
19831 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
19832 }
19833 arg2 = reinterpret_cast< wxRect * >(argp2);
19834 }
19835 {
19836 PyThreadState* __tstate = wxPyBeginAllowThreads();
19837 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
19838 wxPyEndAllowThreads(__tstate);
19839 if (PyErr_Occurred()) SWIG_fail;
19840 }
19841 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
19842 return resultobj;
19843 fail:
19844 return NULL;
19845 }
19846
19847
19848 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19849 PyObject *resultobj = 0;
19850 wxDC *arg1 = (wxDC *) 0 ;
19851 int arg2 ;
19852 int arg3 ;
19853 int arg4 ;
19854 int arg5 ;
19855 void *argp1 = 0 ;
19856 int res1 = 0 ;
19857 int val2 ;
19858 int ecode2 = 0 ;
19859 int val3 ;
19860 int ecode3 = 0 ;
19861 int val4 ;
19862 int ecode4 = 0 ;
19863 int val5 ;
19864 int ecode5 = 0 ;
19865 PyObject * obj0 = 0 ;
19866 PyObject * obj1 = 0 ;
19867 PyObject * obj2 = 0 ;
19868 PyObject * obj3 = 0 ;
19869 PyObject * obj4 = 0 ;
19870 char * kwnames[] = {
19871 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19872 };
19873
19874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19876 if (!SWIG_IsOK(res1)) {
19877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19878 }
19879 arg1 = reinterpret_cast< wxDC * >(argp1);
19880 ecode2 = SWIG_AsVal_int(obj1, &val2);
19881 if (!SWIG_IsOK(ecode2)) {
19882 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19883 }
19884 arg2 = static_cast< int >(val2);
19885 ecode3 = SWIG_AsVal_int(obj2, &val3);
19886 if (!SWIG_IsOK(ecode3)) {
19887 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19888 }
19889 arg3 = static_cast< int >(val3);
19890 ecode4 = SWIG_AsVal_int(obj3, &val4);
19891 if (!SWIG_IsOK(ecode4)) {
19892 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19893 }
19894 arg4 = static_cast< int >(val4);
19895 ecode5 = SWIG_AsVal_int(obj4, &val5);
19896 if (!SWIG_IsOK(ecode5)) {
19897 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19898 }
19899 arg5 = static_cast< int >(val5);
19900 {
19901 PyThreadState* __tstate = wxPyBeginAllowThreads();
19902 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19903 wxPyEndAllowThreads(__tstate);
19904 if (PyErr_Occurred()) SWIG_fail;
19905 }
19906 resultobj = SWIG_Py_Void();
19907 return resultobj;
19908 fail:
19909 return NULL;
19910 }
19911
19912
19913 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19914 PyObject *resultobj = 0;
19915 wxDC *arg1 = (wxDC *) 0 ;
19916 wxPoint *arg2 = 0 ;
19917 wxSize *arg3 = 0 ;
19918 void *argp1 = 0 ;
19919 int res1 = 0 ;
19920 wxPoint temp2 ;
19921 wxSize temp3 ;
19922 PyObject * obj0 = 0 ;
19923 PyObject * obj1 = 0 ;
19924 PyObject * obj2 = 0 ;
19925 char * kwnames[] = {
19926 (char *) "self",(char *) "pt",(char *) "sz", NULL
19927 };
19928
19929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19931 if (!SWIG_IsOK(res1)) {
19932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19933 }
19934 arg1 = reinterpret_cast< wxDC * >(argp1);
19935 {
19936 arg2 = &temp2;
19937 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19938 }
19939 {
19940 arg3 = &temp3;
19941 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19942 }
19943 {
19944 PyThreadState* __tstate = wxPyBeginAllowThreads();
19945 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19946 wxPyEndAllowThreads(__tstate);
19947 if (PyErr_Occurred()) SWIG_fail;
19948 }
19949 resultobj = SWIG_Py_Void();
19950 return resultobj;
19951 fail:
19952 return NULL;
19953 }
19954
19955
19956 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19957 PyObject *resultobj = 0;
19958 wxDC *arg1 = (wxDC *) 0 ;
19959 wxRegion *arg2 = 0 ;
19960 void *argp1 = 0 ;
19961 int res1 = 0 ;
19962 void *argp2 = 0 ;
19963 int res2 = 0 ;
19964 PyObject * obj0 = 0 ;
19965 PyObject * obj1 = 0 ;
19966 char * kwnames[] = {
19967 (char *) "self",(char *) "region", NULL
19968 };
19969
19970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19972 if (!SWIG_IsOK(res1)) {
19973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19974 }
19975 arg1 = reinterpret_cast< wxDC * >(argp1);
19976 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19977 if (!SWIG_IsOK(res2)) {
19978 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19979 }
19980 if (!argp2) {
19981 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19982 }
19983 arg2 = reinterpret_cast< wxRegion * >(argp2);
19984 {
19985 PyThreadState* __tstate = wxPyBeginAllowThreads();
19986 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
19987 wxPyEndAllowThreads(__tstate);
19988 if (PyErr_Occurred()) SWIG_fail;
19989 }
19990 resultobj = SWIG_Py_Void();
19991 return resultobj;
19992 fail:
19993 return NULL;
19994 }
19995
19996
19997 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19998 PyObject *resultobj = 0;
19999 wxDC *arg1 = (wxDC *) 0 ;
20000 wxRect *arg2 = 0 ;
20001 void *argp1 = 0 ;
20002 int res1 = 0 ;
20003 wxRect temp2 ;
20004 PyObject * obj0 = 0 ;
20005 PyObject * obj1 = 0 ;
20006 char * kwnames[] = {
20007 (char *) "self",(char *) "rect", NULL
20008 };
20009
20010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20012 if (!SWIG_IsOK(res1)) {
20013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20014 }
20015 arg1 = reinterpret_cast< wxDC * >(argp1);
20016 {
20017 arg2 = &temp2;
20018 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20019 }
20020 {
20021 PyThreadState* __tstate = wxPyBeginAllowThreads();
20022 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20023 wxPyEndAllowThreads(__tstate);
20024 if (PyErr_Occurred()) SWIG_fail;
20025 }
20026 resultobj = SWIG_Py_Void();
20027 return resultobj;
20028 fail:
20029 return NULL;
20030 }
20031
20032
20033 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20034 PyObject *resultobj = 0;
20035 wxDC *arg1 = (wxDC *) 0 ;
20036 int arg2 ;
20037 wxPoint *arg3 = (wxPoint *) 0 ;
20038 int arg4 = (int) 0 ;
20039 int arg5 = (int) 0 ;
20040 void *argp1 = 0 ;
20041 int res1 = 0 ;
20042 int val4 ;
20043 int ecode4 = 0 ;
20044 int val5 ;
20045 int ecode5 = 0 ;
20046 PyObject * obj0 = 0 ;
20047 PyObject * obj1 = 0 ;
20048 PyObject * obj2 = 0 ;
20049 PyObject * obj3 = 0 ;
20050 char * kwnames[] = {
20051 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20052 };
20053
20054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20056 if (!SWIG_IsOK(res1)) {
20057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20058 }
20059 arg1 = reinterpret_cast< wxDC * >(argp1);
20060 {
20061 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20062 if (arg3 == NULL) SWIG_fail;
20063 }
20064 if (obj2) {
20065 ecode4 = SWIG_AsVal_int(obj2, &val4);
20066 if (!SWIG_IsOK(ecode4)) {
20067 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20068 }
20069 arg4 = static_cast< int >(val4);
20070 }
20071 if (obj3) {
20072 ecode5 = SWIG_AsVal_int(obj3, &val5);
20073 if (!SWIG_IsOK(ecode5)) {
20074 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20075 }
20076 arg5 = static_cast< int >(val5);
20077 }
20078 {
20079 PyThreadState* __tstate = wxPyBeginAllowThreads();
20080 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20081 wxPyEndAllowThreads(__tstate);
20082 if (PyErr_Occurred()) SWIG_fail;
20083 }
20084 resultobj = SWIG_Py_Void();
20085 {
20086 if (arg3) delete [] arg3;
20087 }
20088 return resultobj;
20089 fail:
20090 {
20091 if (arg3) delete [] arg3;
20092 }
20093 return NULL;
20094 }
20095
20096
20097 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20098 PyObject *resultobj = 0;
20099 wxDC *arg1 = (wxDC *) 0 ;
20100 int arg2 ;
20101 wxPoint *arg3 = (wxPoint *) 0 ;
20102 int arg4 = (int) 0 ;
20103 int arg5 = (int) 0 ;
20104 int arg6 = (int) wxODDEVEN_RULE ;
20105 void *argp1 = 0 ;
20106 int res1 = 0 ;
20107 int val4 ;
20108 int ecode4 = 0 ;
20109 int val5 ;
20110 int ecode5 = 0 ;
20111 int val6 ;
20112 int ecode6 = 0 ;
20113 PyObject * obj0 = 0 ;
20114 PyObject * obj1 = 0 ;
20115 PyObject * obj2 = 0 ;
20116 PyObject * obj3 = 0 ;
20117 PyObject * obj4 = 0 ;
20118 char * kwnames[] = {
20119 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20120 };
20121
20122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20124 if (!SWIG_IsOK(res1)) {
20125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20126 }
20127 arg1 = reinterpret_cast< wxDC * >(argp1);
20128 {
20129 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20130 if (arg3 == NULL) SWIG_fail;
20131 }
20132 if (obj2) {
20133 ecode4 = SWIG_AsVal_int(obj2, &val4);
20134 if (!SWIG_IsOK(ecode4)) {
20135 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20136 }
20137 arg4 = static_cast< int >(val4);
20138 }
20139 if (obj3) {
20140 ecode5 = SWIG_AsVal_int(obj3, &val5);
20141 if (!SWIG_IsOK(ecode5)) {
20142 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20143 }
20144 arg5 = static_cast< int >(val5);
20145 }
20146 if (obj4) {
20147 ecode6 = SWIG_AsVal_int(obj4, &val6);
20148 if (!SWIG_IsOK(ecode6)) {
20149 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20150 }
20151 arg6 = static_cast< int >(val6);
20152 }
20153 {
20154 PyThreadState* __tstate = wxPyBeginAllowThreads();
20155 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20156 wxPyEndAllowThreads(__tstate);
20157 if (PyErr_Occurred()) SWIG_fail;
20158 }
20159 resultobj = SWIG_Py_Void();
20160 {
20161 if (arg3) delete [] arg3;
20162 }
20163 return resultobj;
20164 fail:
20165 {
20166 if (arg3) delete [] arg3;
20167 }
20168 return NULL;
20169 }
20170
20171
20172 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20173 PyObject *resultobj = 0;
20174 wxDC *arg1 = (wxDC *) 0 ;
20175 wxString *arg2 = 0 ;
20176 wxRect *arg3 = 0 ;
20177 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20178 int arg5 = (int) -1 ;
20179 void *argp1 = 0 ;
20180 int res1 = 0 ;
20181 bool temp2 = false ;
20182 wxRect temp3 ;
20183 int val4 ;
20184 int ecode4 = 0 ;
20185 int val5 ;
20186 int ecode5 = 0 ;
20187 PyObject * obj0 = 0 ;
20188 PyObject * obj1 = 0 ;
20189 PyObject * obj2 = 0 ;
20190 PyObject * obj3 = 0 ;
20191 PyObject * obj4 = 0 ;
20192 char * kwnames[] = {
20193 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20194 };
20195
20196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20198 if (!SWIG_IsOK(res1)) {
20199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20200 }
20201 arg1 = reinterpret_cast< wxDC * >(argp1);
20202 {
20203 arg2 = wxString_in_helper(obj1);
20204 if (arg2 == NULL) SWIG_fail;
20205 temp2 = true;
20206 }
20207 {
20208 arg3 = &temp3;
20209 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20210 }
20211 if (obj3) {
20212 ecode4 = SWIG_AsVal_int(obj3, &val4);
20213 if (!SWIG_IsOK(ecode4)) {
20214 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20215 }
20216 arg4 = static_cast< int >(val4);
20217 }
20218 if (obj4) {
20219 ecode5 = SWIG_AsVal_int(obj4, &val5);
20220 if (!SWIG_IsOK(ecode5)) {
20221 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20222 }
20223 arg5 = static_cast< int >(val5);
20224 }
20225 {
20226 PyThreadState* __tstate = wxPyBeginAllowThreads();
20227 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20228 wxPyEndAllowThreads(__tstate);
20229 if (PyErr_Occurred()) SWIG_fail;
20230 }
20231 resultobj = SWIG_Py_Void();
20232 {
20233 if (temp2)
20234 delete arg2;
20235 }
20236 return resultobj;
20237 fail:
20238 {
20239 if (temp2)
20240 delete arg2;
20241 }
20242 return NULL;
20243 }
20244
20245
20246 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20247 PyObject *resultobj = 0;
20248 wxDC *arg1 = (wxDC *) 0 ;
20249 wxString *arg2 = 0 ;
20250 wxBitmap *arg3 = 0 ;
20251 wxRect *arg4 = 0 ;
20252 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20253 int arg6 = (int) -1 ;
20254 wxRect result;
20255 void *argp1 = 0 ;
20256 int res1 = 0 ;
20257 bool temp2 = false ;
20258 void *argp3 = 0 ;
20259 int res3 = 0 ;
20260 wxRect temp4 ;
20261 int val5 ;
20262 int ecode5 = 0 ;
20263 int val6 ;
20264 int ecode6 = 0 ;
20265 PyObject * obj0 = 0 ;
20266 PyObject * obj1 = 0 ;
20267 PyObject * obj2 = 0 ;
20268 PyObject * obj3 = 0 ;
20269 PyObject * obj4 = 0 ;
20270 PyObject * obj5 = 0 ;
20271 char * kwnames[] = {
20272 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20273 };
20274
20275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20277 if (!SWIG_IsOK(res1)) {
20278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20279 }
20280 arg1 = reinterpret_cast< wxDC * >(argp1);
20281 {
20282 arg2 = wxString_in_helper(obj1);
20283 if (arg2 == NULL) SWIG_fail;
20284 temp2 = true;
20285 }
20286 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20287 if (!SWIG_IsOK(res3)) {
20288 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20289 }
20290 if (!argp3) {
20291 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20292 }
20293 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20294 {
20295 arg4 = &temp4;
20296 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20297 }
20298 if (obj4) {
20299 ecode5 = SWIG_AsVal_int(obj4, &val5);
20300 if (!SWIG_IsOK(ecode5)) {
20301 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20302 }
20303 arg5 = static_cast< int >(val5);
20304 }
20305 if (obj5) {
20306 ecode6 = SWIG_AsVal_int(obj5, &val6);
20307 if (!SWIG_IsOK(ecode6)) {
20308 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20309 }
20310 arg6 = static_cast< int >(val6);
20311 }
20312 {
20313 PyThreadState* __tstate = wxPyBeginAllowThreads();
20314 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20315 wxPyEndAllowThreads(__tstate);
20316 if (PyErr_Occurred()) SWIG_fail;
20317 }
20318 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20319 {
20320 if (temp2)
20321 delete arg2;
20322 }
20323 return resultobj;
20324 fail:
20325 {
20326 if (temp2)
20327 delete arg2;
20328 }
20329 return NULL;
20330 }
20331
20332
20333 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20334 PyObject *resultobj = 0;
20335 wxDC *arg1 = (wxDC *) 0 ;
20336 int arg2 ;
20337 wxPoint *arg3 = (wxPoint *) 0 ;
20338 void *argp1 = 0 ;
20339 int res1 = 0 ;
20340 PyObject * obj0 = 0 ;
20341 PyObject * obj1 = 0 ;
20342 char * kwnames[] = {
20343 (char *) "self",(char *) "points", NULL
20344 };
20345
20346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20348 if (!SWIG_IsOK(res1)) {
20349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20350 }
20351 arg1 = reinterpret_cast< wxDC * >(argp1);
20352 {
20353 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20354 if (arg3 == NULL) SWIG_fail;
20355 }
20356 {
20357 PyThreadState* __tstate = wxPyBeginAllowThreads();
20358 (arg1)->DrawSpline(arg2,arg3);
20359 wxPyEndAllowThreads(__tstate);
20360 if (PyErr_Occurred()) SWIG_fail;
20361 }
20362 resultobj = SWIG_Py_Void();
20363 {
20364 if (arg3) delete [] arg3;
20365 }
20366 return resultobj;
20367 fail:
20368 {
20369 if (arg3) delete [] arg3;
20370 }
20371 return NULL;
20372 }
20373
20374
20375 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20376 PyObject *resultobj = 0;
20377 wxDC *arg1 = (wxDC *) 0 ;
20378 void *argp1 = 0 ;
20379 int res1 = 0 ;
20380 PyObject *swig_obj[1] ;
20381
20382 if (!args) SWIG_fail;
20383 swig_obj[0] = args;
20384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20385 if (!SWIG_IsOK(res1)) {
20386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20387 }
20388 arg1 = reinterpret_cast< wxDC * >(argp1);
20389 {
20390 PyThreadState* __tstate = wxPyBeginAllowThreads();
20391 (arg1)->Clear();
20392 wxPyEndAllowThreads(__tstate);
20393 if (PyErr_Occurred()) SWIG_fail;
20394 }
20395 resultobj = SWIG_Py_Void();
20396 return resultobj;
20397 fail:
20398 return NULL;
20399 }
20400
20401
20402 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20403 PyObject *resultobj = 0;
20404 wxDC *arg1 = (wxDC *) 0 ;
20405 wxString *arg2 = 0 ;
20406 bool result;
20407 void *argp1 = 0 ;
20408 int res1 = 0 ;
20409 bool temp2 = false ;
20410 PyObject * obj0 = 0 ;
20411 PyObject * obj1 = 0 ;
20412 char * kwnames[] = {
20413 (char *) "self",(char *) "message", NULL
20414 };
20415
20416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20418 if (!SWIG_IsOK(res1)) {
20419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20420 }
20421 arg1 = reinterpret_cast< wxDC * >(argp1);
20422 {
20423 arg2 = wxString_in_helper(obj1);
20424 if (arg2 == NULL) SWIG_fail;
20425 temp2 = true;
20426 }
20427 {
20428 PyThreadState* __tstate = wxPyBeginAllowThreads();
20429 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20430 wxPyEndAllowThreads(__tstate);
20431 if (PyErr_Occurred()) SWIG_fail;
20432 }
20433 {
20434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20435 }
20436 {
20437 if (temp2)
20438 delete arg2;
20439 }
20440 return resultobj;
20441 fail:
20442 {
20443 if (temp2)
20444 delete arg2;
20445 }
20446 return NULL;
20447 }
20448
20449
20450 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20451 PyObject *resultobj = 0;
20452 wxDC *arg1 = (wxDC *) 0 ;
20453 void *argp1 = 0 ;
20454 int res1 = 0 ;
20455 PyObject *swig_obj[1] ;
20456
20457 if (!args) SWIG_fail;
20458 swig_obj[0] = args;
20459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20460 if (!SWIG_IsOK(res1)) {
20461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20462 }
20463 arg1 = reinterpret_cast< wxDC * >(argp1);
20464 {
20465 PyThreadState* __tstate = wxPyBeginAllowThreads();
20466 (arg1)->EndDoc();
20467 wxPyEndAllowThreads(__tstate);
20468 if (PyErr_Occurred()) SWIG_fail;
20469 }
20470 resultobj = SWIG_Py_Void();
20471 return resultobj;
20472 fail:
20473 return NULL;
20474 }
20475
20476
20477 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20478 PyObject *resultobj = 0;
20479 wxDC *arg1 = (wxDC *) 0 ;
20480 void *argp1 = 0 ;
20481 int res1 = 0 ;
20482 PyObject *swig_obj[1] ;
20483
20484 if (!args) SWIG_fail;
20485 swig_obj[0] = args;
20486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20487 if (!SWIG_IsOK(res1)) {
20488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20489 }
20490 arg1 = reinterpret_cast< wxDC * >(argp1);
20491 {
20492 PyThreadState* __tstate = wxPyBeginAllowThreads();
20493 (arg1)->StartPage();
20494 wxPyEndAllowThreads(__tstate);
20495 if (PyErr_Occurred()) SWIG_fail;
20496 }
20497 resultobj = SWIG_Py_Void();
20498 return resultobj;
20499 fail:
20500 return NULL;
20501 }
20502
20503
20504 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20505 PyObject *resultobj = 0;
20506 wxDC *arg1 = (wxDC *) 0 ;
20507 void *argp1 = 0 ;
20508 int res1 = 0 ;
20509 PyObject *swig_obj[1] ;
20510
20511 if (!args) SWIG_fail;
20512 swig_obj[0] = args;
20513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20514 if (!SWIG_IsOK(res1)) {
20515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20516 }
20517 arg1 = reinterpret_cast< wxDC * >(argp1);
20518 {
20519 PyThreadState* __tstate = wxPyBeginAllowThreads();
20520 (arg1)->EndPage();
20521 wxPyEndAllowThreads(__tstate);
20522 if (PyErr_Occurred()) SWIG_fail;
20523 }
20524 resultobj = SWIG_Py_Void();
20525 return resultobj;
20526 fail:
20527 return NULL;
20528 }
20529
20530
20531 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20532 PyObject *resultobj = 0;
20533 wxDC *arg1 = (wxDC *) 0 ;
20534 wxFont *arg2 = 0 ;
20535 void *argp1 = 0 ;
20536 int res1 = 0 ;
20537 void *argp2 = 0 ;
20538 int res2 = 0 ;
20539 PyObject * obj0 = 0 ;
20540 PyObject * obj1 = 0 ;
20541 char * kwnames[] = {
20542 (char *) "self",(char *) "font", NULL
20543 };
20544
20545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20547 if (!SWIG_IsOK(res1)) {
20548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20549 }
20550 arg1 = reinterpret_cast< wxDC * >(argp1);
20551 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20552 if (!SWIG_IsOK(res2)) {
20553 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20554 }
20555 if (!argp2) {
20556 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20557 }
20558 arg2 = reinterpret_cast< wxFont * >(argp2);
20559 {
20560 PyThreadState* __tstate = wxPyBeginAllowThreads();
20561 (arg1)->SetFont((wxFont const &)*arg2);
20562 wxPyEndAllowThreads(__tstate);
20563 if (PyErr_Occurred()) SWIG_fail;
20564 }
20565 resultobj = SWIG_Py_Void();
20566 return resultobj;
20567 fail:
20568 return NULL;
20569 }
20570
20571
20572 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20573 PyObject *resultobj = 0;
20574 wxDC *arg1 = (wxDC *) 0 ;
20575 wxPen *arg2 = 0 ;
20576 void *argp1 = 0 ;
20577 int res1 = 0 ;
20578 void *argp2 = 0 ;
20579 int res2 = 0 ;
20580 PyObject * obj0 = 0 ;
20581 PyObject * obj1 = 0 ;
20582 char * kwnames[] = {
20583 (char *) "self",(char *) "pen", NULL
20584 };
20585
20586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20588 if (!SWIG_IsOK(res1)) {
20589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20590 }
20591 arg1 = reinterpret_cast< wxDC * >(argp1);
20592 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20593 if (!SWIG_IsOK(res2)) {
20594 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20595 }
20596 if (!argp2) {
20597 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20598 }
20599 arg2 = reinterpret_cast< wxPen * >(argp2);
20600 {
20601 PyThreadState* __tstate = wxPyBeginAllowThreads();
20602 (arg1)->SetPen((wxPen const &)*arg2);
20603 wxPyEndAllowThreads(__tstate);
20604 if (PyErr_Occurred()) SWIG_fail;
20605 }
20606 resultobj = SWIG_Py_Void();
20607 return resultobj;
20608 fail:
20609 return NULL;
20610 }
20611
20612
20613 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20614 PyObject *resultobj = 0;
20615 wxDC *arg1 = (wxDC *) 0 ;
20616 wxBrush *arg2 = 0 ;
20617 void *argp1 = 0 ;
20618 int res1 = 0 ;
20619 void *argp2 = 0 ;
20620 int res2 = 0 ;
20621 PyObject * obj0 = 0 ;
20622 PyObject * obj1 = 0 ;
20623 char * kwnames[] = {
20624 (char *) "self",(char *) "brush", NULL
20625 };
20626
20627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20629 if (!SWIG_IsOK(res1)) {
20630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20631 }
20632 arg1 = reinterpret_cast< wxDC * >(argp1);
20633 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20634 if (!SWIG_IsOK(res2)) {
20635 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20636 }
20637 if (!argp2) {
20638 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20639 }
20640 arg2 = reinterpret_cast< wxBrush * >(argp2);
20641 {
20642 PyThreadState* __tstate = wxPyBeginAllowThreads();
20643 (arg1)->SetBrush((wxBrush const &)*arg2);
20644 wxPyEndAllowThreads(__tstate);
20645 if (PyErr_Occurred()) SWIG_fail;
20646 }
20647 resultobj = SWIG_Py_Void();
20648 return resultobj;
20649 fail:
20650 return NULL;
20651 }
20652
20653
20654 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20655 PyObject *resultobj = 0;
20656 wxDC *arg1 = (wxDC *) 0 ;
20657 wxBrush *arg2 = 0 ;
20658 void *argp1 = 0 ;
20659 int res1 = 0 ;
20660 void *argp2 = 0 ;
20661 int res2 = 0 ;
20662 PyObject * obj0 = 0 ;
20663 PyObject * obj1 = 0 ;
20664 char * kwnames[] = {
20665 (char *) "self",(char *) "brush", NULL
20666 };
20667
20668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20670 if (!SWIG_IsOK(res1)) {
20671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20672 }
20673 arg1 = reinterpret_cast< wxDC * >(argp1);
20674 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20675 if (!SWIG_IsOK(res2)) {
20676 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20677 }
20678 if (!argp2) {
20679 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20680 }
20681 arg2 = reinterpret_cast< wxBrush * >(argp2);
20682 {
20683 PyThreadState* __tstate = wxPyBeginAllowThreads();
20684 (arg1)->SetBackground((wxBrush const &)*arg2);
20685 wxPyEndAllowThreads(__tstate);
20686 if (PyErr_Occurred()) SWIG_fail;
20687 }
20688 resultobj = SWIG_Py_Void();
20689 return resultobj;
20690 fail:
20691 return NULL;
20692 }
20693
20694
20695 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20696 PyObject *resultobj = 0;
20697 wxDC *arg1 = (wxDC *) 0 ;
20698 int arg2 ;
20699 void *argp1 = 0 ;
20700 int res1 = 0 ;
20701 int val2 ;
20702 int ecode2 = 0 ;
20703 PyObject * obj0 = 0 ;
20704 PyObject * obj1 = 0 ;
20705 char * kwnames[] = {
20706 (char *) "self",(char *) "mode", NULL
20707 };
20708
20709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20711 if (!SWIG_IsOK(res1)) {
20712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20713 }
20714 arg1 = reinterpret_cast< wxDC * >(argp1);
20715 ecode2 = SWIG_AsVal_int(obj1, &val2);
20716 if (!SWIG_IsOK(ecode2)) {
20717 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20718 }
20719 arg2 = static_cast< int >(val2);
20720 {
20721 PyThreadState* __tstate = wxPyBeginAllowThreads();
20722 (arg1)->SetBackgroundMode(arg2);
20723 wxPyEndAllowThreads(__tstate);
20724 if (PyErr_Occurred()) SWIG_fail;
20725 }
20726 resultobj = SWIG_Py_Void();
20727 return resultobj;
20728 fail:
20729 return NULL;
20730 }
20731
20732
20733 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20734 PyObject *resultobj = 0;
20735 wxDC *arg1 = (wxDC *) 0 ;
20736 wxPalette *arg2 = 0 ;
20737 void *argp1 = 0 ;
20738 int res1 = 0 ;
20739 void *argp2 = 0 ;
20740 int res2 = 0 ;
20741 PyObject * obj0 = 0 ;
20742 PyObject * obj1 = 0 ;
20743 char * kwnames[] = {
20744 (char *) "self",(char *) "palette", NULL
20745 };
20746
20747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20749 if (!SWIG_IsOK(res1)) {
20750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20751 }
20752 arg1 = reinterpret_cast< wxDC * >(argp1);
20753 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20754 if (!SWIG_IsOK(res2)) {
20755 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20756 }
20757 if (!argp2) {
20758 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20759 }
20760 arg2 = reinterpret_cast< wxPalette * >(argp2);
20761 {
20762 PyThreadState* __tstate = wxPyBeginAllowThreads();
20763 (arg1)->SetPalette((wxPalette const &)*arg2);
20764 wxPyEndAllowThreads(__tstate);
20765 if (PyErr_Occurred()) SWIG_fail;
20766 }
20767 resultobj = SWIG_Py_Void();
20768 return resultobj;
20769 fail:
20770 return NULL;
20771 }
20772
20773
20774 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20775 PyObject *resultobj = 0;
20776 wxDC *arg1 = (wxDC *) 0 ;
20777 void *argp1 = 0 ;
20778 int res1 = 0 ;
20779 PyObject *swig_obj[1] ;
20780
20781 if (!args) SWIG_fail;
20782 swig_obj[0] = args;
20783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20784 if (!SWIG_IsOK(res1)) {
20785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20786 }
20787 arg1 = reinterpret_cast< wxDC * >(argp1);
20788 {
20789 PyThreadState* __tstate = wxPyBeginAllowThreads();
20790 (arg1)->DestroyClippingRegion();
20791 wxPyEndAllowThreads(__tstate);
20792 if (PyErr_Occurred()) SWIG_fail;
20793 }
20794 resultobj = SWIG_Py_Void();
20795 return resultobj;
20796 fail:
20797 return NULL;
20798 }
20799
20800
20801 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20802 PyObject *resultobj = 0;
20803 wxDC *arg1 = (wxDC *) 0 ;
20804 int *arg2 = (int *) 0 ;
20805 int *arg3 = (int *) 0 ;
20806 int *arg4 = (int *) 0 ;
20807 int *arg5 = (int *) 0 ;
20808 void *argp1 = 0 ;
20809 int res1 = 0 ;
20810 int temp2 ;
20811 int res2 = SWIG_TMPOBJ ;
20812 int temp3 ;
20813 int res3 = SWIG_TMPOBJ ;
20814 int temp4 ;
20815 int res4 = SWIG_TMPOBJ ;
20816 int temp5 ;
20817 int res5 = SWIG_TMPOBJ ;
20818 PyObject *swig_obj[1] ;
20819
20820 arg2 = &temp2;
20821 arg3 = &temp3;
20822 arg4 = &temp4;
20823 arg5 = &temp5;
20824 if (!args) SWIG_fail;
20825 swig_obj[0] = args;
20826 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20827 if (!SWIG_IsOK(res1)) {
20828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20829 }
20830 arg1 = reinterpret_cast< wxDC * >(argp1);
20831 {
20832 PyThreadState* __tstate = wxPyBeginAllowThreads();
20833 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20834 wxPyEndAllowThreads(__tstate);
20835 if (PyErr_Occurred()) SWIG_fail;
20836 }
20837 resultobj = SWIG_Py_Void();
20838 if (SWIG_IsTmpObj(res2)) {
20839 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20840 } else {
20841 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20842 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20843 }
20844 if (SWIG_IsTmpObj(res3)) {
20845 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20846 } else {
20847 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20848 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20849 }
20850 if (SWIG_IsTmpObj(res4)) {
20851 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20852 } else {
20853 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20854 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20855 }
20856 if (SWIG_IsTmpObj(res5)) {
20857 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20858 } else {
20859 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20860 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20861 }
20862 return resultobj;
20863 fail:
20864 return NULL;
20865 }
20866
20867
20868 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20869 PyObject *resultobj = 0;
20870 wxDC *arg1 = (wxDC *) 0 ;
20871 wxRect result;
20872 void *argp1 = 0 ;
20873 int res1 = 0 ;
20874 PyObject *swig_obj[1] ;
20875
20876 if (!args) SWIG_fail;
20877 swig_obj[0] = args;
20878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20879 if (!SWIG_IsOK(res1)) {
20880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20881 }
20882 arg1 = reinterpret_cast< wxDC * >(argp1);
20883 {
20884 PyThreadState* __tstate = wxPyBeginAllowThreads();
20885 result = wxDC_GetClippingRect(arg1);
20886 wxPyEndAllowThreads(__tstate);
20887 if (PyErr_Occurred()) SWIG_fail;
20888 }
20889 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20890 return resultobj;
20891 fail:
20892 return NULL;
20893 }
20894
20895
20896 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20897 PyObject *resultobj = 0;
20898 wxDC *arg1 = (wxDC *) 0 ;
20899 int result;
20900 void *argp1 = 0 ;
20901 int res1 = 0 ;
20902 PyObject *swig_obj[1] ;
20903
20904 if (!args) SWIG_fail;
20905 swig_obj[0] = args;
20906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20907 if (!SWIG_IsOK(res1)) {
20908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20909 }
20910 arg1 = reinterpret_cast< wxDC * >(argp1);
20911 {
20912 PyThreadState* __tstate = wxPyBeginAllowThreads();
20913 result = (int)((wxDC const *)arg1)->GetCharHeight();
20914 wxPyEndAllowThreads(__tstate);
20915 if (PyErr_Occurred()) SWIG_fail;
20916 }
20917 resultobj = SWIG_From_int(static_cast< int >(result));
20918 return resultobj;
20919 fail:
20920 return NULL;
20921 }
20922
20923
20924 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20925 PyObject *resultobj = 0;
20926 wxDC *arg1 = (wxDC *) 0 ;
20927 int result;
20928 void *argp1 = 0 ;
20929 int res1 = 0 ;
20930 PyObject *swig_obj[1] ;
20931
20932 if (!args) SWIG_fail;
20933 swig_obj[0] = args;
20934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20935 if (!SWIG_IsOK(res1)) {
20936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20937 }
20938 arg1 = reinterpret_cast< wxDC * >(argp1);
20939 {
20940 PyThreadState* __tstate = wxPyBeginAllowThreads();
20941 result = (int)((wxDC const *)arg1)->GetCharWidth();
20942 wxPyEndAllowThreads(__tstate);
20943 if (PyErr_Occurred()) SWIG_fail;
20944 }
20945 resultobj = SWIG_From_int(static_cast< int >(result));
20946 return resultobj;
20947 fail:
20948 return NULL;
20949 }
20950
20951
20952 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20953 PyObject *resultobj = 0;
20954 wxDC *arg1 = (wxDC *) 0 ;
20955 wxString *arg2 = 0 ;
20956 int *arg3 = (int *) 0 ;
20957 int *arg4 = (int *) 0 ;
20958 void *argp1 = 0 ;
20959 int res1 = 0 ;
20960 bool temp2 = false ;
20961 int temp3 ;
20962 int res3 = SWIG_TMPOBJ ;
20963 int temp4 ;
20964 int res4 = SWIG_TMPOBJ ;
20965 PyObject * obj0 = 0 ;
20966 PyObject * obj1 = 0 ;
20967 char * kwnames[] = {
20968 (char *) "self",(char *) "string", NULL
20969 };
20970
20971 arg3 = &temp3;
20972 arg4 = &temp4;
20973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20975 if (!SWIG_IsOK(res1)) {
20976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20977 }
20978 arg1 = reinterpret_cast< wxDC * >(argp1);
20979 {
20980 arg2 = wxString_in_helper(obj1);
20981 if (arg2 == NULL) SWIG_fail;
20982 temp2 = true;
20983 }
20984 {
20985 PyThreadState* __tstate = wxPyBeginAllowThreads();
20986 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
20987 wxPyEndAllowThreads(__tstate);
20988 if (PyErr_Occurred()) SWIG_fail;
20989 }
20990 resultobj = SWIG_Py_Void();
20991 if (SWIG_IsTmpObj(res3)) {
20992 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20993 } else {
20994 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20995 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20996 }
20997 if (SWIG_IsTmpObj(res4)) {
20998 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20999 } else {
21000 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21001 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21002 }
21003 {
21004 if (temp2)
21005 delete arg2;
21006 }
21007 return resultobj;
21008 fail:
21009 {
21010 if (temp2)
21011 delete arg2;
21012 }
21013 return NULL;
21014 }
21015
21016
21017 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21018 PyObject *resultobj = 0;
21019 wxDC *arg1 = (wxDC *) 0 ;
21020 wxString *arg2 = 0 ;
21021 int *arg3 = (int *) 0 ;
21022 int *arg4 = (int *) 0 ;
21023 int *arg5 = (int *) 0 ;
21024 int *arg6 = (int *) 0 ;
21025 wxFont *arg7 = (wxFont *) NULL ;
21026 void *argp1 = 0 ;
21027 int res1 = 0 ;
21028 bool temp2 = false ;
21029 int temp3 ;
21030 int res3 = SWIG_TMPOBJ ;
21031 int temp4 ;
21032 int res4 = SWIG_TMPOBJ ;
21033 int temp5 ;
21034 int res5 = SWIG_TMPOBJ ;
21035 int temp6 ;
21036 int res6 = SWIG_TMPOBJ ;
21037 void *argp7 = 0 ;
21038 int res7 = 0 ;
21039 PyObject * obj0 = 0 ;
21040 PyObject * obj1 = 0 ;
21041 PyObject * obj2 = 0 ;
21042 char * kwnames[] = {
21043 (char *) "self",(char *) "string",(char *) "font", NULL
21044 };
21045
21046 arg3 = &temp3;
21047 arg4 = &temp4;
21048 arg5 = &temp5;
21049 arg6 = &temp6;
21050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21052 if (!SWIG_IsOK(res1)) {
21053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21054 }
21055 arg1 = reinterpret_cast< wxDC * >(argp1);
21056 {
21057 arg2 = wxString_in_helper(obj1);
21058 if (arg2 == NULL) SWIG_fail;
21059 temp2 = true;
21060 }
21061 if (obj2) {
21062 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21063 if (!SWIG_IsOK(res7)) {
21064 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
21065 }
21066 arg7 = reinterpret_cast< wxFont * >(argp7);
21067 }
21068 {
21069 PyThreadState* __tstate = wxPyBeginAllowThreads();
21070 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21071 wxPyEndAllowThreads(__tstate);
21072 if (PyErr_Occurred()) SWIG_fail;
21073 }
21074 resultobj = SWIG_Py_Void();
21075 if (SWIG_IsTmpObj(res3)) {
21076 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21077 } else {
21078 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21079 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21080 }
21081 if (SWIG_IsTmpObj(res4)) {
21082 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21083 } else {
21084 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21085 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21086 }
21087 if (SWIG_IsTmpObj(res5)) {
21088 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21089 } else {
21090 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21091 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21092 }
21093 if (SWIG_IsTmpObj(res6)) {
21094 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21095 } else {
21096 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21097 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21098 }
21099 {
21100 if (temp2)
21101 delete arg2;
21102 }
21103 return resultobj;
21104 fail:
21105 {
21106 if (temp2)
21107 delete arg2;
21108 }
21109 return NULL;
21110 }
21111
21112
21113 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21114 PyObject *resultobj = 0;
21115 wxDC *arg1 = (wxDC *) 0 ;
21116 wxString *arg2 = 0 ;
21117 int *arg3 = (int *) 0 ;
21118 int *arg4 = (int *) 0 ;
21119 int *arg5 = (int *) 0 ;
21120 wxFont *arg6 = (wxFont *) NULL ;
21121 void *argp1 = 0 ;
21122 int res1 = 0 ;
21123 bool temp2 = false ;
21124 int temp3 ;
21125 int res3 = SWIG_TMPOBJ ;
21126 int temp4 ;
21127 int res4 = SWIG_TMPOBJ ;
21128 int temp5 ;
21129 int res5 = SWIG_TMPOBJ ;
21130 void *argp6 = 0 ;
21131 int res6 = 0 ;
21132 PyObject * obj0 = 0 ;
21133 PyObject * obj1 = 0 ;
21134 PyObject * obj2 = 0 ;
21135 char * kwnames[] = {
21136 (char *) "self",(char *) "text",(char *) "font", NULL
21137 };
21138
21139 arg3 = &temp3;
21140 arg4 = &temp4;
21141 arg5 = &temp5;
21142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21144 if (!SWIG_IsOK(res1)) {
21145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21146 }
21147 arg1 = reinterpret_cast< wxDC * >(argp1);
21148 {
21149 arg2 = wxString_in_helper(obj1);
21150 if (arg2 == NULL) SWIG_fail;
21151 temp2 = true;
21152 }
21153 if (obj2) {
21154 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21155 if (!SWIG_IsOK(res6)) {
21156 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
21157 }
21158 arg6 = reinterpret_cast< wxFont * >(argp6);
21159 }
21160 {
21161 PyThreadState* __tstate = wxPyBeginAllowThreads();
21162 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21163 wxPyEndAllowThreads(__tstate);
21164 if (PyErr_Occurred()) SWIG_fail;
21165 }
21166 resultobj = SWIG_Py_Void();
21167 if (SWIG_IsTmpObj(res3)) {
21168 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21169 } else {
21170 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21171 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21172 }
21173 if (SWIG_IsTmpObj(res4)) {
21174 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21175 } else {
21176 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21177 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21178 }
21179 if (SWIG_IsTmpObj(res5)) {
21180 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21181 } else {
21182 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21183 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21184 }
21185 {
21186 if (temp2)
21187 delete arg2;
21188 }
21189 return resultobj;
21190 fail:
21191 {
21192 if (temp2)
21193 delete arg2;
21194 }
21195 return NULL;
21196 }
21197
21198
21199 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21200 PyObject *resultobj = 0;
21201 wxDC *arg1 = (wxDC *) 0 ;
21202 wxString *arg2 = 0 ;
21203 wxArrayInt result;
21204 void *argp1 = 0 ;
21205 int res1 = 0 ;
21206 bool temp2 = false ;
21207 PyObject * obj0 = 0 ;
21208 PyObject * obj1 = 0 ;
21209 char * kwnames[] = {
21210 (char *) "self",(char *) "text", NULL
21211 };
21212
21213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21215 if (!SWIG_IsOK(res1)) {
21216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21217 }
21218 arg1 = reinterpret_cast< wxDC * >(argp1);
21219 {
21220 arg2 = wxString_in_helper(obj1);
21221 if (arg2 == NULL) SWIG_fail;
21222 temp2 = true;
21223 }
21224 {
21225 PyThreadState* __tstate = wxPyBeginAllowThreads();
21226 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21227 wxPyEndAllowThreads(__tstate);
21228 if (PyErr_Occurred()) SWIG_fail;
21229 }
21230 {
21231 resultobj = wxArrayInt2PyList_helper(result);
21232 }
21233 {
21234 if (temp2)
21235 delete arg2;
21236 }
21237 return resultobj;
21238 fail:
21239 {
21240 if (temp2)
21241 delete arg2;
21242 }
21243 return NULL;
21244 }
21245
21246
21247 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21248 PyObject *resultobj = 0;
21249 wxDC *arg1 = (wxDC *) 0 ;
21250 wxSize result;
21251 void *argp1 = 0 ;
21252 int res1 = 0 ;
21253 PyObject *swig_obj[1] ;
21254
21255 if (!args) SWIG_fail;
21256 swig_obj[0] = args;
21257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21258 if (!SWIG_IsOK(res1)) {
21259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21260 }
21261 arg1 = reinterpret_cast< wxDC * >(argp1);
21262 {
21263 PyThreadState* __tstate = wxPyBeginAllowThreads();
21264 result = (arg1)->GetSize();
21265 wxPyEndAllowThreads(__tstate);
21266 if (PyErr_Occurred()) SWIG_fail;
21267 }
21268 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21269 return resultobj;
21270 fail:
21271 return NULL;
21272 }
21273
21274
21275 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21276 PyObject *resultobj = 0;
21277 wxDC *arg1 = (wxDC *) 0 ;
21278 int *arg2 = (int *) 0 ;
21279 int *arg3 = (int *) 0 ;
21280 void *argp1 = 0 ;
21281 int res1 = 0 ;
21282 int temp2 ;
21283 int res2 = SWIG_TMPOBJ ;
21284 int temp3 ;
21285 int res3 = SWIG_TMPOBJ ;
21286 PyObject *swig_obj[1] ;
21287
21288 arg2 = &temp2;
21289 arg3 = &temp3;
21290 if (!args) SWIG_fail;
21291 swig_obj[0] = args;
21292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21293 if (!SWIG_IsOK(res1)) {
21294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21295 }
21296 arg1 = reinterpret_cast< wxDC * >(argp1);
21297 {
21298 PyThreadState* __tstate = wxPyBeginAllowThreads();
21299 (arg1)->GetSize(arg2,arg3);
21300 wxPyEndAllowThreads(__tstate);
21301 if (PyErr_Occurred()) SWIG_fail;
21302 }
21303 resultobj = SWIG_Py_Void();
21304 if (SWIG_IsTmpObj(res2)) {
21305 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21306 } else {
21307 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21308 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21309 }
21310 if (SWIG_IsTmpObj(res3)) {
21311 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21312 } else {
21313 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21314 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21315 }
21316 return resultobj;
21317 fail:
21318 return NULL;
21319 }
21320
21321
21322 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21323 PyObject *resultobj = 0;
21324 wxDC *arg1 = (wxDC *) 0 ;
21325 wxSize result;
21326 void *argp1 = 0 ;
21327 int res1 = 0 ;
21328 PyObject *swig_obj[1] ;
21329
21330 if (!args) SWIG_fail;
21331 swig_obj[0] = args;
21332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21333 if (!SWIG_IsOK(res1)) {
21334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21335 }
21336 arg1 = reinterpret_cast< wxDC * >(argp1);
21337 {
21338 PyThreadState* __tstate = wxPyBeginAllowThreads();
21339 result = ((wxDC const *)arg1)->GetSizeMM();
21340 wxPyEndAllowThreads(__tstate);
21341 if (PyErr_Occurred()) SWIG_fail;
21342 }
21343 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21344 return resultobj;
21345 fail:
21346 return NULL;
21347 }
21348
21349
21350 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21351 PyObject *resultobj = 0;
21352 wxDC *arg1 = (wxDC *) 0 ;
21353 int *arg2 = (int *) 0 ;
21354 int *arg3 = (int *) 0 ;
21355 void *argp1 = 0 ;
21356 int res1 = 0 ;
21357 int temp2 ;
21358 int res2 = SWIG_TMPOBJ ;
21359 int temp3 ;
21360 int res3 = SWIG_TMPOBJ ;
21361 PyObject *swig_obj[1] ;
21362
21363 arg2 = &temp2;
21364 arg3 = &temp3;
21365 if (!args) SWIG_fail;
21366 swig_obj[0] = args;
21367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21368 if (!SWIG_IsOK(res1)) {
21369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21370 }
21371 arg1 = reinterpret_cast< wxDC * >(argp1);
21372 {
21373 PyThreadState* __tstate = wxPyBeginAllowThreads();
21374 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21375 wxPyEndAllowThreads(__tstate);
21376 if (PyErr_Occurred()) SWIG_fail;
21377 }
21378 resultobj = SWIG_Py_Void();
21379 if (SWIG_IsTmpObj(res2)) {
21380 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21381 } else {
21382 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21383 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21384 }
21385 if (SWIG_IsTmpObj(res3)) {
21386 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21387 } else {
21388 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21389 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21390 }
21391 return resultobj;
21392 fail:
21393 return NULL;
21394 }
21395
21396
21397 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21398 PyObject *resultobj = 0;
21399 wxDC *arg1 = (wxDC *) 0 ;
21400 int arg2 ;
21401 int result;
21402 void *argp1 = 0 ;
21403 int res1 = 0 ;
21404 int val2 ;
21405 int ecode2 = 0 ;
21406 PyObject * obj0 = 0 ;
21407 PyObject * obj1 = 0 ;
21408 char * kwnames[] = {
21409 (char *) "self",(char *) "x", NULL
21410 };
21411
21412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21414 if (!SWIG_IsOK(res1)) {
21415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21416 }
21417 arg1 = reinterpret_cast< wxDC * >(argp1);
21418 ecode2 = SWIG_AsVal_int(obj1, &val2);
21419 if (!SWIG_IsOK(ecode2)) {
21420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21421 }
21422 arg2 = static_cast< int >(val2);
21423 {
21424 PyThreadState* __tstate = wxPyBeginAllowThreads();
21425 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21426 wxPyEndAllowThreads(__tstate);
21427 if (PyErr_Occurred()) SWIG_fail;
21428 }
21429 resultobj = SWIG_From_int(static_cast< int >(result));
21430 return resultobj;
21431 fail:
21432 return NULL;
21433 }
21434
21435
21436 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21437 PyObject *resultobj = 0;
21438 wxDC *arg1 = (wxDC *) 0 ;
21439 int arg2 ;
21440 int result;
21441 void *argp1 = 0 ;
21442 int res1 = 0 ;
21443 int val2 ;
21444 int ecode2 = 0 ;
21445 PyObject * obj0 = 0 ;
21446 PyObject * obj1 = 0 ;
21447 char * kwnames[] = {
21448 (char *) "self",(char *) "y", NULL
21449 };
21450
21451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21453 if (!SWIG_IsOK(res1)) {
21454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21455 }
21456 arg1 = reinterpret_cast< wxDC * >(argp1);
21457 ecode2 = SWIG_AsVal_int(obj1, &val2);
21458 if (!SWIG_IsOK(ecode2)) {
21459 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21460 }
21461 arg2 = static_cast< int >(val2);
21462 {
21463 PyThreadState* __tstate = wxPyBeginAllowThreads();
21464 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21465 wxPyEndAllowThreads(__tstate);
21466 if (PyErr_Occurred()) SWIG_fail;
21467 }
21468 resultobj = SWIG_From_int(static_cast< int >(result));
21469 return resultobj;
21470 fail:
21471 return NULL;
21472 }
21473
21474
21475 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21476 PyObject *resultobj = 0;
21477 wxDC *arg1 = (wxDC *) 0 ;
21478 int arg2 ;
21479 int result;
21480 void *argp1 = 0 ;
21481 int res1 = 0 ;
21482 int val2 ;
21483 int ecode2 = 0 ;
21484 PyObject * obj0 = 0 ;
21485 PyObject * obj1 = 0 ;
21486 char * kwnames[] = {
21487 (char *) "self",(char *) "x", NULL
21488 };
21489
21490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21492 if (!SWIG_IsOK(res1)) {
21493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21494 }
21495 arg1 = reinterpret_cast< wxDC * >(argp1);
21496 ecode2 = SWIG_AsVal_int(obj1, &val2);
21497 if (!SWIG_IsOK(ecode2)) {
21498 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21499 }
21500 arg2 = static_cast< int >(val2);
21501 {
21502 PyThreadState* __tstate = wxPyBeginAllowThreads();
21503 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21504 wxPyEndAllowThreads(__tstate);
21505 if (PyErr_Occurred()) SWIG_fail;
21506 }
21507 resultobj = SWIG_From_int(static_cast< int >(result));
21508 return resultobj;
21509 fail:
21510 return NULL;
21511 }
21512
21513
21514 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21515 PyObject *resultobj = 0;
21516 wxDC *arg1 = (wxDC *) 0 ;
21517 int arg2 ;
21518 int result;
21519 void *argp1 = 0 ;
21520 int res1 = 0 ;
21521 int val2 ;
21522 int ecode2 = 0 ;
21523 PyObject * obj0 = 0 ;
21524 PyObject * obj1 = 0 ;
21525 char * kwnames[] = {
21526 (char *) "self",(char *) "y", NULL
21527 };
21528
21529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21531 if (!SWIG_IsOK(res1)) {
21532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21533 }
21534 arg1 = reinterpret_cast< wxDC * >(argp1);
21535 ecode2 = SWIG_AsVal_int(obj1, &val2);
21536 if (!SWIG_IsOK(ecode2)) {
21537 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21538 }
21539 arg2 = static_cast< int >(val2);
21540 {
21541 PyThreadState* __tstate = wxPyBeginAllowThreads();
21542 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21543 wxPyEndAllowThreads(__tstate);
21544 if (PyErr_Occurred()) SWIG_fail;
21545 }
21546 resultobj = SWIG_From_int(static_cast< int >(result));
21547 return resultobj;
21548 fail:
21549 return NULL;
21550 }
21551
21552
21553 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21554 PyObject *resultobj = 0;
21555 wxDC *arg1 = (wxDC *) 0 ;
21556 int arg2 ;
21557 int result;
21558 void *argp1 = 0 ;
21559 int res1 = 0 ;
21560 int val2 ;
21561 int ecode2 = 0 ;
21562 PyObject * obj0 = 0 ;
21563 PyObject * obj1 = 0 ;
21564 char * kwnames[] = {
21565 (char *) "self",(char *) "x", NULL
21566 };
21567
21568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21570 if (!SWIG_IsOK(res1)) {
21571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21572 }
21573 arg1 = reinterpret_cast< wxDC * >(argp1);
21574 ecode2 = SWIG_AsVal_int(obj1, &val2);
21575 if (!SWIG_IsOK(ecode2)) {
21576 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21577 }
21578 arg2 = static_cast< int >(val2);
21579 {
21580 PyThreadState* __tstate = wxPyBeginAllowThreads();
21581 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21582 wxPyEndAllowThreads(__tstate);
21583 if (PyErr_Occurred()) SWIG_fail;
21584 }
21585 resultobj = SWIG_From_int(static_cast< int >(result));
21586 return resultobj;
21587 fail:
21588 return NULL;
21589 }
21590
21591
21592 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21593 PyObject *resultobj = 0;
21594 wxDC *arg1 = (wxDC *) 0 ;
21595 int arg2 ;
21596 int result;
21597 void *argp1 = 0 ;
21598 int res1 = 0 ;
21599 int val2 ;
21600 int ecode2 = 0 ;
21601 PyObject * obj0 = 0 ;
21602 PyObject * obj1 = 0 ;
21603 char * kwnames[] = {
21604 (char *) "self",(char *) "y", NULL
21605 };
21606
21607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21609 if (!SWIG_IsOK(res1)) {
21610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21611 }
21612 arg1 = reinterpret_cast< wxDC * >(argp1);
21613 ecode2 = SWIG_AsVal_int(obj1, &val2);
21614 if (!SWIG_IsOK(ecode2)) {
21615 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21616 }
21617 arg2 = static_cast< int >(val2);
21618 {
21619 PyThreadState* __tstate = wxPyBeginAllowThreads();
21620 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21621 wxPyEndAllowThreads(__tstate);
21622 if (PyErr_Occurred()) SWIG_fail;
21623 }
21624 resultobj = SWIG_From_int(static_cast< int >(result));
21625 return resultobj;
21626 fail:
21627 return NULL;
21628 }
21629
21630
21631 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21632 PyObject *resultobj = 0;
21633 wxDC *arg1 = (wxDC *) 0 ;
21634 int arg2 ;
21635 int result;
21636 void *argp1 = 0 ;
21637 int res1 = 0 ;
21638 int val2 ;
21639 int ecode2 = 0 ;
21640 PyObject * obj0 = 0 ;
21641 PyObject * obj1 = 0 ;
21642 char * kwnames[] = {
21643 (char *) "self",(char *) "x", NULL
21644 };
21645
21646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21648 if (!SWIG_IsOK(res1)) {
21649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21650 }
21651 arg1 = reinterpret_cast< wxDC * >(argp1);
21652 ecode2 = SWIG_AsVal_int(obj1, &val2);
21653 if (!SWIG_IsOK(ecode2)) {
21654 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21655 }
21656 arg2 = static_cast< int >(val2);
21657 {
21658 PyThreadState* __tstate = wxPyBeginAllowThreads();
21659 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21660 wxPyEndAllowThreads(__tstate);
21661 if (PyErr_Occurred()) SWIG_fail;
21662 }
21663 resultobj = SWIG_From_int(static_cast< int >(result));
21664 return resultobj;
21665 fail:
21666 return NULL;
21667 }
21668
21669
21670 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21671 PyObject *resultobj = 0;
21672 wxDC *arg1 = (wxDC *) 0 ;
21673 int arg2 ;
21674 int result;
21675 void *argp1 = 0 ;
21676 int res1 = 0 ;
21677 int val2 ;
21678 int ecode2 = 0 ;
21679 PyObject * obj0 = 0 ;
21680 PyObject * obj1 = 0 ;
21681 char * kwnames[] = {
21682 (char *) "self",(char *) "y", NULL
21683 };
21684
21685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21687 if (!SWIG_IsOK(res1)) {
21688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21689 }
21690 arg1 = reinterpret_cast< wxDC * >(argp1);
21691 ecode2 = SWIG_AsVal_int(obj1, &val2);
21692 if (!SWIG_IsOK(ecode2)) {
21693 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21694 }
21695 arg2 = static_cast< int >(val2);
21696 {
21697 PyThreadState* __tstate = wxPyBeginAllowThreads();
21698 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21699 wxPyEndAllowThreads(__tstate);
21700 if (PyErr_Occurred()) SWIG_fail;
21701 }
21702 resultobj = SWIG_From_int(static_cast< int >(result));
21703 return resultobj;
21704 fail:
21705 return NULL;
21706 }
21707
21708
21709 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21710 PyObject *resultobj = 0;
21711 wxDC *arg1 = (wxDC *) 0 ;
21712 bool result;
21713 void *argp1 = 0 ;
21714 int res1 = 0 ;
21715 PyObject *swig_obj[1] ;
21716
21717 if (!args) SWIG_fail;
21718 swig_obj[0] = args;
21719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21720 if (!SWIG_IsOK(res1)) {
21721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21722 }
21723 arg1 = reinterpret_cast< wxDC * >(argp1);
21724 {
21725 PyThreadState* __tstate = wxPyBeginAllowThreads();
21726 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21727 wxPyEndAllowThreads(__tstate);
21728 if (PyErr_Occurred()) SWIG_fail;
21729 }
21730 {
21731 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21732 }
21733 return resultobj;
21734 fail:
21735 return NULL;
21736 }
21737
21738
21739 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21740 PyObject *resultobj = 0;
21741 wxDC *arg1 = (wxDC *) 0 ;
21742 bool result;
21743 void *argp1 = 0 ;
21744 int res1 = 0 ;
21745 PyObject *swig_obj[1] ;
21746
21747 if (!args) SWIG_fail;
21748 swig_obj[0] = args;
21749 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21750 if (!SWIG_IsOK(res1)) {
21751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21752 }
21753 arg1 = reinterpret_cast< wxDC * >(argp1);
21754 {
21755 PyThreadState* __tstate = wxPyBeginAllowThreads();
21756 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21757 wxPyEndAllowThreads(__tstate);
21758 if (PyErr_Occurred()) SWIG_fail;
21759 }
21760 {
21761 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21762 }
21763 return resultobj;
21764 fail:
21765 return NULL;
21766 }
21767
21768
21769 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21770 PyObject *resultobj = 0;
21771 wxDC *arg1 = (wxDC *) 0 ;
21772 int result;
21773 void *argp1 = 0 ;
21774 int res1 = 0 ;
21775 PyObject *swig_obj[1] ;
21776
21777 if (!args) SWIG_fail;
21778 swig_obj[0] = args;
21779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21780 if (!SWIG_IsOK(res1)) {
21781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21782 }
21783 arg1 = reinterpret_cast< wxDC * >(argp1);
21784 {
21785 PyThreadState* __tstate = wxPyBeginAllowThreads();
21786 result = (int)((wxDC const *)arg1)->GetDepth();
21787 wxPyEndAllowThreads(__tstate);
21788 if (PyErr_Occurred()) SWIG_fail;
21789 }
21790 resultobj = SWIG_From_int(static_cast< int >(result));
21791 return resultobj;
21792 fail:
21793 return NULL;
21794 }
21795
21796
21797 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21798 PyObject *resultobj = 0;
21799 wxDC *arg1 = (wxDC *) 0 ;
21800 wxSize result;
21801 void *argp1 = 0 ;
21802 int res1 = 0 ;
21803 PyObject *swig_obj[1] ;
21804
21805 if (!args) SWIG_fail;
21806 swig_obj[0] = args;
21807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21808 if (!SWIG_IsOK(res1)) {
21809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21810 }
21811 arg1 = reinterpret_cast< wxDC * >(argp1);
21812 {
21813 PyThreadState* __tstate = wxPyBeginAllowThreads();
21814 result = ((wxDC const *)arg1)->GetPPI();
21815 wxPyEndAllowThreads(__tstate);
21816 if (PyErr_Occurred()) SWIG_fail;
21817 }
21818 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21819 return resultobj;
21820 fail:
21821 return NULL;
21822 }
21823
21824
21825 SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21826 PyObject *resultobj = 0;
21827 wxDC *arg1 = (wxDC *) 0 ;
21828 bool result;
21829 void *argp1 = 0 ;
21830 int res1 = 0 ;
21831 PyObject *swig_obj[1] ;
21832
21833 if (!args) SWIG_fail;
21834 swig_obj[0] = args;
21835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21836 if (!SWIG_IsOK(res1)) {
21837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
21838 }
21839 arg1 = reinterpret_cast< wxDC * >(argp1);
21840 {
21841 PyThreadState* __tstate = wxPyBeginAllowThreads();
21842 result = (bool)((wxDC const *)arg1)->IsOk();
21843 wxPyEndAllowThreads(__tstate);
21844 if (PyErr_Occurred()) SWIG_fail;
21845 }
21846 {
21847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21848 }
21849 return resultobj;
21850 fail:
21851 return NULL;
21852 }
21853
21854
21855 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21856 PyObject *resultobj = 0;
21857 wxDC *arg1 = (wxDC *) 0 ;
21858 int result;
21859 void *argp1 = 0 ;
21860 int res1 = 0 ;
21861 PyObject *swig_obj[1] ;
21862
21863 if (!args) SWIG_fail;
21864 swig_obj[0] = args;
21865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21866 if (!SWIG_IsOK(res1)) {
21867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21868 }
21869 arg1 = reinterpret_cast< wxDC * >(argp1);
21870 {
21871 PyThreadState* __tstate = wxPyBeginAllowThreads();
21872 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21873 wxPyEndAllowThreads(__tstate);
21874 if (PyErr_Occurred()) SWIG_fail;
21875 }
21876 resultobj = SWIG_From_int(static_cast< int >(result));
21877 return resultobj;
21878 fail:
21879 return NULL;
21880 }
21881
21882
21883 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21884 PyObject *resultobj = 0;
21885 wxDC *arg1 = (wxDC *) 0 ;
21886 wxBrush *result = 0 ;
21887 void *argp1 = 0 ;
21888 int res1 = 0 ;
21889 PyObject *swig_obj[1] ;
21890
21891 if (!args) SWIG_fail;
21892 swig_obj[0] = args;
21893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21894 if (!SWIG_IsOK(res1)) {
21895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21896 }
21897 arg1 = reinterpret_cast< wxDC * >(argp1);
21898 {
21899 PyThreadState* __tstate = wxPyBeginAllowThreads();
21900 {
21901 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21902 result = (wxBrush *) &_result_ref;
21903 }
21904 wxPyEndAllowThreads(__tstate);
21905 if (PyErr_Occurred()) SWIG_fail;
21906 }
21907 {
21908 wxBrush* resultptr = new wxBrush(*result);
21909 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21910 }
21911 return resultobj;
21912 fail:
21913 return NULL;
21914 }
21915
21916
21917 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21918 PyObject *resultobj = 0;
21919 wxDC *arg1 = (wxDC *) 0 ;
21920 wxBrush *result = 0 ;
21921 void *argp1 = 0 ;
21922 int res1 = 0 ;
21923 PyObject *swig_obj[1] ;
21924
21925 if (!args) SWIG_fail;
21926 swig_obj[0] = args;
21927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21928 if (!SWIG_IsOK(res1)) {
21929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21930 }
21931 arg1 = reinterpret_cast< wxDC * >(argp1);
21932 {
21933 PyThreadState* __tstate = wxPyBeginAllowThreads();
21934 {
21935 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21936 result = (wxBrush *) &_result_ref;
21937 }
21938 wxPyEndAllowThreads(__tstate);
21939 if (PyErr_Occurred()) SWIG_fail;
21940 }
21941 {
21942 wxBrush* resultptr = new wxBrush(*result);
21943 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21944 }
21945 return resultobj;
21946 fail:
21947 return NULL;
21948 }
21949
21950
21951 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21952 PyObject *resultobj = 0;
21953 wxDC *arg1 = (wxDC *) 0 ;
21954 wxFont *result = 0 ;
21955 void *argp1 = 0 ;
21956 int res1 = 0 ;
21957 PyObject *swig_obj[1] ;
21958
21959 if (!args) SWIG_fail;
21960 swig_obj[0] = args;
21961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21962 if (!SWIG_IsOK(res1)) {
21963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21964 }
21965 arg1 = reinterpret_cast< wxDC * >(argp1);
21966 {
21967 PyThreadState* __tstate = wxPyBeginAllowThreads();
21968 {
21969 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21970 result = (wxFont *) &_result_ref;
21971 }
21972 wxPyEndAllowThreads(__tstate);
21973 if (PyErr_Occurred()) SWIG_fail;
21974 }
21975 {
21976 wxFont* resultptr = new wxFont(*result);
21977 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21978 }
21979 return resultobj;
21980 fail:
21981 return NULL;
21982 }
21983
21984
21985 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21986 PyObject *resultobj = 0;
21987 wxDC *arg1 = (wxDC *) 0 ;
21988 wxPen *result = 0 ;
21989 void *argp1 = 0 ;
21990 int res1 = 0 ;
21991 PyObject *swig_obj[1] ;
21992
21993 if (!args) SWIG_fail;
21994 swig_obj[0] = args;
21995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21996 if (!SWIG_IsOK(res1)) {
21997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
21998 }
21999 arg1 = reinterpret_cast< wxDC * >(argp1);
22000 {
22001 PyThreadState* __tstate = wxPyBeginAllowThreads();
22002 {
22003 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22004 result = (wxPen *) &_result_ref;
22005 }
22006 wxPyEndAllowThreads(__tstate);
22007 if (PyErr_Occurred()) SWIG_fail;
22008 }
22009 {
22010 wxPen* resultptr = new wxPen(*result);
22011 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22012 }
22013 return resultobj;
22014 fail:
22015 return NULL;
22016 }
22017
22018
22019 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22020 PyObject *resultobj = 0;
22021 wxDC *arg1 = (wxDC *) 0 ;
22022 wxColour *result = 0 ;
22023 void *argp1 = 0 ;
22024 int res1 = 0 ;
22025 PyObject *swig_obj[1] ;
22026
22027 if (!args) SWIG_fail;
22028 swig_obj[0] = args;
22029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22030 if (!SWIG_IsOK(res1)) {
22031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22032 }
22033 arg1 = reinterpret_cast< wxDC * >(argp1);
22034 {
22035 PyThreadState* __tstate = wxPyBeginAllowThreads();
22036 {
22037 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22038 result = (wxColour *) &_result_ref;
22039 }
22040 wxPyEndAllowThreads(__tstate);
22041 if (PyErr_Occurred()) SWIG_fail;
22042 }
22043 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22044 return resultobj;
22045 fail:
22046 return NULL;
22047 }
22048
22049
22050 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22051 PyObject *resultobj = 0;
22052 wxDC *arg1 = (wxDC *) 0 ;
22053 wxColour *result = 0 ;
22054 void *argp1 = 0 ;
22055 int res1 = 0 ;
22056 PyObject *swig_obj[1] ;
22057
22058 if (!args) SWIG_fail;
22059 swig_obj[0] = args;
22060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22061 if (!SWIG_IsOK(res1)) {
22062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22063 }
22064 arg1 = reinterpret_cast< wxDC * >(argp1);
22065 {
22066 PyThreadState* __tstate = wxPyBeginAllowThreads();
22067 {
22068 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22069 result = (wxColour *) &_result_ref;
22070 }
22071 wxPyEndAllowThreads(__tstate);
22072 if (PyErr_Occurred()) SWIG_fail;
22073 }
22074 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22075 return resultobj;
22076 fail:
22077 return NULL;
22078 }
22079
22080
22081 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22082 PyObject *resultobj = 0;
22083 wxDC *arg1 = (wxDC *) 0 ;
22084 wxColour *arg2 = 0 ;
22085 void *argp1 = 0 ;
22086 int res1 = 0 ;
22087 wxColour temp2 ;
22088 PyObject * obj0 = 0 ;
22089 PyObject * obj1 = 0 ;
22090 char * kwnames[] = {
22091 (char *) "self",(char *) "colour", NULL
22092 };
22093
22094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22096 if (!SWIG_IsOK(res1)) {
22097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22098 }
22099 arg1 = reinterpret_cast< wxDC * >(argp1);
22100 {
22101 arg2 = &temp2;
22102 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22103 }
22104 {
22105 PyThreadState* __tstate = wxPyBeginAllowThreads();
22106 (arg1)->SetTextForeground((wxColour const &)*arg2);
22107 wxPyEndAllowThreads(__tstate);
22108 if (PyErr_Occurred()) SWIG_fail;
22109 }
22110 resultobj = SWIG_Py_Void();
22111 return resultobj;
22112 fail:
22113 return NULL;
22114 }
22115
22116
22117 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22118 PyObject *resultobj = 0;
22119 wxDC *arg1 = (wxDC *) 0 ;
22120 wxColour *arg2 = 0 ;
22121 void *argp1 = 0 ;
22122 int res1 = 0 ;
22123 wxColour temp2 ;
22124 PyObject * obj0 = 0 ;
22125 PyObject * obj1 = 0 ;
22126 char * kwnames[] = {
22127 (char *) "self",(char *) "colour", NULL
22128 };
22129
22130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22132 if (!SWIG_IsOK(res1)) {
22133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22134 }
22135 arg1 = reinterpret_cast< wxDC * >(argp1);
22136 {
22137 arg2 = &temp2;
22138 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22139 }
22140 {
22141 PyThreadState* __tstate = wxPyBeginAllowThreads();
22142 (arg1)->SetTextBackground((wxColour const &)*arg2);
22143 wxPyEndAllowThreads(__tstate);
22144 if (PyErr_Occurred()) SWIG_fail;
22145 }
22146 resultobj = SWIG_Py_Void();
22147 return resultobj;
22148 fail:
22149 return NULL;
22150 }
22151
22152
22153 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22154 PyObject *resultobj = 0;
22155 wxDC *arg1 = (wxDC *) 0 ;
22156 int result;
22157 void *argp1 = 0 ;
22158 int res1 = 0 ;
22159 PyObject *swig_obj[1] ;
22160
22161 if (!args) SWIG_fail;
22162 swig_obj[0] = args;
22163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22164 if (!SWIG_IsOK(res1)) {
22165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22166 }
22167 arg1 = reinterpret_cast< wxDC * >(argp1);
22168 {
22169 PyThreadState* __tstate = wxPyBeginAllowThreads();
22170 result = (int)((wxDC const *)arg1)->GetMapMode();
22171 wxPyEndAllowThreads(__tstate);
22172 if (PyErr_Occurred()) SWIG_fail;
22173 }
22174 resultobj = SWIG_From_int(static_cast< int >(result));
22175 return resultobj;
22176 fail:
22177 return NULL;
22178 }
22179
22180
22181 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22182 PyObject *resultobj = 0;
22183 wxDC *arg1 = (wxDC *) 0 ;
22184 int arg2 ;
22185 void *argp1 = 0 ;
22186 int res1 = 0 ;
22187 int val2 ;
22188 int ecode2 = 0 ;
22189 PyObject * obj0 = 0 ;
22190 PyObject * obj1 = 0 ;
22191 char * kwnames[] = {
22192 (char *) "self",(char *) "mode", NULL
22193 };
22194
22195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22197 if (!SWIG_IsOK(res1)) {
22198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22199 }
22200 arg1 = reinterpret_cast< wxDC * >(argp1);
22201 ecode2 = SWIG_AsVal_int(obj1, &val2);
22202 if (!SWIG_IsOK(ecode2)) {
22203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22204 }
22205 arg2 = static_cast< int >(val2);
22206 {
22207 PyThreadState* __tstate = wxPyBeginAllowThreads();
22208 (arg1)->SetMapMode(arg2);
22209 wxPyEndAllowThreads(__tstate);
22210 if (PyErr_Occurred()) SWIG_fail;
22211 }
22212 resultobj = SWIG_Py_Void();
22213 return resultobj;
22214 fail:
22215 return NULL;
22216 }
22217
22218
22219 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22220 PyObject *resultobj = 0;
22221 wxDC *arg1 = (wxDC *) 0 ;
22222 double *arg2 = (double *) 0 ;
22223 double *arg3 = (double *) 0 ;
22224 void *argp1 = 0 ;
22225 int res1 = 0 ;
22226 double temp2 ;
22227 int res2 = SWIG_TMPOBJ ;
22228 double temp3 ;
22229 int res3 = SWIG_TMPOBJ ;
22230 PyObject *swig_obj[1] ;
22231
22232 arg2 = &temp2;
22233 arg3 = &temp3;
22234 if (!args) SWIG_fail;
22235 swig_obj[0] = args;
22236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22237 if (!SWIG_IsOK(res1)) {
22238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22239 }
22240 arg1 = reinterpret_cast< wxDC * >(argp1);
22241 {
22242 PyThreadState* __tstate = wxPyBeginAllowThreads();
22243 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22244 wxPyEndAllowThreads(__tstate);
22245 if (PyErr_Occurred()) SWIG_fail;
22246 }
22247 resultobj = SWIG_Py_Void();
22248 if (SWIG_IsTmpObj(res2)) {
22249 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22250 } else {
22251 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22252 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22253 }
22254 if (SWIG_IsTmpObj(res3)) {
22255 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22256 } else {
22257 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22258 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22259 }
22260 return resultobj;
22261 fail:
22262 return NULL;
22263 }
22264
22265
22266 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22267 PyObject *resultobj = 0;
22268 wxDC *arg1 = (wxDC *) 0 ;
22269 double arg2 ;
22270 double arg3 ;
22271 void *argp1 = 0 ;
22272 int res1 = 0 ;
22273 double val2 ;
22274 int ecode2 = 0 ;
22275 double val3 ;
22276 int ecode3 = 0 ;
22277 PyObject * obj0 = 0 ;
22278 PyObject * obj1 = 0 ;
22279 PyObject * obj2 = 0 ;
22280 char * kwnames[] = {
22281 (char *) "self",(char *) "x",(char *) "y", NULL
22282 };
22283
22284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22286 if (!SWIG_IsOK(res1)) {
22287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22288 }
22289 arg1 = reinterpret_cast< wxDC * >(argp1);
22290 ecode2 = SWIG_AsVal_double(obj1, &val2);
22291 if (!SWIG_IsOK(ecode2)) {
22292 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22293 }
22294 arg2 = static_cast< double >(val2);
22295 ecode3 = SWIG_AsVal_double(obj2, &val3);
22296 if (!SWIG_IsOK(ecode3)) {
22297 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22298 }
22299 arg3 = static_cast< double >(val3);
22300 {
22301 PyThreadState* __tstate = wxPyBeginAllowThreads();
22302 (arg1)->SetUserScale(arg2,arg3);
22303 wxPyEndAllowThreads(__tstate);
22304 if (PyErr_Occurred()) SWIG_fail;
22305 }
22306 resultobj = SWIG_Py_Void();
22307 return resultobj;
22308 fail:
22309 return NULL;
22310 }
22311
22312
22313 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22314 PyObject *resultobj = 0;
22315 wxDC *arg1 = (wxDC *) 0 ;
22316 double *arg2 = (double *) 0 ;
22317 double *arg3 = (double *) 0 ;
22318 void *argp1 = 0 ;
22319 int res1 = 0 ;
22320 double temp2 ;
22321 int res2 = SWIG_TMPOBJ ;
22322 double temp3 ;
22323 int res3 = SWIG_TMPOBJ ;
22324 PyObject *swig_obj[1] ;
22325
22326 arg2 = &temp2;
22327 arg3 = &temp3;
22328 if (!args) SWIG_fail;
22329 swig_obj[0] = args;
22330 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22331 if (!SWIG_IsOK(res1)) {
22332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22333 }
22334 arg1 = reinterpret_cast< wxDC * >(argp1);
22335 {
22336 PyThreadState* __tstate = wxPyBeginAllowThreads();
22337 (arg1)->GetLogicalScale(arg2,arg3);
22338 wxPyEndAllowThreads(__tstate);
22339 if (PyErr_Occurred()) SWIG_fail;
22340 }
22341 resultobj = SWIG_Py_Void();
22342 if (SWIG_IsTmpObj(res2)) {
22343 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22344 } else {
22345 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22346 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22347 }
22348 if (SWIG_IsTmpObj(res3)) {
22349 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22350 } else {
22351 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22352 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22353 }
22354 return resultobj;
22355 fail:
22356 return NULL;
22357 }
22358
22359
22360 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22361 PyObject *resultobj = 0;
22362 wxDC *arg1 = (wxDC *) 0 ;
22363 double arg2 ;
22364 double arg3 ;
22365 void *argp1 = 0 ;
22366 int res1 = 0 ;
22367 double val2 ;
22368 int ecode2 = 0 ;
22369 double val3 ;
22370 int ecode3 = 0 ;
22371 PyObject * obj0 = 0 ;
22372 PyObject * obj1 = 0 ;
22373 PyObject * obj2 = 0 ;
22374 char * kwnames[] = {
22375 (char *) "self",(char *) "x",(char *) "y", NULL
22376 };
22377
22378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22380 if (!SWIG_IsOK(res1)) {
22381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22382 }
22383 arg1 = reinterpret_cast< wxDC * >(argp1);
22384 ecode2 = SWIG_AsVal_double(obj1, &val2);
22385 if (!SWIG_IsOK(ecode2)) {
22386 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22387 }
22388 arg2 = static_cast< double >(val2);
22389 ecode3 = SWIG_AsVal_double(obj2, &val3);
22390 if (!SWIG_IsOK(ecode3)) {
22391 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22392 }
22393 arg3 = static_cast< double >(val3);
22394 {
22395 PyThreadState* __tstate = wxPyBeginAllowThreads();
22396 (arg1)->SetLogicalScale(arg2,arg3);
22397 wxPyEndAllowThreads(__tstate);
22398 if (PyErr_Occurred()) SWIG_fail;
22399 }
22400 resultobj = SWIG_Py_Void();
22401 return resultobj;
22402 fail:
22403 return NULL;
22404 }
22405
22406
22407 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22408 PyObject *resultobj = 0;
22409 wxDC *arg1 = (wxDC *) 0 ;
22410 wxPoint result;
22411 void *argp1 = 0 ;
22412 int res1 = 0 ;
22413 PyObject *swig_obj[1] ;
22414
22415 if (!args) SWIG_fail;
22416 swig_obj[0] = args;
22417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22418 if (!SWIG_IsOK(res1)) {
22419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22420 }
22421 arg1 = reinterpret_cast< wxDC * >(argp1);
22422 {
22423 PyThreadState* __tstate = wxPyBeginAllowThreads();
22424 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22425 wxPyEndAllowThreads(__tstate);
22426 if (PyErr_Occurred()) SWIG_fail;
22427 }
22428 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22429 return resultobj;
22430 fail:
22431 return NULL;
22432 }
22433
22434
22435 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22436 PyObject *resultobj = 0;
22437 wxDC *arg1 = (wxDC *) 0 ;
22438 int *arg2 = (int *) 0 ;
22439 int *arg3 = (int *) 0 ;
22440 void *argp1 = 0 ;
22441 int res1 = 0 ;
22442 int temp2 ;
22443 int res2 = SWIG_TMPOBJ ;
22444 int temp3 ;
22445 int res3 = SWIG_TMPOBJ ;
22446 PyObject *swig_obj[1] ;
22447
22448 arg2 = &temp2;
22449 arg3 = &temp3;
22450 if (!args) SWIG_fail;
22451 swig_obj[0] = args;
22452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22453 if (!SWIG_IsOK(res1)) {
22454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22455 }
22456 arg1 = reinterpret_cast< wxDC * >(argp1);
22457 {
22458 PyThreadState* __tstate = wxPyBeginAllowThreads();
22459 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22460 wxPyEndAllowThreads(__tstate);
22461 if (PyErr_Occurred()) SWIG_fail;
22462 }
22463 resultobj = SWIG_Py_Void();
22464 if (SWIG_IsTmpObj(res2)) {
22465 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22466 } else {
22467 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22468 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22469 }
22470 if (SWIG_IsTmpObj(res3)) {
22471 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22472 } else {
22473 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22474 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22475 }
22476 return resultobj;
22477 fail:
22478 return NULL;
22479 }
22480
22481
22482 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22483 PyObject *resultobj = 0;
22484 wxDC *arg1 = (wxDC *) 0 ;
22485 int arg2 ;
22486 int arg3 ;
22487 void *argp1 = 0 ;
22488 int res1 = 0 ;
22489 int val2 ;
22490 int ecode2 = 0 ;
22491 int val3 ;
22492 int ecode3 = 0 ;
22493 PyObject * obj0 = 0 ;
22494 PyObject * obj1 = 0 ;
22495 PyObject * obj2 = 0 ;
22496 char * kwnames[] = {
22497 (char *) "self",(char *) "x",(char *) "y", NULL
22498 };
22499
22500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22502 if (!SWIG_IsOK(res1)) {
22503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22504 }
22505 arg1 = reinterpret_cast< wxDC * >(argp1);
22506 ecode2 = SWIG_AsVal_int(obj1, &val2);
22507 if (!SWIG_IsOK(ecode2)) {
22508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22509 }
22510 arg2 = static_cast< int >(val2);
22511 ecode3 = SWIG_AsVal_int(obj2, &val3);
22512 if (!SWIG_IsOK(ecode3)) {
22513 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22514 }
22515 arg3 = static_cast< int >(val3);
22516 {
22517 PyThreadState* __tstate = wxPyBeginAllowThreads();
22518 (arg1)->SetLogicalOrigin(arg2,arg3);
22519 wxPyEndAllowThreads(__tstate);
22520 if (PyErr_Occurred()) SWIG_fail;
22521 }
22522 resultobj = SWIG_Py_Void();
22523 return resultobj;
22524 fail:
22525 return NULL;
22526 }
22527
22528
22529 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22530 PyObject *resultobj = 0;
22531 wxDC *arg1 = (wxDC *) 0 ;
22532 wxPoint *arg2 = 0 ;
22533 void *argp1 = 0 ;
22534 int res1 = 0 ;
22535 wxPoint temp2 ;
22536 PyObject * obj0 = 0 ;
22537 PyObject * obj1 = 0 ;
22538 char * kwnames[] = {
22539 (char *) "self",(char *) "point", NULL
22540 };
22541
22542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22544 if (!SWIG_IsOK(res1)) {
22545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22546 }
22547 arg1 = reinterpret_cast< wxDC * >(argp1);
22548 {
22549 arg2 = &temp2;
22550 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22551 }
22552 {
22553 PyThreadState* __tstate = wxPyBeginAllowThreads();
22554 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22555 wxPyEndAllowThreads(__tstate);
22556 if (PyErr_Occurred()) SWIG_fail;
22557 }
22558 resultobj = SWIG_Py_Void();
22559 return resultobj;
22560 fail:
22561 return NULL;
22562 }
22563
22564
22565 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22566 PyObject *resultobj = 0;
22567 wxDC *arg1 = (wxDC *) 0 ;
22568 wxPoint result;
22569 void *argp1 = 0 ;
22570 int res1 = 0 ;
22571 PyObject *swig_obj[1] ;
22572
22573 if (!args) SWIG_fail;
22574 swig_obj[0] = args;
22575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22576 if (!SWIG_IsOK(res1)) {
22577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22578 }
22579 arg1 = reinterpret_cast< wxDC * >(argp1);
22580 {
22581 PyThreadState* __tstate = wxPyBeginAllowThreads();
22582 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22583 wxPyEndAllowThreads(__tstate);
22584 if (PyErr_Occurred()) SWIG_fail;
22585 }
22586 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22587 return resultobj;
22588 fail:
22589 return NULL;
22590 }
22591
22592
22593 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22594 PyObject *resultobj = 0;
22595 wxDC *arg1 = (wxDC *) 0 ;
22596 int *arg2 = (int *) 0 ;
22597 int *arg3 = (int *) 0 ;
22598 void *argp1 = 0 ;
22599 int res1 = 0 ;
22600 int temp2 ;
22601 int res2 = SWIG_TMPOBJ ;
22602 int temp3 ;
22603 int res3 = SWIG_TMPOBJ ;
22604 PyObject *swig_obj[1] ;
22605
22606 arg2 = &temp2;
22607 arg3 = &temp3;
22608 if (!args) SWIG_fail;
22609 swig_obj[0] = args;
22610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22611 if (!SWIG_IsOK(res1)) {
22612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22613 }
22614 arg1 = reinterpret_cast< wxDC * >(argp1);
22615 {
22616 PyThreadState* __tstate = wxPyBeginAllowThreads();
22617 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22618 wxPyEndAllowThreads(__tstate);
22619 if (PyErr_Occurred()) SWIG_fail;
22620 }
22621 resultobj = SWIG_Py_Void();
22622 if (SWIG_IsTmpObj(res2)) {
22623 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22624 } else {
22625 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22626 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22627 }
22628 if (SWIG_IsTmpObj(res3)) {
22629 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22630 } else {
22631 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22632 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22633 }
22634 return resultobj;
22635 fail:
22636 return NULL;
22637 }
22638
22639
22640 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22641 PyObject *resultobj = 0;
22642 wxDC *arg1 = (wxDC *) 0 ;
22643 int arg2 ;
22644 int arg3 ;
22645 void *argp1 = 0 ;
22646 int res1 = 0 ;
22647 int val2 ;
22648 int ecode2 = 0 ;
22649 int val3 ;
22650 int ecode3 = 0 ;
22651 PyObject * obj0 = 0 ;
22652 PyObject * obj1 = 0 ;
22653 PyObject * obj2 = 0 ;
22654 char * kwnames[] = {
22655 (char *) "self",(char *) "x",(char *) "y", NULL
22656 };
22657
22658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22660 if (!SWIG_IsOK(res1)) {
22661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22662 }
22663 arg1 = reinterpret_cast< wxDC * >(argp1);
22664 ecode2 = SWIG_AsVal_int(obj1, &val2);
22665 if (!SWIG_IsOK(ecode2)) {
22666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22667 }
22668 arg2 = static_cast< int >(val2);
22669 ecode3 = SWIG_AsVal_int(obj2, &val3);
22670 if (!SWIG_IsOK(ecode3)) {
22671 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22672 }
22673 arg3 = static_cast< int >(val3);
22674 {
22675 PyThreadState* __tstate = wxPyBeginAllowThreads();
22676 (arg1)->SetDeviceOrigin(arg2,arg3);
22677 wxPyEndAllowThreads(__tstate);
22678 if (PyErr_Occurred()) SWIG_fail;
22679 }
22680 resultobj = SWIG_Py_Void();
22681 return resultobj;
22682 fail:
22683 return NULL;
22684 }
22685
22686
22687 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22688 PyObject *resultobj = 0;
22689 wxDC *arg1 = (wxDC *) 0 ;
22690 wxPoint *arg2 = 0 ;
22691 void *argp1 = 0 ;
22692 int res1 = 0 ;
22693 wxPoint temp2 ;
22694 PyObject * obj0 = 0 ;
22695 PyObject * obj1 = 0 ;
22696 char * kwnames[] = {
22697 (char *) "self",(char *) "point", NULL
22698 };
22699
22700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22702 if (!SWIG_IsOK(res1)) {
22703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22704 }
22705 arg1 = reinterpret_cast< wxDC * >(argp1);
22706 {
22707 arg2 = &temp2;
22708 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22709 }
22710 {
22711 PyThreadState* __tstate = wxPyBeginAllowThreads();
22712 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22713 wxPyEndAllowThreads(__tstate);
22714 if (PyErr_Occurred()) SWIG_fail;
22715 }
22716 resultobj = SWIG_Py_Void();
22717 return resultobj;
22718 fail:
22719 return NULL;
22720 }
22721
22722
22723 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22724 PyObject *resultobj = 0;
22725 wxDC *arg1 = (wxDC *) 0 ;
22726 bool arg2 ;
22727 bool arg3 ;
22728 void *argp1 = 0 ;
22729 int res1 = 0 ;
22730 bool val2 ;
22731 int ecode2 = 0 ;
22732 bool val3 ;
22733 int ecode3 = 0 ;
22734 PyObject * obj0 = 0 ;
22735 PyObject * obj1 = 0 ;
22736 PyObject * obj2 = 0 ;
22737 char * kwnames[] = {
22738 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22739 };
22740
22741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22743 if (!SWIG_IsOK(res1)) {
22744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22745 }
22746 arg1 = reinterpret_cast< wxDC * >(argp1);
22747 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22748 if (!SWIG_IsOK(ecode2)) {
22749 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22750 }
22751 arg2 = static_cast< bool >(val2);
22752 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22753 if (!SWIG_IsOK(ecode3)) {
22754 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22755 }
22756 arg3 = static_cast< bool >(val3);
22757 {
22758 PyThreadState* __tstate = wxPyBeginAllowThreads();
22759 (arg1)->SetAxisOrientation(arg2,arg3);
22760 wxPyEndAllowThreads(__tstate);
22761 if (PyErr_Occurred()) SWIG_fail;
22762 }
22763 resultobj = SWIG_Py_Void();
22764 return resultobj;
22765 fail:
22766 return NULL;
22767 }
22768
22769
22770 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22771 PyObject *resultobj = 0;
22772 wxDC *arg1 = (wxDC *) 0 ;
22773 int result;
22774 void *argp1 = 0 ;
22775 int res1 = 0 ;
22776 PyObject *swig_obj[1] ;
22777
22778 if (!args) SWIG_fail;
22779 swig_obj[0] = args;
22780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22781 if (!SWIG_IsOK(res1)) {
22782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22783 }
22784 arg1 = reinterpret_cast< wxDC * >(argp1);
22785 {
22786 PyThreadState* __tstate = wxPyBeginAllowThreads();
22787 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22788 wxPyEndAllowThreads(__tstate);
22789 if (PyErr_Occurred()) SWIG_fail;
22790 }
22791 resultobj = SWIG_From_int(static_cast< int >(result));
22792 return resultobj;
22793 fail:
22794 return NULL;
22795 }
22796
22797
22798 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22799 PyObject *resultobj = 0;
22800 wxDC *arg1 = (wxDC *) 0 ;
22801 int arg2 ;
22802 void *argp1 = 0 ;
22803 int res1 = 0 ;
22804 int val2 ;
22805 int ecode2 = 0 ;
22806 PyObject * obj0 = 0 ;
22807 PyObject * obj1 = 0 ;
22808 char * kwnames[] = {
22809 (char *) "self",(char *) "function", NULL
22810 };
22811
22812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22814 if (!SWIG_IsOK(res1)) {
22815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22816 }
22817 arg1 = reinterpret_cast< wxDC * >(argp1);
22818 ecode2 = SWIG_AsVal_int(obj1, &val2);
22819 if (!SWIG_IsOK(ecode2)) {
22820 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22821 }
22822 arg2 = static_cast< int >(val2);
22823 {
22824 PyThreadState* __tstate = wxPyBeginAllowThreads();
22825 (arg1)->SetLogicalFunction(arg2);
22826 wxPyEndAllowThreads(__tstate);
22827 if (PyErr_Occurred()) SWIG_fail;
22828 }
22829 resultobj = SWIG_Py_Void();
22830 return resultobj;
22831 fail:
22832 return NULL;
22833 }
22834
22835
22836 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22837 PyObject *resultobj = 0;
22838 wxDC *arg1 = (wxDC *) 0 ;
22839 void *argp1 = 0 ;
22840 int res1 = 0 ;
22841 PyObject *swig_obj[1] ;
22842
22843 if (!args) SWIG_fail;
22844 swig_obj[0] = args;
22845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22846 if (!SWIG_IsOK(res1)) {
22847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22848 }
22849 arg1 = reinterpret_cast< wxDC * >(argp1);
22850 {
22851 PyThreadState* __tstate = wxPyBeginAllowThreads();
22852 (arg1)->ComputeScaleAndOrigin();
22853 wxPyEndAllowThreads(__tstate);
22854 if (PyErr_Occurred()) SWIG_fail;
22855 }
22856 resultobj = SWIG_Py_Void();
22857 return resultobj;
22858 fail:
22859 return NULL;
22860 }
22861
22862
22863 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22864 PyObject *resultobj = 0;
22865 wxDC *arg1 = (wxDC *) 0 ;
22866 int arg2 ;
22867 int arg3 ;
22868 void *argp1 = 0 ;
22869 int res1 = 0 ;
22870 int val2 ;
22871 int ecode2 = 0 ;
22872 int val3 ;
22873 int ecode3 = 0 ;
22874 PyObject * obj0 = 0 ;
22875 PyObject * obj1 = 0 ;
22876 PyObject * obj2 = 0 ;
22877 char * kwnames[] = {
22878 (char *) "self",(char *) "x",(char *) "y", NULL
22879 };
22880
22881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22883 if (!SWIG_IsOK(res1)) {
22884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22885 }
22886 arg1 = reinterpret_cast< wxDC * >(argp1);
22887 ecode2 = SWIG_AsVal_int(obj1, &val2);
22888 if (!SWIG_IsOK(ecode2)) {
22889 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22890 }
22891 arg2 = static_cast< int >(val2);
22892 ecode3 = SWIG_AsVal_int(obj2, &val3);
22893 if (!SWIG_IsOK(ecode3)) {
22894 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22895 }
22896 arg3 = static_cast< int >(val3);
22897 {
22898 PyThreadState* __tstate = wxPyBeginAllowThreads();
22899 (arg1)->CalcBoundingBox(arg2,arg3);
22900 wxPyEndAllowThreads(__tstate);
22901 if (PyErr_Occurred()) SWIG_fail;
22902 }
22903 resultobj = SWIG_Py_Void();
22904 return resultobj;
22905 fail:
22906 return NULL;
22907 }
22908
22909
22910 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22911 PyObject *resultobj = 0;
22912 wxDC *arg1 = (wxDC *) 0 ;
22913 wxPoint *arg2 = 0 ;
22914 void *argp1 = 0 ;
22915 int res1 = 0 ;
22916 wxPoint temp2 ;
22917 PyObject * obj0 = 0 ;
22918 PyObject * obj1 = 0 ;
22919 char * kwnames[] = {
22920 (char *) "self",(char *) "point", NULL
22921 };
22922
22923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22925 if (!SWIG_IsOK(res1)) {
22926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22927 }
22928 arg1 = reinterpret_cast< wxDC * >(argp1);
22929 {
22930 arg2 = &temp2;
22931 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22932 }
22933 {
22934 PyThreadState* __tstate = wxPyBeginAllowThreads();
22935 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22936 wxPyEndAllowThreads(__tstate);
22937 if (PyErr_Occurred()) SWIG_fail;
22938 }
22939 resultobj = SWIG_Py_Void();
22940 return resultobj;
22941 fail:
22942 return NULL;
22943 }
22944
22945
22946 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22947 PyObject *resultobj = 0;
22948 wxDC *arg1 = (wxDC *) 0 ;
22949 void *argp1 = 0 ;
22950 int res1 = 0 ;
22951 PyObject *swig_obj[1] ;
22952
22953 if (!args) SWIG_fail;
22954 swig_obj[0] = args;
22955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22956 if (!SWIG_IsOK(res1)) {
22957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22958 }
22959 arg1 = reinterpret_cast< wxDC * >(argp1);
22960 {
22961 PyThreadState* __tstate = wxPyBeginAllowThreads();
22962 (arg1)->ResetBoundingBox();
22963 wxPyEndAllowThreads(__tstate);
22964 if (PyErr_Occurred()) SWIG_fail;
22965 }
22966 resultobj = SWIG_Py_Void();
22967 return resultobj;
22968 fail:
22969 return NULL;
22970 }
22971
22972
22973 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22974 PyObject *resultobj = 0;
22975 wxDC *arg1 = (wxDC *) 0 ;
22976 int result;
22977 void *argp1 = 0 ;
22978 int res1 = 0 ;
22979 PyObject *swig_obj[1] ;
22980
22981 if (!args) SWIG_fail;
22982 swig_obj[0] = args;
22983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22984 if (!SWIG_IsOK(res1)) {
22985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
22986 }
22987 arg1 = reinterpret_cast< wxDC * >(argp1);
22988 {
22989 PyThreadState* __tstate = wxPyBeginAllowThreads();
22990 result = (int)((wxDC const *)arg1)->MinX();
22991 wxPyEndAllowThreads(__tstate);
22992 if (PyErr_Occurred()) SWIG_fail;
22993 }
22994 resultobj = SWIG_From_int(static_cast< int >(result));
22995 return resultobj;
22996 fail:
22997 return NULL;
22998 }
22999
23000
23001 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23002 PyObject *resultobj = 0;
23003 wxDC *arg1 = (wxDC *) 0 ;
23004 int result;
23005 void *argp1 = 0 ;
23006 int res1 = 0 ;
23007 PyObject *swig_obj[1] ;
23008
23009 if (!args) SWIG_fail;
23010 swig_obj[0] = args;
23011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23012 if (!SWIG_IsOK(res1)) {
23013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23014 }
23015 arg1 = reinterpret_cast< wxDC * >(argp1);
23016 {
23017 PyThreadState* __tstate = wxPyBeginAllowThreads();
23018 result = (int)((wxDC const *)arg1)->MaxX();
23019 wxPyEndAllowThreads(__tstate);
23020 if (PyErr_Occurred()) SWIG_fail;
23021 }
23022 resultobj = SWIG_From_int(static_cast< int >(result));
23023 return resultobj;
23024 fail:
23025 return NULL;
23026 }
23027
23028
23029 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23030 PyObject *resultobj = 0;
23031 wxDC *arg1 = (wxDC *) 0 ;
23032 int result;
23033 void *argp1 = 0 ;
23034 int res1 = 0 ;
23035 PyObject *swig_obj[1] ;
23036
23037 if (!args) SWIG_fail;
23038 swig_obj[0] = args;
23039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23040 if (!SWIG_IsOK(res1)) {
23041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23042 }
23043 arg1 = reinterpret_cast< wxDC * >(argp1);
23044 {
23045 PyThreadState* __tstate = wxPyBeginAllowThreads();
23046 result = (int)((wxDC const *)arg1)->MinY();
23047 wxPyEndAllowThreads(__tstate);
23048 if (PyErr_Occurred()) SWIG_fail;
23049 }
23050 resultobj = SWIG_From_int(static_cast< int >(result));
23051 return resultobj;
23052 fail:
23053 return NULL;
23054 }
23055
23056
23057 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23058 PyObject *resultobj = 0;
23059 wxDC *arg1 = (wxDC *) 0 ;
23060 int result;
23061 void *argp1 = 0 ;
23062 int res1 = 0 ;
23063 PyObject *swig_obj[1] ;
23064
23065 if (!args) SWIG_fail;
23066 swig_obj[0] = args;
23067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23068 if (!SWIG_IsOK(res1)) {
23069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23070 }
23071 arg1 = reinterpret_cast< wxDC * >(argp1);
23072 {
23073 PyThreadState* __tstate = wxPyBeginAllowThreads();
23074 result = (int)((wxDC const *)arg1)->MaxY();
23075 wxPyEndAllowThreads(__tstate);
23076 if (PyErr_Occurred()) SWIG_fail;
23077 }
23078 resultobj = SWIG_From_int(static_cast< int >(result));
23079 return resultobj;
23080 fail:
23081 return NULL;
23082 }
23083
23084
23085 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23086 PyObject *resultobj = 0;
23087 wxDC *arg1 = (wxDC *) 0 ;
23088 int *arg2 = (int *) 0 ;
23089 int *arg3 = (int *) 0 ;
23090 int *arg4 = (int *) 0 ;
23091 int *arg5 = (int *) 0 ;
23092 void *argp1 = 0 ;
23093 int res1 = 0 ;
23094 int temp2 ;
23095 int res2 = SWIG_TMPOBJ ;
23096 int temp3 ;
23097 int res3 = SWIG_TMPOBJ ;
23098 int temp4 ;
23099 int res4 = SWIG_TMPOBJ ;
23100 int temp5 ;
23101 int res5 = SWIG_TMPOBJ ;
23102 PyObject *swig_obj[1] ;
23103
23104 arg2 = &temp2;
23105 arg3 = &temp3;
23106 arg4 = &temp4;
23107 arg5 = &temp5;
23108 if (!args) SWIG_fail;
23109 swig_obj[0] = args;
23110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23111 if (!SWIG_IsOK(res1)) {
23112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23113 }
23114 arg1 = reinterpret_cast< wxDC * >(argp1);
23115 {
23116 PyThreadState* __tstate = wxPyBeginAllowThreads();
23117 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23118 wxPyEndAllowThreads(__tstate);
23119 if (PyErr_Occurred()) SWIG_fail;
23120 }
23121 resultobj = SWIG_Py_Void();
23122 if (SWIG_IsTmpObj(res2)) {
23123 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23124 } else {
23125 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23126 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23127 }
23128 if (SWIG_IsTmpObj(res3)) {
23129 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23130 } else {
23131 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23132 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23133 }
23134 if (SWIG_IsTmpObj(res4)) {
23135 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23136 } else {
23137 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23138 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23139 }
23140 if (SWIG_IsTmpObj(res5)) {
23141 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23142 } else {
23143 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23144 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23145 }
23146 return resultobj;
23147 fail:
23148 return NULL;
23149 }
23150
23151
23152 SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23153 PyObject *resultobj = 0;
23154 wxDC *arg1 = (wxDC *) 0 ;
23155 wxLayoutDirection result;
23156 void *argp1 = 0 ;
23157 int res1 = 0 ;
23158 PyObject *swig_obj[1] ;
23159
23160 if (!args) SWIG_fail;
23161 swig_obj[0] = args;
23162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23163 if (!SWIG_IsOK(res1)) {
23164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23165 }
23166 arg1 = reinterpret_cast< wxDC * >(argp1);
23167 {
23168 PyThreadState* __tstate = wxPyBeginAllowThreads();
23169 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23170 wxPyEndAllowThreads(__tstate);
23171 if (PyErr_Occurred()) SWIG_fail;
23172 }
23173 resultobj = SWIG_From_int(static_cast< int >(result));
23174 return resultobj;
23175 fail:
23176 return NULL;
23177 }
23178
23179
23180 SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23181 PyObject *resultobj = 0;
23182 wxDC *arg1 = (wxDC *) 0 ;
23183 wxLayoutDirection arg2 ;
23184 void *argp1 = 0 ;
23185 int res1 = 0 ;
23186 int val2 ;
23187 int ecode2 = 0 ;
23188 PyObject * obj0 = 0 ;
23189 PyObject * obj1 = 0 ;
23190 char * kwnames[] = {
23191 (char *) "self",(char *) "dir", NULL
23192 };
23193
23194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23196 if (!SWIG_IsOK(res1)) {
23197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23198 }
23199 arg1 = reinterpret_cast< wxDC * >(argp1);
23200 ecode2 = SWIG_AsVal_int(obj1, &val2);
23201 if (!SWIG_IsOK(ecode2)) {
23202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23203 }
23204 arg2 = static_cast< wxLayoutDirection >(val2);
23205 {
23206 PyThreadState* __tstate = wxPyBeginAllowThreads();
23207 (arg1)->SetLayoutDirection(arg2);
23208 wxPyEndAllowThreads(__tstate);
23209 if (PyErr_Occurred()) SWIG_fail;
23210 }
23211 resultobj = SWIG_Py_Void();
23212 return resultobj;
23213 fail:
23214 return NULL;
23215 }
23216
23217
23218 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23219 PyObject *resultobj = 0;
23220 wxDC *arg1 = (wxDC *) 0 ;
23221 PyObject *arg2 = (PyObject *) 0 ;
23222 PyObject *arg3 = (PyObject *) 0 ;
23223 PyObject *arg4 = (PyObject *) 0 ;
23224 PyObject *result = 0 ;
23225 void *argp1 = 0 ;
23226 int res1 = 0 ;
23227 PyObject * obj0 = 0 ;
23228 PyObject * obj1 = 0 ;
23229 PyObject * obj2 = 0 ;
23230 PyObject * obj3 = 0 ;
23231 char * kwnames[] = {
23232 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23233 };
23234
23235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23237 if (!SWIG_IsOK(res1)) {
23238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23239 }
23240 arg1 = reinterpret_cast< wxDC * >(argp1);
23241 arg2 = obj1;
23242 arg3 = obj2;
23243 arg4 = obj3;
23244 {
23245 PyThreadState* __tstate = wxPyBeginAllowThreads();
23246 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23247 wxPyEndAllowThreads(__tstate);
23248 if (PyErr_Occurred()) SWIG_fail;
23249 }
23250 resultobj = result;
23251 return resultobj;
23252 fail:
23253 return NULL;
23254 }
23255
23256
23257 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23258 PyObject *resultobj = 0;
23259 wxDC *arg1 = (wxDC *) 0 ;
23260 PyObject *arg2 = (PyObject *) 0 ;
23261 PyObject *arg3 = (PyObject *) 0 ;
23262 PyObject *arg4 = (PyObject *) 0 ;
23263 PyObject *result = 0 ;
23264 void *argp1 = 0 ;
23265 int res1 = 0 ;
23266 PyObject * obj0 = 0 ;
23267 PyObject * obj1 = 0 ;
23268 PyObject * obj2 = 0 ;
23269 PyObject * obj3 = 0 ;
23270 char * kwnames[] = {
23271 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23272 };
23273
23274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23276 if (!SWIG_IsOK(res1)) {
23277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23278 }
23279 arg1 = reinterpret_cast< wxDC * >(argp1);
23280 arg2 = obj1;
23281 arg3 = obj2;
23282 arg4 = obj3;
23283 {
23284 PyThreadState* __tstate = wxPyBeginAllowThreads();
23285 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23286 wxPyEndAllowThreads(__tstate);
23287 if (PyErr_Occurred()) SWIG_fail;
23288 }
23289 resultobj = result;
23290 return resultobj;
23291 fail:
23292 return NULL;
23293 }
23294
23295
23296 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23297 PyObject *resultobj = 0;
23298 wxDC *arg1 = (wxDC *) 0 ;
23299 PyObject *arg2 = (PyObject *) 0 ;
23300 PyObject *arg3 = (PyObject *) 0 ;
23301 PyObject *arg4 = (PyObject *) 0 ;
23302 PyObject *result = 0 ;
23303 void *argp1 = 0 ;
23304 int res1 = 0 ;
23305 PyObject * obj0 = 0 ;
23306 PyObject * obj1 = 0 ;
23307 PyObject * obj2 = 0 ;
23308 PyObject * obj3 = 0 ;
23309 char * kwnames[] = {
23310 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23311 };
23312
23313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23315 if (!SWIG_IsOK(res1)) {
23316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23317 }
23318 arg1 = reinterpret_cast< wxDC * >(argp1);
23319 arg2 = obj1;
23320 arg3 = obj2;
23321 arg4 = obj3;
23322 {
23323 PyThreadState* __tstate = wxPyBeginAllowThreads();
23324 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23325 wxPyEndAllowThreads(__tstate);
23326 if (PyErr_Occurred()) SWIG_fail;
23327 }
23328 resultobj = result;
23329 return resultobj;
23330 fail:
23331 return NULL;
23332 }
23333
23334
23335 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23336 PyObject *resultobj = 0;
23337 wxDC *arg1 = (wxDC *) 0 ;
23338 PyObject *arg2 = (PyObject *) 0 ;
23339 PyObject *arg3 = (PyObject *) 0 ;
23340 PyObject *arg4 = (PyObject *) 0 ;
23341 PyObject *result = 0 ;
23342 void *argp1 = 0 ;
23343 int res1 = 0 ;
23344 PyObject * obj0 = 0 ;
23345 PyObject * obj1 = 0 ;
23346 PyObject * obj2 = 0 ;
23347 PyObject * obj3 = 0 ;
23348 char * kwnames[] = {
23349 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23350 };
23351
23352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23354 if (!SWIG_IsOK(res1)) {
23355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23356 }
23357 arg1 = reinterpret_cast< wxDC * >(argp1);
23358 arg2 = obj1;
23359 arg3 = obj2;
23360 arg4 = obj3;
23361 {
23362 PyThreadState* __tstate = wxPyBeginAllowThreads();
23363 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23364 wxPyEndAllowThreads(__tstate);
23365 if (PyErr_Occurred()) SWIG_fail;
23366 }
23367 resultobj = result;
23368 return resultobj;
23369 fail:
23370 return NULL;
23371 }
23372
23373
23374 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23375 PyObject *resultobj = 0;
23376 wxDC *arg1 = (wxDC *) 0 ;
23377 PyObject *arg2 = (PyObject *) 0 ;
23378 PyObject *arg3 = (PyObject *) 0 ;
23379 PyObject *arg4 = (PyObject *) 0 ;
23380 PyObject *result = 0 ;
23381 void *argp1 = 0 ;
23382 int res1 = 0 ;
23383 PyObject * obj0 = 0 ;
23384 PyObject * obj1 = 0 ;
23385 PyObject * obj2 = 0 ;
23386 PyObject * obj3 = 0 ;
23387 char * kwnames[] = {
23388 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23389 };
23390
23391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23393 if (!SWIG_IsOK(res1)) {
23394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23395 }
23396 arg1 = reinterpret_cast< wxDC * >(argp1);
23397 arg2 = obj1;
23398 arg3 = obj2;
23399 arg4 = obj3;
23400 {
23401 PyThreadState* __tstate = wxPyBeginAllowThreads();
23402 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23403 wxPyEndAllowThreads(__tstate);
23404 if (PyErr_Occurred()) SWIG_fail;
23405 }
23406 resultobj = result;
23407 return resultobj;
23408 fail:
23409 return NULL;
23410 }
23411
23412
23413 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23414 PyObject *resultobj = 0;
23415 wxDC *arg1 = (wxDC *) 0 ;
23416 PyObject *arg2 = (PyObject *) 0 ;
23417 PyObject *arg3 = (PyObject *) 0 ;
23418 PyObject *arg4 = (PyObject *) 0 ;
23419 PyObject *arg5 = (PyObject *) 0 ;
23420 PyObject *result = 0 ;
23421 void *argp1 = 0 ;
23422 int res1 = 0 ;
23423 PyObject * obj0 = 0 ;
23424 PyObject * obj1 = 0 ;
23425 PyObject * obj2 = 0 ;
23426 PyObject * obj3 = 0 ;
23427 PyObject * obj4 = 0 ;
23428 char * kwnames[] = {
23429 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23430 };
23431
23432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23434 if (!SWIG_IsOK(res1)) {
23435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23436 }
23437 arg1 = reinterpret_cast< wxDC * >(argp1);
23438 arg2 = obj1;
23439 arg3 = obj2;
23440 arg4 = obj3;
23441 arg5 = obj4;
23442 {
23443 PyThreadState* __tstate = wxPyBeginAllowThreads();
23444 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23445 wxPyEndAllowThreads(__tstate);
23446 if (PyErr_Occurred()) SWIG_fail;
23447 }
23448 resultobj = result;
23449 return resultobj;
23450 fail:
23451 return NULL;
23452 }
23453
23454
23455 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23456 PyObject *obj;
23457 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23458 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23459 return SWIG_Py_Void();
23460 }
23461
23462 SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23463 PyObject *resultobj = 0;
23464 wxDC *arg1 = 0 ;
23465 wxColour *arg2 = 0 ;
23466 wxDCTextColourChanger *result = 0 ;
23467 void *argp1 = 0 ;
23468 int res1 = 0 ;
23469 wxColour temp2 ;
23470 PyObject * obj0 = 0 ;
23471 PyObject * obj1 = 0 ;
23472 char * kwnames[] = {
23473 (char *) "dc",(char *) "col", NULL
23474 };
23475
23476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23477 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23478 if (!SWIG_IsOK(res1)) {
23479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23480 }
23481 if (!argp1) {
23482 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23483 }
23484 arg1 = reinterpret_cast< wxDC * >(argp1);
23485 {
23486 arg2 = &temp2;
23487 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23488 }
23489 {
23490 PyThreadState* __tstate = wxPyBeginAllowThreads();
23491 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
23492 wxPyEndAllowThreads(__tstate);
23493 if (PyErr_Occurred()) SWIG_fail;
23494 }
23495 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
23496 return resultobj;
23497 fail:
23498 return NULL;
23499 }
23500
23501
23502 SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23503 PyObject *resultobj = 0;
23504 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
23505 void *argp1 = 0 ;
23506 int res1 = 0 ;
23507 PyObject *swig_obj[1] ;
23508
23509 if (!args) SWIG_fail;
23510 swig_obj[0] = args;
23511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
23512 if (!SWIG_IsOK(res1)) {
23513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
23514 }
23515 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
23516 {
23517 PyThreadState* __tstate = wxPyBeginAllowThreads();
23518 delete arg1;
23519
23520 wxPyEndAllowThreads(__tstate);
23521 if (PyErr_Occurred()) SWIG_fail;
23522 }
23523 resultobj = SWIG_Py_Void();
23524 return resultobj;
23525 fail:
23526 return NULL;
23527 }
23528
23529
23530 SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23531 PyObject *obj;
23532 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23533 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
23534 return SWIG_Py_Void();
23535 }
23536
23537 SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23538 return SWIG_Python_InitShadowInstance(args);
23539 }
23540
23541 SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23542 PyObject *resultobj = 0;
23543 wxDC *arg1 = 0 ;
23544 wxPen *arg2 = 0 ;
23545 wxDCPenChanger *result = 0 ;
23546 void *argp1 = 0 ;
23547 int res1 = 0 ;
23548 void *argp2 = 0 ;
23549 int res2 = 0 ;
23550 PyObject * obj0 = 0 ;
23551 PyObject * obj1 = 0 ;
23552 char * kwnames[] = {
23553 (char *) "dc",(char *) "pen", NULL
23554 };
23555
23556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23557 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23558 if (!SWIG_IsOK(res1)) {
23559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23560 }
23561 if (!argp1) {
23562 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23563 }
23564 arg1 = reinterpret_cast< wxDC * >(argp1);
23565 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
23566 if (!SWIG_IsOK(res2)) {
23567 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23568 }
23569 if (!argp2) {
23570 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23571 }
23572 arg2 = reinterpret_cast< wxPen * >(argp2);
23573 {
23574 PyThreadState* __tstate = wxPyBeginAllowThreads();
23575 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
23576 wxPyEndAllowThreads(__tstate);
23577 if (PyErr_Occurred()) SWIG_fail;
23578 }
23579 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
23580 return resultobj;
23581 fail:
23582 return NULL;
23583 }
23584
23585
23586 SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23587 PyObject *resultobj = 0;
23588 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
23589 void *argp1 = 0 ;
23590 int res1 = 0 ;
23591 PyObject *swig_obj[1] ;
23592
23593 if (!args) SWIG_fail;
23594 swig_obj[0] = args;
23595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
23596 if (!SWIG_IsOK(res1)) {
23597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
23598 }
23599 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
23600 {
23601 PyThreadState* __tstate = wxPyBeginAllowThreads();
23602 delete arg1;
23603
23604 wxPyEndAllowThreads(__tstate);
23605 if (PyErr_Occurred()) SWIG_fail;
23606 }
23607 resultobj = SWIG_Py_Void();
23608 return resultobj;
23609 fail:
23610 return NULL;
23611 }
23612
23613
23614 SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23615 PyObject *obj;
23616 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23617 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
23618 return SWIG_Py_Void();
23619 }
23620
23621 SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23622 return SWIG_Python_InitShadowInstance(args);
23623 }
23624
23625 SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23626 PyObject *resultobj = 0;
23627 wxDC *arg1 = 0 ;
23628 wxBrush *arg2 = 0 ;
23629 wxDCBrushChanger *result = 0 ;
23630 void *argp1 = 0 ;
23631 int res1 = 0 ;
23632 void *argp2 = 0 ;
23633 int res2 = 0 ;
23634 PyObject * obj0 = 0 ;
23635 PyObject * obj1 = 0 ;
23636 char * kwnames[] = {
23637 (char *) "dc",(char *) "brush", NULL
23638 };
23639
23640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23641 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23642 if (!SWIG_IsOK(res1)) {
23643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23644 }
23645 if (!argp1) {
23646 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23647 }
23648 arg1 = reinterpret_cast< wxDC * >(argp1);
23649 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
23650 if (!SWIG_IsOK(res2)) {
23651 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23652 }
23653 if (!argp2) {
23654 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23655 }
23656 arg2 = reinterpret_cast< wxBrush * >(argp2);
23657 {
23658 PyThreadState* __tstate = wxPyBeginAllowThreads();
23659 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
23660 wxPyEndAllowThreads(__tstate);
23661 if (PyErr_Occurred()) SWIG_fail;
23662 }
23663 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
23664 return resultobj;
23665 fail:
23666 return NULL;
23667 }
23668
23669
23670 SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23671 PyObject *resultobj = 0;
23672 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
23673 void *argp1 = 0 ;
23674 int res1 = 0 ;
23675 PyObject *swig_obj[1] ;
23676
23677 if (!args) SWIG_fail;
23678 swig_obj[0] = args;
23679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
23680 if (!SWIG_IsOK(res1)) {
23681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
23682 }
23683 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
23684 {
23685 PyThreadState* __tstate = wxPyBeginAllowThreads();
23686 delete arg1;
23687
23688 wxPyEndAllowThreads(__tstate);
23689 if (PyErr_Occurred()) SWIG_fail;
23690 }
23691 resultobj = SWIG_Py_Void();
23692 return resultobj;
23693 fail:
23694 return NULL;
23695 }
23696
23697
23698 SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23699 PyObject *obj;
23700 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23701 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
23702 return SWIG_Py_Void();
23703 }
23704
23705 SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23706 return SWIG_Python_InitShadowInstance(args);
23707 }
23708
23709 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23710 PyObject *resultobj = 0;
23711 wxDC *arg1 = 0 ;
23712 wxRegion *arg2 = 0 ;
23713 wxDCClipper *result = 0 ;
23714 void *argp1 = 0 ;
23715 int res1 = 0 ;
23716 void *argp2 = 0 ;
23717 int res2 = 0 ;
23718
23719 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23721 if (!SWIG_IsOK(res1)) {
23722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23723 }
23724 if (!argp1) {
23725 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23726 }
23727 arg1 = reinterpret_cast< wxDC * >(argp1);
23728 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
23729 if (!SWIG_IsOK(res2)) {
23730 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23731 }
23732 if (!argp2) {
23733 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23734 }
23735 arg2 = reinterpret_cast< wxRegion * >(argp2);
23736 {
23737 PyThreadState* __tstate = wxPyBeginAllowThreads();
23738 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
23739 wxPyEndAllowThreads(__tstate);
23740 if (PyErr_Occurred()) SWIG_fail;
23741 }
23742 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23743 return resultobj;
23744 fail:
23745 return NULL;
23746 }
23747
23748
23749 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23750 PyObject *resultobj = 0;
23751 wxDC *arg1 = 0 ;
23752 wxRect *arg2 = 0 ;
23753 wxDCClipper *result = 0 ;
23754 void *argp1 = 0 ;
23755 int res1 = 0 ;
23756 wxRect temp2 ;
23757
23758 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23760 if (!SWIG_IsOK(res1)) {
23761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23762 }
23763 if (!argp1) {
23764 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23765 }
23766 arg1 = reinterpret_cast< wxDC * >(argp1);
23767 {
23768 arg2 = &temp2;
23769 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
23770 }
23771 {
23772 PyThreadState* __tstate = wxPyBeginAllowThreads();
23773 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
23774 wxPyEndAllowThreads(__tstate);
23775 if (PyErr_Occurred()) SWIG_fail;
23776 }
23777 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23778 return resultobj;
23779 fail:
23780 return NULL;
23781 }
23782
23783
23784 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23785 PyObject *resultobj = 0;
23786 wxDC *arg1 = 0 ;
23787 int arg2 ;
23788 int arg3 ;
23789 int arg4 ;
23790 int arg5 ;
23791 wxDCClipper *result = 0 ;
23792 void *argp1 = 0 ;
23793 int res1 = 0 ;
23794 int val2 ;
23795 int ecode2 = 0 ;
23796 int val3 ;
23797 int ecode3 = 0 ;
23798 int val4 ;
23799 int ecode4 = 0 ;
23800 int val5 ;
23801 int ecode5 = 0 ;
23802
23803 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
23804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23805 if (!SWIG_IsOK(res1)) {
23806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23807 }
23808 if (!argp1) {
23809 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23810 }
23811 arg1 = reinterpret_cast< wxDC * >(argp1);
23812 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
23813 if (!SWIG_IsOK(ecode2)) {
23814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
23815 }
23816 arg2 = static_cast< int >(val2);
23817 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23818 if (!SWIG_IsOK(ecode3)) {
23819 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
23820 }
23821 arg3 = static_cast< int >(val3);
23822 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
23823 if (!SWIG_IsOK(ecode4)) {
23824 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
23825 }
23826 arg4 = static_cast< int >(val4);
23827 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
23828 if (!SWIG_IsOK(ecode5)) {
23829 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
23830 }
23831 arg5 = static_cast< int >(val5);
23832 {
23833 PyThreadState* __tstate = wxPyBeginAllowThreads();
23834 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
23835 wxPyEndAllowThreads(__tstate);
23836 if (PyErr_Occurred()) SWIG_fail;
23837 }
23838 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23839 return resultobj;
23840 fail:
23841 return NULL;
23842 }
23843
23844
23845 SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
23846 int argc;
23847 PyObject *argv[6];
23848
23849 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
23850 --argc;
23851 if (argc == 2) {
23852 int _v = 0;
23853 {
23854 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
23855 _v = SWIG_CheckState(res);
23856 }
23857 if (!_v) goto check_1;
23858 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
23859 }
23860 check_1:
23861
23862 if (argc == 2) {
23863 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
23864 }
23865 if (argc == 5) {
23866 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
23867 }
23868
23869 fail:
23870 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
23871 return NULL;
23872 }
23873
23874
23875 SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23876 PyObject *resultobj = 0;
23877 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
23878 void *argp1 = 0 ;
23879 int res1 = 0 ;
23880 PyObject *swig_obj[1] ;
23881
23882 if (!args) SWIG_fail;
23883 swig_obj[0] = args;
23884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
23885 if (!SWIG_IsOK(res1)) {
23886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
23887 }
23888 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
23889 {
23890 PyThreadState* __tstate = wxPyBeginAllowThreads();
23891 delete arg1;
23892
23893 wxPyEndAllowThreads(__tstate);
23894 if (PyErr_Occurred()) SWIG_fail;
23895 }
23896 resultobj = SWIG_Py_Void();
23897 return resultobj;
23898 fail:
23899 return NULL;
23900 }
23901
23902
23903 SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23904 PyObject *obj;
23905 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23906 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
23907 return SWIG_Py_Void();
23908 }
23909
23910 SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23911 return SWIG_Python_InitShadowInstance(args);
23912 }
23913
23914 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23915 PyObject *resultobj = 0;
23916 wxScreenDC *result = 0 ;
23917
23918 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23919 {
23920 if (!wxPyCheckForApp()) SWIG_fail;
23921 PyThreadState* __tstate = wxPyBeginAllowThreads();
23922 result = (wxScreenDC *)new wxScreenDC();
23923 wxPyEndAllowThreads(__tstate);
23924 if (PyErr_Occurred()) SWIG_fail;
23925 }
23926 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23927 return resultobj;
23928 fail:
23929 return NULL;
23930 }
23931
23932
23933 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23934 PyObject *resultobj = 0;
23935 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23936 wxWindow *arg2 = (wxWindow *) 0 ;
23937 bool result;
23938 void *argp1 = 0 ;
23939 int res1 = 0 ;
23940 void *argp2 = 0 ;
23941 int res2 = 0 ;
23942 PyObject * obj0 = 0 ;
23943 PyObject * obj1 = 0 ;
23944 char * kwnames[] = {
23945 (char *) "self",(char *) "window", NULL
23946 };
23947
23948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23950 if (!SWIG_IsOK(res1)) {
23951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23952 }
23953 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23954 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23955 if (!SWIG_IsOK(res2)) {
23956 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23957 }
23958 arg2 = reinterpret_cast< wxWindow * >(argp2);
23959 {
23960 PyThreadState* __tstate = wxPyBeginAllowThreads();
23961 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23962 wxPyEndAllowThreads(__tstate);
23963 if (PyErr_Occurred()) SWIG_fail;
23964 }
23965 {
23966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23967 }
23968 return resultobj;
23969 fail:
23970 return NULL;
23971 }
23972
23973
23974 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23975 PyObject *resultobj = 0;
23976 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23977 wxRect *arg2 = (wxRect *) NULL ;
23978 bool result;
23979 void *argp1 = 0 ;
23980 int res1 = 0 ;
23981 void *argp2 = 0 ;
23982 int res2 = 0 ;
23983 PyObject * obj0 = 0 ;
23984 PyObject * obj1 = 0 ;
23985 char * kwnames[] = {
23986 (char *) "self",(char *) "rect", NULL
23987 };
23988
23989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
23990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23991 if (!SWIG_IsOK(res1)) {
23992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23993 }
23994 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23995 if (obj1) {
23996 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
23997 if (!SWIG_IsOK(res2)) {
23998 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
23999 }
24000 arg2 = reinterpret_cast< wxRect * >(argp2);
24001 }
24002 {
24003 PyThreadState* __tstate = wxPyBeginAllowThreads();
24004 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24005 wxPyEndAllowThreads(__tstate);
24006 if (PyErr_Occurred()) SWIG_fail;
24007 }
24008 {
24009 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24010 }
24011 return resultobj;
24012 fail:
24013 return NULL;
24014 }
24015
24016
24017 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24018 PyObject *resultobj = 0;
24019 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24020 bool result;
24021 void *argp1 = 0 ;
24022 int res1 = 0 ;
24023 PyObject *swig_obj[1] ;
24024
24025 if (!args) SWIG_fail;
24026 swig_obj[0] = args;
24027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24028 if (!SWIG_IsOK(res1)) {
24029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24030 }
24031 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24032 {
24033 PyThreadState* __tstate = wxPyBeginAllowThreads();
24034 result = (bool)(arg1)->EndDrawingOnTop();
24035 wxPyEndAllowThreads(__tstate);
24036 if (PyErr_Occurred()) SWIG_fail;
24037 }
24038 {
24039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24040 }
24041 return resultobj;
24042 fail:
24043 return NULL;
24044 }
24045
24046
24047 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24048 PyObject *obj;
24049 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24050 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24051 return SWIG_Py_Void();
24052 }
24053
24054 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24055 return SWIG_Python_InitShadowInstance(args);
24056 }
24057
24058 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24059 PyObject *resultobj = 0;
24060 wxWindow *arg1 = (wxWindow *) 0 ;
24061 wxWindowDC *result = 0 ;
24062 void *argp1 = 0 ;
24063 int res1 = 0 ;
24064 PyObject * obj0 = 0 ;
24065 char * kwnames[] = {
24066 (char *) "win", NULL
24067 };
24068
24069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24071 if (!SWIG_IsOK(res1)) {
24072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24073 }
24074 arg1 = reinterpret_cast< wxWindow * >(argp1);
24075 {
24076 if (!wxPyCheckForApp()) SWIG_fail;
24077 PyThreadState* __tstate = wxPyBeginAllowThreads();
24078 result = (wxWindowDC *)new wxWindowDC(arg1);
24079 wxPyEndAllowThreads(__tstate);
24080 if (PyErr_Occurred()) SWIG_fail;
24081 }
24082 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24083 return resultobj;
24084 fail:
24085 return NULL;
24086 }
24087
24088
24089 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24090 PyObject *obj;
24091 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24092 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24093 return SWIG_Py_Void();
24094 }
24095
24096 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24097 return SWIG_Python_InitShadowInstance(args);
24098 }
24099
24100 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24101 PyObject *resultobj = 0;
24102 wxWindow *arg1 = (wxWindow *) 0 ;
24103 wxClientDC *result = 0 ;
24104 void *argp1 = 0 ;
24105 int res1 = 0 ;
24106 PyObject * obj0 = 0 ;
24107 char * kwnames[] = {
24108 (char *) "win", NULL
24109 };
24110
24111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24113 if (!SWIG_IsOK(res1)) {
24114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24115 }
24116 arg1 = reinterpret_cast< wxWindow * >(argp1);
24117 {
24118 if (!wxPyCheckForApp()) SWIG_fail;
24119 PyThreadState* __tstate = wxPyBeginAllowThreads();
24120 result = (wxClientDC *)new wxClientDC(arg1);
24121 wxPyEndAllowThreads(__tstate);
24122 if (PyErr_Occurred()) SWIG_fail;
24123 }
24124 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24125 return resultobj;
24126 fail:
24127 return NULL;
24128 }
24129
24130
24131 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24132 PyObject *obj;
24133 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24134 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24135 return SWIG_Py_Void();
24136 }
24137
24138 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24139 return SWIG_Python_InitShadowInstance(args);
24140 }
24141
24142 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24143 PyObject *resultobj = 0;
24144 wxWindow *arg1 = (wxWindow *) 0 ;
24145 wxPaintDC *result = 0 ;
24146 void *argp1 = 0 ;
24147 int res1 = 0 ;
24148 PyObject * obj0 = 0 ;
24149 char * kwnames[] = {
24150 (char *) "win", NULL
24151 };
24152
24153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24155 if (!SWIG_IsOK(res1)) {
24156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24157 }
24158 arg1 = reinterpret_cast< wxWindow * >(argp1);
24159 {
24160 if (!wxPyCheckForApp()) SWIG_fail;
24161 PyThreadState* __tstate = wxPyBeginAllowThreads();
24162 result = (wxPaintDC *)new wxPaintDC(arg1);
24163 wxPyEndAllowThreads(__tstate);
24164 if (PyErr_Occurred()) SWIG_fail;
24165 }
24166 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24167 return resultobj;
24168 fail:
24169 return NULL;
24170 }
24171
24172
24173 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24174 PyObject *obj;
24175 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24176 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24177 return SWIG_Py_Void();
24178 }
24179
24180 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24181 return SWIG_Python_InitShadowInstance(args);
24182 }
24183
24184 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24185 PyObject *resultobj = 0;
24186 wxBitmap &arg1_defvalue = wxNullBitmap ;
24187 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24188 wxMemoryDC *result = 0 ;
24189 void *argp1 = 0 ;
24190 int res1 = 0 ;
24191 PyObject * obj0 = 0 ;
24192 char * kwnames[] = {
24193 (char *) "bitmap", NULL
24194 };
24195
24196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
24197 if (obj0) {
24198 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
24199 if (!SWIG_IsOK(res1)) {
24200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24201 }
24202 if (!argp1) {
24203 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24204 }
24205 arg1 = reinterpret_cast< wxBitmap * >(argp1);
24206 }
24207 {
24208 if (!wxPyCheckForApp()) SWIG_fail;
24209 PyThreadState* __tstate = wxPyBeginAllowThreads();
24210 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
24211 wxPyEndAllowThreads(__tstate);
24212 if (PyErr_Occurred()) SWIG_fail;
24213 }
24214 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
24215 return resultobj;
24216 fail:
24217 return NULL;
24218 }
24219
24220
24221 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24222 PyObject *resultobj = 0;
24223 wxDC *arg1 = (wxDC *) 0 ;
24224 wxMemoryDC *result = 0 ;
24225 void *argp1 = 0 ;
24226 int res1 = 0 ;
24227 PyObject * obj0 = 0 ;
24228 char * kwnames[] = {
24229 (char *) "oldDC", NULL
24230 };
24231
24232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
24233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24234 if (!SWIG_IsOK(res1)) {
24235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
24236 }
24237 arg1 = reinterpret_cast< wxDC * >(argp1);
24238 {
24239 if (!wxPyCheckForApp()) SWIG_fail;
24240 PyThreadState* __tstate = wxPyBeginAllowThreads();
24241 result = (wxMemoryDC *)new wxMemoryDC(arg1);
24242 wxPyEndAllowThreads(__tstate);
24243 if (PyErr_Occurred()) SWIG_fail;
24244 }
24245 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
24246 return resultobj;
24247 fail:
24248 return NULL;
24249 }
24250
24251
24252 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24253 PyObject *resultobj = 0;
24254 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24255 wxBitmap *arg2 = 0 ;
24256 void *argp1 = 0 ;
24257 int res1 = 0 ;
24258 void *argp2 = 0 ;
24259 int res2 = 0 ;
24260 PyObject * obj0 = 0 ;
24261 PyObject * obj1 = 0 ;
24262 char * kwnames[] = {
24263 (char *) "self",(char *) "bitmap", NULL
24264 };
24265
24266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
24267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24268 if (!SWIG_IsOK(res1)) {
24269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24270 }
24271 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24272 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24273 if (!SWIG_IsOK(res2)) {
24274 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24275 }
24276 if (!argp2) {
24277 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24278 }
24279 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24280 {
24281 PyThreadState* __tstate = wxPyBeginAllowThreads();
24282 (arg1)->SelectObject(*arg2);
24283 wxPyEndAllowThreads(__tstate);
24284 if (PyErr_Occurred()) SWIG_fail;
24285 }
24286 resultobj = SWIG_Py_Void();
24287 return resultobj;
24288 fail:
24289 return NULL;
24290 }
24291
24292
24293 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24294 PyObject *resultobj = 0;
24295 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24296 wxBitmap *arg2 = 0 ;
24297 void *argp1 = 0 ;
24298 int res1 = 0 ;
24299 void *argp2 = 0 ;
24300 int res2 = 0 ;
24301 PyObject * obj0 = 0 ;
24302 PyObject * obj1 = 0 ;
24303 char * kwnames[] = {
24304 (char *) "self",(char *) "bmp", NULL
24305 };
24306
24307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
24308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24309 if (!SWIG_IsOK(res1)) {
24310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24311 }
24312 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24313 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24314 if (!SWIG_IsOK(res2)) {
24315 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24316 }
24317 if (!argp2) {
24318 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24319 }
24320 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24321 {
24322 PyThreadState* __tstate = wxPyBeginAllowThreads();
24323 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
24324 wxPyEndAllowThreads(__tstate);
24325 if (PyErr_Occurred()) SWIG_fail;
24326 }
24327 resultobj = SWIG_Py_Void();
24328 return resultobj;
24329 fail:
24330 return NULL;
24331 }
24332
24333
24334 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24335 PyObject *obj;
24336 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24337 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
24338 return SWIG_Py_Void();
24339 }
24340
24341 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24342 return SWIG_Python_InitShadowInstance(args);
24343 }
24344
24345 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24346 PyObject *resultobj = 0;
24347 wxDC *arg1 = (wxDC *) 0 ;
24348 wxBitmap &arg2_defvalue = wxNullBitmap ;
24349 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24350 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24351 wxBufferedDC *result = 0 ;
24352 void *argp1 = 0 ;
24353 int res1 = 0 ;
24354 void *argp2 = 0 ;
24355 int res2 = 0 ;
24356 int val3 ;
24357 int ecode3 = 0 ;
24358
24359 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24361 if (!SWIG_IsOK(res1)) {
24362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24363 }
24364 arg1 = reinterpret_cast< wxDC * >(argp1);
24365 if (swig_obj[1]) {
24366 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 );
24367 if (!SWIG_IsOK(res2)) {
24368 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24369 }
24370 if (!argp2) {
24371 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24372 }
24373 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24374 }
24375 if (swig_obj[2]) {
24376 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24377 if (!SWIG_IsOK(ecode3)) {
24378 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24379 }
24380 arg3 = static_cast< int >(val3);
24381 }
24382 {
24383 if (!wxPyCheckForApp()) SWIG_fail;
24384 PyThreadState* __tstate = wxPyBeginAllowThreads();
24385 result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3);
24386 wxPyEndAllowThreads(__tstate);
24387 if (PyErr_Occurred()) SWIG_fail;
24388 }
24389 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24390 return resultobj;
24391 fail:
24392 return NULL;
24393 }
24394
24395
24396 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24397 PyObject *resultobj = 0;
24398 wxDC *arg1 = (wxDC *) 0 ;
24399 wxSize *arg2 = 0 ;
24400 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24401 wxBufferedDC *result = 0 ;
24402 void *argp1 = 0 ;
24403 int res1 = 0 ;
24404 wxSize temp2 ;
24405 int val3 ;
24406 int ecode3 = 0 ;
24407
24408 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24410 if (!SWIG_IsOK(res1)) {
24411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24412 }
24413 arg1 = reinterpret_cast< wxDC * >(argp1);
24414 {
24415 arg2 = &temp2;
24416 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24417 }
24418 if (swig_obj[2]) {
24419 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24420 if (!SWIG_IsOK(ecode3)) {
24421 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24422 }
24423 arg3 = static_cast< int >(val3);
24424 }
24425 {
24426 if (!wxPyCheckForApp()) SWIG_fail;
24427 PyThreadState* __tstate = wxPyBeginAllowThreads();
24428 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24429 wxPyEndAllowThreads(__tstate);
24430 if (PyErr_Occurred()) SWIG_fail;
24431 }
24432 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24433 return resultobj;
24434 fail:
24435 return NULL;
24436 }
24437
24438
24439 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24440 int argc;
24441 PyObject *argv[4];
24442
24443 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
24444 --argc;
24445 if ((argc >= 1) && (argc <= 3)) {
24446 int _v = 0;
24447 if (argc > 1) {
24448 {
24449 void *vptr = 0;
24450 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0);
24451 _v = SWIG_CheckState(res);
24452 }
24453 if (!_v) goto check_1;
24454 }
24455 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24456 }
24457 check_1:
24458
24459 if ((argc >= 2) && (argc <= 3)) {
24460 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24461 }
24462
24463 fail:
24464 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24465 return NULL;
24466 }
24467
24468
24469 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24470 PyObject *resultobj = 0;
24471 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24472 void *argp1 = 0 ;
24473 int res1 = 0 ;
24474 PyObject *swig_obj[1] ;
24475
24476 if (!args) SWIG_fail;
24477 swig_obj[0] = args;
24478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24479 if (!SWIG_IsOK(res1)) {
24480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24481 }
24482 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24483 {
24484 PyThreadState* __tstate = wxPyBeginAllowThreads();
24485 delete arg1;
24486
24487 wxPyEndAllowThreads(__tstate);
24488 if (PyErr_Occurred()) SWIG_fail;
24489 }
24490 resultobj = SWIG_Py_Void();
24491 return resultobj;
24492 fail:
24493 return NULL;
24494 }
24495
24496
24497 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24498 PyObject *resultobj = 0;
24499 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24500 void *argp1 = 0 ;
24501 int res1 = 0 ;
24502 PyObject *swig_obj[1] ;
24503
24504 if (!args) SWIG_fail;
24505 swig_obj[0] = args;
24506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24507 if (!SWIG_IsOK(res1)) {
24508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24509 }
24510 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24511 {
24512 PyThreadState* __tstate = wxPyBeginAllowThreads();
24513 (arg1)->UnMask();
24514 wxPyEndAllowThreads(__tstate);
24515 if (PyErr_Occurred()) SWIG_fail;
24516 }
24517 resultobj = SWIG_Py_Void();
24518 return resultobj;
24519 fail:
24520 return NULL;
24521 }
24522
24523
24524 SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24525 PyObject *resultobj = 0;
24526 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24527 int arg2 ;
24528 void *argp1 = 0 ;
24529 int res1 = 0 ;
24530 int val2 ;
24531 int ecode2 = 0 ;
24532 PyObject * obj0 = 0 ;
24533 PyObject * obj1 = 0 ;
24534 char * kwnames[] = {
24535 (char *) "self",(char *) "style", NULL
24536 };
24537
24538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
24539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24540 if (!SWIG_IsOK(res1)) {
24541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24542 }
24543 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24544 ecode2 = SWIG_AsVal_int(obj1, &val2);
24545 if (!SWIG_IsOK(ecode2)) {
24546 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'");
24547 }
24548 arg2 = static_cast< int >(val2);
24549 {
24550 PyThreadState* __tstate = wxPyBeginAllowThreads();
24551 (arg1)->SetStyle(arg2);
24552 wxPyEndAllowThreads(__tstate);
24553 if (PyErr_Occurred()) SWIG_fail;
24554 }
24555 resultobj = SWIG_Py_Void();
24556 return resultobj;
24557 fail:
24558 return NULL;
24559 }
24560
24561
24562 SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24563 PyObject *resultobj = 0;
24564 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24565 int result;
24566 void *argp1 = 0 ;
24567 int res1 = 0 ;
24568 PyObject *swig_obj[1] ;
24569
24570 if (!args) SWIG_fail;
24571 swig_obj[0] = args;
24572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24573 if (!SWIG_IsOK(res1)) {
24574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'");
24575 }
24576 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24577 {
24578 PyThreadState* __tstate = wxPyBeginAllowThreads();
24579 result = (int)((wxBufferedDC const *)arg1)->GetStyle();
24580 wxPyEndAllowThreads(__tstate);
24581 if (PyErr_Occurred()) SWIG_fail;
24582 }
24583 resultobj = SWIG_From_int(static_cast< int >(result));
24584 return resultobj;
24585 fail:
24586 return NULL;
24587 }
24588
24589
24590 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24591 PyObject *obj;
24592 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24593 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
24594 return SWIG_Py_Void();
24595 }
24596
24597 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24598 return SWIG_Python_InitShadowInstance(args);
24599 }
24600
24601 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24602 PyObject *resultobj = 0;
24603 wxWindow *arg1 = (wxWindow *) 0 ;
24604 wxBitmap &arg2_defvalue = wxNullBitmap ;
24605 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24606 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24607 wxBufferedPaintDC *result = 0 ;
24608 void *argp1 = 0 ;
24609 int res1 = 0 ;
24610 void *argp2 = 0 ;
24611 int res2 = 0 ;
24612 int val3 ;
24613 int ecode3 = 0 ;
24614 PyObject * obj0 = 0 ;
24615 PyObject * obj1 = 0 ;
24616 PyObject * obj2 = 0 ;
24617 char * kwnames[] = {
24618 (char *) "window",(char *) "buffer",(char *) "style", NULL
24619 };
24620
24621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24623 if (!SWIG_IsOK(res1)) {
24624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24625 }
24626 arg1 = reinterpret_cast< wxWindow * >(argp1);
24627 if (obj1) {
24628 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24629 if (!SWIG_IsOK(res2)) {
24630 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24631 }
24632 if (!argp2) {
24633 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24634 }
24635 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24636 }
24637 if (obj2) {
24638 ecode3 = SWIG_AsVal_int(obj2, &val3);
24639 if (!SWIG_IsOK(ecode3)) {
24640 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
24641 }
24642 arg3 = static_cast< int >(val3);
24643 }
24644 {
24645 if (!wxPyCheckForApp()) SWIG_fail;
24646 PyThreadState* __tstate = wxPyBeginAllowThreads();
24647 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3);
24648 wxPyEndAllowThreads(__tstate);
24649 if (PyErr_Occurred()) SWIG_fail;
24650 }
24651 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24652 return resultobj;
24653 fail:
24654 return NULL;
24655 }
24656
24657
24658 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24659 PyObject *obj;
24660 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24661 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
24662 return SWIG_Py_Void();
24663 }
24664
24665 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24666 return SWIG_Python_InitShadowInstance(args);
24667 }
24668
24669 SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24670 PyObject *resultobj = 0;
24671 wxWindow *arg1 = (wxWindow *) 0 ;
24672 wxAutoBufferedPaintDC *result = 0 ;
24673 void *argp1 = 0 ;
24674 int res1 = 0 ;
24675 PyObject * obj0 = 0 ;
24676 char * kwnames[] = {
24677 (char *) "win", NULL
24678 };
24679
24680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
24681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24682 if (!SWIG_IsOK(res1)) {
24683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24684 }
24685 arg1 = reinterpret_cast< wxWindow * >(argp1);
24686 {
24687 PyThreadState* __tstate = wxPyBeginAllowThreads();
24688 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
24689 wxPyEndAllowThreads(__tstate);
24690 if (PyErr_Occurred()) SWIG_fail;
24691 }
24692 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24693 return resultobj;
24694 fail:
24695 return NULL;
24696 }
24697
24698
24699 SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24700 PyObject *obj;
24701 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24702 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
24703 return SWIG_Py_Void();
24704 }
24705
24706 SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24707 return SWIG_Python_InitShadowInstance(args);
24708 }
24709
24710 SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24711 PyObject *resultobj = 0;
24712 wxWindow *arg1 = (wxWindow *) 0 ;
24713 wxDC *result = 0 ;
24714 void *argp1 = 0 ;
24715 int res1 = 0 ;
24716 PyObject * obj0 = 0 ;
24717 char * kwnames[] = {
24718 (char *) "window", NULL
24719 };
24720
24721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
24722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24723 if (!SWIG_IsOK(res1)) {
24724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
24725 }
24726 arg1 = reinterpret_cast< wxWindow * >(argp1);
24727 {
24728 PyThreadState* __tstate = wxPyBeginAllowThreads();
24729 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
24730 wxPyEndAllowThreads(__tstate);
24731 if (PyErr_Occurred()) SWIG_fail;
24732 }
24733 {
24734 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
24735 }
24736 return resultobj;
24737 fail:
24738 return NULL;
24739 }
24740
24741
24742 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24743 PyObject *resultobj = 0;
24744 wxDC *arg1 = 0 ;
24745 bool arg2 ;
24746 wxMirrorDC *result = 0 ;
24747 void *argp1 = 0 ;
24748 int res1 = 0 ;
24749 bool val2 ;
24750 int ecode2 = 0 ;
24751 PyObject * obj0 = 0 ;
24752 PyObject * obj1 = 0 ;
24753 char * kwnames[] = {
24754 (char *) "dc",(char *) "mirror", NULL
24755 };
24756
24757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24758 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24759 if (!SWIG_IsOK(res1)) {
24760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24761 }
24762 if (!argp1) {
24763 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24764 }
24765 arg1 = reinterpret_cast< wxDC * >(argp1);
24766 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24767 if (!SWIG_IsOK(ecode2)) {
24768 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24769 }
24770 arg2 = static_cast< bool >(val2);
24771 {
24772 if (!wxPyCheckForApp()) SWIG_fail;
24773 PyThreadState* __tstate = wxPyBeginAllowThreads();
24774 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24775 wxPyEndAllowThreads(__tstate);
24776 if (PyErr_Occurred()) SWIG_fail;
24777 }
24778 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24779 return resultobj;
24780 fail:
24781 return NULL;
24782 }
24783
24784
24785 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24786 PyObject *obj;
24787 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24788 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
24789 return SWIG_Py_Void();
24790 }
24791
24792 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24793 return SWIG_Python_InitShadowInstance(args);
24794 }
24795
24796 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24797 PyObject *resultobj = 0;
24798 wxPrintData *arg1 = 0 ;
24799 wxPostScriptDC *result = 0 ;
24800 void *argp1 = 0 ;
24801 int res1 = 0 ;
24802 PyObject * obj0 = 0 ;
24803 char * kwnames[] = {
24804 (char *) "printData", NULL
24805 };
24806
24807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24808 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24809 if (!SWIG_IsOK(res1)) {
24810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24811 }
24812 if (!argp1) {
24813 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24814 }
24815 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24816 {
24817 if (!wxPyCheckForApp()) SWIG_fail;
24818 PyThreadState* __tstate = wxPyBeginAllowThreads();
24819 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24820 wxPyEndAllowThreads(__tstate);
24821 if (PyErr_Occurred()) SWIG_fail;
24822 }
24823 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24824 return resultobj;
24825 fail:
24826 return NULL;
24827 }
24828
24829
24830 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24831 PyObject *resultobj = 0;
24832 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24833 wxPrintData *result = 0 ;
24834 void *argp1 = 0 ;
24835 int res1 = 0 ;
24836 PyObject *swig_obj[1] ;
24837
24838 if (!args) SWIG_fail;
24839 swig_obj[0] = args;
24840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24841 if (!SWIG_IsOK(res1)) {
24842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24843 }
24844 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24845 {
24846 PyThreadState* __tstate = wxPyBeginAllowThreads();
24847 {
24848 wxPrintData &_result_ref = (arg1)->GetPrintData();
24849 result = (wxPrintData *) &_result_ref;
24850 }
24851 wxPyEndAllowThreads(__tstate);
24852 if (PyErr_Occurred()) SWIG_fail;
24853 }
24854 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24855 return resultobj;
24856 fail:
24857 return NULL;
24858 }
24859
24860
24861 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24862 PyObject *resultobj = 0;
24863 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24864 wxPrintData *arg2 = 0 ;
24865 void *argp1 = 0 ;
24866 int res1 = 0 ;
24867 void *argp2 = 0 ;
24868 int res2 = 0 ;
24869 PyObject * obj0 = 0 ;
24870 PyObject * obj1 = 0 ;
24871 char * kwnames[] = {
24872 (char *) "self",(char *) "data", NULL
24873 };
24874
24875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24877 if (!SWIG_IsOK(res1)) {
24878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24879 }
24880 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24881 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24882 if (!SWIG_IsOK(res2)) {
24883 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24884 }
24885 if (!argp2) {
24886 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24887 }
24888 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24889 {
24890 PyThreadState* __tstate = wxPyBeginAllowThreads();
24891 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24892 wxPyEndAllowThreads(__tstate);
24893 if (PyErr_Occurred()) SWIG_fail;
24894 }
24895 resultobj = SWIG_Py_Void();
24896 return resultobj;
24897 fail:
24898 return NULL;
24899 }
24900
24901
24902 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24903 PyObject *resultobj = 0;
24904 int arg1 ;
24905 int val1 ;
24906 int ecode1 = 0 ;
24907 PyObject * obj0 = 0 ;
24908 char * kwnames[] = {
24909 (char *) "ppi", NULL
24910 };
24911
24912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24913 ecode1 = SWIG_AsVal_int(obj0, &val1);
24914 if (!SWIG_IsOK(ecode1)) {
24915 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24916 }
24917 arg1 = static_cast< int >(val1);
24918 {
24919 PyThreadState* __tstate = wxPyBeginAllowThreads();
24920 wxPostScriptDC::SetResolution(arg1);
24921 wxPyEndAllowThreads(__tstate);
24922 if (PyErr_Occurred()) SWIG_fail;
24923 }
24924 resultobj = SWIG_Py_Void();
24925 return resultobj;
24926 fail:
24927 return NULL;
24928 }
24929
24930
24931 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24932 PyObject *resultobj = 0;
24933 int result;
24934
24935 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24936 {
24937 PyThreadState* __tstate = wxPyBeginAllowThreads();
24938 result = (int)wxPostScriptDC::GetResolution();
24939 wxPyEndAllowThreads(__tstate);
24940 if (PyErr_Occurred()) SWIG_fail;
24941 }
24942 resultobj = SWIG_From_int(static_cast< int >(result));
24943 return resultobj;
24944 fail:
24945 return NULL;
24946 }
24947
24948
24949 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24950 PyObject *obj;
24951 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24952 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24953 return SWIG_Py_Void();
24954 }
24955
24956 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24957 return SWIG_Python_InitShadowInstance(args);
24958 }
24959
24960 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24961 PyObject *resultobj = 0;
24962 wxString const &arg1_defvalue = wxPyEmptyString ;
24963 wxString *arg1 = (wxString *) &arg1_defvalue ;
24964 wxMetaFile *result = 0 ;
24965 bool temp1 = false ;
24966 PyObject * obj0 = 0 ;
24967 char * kwnames[] = {
24968 (char *) "filename", NULL
24969 };
24970
24971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24972 if (obj0) {
24973 {
24974 arg1 = wxString_in_helper(obj0);
24975 if (arg1 == NULL) SWIG_fail;
24976 temp1 = true;
24977 }
24978 }
24979 {
24980 if (!wxPyCheckForApp()) SWIG_fail;
24981 PyThreadState* __tstate = wxPyBeginAllowThreads();
24982 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24983 wxPyEndAllowThreads(__tstate);
24984 if (PyErr_Occurred()) SWIG_fail;
24985 }
24986 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24987 {
24988 if (temp1)
24989 delete arg1;
24990 }
24991 return resultobj;
24992 fail:
24993 {
24994 if (temp1)
24995 delete arg1;
24996 }
24997 return NULL;
24998 }
24999
25000
25001 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25002 PyObject *obj;
25003 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25004 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25005 return SWIG_Py_Void();
25006 }
25007
25008 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25009 return SWIG_Python_InitShadowInstance(args);
25010 }
25011
25012 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25013 PyObject *resultobj = 0;
25014 wxString const &arg1_defvalue = wxPyEmptyString ;
25015 wxString *arg1 = (wxString *) &arg1_defvalue ;
25016 int arg2 = (int) 0 ;
25017 int arg3 = (int) 0 ;
25018 wxString const &arg4_defvalue = wxPyEmptyString ;
25019 wxString *arg4 = (wxString *) &arg4_defvalue ;
25020 wxMetaFileDC *result = 0 ;
25021 bool temp1 = false ;
25022 int val2 ;
25023 int ecode2 = 0 ;
25024 int val3 ;
25025 int ecode3 = 0 ;
25026 bool temp4 = false ;
25027 PyObject * obj0 = 0 ;
25028 PyObject * obj1 = 0 ;
25029 PyObject * obj2 = 0 ;
25030 PyObject * obj3 = 0 ;
25031 char * kwnames[] = {
25032 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25033 };
25034
25035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25036 if (obj0) {
25037 {
25038 arg1 = wxString_in_helper(obj0);
25039 if (arg1 == NULL) SWIG_fail;
25040 temp1 = true;
25041 }
25042 }
25043 if (obj1) {
25044 ecode2 = SWIG_AsVal_int(obj1, &val2);
25045 if (!SWIG_IsOK(ecode2)) {
25046 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25047 }
25048 arg2 = static_cast< int >(val2);
25049 }
25050 if (obj2) {
25051 ecode3 = SWIG_AsVal_int(obj2, &val3);
25052 if (!SWIG_IsOK(ecode3)) {
25053 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25054 }
25055 arg3 = static_cast< int >(val3);
25056 }
25057 if (obj3) {
25058 {
25059 arg4 = wxString_in_helper(obj3);
25060 if (arg4 == NULL) SWIG_fail;
25061 temp4 = true;
25062 }
25063 }
25064 {
25065 if (!wxPyCheckForApp()) SWIG_fail;
25066 PyThreadState* __tstate = wxPyBeginAllowThreads();
25067 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25068 wxPyEndAllowThreads(__tstate);
25069 if (PyErr_Occurred()) SWIG_fail;
25070 }
25071 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25072 {
25073 if (temp1)
25074 delete arg1;
25075 }
25076 {
25077 if (temp4)
25078 delete arg4;
25079 }
25080 return resultobj;
25081 fail:
25082 {
25083 if (temp1)
25084 delete arg1;
25085 }
25086 {
25087 if (temp4)
25088 delete arg4;
25089 }
25090 return NULL;
25091 }
25092
25093
25094 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25095 PyObject *obj;
25096 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25097 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25098 return SWIG_Py_Void();
25099 }
25100
25101 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25102 return SWIG_Python_InitShadowInstance(args);
25103 }
25104
25105 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25106 PyObject *resultobj = 0;
25107 wxPrintData *arg1 = 0 ;
25108 wxPrinterDC *result = 0 ;
25109 void *argp1 = 0 ;
25110 int res1 = 0 ;
25111 PyObject * obj0 = 0 ;
25112 char * kwnames[] = {
25113 (char *) "printData", NULL
25114 };
25115
25116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25117 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25118 if (!SWIG_IsOK(res1)) {
25119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25120 }
25121 if (!argp1) {
25122 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25123 }
25124 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25125 {
25126 if (!wxPyCheckForApp()) SWIG_fail;
25127 PyThreadState* __tstate = wxPyBeginAllowThreads();
25128 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25129 wxPyEndAllowThreads(__tstate);
25130 if (PyErr_Occurred()) SWIG_fail;
25131 }
25132 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25133 return resultobj;
25134 fail:
25135 return NULL;
25136 }
25137
25138
25139 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25140 PyObject *obj;
25141 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25142 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25143 return SWIG_Py_Void();
25144 }
25145
25146 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25147 return SWIG_Python_InitShadowInstance(args);
25148 }
25149
25150 SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25151 PyObject *resultobj = 0;
25152 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
25153 wxGraphicsObject *result = 0 ;
25154 void *argp1 = 0 ;
25155 int res1 = 0 ;
25156 PyObject * obj0 = 0 ;
25157 char * kwnames[] = {
25158 (char *) "renderer", NULL
25159 };
25160
25161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
25162 if (obj0) {
25163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25164 if (!SWIG_IsOK(res1)) {
25165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
25166 }
25167 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
25168 }
25169 {
25170 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
25171 if (PyErr_Occurred()) SWIG_fail;
25172 }
25173 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
25174 return resultobj;
25175 fail:
25176 return NULL;
25177 }
25178
25179
25180 SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25181 PyObject *resultobj = 0;
25182 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25183 void *argp1 = 0 ;
25184 int res1 = 0 ;
25185 PyObject *swig_obj[1] ;
25186
25187 if (!args) SWIG_fail;
25188 swig_obj[0] = args;
25189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
25190 if (!SWIG_IsOK(res1)) {
25191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
25192 }
25193 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25194 {
25195 delete arg1;
25196
25197 if (PyErr_Occurred()) SWIG_fail;
25198 }
25199 resultobj = SWIG_Py_Void();
25200 return resultobj;
25201 fail:
25202 return NULL;
25203 }
25204
25205
25206 SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25207 PyObject *resultobj = 0;
25208 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25209 bool result;
25210 void *argp1 = 0 ;
25211 int res1 = 0 ;
25212 PyObject *swig_obj[1] ;
25213
25214 if (!args) SWIG_fail;
25215 swig_obj[0] = args;
25216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25217 if (!SWIG_IsOK(res1)) {
25218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25219 }
25220 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25221 {
25222 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
25223 if (PyErr_Occurred()) SWIG_fail;
25224 }
25225 {
25226 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25227 }
25228 return resultobj;
25229 fail:
25230 return NULL;
25231 }
25232
25233
25234 SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25235 PyObject *resultobj = 0;
25236 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25237 wxGraphicsRenderer *result = 0 ;
25238 void *argp1 = 0 ;
25239 int res1 = 0 ;
25240 PyObject *swig_obj[1] ;
25241
25242 if (!args) SWIG_fail;
25243 swig_obj[0] = args;
25244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25245 if (!SWIG_IsOK(res1)) {
25246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25247 }
25248 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25249 {
25250 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
25251 if (PyErr_Occurred()) SWIG_fail;
25252 }
25253 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25254 return resultobj;
25255 fail:
25256 return NULL;
25257 }
25258
25259
25260 SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25261 PyObject *obj;
25262 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25263 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
25264 return SWIG_Py_Void();
25265 }
25266
25267 SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25268 return SWIG_Python_InitShadowInstance(args);
25269 }
25270
25271 SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25272 PyObject *resultobj = 0;
25273 wxGraphicsPen *result = 0 ;
25274
25275 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
25276 {
25277 result = (wxGraphicsPen *)new wxGraphicsPen();
25278 if (PyErr_Occurred()) SWIG_fail;
25279 }
25280 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
25281 return resultobj;
25282 fail:
25283 return NULL;
25284 }
25285
25286
25287 SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25288 PyObject *resultobj = 0;
25289 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
25290 void *argp1 = 0 ;
25291 int res1 = 0 ;
25292 PyObject *swig_obj[1] ;
25293
25294 if (!args) SWIG_fail;
25295 swig_obj[0] = args;
25296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
25297 if (!SWIG_IsOK(res1)) {
25298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
25299 }
25300 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
25301 {
25302 delete arg1;
25303
25304 if (PyErr_Occurred()) SWIG_fail;
25305 }
25306 resultobj = SWIG_Py_Void();
25307 return resultobj;
25308 fail:
25309 return NULL;
25310 }
25311
25312
25313 SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25314 PyObject *obj;
25315 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25316 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
25317 return SWIG_Py_Void();
25318 }
25319
25320 SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25321 return SWIG_Python_InitShadowInstance(args);
25322 }
25323
25324 SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25325 PyObject *resultobj = 0;
25326 wxGraphicsBrush *result = 0 ;
25327
25328 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
25329 {
25330 result = (wxGraphicsBrush *)new wxGraphicsBrush();
25331 if (PyErr_Occurred()) SWIG_fail;
25332 }
25333 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
25334 return resultobj;
25335 fail:
25336 return NULL;
25337 }
25338
25339
25340 SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25341 PyObject *resultobj = 0;
25342 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
25343 void *argp1 = 0 ;
25344 int res1 = 0 ;
25345 PyObject *swig_obj[1] ;
25346
25347 if (!args) SWIG_fail;
25348 swig_obj[0] = args;
25349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
25350 if (!SWIG_IsOK(res1)) {
25351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
25352 }
25353 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
25354 {
25355 delete arg1;
25356
25357 if (PyErr_Occurred()) SWIG_fail;
25358 }
25359 resultobj = SWIG_Py_Void();
25360 return resultobj;
25361 fail:
25362 return NULL;
25363 }
25364
25365
25366 SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25367 PyObject *obj;
25368 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25369 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
25370 return SWIG_Py_Void();
25371 }
25372
25373 SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25374 return SWIG_Python_InitShadowInstance(args);
25375 }
25376
25377 SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25378 PyObject *resultobj = 0;
25379 wxGraphicsFont *result = 0 ;
25380
25381 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
25382 {
25383 result = (wxGraphicsFont *)new wxGraphicsFont();
25384 if (PyErr_Occurred()) SWIG_fail;
25385 }
25386 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
25387 return resultobj;
25388 fail:
25389 return NULL;
25390 }
25391
25392
25393 SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25394 PyObject *resultobj = 0;
25395 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
25396 void *argp1 = 0 ;
25397 int res1 = 0 ;
25398 PyObject *swig_obj[1] ;
25399
25400 if (!args) SWIG_fail;
25401 swig_obj[0] = args;
25402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
25403 if (!SWIG_IsOK(res1)) {
25404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
25405 }
25406 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
25407 {
25408 delete arg1;
25409
25410 if (PyErr_Occurred()) SWIG_fail;
25411 }
25412 resultobj = SWIG_Py_Void();
25413 return resultobj;
25414 fail:
25415 return NULL;
25416 }
25417
25418
25419 SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25420 PyObject *obj;
25421 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25422 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
25423 return SWIG_Py_Void();
25424 }
25425
25426 SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25427 return SWIG_Python_InitShadowInstance(args);
25428 }
25429
25430 SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25431 PyObject *resultobj = 0;
25432 wxGraphicsMatrix *result = 0 ;
25433
25434 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail;
25435 {
25436 result = (wxGraphicsMatrix *)new wxGraphicsMatrix();
25437 if (PyErr_Occurred()) SWIG_fail;
25438 }
25439 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 );
25440 return resultobj;
25441 fail:
25442 return NULL;
25443 }
25444
25445
25446 SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25447 PyObject *resultobj = 0;
25448 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25449 void *argp1 = 0 ;
25450 int res1 = 0 ;
25451 PyObject *swig_obj[1] ;
25452
25453 if (!args) SWIG_fail;
25454 swig_obj[0] = args;
25455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
25456 if (!SWIG_IsOK(res1)) {
25457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25458 }
25459 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25460 {
25461 delete arg1;
25462
25463 if (PyErr_Occurred()) SWIG_fail;
25464 }
25465 resultobj = SWIG_Py_Void();
25466 return resultobj;
25467 fail:
25468 return NULL;
25469 }
25470
25471
25472 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25473 PyObject *resultobj = 0;
25474 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25475 wxGraphicsMatrix *arg2 = 0 ;
25476 void *argp1 = 0 ;
25477 int res1 = 0 ;
25478 void *argp2 = 0 ;
25479 int res2 = 0 ;
25480 PyObject * obj0 = 0 ;
25481 PyObject * obj1 = 0 ;
25482 char * kwnames[] = {
25483 (char *) "self",(char *) "t", NULL
25484 };
25485
25486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
25487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25488 if (!SWIG_IsOK(res1)) {
25489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25490 }
25491 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25492 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25493 if (!SWIG_IsOK(res2)) {
25494 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25495 }
25496 if (!argp2) {
25497 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25498 }
25499 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
25500 {
25501 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
25502 if (PyErr_Occurred()) SWIG_fail;
25503 }
25504 resultobj = SWIG_Py_Void();
25505 return resultobj;
25506 fail:
25507 return NULL;
25508 }
25509
25510
25511 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25512 PyObject *resultobj = 0;
25513 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25514 wxDouble arg2 = (wxDouble) 1.0 ;
25515 wxDouble arg3 = (wxDouble) 0.0 ;
25516 wxDouble arg4 = (wxDouble) 0.0 ;
25517 wxDouble arg5 = (wxDouble) 1.0 ;
25518 wxDouble arg6 = (wxDouble) 0.0 ;
25519 wxDouble arg7 = (wxDouble) 0.0 ;
25520 void *argp1 = 0 ;
25521 int res1 = 0 ;
25522 double val2 ;
25523 int ecode2 = 0 ;
25524 double val3 ;
25525 int ecode3 = 0 ;
25526 double val4 ;
25527 int ecode4 = 0 ;
25528 double val5 ;
25529 int ecode5 = 0 ;
25530 double val6 ;
25531 int ecode6 = 0 ;
25532 double val7 ;
25533 int ecode7 = 0 ;
25534 PyObject * obj0 = 0 ;
25535 PyObject * obj1 = 0 ;
25536 PyObject * obj2 = 0 ;
25537 PyObject * obj3 = 0 ;
25538 PyObject * obj4 = 0 ;
25539 PyObject * obj5 = 0 ;
25540 PyObject * obj6 = 0 ;
25541 char * kwnames[] = {
25542 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
25543 };
25544
25545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25547 if (!SWIG_IsOK(res1)) {
25548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25549 }
25550 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25551 if (obj1) {
25552 ecode2 = SWIG_AsVal_double(obj1, &val2);
25553 if (!SWIG_IsOK(ecode2)) {
25554 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
25555 }
25556 arg2 = static_cast< wxDouble >(val2);
25557 }
25558 if (obj2) {
25559 ecode3 = SWIG_AsVal_double(obj2, &val3);
25560 if (!SWIG_IsOK(ecode3)) {
25561 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
25562 }
25563 arg3 = static_cast< wxDouble >(val3);
25564 }
25565 if (obj3) {
25566 ecode4 = SWIG_AsVal_double(obj3, &val4);
25567 if (!SWIG_IsOK(ecode4)) {
25568 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
25569 }
25570 arg4 = static_cast< wxDouble >(val4);
25571 }
25572 if (obj4) {
25573 ecode5 = SWIG_AsVal_double(obj4, &val5);
25574 if (!SWIG_IsOK(ecode5)) {
25575 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
25576 }
25577 arg5 = static_cast< wxDouble >(val5);
25578 }
25579 if (obj5) {
25580 ecode6 = SWIG_AsVal_double(obj5, &val6);
25581 if (!SWIG_IsOK(ecode6)) {
25582 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
25583 }
25584 arg6 = static_cast< wxDouble >(val6);
25585 }
25586 if (obj6) {
25587 ecode7 = SWIG_AsVal_double(obj6, &val7);
25588 if (!SWIG_IsOK(ecode7)) {
25589 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
25590 }
25591 arg7 = static_cast< wxDouble >(val7);
25592 }
25593 {
25594 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
25595 if (PyErr_Occurred()) SWIG_fail;
25596 }
25597 resultobj = SWIG_Py_Void();
25598 return resultobj;
25599 fail:
25600 return NULL;
25601 }
25602
25603
25604 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25605 PyObject *resultobj = 0;
25606 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25607 void *argp1 = 0 ;
25608 int res1 = 0 ;
25609 PyObject *swig_obj[1] ;
25610
25611 if (!args) SWIG_fail;
25612 swig_obj[0] = args;
25613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25614 if (!SWIG_IsOK(res1)) {
25615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25616 }
25617 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25618 {
25619 (arg1)->Invert();
25620 if (PyErr_Occurred()) SWIG_fail;
25621 }
25622 resultobj = SWIG_Py_Void();
25623 return resultobj;
25624 fail:
25625 return NULL;
25626 }
25627
25628
25629 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25630 PyObject *resultobj = 0;
25631 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25632 wxGraphicsMatrix *arg2 = 0 ;
25633 bool result;
25634 void *argp1 = 0 ;
25635 int res1 = 0 ;
25636 void *argp2 = 0 ;
25637 int res2 = 0 ;
25638 PyObject * obj0 = 0 ;
25639 PyObject * obj1 = 0 ;
25640 char * kwnames[] = {
25641 (char *) "self",(char *) "t", NULL
25642 };
25643
25644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
25645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25646 if (!SWIG_IsOK(res1)) {
25647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
25648 }
25649 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25650 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25651 if (!SWIG_IsOK(res2)) {
25652 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25653 }
25654 if (!argp2) {
25655 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25656 }
25657 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
25658 {
25659 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
25660 if (PyErr_Occurred()) SWIG_fail;
25661 }
25662 {
25663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25664 }
25665 return resultobj;
25666 fail:
25667 return NULL;
25668 }
25669
25670
25671 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25672 PyObject *resultobj = 0;
25673 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25674 bool result;
25675 void *argp1 = 0 ;
25676 int res1 = 0 ;
25677 PyObject *swig_obj[1] ;
25678
25679 if (!args) SWIG_fail;
25680 swig_obj[0] = args;
25681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25682 if (!SWIG_IsOK(res1)) {
25683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
25684 }
25685 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25686 {
25687 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
25688 if (PyErr_Occurred()) SWIG_fail;
25689 }
25690 {
25691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25692 }
25693 return resultobj;
25694 fail:
25695 return NULL;
25696 }
25697
25698
25699 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25700 PyObject *resultobj = 0;
25701 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25702 wxDouble arg2 ;
25703 wxDouble arg3 ;
25704 void *argp1 = 0 ;
25705 int res1 = 0 ;
25706 double val2 ;
25707 int ecode2 = 0 ;
25708 double val3 ;
25709 int ecode3 = 0 ;
25710 PyObject * obj0 = 0 ;
25711 PyObject * obj1 = 0 ;
25712 PyObject * obj2 = 0 ;
25713 char * kwnames[] = {
25714 (char *) "self",(char *) "dx",(char *) "dy", NULL
25715 };
25716
25717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25719 if (!SWIG_IsOK(res1)) {
25720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25721 }
25722 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25723 ecode2 = SWIG_AsVal_double(obj1, &val2);
25724 if (!SWIG_IsOK(ecode2)) {
25725 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
25726 }
25727 arg2 = static_cast< wxDouble >(val2);
25728 ecode3 = SWIG_AsVal_double(obj2, &val3);
25729 if (!SWIG_IsOK(ecode3)) {
25730 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
25731 }
25732 arg3 = static_cast< wxDouble >(val3);
25733 {
25734 (arg1)->Translate(arg2,arg3);
25735 if (PyErr_Occurred()) SWIG_fail;
25736 }
25737 resultobj = SWIG_Py_Void();
25738 return resultobj;
25739 fail:
25740 return NULL;
25741 }
25742
25743
25744 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25745 PyObject *resultobj = 0;
25746 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25747 wxDouble arg2 ;
25748 wxDouble arg3 ;
25749 void *argp1 = 0 ;
25750 int res1 = 0 ;
25751 double val2 ;
25752 int ecode2 = 0 ;
25753 double val3 ;
25754 int ecode3 = 0 ;
25755 PyObject * obj0 = 0 ;
25756 PyObject * obj1 = 0 ;
25757 PyObject * obj2 = 0 ;
25758 char * kwnames[] = {
25759 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
25760 };
25761
25762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25764 if (!SWIG_IsOK(res1)) {
25765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25766 }
25767 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25768 ecode2 = SWIG_AsVal_double(obj1, &val2);
25769 if (!SWIG_IsOK(ecode2)) {
25770 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
25771 }
25772 arg2 = static_cast< wxDouble >(val2);
25773 ecode3 = SWIG_AsVal_double(obj2, &val3);
25774 if (!SWIG_IsOK(ecode3)) {
25775 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
25776 }
25777 arg3 = static_cast< wxDouble >(val3);
25778 {
25779 (arg1)->Scale(arg2,arg3);
25780 if (PyErr_Occurred()) SWIG_fail;
25781 }
25782 resultobj = SWIG_Py_Void();
25783 return resultobj;
25784 fail:
25785 return NULL;
25786 }
25787
25788
25789 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25790 PyObject *resultobj = 0;
25791 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25792 wxDouble arg2 ;
25793 void *argp1 = 0 ;
25794 int res1 = 0 ;
25795 double val2 ;
25796 int ecode2 = 0 ;
25797 PyObject * obj0 = 0 ;
25798 PyObject * obj1 = 0 ;
25799 char * kwnames[] = {
25800 (char *) "self",(char *) "angle", NULL
25801 };
25802
25803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
25804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25805 if (!SWIG_IsOK(res1)) {
25806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25807 }
25808 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25809 ecode2 = SWIG_AsVal_double(obj1, &val2);
25810 if (!SWIG_IsOK(ecode2)) {
25811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
25812 }
25813 arg2 = static_cast< wxDouble >(val2);
25814 {
25815 (arg1)->Rotate(arg2);
25816 if (PyErr_Occurred()) SWIG_fail;
25817 }
25818 resultobj = SWIG_Py_Void();
25819 return resultobj;
25820 fail:
25821 return NULL;
25822 }
25823
25824
25825 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25826 PyObject *resultobj = 0;
25827 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25828 wxDouble *arg2 = (wxDouble *) 0 ;
25829 wxDouble *arg3 = (wxDouble *) 0 ;
25830 void *argp1 = 0 ;
25831 int res1 = 0 ;
25832 wxDouble temp2 ;
25833 int res2 = 0 ;
25834 wxDouble temp3 ;
25835 int res3 = 0 ;
25836 PyObject * obj0 = 0 ;
25837 PyObject * obj1 = 0 ;
25838 PyObject * obj2 = 0 ;
25839 char * kwnames[] = {
25840 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
25841 };
25842
25843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25845 if (!SWIG_IsOK(res1)) {
25846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
25847 }
25848 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25849 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
25850 double val;
25851 int ecode = SWIG_AsVal_double(obj1, &val);
25852 if (!SWIG_IsOK(ecode)) {
25853 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25854 }
25855 temp2 = static_cast< wxDouble >(val);
25856 arg2 = &temp2;
25857 res2 = SWIG_AddTmpMask(ecode);
25858 }
25859 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
25860 double val;
25861 int ecode = SWIG_AsVal_double(obj2, &val);
25862 if (!SWIG_IsOK(ecode)) {
25863 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25864 }
25865 temp3 = static_cast< wxDouble >(val);
25866 arg3 = &temp3;
25867 res3 = SWIG_AddTmpMask(ecode);
25868 }
25869 {
25870 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
25871 if (PyErr_Occurred()) SWIG_fail;
25872 }
25873 resultobj = SWIG_Py_Void();
25874 if (SWIG_IsTmpObj(res2)) {
25875 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
25876 } else {
25877 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25878 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
25879 }
25880 if (SWIG_IsTmpObj(res3)) {
25881 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
25882 } else {
25883 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25884 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
25885 }
25886 return resultobj;
25887 fail:
25888 return NULL;
25889 }
25890
25891
25892 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25893 PyObject *resultobj = 0;
25894 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25895 wxDouble *arg2 = (wxDouble *) 0 ;
25896 wxDouble *arg3 = (wxDouble *) 0 ;
25897 void *argp1 = 0 ;
25898 int res1 = 0 ;
25899 wxDouble temp2 ;
25900 int res2 = 0 ;
25901 wxDouble temp3 ;
25902 int res3 = 0 ;
25903 PyObject * obj0 = 0 ;
25904 PyObject * obj1 = 0 ;
25905 PyObject * obj2 = 0 ;
25906 char * kwnames[] = {
25907 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
25908 };
25909
25910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25912 if (!SWIG_IsOK(res1)) {
25913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
25914 }
25915 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25916 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
25917 double val;
25918 int ecode = SWIG_AsVal_double(obj1, &val);
25919 if (!SWIG_IsOK(ecode)) {
25920 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
25921 }
25922 temp2 = static_cast< wxDouble >(val);
25923 arg2 = &temp2;
25924 res2 = SWIG_AddTmpMask(ecode);
25925 }
25926 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
25927 double val;
25928 int ecode = SWIG_AsVal_double(obj2, &val);
25929 if (!SWIG_IsOK(ecode)) {
25930 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
25931 }
25932 temp3 = static_cast< wxDouble >(val);
25933 arg3 = &temp3;
25934 res3 = SWIG_AddTmpMask(ecode);
25935 }
25936 {
25937 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
25938 if (PyErr_Occurred()) SWIG_fail;
25939 }
25940 resultobj = SWIG_Py_Void();
25941 if (SWIG_IsTmpObj(res2)) {
25942 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
25943 } else {
25944 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25945 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
25946 }
25947 if (SWIG_IsTmpObj(res3)) {
25948 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
25949 } else {
25950 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25951 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
25952 }
25953 return resultobj;
25954 fail:
25955 return NULL;
25956 }
25957
25958
25959 SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25960 PyObject *resultobj = 0;
25961 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25962 void *result = 0 ;
25963 void *argp1 = 0 ;
25964 int res1 = 0 ;
25965 PyObject *swig_obj[1] ;
25966
25967 if (!args) SWIG_fail;
25968 swig_obj[0] = args;
25969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25970 if (!SWIG_IsOK(res1)) {
25971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
25972 }
25973 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25974 {
25975 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
25976 if (PyErr_Occurred()) SWIG_fail;
25977 }
25978 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
25979 return resultobj;
25980 fail:
25981 return NULL;
25982 }
25983
25984
25985 SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25986 PyObject *obj;
25987 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25988 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
25989 return SWIG_Py_Void();
25990 }
25991
25992 SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25993 return SWIG_Python_InitShadowInstance(args);
25994 }
25995
25996 SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25997 PyObject *resultobj = 0;
25998 wxGraphicsPath *result = 0 ;
25999
26000 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail;
26001 {
26002 if (!wxPyCheckForApp()) SWIG_fail;
26003 PyThreadState* __tstate = wxPyBeginAllowThreads();
26004 result = (wxGraphicsPath *)new wxGraphicsPath();
26005 wxPyEndAllowThreads(__tstate);
26006 if (PyErr_Occurred()) SWIG_fail;
26007 }
26008 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 );
26009 return resultobj;
26010 fail:
26011 return NULL;
26012 }
26013
26014
26015 SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26016 PyObject *resultobj = 0;
26017 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26018 void *argp1 = 0 ;
26019 int res1 = 0 ;
26020 PyObject *swig_obj[1] ;
26021
26022 if (!args) SWIG_fail;
26023 swig_obj[0] = args;
26024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
26025 if (!SWIG_IsOK(res1)) {
26026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26027 }
26028 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26029 {
26030 delete arg1;
26031
26032 if (PyErr_Occurred()) SWIG_fail;
26033 }
26034 resultobj = SWIG_Py_Void();
26035 return resultobj;
26036 fail:
26037 return NULL;
26038 }
26039
26040
26041 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26042 PyObject *resultobj = 0;
26043 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26044 wxDouble arg2 ;
26045 wxDouble arg3 ;
26046 void *argp1 = 0 ;
26047 int res1 = 0 ;
26048 double val2 ;
26049 int ecode2 = 0 ;
26050 double val3 ;
26051 int ecode3 = 0 ;
26052
26053 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26055 if (!SWIG_IsOK(res1)) {
26056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26057 }
26058 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26059 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26060 if (!SWIG_IsOK(ecode2)) {
26061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26062 }
26063 arg2 = static_cast< wxDouble >(val2);
26064 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26065 if (!SWIG_IsOK(ecode3)) {
26066 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26067 }
26068 arg3 = static_cast< wxDouble >(val3);
26069 {
26070 (arg1)->MoveToPoint(arg2,arg3);
26071 if (PyErr_Occurred()) SWIG_fail;
26072 }
26073 resultobj = SWIG_Py_Void();
26074 return resultobj;
26075 fail:
26076 return NULL;
26077 }
26078
26079
26080 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26081 PyObject *resultobj = 0;
26082 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26083 wxPoint2D *arg2 = 0 ;
26084 void *argp1 = 0 ;
26085 int res1 = 0 ;
26086 wxPoint2D temp2 ;
26087
26088 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26090 if (!SWIG_IsOK(res1)) {
26091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26092 }
26093 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26094 {
26095 arg2 = &temp2;
26096 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26097 }
26098 {
26099 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
26100 if (PyErr_Occurred()) SWIG_fail;
26101 }
26102 resultobj = SWIG_Py_Void();
26103 return resultobj;
26104 fail:
26105 return NULL;
26106 }
26107
26108
26109 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
26110 int argc;
26111 PyObject *argv[4];
26112
26113 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
26114 --argc;
26115 if (argc == 2) {
26116 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
26117 }
26118 if (argc == 3) {
26119 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
26120 }
26121
26122 fail:
26123 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
26124 return NULL;
26125 }
26126
26127
26128 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26129 PyObject *resultobj = 0;
26130 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26131 wxDouble arg2 ;
26132 wxDouble arg3 ;
26133 void *argp1 = 0 ;
26134 int res1 = 0 ;
26135 double val2 ;
26136 int ecode2 = 0 ;
26137 double val3 ;
26138 int ecode3 = 0 ;
26139
26140 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26142 if (!SWIG_IsOK(res1)) {
26143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26144 }
26145 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26146 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26147 if (!SWIG_IsOK(ecode2)) {
26148 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26149 }
26150 arg2 = static_cast< wxDouble >(val2);
26151 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26152 if (!SWIG_IsOK(ecode3)) {
26153 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26154 }
26155 arg3 = static_cast< wxDouble >(val3);
26156 {
26157 (arg1)->AddLineToPoint(arg2,arg3);
26158 if (PyErr_Occurred()) SWIG_fail;
26159 }
26160 resultobj = SWIG_Py_Void();
26161 return resultobj;
26162 fail:
26163 return NULL;
26164 }
26165
26166
26167 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26168 PyObject *resultobj = 0;
26169 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26170 wxPoint2D *arg2 = 0 ;
26171 void *argp1 = 0 ;
26172 int res1 = 0 ;
26173 wxPoint2D temp2 ;
26174
26175 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26177 if (!SWIG_IsOK(res1)) {
26178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26179 }
26180 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26181 {
26182 arg2 = &temp2;
26183 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26184 }
26185 {
26186 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
26187 if (PyErr_Occurred()) SWIG_fail;
26188 }
26189 resultobj = SWIG_Py_Void();
26190 return resultobj;
26191 fail:
26192 return NULL;
26193 }
26194
26195
26196 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
26197 int argc;
26198 PyObject *argv[4];
26199
26200 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
26201 --argc;
26202 if (argc == 2) {
26203 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
26204 }
26205 if (argc == 3) {
26206 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
26207 }
26208
26209 fail:
26210 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
26211 return NULL;
26212 }
26213
26214
26215 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26216 PyObject *resultobj = 0;
26217 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26218 wxDouble arg2 ;
26219 wxDouble arg3 ;
26220 wxDouble arg4 ;
26221 wxDouble arg5 ;
26222 wxDouble arg6 ;
26223 wxDouble arg7 ;
26224 void *argp1 = 0 ;
26225 int res1 = 0 ;
26226 double val2 ;
26227 int ecode2 = 0 ;
26228 double val3 ;
26229 int ecode3 = 0 ;
26230 double val4 ;
26231 int ecode4 = 0 ;
26232 double val5 ;
26233 int ecode5 = 0 ;
26234 double val6 ;
26235 int ecode6 = 0 ;
26236 double val7 ;
26237 int ecode7 = 0 ;
26238
26239 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
26240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26241 if (!SWIG_IsOK(res1)) {
26242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26243 }
26244 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26245 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26246 if (!SWIG_IsOK(ecode2)) {
26247 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26248 }
26249 arg2 = static_cast< wxDouble >(val2);
26250 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26251 if (!SWIG_IsOK(ecode3)) {
26252 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26253 }
26254 arg3 = static_cast< wxDouble >(val3);
26255 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26256 if (!SWIG_IsOK(ecode4)) {
26257 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26258 }
26259 arg4 = static_cast< wxDouble >(val4);
26260 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26261 if (!SWIG_IsOK(ecode5)) {
26262 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26263 }
26264 arg5 = static_cast< wxDouble >(val5);
26265 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
26266 if (!SWIG_IsOK(ecode6)) {
26267 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
26268 }
26269 arg6 = static_cast< wxDouble >(val6);
26270 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
26271 if (!SWIG_IsOK(ecode7)) {
26272 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
26273 }
26274 arg7 = static_cast< wxDouble >(val7);
26275 {
26276 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
26277 if (PyErr_Occurred()) SWIG_fail;
26278 }
26279 resultobj = SWIG_Py_Void();
26280 return resultobj;
26281 fail:
26282 return NULL;
26283 }
26284
26285
26286 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26287 PyObject *resultobj = 0;
26288 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26289 wxPoint2D *arg2 = 0 ;
26290 wxPoint2D *arg3 = 0 ;
26291 wxPoint2D *arg4 = 0 ;
26292 void *argp1 = 0 ;
26293 int res1 = 0 ;
26294 wxPoint2D temp2 ;
26295 wxPoint2D temp3 ;
26296 wxPoint2D temp4 ;
26297
26298 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
26299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26300 if (!SWIG_IsOK(res1)) {
26301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26302 }
26303 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26304 {
26305 arg2 = &temp2;
26306 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26307 }
26308 {
26309 arg3 = &temp3;
26310 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
26311 }
26312 {
26313 arg4 = &temp4;
26314 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
26315 }
26316 {
26317 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
26318 if (PyErr_Occurred()) SWIG_fail;
26319 }
26320 resultobj = SWIG_Py_Void();
26321 return resultobj;
26322 fail:
26323 return NULL;
26324 }
26325
26326
26327 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
26328 int argc;
26329 PyObject *argv[8];
26330
26331 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
26332 --argc;
26333 if (argc == 4) {
26334 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
26335 }
26336 if (argc == 7) {
26337 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
26338 }
26339
26340 fail:
26341 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
26342 return NULL;
26343 }
26344
26345
26346 SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26347 PyObject *resultobj = 0;
26348 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26349 wxGraphicsPath *arg2 = 0 ;
26350 void *argp1 = 0 ;
26351 int res1 = 0 ;
26352 void *argp2 = 0 ;
26353 int res2 = 0 ;
26354 PyObject * obj0 = 0 ;
26355 PyObject * obj1 = 0 ;
26356 char * kwnames[] = {
26357 (char *) "self",(char *) "path", NULL
26358 };
26359
26360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
26361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26362 if (!SWIG_IsOK(res1)) {
26363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26364 }
26365 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26366 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
26367 if (!SWIG_IsOK(res2)) {
26368 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
26369 }
26370 if (!argp2) {
26371 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
26372 }
26373 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
26374 {
26375 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
26376 if (PyErr_Occurred()) SWIG_fail;
26377 }
26378 resultobj = SWIG_Py_Void();
26379 return resultobj;
26380 fail:
26381 return NULL;
26382 }
26383
26384
26385 SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26386 PyObject *resultobj = 0;
26387 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26388 void *argp1 = 0 ;
26389 int res1 = 0 ;
26390 PyObject *swig_obj[1] ;
26391
26392 if (!args) SWIG_fail;
26393 swig_obj[0] = args;
26394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26395 if (!SWIG_IsOK(res1)) {
26396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26397 }
26398 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26399 {
26400 (arg1)->CloseSubpath();
26401 if (PyErr_Occurred()) SWIG_fail;
26402 }
26403 resultobj = SWIG_Py_Void();
26404 return resultobj;
26405 fail:
26406 return NULL;
26407 }
26408
26409
26410 SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26411 PyObject *resultobj = 0;
26412 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26413 wxPoint2D result;
26414 void *argp1 = 0 ;
26415 int res1 = 0 ;
26416 PyObject *swig_obj[1] ;
26417
26418 if (!args) SWIG_fail;
26419 swig_obj[0] = args;
26420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26421 if (!SWIG_IsOK(res1)) {
26422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
26423 }
26424 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26425 {
26426 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
26427 if (PyErr_Occurred()) SWIG_fail;
26428 }
26429 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
26430 return resultobj;
26431 fail:
26432 return NULL;
26433 }
26434
26435
26436 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26437 PyObject *resultobj = 0;
26438 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26439 wxDouble arg2 ;
26440 wxDouble arg3 ;
26441 wxDouble arg4 ;
26442 wxDouble arg5 ;
26443 wxDouble arg6 ;
26444 bool arg7 ;
26445 void *argp1 = 0 ;
26446 int res1 = 0 ;
26447 double val2 ;
26448 int ecode2 = 0 ;
26449 double val3 ;
26450 int ecode3 = 0 ;
26451 double val4 ;
26452 int ecode4 = 0 ;
26453 double val5 ;
26454 int ecode5 = 0 ;
26455 double val6 ;
26456 int ecode6 = 0 ;
26457 bool val7 ;
26458 int ecode7 = 0 ;
26459
26460 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
26461 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26462 if (!SWIG_IsOK(res1)) {
26463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26464 }
26465 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26466 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26467 if (!SWIG_IsOK(ecode2)) {
26468 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
26469 }
26470 arg2 = static_cast< wxDouble >(val2);
26471 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26472 if (!SWIG_IsOK(ecode3)) {
26473 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
26474 }
26475 arg3 = static_cast< wxDouble >(val3);
26476 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26477 if (!SWIG_IsOK(ecode4)) {
26478 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26479 }
26480 arg4 = static_cast< wxDouble >(val4);
26481 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26482 if (!SWIG_IsOK(ecode5)) {
26483 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26484 }
26485 arg5 = static_cast< wxDouble >(val5);
26486 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
26487 if (!SWIG_IsOK(ecode6)) {
26488 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
26489 }
26490 arg6 = static_cast< wxDouble >(val6);
26491 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
26492 if (!SWIG_IsOK(ecode7)) {
26493 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
26494 }
26495 arg7 = static_cast< bool >(val7);
26496 {
26497 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
26498 if (PyErr_Occurred()) SWIG_fail;
26499 }
26500 resultobj = SWIG_Py_Void();
26501 return resultobj;
26502 fail:
26503 return NULL;
26504 }
26505
26506
26507 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26508 PyObject *resultobj = 0;
26509 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26510 wxPoint2D *arg2 = 0 ;
26511 wxDouble arg3 ;
26512 wxDouble arg4 ;
26513 wxDouble arg5 ;
26514 bool arg6 ;
26515 void *argp1 = 0 ;
26516 int res1 = 0 ;
26517 wxPoint2D temp2 ;
26518 double val3 ;
26519 int ecode3 = 0 ;
26520 double val4 ;
26521 int ecode4 = 0 ;
26522 double val5 ;
26523 int ecode5 = 0 ;
26524 bool val6 ;
26525 int ecode6 = 0 ;
26526
26527 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
26528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26529 if (!SWIG_IsOK(res1)) {
26530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26531 }
26532 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26533 {
26534 arg2 = &temp2;
26535 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26536 }
26537 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26538 if (!SWIG_IsOK(ecode3)) {
26539 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
26540 }
26541 arg3 = static_cast< wxDouble >(val3);
26542 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26543 if (!SWIG_IsOK(ecode4)) {
26544 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26545 }
26546 arg4 = static_cast< wxDouble >(val4);
26547 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26548 if (!SWIG_IsOK(ecode5)) {
26549 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26550 }
26551 arg5 = static_cast< wxDouble >(val5);
26552 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
26553 if (!SWIG_IsOK(ecode6)) {
26554 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
26555 }
26556 arg6 = static_cast< bool >(val6);
26557 {
26558 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
26559 if (PyErr_Occurred()) SWIG_fail;
26560 }
26561 resultobj = SWIG_Py_Void();
26562 return resultobj;
26563 fail:
26564 return NULL;
26565 }
26566
26567
26568 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
26569 int argc;
26570 PyObject *argv[8];
26571
26572 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
26573 --argc;
26574 if (argc == 6) {
26575 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
26576 }
26577 if (argc == 7) {
26578 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
26579 }
26580
26581 fail:
26582 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
26583 return NULL;
26584 }
26585
26586
26587 SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26588 PyObject *resultobj = 0;
26589 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26590 wxDouble arg2 ;
26591 wxDouble arg3 ;
26592 wxDouble arg4 ;
26593 wxDouble arg5 ;
26594 void *argp1 = 0 ;
26595 int res1 = 0 ;
26596 double val2 ;
26597 int ecode2 = 0 ;
26598 double val3 ;
26599 int ecode3 = 0 ;
26600 double val4 ;
26601 int ecode4 = 0 ;
26602 double val5 ;
26603 int ecode5 = 0 ;
26604 PyObject * obj0 = 0 ;
26605 PyObject * obj1 = 0 ;
26606 PyObject * obj2 = 0 ;
26607 PyObject * obj3 = 0 ;
26608 PyObject * obj4 = 0 ;
26609 char * kwnames[] = {
26610 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
26611 };
26612
26613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26615 if (!SWIG_IsOK(res1)) {
26616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26617 }
26618 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26619 ecode2 = SWIG_AsVal_double(obj1, &val2);
26620 if (!SWIG_IsOK(ecode2)) {
26621 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26622 }
26623 arg2 = static_cast< wxDouble >(val2);
26624 ecode3 = SWIG_AsVal_double(obj2, &val3);
26625 if (!SWIG_IsOK(ecode3)) {
26626 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26627 }
26628 arg3 = static_cast< wxDouble >(val3);
26629 ecode4 = SWIG_AsVal_double(obj3, &val4);
26630 if (!SWIG_IsOK(ecode4)) {
26631 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26632 }
26633 arg4 = static_cast< wxDouble >(val4);
26634 ecode5 = SWIG_AsVal_double(obj4, &val5);
26635 if (!SWIG_IsOK(ecode5)) {
26636 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26637 }
26638 arg5 = static_cast< wxDouble >(val5);
26639 {
26640 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
26641 if (PyErr_Occurred()) SWIG_fail;
26642 }
26643 resultobj = SWIG_Py_Void();
26644 return resultobj;
26645 fail:
26646 return NULL;
26647 }
26648
26649
26650 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26651 PyObject *resultobj = 0;
26652 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26653 wxDouble arg2 ;
26654 wxDouble arg3 ;
26655 wxDouble arg4 ;
26656 wxDouble arg5 ;
26657 void *argp1 = 0 ;
26658 int res1 = 0 ;
26659 double val2 ;
26660 int ecode2 = 0 ;
26661 double val3 ;
26662 int ecode3 = 0 ;
26663 double val4 ;
26664 int ecode4 = 0 ;
26665 double val5 ;
26666 int ecode5 = 0 ;
26667 PyObject * obj0 = 0 ;
26668 PyObject * obj1 = 0 ;
26669 PyObject * obj2 = 0 ;
26670 PyObject * obj3 = 0 ;
26671 PyObject * obj4 = 0 ;
26672 char * kwnames[] = {
26673 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26674 };
26675
26676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26678 if (!SWIG_IsOK(res1)) {
26679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26680 }
26681 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26682 ecode2 = SWIG_AsVal_double(obj1, &val2);
26683 if (!SWIG_IsOK(ecode2)) {
26684 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26685 }
26686 arg2 = static_cast< wxDouble >(val2);
26687 ecode3 = SWIG_AsVal_double(obj2, &val3);
26688 if (!SWIG_IsOK(ecode3)) {
26689 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26690 }
26691 arg3 = static_cast< wxDouble >(val3);
26692 ecode4 = SWIG_AsVal_double(obj3, &val4);
26693 if (!SWIG_IsOK(ecode4)) {
26694 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26695 }
26696 arg4 = static_cast< wxDouble >(val4);
26697 ecode5 = SWIG_AsVal_double(obj4, &val5);
26698 if (!SWIG_IsOK(ecode5)) {
26699 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26700 }
26701 arg5 = static_cast< wxDouble >(val5);
26702 {
26703 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
26704 if (PyErr_Occurred()) SWIG_fail;
26705 }
26706 resultobj = SWIG_Py_Void();
26707 return resultobj;
26708 fail:
26709 return NULL;
26710 }
26711
26712
26713 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26714 PyObject *resultobj = 0;
26715 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26716 wxDouble arg2 ;
26717 wxDouble arg3 ;
26718 wxDouble arg4 ;
26719 void *argp1 = 0 ;
26720 int res1 = 0 ;
26721 double val2 ;
26722 int ecode2 = 0 ;
26723 double val3 ;
26724 int ecode3 = 0 ;
26725 double val4 ;
26726 int ecode4 = 0 ;
26727 PyObject * obj0 = 0 ;
26728 PyObject * obj1 = 0 ;
26729 PyObject * obj2 = 0 ;
26730 PyObject * obj3 = 0 ;
26731 char * kwnames[] = {
26732 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
26733 };
26734
26735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26737 if (!SWIG_IsOK(res1)) {
26738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26739 }
26740 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26741 ecode2 = SWIG_AsVal_double(obj1, &val2);
26742 if (!SWIG_IsOK(ecode2)) {
26743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
26744 }
26745 arg2 = static_cast< wxDouble >(val2);
26746 ecode3 = SWIG_AsVal_double(obj2, &val3);
26747 if (!SWIG_IsOK(ecode3)) {
26748 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
26749 }
26750 arg3 = static_cast< wxDouble >(val3);
26751 ecode4 = SWIG_AsVal_double(obj3, &val4);
26752 if (!SWIG_IsOK(ecode4)) {
26753 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
26754 }
26755 arg4 = static_cast< wxDouble >(val4);
26756 {
26757 (arg1)->AddCircle(arg2,arg3,arg4);
26758 if (PyErr_Occurred()) SWIG_fail;
26759 }
26760 resultobj = SWIG_Py_Void();
26761 return resultobj;
26762 fail:
26763 return NULL;
26764 }
26765
26766
26767 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26768 PyObject *resultobj = 0;
26769 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26770 wxDouble arg2 ;
26771 wxDouble arg3 ;
26772 wxDouble arg4 ;
26773 wxDouble arg5 ;
26774 wxDouble arg6 ;
26775 void *argp1 = 0 ;
26776 int res1 = 0 ;
26777 double val2 ;
26778 int ecode2 = 0 ;
26779 double val3 ;
26780 int ecode3 = 0 ;
26781 double val4 ;
26782 int ecode4 = 0 ;
26783 double val5 ;
26784 int ecode5 = 0 ;
26785 double val6 ;
26786 int ecode6 = 0 ;
26787 PyObject * obj0 = 0 ;
26788 PyObject * obj1 = 0 ;
26789 PyObject * obj2 = 0 ;
26790 PyObject * obj3 = 0 ;
26791 PyObject * obj4 = 0 ;
26792 PyObject * obj5 = 0 ;
26793 char * kwnames[] = {
26794 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
26795 };
26796
26797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26799 if (!SWIG_IsOK(res1)) {
26800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26801 }
26802 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26803 ecode2 = SWIG_AsVal_double(obj1, &val2);
26804 if (!SWIG_IsOK(ecode2)) {
26805 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26806 }
26807 arg2 = static_cast< wxDouble >(val2);
26808 ecode3 = SWIG_AsVal_double(obj2, &val3);
26809 if (!SWIG_IsOK(ecode3)) {
26810 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26811 }
26812 arg3 = static_cast< wxDouble >(val3);
26813 ecode4 = SWIG_AsVal_double(obj3, &val4);
26814 if (!SWIG_IsOK(ecode4)) {
26815 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26816 }
26817 arg4 = static_cast< wxDouble >(val4);
26818 ecode5 = SWIG_AsVal_double(obj4, &val5);
26819 if (!SWIG_IsOK(ecode5)) {
26820 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26821 }
26822 arg5 = static_cast< wxDouble >(val5);
26823 ecode6 = SWIG_AsVal_double(obj5, &val6);
26824 if (!SWIG_IsOK(ecode6)) {
26825 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
26826 }
26827 arg6 = static_cast< wxDouble >(val6);
26828 {
26829 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
26830 if (PyErr_Occurred()) SWIG_fail;
26831 }
26832 resultobj = SWIG_Py_Void();
26833 return resultobj;
26834 fail:
26835 return NULL;
26836 }
26837
26838
26839 SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26840 PyObject *resultobj = 0;
26841 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26842 wxDouble arg2 ;
26843 wxDouble arg3 ;
26844 wxDouble arg4 ;
26845 wxDouble arg5 ;
26846 void *argp1 = 0 ;
26847 int res1 = 0 ;
26848 double val2 ;
26849 int ecode2 = 0 ;
26850 double val3 ;
26851 int ecode3 = 0 ;
26852 double val4 ;
26853 int ecode4 = 0 ;
26854 double val5 ;
26855 int ecode5 = 0 ;
26856 PyObject * obj0 = 0 ;
26857 PyObject * obj1 = 0 ;
26858 PyObject * obj2 = 0 ;
26859 PyObject * obj3 = 0 ;
26860 PyObject * obj4 = 0 ;
26861 char * kwnames[] = {
26862 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26863 };
26864
26865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26867 if (!SWIG_IsOK(res1)) {
26868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26869 }
26870 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26871 ecode2 = SWIG_AsVal_double(obj1, &val2);
26872 if (!SWIG_IsOK(ecode2)) {
26873 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
26874 }
26875 arg2 = static_cast< wxDouble >(val2);
26876 ecode3 = SWIG_AsVal_double(obj2, &val3);
26877 if (!SWIG_IsOK(ecode3)) {
26878 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
26879 }
26880 arg3 = static_cast< wxDouble >(val3);
26881 ecode4 = SWIG_AsVal_double(obj3, &val4);
26882 if (!SWIG_IsOK(ecode4)) {
26883 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
26884 }
26885 arg4 = static_cast< wxDouble >(val4);
26886 ecode5 = SWIG_AsVal_double(obj4, &val5);
26887 if (!SWIG_IsOK(ecode5)) {
26888 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
26889 }
26890 arg5 = static_cast< wxDouble >(val5);
26891 {
26892 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
26893 if (PyErr_Occurred()) SWIG_fail;
26894 }
26895 resultobj = SWIG_Py_Void();
26896 return resultobj;
26897 fail:
26898 return NULL;
26899 }
26900
26901
26902 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26903 PyObject *resultobj = 0;
26904 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26905 wxDouble arg2 ;
26906 wxDouble arg3 ;
26907 wxDouble arg4 ;
26908 wxDouble arg5 ;
26909 wxDouble arg6 ;
26910 void *argp1 = 0 ;
26911 int res1 = 0 ;
26912 double val2 ;
26913 int ecode2 = 0 ;
26914 double val3 ;
26915 int ecode3 = 0 ;
26916 double val4 ;
26917 int ecode4 = 0 ;
26918 double val5 ;
26919 int ecode5 = 0 ;
26920 double val6 ;
26921 int ecode6 = 0 ;
26922 PyObject * obj0 = 0 ;
26923 PyObject * obj1 = 0 ;
26924 PyObject * obj2 = 0 ;
26925 PyObject * obj3 = 0 ;
26926 PyObject * obj4 = 0 ;
26927 PyObject * obj5 = 0 ;
26928 char * kwnames[] = {
26929 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
26930 };
26931
26932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26934 if (!SWIG_IsOK(res1)) {
26935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26936 }
26937 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26938 ecode2 = SWIG_AsVal_double(obj1, &val2);
26939 if (!SWIG_IsOK(ecode2)) {
26940 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26941 }
26942 arg2 = static_cast< wxDouble >(val2);
26943 ecode3 = SWIG_AsVal_double(obj2, &val3);
26944 if (!SWIG_IsOK(ecode3)) {
26945 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26946 }
26947 arg3 = static_cast< wxDouble >(val3);
26948 ecode4 = SWIG_AsVal_double(obj3, &val4);
26949 if (!SWIG_IsOK(ecode4)) {
26950 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26951 }
26952 arg4 = static_cast< wxDouble >(val4);
26953 ecode5 = SWIG_AsVal_double(obj4, &val5);
26954 if (!SWIG_IsOK(ecode5)) {
26955 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26956 }
26957 arg5 = static_cast< wxDouble >(val5);
26958 ecode6 = SWIG_AsVal_double(obj5, &val6);
26959 if (!SWIG_IsOK(ecode6)) {
26960 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
26961 }
26962 arg6 = static_cast< wxDouble >(val6);
26963 {
26964 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
26965 if (PyErr_Occurred()) SWIG_fail;
26966 }
26967 resultobj = SWIG_Py_Void();
26968 return resultobj;
26969 fail:
26970 return NULL;
26971 }
26972
26973
26974 SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26975 PyObject *resultobj = 0;
26976 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26977 void *result = 0 ;
26978 void *argp1 = 0 ;
26979 int res1 = 0 ;
26980 PyObject *swig_obj[1] ;
26981
26982 if (!args) SWIG_fail;
26983 swig_obj[0] = args;
26984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26985 if (!SWIG_IsOK(res1)) {
26986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
26987 }
26988 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26989 {
26990 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
26991 if (PyErr_Occurred()) SWIG_fail;
26992 }
26993 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26994 return resultobj;
26995 fail:
26996 return NULL;
26997 }
26998
26999
27000 SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27001 PyObject *resultobj = 0;
27002 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27003 void *arg2 = (void *) 0 ;
27004 void *argp1 = 0 ;
27005 int res1 = 0 ;
27006 int res2 ;
27007 PyObject * obj0 = 0 ;
27008 PyObject * obj1 = 0 ;
27009 char * kwnames[] = {
27010 (char *) "self",(char *) "p", NULL
27011 };
27012
27013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
27014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27015 if (!SWIG_IsOK(res1)) {
27016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27017 }
27018 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27019 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
27020 if (!SWIG_IsOK(res2)) {
27021 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
27022 }
27023 {
27024 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
27025 if (PyErr_Occurred()) SWIG_fail;
27026 }
27027 resultobj = SWIG_Py_Void();
27028 return resultobj;
27029 fail:
27030 return NULL;
27031 }
27032
27033
27034 SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27035 PyObject *resultobj = 0;
27036 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27037 wxGraphicsMatrix *arg2 = 0 ;
27038 void *argp1 = 0 ;
27039 int res1 = 0 ;
27040 void *argp2 = 0 ;
27041 int res2 = 0 ;
27042 PyObject * obj0 = 0 ;
27043 PyObject * obj1 = 0 ;
27044 char * kwnames[] = {
27045 (char *) "self",(char *) "matrix", NULL
27046 };
27047
27048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) 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_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27052 }
27053 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27054 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
27055 if (!SWIG_IsOK(res2)) {
27056 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27057 }
27058 if (!argp2) {
27059 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27060 }
27061 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
27062 {
27063 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
27064 if (PyErr_Occurred()) SWIG_fail;
27065 }
27066 resultobj = SWIG_Py_Void();
27067 return resultobj;
27068 fail:
27069 return NULL;
27070 }
27071
27072
27073 SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27074 PyObject *resultobj = 0;
27075 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27076 wxRect2DDouble result;
27077 void *argp1 = 0 ;
27078 int res1 = 0 ;
27079 PyObject *swig_obj[1] ;
27080
27081 if (!args) SWIG_fail;
27082 swig_obj[0] = args;
27083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27084 if (!SWIG_IsOK(res1)) {
27085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27086 }
27087 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27088 {
27089 result = ((wxGraphicsPath const *)arg1)->GetBox();
27090 if (PyErr_Occurred()) SWIG_fail;
27091 }
27092 resultobj = SWIG_NewPointerObj((new wxRect2DDouble(static_cast< const wxRect2DDouble& >(result))), SWIGTYPE_p_wxRect2DDouble, SWIG_POINTER_OWN | 0 );
27093 return resultobj;
27094 fail:
27095 return NULL;
27096 }
27097
27098
27099 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27100 PyObject *resultobj = 0;
27101 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27102 wxDouble arg2 ;
27103 wxDouble arg3 ;
27104 int arg4 = (int) wxODDEVEN_RULE ;
27105 bool result;
27106 void *argp1 = 0 ;
27107 int res1 = 0 ;
27108 double val2 ;
27109 int ecode2 = 0 ;
27110 double val3 ;
27111 int ecode3 = 0 ;
27112 int val4 ;
27113 int ecode4 = 0 ;
27114
27115 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
27116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27117 if (!SWIG_IsOK(res1)) {
27118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27119 }
27120 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27121 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27122 if (!SWIG_IsOK(ecode2)) {
27123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
27124 }
27125 arg2 = static_cast< wxDouble >(val2);
27126 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27127 if (!SWIG_IsOK(ecode3)) {
27128 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
27129 }
27130 arg3 = static_cast< wxDouble >(val3);
27131 if (swig_obj[3]) {
27132 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27133 if (!SWIG_IsOK(ecode4)) {
27134 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
27135 }
27136 arg4 = static_cast< int >(val4);
27137 }
27138 {
27139 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
27140 if (PyErr_Occurred()) SWIG_fail;
27141 }
27142 {
27143 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27144 }
27145 return resultobj;
27146 fail:
27147 return NULL;
27148 }
27149
27150
27151 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27152 PyObject *resultobj = 0;
27153 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27154 wxPoint2DDouble *arg2 = 0 ;
27155 int arg3 = (int) wxODDEVEN_RULE ;
27156 bool result;
27157 void *argp1 = 0 ;
27158 int res1 = 0 ;
27159 void *argp2 = 0 ;
27160 int res2 = 0 ;
27161 int val3 ;
27162 int ecode3 = 0 ;
27163
27164 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
27165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27166 if (!SWIG_IsOK(res1)) {
27167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27168 }
27169 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27170 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPoint2DDouble, 0 | 0);
27171 if (!SWIG_IsOK(res2)) {
27172 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
27173 }
27174 if (!argp2) {
27175 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
27176 }
27177 arg2 = reinterpret_cast< wxPoint2DDouble * >(argp2);
27178 if (swig_obj[2]) {
27179 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27180 if (!SWIG_IsOK(ecode3)) {
27181 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
27182 }
27183 arg3 = static_cast< int >(val3);
27184 }
27185 {
27186 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2DDouble const &)*arg2,arg3);
27187 if (PyErr_Occurred()) SWIG_fail;
27188 }
27189 {
27190 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27191 }
27192 return resultobj;
27193 fail:
27194 return NULL;
27195 }
27196
27197
27198 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
27199 int argc;
27200 PyObject *argv[5];
27201
27202 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
27203 --argc;
27204 if ((argc >= 2) && (argc <= 3)) {
27205 int _v = 0;
27206 {
27207 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxPoint2DDouble, 0);
27208 _v = SWIG_CheckState(res);
27209 }
27210 if (!_v) goto check_1;
27211 if (argc > 2) {
27212 {
27213 {
27214 int res = SWIG_AsVal_int(argv[2], NULL);
27215 _v = SWIG_CheckState(res);
27216 }
27217 }
27218 if (!_v) goto check_1;
27219 }
27220 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
27221 }
27222 check_1:
27223
27224 if ((argc >= 3) && (argc <= 4)) {
27225 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
27226 }
27227
27228 fail:
27229 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
27230 return NULL;
27231 }
27232
27233
27234 SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27235 PyObject *obj;
27236 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27237 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
27238 return SWIG_Py_Void();
27239 }
27240
27241 SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27242 return SWIG_Python_InitShadowInstance(args);
27243 }
27244
27245 SWIGINTERN int NullGraphicsPen_set(PyObject *) {
27246 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
27247 return 1;
27248 }
27249
27250
27251 SWIGINTERN PyObject *NullGraphicsPen_get(void) {
27252 PyObject *pyobj = 0;
27253
27254 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
27255 return pyobj;
27256 }
27257
27258
27259 SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
27260 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
27261 return 1;
27262 }
27263
27264
27265 SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
27266 PyObject *pyobj = 0;
27267
27268 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
27269 return pyobj;
27270 }
27271
27272
27273 SWIGINTERN int NullGraphicsFont_set(PyObject *) {
27274 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
27275 return 1;
27276 }
27277
27278
27279 SWIGINTERN PyObject *NullGraphicsFont_get(void) {
27280 PyObject *pyobj = 0;
27281
27282 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
27283 return pyobj;
27284 }
27285
27286
27287 SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
27288 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
27289 return 1;
27290 }
27291
27292
27293 SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
27294 PyObject *pyobj = 0;
27295
27296 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
27297 return pyobj;
27298 }
27299
27300
27301 SWIGINTERN int NullGraphicsPath_set(PyObject *) {
27302 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
27303 return 1;
27304 }
27305
27306
27307 SWIGINTERN PyObject *NullGraphicsPath_get(void) {
27308 PyObject *pyobj = 0;
27309
27310 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
27311 return pyobj;
27312 }
27313
27314
27315 SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27316 PyObject *resultobj = 0;
27317 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27318 void *argp1 = 0 ;
27319 int res1 = 0 ;
27320 PyObject *swig_obj[1] ;
27321
27322 if (!args) SWIG_fail;
27323 swig_obj[0] = args;
27324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
27325 if (!SWIG_IsOK(res1)) {
27326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27327 }
27328 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27329 {
27330 delete arg1;
27331
27332 if (PyErr_Occurred()) SWIG_fail;
27333 }
27334 resultobj = SWIG_Py_Void();
27335 return resultobj;
27336 fail:
27337 return NULL;
27338 }
27339
27340
27341 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27342 PyObject *resultobj = 0;
27343 wxWindowDC *arg1 = 0 ;
27344 wxGraphicsContext *result = 0 ;
27345 void *argp1 = 0 ;
27346 int res1 = 0 ;
27347
27348 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
27350 if (!SWIG_IsOK(res1)) {
27351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27352 }
27353 if (!argp1) {
27354 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27355 }
27356 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
27357 {
27358 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
27359 if (PyErr_Occurred()) SWIG_fail;
27360 }
27361 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27362 return resultobj;
27363 fail:
27364 return NULL;
27365 }
27366
27367
27368 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27369 PyObject *resultobj = 0;
27370 wxWindow *arg1 = (wxWindow *) 0 ;
27371 wxGraphicsContext *result = 0 ;
27372 void *argp1 = 0 ;
27373 int res1 = 0 ;
27374
27375 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
27377 if (!SWIG_IsOK(res1)) {
27378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
27379 }
27380 arg1 = reinterpret_cast< wxWindow * >(argp1);
27381 {
27382 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
27383 if (PyErr_Occurred()) SWIG_fail;
27384 }
27385 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27386 return resultobj;
27387 fail:
27388 return NULL;
27389 }
27390
27391
27392 SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
27393 int argc;
27394 PyObject *argv[2];
27395
27396 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
27397 --argc;
27398 if (argc == 1) {
27399 int _v = 0;
27400 {
27401 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
27402 _v = SWIG_CheckState(res);
27403 }
27404 if (!_v) goto check_1;
27405 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
27406 }
27407 check_1:
27408
27409 if (argc == 1) {
27410 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
27411 }
27412
27413 fail:
27414 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
27415 return NULL;
27416 }
27417
27418
27419 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27420 PyObject *resultobj = 0;
27421 void *arg1 = (void *) 0 ;
27422 wxGraphicsContext *result = 0 ;
27423 int res1 ;
27424 PyObject * obj0 = 0 ;
27425 char * kwnames[] = {
27426 (char *) "context", NULL
27427 };
27428
27429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
27430 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27431 if (!SWIG_IsOK(res1)) {
27432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
27433 }
27434 {
27435 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
27436 if (PyErr_Occurred()) SWIG_fail;
27437 }
27438 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27439 return resultobj;
27440 fail:
27441 return NULL;
27442 }
27443
27444
27445 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27446 PyObject *resultobj = 0;
27447 void *arg1 = (void *) 0 ;
27448 wxGraphicsContext *result = 0 ;
27449 int res1 ;
27450 PyObject * obj0 = 0 ;
27451 char * kwnames[] = {
27452 (char *) "window", NULL
27453 };
27454
27455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
27456 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27457 if (!SWIG_IsOK(res1)) {
27458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
27459 }
27460 {
27461 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
27462 if (PyErr_Occurred()) SWIG_fail;
27463 }
27464 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27465 return resultobj;
27466 fail:
27467 return NULL;
27468 }
27469
27470
27471 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27472 PyObject *resultobj = 0;
27473 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27474 wxGraphicsPath result;
27475 void *argp1 = 0 ;
27476 int res1 = 0 ;
27477 PyObject *swig_obj[1] ;
27478
27479 if (!args) SWIG_fail;
27480 swig_obj[0] = args;
27481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27482 if (!SWIG_IsOK(res1)) {
27483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27484 }
27485 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27486 {
27487 result = (arg1)->CreatePath();
27488 if (PyErr_Occurred()) SWIG_fail;
27489 }
27490 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
27491 return resultobj;
27492 fail:
27493 return NULL;
27494 }
27495
27496
27497 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27498 PyObject *resultobj = 0;
27499 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27500 wxPen *arg2 = 0 ;
27501 wxGraphicsPen result;
27502 void *argp1 = 0 ;
27503 int res1 = 0 ;
27504 void *argp2 = 0 ;
27505 int res2 = 0 ;
27506 PyObject * obj0 = 0 ;
27507 PyObject * obj1 = 0 ;
27508 char * kwnames[] = {
27509 (char *) "self",(char *) "pen", NULL
27510 };
27511
27512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
27513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27514 if (!SWIG_IsOK(res1)) {
27515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27516 }
27517 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27518 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
27519 if (!SWIG_IsOK(res2)) {
27520 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27521 }
27522 if (!argp2) {
27523 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27524 }
27525 arg2 = reinterpret_cast< wxPen * >(argp2);
27526 {
27527 result = (arg1)->CreatePen((wxPen const &)*arg2);
27528 if (PyErr_Occurred()) SWIG_fail;
27529 }
27530 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
27531 return resultobj;
27532 fail:
27533 return NULL;
27534 }
27535
27536
27537 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27538 PyObject *resultobj = 0;
27539 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27540 wxBrush *arg2 = 0 ;
27541 wxGraphicsBrush result;
27542 void *argp1 = 0 ;
27543 int res1 = 0 ;
27544 void *argp2 = 0 ;
27545 int res2 = 0 ;
27546 PyObject * obj0 = 0 ;
27547 PyObject * obj1 = 0 ;
27548 char * kwnames[] = {
27549 (char *) "self",(char *) "brush", NULL
27550 };
27551
27552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
27553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27554 if (!SWIG_IsOK(res1)) {
27555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27556 }
27557 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27558 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
27559 if (!SWIG_IsOK(res2)) {
27560 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27561 }
27562 if (!argp2) {
27563 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27564 }
27565 arg2 = reinterpret_cast< wxBrush * >(argp2);
27566 {
27567 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
27568 if (PyErr_Occurred()) SWIG_fail;
27569 }
27570 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
27571 return resultobj;
27572 fail:
27573 return NULL;
27574 }
27575
27576
27577 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27578 PyObject *resultobj = 0;
27579 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27580 wxDouble arg2 ;
27581 wxDouble arg3 ;
27582 wxDouble arg4 ;
27583 wxDouble arg5 ;
27584 wxColour *arg6 = 0 ;
27585 wxColour *arg7 = 0 ;
27586 wxGraphicsBrush result;
27587 void *argp1 = 0 ;
27588 int res1 = 0 ;
27589 double val2 ;
27590 int ecode2 = 0 ;
27591 double val3 ;
27592 int ecode3 = 0 ;
27593 double val4 ;
27594 int ecode4 = 0 ;
27595 double val5 ;
27596 int ecode5 = 0 ;
27597 wxColour temp6 ;
27598 wxColour temp7 ;
27599 PyObject * obj0 = 0 ;
27600 PyObject * obj1 = 0 ;
27601 PyObject * obj2 = 0 ;
27602 PyObject * obj3 = 0 ;
27603 PyObject * obj4 = 0 ;
27604 PyObject * obj5 = 0 ;
27605 PyObject * obj6 = 0 ;
27606 char * kwnames[] = {
27607 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
27608 };
27609
27610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27612 if (!SWIG_IsOK(res1)) {
27613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27614 }
27615 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27616 ecode2 = SWIG_AsVal_double(obj1, &val2);
27617 if (!SWIG_IsOK(ecode2)) {
27618 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
27619 }
27620 arg2 = static_cast< wxDouble >(val2);
27621 ecode3 = SWIG_AsVal_double(obj2, &val3);
27622 if (!SWIG_IsOK(ecode3)) {
27623 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
27624 }
27625 arg3 = static_cast< wxDouble >(val3);
27626 ecode4 = SWIG_AsVal_double(obj3, &val4);
27627 if (!SWIG_IsOK(ecode4)) {
27628 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
27629 }
27630 arg4 = static_cast< wxDouble >(val4);
27631 ecode5 = SWIG_AsVal_double(obj4, &val5);
27632 if (!SWIG_IsOK(ecode5)) {
27633 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
27634 }
27635 arg5 = static_cast< wxDouble >(val5);
27636 {
27637 arg6 = &temp6;
27638 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
27639 }
27640 {
27641 arg7 = &temp7;
27642 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
27643 }
27644 {
27645 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
27646 if (PyErr_Occurred()) SWIG_fail;
27647 }
27648 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
27649 return resultobj;
27650 fail:
27651 return NULL;
27652 }
27653
27654
27655 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27656 PyObject *resultobj = 0;
27657 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27658 wxDouble arg2 ;
27659 wxDouble arg3 ;
27660 wxDouble arg4 ;
27661 wxDouble arg5 ;
27662 wxDouble arg6 ;
27663 wxColour *arg7 = 0 ;
27664 wxColour *arg8 = 0 ;
27665 wxGraphicsBrush result;
27666 void *argp1 = 0 ;
27667 int res1 = 0 ;
27668 double val2 ;
27669 int ecode2 = 0 ;
27670 double val3 ;
27671 int ecode3 = 0 ;
27672 double val4 ;
27673 int ecode4 = 0 ;
27674 double val5 ;
27675 int ecode5 = 0 ;
27676 double val6 ;
27677 int ecode6 = 0 ;
27678 wxColour temp7 ;
27679 wxColour temp8 ;
27680 PyObject * obj0 = 0 ;
27681 PyObject * obj1 = 0 ;
27682 PyObject * obj2 = 0 ;
27683 PyObject * obj3 = 0 ;
27684 PyObject * obj4 = 0 ;
27685 PyObject * obj5 = 0 ;
27686 PyObject * obj6 = 0 ;
27687 PyObject * obj7 = 0 ;
27688 char * kwnames[] = {
27689 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
27690 };
27691
27692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
27693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27694 if (!SWIG_IsOK(res1)) {
27695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27696 }
27697 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27698 ecode2 = SWIG_AsVal_double(obj1, &val2);
27699 if (!SWIG_IsOK(ecode2)) {
27700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
27701 }
27702 arg2 = static_cast< wxDouble >(val2);
27703 ecode3 = SWIG_AsVal_double(obj2, &val3);
27704 if (!SWIG_IsOK(ecode3)) {
27705 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
27706 }
27707 arg3 = static_cast< wxDouble >(val3);
27708 ecode4 = SWIG_AsVal_double(obj3, &val4);
27709 if (!SWIG_IsOK(ecode4)) {
27710 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
27711 }
27712 arg4 = static_cast< wxDouble >(val4);
27713 ecode5 = SWIG_AsVal_double(obj4, &val5);
27714 if (!SWIG_IsOK(ecode5)) {
27715 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
27716 }
27717 arg5 = static_cast< wxDouble >(val5);
27718 ecode6 = SWIG_AsVal_double(obj5, &val6);
27719 if (!SWIG_IsOK(ecode6)) {
27720 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
27721 }
27722 arg6 = static_cast< wxDouble >(val6);
27723 {
27724 arg7 = &temp7;
27725 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
27726 }
27727 {
27728 arg8 = &temp8;
27729 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
27730 }
27731 {
27732 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
27733 if (PyErr_Occurred()) SWIG_fail;
27734 }
27735 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
27736 return resultobj;
27737 fail:
27738 return NULL;
27739 }
27740
27741
27742 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27743 PyObject *resultobj = 0;
27744 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27745 wxFont *arg2 = 0 ;
27746 wxColour const &arg3_defvalue = *wxBLACK ;
27747 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
27748 wxGraphicsFont result;
27749 void *argp1 = 0 ;
27750 int res1 = 0 ;
27751 void *argp2 = 0 ;
27752 int res2 = 0 ;
27753 wxColour temp3 ;
27754 PyObject * obj0 = 0 ;
27755 PyObject * obj1 = 0 ;
27756 PyObject * obj2 = 0 ;
27757 char * kwnames[] = {
27758 (char *) "self",(char *) "font",(char *) "col", NULL
27759 };
27760
27761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27763 if (!SWIG_IsOK(res1)) {
27764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27765 }
27766 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27767 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27768 if (!SWIG_IsOK(res2)) {
27769 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27770 }
27771 if (!argp2) {
27772 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27773 }
27774 arg2 = reinterpret_cast< wxFont * >(argp2);
27775 if (obj2) {
27776 {
27777 arg3 = &temp3;
27778 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
27779 }
27780 }
27781 {
27782 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
27783 if (PyErr_Occurred()) SWIG_fail;
27784 }
27785 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
27786 return resultobj;
27787 fail:
27788 return NULL;
27789 }
27790
27791
27792 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27793 PyObject *resultobj = 0;
27794 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27795 wxDouble arg2 = (wxDouble) 1.0 ;
27796 wxDouble arg3 = (wxDouble) 0.0 ;
27797 wxDouble arg4 = (wxDouble) 0.0 ;
27798 wxDouble arg5 = (wxDouble) 1.0 ;
27799 wxDouble arg6 = (wxDouble) 0.0 ;
27800 wxDouble arg7 = (wxDouble) 0.0 ;
27801 wxGraphicsMatrix result;
27802 void *argp1 = 0 ;
27803 int res1 = 0 ;
27804 double val2 ;
27805 int ecode2 = 0 ;
27806 double val3 ;
27807 int ecode3 = 0 ;
27808 double val4 ;
27809 int ecode4 = 0 ;
27810 double val5 ;
27811 int ecode5 = 0 ;
27812 double val6 ;
27813 int ecode6 = 0 ;
27814 double val7 ;
27815 int ecode7 = 0 ;
27816 PyObject * obj0 = 0 ;
27817 PyObject * obj1 = 0 ;
27818 PyObject * obj2 = 0 ;
27819 PyObject * obj3 = 0 ;
27820 PyObject * obj4 = 0 ;
27821 PyObject * obj5 = 0 ;
27822 PyObject * obj6 = 0 ;
27823 char * kwnames[] = {
27824 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
27825 };
27826
27827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27829 if (!SWIG_IsOK(res1)) {
27830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27831 }
27832 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27833 if (obj1) {
27834 ecode2 = SWIG_AsVal_double(obj1, &val2);
27835 if (!SWIG_IsOK(ecode2)) {
27836 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
27837 }
27838 arg2 = static_cast< wxDouble >(val2);
27839 }
27840 if (obj2) {
27841 ecode3 = SWIG_AsVal_double(obj2, &val3);
27842 if (!SWIG_IsOK(ecode3)) {
27843 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
27844 }
27845 arg3 = static_cast< wxDouble >(val3);
27846 }
27847 if (obj3) {
27848 ecode4 = SWIG_AsVal_double(obj3, &val4);
27849 if (!SWIG_IsOK(ecode4)) {
27850 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
27851 }
27852 arg4 = static_cast< wxDouble >(val4);
27853 }
27854 if (obj4) {
27855 ecode5 = SWIG_AsVal_double(obj4, &val5);
27856 if (!SWIG_IsOK(ecode5)) {
27857 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
27858 }
27859 arg5 = static_cast< wxDouble >(val5);
27860 }
27861 if (obj5) {
27862 ecode6 = SWIG_AsVal_double(obj5, &val6);
27863 if (!SWIG_IsOK(ecode6)) {
27864 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
27865 }
27866 arg6 = static_cast< wxDouble >(val6);
27867 }
27868 if (obj6) {
27869 ecode7 = SWIG_AsVal_double(obj6, &val7);
27870 if (!SWIG_IsOK(ecode7)) {
27871 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
27872 }
27873 arg7 = static_cast< wxDouble >(val7);
27874 }
27875 {
27876 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
27877 if (PyErr_Occurred()) SWIG_fail;
27878 }
27879 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
27880 return resultobj;
27881 fail:
27882 return NULL;
27883 }
27884
27885
27886 SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27887 PyObject *resultobj = 0;
27888 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27889 void *argp1 = 0 ;
27890 int res1 = 0 ;
27891 PyObject *swig_obj[1] ;
27892
27893 if (!args) SWIG_fail;
27894 swig_obj[0] = args;
27895 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27896 if (!SWIG_IsOK(res1)) {
27897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27898 }
27899 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27900 {
27901 (arg1)->PushState();
27902 if (PyErr_Occurred()) SWIG_fail;
27903 }
27904 resultobj = SWIG_Py_Void();
27905 return resultobj;
27906 fail:
27907 return NULL;
27908 }
27909
27910
27911 SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27912 PyObject *resultobj = 0;
27913 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27914 void *argp1 = 0 ;
27915 int res1 = 0 ;
27916 PyObject *swig_obj[1] ;
27917
27918 if (!args) SWIG_fail;
27919 swig_obj[0] = args;
27920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27921 if (!SWIG_IsOK(res1)) {
27922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27923 }
27924 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27925 {
27926 (arg1)->PopState();
27927 if (PyErr_Occurred()) SWIG_fail;
27928 }
27929 resultobj = SWIG_Py_Void();
27930 return resultobj;
27931 fail:
27932 return NULL;
27933 }
27934
27935
27936 SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27937 PyObject *resultobj = 0;
27938 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27939 wxRegion *arg2 = 0 ;
27940 void *argp1 = 0 ;
27941 int res1 = 0 ;
27942 void *argp2 = 0 ;
27943 int res2 = 0 ;
27944 PyObject * obj0 = 0 ;
27945 PyObject * obj1 = 0 ;
27946 char * kwnames[] = {
27947 (char *) "self",(char *) "region", NULL
27948 };
27949
27950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
27951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27952 if (!SWIG_IsOK(res1)) {
27953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27954 }
27955 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27956 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
27957 if (!SWIG_IsOK(res2)) {
27958 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
27959 }
27960 if (!argp2) {
27961 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
27962 }
27963 arg2 = reinterpret_cast< wxRegion * >(argp2);
27964 {
27965 (arg1)->Clip((wxRegion const &)*arg2);
27966 if (PyErr_Occurred()) SWIG_fail;
27967 }
27968 resultobj = SWIG_Py_Void();
27969 return resultobj;
27970 fail:
27971 return NULL;
27972 }
27973
27974
27975 SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27976 PyObject *resultobj = 0;
27977 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27978 wxDouble arg2 ;
27979 wxDouble arg3 ;
27980 wxDouble arg4 ;
27981 wxDouble arg5 ;
27982 void *argp1 = 0 ;
27983 int res1 = 0 ;
27984 double val2 ;
27985 int ecode2 = 0 ;
27986 double val3 ;
27987 int ecode3 = 0 ;
27988 double val4 ;
27989 int ecode4 = 0 ;
27990 double val5 ;
27991 int ecode5 = 0 ;
27992 PyObject * obj0 = 0 ;
27993 PyObject * obj1 = 0 ;
27994 PyObject * obj2 = 0 ;
27995 PyObject * obj3 = 0 ;
27996 PyObject * obj4 = 0 ;
27997 char * kwnames[] = {
27998 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27999 };
28000
28001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28003 if (!SWIG_IsOK(res1)) {
28004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28005 }
28006 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28007 ecode2 = SWIG_AsVal_double(obj1, &val2);
28008 if (!SWIG_IsOK(ecode2)) {
28009 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
28010 }
28011 arg2 = static_cast< wxDouble >(val2);
28012 ecode3 = SWIG_AsVal_double(obj2, &val3);
28013 if (!SWIG_IsOK(ecode3)) {
28014 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
28015 }
28016 arg3 = static_cast< wxDouble >(val3);
28017 ecode4 = SWIG_AsVal_double(obj3, &val4);
28018 if (!SWIG_IsOK(ecode4)) {
28019 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
28020 }
28021 arg4 = static_cast< wxDouble >(val4);
28022 ecode5 = SWIG_AsVal_double(obj4, &val5);
28023 if (!SWIG_IsOK(ecode5)) {
28024 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
28025 }
28026 arg5 = static_cast< wxDouble >(val5);
28027 {
28028 (arg1)->Clip(arg2,arg3,arg4,arg5);
28029 if (PyErr_Occurred()) SWIG_fail;
28030 }
28031 resultobj = SWIG_Py_Void();
28032 return resultobj;
28033 fail:
28034 return NULL;
28035 }
28036
28037
28038 SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28039 PyObject *resultobj = 0;
28040 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28041 void *argp1 = 0 ;
28042 int res1 = 0 ;
28043 PyObject *swig_obj[1] ;
28044
28045 if (!args) SWIG_fail;
28046 swig_obj[0] = args;
28047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28048 if (!SWIG_IsOK(res1)) {
28049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28050 }
28051 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28052 {
28053 (arg1)->ResetClip();
28054 if (PyErr_Occurred()) SWIG_fail;
28055 }
28056 resultobj = SWIG_Py_Void();
28057 return resultobj;
28058 fail:
28059 return NULL;
28060 }
28061
28062
28063 SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28064 PyObject *resultobj = 0;
28065 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28066 void *result = 0 ;
28067 void *argp1 = 0 ;
28068 int res1 = 0 ;
28069 PyObject *swig_obj[1] ;
28070
28071 if (!args) SWIG_fail;
28072 swig_obj[0] = args;
28073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28074 if (!SWIG_IsOK(res1)) {
28075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28076 }
28077 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28078 {
28079 result = (void *)(arg1)->GetNativeContext();
28080 if (PyErr_Occurred()) SWIG_fail;
28081 }
28082 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
28083 return resultobj;
28084 fail:
28085 return NULL;
28086 }
28087
28088
28089 SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28090 PyObject *resultobj = 0;
28091 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28092 wxDouble arg2 ;
28093 wxDouble arg3 ;
28094 void *argp1 = 0 ;
28095 int res1 = 0 ;
28096 double val2 ;
28097 int ecode2 = 0 ;
28098 double val3 ;
28099 int ecode3 = 0 ;
28100 PyObject * obj0 = 0 ;
28101 PyObject * obj1 = 0 ;
28102 PyObject * obj2 = 0 ;
28103 char * kwnames[] = {
28104 (char *) "self",(char *) "dx",(char *) "dy", NULL
28105 };
28106
28107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28109 if (!SWIG_IsOK(res1)) {
28110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28111 }
28112 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28113 ecode2 = SWIG_AsVal_double(obj1, &val2);
28114 if (!SWIG_IsOK(ecode2)) {
28115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
28116 }
28117 arg2 = static_cast< wxDouble >(val2);
28118 ecode3 = SWIG_AsVal_double(obj2, &val3);
28119 if (!SWIG_IsOK(ecode3)) {
28120 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
28121 }
28122 arg3 = static_cast< wxDouble >(val3);
28123 {
28124 (arg1)->Translate(arg2,arg3);
28125 if (PyErr_Occurred()) SWIG_fail;
28126 }
28127 resultobj = SWIG_Py_Void();
28128 return resultobj;
28129 fail:
28130 return NULL;
28131 }
28132
28133
28134 SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28135 PyObject *resultobj = 0;
28136 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28137 wxDouble arg2 ;
28138 wxDouble arg3 ;
28139 void *argp1 = 0 ;
28140 int res1 = 0 ;
28141 double val2 ;
28142 int ecode2 = 0 ;
28143 double val3 ;
28144 int ecode3 = 0 ;
28145 PyObject * obj0 = 0 ;
28146 PyObject * obj1 = 0 ;
28147 PyObject * obj2 = 0 ;
28148 char * kwnames[] = {
28149 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
28150 };
28151
28152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28154 if (!SWIG_IsOK(res1)) {
28155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28156 }
28157 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28158 ecode2 = SWIG_AsVal_double(obj1, &val2);
28159 if (!SWIG_IsOK(ecode2)) {
28160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
28161 }
28162 arg2 = static_cast< wxDouble >(val2);
28163 ecode3 = SWIG_AsVal_double(obj2, &val3);
28164 if (!SWIG_IsOK(ecode3)) {
28165 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
28166 }
28167 arg3 = static_cast< wxDouble >(val3);
28168 {
28169 (arg1)->Scale(arg2,arg3);
28170 if (PyErr_Occurred()) SWIG_fail;
28171 }
28172 resultobj = SWIG_Py_Void();
28173 return resultobj;
28174 fail:
28175 return NULL;
28176 }
28177
28178
28179 SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28180 PyObject *resultobj = 0;
28181 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28182 wxDouble arg2 ;
28183 void *argp1 = 0 ;
28184 int res1 = 0 ;
28185 double val2 ;
28186 int ecode2 = 0 ;
28187 PyObject * obj0 = 0 ;
28188 PyObject * obj1 = 0 ;
28189 char * kwnames[] = {
28190 (char *) "self",(char *) "angle", NULL
28191 };
28192
28193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
28194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28195 if (!SWIG_IsOK(res1)) {
28196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28197 }
28198 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28199 ecode2 = SWIG_AsVal_double(obj1, &val2);
28200 if (!SWIG_IsOK(ecode2)) {
28201 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
28202 }
28203 arg2 = static_cast< wxDouble >(val2);
28204 {
28205 (arg1)->Rotate(arg2);
28206 if (PyErr_Occurred()) SWIG_fail;
28207 }
28208 resultobj = SWIG_Py_Void();
28209 return resultobj;
28210 fail:
28211 return NULL;
28212 }
28213
28214
28215 SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28216 PyObject *resultobj = 0;
28217 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28218 wxGraphicsMatrix *arg2 = 0 ;
28219 void *argp1 = 0 ;
28220 int res1 = 0 ;
28221 void *argp2 = 0 ;
28222 int res2 = 0 ;
28223 PyObject * obj0 = 0 ;
28224 PyObject * obj1 = 0 ;
28225 char * kwnames[] = {
28226 (char *) "self",(char *) "matrix", NULL
28227 };
28228
28229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28231 if (!SWIG_IsOK(res1)) {
28232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28233 }
28234 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28235 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28236 if (!SWIG_IsOK(res2)) {
28237 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28238 }
28239 if (!argp2) {
28240 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28241 }
28242 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28243 {
28244 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
28245 if (PyErr_Occurred()) SWIG_fail;
28246 }
28247 resultobj = SWIG_Py_Void();
28248 return resultobj;
28249 fail:
28250 return NULL;
28251 }
28252
28253
28254 SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28255 PyObject *resultobj = 0;
28256 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28257 wxGraphicsMatrix *arg2 = 0 ;
28258 void *argp1 = 0 ;
28259 int res1 = 0 ;
28260 void *argp2 = 0 ;
28261 int res2 = 0 ;
28262 PyObject * obj0 = 0 ;
28263 PyObject * obj1 = 0 ;
28264 char * kwnames[] = {
28265 (char *) "self",(char *) "matrix", NULL
28266 };
28267
28268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28270 if (!SWIG_IsOK(res1)) {
28271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28272 }
28273 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28274 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28275 if (!SWIG_IsOK(res2)) {
28276 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28277 }
28278 if (!argp2) {
28279 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28280 }
28281 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28282 {
28283 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
28284 if (PyErr_Occurred()) SWIG_fail;
28285 }
28286 resultobj = SWIG_Py_Void();
28287 return resultobj;
28288 fail:
28289 return NULL;
28290 }
28291
28292
28293 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28294 PyObject *resultobj = 0;
28295 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28296 wxGraphicsMatrix result;
28297 void *argp1 = 0 ;
28298 int res1 = 0 ;
28299 PyObject *swig_obj[1] ;
28300
28301 if (!args) SWIG_fail;
28302 swig_obj[0] = args;
28303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28304 if (!SWIG_IsOK(res1)) {
28305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28306 }
28307 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28308 {
28309 result = ((wxGraphicsContext const *)arg1)->GetTransform();
28310 if (PyErr_Occurred()) SWIG_fail;
28311 }
28312 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28313 return resultobj;
28314 fail:
28315 return NULL;
28316 }
28317
28318
28319 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28320 PyObject *resultobj = 0;
28321 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28322 wxGraphicsPen *arg2 = 0 ;
28323 void *argp1 = 0 ;
28324 int res1 = 0 ;
28325 void *argp2 = 0 ;
28326 int res2 = 0 ;
28327
28328 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28330 if (!SWIG_IsOK(res1)) {
28331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28332 }
28333 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28334 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
28335 if (!SWIG_IsOK(res2)) {
28336 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28337 }
28338 if (!argp2) {
28339 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28340 }
28341 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
28342 {
28343 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
28344 if (PyErr_Occurred()) SWIG_fail;
28345 }
28346 resultobj = SWIG_Py_Void();
28347 return resultobj;
28348 fail:
28349 return NULL;
28350 }
28351
28352
28353 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28354 PyObject *resultobj = 0;
28355 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28356 wxPen *arg2 = 0 ;
28357 void *argp1 = 0 ;
28358 int res1 = 0 ;
28359 void *argp2 = 0 ;
28360 int res2 = 0 ;
28361
28362 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28364 if (!SWIG_IsOK(res1)) {
28365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28366 }
28367 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28368 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
28369 if (!SWIG_IsOK(res2)) {
28370 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28371 }
28372 if (!argp2) {
28373 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28374 }
28375 arg2 = reinterpret_cast< wxPen * >(argp2);
28376 {
28377 (arg1)->SetPen((wxPen const &)*arg2);
28378 if (PyErr_Occurred()) SWIG_fail;
28379 }
28380 resultobj = SWIG_Py_Void();
28381 return resultobj;
28382 fail:
28383 return NULL;
28384 }
28385
28386
28387 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
28388 int argc;
28389 PyObject *argv[3];
28390
28391 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
28392 --argc;
28393 if (argc == 2) {
28394 int _v = 0;
28395 {
28396 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
28397 _v = SWIG_CheckState(res);
28398 }
28399 if (!_v) goto check_1;
28400 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
28401 }
28402 check_1:
28403
28404 if (argc == 2) {
28405 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
28406 }
28407
28408 fail:
28409 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
28410 return NULL;
28411 }
28412
28413
28414 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28415 PyObject *resultobj = 0;
28416 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28417 wxGraphicsBrush *arg2 = 0 ;
28418 void *argp1 = 0 ;
28419 int res1 = 0 ;
28420 void *argp2 = 0 ;
28421 int res2 = 0 ;
28422
28423 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28425 if (!SWIG_IsOK(res1)) {
28426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28427 }
28428 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28429 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
28430 if (!SWIG_IsOK(res2)) {
28431 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28432 }
28433 if (!argp2) {
28434 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28435 }
28436 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
28437 {
28438 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
28439 if (PyErr_Occurred()) SWIG_fail;
28440 }
28441 resultobj = SWIG_Py_Void();
28442 return resultobj;
28443 fail:
28444 return NULL;
28445 }
28446
28447
28448 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28449 PyObject *resultobj = 0;
28450 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28451 wxBrush *arg2 = 0 ;
28452 void *argp1 = 0 ;
28453 int res1 = 0 ;
28454 void *argp2 = 0 ;
28455 int res2 = 0 ;
28456
28457 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28459 if (!SWIG_IsOK(res1)) {
28460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28461 }
28462 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28463 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
28464 if (!SWIG_IsOK(res2)) {
28465 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28466 }
28467 if (!argp2) {
28468 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28469 }
28470 arg2 = reinterpret_cast< wxBrush * >(argp2);
28471 {
28472 (arg1)->SetBrush((wxBrush const &)*arg2);
28473 if (PyErr_Occurred()) SWIG_fail;
28474 }
28475 resultobj = SWIG_Py_Void();
28476 return resultobj;
28477 fail:
28478 return NULL;
28479 }
28480
28481
28482 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
28483 int argc;
28484 PyObject *argv[3];
28485
28486 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
28487 --argc;
28488 if (argc == 2) {
28489 int _v = 0;
28490 {
28491 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
28492 _v = SWIG_CheckState(res);
28493 }
28494 if (!_v) goto check_1;
28495 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
28496 }
28497 check_1:
28498
28499 if (argc == 2) {
28500 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
28501 }
28502
28503 fail:
28504 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
28505 return NULL;
28506 }
28507
28508
28509 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28510 PyObject *resultobj = 0;
28511 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28512 wxGraphicsFont *arg2 = 0 ;
28513 void *argp1 = 0 ;
28514 int res1 = 0 ;
28515 void *argp2 = 0 ;
28516 int res2 = 0 ;
28517
28518 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28520 if (!SWIG_IsOK(res1)) {
28521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28522 }
28523 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28524 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
28525 if (!SWIG_IsOK(res2)) {
28526 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
28527 }
28528 if (!argp2) {
28529 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
28530 }
28531 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
28532 {
28533 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
28534 if (PyErr_Occurred()) SWIG_fail;
28535 }
28536 resultobj = SWIG_Py_Void();
28537 return resultobj;
28538 fail:
28539 return NULL;
28540 }
28541
28542
28543 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28544 PyObject *resultobj = 0;
28545 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28546 wxFont *arg2 = 0 ;
28547 wxColour const &arg3_defvalue = *wxBLACK ;
28548 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
28549 void *argp1 = 0 ;
28550 int res1 = 0 ;
28551 void *argp2 = 0 ;
28552 int res2 = 0 ;
28553 wxColour temp3 ;
28554
28555 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28557 if (!SWIG_IsOK(res1)) {
28558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28559 }
28560 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28561 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28562 if (!SWIG_IsOK(res2)) {
28563 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28564 }
28565 if (!argp2) {
28566 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28567 }
28568 arg2 = reinterpret_cast< wxFont * >(argp2);
28569 if (swig_obj[2]) {
28570 {
28571 arg3 = &temp3;
28572 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
28573 }
28574 }
28575 {
28576 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
28577 if (PyErr_Occurred()) SWIG_fail;
28578 }
28579 resultobj = SWIG_Py_Void();
28580 return resultobj;
28581 fail:
28582 return NULL;
28583 }
28584
28585
28586 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
28587 int argc;
28588 PyObject *argv[4];
28589
28590 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
28591 --argc;
28592 if (argc == 2) {
28593 int _v = 0;
28594 {
28595 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
28596 _v = SWIG_CheckState(res);
28597 }
28598 if (!_v) goto check_1;
28599 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
28600 }
28601 check_1:
28602
28603 if ((argc >= 2) && (argc <= 3)) {
28604 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
28605 }
28606
28607 fail:
28608 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
28609 return NULL;
28610 }
28611
28612
28613 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28614 PyObject *resultobj = 0;
28615 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28616 wxGraphicsPath *arg2 = 0 ;
28617 void *argp1 = 0 ;
28618 int res1 = 0 ;
28619 void *argp2 = 0 ;
28620 int res2 = 0 ;
28621 PyObject * obj0 = 0 ;
28622 PyObject * obj1 = 0 ;
28623 char * kwnames[] = {
28624 (char *) "self",(char *) "path", NULL
28625 };
28626
28627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
28628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28629 if (!SWIG_IsOK(res1)) {
28630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28631 }
28632 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28633 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
28634 if (!SWIG_IsOK(res2)) {
28635 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28636 }
28637 if (!argp2) {
28638 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28639 }
28640 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28641 {
28642 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
28643 if (PyErr_Occurred()) SWIG_fail;
28644 }
28645 resultobj = SWIG_Py_Void();
28646 return resultobj;
28647 fail:
28648 return NULL;
28649 }
28650
28651
28652 SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28653 PyObject *resultobj = 0;
28654 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28655 wxGraphicsPath *arg2 = 0 ;
28656 int arg3 = (int) wxODDEVEN_RULE ;
28657 void *argp1 = 0 ;
28658 int res1 = 0 ;
28659 void *argp2 = 0 ;
28660 int res2 = 0 ;
28661 int val3 ;
28662 int ecode3 = 0 ;
28663 PyObject * obj0 = 0 ;
28664 PyObject * obj1 = 0 ;
28665 PyObject * obj2 = 0 ;
28666 char * kwnames[] = {
28667 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28668 };
28669
28670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28672 if (!SWIG_IsOK(res1)) {
28673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28674 }
28675 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28676 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
28677 if (!SWIG_IsOK(res2)) {
28678 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28679 }
28680 if (!argp2) {
28681 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28682 }
28683 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28684 if (obj2) {
28685 ecode3 = SWIG_AsVal_int(obj2, &val3);
28686 if (!SWIG_IsOK(ecode3)) {
28687 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
28688 }
28689 arg3 = static_cast< int >(val3);
28690 }
28691 {
28692 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
28693 if (PyErr_Occurred()) SWIG_fail;
28694 }
28695 resultobj = SWIG_Py_Void();
28696 return resultobj;
28697 fail:
28698 return NULL;
28699 }
28700
28701
28702 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28703 PyObject *resultobj = 0;
28704 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28705 wxGraphicsPath *arg2 = 0 ;
28706 int arg3 = (int) wxODDEVEN_RULE ;
28707 void *argp1 = 0 ;
28708 int res1 = 0 ;
28709 void *argp2 = 0 ;
28710 int res2 = 0 ;
28711 int val3 ;
28712 int ecode3 = 0 ;
28713 PyObject * obj0 = 0 ;
28714 PyObject * obj1 = 0 ;
28715 PyObject * obj2 = 0 ;
28716 char * kwnames[] = {
28717 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28718 };
28719
28720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28722 if (!SWIG_IsOK(res1)) {
28723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28724 }
28725 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28726 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
28727 if (!SWIG_IsOK(res2)) {
28728 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28729 }
28730 if (!argp2) {
28731 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28732 }
28733 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28734 if (obj2) {
28735 ecode3 = SWIG_AsVal_int(obj2, &val3);
28736 if (!SWIG_IsOK(ecode3)) {
28737 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
28738 }
28739 arg3 = static_cast< int >(val3);
28740 }
28741 {
28742 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
28743 if (PyErr_Occurred()) SWIG_fail;
28744 }
28745 resultobj = SWIG_Py_Void();
28746 return resultobj;
28747 fail:
28748 return NULL;
28749 }
28750
28751
28752 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28753 PyObject *resultobj = 0;
28754 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28755 wxString *arg2 = 0 ;
28756 wxDouble arg3 ;
28757 wxDouble arg4 ;
28758 void *argp1 = 0 ;
28759 int res1 = 0 ;
28760 bool temp2 = false ;
28761 double val3 ;
28762 int ecode3 = 0 ;
28763 double val4 ;
28764 int ecode4 = 0 ;
28765 PyObject * obj0 = 0 ;
28766 PyObject * obj1 = 0 ;
28767 PyObject * obj2 = 0 ;
28768 PyObject * obj3 = 0 ;
28769 char * kwnames[] = {
28770 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
28771 };
28772
28773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28775 if (!SWIG_IsOK(res1)) {
28776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28777 }
28778 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28779 {
28780 arg2 = wxString_in_helper(obj1);
28781 if (arg2 == NULL) SWIG_fail;
28782 temp2 = true;
28783 }
28784 ecode3 = SWIG_AsVal_double(obj2, &val3);
28785 if (!SWIG_IsOK(ecode3)) {
28786 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
28787 }
28788 arg3 = static_cast< wxDouble >(val3);
28789 ecode4 = SWIG_AsVal_double(obj3, &val4);
28790 if (!SWIG_IsOK(ecode4)) {
28791 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
28792 }
28793 arg4 = static_cast< wxDouble >(val4);
28794 {
28795 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
28796 if (PyErr_Occurred()) SWIG_fail;
28797 }
28798 resultobj = SWIG_Py_Void();
28799 {
28800 if (temp2)
28801 delete arg2;
28802 }
28803 return resultobj;
28804 fail:
28805 {
28806 if (temp2)
28807 delete arg2;
28808 }
28809 return NULL;
28810 }
28811
28812
28813 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28814 PyObject *resultobj = 0;
28815 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28816 wxString *arg2 = 0 ;
28817 wxDouble arg3 ;
28818 wxDouble arg4 ;
28819 wxDouble arg5 ;
28820 void *argp1 = 0 ;
28821 int res1 = 0 ;
28822 bool temp2 = false ;
28823 double val3 ;
28824 int ecode3 = 0 ;
28825 double val4 ;
28826 int ecode4 = 0 ;
28827 double val5 ;
28828 int ecode5 = 0 ;
28829 PyObject * obj0 = 0 ;
28830 PyObject * obj1 = 0 ;
28831 PyObject * obj2 = 0 ;
28832 PyObject * obj3 = 0 ;
28833 PyObject * obj4 = 0 ;
28834 char * kwnames[] = {
28835 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
28836 };
28837
28838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28840 if (!SWIG_IsOK(res1)) {
28841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28842 }
28843 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28844 {
28845 arg2 = wxString_in_helper(obj1);
28846 if (arg2 == NULL) SWIG_fail;
28847 temp2 = true;
28848 }
28849 ecode3 = SWIG_AsVal_double(obj2, &val3);
28850 if (!SWIG_IsOK(ecode3)) {
28851 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
28852 }
28853 arg3 = static_cast< wxDouble >(val3);
28854 ecode4 = SWIG_AsVal_double(obj3, &val4);
28855 if (!SWIG_IsOK(ecode4)) {
28856 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
28857 }
28858 arg4 = static_cast< wxDouble >(val4);
28859 ecode5 = SWIG_AsVal_double(obj4, &val5);
28860 if (!SWIG_IsOK(ecode5)) {
28861 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
28862 }
28863 arg5 = static_cast< wxDouble >(val5);
28864 {
28865 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
28866 if (PyErr_Occurred()) SWIG_fail;
28867 }
28868 resultobj = SWIG_Py_Void();
28869 {
28870 if (temp2)
28871 delete arg2;
28872 }
28873 return resultobj;
28874 fail:
28875 {
28876 if (temp2)
28877 delete arg2;
28878 }
28879 return NULL;
28880 }
28881
28882
28883 SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28884 PyObject *resultobj = 0;
28885 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28886 wxString *arg2 = 0 ;
28887 wxDouble *arg3 = (wxDouble *) 0 ;
28888 wxDouble *arg4 = (wxDouble *) 0 ;
28889 wxDouble *arg5 = (wxDouble *) 0 ;
28890 wxDouble *arg6 = (wxDouble *) 0 ;
28891 void *argp1 = 0 ;
28892 int res1 = 0 ;
28893 bool temp2 = false ;
28894 wxDouble temp3 ;
28895 int res3 = SWIG_TMPOBJ ;
28896 wxDouble temp4 ;
28897 int res4 = SWIG_TMPOBJ ;
28898 wxDouble temp5 ;
28899 int res5 = SWIG_TMPOBJ ;
28900 wxDouble temp6 ;
28901 int res6 = SWIG_TMPOBJ ;
28902 PyObject * obj0 = 0 ;
28903 PyObject * obj1 = 0 ;
28904 char * kwnames[] = {
28905 (char *) "self",(char *) "text", NULL
28906 };
28907
28908 arg3 = &temp3;
28909 arg4 = &temp4;
28910 arg5 = &temp5;
28911 arg6 = &temp6;
28912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
28913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28914 if (!SWIG_IsOK(res1)) {
28915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28916 }
28917 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28918 {
28919 arg2 = wxString_in_helper(obj1);
28920 if (arg2 == NULL) SWIG_fail;
28921 temp2 = true;
28922 }
28923 {
28924 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
28925 if (PyErr_Occurred()) SWIG_fail;
28926 }
28927 resultobj = SWIG_Py_Void();
28928 if (SWIG_IsTmpObj(res3)) {
28929 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
28930 } else {
28931 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28932 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
28933 }
28934 if (SWIG_IsTmpObj(res4)) {
28935 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
28936 } else {
28937 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28938 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
28939 }
28940 if (SWIG_IsTmpObj(res5)) {
28941 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
28942 } else {
28943 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28944 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
28945 }
28946 if (SWIG_IsTmpObj(res6)) {
28947 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
28948 } else {
28949 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28950 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
28951 }
28952 {
28953 if (temp2)
28954 delete arg2;
28955 }
28956 return resultobj;
28957 fail:
28958 {
28959 if (temp2)
28960 delete arg2;
28961 }
28962 return NULL;
28963 }
28964
28965
28966 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28967 PyObject *resultobj = 0;
28968 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28969 wxString *arg2 = 0 ;
28970 PyObject *result = 0 ;
28971 void *argp1 = 0 ;
28972 int res1 = 0 ;
28973 bool temp2 = false ;
28974 PyObject * obj0 = 0 ;
28975 PyObject * obj1 = 0 ;
28976 char * kwnames[] = {
28977 (char *) "self",(char *) "text", NULL
28978 };
28979
28980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
28981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28982 if (!SWIG_IsOK(res1)) {
28983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28984 }
28985 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28986 {
28987 arg2 = wxString_in_helper(obj1);
28988 if (arg2 == NULL) SWIG_fail;
28989 temp2 = true;
28990 }
28991 {
28992 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
28993 if (PyErr_Occurred()) SWIG_fail;
28994 }
28995 resultobj = result;
28996 {
28997 if (temp2)
28998 delete arg2;
28999 }
29000 return resultobj;
29001 fail:
29002 {
29003 if (temp2)
29004 delete arg2;
29005 }
29006 return NULL;
29007 }
29008
29009
29010 SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29011 PyObject *resultobj = 0;
29012 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29013 wxString *arg2 = 0 ;
29014 wxArrayDouble result;
29015 void *argp1 = 0 ;
29016 int res1 = 0 ;
29017 bool temp2 = false ;
29018 PyObject * obj0 = 0 ;
29019 PyObject * obj1 = 0 ;
29020 char * kwnames[] = {
29021 (char *) "self",(char *) "text", NULL
29022 };
29023
29024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) 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_GetPartialTextExtents" "', 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 {
29036 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
29037 if (PyErr_Occurred()) SWIG_fail;
29038 }
29039 {
29040 resultobj = wxArrayDouble2PyList_helper(result);
29041 }
29042 {
29043 if (temp2)
29044 delete arg2;
29045 }
29046 return resultobj;
29047 fail:
29048 {
29049 if (temp2)
29050 delete arg2;
29051 }
29052 return NULL;
29053 }
29054
29055
29056 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29057 PyObject *resultobj = 0;
29058 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29059 wxBitmap *arg2 = 0 ;
29060 wxDouble arg3 ;
29061 wxDouble arg4 ;
29062 wxDouble arg5 ;
29063 wxDouble arg6 ;
29064 void *argp1 = 0 ;
29065 int res1 = 0 ;
29066 void *argp2 = 0 ;
29067 int res2 = 0 ;
29068 double val3 ;
29069 int ecode3 = 0 ;
29070 double val4 ;
29071 int ecode4 = 0 ;
29072 double val5 ;
29073 int ecode5 = 0 ;
29074 double val6 ;
29075 int ecode6 = 0 ;
29076 PyObject * obj0 = 0 ;
29077 PyObject * obj1 = 0 ;
29078 PyObject * obj2 = 0 ;
29079 PyObject * obj3 = 0 ;
29080 PyObject * obj4 = 0 ;
29081 PyObject * obj5 = 0 ;
29082 char * kwnames[] = {
29083 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29084 };
29085
29086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29088 if (!SWIG_IsOK(res1)) {
29089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29090 }
29091 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29092 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29093 if (!SWIG_IsOK(res2)) {
29094 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29095 }
29096 if (!argp2) {
29097 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29098 }
29099 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29100 ecode3 = SWIG_AsVal_double(obj2, &val3);
29101 if (!SWIG_IsOK(ecode3)) {
29102 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', 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_DrawBitmap" "', 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_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
29113 }
29114 arg5 = static_cast< wxDouble >(val5);
29115 ecode6 = SWIG_AsVal_double(obj5, &val6);
29116 if (!SWIG_IsOK(ecode6)) {
29117 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
29118 }
29119 arg6 = static_cast< wxDouble >(val6);
29120 {
29121 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
29122 if (PyErr_Occurred()) SWIG_fail;
29123 }
29124 resultobj = SWIG_Py_Void();
29125 return resultobj;
29126 fail:
29127 return NULL;
29128 }
29129
29130
29131 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29132 PyObject *resultobj = 0;
29133 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29134 wxIcon *arg2 = 0 ;
29135 wxDouble arg3 ;
29136 wxDouble arg4 ;
29137 wxDouble arg5 ;
29138 wxDouble arg6 ;
29139 void *argp1 = 0 ;
29140 int res1 = 0 ;
29141 void *argp2 = 0 ;
29142 int res2 = 0 ;
29143 double val3 ;
29144 int ecode3 = 0 ;
29145 double val4 ;
29146 int ecode4 = 0 ;
29147 double val5 ;
29148 int ecode5 = 0 ;
29149 double val6 ;
29150 int ecode6 = 0 ;
29151 PyObject * obj0 = 0 ;
29152 PyObject * obj1 = 0 ;
29153 PyObject * obj2 = 0 ;
29154 PyObject * obj3 = 0 ;
29155 PyObject * obj4 = 0 ;
29156 PyObject * obj5 = 0 ;
29157 char * kwnames[] = {
29158 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29159 };
29160
29161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29163 if (!SWIG_IsOK(res1)) {
29164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29165 }
29166 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29167 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29168 if (!SWIG_IsOK(res2)) {
29169 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29170 }
29171 if (!argp2) {
29172 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29173 }
29174 arg2 = reinterpret_cast< wxIcon * >(argp2);
29175 ecode3 = SWIG_AsVal_double(obj2, &val3);
29176 if (!SWIG_IsOK(ecode3)) {
29177 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
29178 }
29179 arg3 = static_cast< wxDouble >(val3);
29180 ecode4 = SWIG_AsVal_double(obj3, &val4);
29181 if (!SWIG_IsOK(ecode4)) {
29182 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
29183 }
29184 arg4 = static_cast< wxDouble >(val4);
29185 ecode5 = SWIG_AsVal_double(obj4, &val5);
29186 if (!SWIG_IsOK(ecode5)) {
29187 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
29188 }
29189 arg5 = static_cast< wxDouble >(val5);
29190 ecode6 = SWIG_AsVal_double(obj5, &val6);
29191 if (!SWIG_IsOK(ecode6)) {
29192 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
29193 }
29194 arg6 = static_cast< wxDouble >(val6);
29195 {
29196 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
29197 if (PyErr_Occurred()) SWIG_fail;
29198 }
29199 resultobj = SWIG_Py_Void();
29200 return resultobj;
29201 fail:
29202 return NULL;
29203 }
29204
29205
29206 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29207 PyObject *resultobj = 0;
29208 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29209 wxDouble arg2 ;
29210 wxDouble arg3 ;
29211 wxDouble arg4 ;
29212 wxDouble arg5 ;
29213 void *argp1 = 0 ;
29214 int res1 = 0 ;
29215 double val2 ;
29216 int ecode2 = 0 ;
29217 double val3 ;
29218 int ecode3 = 0 ;
29219 double val4 ;
29220 int ecode4 = 0 ;
29221 double val5 ;
29222 int ecode5 = 0 ;
29223 PyObject * obj0 = 0 ;
29224 PyObject * obj1 = 0 ;
29225 PyObject * obj2 = 0 ;
29226 PyObject * obj3 = 0 ;
29227 PyObject * obj4 = 0 ;
29228 char * kwnames[] = {
29229 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
29230 };
29231
29232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29234 if (!SWIG_IsOK(res1)) {
29235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29236 }
29237 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29238 ecode2 = SWIG_AsVal_double(obj1, &val2);
29239 if (!SWIG_IsOK(ecode2)) {
29240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
29241 }
29242 arg2 = static_cast< wxDouble >(val2);
29243 ecode3 = SWIG_AsVal_double(obj2, &val3);
29244 if (!SWIG_IsOK(ecode3)) {
29245 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
29246 }
29247 arg3 = static_cast< wxDouble >(val3);
29248 ecode4 = SWIG_AsVal_double(obj3, &val4);
29249 if (!SWIG_IsOK(ecode4)) {
29250 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
29251 }
29252 arg4 = static_cast< wxDouble >(val4);
29253 ecode5 = SWIG_AsVal_double(obj4, &val5);
29254 if (!SWIG_IsOK(ecode5)) {
29255 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
29256 }
29257 arg5 = static_cast< wxDouble >(val5);
29258 {
29259 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
29260 if (PyErr_Occurred()) SWIG_fail;
29261 }
29262 resultobj = SWIG_Py_Void();
29263 return resultobj;
29264 fail:
29265 return NULL;
29266 }
29267
29268
29269 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29270 PyObject *resultobj = 0;
29271 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29272 size_t arg2 ;
29273 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29274 void *argp1 = 0 ;
29275 int res1 = 0 ;
29276 PyObject * obj0 = 0 ;
29277 PyObject * obj1 = 0 ;
29278 char * kwnames[] = {
29279 (char *) "self",(char *) "points", NULL
29280 };
29281
29282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
29283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29284 if (!SWIG_IsOK(res1)) {
29285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29286 }
29287 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29288 {
29289 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29290 if (arg3 == NULL) SWIG_fail;
29291 }
29292 {
29293 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
29294 if (PyErr_Occurred()) SWIG_fail;
29295 }
29296 resultobj = SWIG_Py_Void();
29297 {
29298 if (arg3) delete [] arg3;
29299 }
29300 return resultobj;
29301 fail:
29302 {
29303 if (arg3) delete [] arg3;
29304 }
29305 return NULL;
29306 }
29307
29308
29309 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29310 PyObject *resultobj = 0;
29311 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29312 PyObject *arg2 = (PyObject *) 0 ;
29313 PyObject *arg3 = (PyObject *) 0 ;
29314 void *argp1 = 0 ;
29315 int res1 = 0 ;
29316 PyObject * obj0 = 0 ;
29317 PyObject * obj1 = 0 ;
29318 PyObject * obj2 = 0 ;
29319 char * kwnames[] = {
29320 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
29321 };
29322
29323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29325 if (!SWIG_IsOK(res1)) {
29326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29327 }
29328 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29329 arg2 = obj1;
29330 arg3 = obj2;
29331 {
29332 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
29333 if (PyErr_Occurred()) SWIG_fail;
29334 }
29335 resultobj = SWIG_Py_Void();
29336 return resultobj;
29337 fail:
29338 return NULL;
29339 }
29340
29341
29342 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29343 PyObject *resultobj = 0;
29344 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29345 size_t arg2 ;
29346 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29347 int arg4 = (int) wxODDEVEN_RULE ;
29348 void *argp1 = 0 ;
29349 int res1 = 0 ;
29350 int val4 ;
29351 int ecode4 = 0 ;
29352 PyObject * obj0 = 0 ;
29353 PyObject * obj1 = 0 ;
29354 PyObject * obj2 = 0 ;
29355 char * kwnames[] = {
29356 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
29357 };
29358
29359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29361 if (!SWIG_IsOK(res1)) {
29362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29363 }
29364 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29365 {
29366 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29367 if (arg3 == NULL) SWIG_fail;
29368 }
29369 if (obj2) {
29370 ecode4 = SWIG_AsVal_int(obj2, &val4);
29371 if (!SWIG_IsOK(ecode4)) {
29372 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
29373 }
29374 arg4 = static_cast< int >(val4);
29375 }
29376 {
29377 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
29378 if (PyErr_Occurred()) SWIG_fail;
29379 }
29380 resultobj = SWIG_Py_Void();
29381 {
29382 if (arg3) delete [] arg3;
29383 }
29384 return resultobj;
29385 fail:
29386 {
29387 if (arg3) delete [] arg3;
29388 }
29389 return NULL;
29390 }
29391
29392
29393 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29394 PyObject *resultobj = 0;
29395 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29396 wxDouble arg2 ;
29397 wxDouble arg3 ;
29398 wxDouble arg4 ;
29399 wxDouble arg5 ;
29400 void *argp1 = 0 ;
29401 int res1 = 0 ;
29402 double val2 ;
29403 int ecode2 = 0 ;
29404 double val3 ;
29405 int ecode3 = 0 ;
29406 double val4 ;
29407 int ecode4 = 0 ;
29408 double val5 ;
29409 int ecode5 = 0 ;
29410 PyObject * obj0 = 0 ;
29411 PyObject * obj1 = 0 ;
29412 PyObject * obj2 = 0 ;
29413 PyObject * obj3 = 0 ;
29414 PyObject * obj4 = 0 ;
29415 char * kwnames[] = {
29416 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29417 };
29418
29419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29421 if (!SWIG_IsOK(res1)) {
29422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29423 }
29424 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29425 ecode2 = SWIG_AsVal_double(obj1, &val2);
29426 if (!SWIG_IsOK(ecode2)) {
29427 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
29428 }
29429 arg2 = static_cast< wxDouble >(val2);
29430 ecode3 = SWIG_AsVal_double(obj2, &val3);
29431 if (!SWIG_IsOK(ecode3)) {
29432 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
29433 }
29434 arg3 = static_cast< wxDouble >(val3);
29435 ecode4 = SWIG_AsVal_double(obj3, &val4);
29436 if (!SWIG_IsOK(ecode4)) {
29437 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
29438 }
29439 arg4 = static_cast< wxDouble >(val4);
29440 ecode5 = SWIG_AsVal_double(obj4, &val5);
29441 if (!SWIG_IsOK(ecode5)) {
29442 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
29443 }
29444 arg5 = static_cast< wxDouble >(val5);
29445 {
29446 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
29447 if (PyErr_Occurred()) SWIG_fail;
29448 }
29449 resultobj = SWIG_Py_Void();
29450 return resultobj;
29451 fail:
29452 return NULL;
29453 }
29454
29455
29456 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29457 PyObject *resultobj = 0;
29458 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29459 wxDouble arg2 ;
29460 wxDouble arg3 ;
29461 wxDouble arg4 ;
29462 wxDouble arg5 ;
29463 void *argp1 = 0 ;
29464 int res1 = 0 ;
29465 double val2 ;
29466 int ecode2 = 0 ;
29467 double val3 ;
29468 int ecode3 = 0 ;
29469 double val4 ;
29470 int ecode4 = 0 ;
29471 double val5 ;
29472 int ecode5 = 0 ;
29473 PyObject * obj0 = 0 ;
29474 PyObject * obj1 = 0 ;
29475 PyObject * obj2 = 0 ;
29476 PyObject * obj3 = 0 ;
29477 PyObject * obj4 = 0 ;
29478 char * kwnames[] = {
29479 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29480 };
29481
29482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29484 if (!SWIG_IsOK(res1)) {
29485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29486 }
29487 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29488 ecode2 = SWIG_AsVal_double(obj1, &val2);
29489 if (!SWIG_IsOK(ecode2)) {
29490 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
29491 }
29492 arg2 = static_cast< wxDouble >(val2);
29493 ecode3 = SWIG_AsVal_double(obj2, &val3);
29494 if (!SWIG_IsOK(ecode3)) {
29495 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
29496 }
29497 arg3 = static_cast< wxDouble >(val3);
29498 ecode4 = SWIG_AsVal_double(obj3, &val4);
29499 if (!SWIG_IsOK(ecode4)) {
29500 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
29501 }
29502 arg4 = static_cast< wxDouble >(val4);
29503 ecode5 = SWIG_AsVal_double(obj4, &val5);
29504 if (!SWIG_IsOK(ecode5)) {
29505 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
29506 }
29507 arg5 = static_cast< wxDouble >(val5);
29508 {
29509 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
29510 if (PyErr_Occurred()) SWIG_fail;
29511 }
29512 resultobj = SWIG_Py_Void();
29513 return resultobj;
29514 fail:
29515 return NULL;
29516 }
29517
29518
29519 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29520 PyObject *resultobj = 0;
29521 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29522 wxDouble arg2 ;
29523 wxDouble arg3 ;
29524 wxDouble arg4 ;
29525 wxDouble arg5 ;
29526 wxDouble arg6 ;
29527 void *argp1 = 0 ;
29528 int res1 = 0 ;
29529 double val2 ;
29530 int ecode2 = 0 ;
29531 double val3 ;
29532 int ecode3 = 0 ;
29533 double val4 ;
29534 int ecode4 = 0 ;
29535 double val5 ;
29536 int ecode5 = 0 ;
29537 double val6 ;
29538 int ecode6 = 0 ;
29539 PyObject * obj0 = 0 ;
29540 PyObject * obj1 = 0 ;
29541 PyObject * obj2 = 0 ;
29542 PyObject * obj3 = 0 ;
29543 PyObject * obj4 = 0 ;
29544 PyObject * obj5 = 0 ;
29545 char * kwnames[] = {
29546 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
29547 };
29548
29549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29551 if (!SWIG_IsOK(res1)) {
29552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29553 }
29554 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29555 ecode2 = SWIG_AsVal_double(obj1, &val2);
29556 if (!SWIG_IsOK(ecode2)) {
29557 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
29558 }
29559 arg2 = static_cast< wxDouble >(val2);
29560 ecode3 = SWIG_AsVal_double(obj2, &val3);
29561 if (!SWIG_IsOK(ecode3)) {
29562 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
29563 }
29564 arg3 = static_cast< wxDouble >(val3);
29565 ecode4 = SWIG_AsVal_double(obj3, &val4);
29566 if (!SWIG_IsOK(ecode4)) {
29567 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
29568 }
29569 arg4 = static_cast< wxDouble >(val4);
29570 ecode5 = SWIG_AsVal_double(obj4, &val5);
29571 if (!SWIG_IsOK(ecode5)) {
29572 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
29573 }
29574 arg5 = static_cast< wxDouble >(val5);
29575 ecode6 = SWIG_AsVal_double(obj5, &val6);
29576 if (!SWIG_IsOK(ecode6)) {
29577 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
29578 }
29579 arg6 = static_cast< wxDouble >(val6);
29580 {
29581 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
29582 if (PyErr_Occurred()) SWIG_fail;
29583 }
29584 resultobj = SWIG_Py_Void();
29585 return resultobj;
29586 fail:
29587 return NULL;
29588 }
29589
29590
29591 SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29592 PyObject *resultobj = 0;
29593 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29594 bool result;
29595 void *argp1 = 0 ;
29596 int res1 = 0 ;
29597 PyObject *swig_obj[1] ;
29598
29599 if (!args) SWIG_fail;
29600 swig_obj[0] = args;
29601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29602 if (!SWIG_IsOK(res1)) {
29603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29604 }
29605 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29606 {
29607 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
29608 if (PyErr_Occurred()) SWIG_fail;
29609 }
29610 {
29611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29612 }
29613 return resultobj;
29614 fail:
29615 return NULL;
29616 }
29617
29618
29619 SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29620 PyObject *obj;
29621 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29622 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
29623 return SWIG_Py_Void();
29624 }
29625
29626 SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29627 PyObject *resultobj = 0;
29628 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29629 void *argp1 = 0 ;
29630 int res1 = 0 ;
29631 PyObject *swig_obj[1] ;
29632
29633 if (!args) SWIG_fail;
29634 swig_obj[0] = args;
29635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
29636 if (!SWIG_IsOK(res1)) {
29637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29638 }
29639 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29640 {
29641 delete arg1;
29642
29643 if (PyErr_Occurred()) SWIG_fail;
29644 }
29645 resultobj = SWIG_Py_Void();
29646 return resultobj;
29647 fail:
29648 return NULL;
29649 }
29650
29651
29652 SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29653 PyObject *resultobj = 0;
29654 wxGraphicsRenderer *result = 0 ;
29655
29656 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
29657 {
29658 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
29659 if (PyErr_Occurred()) SWIG_fail;
29660 }
29661 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29662 return resultobj;
29663 fail:
29664 return NULL;
29665 }
29666
29667
29668 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29669 PyObject *resultobj = 0;
29670 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29671 wxWindowDC *arg2 = 0 ;
29672 wxGraphicsContext *result = 0 ;
29673 void *argp1 = 0 ;
29674 int res1 = 0 ;
29675 void *argp2 = 0 ;
29676 int res2 = 0 ;
29677
29678 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29680 if (!SWIG_IsOK(res1)) {
29681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29682 }
29683 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29684 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
29685 if (!SWIG_IsOK(res2)) {
29686 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29687 }
29688 if (!argp2) {
29689 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29690 }
29691 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
29692 {
29693 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
29694 if (PyErr_Occurred()) SWIG_fail;
29695 }
29696 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
29697 return resultobj;
29698 fail:
29699 return NULL;
29700 }
29701
29702
29703 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29704 PyObject *resultobj = 0;
29705 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29706 wxWindow *arg2 = (wxWindow *) 0 ;
29707 wxGraphicsContext *result = 0 ;
29708 void *argp1 = 0 ;
29709 int res1 = 0 ;
29710 void *argp2 = 0 ;
29711 int res2 = 0 ;
29712
29713 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29715 if (!SWIG_IsOK(res1)) {
29716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29717 }
29718 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29719 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29720 if (!SWIG_IsOK(res2)) {
29721 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
29722 }
29723 arg2 = reinterpret_cast< wxWindow * >(argp2);
29724 {
29725 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
29726 if (PyErr_Occurred()) SWIG_fail;
29727 }
29728 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
29729 return resultobj;
29730 fail:
29731 return NULL;
29732 }
29733
29734
29735 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
29736 int argc;
29737 PyObject *argv[3];
29738
29739 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
29740 --argc;
29741 if (argc == 2) {
29742 int _v = 0;
29743 {
29744 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
29745 _v = SWIG_CheckState(res);
29746 }
29747 if (!_v) goto check_1;
29748 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
29749 }
29750 check_1:
29751
29752 if (argc == 2) {
29753 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
29754 }
29755
29756 fail:
29757 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
29758 return NULL;
29759 }
29760
29761
29762 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29763 PyObject *resultobj = 0;
29764 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29765 void *arg2 = (void *) 0 ;
29766 wxGraphicsContext *result = 0 ;
29767 void *argp1 = 0 ;
29768 int res1 = 0 ;
29769 int res2 ;
29770 PyObject * obj0 = 0 ;
29771 PyObject * obj1 = 0 ;
29772 char * kwnames[] = {
29773 (char *) "self",(char *) "context", NULL
29774 };
29775
29776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
29777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29778 if (!SWIG_IsOK(res1)) {
29779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29780 }
29781 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29782 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
29783 if (!SWIG_IsOK(res2)) {
29784 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
29785 }
29786 {
29787 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
29788 if (PyErr_Occurred()) SWIG_fail;
29789 }
29790 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
29791 return resultobj;
29792 fail:
29793 return NULL;
29794 }
29795
29796
29797 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29798 PyObject *resultobj = 0;
29799 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29800 void *arg2 = (void *) 0 ;
29801 wxGraphicsContext *result = 0 ;
29802 void *argp1 = 0 ;
29803 int res1 = 0 ;
29804 int res2 ;
29805 PyObject * obj0 = 0 ;
29806 PyObject * obj1 = 0 ;
29807 char * kwnames[] = {
29808 (char *) "self",(char *) "window", NULL
29809 };
29810
29811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
29812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29813 if (!SWIG_IsOK(res1)) {
29814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29815 }
29816 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29817 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
29818 if (!SWIG_IsOK(res2)) {
29819 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
29820 }
29821 {
29822 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
29823 if (PyErr_Occurred()) SWIG_fail;
29824 }
29825 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
29826 return resultobj;
29827 fail:
29828 return NULL;
29829 }
29830
29831
29832 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29833 PyObject *resultobj = 0;
29834 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29835 wxGraphicsPath result;
29836 void *argp1 = 0 ;
29837 int res1 = 0 ;
29838 PyObject *swig_obj[1] ;
29839
29840 if (!args) SWIG_fail;
29841 swig_obj[0] = args;
29842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29843 if (!SWIG_IsOK(res1)) {
29844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29845 }
29846 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29847 {
29848 result = (arg1)->CreatePath();
29849 if (PyErr_Occurred()) SWIG_fail;
29850 }
29851 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
29852 return resultobj;
29853 fail:
29854 return NULL;
29855 }
29856
29857
29858 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29859 PyObject *resultobj = 0;
29860 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29861 wxDouble arg2 = (wxDouble) 1.0 ;
29862 wxDouble arg3 = (wxDouble) 0.0 ;
29863 wxDouble arg4 = (wxDouble) 0.0 ;
29864 wxDouble arg5 = (wxDouble) 1.0 ;
29865 wxDouble arg6 = (wxDouble) 0.0 ;
29866 wxDouble arg7 = (wxDouble) 0.0 ;
29867 wxGraphicsMatrix result;
29868 void *argp1 = 0 ;
29869 int res1 = 0 ;
29870 double val2 ;
29871 int ecode2 = 0 ;
29872 double val3 ;
29873 int ecode3 = 0 ;
29874 double val4 ;
29875 int ecode4 = 0 ;
29876 double val5 ;
29877 int ecode5 = 0 ;
29878 double val6 ;
29879 int ecode6 = 0 ;
29880 double val7 ;
29881 int ecode7 = 0 ;
29882 PyObject * obj0 = 0 ;
29883 PyObject * obj1 = 0 ;
29884 PyObject * obj2 = 0 ;
29885 PyObject * obj3 = 0 ;
29886 PyObject * obj4 = 0 ;
29887 PyObject * obj5 = 0 ;
29888 PyObject * obj6 = 0 ;
29889 char * kwnames[] = {
29890 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
29891 };
29892
29893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29895 if (!SWIG_IsOK(res1)) {
29896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29897 }
29898 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29899 if (obj1) {
29900 ecode2 = SWIG_AsVal_double(obj1, &val2);
29901 if (!SWIG_IsOK(ecode2)) {
29902 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
29903 }
29904 arg2 = static_cast< wxDouble >(val2);
29905 }
29906 if (obj2) {
29907 ecode3 = SWIG_AsVal_double(obj2, &val3);
29908 if (!SWIG_IsOK(ecode3)) {
29909 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
29910 }
29911 arg3 = static_cast< wxDouble >(val3);
29912 }
29913 if (obj3) {
29914 ecode4 = SWIG_AsVal_double(obj3, &val4);
29915 if (!SWIG_IsOK(ecode4)) {
29916 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
29917 }
29918 arg4 = static_cast< wxDouble >(val4);
29919 }
29920 if (obj4) {
29921 ecode5 = SWIG_AsVal_double(obj4, &val5);
29922 if (!SWIG_IsOK(ecode5)) {
29923 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
29924 }
29925 arg5 = static_cast< wxDouble >(val5);
29926 }
29927 if (obj5) {
29928 ecode6 = SWIG_AsVal_double(obj5, &val6);
29929 if (!SWIG_IsOK(ecode6)) {
29930 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
29931 }
29932 arg6 = static_cast< wxDouble >(val6);
29933 }
29934 if (obj6) {
29935 ecode7 = SWIG_AsVal_double(obj6, &val7);
29936 if (!SWIG_IsOK(ecode7)) {
29937 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
29938 }
29939 arg7 = static_cast< wxDouble >(val7);
29940 }
29941 {
29942 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
29943 if (PyErr_Occurred()) SWIG_fail;
29944 }
29945 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
29946 return resultobj;
29947 fail:
29948 return NULL;
29949 }
29950
29951
29952 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29953 PyObject *resultobj = 0;
29954 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29955 wxPen *arg2 = 0 ;
29956 wxGraphicsPen result;
29957 void *argp1 = 0 ;
29958 int res1 = 0 ;
29959 void *argp2 = 0 ;
29960 int res2 = 0 ;
29961 PyObject * obj0 = 0 ;
29962 PyObject * obj1 = 0 ;
29963 char * kwnames[] = {
29964 (char *) "self",(char *) "pen", NULL
29965 };
29966
29967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
29968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29969 if (!SWIG_IsOK(res1)) {
29970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29971 }
29972 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29973 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
29974 if (!SWIG_IsOK(res2)) {
29975 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
29976 }
29977 if (!argp2) {
29978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
29979 }
29980 arg2 = reinterpret_cast< wxPen * >(argp2);
29981 {
29982 result = (arg1)->CreatePen((wxPen const &)*arg2);
29983 if (PyErr_Occurred()) SWIG_fail;
29984 }
29985 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
29986 return resultobj;
29987 fail:
29988 return NULL;
29989 }
29990
29991
29992 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29993 PyObject *resultobj = 0;
29994 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29995 wxBrush *arg2 = 0 ;
29996 wxGraphicsBrush result;
29997 void *argp1 = 0 ;
29998 int res1 = 0 ;
29999 void *argp2 = 0 ;
30000 int res2 = 0 ;
30001 PyObject * obj0 = 0 ;
30002 PyObject * obj1 = 0 ;
30003 char * kwnames[] = {
30004 (char *) "self",(char *) "brush", NULL
30005 };
30006
30007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30009 if (!SWIG_IsOK(res1)) {
30010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30011 }
30012 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30013 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30014 if (!SWIG_IsOK(res2)) {
30015 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30016 }
30017 if (!argp2) {
30018 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30019 }
30020 arg2 = reinterpret_cast< wxBrush * >(argp2);
30021 {
30022 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
30023 if (PyErr_Occurred()) SWIG_fail;
30024 }
30025 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30026 return resultobj;
30027 fail:
30028 return NULL;
30029 }
30030
30031
30032 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30033 PyObject *resultobj = 0;
30034 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30035 wxDouble arg2 ;
30036 wxDouble arg3 ;
30037 wxDouble arg4 ;
30038 wxDouble arg5 ;
30039 wxColour *arg6 = 0 ;
30040 wxColour *arg7 = 0 ;
30041 wxGraphicsBrush result;
30042 void *argp1 = 0 ;
30043 int res1 = 0 ;
30044 double val2 ;
30045 int ecode2 = 0 ;
30046 double val3 ;
30047 int ecode3 = 0 ;
30048 double val4 ;
30049 int ecode4 = 0 ;
30050 double val5 ;
30051 int ecode5 = 0 ;
30052 wxColour temp6 ;
30053 wxColour temp7 ;
30054 PyObject * obj0 = 0 ;
30055 PyObject * obj1 = 0 ;
30056 PyObject * obj2 = 0 ;
30057 PyObject * obj3 = 0 ;
30058 PyObject * obj4 = 0 ;
30059 PyObject * obj5 = 0 ;
30060 PyObject * obj6 = 0 ;
30061 char * kwnames[] = {
30062 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
30063 };
30064
30065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30067 if (!SWIG_IsOK(res1)) {
30068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30069 }
30070 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30071 ecode2 = SWIG_AsVal_double(obj1, &val2);
30072 if (!SWIG_IsOK(ecode2)) {
30073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
30074 }
30075 arg2 = static_cast< wxDouble >(val2);
30076 ecode3 = SWIG_AsVal_double(obj2, &val3);
30077 if (!SWIG_IsOK(ecode3)) {
30078 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
30079 }
30080 arg3 = static_cast< wxDouble >(val3);
30081 ecode4 = SWIG_AsVal_double(obj3, &val4);
30082 if (!SWIG_IsOK(ecode4)) {
30083 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
30084 }
30085 arg4 = static_cast< wxDouble >(val4);
30086 ecode5 = SWIG_AsVal_double(obj4, &val5);
30087 if (!SWIG_IsOK(ecode5)) {
30088 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
30089 }
30090 arg5 = static_cast< wxDouble >(val5);
30091 {
30092 arg6 = &temp6;
30093 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
30094 }
30095 {
30096 arg7 = &temp7;
30097 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30098 }
30099 {
30100 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
30101 if (PyErr_Occurred()) SWIG_fail;
30102 }
30103 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30104 return resultobj;
30105 fail:
30106 return NULL;
30107 }
30108
30109
30110 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30111 PyObject *resultobj = 0;
30112 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30113 wxDouble arg2 ;
30114 wxDouble arg3 ;
30115 wxDouble arg4 ;
30116 wxDouble arg5 ;
30117 wxDouble arg6 ;
30118 wxColour *arg7 = 0 ;
30119 wxColour *arg8 = 0 ;
30120 wxGraphicsBrush result;
30121 void *argp1 = 0 ;
30122 int res1 = 0 ;
30123 double val2 ;
30124 int ecode2 = 0 ;
30125 double val3 ;
30126 int ecode3 = 0 ;
30127 double val4 ;
30128 int ecode4 = 0 ;
30129 double val5 ;
30130 int ecode5 = 0 ;
30131 double val6 ;
30132 int ecode6 = 0 ;
30133 wxColour temp7 ;
30134 wxColour temp8 ;
30135 PyObject * obj0 = 0 ;
30136 PyObject * obj1 = 0 ;
30137 PyObject * obj2 = 0 ;
30138 PyObject * obj3 = 0 ;
30139 PyObject * obj4 = 0 ;
30140 PyObject * obj5 = 0 ;
30141 PyObject * obj6 = 0 ;
30142 PyObject * obj7 = 0 ;
30143 char * kwnames[] = {
30144 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
30145 };
30146
30147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
30148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30149 if (!SWIG_IsOK(res1)) {
30150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30151 }
30152 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30153 ecode2 = SWIG_AsVal_double(obj1, &val2);
30154 if (!SWIG_IsOK(ecode2)) {
30155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
30156 }
30157 arg2 = static_cast< wxDouble >(val2);
30158 ecode3 = SWIG_AsVal_double(obj2, &val3);
30159 if (!SWIG_IsOK(ecode3)) {
30160 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
30161 }
30162 arg3 = static_cast< wxDouble >(val3);
30163 ecode4 = SWIG_AsVal_double(obj3, &val4);
30164 if (!SWIG_IsOK(ecode4)) {
30165 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
30166 }
30167 arg4 = static_cast< wxDouble >(val4);
30168 ecode5 = SWIG_AsVal_double(obj4, &val5);
30169 if (!SWIG_IsOK(ecode5)) {
30170 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
30171 }
30172 arg5 = static_cast< wxDouble >(val5);
30173 ecode6 = SWIG_AsVal_double(obj5, &val6);
30174 if (!SWIG_IsOK(ecode6)) {
30175 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
30176 }
30177 arg6 = static_cast< wxDouble >(val6);
30178 {
30179 arg7 = &temp7;
30180 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30181 }
30182 {
30183 arg8 = &temp8;
30184 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
30185 }
30186 {
30187 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
30188 if (PyErr_Occurred()) SWIG_fail;
30189 }
30190 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30191 return resultobj;
30192 fail:
30193 return NULL;
30194 }
30195
30196
30197 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30198 PyObject *resultobj = 0;
30199 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30200 wxFont *arg2 = 0 ;
30201 wxColour const &arg3_defvalue = *wxBLACK ;
30202 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
30203 wxGraphicsFont result;
30204 void *argp1 = 0 ;
30205 int res1 = 0 ;
30206 void *argp2 = 0 ;
30207 int res2 = 0 ;
30208 wxColour temp3 ;
30209 PyObject * obj0 = 0 ;
30210 PyObject * obj1 = 0 ;
30211 PyObject * obj2 = 0 ;
30212 char * kwnames[] = {
30213 (char *) "self",(char *) "font",(char *) "col", NULL
30214 };
30215
30216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30218 if (!SWIG_IsOK(res1)) {
30219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30220 }
30221 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30222 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
30223 if (!SWIG_IsOK(res2)) {
30224 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30225 }
30226 if (!argp2) {
30227 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30228 }
30229 arg2 = reinterpret_cast< wxFont * >(argp2);
30230 if (obj2) {
30231 {
30232 arg3 = &temp3;
30233 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30234 }
30235 }
30236 {
30237 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
30238 if (PyErr_Occurred()) SWIG_fail;
30239 }
30240 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
30241 return resultobj;
30242 fail:
30243 return NULL;
30244 }
30245
30246
30247 SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30248 PyObject *obj;
30249 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30250 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
30251 return SWIG_Py_Void();
30252 }
30253
30254 SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30255 PyObject *resultobj = 0;
30256 wxWindowDC *arg1 = 0 ;
30257 wxGCDC *result = 0 ;
30258 void *argp1 = 0 ;
30259 int res1 = 0 ;
30260 PyObject * obj0 = 0 ;
30261 char * kwnames[] = {
30262 (char *) "dc", NULL
30263 };
30264
30265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
30266 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
30267 if (!SWIG_IsOK(res1)) {
30268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30269 }
30270 if (!argp1) {
30271 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30272 }
30273 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
30274 {
30275 if (!wxPyCheckForApp()) SWIG_fail;
30276 PyThreadState* __tstate = wxPyBeginAllowThreads();
30277 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
30278 wxPyEndAllowThreads(__tstate);
30279 if (PyErr_Occurred()) SWIG_fail;
30280 }
30281 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30282 return resultobj;
30283 fail:
30284 return NULL;
30285 }
30286
30287
30288 SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30289 PyObject *resultobj = 0;
30290 wxGCDC *arg1 = (wxGCDC *) 0 ;
30291 void *argp1 = 0 ;
30292 int res1 = 0 ;
30293 PyObject *swig_obj[1] ;
30294
30295 if (!args) SWIG_fail;
30296 swig_obj[0] = args;
30297 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
30298 if (!SWIG_IsOK(res1)) {
30299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
30300 }
30301 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30302 {
30303 delete arg1;
30304
30305 if (PyErr_Occurred()) SWIG_fail;
30306 }
30307 resultobj = SWIG_Py_Void();
30308 return resultobj;
30309 fail:
30310 return NULL;
30311 }
30312
30313
30314 SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30315 PyObject *resultobj = 0;
30316 wxGCDC *arg1 = (wxGCDC *) 0 ;
30317 wxGraphicsContext *result = 0 ;
30318 void *argp1 = 0 ;
30319 int res1 = 0 ;
30320 PyObject *swig_obj[1] ;
30321
30322 if (!args) SWIG_fail;
30323 swig_obj[0] = args;
30324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30325 if (!SWIG_IsOK(res1)) {
30326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
30327 }
30328 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30329 {
30330 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
30331 if (PyErr_Occurred()) SWIG_fail;
30332 }
30333 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30334 return resultobj;
30335 fail:
30336 return NULL;
30337 }
30338
30339
30340 SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30341 PyObject *resultobj = 0;
30342 wxGCDC *arg1 = (wxGCDC *) 0 ;
30343 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
30344 void *argp1 = 0 ;
30345 int res1 = 0 ;
30346 void *argp2 = 0 ;
30347 int res2 = 0 ;
30348 PyObject * obj0 = 0 ;
30349 PyObject * obj1 = 0 ;
30350 char * kwnames[] = {
30351 (char *) "self",(char *) "ctx", NULL
30352 };
30353
30354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
30355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30356 if (!SWIG_IsOK(res1)) {
30357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
30358 }
30359 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30360 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30361 if (!SWIG_IsOK(res2)) {
30362 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
30363 }
30364 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
30365 {
30366 (arg1)->SetGraphicsContext(arg2);
30367 if (PyErr_Occurred()) SWIG_fail;
30368 }
30369 resultobj = SWIG_Py_Void();
30370 return resultobj;
30371 fail:
30372 return NULL;
30373 }
30374
30375
30376 SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30377 PyObject *obj;
30378 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30379 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
30380 return SWIG_Py_Void();
30381 }
30382
30383 SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30384 return SWIG_Python_InitShadowInstance(args);
30385 }
30386
30387 SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30388 PyObject *resultobj = 0;
30389 wxOverlay *result = 0 ;
30390
30391 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
30392 {
30393 PyThreadState* __tstate = wxPyBeginAllowThreads();
30394 result = (wxOverlay *)new wxOverlay();
30395 wxPyEndAllowThreads(__tstate);
30396 if (PyErr_Occurred()) SWIG_fail;
30397 }
30398 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
30399 return resultobj;
30400 fail:
30401 return NULL;
30402 }
30403
30404
30405 SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30406 PyObject *resultobj = 0;
30407 wxOverlay *arg1 = (wxOverlay *) 0 ;
30408 void *argp1 = 0 ;
30409 int res1 = 0 ;
30410 PyObject *swig_obj[1] ;
30411
30412 if (!args) SWIG_fail;
30413 swig_obj[0] = args;
30414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
30415 if (!SWIG_IsOK(res1)) {
30416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
30417 }
30418 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30419 {
30420 PyThreadState* __tstate = wxPyBeginAllowThreads();
30421 delete arg1;
30422
30423 wxPyEndAllowThreads(__tstate);
30424 if (PyErr_Occurred()) SWIG_fail;
30425 }
30426 resultobj = SWIG_Py_Void();
30427 return resultobj;
30428 fail:
30429 return NULL;
30430 }
30431
30432
30433 SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30434 PyObject *resultobj = 0;
30435 wxOverlay *arg1 = (wxOverlay *) 0 ;
30436 void *argp1 = 0 ;
30437 int res1 = 0 ;
30438 PyObject *swig_obj[1] ;
30439
30440 if (!args) SWIG_fail;
30441 swig_obj[0] = args;
30442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
30443 if (!SWIG_IsOK(res1)) {
30444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
30445 }
30446 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30447 {
30448 PyThreadState* __tstate = wxPyBeginAllowThreads();
30449 (arg1)->Reset();
30450 wxPyEndAllowThreads(__tstate);
30451 if (PyErr_Occurred()) SWIG_fail;
30452 }
30453 resultobj = SWIG_Py_Void();
30454 return resultobj;
30455 fail:
30456 return NULL;
30457 }
30458
30459
30460 SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30461 PyObject *obj;
30462 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30463 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
30464 return SWIG_Py_Void();
30465 }
30466
30467 SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30468 return SWIG_Python_InitShadowInstance(args);
30469 }
30470
30471 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30472 PyObject *resultobj = 0;
30473 wxOverlay *arg1 = 0 ;
30474 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30475 int arg3 ;
30476 int arg4 ;
30477 int arg5 ;
30478 int arg6 ;
30479 wxDCOverlay *result = 0 ;
30480 void *argp1 = 0 ;
30481 int res1 = 0 ;
30482 void *argp2 = 0 ;
30483 int res2 = 0 ;
30484 int val3 ;
30485 int ecode3 = 0 ;
30486 int val4 ;
30487 int ecode4 = 0 ;
30488 int val5 ;
30489 int ecode5 = 0 ;
30490 int val6 ;
30491 int ecode6 = 0 ;
30492
30493 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
30494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30495 if (!SWIG_IsOK(res1)) {
30496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30497 }
30498 if (!argp1) {
30499 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30500 }
30501 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30502 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30503 if (!SWIG_IsOK(res2)) {
30504 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30505 }
30506 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30507 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
30508 if (!SWIG_IsOK(ecode3)) {
30509 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
30510 }
30511 arg3 = static_cast< int >(val3);
30512 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
30513 if (!SWIG_IsOK(ecode4)) {
30514 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
30515 }
30516 arg4 = static_cast< int >(val4);
30517 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
30518 if (!SWIG_IsOK(ecode5)) {
30519 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
30520 }
30521 arg5 = static_cast< int >(val5);
30522 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
30523 if (!SWIG_IsOK(ecode6)) {
30524 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
30525 }
30526 arg6 = static_cast< int >(val6);
30527 {
30528 PyThreadState* __tstate = wxPyBeginAllowThreads();
30529 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
30530 wxPyEndAllowThreads(__tstate);
30531 if (PyErr_Occurred()) SWIG_fail;
30532 }
30533 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30534 return resultobj;
30535 fail:
30536 return NULL;
30537 }
30538
30539
30540 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30541 PyObject *resultobj = 0;
30542 wxOverlay *arg1 = 0 ;
30543 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30544 wxDCOverlay *result = 0 ;
30545 void *argp1 = 0 ;
30546 int res1 = 0 ;
30547 void *argp2 = 0 ;
30548 int res2 = 0 ;
30549
30550 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30552 if (!SWIG_IsOK(res1)) {
30553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30554 }
30555 if (!argp1) {
30556 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30557 }
30558 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30559 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30560 if (!SWIG_IsOK(res2)) {
30561 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30562 }
30563 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30564 {
30565 PyThreadState* __tstate = wxPyBeginAllowThreads();
30566 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
30567 wxPyEndAllowThreads(__tstate);
30568 if (PyErr_Occurred()) SWIG_fail;
30569 }
30570 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30571 return resultobj;
30572 fail:
30573 return NULL;
30574 }
30575
30576
30577 SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
30578 int argc;
30579 PyObject *argv[7];
30580
30581 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
30582 --argc;
30583 if (argc == 2) {
30584 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
30585 }
30586 if (argc == 6) {
30587 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
30588 }
30589
30590 fail:
30591 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
30592 return NULL;
30593 }
30594
30595
30596 SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30597 PyObject *resultobj = 0;
30598 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30599 void *argp1 = 0 ;
30600 int res1 = 0 ;
30601 PyObject *swig_obj[1] ;
30602
30603 if (!args) SWIG_fail;
30604 swig_obj[0] = args;
30605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
30606 if (!SWIG_IsOK(res1)) {
30607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30608 }
30609 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30610 {
30611 PyThreadState* __tstate = wxPyBeginAllowThreads();
30612 delete arg1;
30613
30614 wxPyEndAllowThreads(__tstate);
30615 if (PyErr_Occurred()) SWIG_fail;
30616 }
30617 resultobj = SWIG_Py_Void();
30618 return resultobj;
30619 fail:
30620 return NULL;
30621 }
30622
30623
30624 SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30625 PyObject *resultobj = 0;
30626 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30627 void *argp1 = 0 ;
30628 int res1 = 0 ;
30629 PyObject *swig_obj[1] ;
30630
30631 if (!args) SWIG_fail;
30632 swig_obj[0] = args;
30633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
30634 if (!SWIG_IsOK(res1)) {
30635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30636 }
30637 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30638 {
30639 PyThreadState* __tstate = wxPyBeginAllowThreads();
30640 (arg1)->Clear();
30641 wxPyEndAllowThreads(__tstate);
30642 if (PyErr_Occurred()) SWIG_fail;
30643 }
30644 resultobj = SWIG_Py_Void();
30645 return resultobj;
30646 fail:
30647 return NULL;
30648 }
30649
30650
30651 SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30652 PyObject *obj;
30653 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30654 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
30655 return SWIG_Py_Void();
30656 }
30657
30658 SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30659 return SWIG_Python_InitShadowInstance(args);
30660 }
30661
30662 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30663 PyObject *resultobj = 0;
30664 int arg1 ;
30665 int arg2 ;
30666 int arg3 = (int) true ;
30667 int arg4 = (int) 1 ;
30668 wxImageList *result = 0 ;
30669 int val1 ;
30670 int ecode1 = 0 ;
30671 int val2 ;
30672 int ecode2 = 0 ;
30673 int val3 ;
30674 int ecode3 = 0 ;
30675 int val4 ;
30676 int ecode4 = 0 ;
30677 PyObject * obj0 = 0 ;
30678 PyObject * obj1 = 0 ;
30679 PyObject * obj2 = 0 ;
30680 PyObject * obj3 = 0 ;
30681 char * kwnames[] = {
30682 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
30683 };
30684
30685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30686 ecode1 = SWIG_AsVal_int(obj0, &val1);
30687 if (!SWIG_IsOK(ecode1)) {
30688 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
30689 }
30690 arg1 = static_cast< int >(val1);
30691 ecode2 = SWIG_AsVal_int(obj1, &val2);
30692 if (!SWIG_IsOK(ecode2)) {
30693 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
30694 }
30695 arg2 = static_cast< int >(val2);
30696 if (obj2) {
30697 ecode3 = SWIG_AsVal_int(obj2, &val3);
30698 if (!SWIG_IsOK(ecode3)) {
30699 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
30700 }
30701 arg3 = static_cast< int >(val3);
30702 }
30703 if (obj3) {
30704 ecode4 = SWIG_AsVal_int(obj3, &val4);
30705 if (!SWIG_IsOK(ecode4)) {
30706 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
30707 }
30708 arg4 = static_cast< int >(val4);
30709 }
30710 {
30711 if (!wxPyCheckForApp()) SWIG_fail;
30712 PyThreadState* __tstate = wxPyBeginAllowThreads();
30713 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
30714 wxPyEndAllowThreads(__tstate);
30715 if (PyErr_Occurred()) SWIG_fail;
30716 }
30717 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
30718 return resultobj;
30719 fail:
30720 return NULL;
30721 }
30722
30723
30724 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30725 PyObject *resultobj = 0;
30726 wxImageList *arg1 = (wxImageList *) 0 ;
30727 void *argp1 = 0 ;
30728 int res1 = 0 ;
30729 PyObject *swig_obj[1] ;
30730
30731 if (!args) SWIG_fail;
30732 swig_obj[0] = args;
30733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30734 if (!SWIG_IsOK(res1)) {
30735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
30736 }
30737 arg1 = reinterpret_cast< wxImageList * >(argp1);
30738 {
30739 PyThreadState* __tstate = wxPyBeginAllowThreads();
30740 delete arg1;
30741
30742 wxPyEndAllowThreads(__tstate);
30743 if (PyErr_Occurred()) SWIG_fail;
30744 }
30745 resultobj = SWIG_Py_Void();
30746 return resultobj;
30747 fail:
30748 return NULL;
30749 }
30750
30751
30752 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30753 PyObject *resultobj = 0;
30754 wxImageList *arg1 = (wxImageList *) 0 ;
30755 wxBitmap *arg2 = 0 ;
30756 wxBitmap const &arg3_defvalue = wxNullBitmap ;
30757 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
30758 int result;
30759 void *argp1 = 0 ;
30760 int res1 = 0 ;
30761 void *argp2 = 0 ;
30762 int res2 = 0 ;
30763 void *argp3 = 0 ;
30764 int res3 = 0 ;
30765 PyObject * obj0 = 0 ;
30766 PyObject * obj1 = 0 ;
30767 PyObject * obj2 = 0 ;
30768 char * kwnames[] = {
30769 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
30770 };
30771
30772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30774 if (!SWIG_IsOK(res1)) {
30775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
30776 }
30777 arg1 = reinterpret_cast< wxImageList * >(argp1);
30778 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30779 if (!SWIG_IsOK(res2)) {
30780 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30781 }
30782 if (!argp2) {
30783 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30784 }
30785 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30786 if (obj2) {
30787 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
30788 if (!SWIG_IsOK(res3)) {
30789 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30790 }
30791 if (!argp3) {
30792 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30793 }
30794 arg3 = reinterpret_cast< wxBitmap * >(argp3);
30795 }
30796 {
30797 PyThreadState* __tstate = wxPyBeginAllowThreads();
30798 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
30799 wxPyEndAllowThreads(__tstate);
30800 if (PyErr_Occurred()) SWIG_fail;
30801 }
30802 resultobj = SWIG_From_int(static_cast< int >(result));
30803 return resultobj;
30804 fail:
30805 return NULL;
30806 }
30807
30808
30809 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30810 PyObject *resultobj = 0;
30811 wxImageList *arg1 = (wxImageList *) 0 ;
30812 wxBitmap *arg2 = 0 ;
30813 wxColour *arg3 = 0 ;
30814 int result;
30815 void *argp1 = 0 ;
30816 int res1 = 0 ;
30817 void *argp2 = 0 ;
30818 int res2 = 0 ;
30819 wxColour temp3 ;
30820 PyObject * obj0 = 0 ;
30821 PyObject * obj1 = 0 ;
30822 PyObject * obj2 = 0 ;
30823 char * kwnames[] = {
30824 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
30825 };
30826
30827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30829 if (!SWIG_IsOK(res1)) {
30830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
30831 }
30832 arg1 = reinterpret_cast< wxImageList * >(argp1);
30833 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30834 if (!SWIG_IsOK(res2)) {
30835 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30836 }
30837 if (!argp2) {
30838 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30839 }
30840 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30841 {
30842 arg3 = &temp3;
30843 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30844 }
30845 {
30846 PyThreadState* __tstate = wxPyBeginAllowThreads();
30847 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
30848 wxPyEndAllowThreads(__tstate);
30849 if (PyErr_Occurred()) SWIG_fail;
30850 }
30851 resultobj = SWIG_From_int(static_cast< int >(result));
30852 return resultobj;
30853 fail:
30854 return NULL;
30855 }
30856
30857
30858 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30859 PyObject *resultobj = 0;
30860 wxImageList *arg1 = (wxImageList *) 0 ;
30861 wxIcon *arg2 = 0 ;
30862 int result;
30863 void *argp1 = 0 ;
30864 int res1 = 0 ;
30865 void *argp2 = 0 ;
30866 int res2 = 0 ;
30867 PyObject * obj0 = 0 ;
30868 PyObject * obj1 = 0 ;
30869 char * kwnames[] = {
30870 (char *) "self",(char *) "icon", NULL
30871 };
30872
30873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
30874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30875 if (!SWIG_IsOK(res1)) {
30876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
30877 }
30878 arg1 = reinterpret_cast< wxImageList * >(argp1);
30879 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
30880 if (!SWIG_IsOK(res2)) {
30881 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30882 }
30883 if (!argp2) {
30884 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30885 }
30886 arg2 = reinterpret_cast< wxIcon * >(argp2);
30887 {
30888 PyThreadState* __tstate = wxPyBeginAllowThreads();
30889 result = (int)(arg1)->Add((wxIcon const &)*arg2);
30890 wxPyEndAllowThreads(__tstate);
30891 if (PyErr_Occurred()) SWIG_fail;
30892 }
30893 resultobj = SWIG_From_int(static_cast< int >(result));
30894 return resultobj;
30895 fail:
30896 return NULL;
30897 }
30898
30899
30900 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30901 PyObject *resultobj = 0;
30902 wxImageList *arg1 = (wxImageList *) 0 ;
30903 int arg2 ;
30904 SwigValueWrapper<wxBitmap > result;
30905 void *argp1 = 0 ;
30906 int res1 = 0 ;
30907 int val2 ;
30908 int ecode2 = 0 ;
30909 PyObject * obj0 = 0 ;
30910 PyObject * obj1 = 0 ;
30911 char * kwnames[] = {
30912 (char *) "self",(char *) "index", NULL
30913 };
30914
30915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
30916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30917 if (!SWIG_IsOK(res1)) {
30918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
30919 }
30920 arg1 = reinterpret_cast< wxImageList * >(argp1);
30921 ecode2 = SWIG_AsVal_int(obj1, &val2);
30922 if (!SWIG_IsOK(ecode2)) {
30923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
30924 }
30925 arg2 = static_cast< int >(val2);
30926 {
30927 PyThreadState* __tstate = wxPyBeginAllowThreads();
30928 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
30929 wxPyEndAllowThreads(__tstate);
30930 if (PyErr_Occurred()) SWIG_fail;
30931 }
30932 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
30933 return resultobj;
30934 fail:
30935 return NULL;
30936 }
30937
30938
30939 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30940 PyObject *resultobj = 0;
30941 wxImageList *arg1 = (wxImageList *) 0 ;
30942 int arg2 ;
30943 wxIcon result;
30944 void *argp1 = 0 ;
30945 int res1 = 0 ;
30946 int val2 ;
30947 int ecode2 = 0 ;
30948 PyObject * obj0 = 0 ;
30949 PyObject * obj1 = 0 ;
30950 char * kwnames[] = {
30951 (char *) "self",(char *) "index", NULL
30952 };
30953
30954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
30955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30956 if (!SWIG_IsOK(res1)) {
30957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
30958 }
30959 arg1 = reinterpret_cast< wxImageList * >(argp1);
30960 ecode2 = SWIG_AsVal_int(obj1, &val2);
30961 if (!SWIG_IsOK(ecode2)) {
30962 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
30963 }
30964 arg2 = static_cast< int >(val2);
30965 {
30966 PyThreadState* __tstate = wxPyBeginAllowThreads();
30967 result = ((wxImageList const *)arg1)->GetIcon(arg2);
30968 wxPyEndAllowThreads(__tstate);
30969 if (PyErr_Occurred()) SWIG_fail;
30970 }
30971 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
30972 return resultobj;
30973 fail:
30974 return NULL;
30975 }
30976
30977
30978 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30979 PyObject *resultobj = 0;
30980 wxImageList *arg1 = (wxImageList *) 0 ;
30981 int arg2 ;
30982 wxBitmap *arg3 = 0 ;
30983 wxBitmap const &arg4_defvalue = wxNullBitmap ;
30984 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
30985 bool result;
30986 void *argp1 = 0 ;
30987 int res1 = 0 ;
30988 int val2 ;
30989 int ecode2 = 0 ;
30990 void *argp3 = 0 ;
30991 int res3 = 0 ;
30992 void *argp4 = 0 ;
30993 int res4 = 0 ;
30994 PyObject * obj0 = 0 ;
30995 PyObject * obj1 = 0 ;
30996 PyObject * obj2 = 0 ;
30997 PyObject * obj3 = 0 ;
30998 char * kwnames[] = {
30999 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
31000 };
31001
31002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31004 if (!SWIG_IsOK(res1)) {
31005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
31006 }
31007 arg1 = reinterpret_cast< wxImageList * >(argp1);
31008 ecode2 = SWIG_AsVal_int(obj1, &val2);
31009 if (!SWIG_IsOK(ecode2)) {
31010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
31011 }
31012 arg2 = static_cast< int >(val2);
31013 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31014 if (!SWIG_IsOK(res3)) {
31015 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31016 }
31017 if (!argp3) {
31018 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31019 }
31020 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31021 if (obj3) {
31022 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
31023 if (!SWIG_IsOK(res4)) {
31024 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31025 }
31026 if (!argp4) {
31027 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31028 }
31029 arg4 = reinterpret_cast< wxBitmap * >(argp4);
31030 }
31031 {
31032 PyThreadState* __tstate = wxPyBeginAllowThreads();
31033 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
31034 wxPyEndAllowThreads(__tstate);
31035 if (PyErr_Occurred()) SWIG_fail;
31036 }
31037 {
31038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31039 }
31040 return resultobj;
31041 fail:
31042 return NULL;
31043 }
31044
31045
31046 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31047 PyObject *resultobj = 0;
31048 wxImageList *arg1 = (wxImageList *) 0 ;
31049 int arg2 ;
31050 wxDC *arg3 = 0 ;
31051 int arg4 ;
31052 int arg5 ;
31053 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
31054 bool arg7 = (bool) (bool)false ;
31055 bool result;
31056 void *argp1 = 0 ;
31057 int res1 = 0 ;
31058 int val2 ;
31059 int ecode2 = 0 ;
31060 void *argp3 = 0 ;
31061 int res3 = 0 ;
31062 int val4 ;
31063 int ecode4 = 0 ;
31064 int val5 ;
31065 int ecode5 = 0 ;
31066 int val6 ;
31067 int ecode6 = 0 ;
31068 bool val7 ;
31069 int ecode7 = 0 ;
31070 PyObject * obj0 = 0 ;
31071 PyObject * obj1 = 0 ;
31072 PyObject * obj2 = 0 ;
31073 PyObject * obj3 = 0 ;
31074 PyObject * obj4 = 0 ;
31075 PyObject * obj5 = 0 ;
31076 PyObject * obj6 = 0 ;
31077 char * kwnames[] = {
31078 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
31079 };
31080
31081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31083 if (!SWIG_IsOK(res1)) {
31084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
31085 }
31086 arg1 = reinterpret_cast< wxImageList * >(argp1);
31087 ecode2 = SWIG_AsVal_int(obj1, &val2);
31088 if (!SWIG_IsOK(ecode2)) {
31089 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
31090 }
31091 arg2 = static_cast< int >(val2);
31092 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31093 if (!SWIG_IsOK(res3)) {
31094 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31095 }
31096 if (!argp3) {
31097 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31098 }
31099 arg3 = reinterpret_cast< wxDC * >(argp3);
31100 ecode4 = SWIG_AsVal_int(obj3, &val4);
31101 if (!SWIG_IsOK(ecode4)) {
31102 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
31103 }
31104 arg4 = static_cast< int >(val4);
31105 ecode5 = SWIG_AsVal_int(obj4, &val5);
31106 if (!SWIG_IsOK(ecode5)) {
31107 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
31108 }
31109 arg5 = static_cast< int >(val5);
31110 if (obj5) {
31111 ecode6 = SWIG_AsVal_int(obj5, &val6);
31112 if (!SWIG_IsOK(ecode6)) {
31113 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
31114 }
31115 arg6 = static_cast< int >(val6);
31116 }
31117 if (obj6) {
31118 ecode7 = SWIG_AsVal_bool(obj6, &val7);
31119 if (!SWIG_IsOK(ecode7)) {
31120 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
31121 }
31122 arg7 = static_cast< bool >(val7);
31123 }
31124 {
31125 PyThreadState* __tstate = wxPyBeginAllowThreads();
31126 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
31127 wxPyEndAllowThreads(__tstate);
31128 if (PyErr_Occurred()) SWIG_fail;
31129 }
31130 {
31131 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31132 }
31133 return resultobj;
31134 fail:
31135 return NULL;
31136 }
31137
31138
31139 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31140 PyObject *resultobj = 0;
31141 wxImageList *arg1 = (wxImageList *) 0 ;
31142 int result;
31143 void *argp1 = 0 ;
31144 int res1 = 0 ;
31145 PyObject *swig_obj[1] ;
31146
31147 if (!args) SWIG_fail;
31148 swig_obj[0] = args;
31149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31150 if (!SWIG_IsOK(res1)) {
31151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
31152 }
31153 arg1 = reinterpret_cast< wxImageList * >(argp1);
31154 {
31155 PyThreadState* __tstate = wxPyBeginAllowThreads();
31156 result = (int)(arg1)->GetImageCount();
31157 wxPyEndAllowThreads(__tstate);
31158 if (PyErr_Occurred()) SWIG_fail;
31159 }
31160 resultobj = SWIG_From_int(static_cast< int >(result));
31161 return resultobj;
31162 fail:
31163 return NULL;
31164 }
31165
31166
31167 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31168 PyObject *resultobj = 0;
31169 wxImageList *arg1 = (wxImageList *) 0 ;
31170 int arg2 ;
31171 bool result;
31172 void *argp1 = 0 ;
31173 int res1 = 0 ;
31174 int val2 ;
31175 int ecode2 = 0 ;
31176 PyObject * obj0 = 0 ;
31177 PyObject * obj1 = 0 ;
31178 char * kwnames[] = {
31179 (char *) "self",(char *) "index", NULL
31180 };
31181
31182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
31183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31184 if (!SWIG_IsOK(res1)) {
31185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
31186 }
31187 arg1 = reinterpret_cast< wxImageList * >(argp1);
31188 ecode2 = SWIG_AsVal_int(obj1, &val2);
31189 if (!SWIG_IsOK(ecode2)) {
31190 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
31191 }
31192 arg2 = static_cast< int >(val2);
31193 {
31194 PyThreadState* __tstate = wxPyBeginAllowThreads();
31195 result = (bool)(arg1)->Remove(arg2);
31196 wxPyEndAllowThreads(__tstate);
31197 if (PyErr_Occurred()) SWIG_fail;
31198 }
31199 {
31200 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31201 }
31202 return resultobj;
31203 fail:
31204 return NULL;
31205 }
31206
31207
31208 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31209 PyObject *resultobj = 0;
31210 wxImageList *arg1 = (wxImageList *) 0 ;
31211 bool result;
31212 void *argp1 = 0 ;
31213 int res1 = 0 ;
31214 PyObject *swig_obj[1] ;
31215
31216 if (!args) SWIG_fail;
31217 swig_obj[0] = args;
31218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31219 if (!SWIG_IsOK(res1)) {
31220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
31221 }
31222 arg1 = reinterpret_cast< wxImageList * >(argp1);
31223 {
31224 PyThreadState* __tstate = wxPyBeginAllowThreads();
31225 result = (bool)(arg1)->RemoveAll();
31226 wxPyEndAllowThreads(__tstate);
31227 if (PyErr_Occurred()) SWIG_fail;
31228 }
31229 {
31230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31231 }
31232 return resultobj;
31233 fail:
31234 return NULL;
31235 }
31236
31237
31238 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31239 PyObject *resultobj = 0;
31240 wxImageList *arg1 = (wxImageList *) 0 ;
31241 int arg2 ;
31242 int *arg3 = 0 ;
31243 int *arg4 = 0 ;
31244 void *argp1 = 0 ;
31245 int res1 = 0 ;
31246 int val2 ;
31247 int ecode2 = 0 ;
31248 int temp3 ;
31249 int res3 = SWIG_TMPOBJ ;
31250 int temp4 ;
31251 int res4 = SWIG_TMPOBJ ;
31252 PyObject * obj0 = 0 ;
31253 PyObject * obj1 = 0 ;
31254 char * kwnames[] = {
31255 (char *) "self",(char *) "index", NULL
31256 };
31257
31258 arg3 = &temp3;
31259 arg4 = &temp4;
31260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
31261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31262 if (!SWIG_IsOK(res1)) {
31263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
31264 }
31265 arg1 = reinterpret_cast< wxImageList * >(argp1);
31266 ecode2 = SWIG_AsVal_int(obj1, &val2);
31267 if (!SWIG_IsOK(ecode2)) {
31268 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
31269 }
31270 arg2 = static_cast< int >(val2);
31271 {
31272 PyThreadState* __tstate = wxPyBeginAllowThreads();
31273 (arg1)->GetSize(arg2,*arg3,*arg4);
31274 wxPyEndAllowThreads(__tstate);
31275 if (PyErr_Occurred()) SWIG_fail;
31276 }
31277 resultobj = SWIG_Py_Void();
31278 if (SWIG_IsTmpObj(res3)) {
31279 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31280 } else {
31281 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31282 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31283 }
31284 if (SWIG_IsTmpObj(res4)) {
31285 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
31286 } else {
31287 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31288 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
31289 }
31290 return resultobj;
31291 fail:
31292 return NULL;
31293 }
31294
31295
31296 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31297 PyObject *obj;
31298 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31299 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
31300 return SWIG_Py_Void();
31301 }
31302
31303 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31304 return SWIG_Python_InitShadowInstance(args);
31305 }
31306
31307 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31308 PyObject *resultobj = 0;
31309 wxStockGDI *result = 0 ;
31310
31311 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
31312 {
31313 PyThreadState* __tstate = wxPyBeginAllowThreads();
31314 result = (wxStockGDI *)new wxStockGDI();
31315 wxPyEndAllowThreads(__tstate);
31316 if (PyErr_Occurred()) SWIG_fail;
31317 }
31318 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
31319 return resultobj;
31320 fail:
31321 return NULL;
31322 }
31323
31324
31325 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31326 PyObject *resultobj = 0;
31327 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31328 void *argp1 = 0 ;
31329 int res1 = 0 ;
31330 PyObject *swig_obj[1] ;
31331
31332 if (!args) SWIG_fail;
31333 swig_obj[0] = args;
31334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
31335 if (!SWIG_IsOK(res1)) {
31336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31337 }
31338 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31339 {
31340 PyThreadState* __tstate = wxPyBeginAllowThreads();
31341 delete arg1;
31342
31343 wxPyEndAllowThreads(__tstate);
31344 if (PyErr_Occurred()) SWIG_fail;
31345 }
31346 resultobj = SWIG_Py_Void();
31347 return resultobj;
31348 fail:
31349 return NULL;
31350 }
31351
31352
31353 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31354 PyObject *resultobj = 0;
31355
31356 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
31357 {
31358 PyThreadState* __tstate = wxPyBeginAllowThreads();
31359 wxStockGDI::DeleteAll();
31360 wxPyEndAllowThreads(__tstate);
31361 if (PyErr_Occurred()) SWIG_fail;
31362 }
31363 resultobj = SWIG_Py_Void();
31364 return resultobj;
31365 fail:
31366 return NULL;
31367 }
31368
31369
31370 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31371 PyObject *resultobj = 0;
31372 wxStockGDI *result = 0 ;
31373
31374 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
31375 {
31376 PyThreadState* __tstate = wxPyBeginAllowThreads();
31377 {
31378 wxStockGDI &_result_ref = wxStockGDI::instance();
31379 result = (wxStockGDI *) &_result_ref;
31380 }
31381 wxPyEndAllowThreads(__tstate);
31382 if (PyErr_Occurred()) SWIG_fail;
31383 }
31384 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
31385 return resultobj;
31386 fail:
31387 return NULL;
31388 }
31389
31390
31391 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31392 PyObject *resultobj = 0;
31393 wxStockGDI::Item arg1 ;
31394 wxBrush *result = 0 ;
31395 int val1 ;
31396 int ecode1 = 0 ;
31397 PyObject * obj0 = 0 ;
31398 char * kwnames[] = {
31399 (char *) "item", NULL
31400 };
31401
31402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
31403 ecode1 = SWIG_AsVal_int(obj0, &val1);
31404 if (!SWIG_IsOK(ecode1)) {
31405 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31406 }
31407 arg1 = static_cast< wxStockGDI::Item >(val1);
31408 {
31409 PyThreadState* __tstate = wxPyBeginAllowThreads();
31410 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
31411 wxPyEndAllowThreads(__tstate);
31412 if (PyErr_Occurred()) SWIG_fail;
31413 }
31414 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
31415 return resultobj;
31416 fail:
31417 return NULL;
31418 }
31419
31420
31421 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31422 PyObject *resultobj = 0;
31423 wxStockGDI::Item arg1 ;
31424 wxColour *result = 0 ;
31425 int val1 ;
31426 int ecode1 = 0 ;
31427 PyObject * obj0 = 0 ;
31428 char * kwnames[] = {
31429 (char *) "item", NULL
31430 };
31431
31432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
31433 ecode1 = SWIG_AsVal_int(obj0, &val1);
31434 if (!SWIG_IsOK(ecode1)) {
31435 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31436 }
31437 arg1 = static_cast< wxStockGDI::Item >(val1);
31438 {
31439 PyThreadState* __tstate = wxPyBeginAllowThreads();
31440 result = (wxColour *)wxStockGDI::GetColour(arg1);
31441 wxPyEndAllowThreads(__tstate);
31442 if (PyErr_Occurred()) SWIG_fail;
31443 }
31444 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
31445 return resultobj;
31446 fail:
31447 return NULL;
31448 }
31449
31450
31451 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31452 PyObject *resultobj = 0;
31453 wxStockGDI::Item arg1 ;
31454 wxCursor *result = 0 ;
31455 int val1 ;
31456 int ecode1 = 0 ;
31457 PyObject * obj0 = 0 ;
31458 char * kwnames[] = {
31459 (char *) "item", NULL
31460 };
31461
31462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
31463 ecode1 = SWIG_AsVal_int(obj0, &val1);
31464 if (!SWIG_IsOK(ecode1)) {
31465 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31466 }
31467 arg1 = static_cast< wxStockGDI::Item >(val1);
31468 {
31469 PyThreadState* __tstate = wxPyBeginAllowThreads();
31470 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
31471 wxPyEndAllowThreads(__tstate);
31472 if (PyErr_Occurred()) SWIG_fail;
31473 }
31474 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
31475 return resultobj;
31476 fail:
31477 return NULL;
31478 }
31479
31480
31481 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31482 PyObject *resultobj = 0;
31483 wxStockGDI::Item arg1 ;
31484 wxPen *result = 0 ;
31485 int val1 ;
31486 int ecode1 = 0 ;
31487 PyObject * obj0 = 0 ;
31488 char * kwnames[] = {
31489 (char *) "item", NULL
31490 };
31491
31492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
31493 ecode1 = SWIG_AsVal_int(obj0, &val1);
31494 if (!SWIG_IsOK(ecode1)) {
31495 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31496 }
31497 arg1 = static_cast< wxStockGDI::Item >(val1);
31498 {
31499 PyThreadState* __tstate = wxPyBeginAllowThreads();
31500 result = (wxPen *)wxStockGDI::GetPen(arg1);
31501 wxPyEndAllowThreads(__tstate);
31502 if (PyErr_Occurred()) SWIG_fail;
31503 }
31504 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
31505 return resultobj;
31506 fail:
31507 return NULL;
31508 }
31509
31510
31511 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31512 PyObject *resultobj = 0;
31513 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31514 wxStockGDI::Item arg2 ;
31515 wxFont *result = 0 ;
31516 void *argp1 = 0 ;
31517 int res1 = 0 ;
31518 int val2 ;
31519 int ecode2 = 0 ;
31520 PyObject * obj0 = 0 ;
31521 PyObject * obj1 = 0 ;
31522 char * kwnames[] = {
31523 (char *) "self",(char *) "item", NULL
31524 };
31525
31526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
31527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
31528 if (!SWIG_IsOK(res1)) {
31529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31530 }
31531 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31532 ecode2 = SWIG_AsVal_int(obj1, &val2);
31533 if (!SWIG_IsOK(ecode2)) {
31534 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
31535 }
31536 arg2 = static_cast< wxStockGDI::Item >(val2);
31537 {
31538 PyThreadState* __tstate = wxPyBeginAllowThreads();
31539 result = (wxFont *)(arg1)->GetFont(arg2);
31540 wxPyEndAllowThreads(__tstate);
31541 if (PyErr_Occurred()) SWIG_fail;
31542 }
31543 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
31544 return resultobj;
31545 fail:
31546 return NULL;
31547 }
31548
31549
31550 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31551 PyObject *obj;
31552 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31553 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
31554 return SWIG_Py_Void();
31555 }
31556
31557 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31558 return SWIG_Python_InitShadowInstance(args);
31559 }
31560
31561 SWIGINTERN int NullBitmap_set(PyObject *) {
31562 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
31563 return 1;
31564 }
31565
31566
31567 SWIGINTERN PyObject *NullBitmap_get(void) {
31568 PyObject *pyobj = 0;
31569
31570 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
31571 return pyobj;
31572 }
31573
31574
31575 SWIGINTERN int NullIcon_set(PyObject *) {
31576 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
31577 return 1;
31578 }
31579
31580
31581 SWIGINTERN PyObject *NullIcon_get(void) {
31582 PyObject *pyobj = 0;
31583
31584 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
31585 return pyobj;
31586 }
31587
31588
31589 SWIGINTERN int NullCursor_set(PyObject *) {
31590 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
31591 return 1;
31592 }
31593
31594
31595 SWIGINTERN PyObject *NullCursor_get(void) {
31596 PyObject *pyobj = 0;
31597
31598 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
31599 return pyobj;
31600 }
31601
31602
31603 SWIGINTERN int NullPen_set(PyObject *) {
31604 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
31605 return 1;
31606 }
31607
31608
31609 SWIGINTERN PyObject *NullPen_get(void) {
31610 PyObject *pyobj = 0;
31611
31612 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
31613 return pyobj;
31614 }
31615
31616
31617 SWIGINTERN int NullBrush_set(PyObject *) {
31618 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
31619 return 1;
31620 }
31621
31622
31623 SWIGINTERN PyObject *NullBrush_get(void) {
31624 PyObject *pyobj = 0;
31625
31626 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
31627 return pyobj;
31628 }
31629
31630
31631 SWIGINTERN int NullPalette_set(PyObject *) {
31632 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
31633 return 1;
31634 }
31635
31636
31637 SWIGINTERN PyObject *NullPalette_get(void) {
31638 PyObject *pyobj = 0;
31639
31640 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
31641 return pyobj;
31642 }
31643
31644
31645 SWIGINTERN int NullFont_set(PyObject *) {
31646 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
31647 return 1;
31648 }
31649
31650
31651 SWIGINTERN PyObject *NullFont_get(void) {
31652 PyObject *pyobj = 0;
31653
31654 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
31655 return pyobj;
31656 }
31657
31658
31659 SWIGINTERN int NullColour_set(PyObject *) {
31660 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
31661 return 1;
31662 }
31663
31664
31665 SWIGINTERN PyObject *NullColour_get(void) {
31666 PyObject *pyobj = 0;
31667
31668 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
31669 return pyobj;
31670 }
31671
31672
31673 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31674 PyObject *resultobj = 0;
31675 wxGDIObjListBase *result = 0 ;
31676
31677 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
31678 {
31679 PyThreadState* __tstate = wxPyBeginAllowThreads();
31680 result = (wxGDIObjListBase *)new wxGDIObjListBase();
31681 wxPyEndAllowThreads(__tstate);
31682 if (PyErr_Occurred()) SWIG_fail;
31683 }
31684 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
31685 return resultobj;
31686 fail:
31687 return NULL;
31688 }
31689
31690
31691 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31692 PyObject *resultobj = 0;
31693 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
31694 void *argp1 = 0 ;
31695 int res1 = 0 ;
31696 PyObject *swig_obj[1] ;
31697
31698 if (!args) SWIG_fail;
31699 swig_obj[0] = args;
31700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
31701 if (!SWIG_IsOK(res1)) {
31702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
31703 }
31704 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
31705 {
31706 PyThreadState* __tstate = wxPyBeginAllowThreads();
31707 delete arg1;
31708
31709 wxPyEndAllowThreads(__tstate);
31710 if (PyErr_Occurred()) SWIG_fail;
31711 }
31712 resultobj = SWIG_Py_Void();
31713 return resultobj;
31714 fail:
31715 return NULL;
31716 }
31717
31718
31719 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31720 PyObject *obj;
31721 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31722 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
31723 return SWIG_Py_Void();
31724 }
31725
31726 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31727 return SWIG_Python_InitShadowInstance(args);
31728 }
31729
31730 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31731 PyObject *resultobj = 0;
31732 wxPenList *arg1 = (wxPenList *) 0 ;
31733 wxColour *arg2 = 0 ;
31734 int arg3 ;
31735 int arg4 ;
31736 wxPen *result = 0 ;
31737 void *argp1 = 0 ;
31738 int res1 = 0 ;
31739 wxColour temp2 ;
31740 int val3 ;
31741 int ecode3 = 0 ;
31742 int val4 ;
31743 int ecode4 = 0 ;
31744 PyObject * obj0 = 0 ;
31745 PyObject * obj1 = 0 ;
31746 PyObject * obj2 = 0 ;
31747 PyObject * obj3 = 0 ;
31748 char * kwnames[] = {
31749 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
31750 };
31751
31752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
31754 if (!SWIG_IsOK(res1)) {
31755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
31756 }
31757 arg1 = reinterpret_cast< wxPenList * >(argp1);
31758 {
31759 arg2 = &temp2;
31760 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
31761 }
31762 ecode3 = SWIG_AsVal_int(obj2, &val3);
31763 if (!SWIG_IsOK(ecode3)) {
31764 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
31765 }
31766 arg3 = static_cast< int >(val3);
31767 ecode4 = SWIG_AsVal_int(obj3, &val4);
31768 if (!SWIG_IsOK(ecode4)) {
31769 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
31770 }
31771 arg4 = static_cast< int >(val4);
31772 {
31773 PyThreadState* __tstate = wxPyBeginAllowThreads();
31774 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
31775 wxPyEndAllowThreads(__tstate);
31776 if (PyErr_Occurred()) SWIG_fail;
31777 }
31778 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
31779 return resultobj;
31780 fail:
31781 return NULL;
31782 }
31783
31784
31785 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31786 PyObject *resultobj = 0;
31787 wxPenList *arg1 = (wxPenList *) 0 ;
31788 wxPen *arg2 = (wxPen *) 0 ;
31789 void *argp1 = 0 ;
31790 int res1 = 0 ;
31791 void *argp2 = 0 ;
31792 int res2 = 0 ;
31793 PyObject * obj0 = 0 ;
31794 PyObject * obj1 = 0 ;
31795 char * kwnames[] = {
31796 (char *) "self",(char *) "pen", NULL
31797 };
31798
31799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
31800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
31801 if (!SWIG_IsOK(res1)) {
31802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
31803 }
31804 arg1 = reinterpret_cast< wxPenList * >(argp1);
31805 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
31806 if (!SWIG_IsOK(res2)) {
31807 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
31808 }
31809 arg2 = reinterpret_cast< wxPen * >(argp2);
31810 {
31811 PyThreadState* __tstate = wxPyBeginAllowThreads();
31812 (arg1)->AddPen(arg2);
31813 wxPyEndAllowThreads(__tstate);
31814 if (PyErr_Occurred()) SWIG_fail;
31815 }
31816 resultobj = SWIG_Py_Void();
31817 return resultobj;
31818 fail:
31819 return NULL;
31820 }
31821
31822
31823 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31824 PyObject *resultobj = 0;
31825 wxPenList *arg1 = (wxPenList *) 0 ;
31826 wxPen *arg2 = (wxPen *) 0 ;
31827 void *argp1 = 0 ;
31828 int res1 = 0 ;
31829 void *argp2 = 0 ;
31830 int res2 = 0 ;
31831 PyObject * obj0 = 0 ;
31832 PyObject * obj1 = 0 ;
31833 char * kwnames[] = {
31834 (char *) "self",(char *) "pen", NULL
31835 };
31836
31837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
31838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
31839 if (!SWIG_IsOK(res1)) {
31840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
31841 }
31842 arg1 = reinterpret_cast< wxPenList * >(argp1);
31843 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
31844 if (!SWIG_IsOK(res2)) {
31845 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
31846 }
31847 arg2 = reinterpret_cast< wxPen * >(argp2);
31848 {
31849 PyThreadState* __tstate = wxPyBeginAllowThreads();
31850 (arg1)->RemovePen(arg2);
31851 wxPyEndAllowThreads(__tstate);
31852 if (PyErr_Occurred()) SWIG_fail;
31853 }
31854 resultobj = SWIG_Py_Void();
31855 return resultobj;
31856 fail:
31857 return NULL;
31858 }
31859
31860
31861 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31862 PyObject *obj;
31863 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31864 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
31865 return SWIG_Py_Void();
31866 }
31867
31868 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31869 PyObject *resultobj = 0;
31870 wxBrushList *arg1 = (wxBrushList *) 0 ;
31871 wxColour *arg2 = 0 ;
31872 int arg3 = (int) wxSOLID ;
31873 wxBrush *result = 0 ;
31874 void *argp1 = 0 ;
31875 int res1 = 0 ;
31876 wxColour temp2 ;
31877 int val3 ;
31878 int ecode3 = 0 ;
31879 PyObject * obj0 = 0 ;
31880 PyObject * obj1 = 0 ;
31881 PyObject * obj2 = 0 ;
31882 char * kwnames[] = {
31883 (char *) "self",(char *) "colour",(char *) "style", NULL
31884 };
31885
31886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
31888 if (!SWIG_IsOK(res1)) {
31889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
31890 }
31891 arg1 = reinterpret_cast< wxBrushList * >(argp1);
31892 {
31893 arg2 = &temp2;
31894 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
31895 }
31896 if (obj2) {
31897 ecode3 = SWIG_AsVal_int(obj2, &val3);
31898 if (!SWIG_IsOK(ecode3)) {
31899 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
31900 }
31901 arg3 = static_cast< int >(val3);
31902 }
31903 {
31904 PyThreadState* __tstate = wxPyBeginAllowThreads();
31905 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
31906 wxPyEndAllowThreads(__tstate);
31907 if (PyErr_Occurred()) SWIG_fail;
31908 }
31909 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
31910 return resultobj;
31911 fail:
31912 return NULL;
31913 }
31914
31915
31916 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31917 PyObject *resultobj = 0;
31918 wxBrushList *arg1 = (wxBrushList *) 0 ;
31919 wxBrush *arg2 = (wxBrush *) 0 ;
31920 void *argp1 = 0 ;
31921 int res1 = 0 ;
31922 void *argp2 = 0 ;
31923 int res2 = 0 ;
31924 PyObject * obj0 = 0 ;
31925 PyObject * obj1 = 0 ;
31926 char * kwnames[] = {
31927 (char *) "self",(char *) "brush", NULL
31928 };
31929
31930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
31931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
31932 if (!SWIG_IsOK(res1)) {
31933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
31934 }
31935 arg1 = reinterpret_cast< wxBrushList * >(argp1);
31936 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
31937 if (!SWIG_IsOK(res2)) {
31938 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
31939 }
31940 arg2 = reinterpret_cast< wxBrush * >(argp2);
31941 {
31942 PyThreadState* __tstate = wxPyBeginAllowThreads();
31943 (arg1)->AddBrush(arg2);
31944 wxPyEndAllowThreads(__tstate);
31945 if (PyErr_Occurred()) SWIG_fail;
31946 }
31947 resultobj = SWIG_Py_Void();
31948 return resultobj;
31949 fail:
31950 return NULL;
31951 }
31952
31953
31954 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31955 PyObject *resultobj = 0;
31956 wxBrushList *arg1 = (wxBrushList *) 0 ;
31957 wxBrush *arg2 = (wxBrush *) 0 ;
31958 void *argp1 = 0 ;
31959 int res1 = 0 ;
31960 void *argp2 = 0 ;
31961 int res2 = 0 ;
31962 PyObject * obj0 = 0 ;
31963 PyObject * obj1 = 0 ;
31964 char * kwnames[] = {
31965 (char *) "self",(char *) "brush", NULL
31966 };
31967
31968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
31969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
31970 if (!SWIG_IsOK(res1)) {
31971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
31972 }
31973 arg1 = reinterpret_cast< wxBrushList * >(argp1);
31974 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
31975 if (!SWIG_IsOK(res2)) {
31976 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
31977 }
31978 arg2 = reinterpret_cast< wxBrush * >(argp2);
31979 {
31980 PyThreadState* __tstate = wxPyBeginAllowThreads();
31981 (arg1)->RemoveBrush(arg2);
31982 wxPyEndAllowThreads(__tstate);
31983 if (PyErr_Occurred()) SWIG_fail;
31984 }
31985 resultobj = SWIG_Py_Void();
31986 return resultobj;
31987 fail:
31988 return NULL;
31989 }
31990
31991
31992 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31993 PyObject *obj;
31994 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31995 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
31996 return SWIG_Py_Void();
31997 }
31998
31999 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32000 PyObject *resultobj = 0;
32001 wxFontList *arg1 = (wxFontList *) 0 ;
32002 int arg2 ;
32003 int arg3 ;
32004 int arg4 ;
32005 int arg5 ;
32006 bool arg6 = (bool) false ;
32007 wxString const &arg7_defvalue = wxPyEmptyString ;
32008 wxString *arg7 = (wxString *) &arg7_defvalue ;
32009 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
32010 wxFont *result = 0 ;
32011 void *argp1 = 0 ;
32012 int res1 = 0 ;
32013 int val2 ;
32014 int ecode2 = 0 ;
32015 int val3 ;
32016 int ecode3 = 0 ;
32017 int val4 ;
32018 int ecode4 = 0 ;
32019 int val5 ;
32020 int ecode5 = 0 ;
32021 bool val6 ;
32022 int ecode6 = 0 ;
32023 bool temp7 = false ;
32024 int val8 ;
32025 int ecode8 = 0 ;
32026 PyObject * obj0 = 0 ;
32027 PyObject * obj1 = 0 ;
32028 PyObject * obj2 = 0 ;
32029 PyObject * obj3 = 0 ;
32030 PyObject * obj4 = 0 ;
32031 PyObject * obj5 = 0 ;
32032 PyObject * obj6 = 0 ;
32033 PyObject * obj7 = 0 ;
32034 char * kwnames[] = {
32035 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
32036 };
32037
32038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
32040 if (!SWIG_IsOK(res1)) {
32041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
32042 }
32043 arg1 = reinterpret_cast< wxFontList * >(argp1);
32044 ecode2 = SWIG_AsVal_int(obj1, &val2);
32045 if (!SWIG_IsOK(ecode2)) {
32046 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
32047 }
32048 arg2 = static_cast< int >(val2);
32049 ecode3 = SWIG_AsVal_int(obj2, &val3);
32050 if (!SWIG_IsOK(ecode3)) {
32051 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
32052 }
32053 arg3 = static_cast< int >(val3);
32054 ecode4 = SWIG_AsVal_int(obj3, &val4);
32055 if (!SWIG_IsOK(ecode4)) {
32056 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
32057 }
32058 arg4 = static_cast< int >(val4);
32059 ecode5 = SWIG_AsVal_int(obj4, &val5);
32060 if (!SWIG_IsOK(ecode5)) {
32061 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
32062 }
32063 arg5 = static_cast< int >(val5);
32064 if (obj5) {
32065 ecode6 = SWIG_AsVal_bool(obj5, &val6);
32066 if (!SWIG_IsOK(ecode6)) {
32067 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
32068 }
32069 arg6 = static_cast< bool >(val6);
32070 }
32071 if (obj6) {
32072 {
32073 arg7 = wxString_in_helper(obj6);
32074 if (arg7 == NULL) SWIG_fail;
32075 temp7 = true;
32076 }
32077 }
32078 if (obj7) {
32079 ecode8 = SWIG_AsVal_int(obj7, &val8);
32080 if (!SWIG_IsOK(ecode8)) {
32081 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
32082 }
32083 arg8 = static_cast< wxFontEncoding >(val8);
32084 }
32085 {
32086 PyThreadState* __tstate = wxPyBeginAllowThreads();
32087 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
32088 wxPyEndAllowThreads(__tstate);
32089 if (PyErr_Occurred()) SWIG_fail;
32090 }
32091 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32092 {
32093 if (temp7)
32094 delete arg7;
32095 }
32096 return resultobj;
32097 fail:
32098 {
32099 if (temp7)
32100 delete arg7;
32101 }
32102 return NULL;
32103 }
32104
32105
32106 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32107 PyObject *resultobj = 0;
32108 wxFontList *arg1 = (wxFontList *) 0 ;
32109 wxFont *arg2 = (wxFont *) 0 ;
32110 void *argp1 = 0 ;
32111 int res1 = 0 ;
32112 void *argp2 = 0 ;
32113 int res2 = 0 ;
32114 PyObject * obj0 = 0 ;
32115 PyObject * obj1 = 0 ;
32116 char * kwnames[] = {
32117 (char *) "self",(char *) "font", NULL
32118 };
32119
32120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
32121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
32122 if (!SWIG_IsOK(res1)) {
32123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
32124 }
32125 arg1 = reinterpret_cast< wxFontList * >(argp1);
32126 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
32127 if (!SWIG_IsOK(res2)) {
32128 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
32129 }
32130 arg2 = reinterpret_cast< wxFont * >(argp2);
32131 {
32132 PyThreadState* __tstate = wxPyBeginAllowThreads();
32133 (arg1)->AddFont(arg2);
32134 wxPyEndAllowThreads(__tstate);
32135 if (PyErr_Occurred()) SWIG_fail;
32136 }
32137 resultobj = SWIG_Py_Void();
32138 return resultobj;
32139 fail:
32140 return NULL;
32141 }
32142
32143
32144 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32145 PyObject *resultobj = 0;
32146 wxFontList *arg1 = (wxFontList *) 0 ;
32147 wxFont *arg2 = (wxFont *) 0 ;
32148 void *argp1 = 0 ;
32149 int res1 = 0 ;
32150 void *argp2 = 0 ;
32151 int res2 = 0 ;
32152 PyObject * obj0 = 0 ;
32153 PyObject * obj1 = 0 ;
32154 char * kwnames[] = {
32155 (char *) "self",(char *) "font", NULL
32156 };
32157
32158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
32159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
32160 if (!SWIG_IsOK(res1)) {
32161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
32162 }
32163 arg1 = reinterpret_cast< wxFontList * >(argp1);
32164 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
32165 if (!SWIG_IsOK(res2)) {
32166 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
32167 }
32168 arg2 = reinterpret_cast< wxFont * >(argp2);
32169 {
32170 PyThreadState* __tstate = wxPyBeginAllowThreads();
32171 (arg1)->RemoveFont(arg2);
32172 wxPyEndAllowThreads(__tstate);
32173 if (PyErr_Occurred()) SWIG_fail;
32174 }
32175 resultobj = SWIG_Py_Void();
32176 return resultobj;
32177 fail:
32178 return NULL;
32179 }
32180
32181
32182 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32183 PyObject *obj;
32184 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32185 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
32186 return SWIG_Py_Void();
32187 }
32188
32189 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32190 PyObject *resultobj = 0;
32191 wxColourDatabase *result = 0 ;
32192
32193 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
32194 {
32195 if (!wxPyCheckForApp()) SWIG_fail;
32196 PyThreadState* __tstate = wxPyBeginAllowThreads();
32197 result = (wxColourDatabase *)new wxColourDatabase();
32198 wxPyEndAllowThreads(__tstate);
32199 if (PyErr_Occurred()) SWIG_fail;
32200 }
32201 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
32202 return resultobj;
32203 fail:
32204 return NULL;
32205 }
32206
32207
32208 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32209 PyObject *resultobj = 0;
32210 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32211 void *argp1 = 0 ;
32212 int res1 = 0 ;
32213 PyObject *swig_obj[1] ;
32214
32215 if (!args) SWIG_fail;
32216 swig_obj[0] = args;
32217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
32218 if (!SWIG_IsOK(res1)) {
32219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32220 }
32221 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32222 {
32223 PyThreadState* __tstate = wxPyBeginAllowThreads();
32224 delete arg1;
32225
32226 wxPyEndAllowThreads(__tstate);
32227 if (PyErr_Occurred()) SWIG_fail;
32228 }
32229 resultobj = SWIG_Py_Void();
32230 return resultobj;
32231 fail:
32232 return NULL;
32233 }
32234
32235
32236 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32237 PyObject *resultobj = 0;
32238 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32239 wxString *arg2 = 0 ;
32240 wxColour result;
32241 void *argp1 = 0 ;
32242 int res1 = 0 ;
32243 bool temp2 = false ;
32244 PyObject * obj0 = 0 ;
32245 PyObject * obj1 = 0 ;
32246 char * kwnames[] = {
32247 (char *) "self",(char *) "name", NULL
32248 };
32249
32250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
32251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32252 if (!SWIG_IsOK(res1)) {
32253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32254 }
32255 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32256 {
32257 arg2 = wxString_in_helper(obj1);
32258 if (arg2 == NULL) SWIG_fail;
32259 temp2 = true;
32260 }
32261 {
32262 PyThreadState* __tstate = wxPyBeginAllowThreads();
32263 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
32264 wxPyEndAllowThreads(__tstate);
32265 if (PyErr_Occurred()) SWIG_fail;
32266 }
32267 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32268 {
32269 if (temp2)
32270 delete arg2;
32271 }
32272 return resultobj;
32273 fail:
32274 {
32275 if (temp2)
32276 delete arg2;
32277 }
32278 return NULL;
32279 }
32280
32281
32282 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32283 PyObject *resultobj = 0;
32284 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32285 wxColour *arg2 = 0 ;
32286 wxString result;
32287 void *argp1 = 0 ;
32288 int res1 = 0 ;
32289 wxColour temp2 ;
32290 PyObject * obj0 = 0 ;
32291 PyObject * obj1 = 0 ;
32292 char * kwnames[] = {
32293 (char *) "self",(char *) "colour", NULL
32294 };
32295
32296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
32297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32298 if (!SWIG_IsOK(res1)) {
32299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32300 }
32301 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32302 {
32303 arg2 = &temp2;
32304 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32305 }
32306 {
32307 PyThreadState* __tstate = wxPyBeginAllowThreads();
32308 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
32309 wxPyEndAllowThreads(__tstate);
32310 if (PyErr_Occurred()) SWIG_fail;
32311 }
32312 {
32313 #if wxUSE_UNICODE
32314 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32315 #else
32316 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32317 #endif
32318 }
32319 return resultobj;
32320 fail:
32321 return NULL;
32322 }
32323
32324
32325 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32326 PyObject *resultobj = 0;
32327 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32328 wxString *arg2 = 0 ;
32329 wxColour *arg3 = 0 ;
32330 void *argp1 = 0 ;
32331 int res1 = 0 ;
32332 bool temp2 = false ;
32333 wxColour temp3 ;
32334 PyObject * obj0 = 0 ;
32335 PyObject * obj1 = 0 ;
32336 PyObject * obj2 = 0 ;
32337 char * kwnames[] = {
32338 (char *) "self",(char *) "name",(char *) "colour", NULL
32339 };
32340
32341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32343 if (!SWIG_IsOK(res1)) {
32344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32345 }
32346 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32347 {
32348 arg2 = wxString_in_helper(obj1);
32349 if (arg2 == NULL) SWIG_fail;
32350 temp2 = true;
32351 }
32352 {
32353 arg3 = &temp3;
32354 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32355 }
32356 {
32357 PyThreadState* __tstate = wxPyBeginAllowThreads();
32358 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
32359 wxPyEndAllowThreads(__tstate);
32360 if (PyErr_Occurred()) SWIG_fail;
32361 }
32362 resultobj = SWIG_Py_Void();
32363 {
32364 if (temp2)
32365 delete arg2;
32366 }
32367 return resultobj;
32368 fail:
32369 {
32370 if (temp2)
32371 delete arg2;
32372 }
32373 return NULL;
32374 }
32375
32376
32377 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32378 PyObject *resultobj = 0;
32379 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32380 wxString *arg2 = 0 ;
32381 int arg3 ;
32382 int arg4 ;
32383 int arg5 ;
32384 void *argp1 = 0 ;
32385 int res1 = 0 ;
32386 bool temp2 = false ;
32387 int val3 ;
32388 int ecode3 = 0 ;
32389 int val4 ;
32390 int ecode4 = 0 ;
32391 int val5 ;
32392 int ecode5 = 0 ;
32393 PyObject * obj0 = 0 ;
32394 PyObject * obj1 = 0 ;
32395 PyObject * obj2 = 0 ;
32396 PyObject * obj3 = 0 ;
32397 PyObject * obj4 = 0 ;
32398 char * kwnames[] = {
32399 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
32400 };
32401
32402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32404 if (!SWIG_IsOK(res1)) {
32405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32406 }
32407 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32408 {
32409 arg2 = wxString_in_helper(obj1);
32410 if (arg2 == NULL) SWIG_fail;
32411 temp2 = true;
32412 }
32413 ecode3 = SWIG_AsVal_int(obj2, &val3);
32414 if (!SWIG_IsOK(ecode3)) {
32415 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
32416 }
32417 arg3 = static_cast< int >(val3);
32418 ecode4 = SWIG_AsVal_int(obj3, &val4);
32419 if (!SWIG_IsOK(ecode4)) {
32420 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
32421 }
32422 arg4 = static_cast< int >(val4);
32423 ecode5 = SWIG_AsVal_int(obj4, &val5);
32424 if (!SWIG_IsOK(ecode5)) {
32425 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
32426 }
32427 arg5 = static_cast< int >(val5);
32428 {
32429 PyThreadState* __tstate = wxPyBeginAllowThreads();
32430 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
32431 wxPyEndAllowThreads(__tstate);
32432 if (PyErr_Occurred()) SWIG_fail;
32433 }
32434 resultobj = SWIG_Py_Void();
32435 {
32436 if (temp2)
32437 delete arg2;
32438 }
32439 return resultobj;
32440 fail:
32441 {
32442 if (temp2)
32443 delete arg2;
32444 }
32445 return NULL;
32446 }
32447
32448
32449 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32450 PyObject *obj;
32451 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32452 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
32453 return SWIG_Py_Void();
32454 }
32455
32456 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32457 return SWIG_Python_InitShadowInstance(args);
32458 }
32459
32460 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32461 PyObject *resultobj = 0;
32462 wxFontList *result = 0 ;
32463
32464 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
32465 {
32466 PyThreadState* __tstate = wxPyBeginAllowThreads();
32467 result = (wxFontList *)_wxPyInitTheFontList();
32468 wxPyEndAllowThreads(__tstate);
32469 if (PyErr_Occurred()) SWIG_fail;
32470 }
32471 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
32472 return resultobj;
32473 fail:
32474 return NULL;
32475 }
32476
32477
32478 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32479 PyObject *resultobj = 0;
32480 wxPenList *result = 0 ;
32481
32482 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
32483 {
32484 PyThreadState* __tstate = wxPyBeginAllowThreads();
32485 result = (wxPenList *)_wxPyInitThePenList();
32486 wxPyEndAllowThreads(__tstate);
32487 if (PyErr_Occurred()) SWIG_fail;
32488 }
32489 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
32490 return resultobj;
32491 fail:
32492 return NULL;
32493 }
32494
32495
32496 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32497 PyObject *resultobj = 0;
32498 wxBrushList *result = 0 ;
32499
32500 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
32501 {
32502 PyThreadState* __tstate = wxPyBeginAllowThreads();
32503 result = (wxBrushList *)_wxPyInitTheBrushList();
32504 wxPyEndAllowThreads(__tstate);
32505 if (PyErr_Occurred()) SWIG_fail;
32506 }
32507 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
32508 return resultobj;
32509 fail:
32510 return NULL;
32511 }
32512
32513
32514 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32515 PyObject *resultobj = 0;
32516 wxColourDatabase *result = 0 ;
32517
32518 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
32519 {
32520 PyThreadState* __tstate = wxPyBeginAllowThreads();
32521 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
32522 wxPyEndAllowThreads(__tstate);
32523 if (PyErr_Occurred()) SWIG_fail;
32524 }
32525 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32526 return resultobj;
32527 fail:
32528 return NULL;
32529 }
32530
32531
32532 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32533 PyObject *resultobj = 0;
32534 wxEffects *result = 0 ;
32535
32536 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
32537 {
32538 PyThreadState* __tstate = wxPyBeginAllowThreads();
32539 result = (wxEffects *)new wxEffects();
32540 wxPyEndAllowThreads(__tstate);
32541 if (PyErr_Occurred()) SWIG_fail;
32542 }
32543 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
32544 return resultobj;
32545 fail:
32546 return NULL;
32547 }
32548
32549
32550 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32551 PyObject *resultobj = 0;
32552 wxEffects *arg1 = (wxEffects *) 0 ;
32553 wxColour result;
32554 void *argp1 = 0 ;
32555 int res1 = 0 ;
32556 PyObject *swig_obj[1] ;
32557
32558 if (!args) SWIG_fail;
32559 swig_obj[0] = args;
32560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32561 if (!SWIG_IsOK(res1)) {
32562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32563 }
32564 arg1 = reinterpret_cast< wxEffects * >(argp1);
32565 {
32566 PyThreadState* __tstate = wxPyBeginAllowThreads();
32567 result = ((wxEffects const *)arg1)->GetHighlightColour();
32568 wxPyEndAllowThreads(__tstate);
32569 if (PyErr_Occurred()) SWIG_fail;
32570 }
32571 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32572 return resultobj;
32573 fail:
32574 return NULL;
32575 }
32576
32577
32578 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32579 PyObject *resultobj = 0;
32580 wxEffects *arg1 = (wxEffects *) 0 ;
32581 wxColour result;
32582 void *argp1 = 0 ;
32583 int res1 = 0 ;
32584 PyObject *swig_obj[1] ;
32585
32586 if (!args) SWIG_fail;
32587 swig_obj[0] = args;
32588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32589 if (!SWIG_IsOK(res1)) {
32590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32591 }
32592 arg1 = reinterpret_cast< wxEffects * >(argp1);
32593 {
32594 PyThreadState* __tstate = wxPyBeginAllowThreads();
32595 result = ((wxEffects const *)arg1)->GetLightShadow();
32596 wxPyEndAllowThreads(__tstate);
32597 if (PyErr_Occurred()) SWIG_fail;
32598 }
32599 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32600 return resultobj;
32601 fail:
32602 return NULL;
32603 }
32604
32605
32606 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32607 PyObject *resultobj = 0;
32608 wxEffects *arg1 = (wxEffects *) 0 ;
32609 wxColour result;
32610 void *argp1 = 0 ;
32611 int res1 = 0 ;
32612 PyObject *swig_obj[1] ;
32613
32614 if (!args) SWIG_fail;
32615 swig_obj[0] = args;
32616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32617 if (!SWIG_IsOK(res1)) {
32618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32619 }
32620 arg1 = reinterpret_cast< wxEffects * >(argp1);
32621 {
32622 PyThreadState* __tstate = wxPyBeginAllowThreads();
32623 result = ((wxEffects const *)arg1)->GetFaceColour();
32624 wxPyEndAllowThreads(__tstate);
32625 if (PyErr_Occurred()) SWIG_fail;
32626 }
32627 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32628 return resultobj;
32629 fail:
32630 return NULL;
32631 }
32632
32633
32634 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32635 PyObject *resultobj = 0;
32636 wxEffects *arg1 = (wxEffects *) 0 ;
32637 wxColour result;
32638 void *argp1 = 0 ;
32639 int res1 = 0 ;
32640 PyObject *swig_obj[1] ;
32641
32642 if (!args) SWIG_fail;
32643 swig_obj[0] = args;
32644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32645 if (!SWIG_IsOK(res1)) {
32646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32647 }
32648 arg1 = reinterpret_cast< wxEffects * >(argp1);
32649 {
32650 PyThreadState* __tstate = wxPyBeginAllowThreads();
32651 result = ((wxEffects const *)arg1)->GetMediumShadow();
32652 wxPyEndAllowThreads(__tstate);
32653 if (PyErr_Occurred()) SWIG_fail;
32654 }
32655 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32656 return resultobj;
32657 fail:
32658 return NULL;
32659 }
32660
32661
32662 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32663 PyObject *resultobj = 0;
32664 wxEffects *arg1 = (wxEffects *) 0 ;
32665 wxColour result;
32666 void *argp1 = 0 ;
32667 int res1 = 0 ;
32668 PyObject *swig_obj[1] ;
32669
32670 if (!args) SWIG_fail;
32671 swig_obj[0] = args;
32672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32673 if (!SWIG_IsOK(res1)) {
32674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32675 }
32676 arg1 = reinterpret_cast< wxEffects * >(argp1);
32677 {
32678 PyThreadState* __tstate = wxPyBeginAllowThreads();
32679 result = ((wxEffects const *)arg1)->GetDarkShadow();
32680 wxPyEndAllowThreads(__tstate);
32681 if (PyErr_Occurred()) SWIG_fail;
32682 }
32683 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32684 return resultobj;
32685 fail:
32686 return NULL;
32687 }
32688
32689
32690 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32691 PyObject *resultobj = 0;
32692 wxEffects *arg1 = (wxEffects *) 0 ;
32693 wxColour *arg2 = 0 ;
32694 void *argp1 = 0 ;
32695 int res1 = 0 ;
32696 wxColour temp2 ;
32697 PyObject * obj0 = 0 ;
32698 PyObject * obj1 = 0 ;
32699 char * kwnames[] = {
32700 (char *) "self",(char *) "c", NULL
32701 };
32702
32703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
32704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32705 if (!SWIG_IsOK(res1)) {
32706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
32707 }
32708 arg1 = reinterpret_cast< wxEffects * >(argp1);
32709 {
32710 arg2 = &temp2;
32711 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32712 }
32713 {
32714 PyThreadState* __tstate = wxPyBeginAllowThreads();
32715 (arg1)->SetHighlightColour((wxColour const &)*arg2);
32716 wxPyEndAllowThreads(__tstate);
32717 if (PyErr_Occurred()) SWIG_fail;
32718 }
32719 resultobj = SWIG_Py_Void();
32720 return resultobj;
32721 fail:
32722 return NULL;
32723 }
32724
32725
32726 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32727 PyObject *resultobj = 0;
32728 wxEffects *arg1 = (wxEffects *) 0 ;
32729 wxColour *arg2 = 0 ;
32730 void *argp1 = 0 ;
32731 int res1 = 0 ;
32732 wxColour temp2 ;
32733 PyObject * obj0 = 0 ;
32734 PyObject * obj1 = 0 ;
32735 char * kwnames[] = {
32736 (char *) "self",(char *) "c", NULL
32737 };
32738
32739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
32740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32741 if (!SWIG_IsOK(res1)) {
32742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
32743 }
32744 arg1 = reinterpret_cast< wxEffects * >(argp1);
32745 {
32746 arg2 = &temp2;
32747 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32748 }
32749 {
32750 PyThreadState* __tstate = wxPyBeginAllowThreads();
32751 (arg1)->SetLightShadow((wxColour const &)*arg2);
32752 wxPyEndAllowThreads(__tstate);
32753 if (PyErr_Occurred()) SWIG_fail;
32754 }
32755 resultobj = SWIG_Py_Void();
32756 return resultobj;
32757 fail:
32758 return NULL;
32759 }
32760
32761
32762 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32763 PyObject *resultobj = 0;
32764 wxEffects *arg1 = (wxEffects *) 0 ;
32765 wxColour *arg2 = 0 ;
32766 void *argp1 = 0 ;
32767 int res1 = 0 ;
32768 wxColour temp2 ;
32769 PyObject * obj0 = 0 ;
32770 PyObject * obj1 = 0 ;
32771 char * kwnames[] = {
32772 (char *) "self",(char *) "c", NULL
32773 };
32774
32775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
32776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32777 if (!SWIG_IsOK(res1)) {
32778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
32779 }
32780 arg1 = reinterpret_cast< wxEffects * >(argp1);
32781 {
32782 arg2 = &temp2;
32783 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32784 }
32785 {
32786 PyThreadState* __tstate = wxPyBeginAllowThreads();
32787 (arg1)->SetFaceColour((wxColour const &)*arg2);
32788 wxPyEndAllowThreads(__tstate);
32789 if (PyErr_Occurred()) SWIG_fail;
32790 }
32791 resultobj = SWIG_Py_Void();
32792 return resultobj;
32793 fail:
32794 return NULL;
32795 }
32796
32797
32798 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32799 PyObject *resultobj = 0;
32800 wxEffects *arg1 = (wxEffects *) 0 ;
32801 wxColour *arg2 = 0 ;
32802 void *argp1 = 0 ;
32803 int res1 = 0 ;
32804 wxColour temp2 ;
32805 PyObject * obj0 = 0 ;
32806 PyObject * obj1 = 0 ;
32807 char * kwnames[] = {
32808 (char *) "self",(char *) "c", NULL
32809 };
32810
32811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
32812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32813 if (!SWIG_IsOK(res1)) {
32814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
32815 }
32816 arg1 = reinterpret_cast< wxEffects * >(argp1);
32817 {
32818 arg2 = &temp2;
32819 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32820 }
32821 {
32822 PyThreadState* __tstate = wxPyBeginAllowThreads();
32823 (arg1)->SetMediumShadow((wxColour const &)*arg2);
32824 wxPyEndAllowThreads(__tstate);
32825 if (PyErr_Occurred()) SWIG_fail;
32826 }
32827 resultobj = SWIG_Py_Void();
32828 return resultobj;
32829 fail:
32830 return NULL;
32831 }
32832
32833
32834 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32835 PyObject *resultobj = 0;
32836 wxEffects *arg1 = (wxEffects *) 0 ;
32837 wxColour *arg2 = 0 ;
32838 void *argp1 = 0 ;
32839 int res1 = 0 ;
32840 wxColour temp2 ;
32841 PyObject * obj0 = 0 ;
32842 PyObject * obj1 = 0 ;
32843 char * kwnames[] = {
32844 (char *) "self",(char *) "c", NULL
32845 };
32846
32847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
32848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32849 if (!SWIG_IsOK(res1)) {
32850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
32851 }
32852 arg1 = reinterpret_cast< wxEffects * >(argp1);
32853 {
32854 arg2 = &temp2;
32855 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32856 }
32857 {
32858 PyThreadState* __tstate = wxPyBeginAllowThreads();
32859 (arg1)->SetDarkShadow((wxColour const &)*arg2);
32860 wxPyEndAllowThreads(__tstate);
32861 if (PyErr_Occurred()) SWIG_fail;
32862 }
32863 resultobj = SWIG_Py_Void();
32864 return resultobj;
32865 fail:
32866 return NULL;
32867 }
32868
32869
32870 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32871 PyObject *resultobj = 0;
32872 wxEffects *arg1 = (wxEffects *) 0 ;
32873 wxColour *arg2 = 0 ;
32874 wxColour *arg3 = 0 ;
32875 wxColour *arg4 = 0 ;
32876 wxColour *arg5 = 0 ;
32877 wxColour *arg6 = 0 ;
32878 void *argp1 = 0 ;
32879 int res1 = 0 ;
32880 wxColour temp2 ;
32881 wxColour temp3 ;
32882 wxColour temp4 ;
32883 wxColour temp5 ;
32884 wxColour temp6 ;
32885 PyObject * obj0 = 0 ;
32886 PyObject * obj1 = 0 ;
32887 PyObject * obj2 = 0 ;
32888 PyObject * obj3 = 0 ;
32889 PyObject * obj4 = 0 ;
32890 PyObject * obj5 = 0 ;
32891 char * kwnames[] = {
32892 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
32893 };
32894
32895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
32896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32897 if (!SWIG_IsOK(res1)) {
32898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
32899 }
32900 arg1 = reinterpret_cast< wxEffects * >(argp1);
32901 {
32902 arg2 = &temp2;
32903 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32904 }
32905 {
32906 arg3 = &temp3;
32907 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32908 }
32909 {
32910 arg4 = &temp4;
32911 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
32912 }
32913 {
32914 arg5 = &temp5;
32915 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
32916 }
32917 {
32918 arg6 = &temp6;
32919 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
32920 }
32921 {
32922 PyThreadState* __tstate = wxPyBeginAllowThreads();
32923 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
32924 wxPyEndAllowThreads(__tstate);
32925 if (PyErr_Occurred()) SWIG_fail;
32926 }
32927 resultobj = SWIG_Py_Void();
32928 return resultobj;
32929 fail:
32930 return NULL;
32931 }
32932
32933
32934 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32935 PyObject *resultobj = 0;
32936 wxEffects *arg1 = (wxEffects *) 0 ;
32937 wxDC *arg2 = 0 ;
32938 wxRect *arg3 = 0 ;
32939 int arg4 = (int) 1 ;
32940 void *argp1 = 0 ;
32941 int res1 = 0 ;
32942 void *argp2 = 0 ;
32943 int res2 = 0 ;
32944 wxRect temp3 ;
32945 int val4 ;
32946 int ecode4 = 0 ;
32947 PyObject * obj0 = 0 ;
32948 PyObject * obj1 = 0 ;
32949 PyObject * obj2 = 0 ;
32950 PyObject * obj3 = 0 ;
32951 char * kwnames[] = {
32952 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
32953 };
32954
32955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32957 if (!SWIG_IsOK(res1)) {
32958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
32959 }
32960 arg1 = reinterpret_cast< wxEffects * >(argp1);
32961 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
32962 if (!SWIG_IsOK(res2)) {
32963 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
32964 }
32965 if (!argp2) {
32966 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
32967 }
32968 arg2 = reinterpret_cast< wxDC * >(argp2);
32969 {
32970 arg3 = &temp3;
32971 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
32972 }
32973 if (obj3) {
32974 ecode4 = SWIG_AsVal_int(obj3, &val4);
32975 if (!SWIG_IsOK(ecode4)) {
32976 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
32977 }
32978 arg4 = static_cast< int >(val4);
32979 }
32980 {
32981 PyThreadState* __tstate = wxPyBeginAllowThreads();
32982 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
32983 wxPyEndAllowThreads(__tstate);
32984 if (PyErr_Occurred()) SWIG_fail;
32985 }
32986 resultobj = SWIG_Py_Void();
32987 return resultobj;
32988 fail:
32989 return NULL;
32990 }
32991
32992
32993 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32994 PyObject *resultobj = 0;
32995 wxEffects *arg1 = (wxEffects *) 0 ;
32996 wxRect *arg2 = 0 ;
32997 wxDC *arg3 = 0 ;
32998 wxBitmap *arg4 = 0 ;
32999 bool result;
33000 void *argp1 = 0 ;
33001 int res1 = 0 ;
33002 wxRect temp2 ;
33003 void *argp3 = 0 ;
33004 int res3 = 0 ;
33005 void *argp4 = 0 ;
33006 int res4 = 0 ;
33007 PyObject * obj0 = 0 ;
33008 PyObject * obj1 = 0 ;
33009 PyObject * obj2 = 0 ;
33010 PyObject * obj3 = 0 ;
33011 char * kwnames[] = {
33012 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
33013 };
33014
33015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33017 if (!SWIG_IsOK(res1)) {
33018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
33019 }
33020 arg1 = reinterpret_cast< wxEffects * >(argp1);
33021 {
33022 arg2 = &temp2;
33023 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33024 }
33025 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33026 if (!SWIG_IsOK(res3)) {
33027 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33028 }
33029 if (!argp3) {
33030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33031 }
33032 arg3 = reinterpret_cast< wxDC * >(argp3);
33033 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
33034 if (!SWIG_IsOK(res4)) {
33035 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33036 }
33037 if (!argp4) {
33038 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33039 }
33040 arg4 = reinterpret_cast< wxBitmap * >(argp4);
33041 {
33042 PyThreadState* __tstate = wxPyBeginAllowThreads();
33043 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
33044 wxPyEndAllowThreads(__tstate);
33045 if (PyErr_Occurred()) SWIG_fail;
33046 }
33047 {
33048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33049 }
33050 return resultobj;
33051 fail:
33052 return NULL;
33053 }
33054
33055
33056 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33057 PyObject *obj;
33058 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33059 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
33060 return SWIG_Py_Void();
33061 }
33062
33063 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33064 return SWIG_Python_InitShadowInstance(args);
33065 }
33066
33067 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33068 PyObject *resultobj = 0;
33069 int arg1 ;
33070 int arg2 ;
33071 bool arg3 ;
33072 wxSplitterRenderParams *result = 0 ;
33073 int val1 ;
33074 int ecode1 = 0 ;
33075 int val2 ;
33076 int ecode2 = 0 ;
33077 bool val3 ;
33078 int ecode3 = 0 ;
33079 PyObject * obj0 = 0 ;
33080 PyObject * obj1 = 0 ;
33081 PyObject * obj2 = 0 ;
33082 char * kwnames[] = {
33083 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
33084 };
33085
33086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33087 ecode1 = SWIG_AsVal_int(obj0, &val1);
33088 if (!SWIG_IsOK(ecode1)) {
33089 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
33090 }
33091 arg1 = static_cast< int >(val1);
33092 ecode2 = SWIG_AsVal_int(obj1, &val2);
33093 if (!SWIG_IsOK(ecode2)) {
33094 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
33095 }
33096 arg2 = static_cast< int >(val2);
33097 ecode3 = SWIG_AsVal_bool(obj2, &val3);
33098 if (!SWIG_IsOK(ecode3)) {
33099 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
33100 }
33101 arg3 = static_cast< bool >(val3);
33102 {
33103 PyThreadState* __tstate = wxPyBeginAllowThreads();
33104 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
33105 wxPyEndAllowThreads(__tstate);
33106 if (PyErr_Occurred()) SWIG_fail;
33107 }
33108 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
33109 return resultobj;
33110 fail:
33111 return NULL;
33112 }
33113
33114
33115 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33116 PyObject *resultobj = 0;
33117 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33118 void *argp1 = 0 ;
33119 int res1 = 0 ;
33120 PyObject *swig_obj[1] ;
33121
33122 if (!args) SWIG_fail;
33123 swig_obj[0] = args;
33124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
33125 if (!SWIG_IsOK(res1)) {
33126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33127 }
33128 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33129 {
33130 PyThreadState* __tstate = wxPyBeginAllowThreads();
33131 delete arg1;
33132
33133 wxPyEndAllowThreads(__tstate);
33134 if (PyErr_Occurred()) SWIG_fail;
33135 }
33136 resultobj = SWIG_Py_Void();
33137 return resultobj;
33138 fail:
33139 return NULL;
33140 }
33141
33142
33143 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33144 PyObject *resultobj = 0;
33145 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33146 int result;
33147 void *argp1 = 0 ;
33148 int res1 = 0 ;
33149 PyObject *swig_obj[1] ;
33150
33151 if (!args) SWIG_fail;
33152 swig_obj[0] = args;
33153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33154 if (!SWIG_IsOK(res1)) {
33155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33156 }
33157 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33158 result = (int)(int) ((arg1)->widthSash);
33159 resultobj = SWIG_From_int(static_cast< int >(result));
33160 return resultobj;
33161 fail:
33162 return NULL;
33163 }
33164
33165
33166 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33167 PyObject *resultobj = 0;
33168 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33169 int result;
33170 void *argp1 = 0 ;
33171 int res1 = 0 ;
33172 PyObject *swig_obj[1] ;
33173
33174 if (!args) SWIG_fail;
33175 swig_obj[0] = args;
33176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33177 if (!SWIG_IsOK(res1)) {
33178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33179 }
33180 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33181 result = (int)(int) ((arg1)->border);
33182 resultobj = SWIG_From_int(static_cast< int >(result));
33183 return resultobj;
33184 fail:
33185 return NULL;
33186 }
33187
33188
33189 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33190 PyObject *resultobj = 0;
33191 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33192 bool result;
33193 void *argp1 = 0 ;
33194 int res1 = 0 ;
33195 PyObject *swig_obj[1] ;
33196
33197 if (!args) SWIG_fail;
33198 swig_obj[0] = args;
33199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33200 if (!SWIG_IsOK(res1)) {
33201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33202 }
33203 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33204 result = (bool)(bool) ((arg1)->isHotSensitive);
33205 resultobj = SWIG_From_bool(static_cast< bool >(result));
33206 return resultobj;
33207 fail:
33208 return NULL;
33209 }
33210
33211
33212 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33213 PyObject *obj;
33214 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33215 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
33216 return SWIG_Py_Void();
33217 }
33218
33219 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33220 return SWIG_Python_InitShadowInstance(args);
33221 }
33222
33223 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33224 PyObject *resultobj = 0;
33225 wxHeaderButtonParams *result = 0 ;
33226
33227 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
33228 {
33229 PyThreadState* __tstate = wxPyBeginAllowThreads();
33230 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
33231 wxPyEndAllowThreads(__tstate);
33232 if (PyErr_Occurred()) SWIG_fail;
33233 }
33234 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
33235 return resultobj;
33236 fail:
33237 return NULL;
33238 }
33239
33240
33241 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33242 PyObject *resultobj = 0;
33243 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33244 void *argp1 = 0 ;
33245 int res1 = 0 ;
33246 PyObject *swig_obj[1] ;
33247
33248 if (!args) SWIG_fail;
33249 swig_obj[0] = args;
33250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
33251 if (!SWIG_IsOK(res1)) {
33252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33253 }
33254 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33255 {
33256 PyThreadState* __tstate = wxPyBeginAllowThreads();
33257 delete arg1;
33258
33259 wxPyEndAllowThreads(__tstate);
33260 if (PyErr_Occurred()) SWIG_fail;
33261 }
33262 resultobj = SWIG_Py_Void();
33263 return resultobj;
33264 fail:
33265 return NULL;
33266 }
33267
33268
33269 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33270 PyObject *resultobj = 0;
33271 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33272 wxColour *arg2 = (wxColour *) 0 ;
33273 void *argp1 = 0 ;
33274 int res1 = 0 ;
33275 wxColour temp2 ;
33276 PyObject *swig_obj[2] ;
33277
33278 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
33279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33280 if (!SWIG_IsOK(res1)) {
33281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33282 }
33283 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33284 {
33285 arg2 = &temp2;
33286 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33287 }
33288 if (arg1) (arg1)->m_arrowColour = *arg2;
33289
33290 resultobj = SWIG_Py_Void();
33291 return resultobj;
33292 fail:
33293 return NULL;
33294 }
33295
33296
33297 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33298 PyObject *resultobj = 0;
33299 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33300 wxColour *result = 0 ;
33301 void *argp1 = 0 ;
33302 int res1 = 0 ;
33303 PyObject *swig_obj[1] ;
33304
33305 if (!args) SWIG_fail;
33306 swig_obj[0] = args;
33307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33308 if (!SWIG_IsOK(res1)) {
33309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33310 }
33311 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33312 result = (wxColour *)& ((arg1)->m_arrowColour);
33313 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33314 return resultobj;
33315 fail:
33316 return NULL;
33317 }
33318
33319
33320 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33321 PyObject *resultobj = 0;
33322 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33323 wxColour *arg2 = (wxColour *) 0 ;
33324 void *argp1 = 0 ;
33325 int res1 = 0 ;
33326 wxColour temp2 ;
33327 PyObject *swig_obj[2] ;
33328
33329 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
33330 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33331 if (!SWIG_IsOK(res1)) {
33332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33333 }
33334 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33335 {
33336 arg2 = &temp2;
33337 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33338 }
33339 if (arg1) (arg1)->m_selectionColour = *arg2;
33340
33341 resultobj = SWIG_Py_Void();
33342 return resultobj;
33343 fail:
33344 return NULL;
33345 }
33346
33347
33348 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33349 PyObject *resultobj = 0;
33350 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33351 wxColour *result = 0 ;
33352 void *argp1 = 0 ;
33353 int res1 = 0 ;
33354 PyObject *swig_obj[1] ;
33355
33356 if (!args) SWIG_fail;
33357 swig_obj[0] = args;
33358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33359 if (!SWIG_IsOK(res1)) {
33360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33361 }
33362 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33363 result = (wxColour *)& ((arg1)->m_selectionColour);
33364 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33365 return resultobj;
33366 fail:
33367 return NULL;
33368 }
33369
33370
33371 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33372 PyObject *resultobj = 0;
33373 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33374 wxString *arg2 = (wxString *) 0 ;
33375 void *argp1 = 0 ;
33376 int res1 = 0 ;
33377 bool temp2 = false ;
33378 PyObject *swig_obj[2] ;
33379
33380 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
33381 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33382 if (!SWIG_IsOK(res1)) {
33383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33384 }
33385 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33386 {
33387 arg2 = wxString_in_helper(swig_obj[1]);
33388 if (arg2 == NULL) SWIG_fail;
33389 temp2 = true;
33390 }
33391 if (arg1) (arg1)->m_labelText = *arg2;
33392
33393 resultobj = SWIG_Py_Void();
33394 {
33395 if (temp2)
33396 delete arg2;
33397 }
33398 return resultobj;
33399 fail:
33400 {
33401 if (temp2)
33402 delete arg2;
33403 }
33404 return NULL;
33405 }
33406
33407
33408 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33409 PyObject *resultobj = 0;
33410 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33411 wxString *result = 0 ;
33412 void *argp1 = 0 ;
33413 int res1 = 0 ;
33414 PyObject *swig_obj[1] ;
33415
33416 if (!args) SWIG_fail;
33417 swig_obj[0] = args;
33418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33419 if (!SWIG_IsOK(res1)) {
33420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33421 }
33422 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33423 result = (wxString *)& ((arg1)->m_labelText);
33424 {
33425 #if wxUSE_UNICODE
33426 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33427 #else
33428 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33429 #endif
33430 }
33431 return resultobj;
33432 fail:
33433 return NULL;
33434 }
33435
33436
33437 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33438 PyObject *resultobj = 0;
33439 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33440 wxFont *arg2 = (wxFont *) 0 ;
33441 void *argp1 = 0 ;
33442 int res1 = 0 ;
33443 void *argp2 = 0 ;
33444 int res2 = 0 ;
33445 PyObject *swig_obj[2] ;
33446
33447 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
33448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33449 if (!SWIG_IsOK(res1)) {
33450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33451 }
33452 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33453 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33454 if (!SWIG_IsOK(res2)) {
33455 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
33456 }
33457 arg2 = reinterpret_cast< wxFont * >(argp2);
33458 if (arg1) (arg1)->m_labelFont = *arg2;
33459
33460 resultobj = SWIG_Py_Void();
33461 return resultobj;
33462 fail:
33463 return NULL;
33464 }
33465
33466
33467 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33468 PyObject *resultobj = 0;
33469 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33470 wxFont *result = 0 ;
33471 void *argp1 = 0 ;
33472 int res1 = 0 ;
33473 PyObject *swig_obj[1] ;
33474
33475 if (!args) SWIG_fail;
33476 swig_obj[0] = args;
33477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33478 if (!SWIG_IsOK(res1)) {
33479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33480 }
33481 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33482 result = (wxFont *)& ((arg1)->m_labelFont);
33483 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33484 return resultobj;
33485 fail:
33486 return NULL;
33487 }
33488
33489
33490 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33491 PyObject *resultobj = 0;
33492 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33493 wxColour *arg2 = (wxColour *) 0 ;
33494 void *argp1 = 0 ;
33495 int res1 = 0 ;
33496 wxColour temp2 ;
33497 PyObject *swig_obj[2] ;
33498
33499 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
33500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33501 if (!SWIG_IsOK(res1)) {
33502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33503 }
33504 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33505 {
33506 arg2 = &temp2;
33507 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33508 }
33509 if (arg1) (arg1)->m_labelColour = *arg2;
33510
33511 resultobj = SWIG_Py_Void();
33512 return resultobj;
33513 fail:
33514 return NULL;
33515 }
33516
33517
33518 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33519 PyObject *resultobj = 0;
33520 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33521 wxColour *result = 0 ;
33522 void *argp1 = 0 ;
33523 int res1 = 0 ;
33524 PyObject *swig_obj[1] ;
33525
33526 if (!args) SWIG_fail;
33527 swig_obj[0] = args;
33528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33529 if (!SWIG_IsOK(res1)) {
33530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33531 }
33532 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33533 result = (wxColour *)& ((arg1)->m_labelColour);
33534 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33535 return resultobj;
33536 fail:
33537 return NULL;
33538 }
33539
33540
33541 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33542 PyObject *resultobj = 0;
33543 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33544 wxBitmap *arg2 = (wxBitmap *) 0 ;
33545 void *argp1 = 0 ;
33546 int res1 = 0 ;
33547 void *argp2 = 0 ;
33548 int res2 = 0 ;
33549 PyObject *swig_obj[2] ;
33550
33551 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
33552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33553 if (!SWIG_IsOK(res1)) {
33554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33555 }
33556 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33557 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
33558 if (!SWIG_IsOK(res2)) {
33559 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
33560 }
33561 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33562 if (arg1) (arg1)->m_labelBitmap = *arg2;
33563
33564 resultobj = SWIG_Py_Void();
33565 return resultobj;
33566 fail:
33567 return NULL;
33568 }
33569
33570
33571 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33572 PyObject *resultobj = 0;
33573 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33574 wxBitmap *result = 0 ;
33575 void *argp1 = 0 ;
33576 int res1 = 0 ;
33577 PyObject *swig_obj[1] ;
33578
33579 if (!args) SWIG_fail;
33580 swig_obj[0] = args;
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_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33584 }
33585 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33586 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
33587 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
33588 return resultobj;
33589 fail:
33590 return NULL;
33591 }
33592
33593
33594 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33595 PyObject *resultobj = 0;
33596 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33597 int arg2 ;
33598 void *argp1 = 0 ;
33599 int res1 = 0 ;
33600 int val2 ;
33601 int ecode2 = 0 ;
33602 PyObject *swig_obj[2] ;
33603
33604 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
33605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33606 if (!SWIG_IsOK(res1)) {
33607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33608 }
33609 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33610 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33611 if (!SWIG_IsOK(ecode2)) {
33612 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
33613 }
33614 arg2 = static_cast< int >(val2);
33615 if (arg1) (arg1)->m_labelAlignment = arg2;
33616
33617 resultobj = SWIG_Py_Void();
33618 return resultobj;
33619 fail:
33620 return NULL;
33621 }
33622
33623
33624 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33625 PyObject *resultobj = 0;
33626 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33627 int result;
33628 void *argp1 = 0 ;
33629 int res1 = 0 ;
33630 PyObject *swig_obj[1] ;
33631
33632 if (!args) SWIG_fail;
33633 swig_obj[0] = args;
33634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33635 if (!SWIG_IsOK(res1)) {
33636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33637 }
33638 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33639 result = (int) ((arg1)->m_labelAlignment);
33640 resultobj = SWIG_From_int(static_cast< int >(result));
33641 return resultobj;
33642 fail:
33643 return NULL;
33644 }
33645
33646
33647 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33648 PyObject *obj;
33649 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33650 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
33651 return SWIG_Py_Void();
33652 }
33653
33654 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33655 return SWIG_Python_InitShadowInstance(args);
33656 }
33657
33658 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33659 PyObject *resultobj = 0;
33660 int arg1 ;
33661 int arg2 ;
33662 wxRendererVersion *result = 0 ;
33663 int val1 ;
33664 int ecode1 = 0 ;
33665 int val2 ;
33666 int ecode2 = 0 ;
33667 PyObject * obj0 = 0 ;
33668 PyObject * obj1 = 0 ;
33669 char * kwnames[] = {
33670 (char *) "version_",(char *) "age_", NULL
33671 };
33672
33673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
33674 ecode1 = SWIG_AsVal_int(obj0, &val1);
33675 if (!SWIG_IsOK(ecode1)) {
33676 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
33677 }
33678 arg1 = static_cast< int >(val1);
33679 ecode2 = SWIG_AsVal_int(obj1, &val2);
33680 if (!SWIG_IsOK(ecode2)) {
33681 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
33682 }
33683 arg2 = static_cast< int >(val2);
33684 {
33685 PyThreadState* __tstate = wxPyBeginAllowThreads();
33686 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
33687 wxPyEndAllowThreads(__tstate);
33688 if (PyErr_Occurred()) SWIG_fail;
33689 }
33690 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
33691 return resultobj;
33692 fail:
33693 return NULL;
33694 }
33695
33696
33697 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33698 PyObject *resultobj = 0;
33699 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33700 void *argp1 = 0 ;
33701 int res1 = 0 ;
33702 PyObject *swig_obj[1] ;
33703
33704 if (!args) SWIG_fail;
33705 swig_obj[0] = args;
33706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
33707 if (!SWIG_IsOK(res1)) {
33708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33709 }
33710 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33711 {
33712 PyThreadState* __tstate = wxPyBeginAllowThreads();
33713 delete arg1;
33714
33715 wxPyEndAllowThreads(__tstate);
33716 if (PyErr_Occurred()) SWIG_fail;
33717 }
33718 resultobj = SWIG_Py_Void();
33719 return resultobj;
33720 fail:
33721 return NULL;
33722 }
33723
33724
33725 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33726 PyObject *resultobj = 0;
33727 wxRendererVersion *arg1 = 0 ;
33728 bool result;
33729 void *argp1 = 0 ;
33730 int res1 = 0 ;
33731 PyObject * obj0 = 0 ;
33732 char * kwnames[] = {
33733 (char *) "ver", NULL
33734 };
33735
33736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
33737 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
33738 if (!SWIG_IsOK(res1)) {
33739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
33740 }
33741 if (!argp1) {
33742 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
33743 }
33744 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33745 {
33746 PyThreadState* __tstate = wxPyBeginAllowThreads();
33747 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
33748 wxPyEndAllowThreads(__tstate);
33749 if (PyErr_Occurred()) SWIG_fail;
33750 }
33751 {
33752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33753 }
33754 return resultobj;
33755 fail:
33756 return NULL;
33757 }
33758
33759
33760 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33761 PyObject *resultobj = 0;
33762 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33763 int result;
33764 void *argp1 = 0 ;
33765 int res1 = 0 ;
33766 PyObject *swig_obj[1] ;
33767
33768 if (!args) SWIG_fail;
33769 swig_obj[0] = args;
33770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
33771 if (!SWIG_IsOK(res1)) {
33772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33773 }
33774 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33775 result = (int)(int) ((arg1)->version);
33776 resultobj = SWIG_From_int(static_cast< int >(result));
33777 return resultobj;
33778 fail:
33779 return NULL;
33780 }
33781
33782
33783 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33784 PyObject *resultobj = 0;
33785 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33786 int result;
33787 void *argp1 = 0 ;
33788 int res1 = 0 ;
33789 PyObject *swig_obj[1] ;
33790
33791 if (!args) SWIG_fail;
33792 swig_obj[0] = args;
33793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
33794 if (!SWIG_IsOK(res1)) {
33795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33796 }
33797 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33798 result = (int)(int) ((arg1)->age);
33799 resultobj = SWIG_From_int(static_cast< int >(result));
33800 return resultobj;
33801 fail:
33802 return NULL;
33803 }
33804
33805
33806 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33807 PyObject *obj;
33808 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33809 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
33810 return SWIG_Py_Void();
33811 }
33812
33813 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33814 return SWIG_Python_InitShadowInstance(args);
33815 }
33816
33817 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33818 PyObject *resultobj = 0;
33819 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
33820 wxWindow *arg2 = (wxWindow *) 0 ;
33821 wxDC *arg3 = 0 ;
33822 wxRect *arg4 = 0 ;
33823 int arg5 = (int) 0 ;
33824 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
33825 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
33826 void *argp1 = 0 ;
33827 int res1 = 0 ;
33828 void *argp2 = 0 ;
33829 int res2 = 0 ;
33830 void *argp3 = 0 ;
33831 int res3 = 0 ;
33832 wxRect temp4 ;
33833 int val5 ;
33834 int ecode5 = 0 ;
33835 int val6 ;
33836 int ecode6 = 0 ;
33837 void *argp7 = 0 ;
33838 int res7 = 0 ;
33839 PyObject * obj0 = 0 ;
33840 PyObject * obj1 = 0 ;
33841 PyObject * obj2 = 0 ;
33842 PyObject * obj3 = 0 ;
33843 PyObject * obj4 = 0 ;
33844 PyObject * obj5 = 0 ;
33845 PyObject * obj6 = 0 ;
33846 char * kwnames[] = {
33847 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
33848 };
33849
33850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
33852 if (!SWIG_IsOK(res1)) {
33853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
33854 }
33855 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
33856 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33857 if (!SWIG_IsOK(res2)) {
33858 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
33859 }
33860 arg2 = reinterpret_cast< wxWindow * >(argp2);
33861 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33862 if (!SWIG_IsOK(res3)) {
33863 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
33864 }
33865 if (!argp3) {
33866 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
33867 }
33868 arg3 = reinterpret_cast< wxDC * >(argp3);
33869 {
33870 arg4 = &temp4;
33871 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
33872 }
33873 if (obj4) {
33874 ecode5 = SWIG_AsVal_int(obj4, &val5);
33875 if (!SWIG_IsOK(ecode5)) {
33876 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
33877 }
33878 arg5 = static_cast< int >(val5);
33879 }
33880 if (obj5) {
33881 ecode6 = SWIG_AsVal_int(obj5, &val6);
33882 if (!SWIG_IsOK(ecode6)) {
33883 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
33884 }
33885 arg6 = static_cast< wxHeaderSortIconType >(val6);
33886 }
33887 if (obj6) {
33888 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33889 if (!SWIG_IsOK(res7)) {
33890 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
33891 }
33892 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
33893 }
33894 {
33895 PyThreadState* __tstate = wxPyBeginAllowThreads();
33896 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
33897 wxPyEndAllowThreads(__tstate);
33898 if (PyErr_Occurred()) SWIG_fail;
33899 }
33900 resultobj = SWIG_Py_Void();
33901 return resultobj;
33902 fail:
33903 return NULL;
33904 }
33905
33906
33907 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33908 PyObject *resultobj = 0;
33909 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
33910 wxWindow *arg2 = (wxWindow *) 0 ;
33911 wxDC *arg3 = 0 ;
33912 wxRect *arg4 = 0 ;
33913 int arg5 = (int) 0 ;
33914 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
33915 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
33916 void *argp1 = 0 ;
33917 int res1 = 0 ;
33918 void *argp2 = 0 ;
33919 int res2 = 0 ;
33920 void *argp3 = 0 ;
33921 int res3 = 0 ;
33922 wxRect temp4 ;
33923 int val5 ;
33924 int ecode5 = 0 ;
33925 int val6 ;
33926 int ecode6 = 0 ;
33927 void *argp7 = 0 ;
33928 int res7 = 0 ;
33929 PyObject * obj0 = 0 ;
33930 PyObject * obj1 = 0 ;
33931 PyObject * obj2 = 0 ;
33932 PyObject * obj3 = 0 ;
33933 PyObject * obj4 = 0 ;
33934 PyObject * obj5 = 0 ;
33935 PyObject * obj6 = 0 ;
33936 char * kwnames[] = {
33937 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
33938 };
33939
33940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
33942 if (!SWIG_IsOK(res1)) {
33943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
33944 }
33945 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
33946 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33947 if (!SWIG_IsOK(res2)) {
33948 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
33949 }
33950 arg2 = reinterpret_cast< wxWindow * >(argp2);
33951 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33952 if (!SWIG_IsOK(res3)) {
33953 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
33954 }
33955 if (!argp3) {
33956 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
33957 }
33958 arg3 = reinterpret_cast< wxDC * >(argp3);
33959 {
33960 arg4 = &temp4;
33961 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
33962 }
33963 if (obj4) {
33964 ecode5 = SWIG_AsVal_int(obj4, &val5);
33965 if (!SWIG_IsOK(ecode5)) {
33966 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
33967 }
33968 arg5 = static_cast< int >(val5);
33969 }
33970 if (obj5) {
33971 ecode6 = SWIG_AsVal_int(obj5, &val6);
33972 if (!SWIG_IsOK(ecode6)) {
33973 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
33974 }
33975 arg6 = static_cast< wxHeaderSortIconType >(val6);
33976 }
33977 if (obj6) {
33978 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33979 if (!SWIG_IsOK(res7)) {
33980 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
33981 }
33982 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
33983 }
33984 {
33985 PyThreadState* __tstate = wxPyBeginAllowThreads();
33986 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
33987 wxPyEndAllowThreads(__tstate);
33988 if (PyErr_Occurred()) SWIG_fail;
33989 }
33990 resultobj = SWIG_Py_Void();
33991 return resultobj;
33992 fail:
33993 return NULL;
33994 }
33995
33996
33997 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33998 PyObject *resultobj = 0;
33999 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34000 wxWindow *arg2 = (wxWindow *) 0 ;
34001 int result;
34002 void *argp1 = 0 ;
34003 int res1 = 0 ;
34004 void *argp2 = 0 ;
34005 int res2 = 0 ;
34006 PyObject * obj0 = 0 ;
34007 PyObject * obj1 = 0 ;
34008 char * kwnames[] = {
34009 (char *) "self",(char *) "win", NULL
34010 };
34011
34012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
34013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34014 if (!SWIG_IsOK(res1)) {
34015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34016 }
34017 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34018 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34019 if (!SWIG_IsOK(res2)) {
34020 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
34021 }
34022 arg2 = reinterpret_cast< wxWindow * >(argp2);
34023 {
34024 PyThreadState* __tstate = wxPyBeginAllowThreads();
34025 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
34026 wxPyEndAllowThreads(__tstate);
34027 if (PyErr_Occurred()) SWIG_fail;
34028 }
34029 resultobj = SWIG_From_int(static_cast< int >(result));
34030 return resultobj;
34031 fail:
34032 return NULL;
34033 }
34034
34035
34036 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34037 PyObject *resultobj = 0;
34038 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34039 wxWindow *arg2 = (wxWindow *) 0 ;
34040 wxDC *arg3 = 0 ;
34041 wxRect *arg4 = 0 ;
34042 int arg5 = (int) 0 ;
34043 void *argp1 = 0 ;
34044 int res1 = 0 ;
34045 void *argp2 = 0 ;
34046 int res2 = 0 ;
34047 void *argp3 = 0 ;
34048 int res3 = 0 ;
34049 wxRect temp4 ;
34050 int val5 ;
34051 int ecode5 = 0 ;
34052 PyObject * obj0 = 0 ;
34053 PyObject * obj1 = 0 ;
34054 PyObject * obj2 = 0 ;
34055 PyObject * obj3 = 0 ;
34056 PyObject * obj4 = 0 ;
34057 char * kwnames[] = {
34058 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34059 };
34060
34061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34063 if (!SWIG_IsOK(res1)) {
34064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34065 }
34066 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34067 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34068 if (!SWIG_IsOK(res2)) {
34069 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34070 }
34071 arg2 = reinterpret_cast< wxWindow * >(argp2);
34072 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34073 if (!SWIG_IsOK(res3)) {
34074 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34075 }
34076 if (!argp3) {
34077 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34078 }
34079 arg3 = reinterpret_cast< wxDC * >(argp3);
34080 {
34081 arg4 = &temp4;
34082 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34083 }
34084 if (obj4) {
34085 ecode5 = SWIG_AsVal_int(obj4, &val5);
34086 if (!SWIG_IsOK(ecode5)) {
34087 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
34088 }
34089 arg5 = static_cast< int >(val5);
34090 }
34091 {
34092 PyThreadState* __tstate = wxPyBeginAllowThreads();
34093 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34094 wxPyEndAllowThreads(__tstate);
34095 if (PyErr_Occurred()) SWIG_fail;
34096 }
34097 resultobj = SWIG_Py_Void();
34098 return resultobj;
34099 fail:
34100 return NULL;
34101 }
34102
34103
34104 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34105 PyObject *resultobj = 0;
34106 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34107 wxWindow *arg2 = (wxWindow *) 0 ;
34108 wxDC *arg3 = 0 ;
34109 wxRect *arg4 = 0 ;
34110 int arg5 = (int) 0 ;
34111 void *argp1 = 0 ;
34112 int res1 = 0 ;
34113 void *argp2 = 0 ;
34114 int res2 = 0 ;
34115 void *argp3 = 0 ;
34116 int res3 = 0 ;
34117 wxRect temp4 ;
34118 int val5 ;
34119 int ecode5 = 0 ;
34120 PyObject * obj0 = 0 ;
34121 PyObject * obj1 = 0 ;
34122 PyObject * obj2 = 0 ;
34123 PyObject * obj3 = 0 ;
34124 PyObject * obj4 = 0 ;
34125 char * kwnames[] = {
34126 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34127 };
34128
34129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34131 if (!SWIG_IsOK(res1)) {
34132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34133 }
34134 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34135 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34136 if (!SWIG_IsOK(res2)) {
34137 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
34138 }
34139 arg2 = reinterpret_cast< wxWindow * >(argp2);
34140 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34141 if (!SWIG_IsOK(res3)) {
34142 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34143 }
34144 if (!argp3) {
34145 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34146 }
34147 arg3 = reinterpret_cast< wxDC * >(argp3);
34148 {
34149 arg4 = &temp4;
34150 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34151 }
34152 if (obj4) {
34153 ecode5 = SWIG_AsVal_int(obj4, &val5);
34154 if (!SWIG_IsOK(ecode5)) {
34155 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
34156 }
34157 arg5 = static_cast< int >(val5);
34158 }
34159 {
34160 PyThreadState* __tstate = wxPyBeginAllowThreads();
34161 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
34162 wxPyEndAllowThreads(__tstate);
34163 if (PyErr_Occurred()) SWIG_fail;
34164 }
34165 resultobj = SWIG_Py_Void();
34166 return resultobj;
34167 fail:
34168 return NULL;
34169 }
34170
34171
34172 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34173 PyObject *resultobj = 0;
34174 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34175 wxWindow *arg2 = (wxWindow *) 0 ;
34176 wxDC *arg3 = 0 ;
34177 wxSize *arg4 = 0 ;
34178 int arg5 ;
34179 wxOrientation arg6 ;
34180 int arg7 = (int) 0 ;
34181 void *argp1 = 0 ;
34182 int res1 = 0 ;
34183 void *argp2 = 0 ;
34184 int res2 = 0 ;
34185 void *argp3 = 0 ;
34186 int res3 = 0 ;
34187 wxSize temp4 ;
34188 int val5 ;
34189 int ecode5 = 0 ;
34190 int val6 ;
34191 int ecode6 = 0 ;
34192 int val7 ;
34193 int ecode7 = 0 ;
34194 PyObject * obj0 = 0 ;
34195 PyObject * obj1 = 0 ;
34196 PyObject * obj2 = 0 ;
34197 PyObject * obj3 = 0 ;
34198 PyObject * obj4 = 0 ;
34199 PyObject * obj5 = 0 ;
34200 PyObject * obj6 = 0 ;
34201 char * kwnames[] = {
34202 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
34203 };
34204
34205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34207 if (!SWIG_IsOK(res1)) {
34208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34209 }
34210 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34211 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34212 if (!SWIG_IsOK(res2)) {
34213 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
34214 }
34215 arg2 = reinterpret_cast< wxWindow * >(argp2);
34216 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34217 if (!SWIG_IsOK(res3)) {
34218 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34219 }
34220 if (!argp3) {
34221 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34222 }
34223 arg3 = reinterpret_cast< wxDC * >(argp3);
34224 {
34225 arg4 = &temp4;
34226 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
34227 }
34228 ecode5 = SWIG_AsVal_int(obj4, &val5);
34229 if (!SWIG_IsOK(ecode5)) {
34230 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
34231 }
34232 arg5 = static_cast< int >(val5);
34233 ecode6 = SWIG_AsVal_int(obj5, &val6);
34234 if (!SWIG_IsOK(ecode6)) {
34235 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
34236 }
34237 arg6 = static_cast< wxOrientation >(val6);
34238 if (obj6) {
34239 ecode7 = SWIG_AsVal_int(obj6, &val7);
34240 if (!SWIG_IsOK(ecode7)) {
34241 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
34242 }
34243 arg7 = static_cast< int >(val7);
34244 }
34245 {
34246 PyThreadState* __tstate = wxPyBeginAllowThreads();
34247 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
34248 wxPyEndAllowThreads(__tstate);
34249 if (PyErr_Occurred()) SWIG_fail;
34250 }
34251 resultobj = SWIG_Py_Void();
34252 return resultobj;
34253 fail:
34254 return NULL;
34255 }
34256
34257
34258 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34259 PyObject *resultobj = 0;
34260 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34261 wxWindow *arg2 = (wxWindow *) 0 ;
34262 wxDC *arg3 = 0 ;
34263 wxRect *arg4 = 0 ;
34264 int arg5 = (int) 0 ;
34265 void *argp1 = 0 ;
34266 int res1 = 0 ;
34267 void *argp2 = 0 ;
34268 int res2 = 0 ;
34269 void *argp3 = 0 ;
34270 int res3 = 0 ;
34271 wxRect temp4 ;
34272 int val5 ;
34273 int ecode5 = 0 ;
34274 PyObject * obj0 = 0 ;
34275 PyObject * obj1 = 0 ;
34276 PyObject * obj2 = 0 ;
34277 PyObject * obj3 = 0 ;
34278 PyObject * obj4 = 0 ;
34279 char * kwnames[] = {
34280 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34281 };
34282
34283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34285 if (!SWIG_IsOK(res1)) {
34286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34287 }
34288 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34289 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34290 if (!SWIG_IsOK(res2)) {
34291 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34292 }
34293 arg2 = reinterpret_cast< wxWindow * >(argp2);
34294 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34295 if (!SWIG_IsOK(res3)) {
34296 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34297 }
34298 if (!argp3) {
34299 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34300 }
34301 arg3 = reinterpret_cast< wxDC * >(argp3);
34302 {
34303 arg4 = &temp4;
34304 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34305 }
34306 if (obj4) {
34307 ecode5 = SWIG_AsVal_int(obj4, &val5);
34308 if (!SWIG_IsOK(ecode5)) {
34309 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
34310 }
34311 arg5 = static_cast< int >(val5);
34312 }
34313 {
34314 PyThreadState* __tstate = wxPyBeginAllowThreads();
34315 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34316 wxPyEndAllowThreads(__tstate);
34317 if (PyErr_Occurred()) SWIG_fail;
34318 }
34319 resultobj = SWIG_Py_Void();
34320 return resultobj;
34321 fail:
34322 return NULL;
34323 }
34324
34325
34326 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34327 PyObject *resultobj = 0;
34328 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34329 wxWindow *arg2 = (wxWindow *) 0 ;
34330 wxDC *arg3 = 0 ;
34331 wxRect *arg4 = 0 ;
34332 int arg5 = (int) 0 ;
34333 void *argp1 = 0 ;
34334 int res1 = 0 ;
34335 void *argp2 = 0 ;
34336 int res2 = 0 ;
34337 void *argp3 = 0 ;
34338 int res3 = 0 ;
34339 wxRect temp4 ;
34340 int val5 ;
34341 int ecode5 = 0 ;
34342 PyObject * obj0 = 0 ;
34343 PyObject * obj1 = 0 ;
34344 PyObject * obj2 = 0 ;
34345 PyObject * obj3 = 0 ;
34346 PyObject * obj4 = 0 ;
34347 char * kwnames[] = {
34348 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34349 };
34350
34351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34353 if (!SWIG_IsOK(res1)) {
34354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34355 }
34356 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34357 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34358 if (!SWIG_IsOK(res2)) {
34359 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
34360 }
34361 arg2 = reinterpret_cast< wxWindow * >(argp2);
34362 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34363 if (!SWIG_IsOK(res3)) {
34364 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34365 }
34366 if (!argp3) {
34367 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34368 }
34369 arg3 = reinterpret_cast< wxDC * >(argp3);
34370 {
34371 arg4 = &temp4;
34372 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34373 }
34374 if (obj4) {
34375 ecode5 = SWIG_AsVal_int(obj4, &val5);
34376 if (!SWIG_IsOK(ecode5)) {
34377 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
34378 }
34379 arg5 = static_cast< int >(val5);
34380 }
34381 {
34382 PyThreadState* __tstate = wxPyBeginAllowThreads();
34383 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
34384 wxPyEndAllowThreads(__tstate);
34385 if (PyErr_Occurred()) SWIG_fail;
34386 }
34387 resultobj = SWIG_Py_Void();
34388 return resultobj;
34389 fail:
34390 return NULL;
34391 }
34392
34393
34394 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34395 PyObject *resultobj = 0;
34396 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34397 wxWindow *arg2 = (wxWindow *) 0 ;
34398 wxDC *arg3 = 0 ;
34399 wxRect *arg4 = 0 ;
34400 int arg5 = (int) 0 ;
34401 void *argp1 = 0 ;
34402 int res1 = 0 ;
34403 void *argp2 = 0 ;
34404 int res2 = 0 ;
34405 void *argp3 = 0 ;
34406 int res3 = 0 ;
34407 wxRect temp4 ;
34408 int val5 ;
34409 int ecode5 = 0 ;
34410 PyObject * obj0 = 0 ;
34411 PyObject * obj1 = 0 ;
34412 PyObject * obj2 = 0 ;
34413 PyObject * obj3 = 0 ;
34414 PyObject * obj4 = 0 ;
34415 char * kwnames[] = {
34416 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34417 };
34418
34419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34421 if (!SWIG_IsOK(res1)) {
34422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34423 }
34424 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34425 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34426 if (!SWIG_IsOK(res2)) {
34427 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
34428 }
34429 arg2 = reinterpret_cast< wxWindow * >(argp2);
34430 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34431 if (!SWIG_IsOK(res3)) {
34432 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
34433 }
34434 if (!argp3) {
34435 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
34436 }
34437 arg3 = reinterpret_cast< wxDC * >(argp3);
34438 {
34439 arg4 = &temp4;
34440 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34441 }
34442 if (obj4) {
34443 ecode5 = SWIG_AsVal_int(obj4, &val5);
34444 if (!SWIG_IsOK(ecode5)) {
34445 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
34446 }
34447 arg5 = static_cast< int >(val5);
34448 }
34449 {
34450 PyThreadState* __tstate = wxPyBeginAllowThreads();
34451 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
34452 wxPyEndAllowThreads(__tstate);
34453 if (PyErr_Occurred()) SWIG_fail;
34454 }
34455 resultobj = SWIG_Py_Void();
34456 return resultobj;
34457 fail:
34458 return NULL;
34459 }
34460
34461
34462 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34463 PyObject *resultobj = 0;
34464 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34465 wxWindow *arg2 = (wxWindow *) 0 ;
34466 wxDC *arg3 = 0 ;
34467 wxRect *arg4 = 0 ;
34468 int arg5 = (int) 0 ;
34469 void *argp1 = 0 ;
34470 int res1 = 0 ;
34471 void *argp2 = 0 ;
34472 int res2 = 0 ;
34473 void *argp3 = 0 ;
34474 int res3 = 0 ;
34475 wxRect temp4 ;
34476 int val5 ;
34477 int ecode5 = 0 ;
34478 PyObject * obj0 = 0 ;
34479 PyObject * obj1 = 0 ;
34480 PyObject * obj2 = 0 ;
34481 PyObject * obj3 = 0 ;
34482 PyObject * obj4 = 0 ;
34483 char * kwnames[] = {
34484 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34485 };
34486
34487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34489 if (!SWIG_IsOK(res1)) {
34490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34491 }
34492 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34493 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34494 if (!SWIG_IsOK(res2)) {
34495 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34496 }
34497 arg2 = reinterpret_cast< wxWindow * >(argp2);
34498 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34499 if (!SWIG_IsOK(res3)) {
34500 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34501 }
34502 if (!argp3) {
34503 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34504 }
34505 arg3 = reinterpret_cast< wxDC * >(argp3);
34506 {
34507 arg4 = &temp4;
34508 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34509 }
34510 if (obj4) {
34511 ecode5 = SWIG_AsVal_int(obj4, &val5);
34512 if (!SWIG_IsOK(ecode5)) {
34513 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
34514 }
34515 arg5 = static_cast< int >(val5);
34516 }
34517 {
34518 PyThreadState* __tstate = wxPyBeginAllowThreads();
34519 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34520 wxPyEndAllowThreads(__tstate);
34521 if (PyErr_Occurred()) SWIG_fail;
34522 }
34523 resultobj = SWIG_Py_Void();
34524 return resultobj;
34525 fail:
34526 return NULL;
34527 }
34528
34529
34530 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34531 PyObject *resultobj = 0;
34532 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34533 wxWindow *arg2 = (wxWindow *) 0 ;
34534 wxDC *arg3 = 0 ;
34535 wxRect *arg4 = 0 ;
34536 int arg5 = (int) 0 ;
34537 void *argp1 = 0 ;
34538 int res1 = 0 ;
34539 void *argp2 = 0 ;
34540 int res2 = 0 ;
34541 void *argp3 = 0 ;
34542 int res3 = 0 ;
34543 wxRect temp4 ;
34544 int val5 ;
34545 int ecode5 = 0 ;
34546 PyObject * obj0 = 0 ;
34547 PyObject * obj1 = 0 ;
34548 PyObject * obj2 = 0 ;
34549 PyObject * obj3 = 0 ;
34550 PyObject * obj4 = 0 ;
34551 char * kwnames[] = {
34552 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34553 };
34554
34555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34557 if (!SWIG_IsOK(res1)) {
34558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34559 }
34560 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34561 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34562 if (!SWIG_IsOK(res2)) {
34563 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
34564 }
34565 arg2 = reinterpret_cast< wxWindow * >(argp2);
34566 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34567 if (!SWIG_IsOK(res3)) {
34568 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
34569 }
34570 if (!argp3) {
34571 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
34572 }
34573 arg3 = reinterpret_cast< wxDC * >(argp3);
34574 {
34575 arg4 = &temp4;
34576 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34577 }
34578 if (obj4) {
34579 ecode5 = SWIG_AsVal_int(obj4, &val5);
34580 if (!SWIG_IsOK(ecode5)) {
34581 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
34582 }
34583 arg5 = static_cast< int >(val5);
34584 }
34585 {
34586 PyThreadState* __tstate = wxPyBeginAllowThreads();
34587 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
34588 wxPyEndAllowThreads(__tstate);
34589 if (PyErr_Occurred()) SWIG_fail;
34590 }
34591 resultobj = SWIG_Py_Void();
34592 return resultobj;
34593 fail:
34594 return NULL;
34595 }
34596
34597
34598 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34599 PyObject *resultobj = 0;
34600 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34601 wxWindow *arg2 = (wxWindow *) 0 ;
34602 SwigValueWrapper<wxSplitterRenderParams > result;
34603 void *argp1 = 0 ;
34604 int res1 = 0 ;
34605 void *argp2 = 0 ;
34606 int res2 = 0 ;
34607 PyObject * obj0 = 0 ;
34608 PyObject * obj1 = 0 ;
34609 char * kwnames[] = {
34610 (char *) "self",(char *) "win", NULL
34611 };
34612
34613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
34614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34615 if (!SWIG_IsOK(res1)) {
34616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34617 }
34618 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34619 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34620 if (!SWIG_IsOK(res2)) {
34621 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
34622 }
34623 arg2 = reinterpret_cast< wxWindow * >(argp2);
34624 {
34625 PyThreadState* __tstate = wxPyBeginAllowThreads();
34626 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
34627 wxPyEndAllowThreads(__tstate);
34628 if (PyErr_Occurred()) SWIG_fail;
34629 }
34630 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
34631 return resultobj;
34632 fail:
34633 return NULL;
34634 }
34635
34636
34637 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34638 PyObject *resultobj = 0;
34639 wxRendererNative *result = 0 ;
34640
34641 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
34642 {
34643 if (!wxPyCheckForApp()) SWIG_fail;
34644 PyThreadState* __tstate = wxPyBeginAllowThreads();
34645 {
34646 wxRendererNative &_result_ref = wxRendererNative::Get();
34647 result = (wxRendererNative *) &_result_ref;
34648 }
34649 wxPyEndAllowThreads(__tstate);
34650 if (PyErr_Occurred()) SWIG_fail;
34651 }
34652 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34653 return resultobj;
34654 fail:
34655 return NULL;
34656 }
34657
34658
34659 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34660 PyObject *resultobj = 0;
34661 wxRendererNative *result = 0 ;
34662
34663 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
34664 {
34665 if (!wxPyCheckForApp()) SWIG_fail;
34666 PyThreadState* __tstate = wxPyBeginAllowThreads();
34667 {
34668 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
34669 result = (wxRendererNative *) &_result_ref;
34670 }
34671 wxPyEndAllowThreads(__tstate);
34672 if (PyErr_Occurred()) SWIG_fail;
34673 }
34674 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34675 return resultobj;
34676 fail:
34677 return NULL;
34678 }
34679
34680
34681 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34682 PyObject *resultobj = 0;
34683 wxRendererNative *result = 0 ;
34684
34685 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
34686 {
34687 if (!wxPyCheckForApp()) SWIG_fail;
34688 PyThreadState* __tstate = wxPyBeginAllowThreads();
34689 {
34690 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
34691 result = (wxRendererNative *) &_result_ref;
34692 }
34693 wxPyEndAllowThreads(__tstate);
34694 if (PyErr_Occurred()) SWIG_fail;
34695 }
34696 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34697 return resultobj;
34698 fail:
34699 return NULL;
34700 }
34701
34702
34703 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34704 PyObject *resultobj = 0;
34705 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34706 wxRendererNative *result = 0 ;
34707 void *argp1 = 0 ;
34708 int res1 = 0 ;
34709 PyObject * obj0 = 0 ;
34710 char * kwnames[] = {
34711 (char *) "renderer", NULL
34712 };
34713
34714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
34715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34716 if (!SWIG_IsOK(res1)) {
34717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34718 }
34719 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34720 {
34721 if (!wxPyCheckForApp()) SWIG_fail;
34722 PyThreadState* __tstate = wxPyBeginAllowThreads();
34723 result = (wxRendererNative *)wxRendererNative::Set(arg1);
34724 wxPyEndAllowThreads(__tstate);
34725 if (PyErr_Occurred()) SWIG_fail;
34726 }
34727 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34728 return resultobj;
34729 fail:
34730 return NULL;
34731 }
34732
34733
34734 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34735 PyObject *resultobj = 0;
34736 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34737 SwigValueWrapper<wxRendererVersion > result;
34738 void *argp1 = 0 ;
34739 int res1 = 0 ;
34740 PyObject *swig_obj[1] ;
34741
34742 if (!args) SWIG_fail;
34743 swig_obj[0] = args;
34744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34745 if (!SWIG_IsOK(res1)) {
34746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
34747 }
34748 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34749 {
34750 PyThreadState* __tstate = wxPyBeginAllowThreads();
34751 result = ((wxRendererNative const *)arg1)->GetVersion();
34752 wxPyEndAllowThreads(__tstate);
34753 if (PyErr_Occurred()) SWIG_fail;
34754 }
34755 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
34756 return resultobj;
34757 fail:
34758 return NULL;
34759 }
34760
34761
34762 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34763 PyObject *obj;
34764 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34765 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
34766 return SWIG_Py_Void();
34767 }
34768
34769 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34770 PyObject *resultobj = 0;
34771 wxPseudoDC *result = 0 ;
34772
34773 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
34774 {
34775 PyThreadState* __tstate = wxPyBeginAllowThreads();
34776 result = (wxPseudoDC *)new wxPseudoDC();
34777 wxPyEndAllowThreads(__tstate);
34778 if (PyErr_Occurred()) SWIG_fail;
34779 }
34780 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
34781 return resultobj;
34782 fail:
34783 return NULL;
34784 }
34785
34786
34787 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34788 PyObject *resultobj = 0;
34789 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34790 void *argp1 = 0 ;
34791 int res1 = 0 ;
34792 PyObject *swig_obj[1] ;
34793
34794 if (!args) SWIG_fail;
34795 swig_obj[0] = args;
34796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34797 if (!SWIG_IsOK(res1)) {
34798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34799 }
34800 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34801 {
34802 PyThreadState* __tstate = wxPyBeginAllowThreads();
34803 (arg1)->BeginDrawing();
34804 wxPyEndAllowThreads(__tstate);
34805 if (PyErr_Occurred()) SWIG_fail;
34806 }
34807 resultobj = SWIG_Py_Void();
34808 return resultobj;
34809 fail:
34810 return NULL;
34811 }
34812
34813
34814 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34815 PyObject *resultobj = 0;
34816 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34817 void *argp1 = 0 ;
34818 int res1 = 0 ;
34819 PyObject *swig_obj[1] ;
34820
34821 if (!args) SWIG_fail;
34822 swig_obj[0] = args;
34823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34824 if (!SWIG_IsOK(res1)) {
34825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34826 }
34827 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34828 {
34829 PyThreadState* __tstate = wxPyBeginAllowThreads();
34830 (arg1)->EndDrawing();
34831 wxPyEndAllowThreads(__tstate);
34832 if (PyErr_Occurred()) SWIG_fail;
34833 }
34834 resultobj = SWIG_Py_Void();
34835 return resultobj;
34836 fail:
34837 return NULL;
34838 }
34839
34840
34841 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34842 PyObject *resultobj = 0;
34843 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34844 void *argp1 = 0 ;
34845 int res1 = 0 ;
34846 PyObject *swig_obj[1] ;
34847
34848 if (!args) SWIG_fail;
34849 swig_obj[0] = args;
34850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
34851 if (!SWIG_IsOK(res1)) {
34852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34853 }
34854 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34855 {
34856 PyThreadState* __tstate = wxPyBeginAllowThreads();
34857 delete arg1;
34858
34859 wxPyEndAllowThreads(__tstate);
34860 if (PyErr_Occurred()) SWIG_fail;
34861 }
34862 resultobj = SWIG_Py_Void();
34863 return resultobj;
34864 fail:
34865 return NULL;
34866 }
34867
34868
34869 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34870 PyObject *resultobj = 0;
34871 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34872 void *argp1 = 0 ;
34873 int res1 = 0 ;
34874 PyObject *swig_obj[1] ;
34875
34876 if (!args) SWIG_fail;
34877 swig_obj[0] = args;
34878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34879 if (!SWIG_IsOK(res1)) {
34880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34881 }
34882 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34883 {
34884 PyThreadState* __tstate = wxPyBeginAllowThreads();
34885 (arg1)->RemoveAll();
34886 wxPyEndAllowThreads(__tstate);
34887 if (PyErr_Occurred()) SWIG_fail;
34888 }
34889 resultobj = SWIG_Py_Void();
34890 return resultobj;
34891 fail:
34892 return NULL;
34893 }
34894
34895
34896 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34897 PyObject *resultobj = 0;
34898 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34899 int result;
34900 void *argp1 = 0 ;
34901 int res1 = 0 ;
34902 PyObject *swig_obj[1] ;
34903
34904 if (!args) SWIG_fail;
34905 swig_obj[0] = args;
34906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34907 if (!SWIG_IsOK(res1)) {
34908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34909 }
34910 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34911 {
34912 PyThreadState* __tstate = wxPyBeginAllowThreads();
34913 result = (int)(arg1)->GetLen();
34914 wxPyEndAllowThreads(__tstate);
34915 if (PyErr_Occurred()) SWIG_fail;
34916 }
34917 resultobj = SWIG_From_int(static_cast< int >(result));
34918 return resultobj;
34919 fail:
34920 return NULL;
34921 }
34922
34923
34924 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34925 PyObject *resultobj = 0;
34926 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34927 int arg2 ;
34928 void *argp1 = 0 ;
34929 int res1 = 0 ;
34930 int val2 ;
34931 int ecode2 = 0 ;
34932 PyObject * obj0 = 0 ;
34933 PyObject * obj1 = 0 ;
34934 char * kwnames[] = {
34935 (char *) "self",(char *) "id", NULL
34936 };
34937
34938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
34939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34940 if (!SWIG_IsOK(res1)) {
34941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34942 }
34943 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34944 ecode2 = SWIG_AsVal_int(obj1, &val2);
34945 if (!SWIG_IsOK(ecode2)) {
34946 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
34947 }
34948 arg2 = static_cast< int >(val2);
34949 {
34950 PyThreadState* __tstate = wxPyBeginAllowThreads();
34951 (arg1)->SetId(arg2);
34952 wxPyEndAllowThreads(__tstate);
34953 if (PyErr_Occurred()) SWIG_fail;
34954 }
34955 resultobj = SWIG_Py_Void();
34956 return resultobj;
34957 fail:
34958 return NULL;
34959 }
34960
34961
34962 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34963 PyObject *resultobj = 0;
34964 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34965 int arg2 ;
34966 void *argp1 = 0 ;
34967 int res1 = 0 ;
34968 int val2 ;
34969 int ecode2 = 0 ;
34970 PyObject * obj0 = 0 ;
34971 PyObject * obj1 = 0 ;
34972 char * kwnames[] = {
34973 (char *) "self",(char *) "id", NULL
34974 };
34975
34976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
34977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34978 if (!SWIG_IsOK(res1)) {
34979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34980 }
34981 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34982 ecode2 = SWIG_AsVal_int(obj1, &val2);
34983 if (!SWIG_IsOK(ecode2)) {
34984 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
34985 }
34986 arg2 = static_cast< int >(val2);
34987 {
34988 PyThreadState* __tstate = wxPyBeginAllowThreads();
34989 (arg1)->ClearId(arg2);
34990 wxPyEndAllowThreads(__tstate);
34991 if (PyErr_Occurred()) SWIG_fail;
34992 }
34993 resultobj = SWIG_Py_Void();
34994 return resultobj;
34995 fail:
34996 return NULL;
34997 }
34998
34999
35000 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35001 PyObject *resultobj = 0;
35002 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35003 int arg2 ;
35004 void *argp1 = 0 ;
35005 int res1 = 0 ;
35006 int val2 ;
35007 int ecode2 = 0 ;
35008 PyObject * obj0 = 0 ;
35009 PyObject * obj1 = 0 ;
35010 char * kwnames[] = {
35011 (char *) "self",(char *) "id", NULL
35012 };
35013
35014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
35015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35016 if (!SWIG_IsOK(res1)) {
35017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35018 }
35019 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35020 ecode2 = SWIG_AsVal_int(obj1, &val2);
35021 if (!SWIG_IsOK(ecode2)) {
35022 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
35023 }
35024 arg2 = static_cast< int >(val2);
35025 {
35026 PyThreadState* __tstate = wxPyBeginAllowThreads();
35027 (arg1)->RemoveId(arg2);
35028 wxPyEndAllowThreads(__tstate);
35029 if (PyErr_Occurred()) SWIG_fail;
35030 }
35031 resultobj = SWIG_Py_Void();
35032 return resultobj;
35033 fail:
35034 return NULL;
35035 }
35036
35037
35038 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35039 PyObject *resultobj = 0;
35040 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35041 int arg2 ;
35042 int arg3 ;
35043 int arg4 ;
35044 void *argp1 = 0 ;
35045 int res1 = 0 ;
35046 int val2 ;
35047 int ecode2 = 0 ;
35048 int val3 ;
35049 int ecode3 = 0 ;
35050 int val4 ;
35051 int ecode4 = 0 ;
35052 PyObject * obj0 = 0 ;
35053 PyObject * obj1 = 0 ;
35054 PyObject * obj2 = 0 ;
35055 PyObject * obj3 = 0 ;
35056 char * kwnames[] = {
35057 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
35058 };
35059
35060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35062 if (!SWIG_IsOK(res1)) {
35063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35064 }
35065 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35066 ecode2 = SWIG_AsVal_int(obj1, &val2);
35067 if (!SWIG_IsOK(ecode2)) {
35068 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
35069 }
35070 arg2 = static_cast< int >(val2);
35071 ecode3 = SWIG_AsVal_int(obj2, &val3);
35072 if (!SWIG_IsOK(ecode3)) {
35073 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
35074 }
35075 arg3 = static_cast< int >(val3);
35076 ecode4 = SWIG_AsVal_int(obj3, &val4);
35077 if (!SWIG_IsOK(ecode4)) {
35078 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
35079 }
35080 arg4 = static_cast< int >(val4);
35081 {
35082 PyThreadState* __tstate = wxPyBeginAllowThreads();
35083 (arg1)->TranslateId(arg2,arg3,arg4);
35084 wxPyEndAllowThreads(__tstate);
35085 if (PyErr_Occurred()) SWIG_fail;
35086 }
35087 resultobj = SWIG_Py_Void();
35088 return resultobj;
35089 fail:
35090 return NULL;
35091 }
35092
35093
35094 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35095 PyObject *resultobj = 0;
35096 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35097 int arg2 ;
35098 bool arg3 = (bool) true ;
35099 void *argp1 = 0 ;
35100 int res1 = 0 ;
35101 int val2 ;
35102 int ecode2 = 0 ;
35103 bool val3 ;
35104 int ecode3 = 0 ;
35105 PyObject * obj0 = 0 ;
35106 PyObject * obj1 = 0 ;
35107 PyObject * obj2 = 0 ;
35108 char * kwnames[] = {
35109 (char *) "self",(char *) "id",(char *) "greyout", NULL
35110 };
35111
35112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35114 if (!SWIG_IsOK(res1)) {
35115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35116 }
35117 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35118 ecode2 = SWIG_AsVal_int(obj1, &val2);
35119 if (!SWIG_IsOK(ecode2)) {
35120 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35121 }
35122 arg2 = static_cast< int >(val2);
35123 if (obj2) {
35124 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35125 if (!SWIG_IsOK(ecode3)) {
35126 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
35127 }
35128 arg3 = static_cast< bool >(val3);
35129 }
35130 {
35131 PyThreadState* __tstate = wxPyBeginAllowThreads();
35132 (arg1)->SetIdGreyedOut(arg2,arg3);
35133 wxPyEndAllowThreads(__tstate);
35134 if (PyErr_Occurred()) SWIG_fail;
35135 }
35136 resultobj = SWIG_Py_Void();
35137 return resultobj;
35138 fail:
35139 return NULL;
35140 }
35141
35142
35143 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35144 PyObject *resultobj = 0;
35145 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35146 int arg2 ;
35147 bool result;
35148 void *argp1 = 0 ;
35149 int res1 = 0 ;
35150 int val2 ;
35151 int ecode2 = 0 ;
35152 PyObject * obj0 = 0 ;
35153 PyObject * obj1 = 0 ;
35154 char * kwnames[] = {
35155 (char *) "self",(char *) "id", NULL
35156 };
35157
35158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
35159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35160 if (!SWIG_IsOK(res1)) {
35161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35162 }
35163 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35164 ecode2 = SWIG_AsVal_int(obj1, &val2);
35165 if (!SWIG_IsOK(ecode2)) {
35166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35167 }
35168 arg2 = static_cast< int >(val2);
35169 {
35170 PyThreadState* __tstate = wxPyBeginAllowThreads();
35171 result = (bool)(arg1)->GetIdGreyedOut(arg2);
35172 wxPyEndAllowThreads(__tstate);
35173 if (PyErr_Occurred()) SWIG_fail;
35174 }
35175 {
35176 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35177 }
35178 return resultobj;
35179 fail:
35180 return NULL;
35181 }
35182
35183
35184 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35185 PyObject *resultobj = 0;
35186 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35187 int arg2 ;
35188 int arg3 ;
35189 int arg4 = (int) 1 ;
35190 wxColor const &arg5_defvalue = *wxWHITE ;
35191 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
35192 PyObject *result = 0 ;
35193 void *argp1 = 0 ;
35194 int res1 = 0 ;
35195 int val2 ;
35196 int ecode2 = 0 ;
35197 int val3 ;
35198 int ecode3 = 0 ;
35199 int val4 ;
35200 int ecode4 = 0 ;
35201 void *argp5 = 0 ;
35202 int res5 = 0 ;
35203 PyObject * obj0 = 0 ;
35204 PyObject * obj1 = 0 ;
35205 PyObject * obj2 = 0 ;
35206 PyObject * obj3 = 0 ;
35207 PyObject * obj4 = 0 ;
35208 char * kwnames[] = {
35209 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
35210 };
35211
35212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35214 if (!SWIG_IsOK(res1)) {
35215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35216 }
35217 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35218 ecode2 = SWIG_AsVal_int(obj1, &val2);
35219 if (!SWIG_IsOK(ecode2)) {
35220 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
35221 }
35222 arg2 = static_cast< int >(val2);
35223 ecode3 = SWIG_AsVal_int(obj2, &val3);
35224 if (!SWIG_IsOK(ecode3)) {
35225 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
35226 }
35227 arg3 = static_cast< int >(val3);
35228 if (obj3) {
35229 ecode4 = SWIG_AsVal_int(obj3, &val4);
35230 if (!SWIG_IsOK(ecode4)) {
35231 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
35232 }
35233 arg4 = static_cast< int >(val4);
35234 }
35235 if (obj4) {
35236 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
35237 if (!SWIG_IsOK(res5)) {
35238 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35239 }
35240 if (!argp5) {
35241 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35242 }
35243 arg5 = reinterpret_cast< wxColor * >(argp5);
35244 }
35245 {
35246 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
35247 if (PyErr_Occurred()) SWIG_fail;
35248 }
35249 resultobj = result;
35250 return resultobj;
35251 fail:
35252 return NULL;
35253 }
35254
35255
35256 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35257 PyObject *resultobj = 0;
35258 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35259 int arg2 ;
35260 int arg3 ;
35261 PyObject *result = 0 ;
35262 void *argp1 = 0 ;
35263 int res1 = 0 ;
35264 int val2 ;
35265 int ecode2 = 0 ;
35266 int val3 ;
35267 int ecode3 = 0 ;
35268 PyObject * obj0 = 0 ;
35269 PyObject * obj1 = 0 ;
35270 PyObject * obj2 = 0 ;
35271 char * kwnames[] = {
35272 (char *) "self",(char *) "x",(char *) "y", NULL
35273 };
35274
35275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35277 if (!SWIG_IsOK(res1)) {
35278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35279 }
35280 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35281 ecode2 = SWIG_AsVal_int(obj1, &val2);
35282 if (!SWIG_IsOK(ecode2)) {
35283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
35284 }
35285 arg2 = static_cast< int >(val2);
35286 ecode3 = SWIG_AsVal_int(obj2, &val3);
35287 if (!SWIG_IsOK(ecode3)) {
35288 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
35289 }
35290 arg3 = static_cast< int >(val3);
35291 {
35292 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
35293 if (PyErr_Occurred()) SWIG_fail;
35294 }
35295 resultobj = result;
35296 return resultobj;
35297 fail:
35298 return NULL;
35299 }
35300
35301
35302 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35303 PyObject *resultobj = 0;
35304 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35305 int arg2 ;
35306 wxDC *arg3 = (wxDC *) 0 ;
35307 void *argp1 = 0 ;
35308 int res1 = 0 ;
35309 int val2 ;
35310 int ecode2 = 0 ;
35311 void *argp3 = 0 ;
35312 int res3 = 0 ;
35313 PyObject * obj0 = 0 ;
35314 PyObject * obj1 = 0 ;
35315 PyObject * obj2 = 0 ;
35316 char * kwnames[] = {
35317 (char *) "self",(char *) "id",(char *) "dc", NULL
35318 };
35319
35320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35322 if (!SWIG_IsOK(res1)) {
35323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35324 }
35325 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35326 ecode2 = SWIG_AsVal_int(obj1, &val2);
35327 if (!SWIG_IsOK(ecode2)) {
35328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
35329 }
35330 arg2 = static_cast< int >(val2);
35331 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
35332 if (!SWIG_IsOK(res3)) {
35333 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
35334 }
35335 arg3 = reinterpret_cast< wxDC * >(argp3);
35336 {
35337 PyThreadState* __tstate = wxPyBeginAllowThreads();
35338 (arg1)->DrawIdToDC(arg2,arg3);
35339 wxPyEndAllowThreads(__tstate);
35340 if (PyErr_Occurred()) SWIG_fail;
35341 }
35342 resultobj = SWIG_Py_Void();
35343 return resultobj;
35344 fail:
35345 return NULL;
35346 }
35347
35348
35349 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35350 PyObject *resultobj = 0;
35351 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35352 int arg2 ;
35353 wxRect *arg3 = 0 ;
35354 void *argp1 = 0 ;
35355 int res1 = 0 ;
35356 int val2 ;
35357 int ecode2 = 0 ;
35358 wxRect temp3 ;
35359 PyObject * obj0 = 0 ;
35360 PyObject * obj1 = 0 ;
35361 PyObject * obj2 = 0 ;
35362 char * kwnames[] = {
35363 (char *) "self",(char *) "id",(char *) "rect", NULL
35364 };
35365
35366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35368 if (!SWIG_IsOK(res1)) {
35369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35370 }
35371 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35372 ecode2 = SWIG_AsVal_int(obj1, &val2);
35373 if (!SWIG_IsOK(ecode2)) {
35374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
35375 }
35376 arg2 = static_cast< int >(val2);
35377 {
35378 arg3 = &temp3;
35379 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35380 }
35381 {
35382 PyThreadState* __tstate = wxPyBeginAllowThreads();
35383 (arg1)->SetIdBounds(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_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35395 PyObject *resultobj = 0;
35396 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35397 int arg2 ;
35398 wxRect 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_GetIdBounds",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_GetIdBounds" "', 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_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
35418 }
35419 arg2 = static_cast< int >(val2);
35420 {
35421 PyThreadState* __tstate = wxPyBeginAllowThreads();
35422 result = wxPseudoDC_GetIdBounds(arg1,arg2);
35423 wxPyEndAllowThreads(__tstate);
35424 if (PyErr_Occurred()) SWIG_fail;
35425 }
35426 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
35427 return resultobj;
35428 fail:
35429 return NULL;
35430 }
35431
35432
35433 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35434 PyObject *resultobj = 0;
35435 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35436 wxDC *arg2 = (wxDC *) 0 ;
35437 wxRect *arg3 = 0 ;
35438 void *argp1 = 0 ;
35439 int res1 = 0 ;
35440 void *argp2 = 0 ;
35441 int res2 = 0 ;
35442 wxRect temp3 ;
35443 PyObject * obj0 = 0 ;
35444 PyObject * obj1 = 0 ;
35445 PyObject * obj2 = 0 ;
35446 char * kwnames[] = {
35447 (char *) "self",(char *) "dc",(char *) "rect", NULL
35448 };
35449
35450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35452 if (!SWIG_IsOK(res1)) {
35453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35454 }
35455 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35456 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35457 if (!SWIG_IsOK(res2)) {
35458 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
35459 }
35460 arg2 = reinterpret_cast< wxDC * >(argp2);
35461 {
35462 arg3 = &temp3;
35463 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35464 }
35465 {
35466 PyThreadState* __tstate = wxPyBeginAllowThreads();
35467 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
35468 wxPyEndAllowThreads(__tstate);
35469 if (PyErr_Occurred()) SWIG_fail;
35470 }
35471 resultobj = SWIG_Py_Void();
35472 return resultobj;
35473 fail:
35474 return NULL;
35475 }
35476
35477
35478 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35479 PyObject *resultobj = 0;
35480 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35481 wxDC *arg2 = (wxDC *) 0 ;
35482 wxRegion *arg3 = 0 ;
35483 void *argp1 = 0 ;
35484 int res1 = 0 ;
35485 void *argp2 = 0 ;
35486 int res2 = 0 ;
35487 void *argp3 = 0 ;
35488 int res3 = 0 ;
35489 PyObject * obj0 = 0 ;
35490 PyObject * obj1 = 0 ;
35491 PyObject * obj2 = 0 ;
35492 char * kwnames[] = {
35493 (char *) "self",(char *) "dc",(char *) "region", NULL
35494 };
35495
35496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35498 if (!SWIG_IsOK(res1)) {
35499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35500 }
35501 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35502 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35503 if (!SWIG_IsOK(res2)) {
35504 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
35505 }
35506 arg2 = reinterpret_cast< wxDC * >(argp2);
35507 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
35508 if (!SWIG_IsOK(res3)) {
35509 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35510 }
35511 if (!argp3) {
35512 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35513 }
35514 arg3 = reinterpret_cast< wxRegion * >(argp3);
35515 {
35516 PyThreadState* __tstate = wxPyBeginAllowThreads();
35517 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
35518 wxPyEndAllowThreads(__tstate);
35519 if (PyErr_Occurred()) SWIG_fail;
35520 }
35521 resultobj = SWIG_Py_Void();
35522 return resultobj;
35523 fail:
35524 return NULL;
35525 }
35526
35527
35528 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35529 PyObject *resultobj = 0;
35530 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35531 wxDC *arg2 = (wxDC *) 0 ;
35532 void *argp1 = 0 ;
35533 int res1 = 0 ;
35534 void *argp2 = 0 ;
35535 int res2 = 0 ;
35536 PyObject * obj0 = 0 ;
35537 PyObject * obj1 = 0 ;
35538 char * kwnames[] = {
35539 (char *) "self",(char *) "dc", NULL
35540 };
35541
35542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
35543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35544 if (!SWIG_IsOK(res1)) {
35545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35546 }
35547 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35548 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35549 if (!SWIG_IsOK(res2)) {
35550 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
35551 }
35552 arg2 = reinterpret_cast< wxDC * >(argp2);
35553 {
35554 PyThreadState* __tstate = wxPyBeginAllowThreads();
35555 (arg1)->DrawToDC(arg2);
35556 wxPyEndAllowThreads(__tstate);
35557 if (PyErr_Occurred()) SWIG_fail;
35558 }
35559 resultobj = SWIG_Py_Void();
35560 return resultobj;
35561 fail:
35562 return NULL;
35563 }
35564
35565
35566 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35567 PyObject *resultobj = 0;
35568 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35569 int arg2 ;
35570 int arg3 ;
35571 wxColour *arg4 = 0 ;
35572 int arg5 = (int) wxFLOOD_SURFACE ;
35573 void *argp1 = 0 ;
35574 int res1 = 0 ;
35575 int val2 ;
35576 int ecode2 = 0 ;
35577 int val3 ;
35578 int ecode3 = 0 ;
35579 wxColour temp4 ;
35580 int val5 ;
35581 int ecode5 = 0 ;
35582 PyObject * obj0 = 0 ;
35583 PyObject * obj1 = 0 ;
35584 PyObject * obj2 = 0 ;
35585 PyObject * obj3 = 0 ;
35586 PyObject * obj4 = 0 ;
35587 char * kwnames[] = {
35588 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
35589 };
35590
35591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35593 if (!SWIG_IsOK(res1)) {
35594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35595 }
35596 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35597 ecode2 = SWIG_AsVal_int(obj1, &val2);
35598 if (!SWIG_IsOK(ecode2)) {
35599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
35600 }
35601 arg2 = static_cast< int >(val2);
35602 ecode3 = SWIG_AsVal_int(obj2, &val3);
35603 if (!SWIG_IsOK(ecode3)) {
35604 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
35605 }
35606 arg3 = static_cast< int >(val3);
35607 {
35608 arg4 = &temp4;
35609 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
35610 }
35611 if (obj4) {
35612 ecode5 = SWIG_AsVal_int(obj4, &val5);
35613 if (!SWIG_IsOK(ecode5)) {
35614 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
35615 }
35616 arg5 = static_cast< int >(val5);
35617 }
35618 {
35619 PyThreadState* __tstate = wxPyBeginAllowThreads();
35620 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
35621 wxPyEndAllowThreads(__tstate);
35622 if (PyErr_Occurred()) SWIG_fail;
35623 }
35624 resultobj = SWIG_Py_Void();
35625 return resultobj;
35626 fail:
35627 return NULL;
35628 }
35629
35630
35631 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35632 PyObject *resultobj = 0;
35633 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35634 wxPoint *arg2 = 0 ;
35635 wxColour *arg3 = 0 ;
35636 int arg4 = (int) wxFLOOD_SURFACE ;
35637 void *argp1 = 0 ;
35638 int res1 = 0 ;
35639 wxPoint temp2 ;
35640 wxColour temp3 ;
35641 int val4 ;
35642 int ecode4 = 0 ;
35643 PyObject * obj0 = 0 ;
35644 PyObject * obj1 = 0 ;
35645 PyObject * obj2 = 0 ;
35646 PyObject * obj3 = 0 ;
35647 char * kwnames[] = {
35648 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
35649 };
35650
35651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35653 if (!SWIG_IsOK(res1)) {
35654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35655 }
35656 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35657 {
35658 arg2 = &temp2;
35659 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35660 }
35661 {
35662 arg3 = &temp3;
35663 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35664 }
35665 if (obj3) {
35666 ecode4 = SWIG_AsVal_int(obj3, &val4);
35667 if (!SWIG_IsOK(ecode4)) {
35668 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
35669 }
35670 arg4 = static_cast< int >(val4);
35671 }
35672 {
35673 PyThreadState* __tstate = wxPyBeginAllowThreads();
35674 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
35675 wxPyEndAllowThreads(__tstate);
35676 if (PyErr_Occurred()) SWIG_fail;
35677 }
35678 resultobj = SWIG_Py_Void();
35679 return resultobj;
35680 fail:
35681 return NULL;
35682 }
35683
35684
35685 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35686 PyObject *resultobj = 0;
35687 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35688 int arg2 ;
35689 int arg3 ;
35690 int arg4 ;
35691 int arg5 ;
35692 void *argp1 = 0 ;
35693 int res1 = 0 ;
35694 int val2 ;
35695 int ecode2 = 0 ;
35696 int val3 ;
35697 int ecode3 = 0 ;
35698 int val4 ;
35699 int ecode4 = 0 ;
35700 int val5 ;
35701 int ecode5 = 0 ;
35702 PyObject * obj0 = 0 ;
35703 PyObject * obj1 = 0 ;
35704 PyObject * obj2 = 0 ;
35705 PyObject * obj3 = 0 ;
35706 PyObject * obj4 = 0 ;
35707 char * kwnames[] = {
35708 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
35709 };
35710
35711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35713 if (!SWIG_IsOK(res1)) {
35714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35715 }
35716 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35717 ecode2 = SWIG_AsVal_int(obj1, &val2);
35718 if (!SWIG_IsOK(ecode2)) {
35719 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
35720 }
35721 arg2 = static_cast< int >(val2);
35722 ecode3 = SWIG_AsVal_int(obj2, &val3);
35723 if (!SWIG_IsOK(ecode3)) {
35724 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
35725 }
35726 arg3 = static_cast< int >(val3);
35727 ecode4 = SWIG_AsVal_int(obj3, &val4);
35728 if (!SWIG_IsOK(ecode4)) {
35729 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
35730 }
35731 arg4 = static_cast< int >(val4);
35732 ecode5 = SWIG_AsVal_int(obj4, &val5);
35733 if (!SWIG_IsOK(ecode5)) {
35734 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
35735 }
35736 arg5 = static_cast< int >(val5);
35737 {
35738 PyThreadState* __tstate = wxPyBeginAllowThreads();
35739 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
35740 wxPyEndAllowThreads(__tstate);
35741 if (PyErr_Occurred()) SWIG_fail;
35742 }
35743 resultobj = SWIG_Py_Void();
35744 return resultobj;
35745 fail:
35746 return NULL;
35747 }
35748
35749
35750 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35751 PyObject *resultobj = 0;
35752 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35753 wxPoint *arg2 = 0 ;
35754 wxPoint *arg3 = 0 ;
35755 void *argp1 = 0 ;
35756 int res1 = 0 ;
35757 wxPoint temp2 ;
35758 wxPoint temp3 ;
35759 PyObject * obj0 = 0 ;
35760 PyObject * obj1 = 0 ;
35761 PyObject * obj2 = 0 ;
35762 char * kwnames[] = {
35763 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
35764 };
35765
35766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35768 if (!SWIG_IsOK(res1)) {
35769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35770 }
35771 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35772 {
35773 arg2 = &temp2;
35774 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35775 }
35776 {
35777 arg3 = &temp3;
35778 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
35779 }
35780 {
35781 PyThreadState* __tstate = wxPyBeginAllowThreads();
35782 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
35783 wxPyEndAllowThreads(__tstate);
35784 if (PyErr_Occurred()) SWIG_fail;
35785 }
35786 resultobj = SWIG_Py_Void();
35787 return resultobj;
35788 fail:
35789 return NULL;
35790 }
35791
35792
35793 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35794 PyObject *resultobj = 0;
35795 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35796 int arg2 ;
35797 int arg3 ;
35798 void *argp1 = 0 ;
35799 int res1 = 0 ;
35800 int val2 ;
35801 int ecode2 = 0 ;
35802 int val3 ;
35803 int ecode3 = 0 ;
35804 PyObject * obj0 = 0 ;
35805 PyObject * obj1 = 0 ;
35806 PyObject * obj2 = 0 ;
35807 char * kwnames[] = {
35808 (char *) "self",(char *) "x",(char *) "y", NULL
35809 };
35810
35811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35813 if (!SWIG_IsOK(res1)) {
35814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35815 }
35816 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35817 ecode2 = SWIG_AsVal_int(obj1, &val2);
35818 if (!SWIG_IsOK(ecode2)) {
35819 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
35820 }
35821 arg2 = static_cast< int >(val2);
35822 ecode3 = SWIG_AsVal_int(obj2, &val3);
35823 if (!SWIG_IsOK(ecode3)) {
35824 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
35825 }
35826 arg3 = static_cast< int >(val3);
35827 {
35828 PyThreadState* __tstate = wxPyBeginAllowThreads();
35829 (arg1)->CrossHair(arg2,arg3);
35830 wxPyEndAllowThreads(__tstate);
35831 if (PyErr_Occurred()) SWIG_fail;
35832 }
35833 resultobj = SWIG_Py_Void();
35834 return resultobj;
35835 fail:
35836 return NULL;
35837 }
35838
35839
35840 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35841 PyObject *resultobj = 0;
35842 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35843 wxPoint *arg2 = 0 ;
35844 void *argp1 = 0 ;
35845 int res1 = 0 ;
35846 wxPoint temp2 ;
35847 PyObject * obj0 = 0 ;
35848 PyObject * obj1 = 0 ;
35849 char * kwnames[] = {
35850 (char *) "self",(char *) "pt", NULL
35851 };
35852
35853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
35854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35855 if (!SWIG_IsOK(res1)) {
35856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35857 }
35858 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35859 {
35860 arg2 = &temp2;
35861 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35862 }
35863 {
35864 PyThreadState* __tstate = wxPyBeginAllowThreads();
35865 (arg1)->CrossHair((wxPoint const &)*arg2);
35866 wxPyEndAllowThreads(__tstate);
35867 if (PyErr_Occurred()) SWIG_fail;
35868 }
35869 resultobj = SWIG_Py_Void();
35870 return resultobj;
35871 fail:
35872 return NULL;
35873 }
35874
35875
35876 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35877 PyObject *resultobj = 0;
35878 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35879 int arg2 ;
35880 int arg3 ;
35881 int arg4 ;
35882 int arg5 ;
35883 int arg6 ;
35884 int arg7 ;
35885 void *argp1 = 0 ;
35886 int res1 = 0 ;
35887 int val2 ;
35888 int ecode2 = 0 ;
35889 int val3 ;
35890 int ecode3 = 0 ;
35891 int val4 ;
35892 int ecode4 = 0 ;
35893 int val5 ;
35894 int ecode5 = 0 ;
35895 int val6 ;
35896 int ecode6 = 0 ;
35897 int val7 ;
35898 int ecode7 = 0 ;
35899 PyObject * obj0 = 0 ;
35900 PyObject * obj1 = 0 ;
35901 PyObject * obj2 = 0 ;
35902 PyObject * obj3 = 0 ;
35903 PyObject * obj4 = 0 ;
35904 PyObject * obj5 = 0 ;
35905 PyObject * obj6 = 0 ;
35906 char * kwnames[] = {
35907 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
35908 };
35909
35910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35912 if (!SWIG_IsOK(res1)) {
35913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35914 }
35915 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35916 ecode2 = SWIG_AsVal_int(obj1, &val2);
35917 if (!SWIG_IsOK(ecode2)) {
35918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
35919 }
35920 arg2 = static_cast< int >(val2);
35921 ecode3 = SWIG_AsVal_int(obj2, &val3);
35922 if (!SWIG_IsOK(ecode3)) {
35923 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
35924 }
35925 arg3 = static_cast< int >(val3);
35926 ecode4 = SWIG_AsVal_int(obj3, &val4);
35927 if (!SWIG_IsOK(ecode4)) {
35928 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
35929 }
35930 arg4 = static_cast< int >(val4);
35931 ecode5 = SWIG_AsVal_int(obj4, &val5);
35932 if (!SWIG_IsOK(ecode5)) {
35933 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
35934 }
35935 arg5 = static_cast< int >(val5);
35936 ecode6 = SWIG_AsVal_int(obj5, &val6);
35937 if (!SWIG_IsOK(ecode6)) {
35938 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
35939 }
35940 arg6 = static_cast< int >(val6);
35941 ecode7 = SWIG_AsVal_int(obj6, &val7);
35942 if (!SWIG_IsOK(ecode7)) {
35943 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
35944 }
35945 arg7 = static_cast< int >(val7);
35946 {
35947 PyThreadState* __tstate = wxPyBeginAllowThreads();
35948 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
35949 wxPyEndAllowThreads(__tstate);
35950 if (PyErr_Occurred()) SWIG_fail;
35951 }
35952 resultobj = SWIG_Py_Void();
35953 return resultobj;
35954 fail:
35955 return NULL;
35956 }
35957
35958
35959 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35960 PyObject *resultobj = 0;
35961 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35962 wxPoint *arg2 = 0 ;
35963 wxPoint *arg3 = 0 ;
35964 wxPoint *arg4 = 0 ;
35965 void *argp1 = 0 ;
35966 int res1 = 0 ;
35967 wxPoint temp2 ;
35968 wxPoint temp3 ;
35969 wxPoint temp4 ;
35970 PyObject * obj0 = 0 ;
35971 PyObject * obj1 = 0 ;
35972 PyObject * obj2 = 0 ;
35973 PyObject * obj3 = 0 ;
35974 char * kwnames[] = {
35975 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
35976 };
35977
35978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35980 if (!SWIG_IsOK(res1)) {
35981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35982 }
35983 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35984 {
35985 arg2 = &temp2;
35986 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35987 }
35988 {
35989 arg3 = &temp3;
35990 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
35991 }
35992 {
35993 arg4 = &temp4;
35994 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
35995 }
35996 {
35997 PyThreadState* __tstate = wxPyBeginAllowThreads();
35998 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
35999 wxPyEndAllowThreads(__tstate);
36000 if (PyErr_Occurred()) SWIG_fail;
36001 }
36002 resultobj = SWIG_Py_Void();
36003 return resultobj;
36004 fail:
36005 return NULL;
36006 }
36007
36008
36009 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36010 PyObject *resultobj = 0;
36011 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36012 int arg2 ;
36013 int arg3 ;
36014 int arg4 ;
36015 int arg5 ;
36016 void *argp1 = 0 ;
36017 int res1 = 0 ;
36018 int val2 ;
36019 int ecode2 = 0 ;
36020 int val3 ;
36021 int ecode3 = 0 ;
36022 int val4 ;
36023 int ecode4 = 0 ;
36024 int val5 ;
36025 int ecode5 = 0 ;
36026 PyObject * obj0 = 0 ;
36027 PyObject * obj1 = 0 ;
36028 PyObject * obj2 = 0 ;
36029 PyObject * obj3 = 0 ;
36030 PyObject * obj4 = 0 ;
36031 char * kwnames[] = {
36032 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36033 };
36034
36035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36037 if (!SWIG_IsOK(res1)) {
36038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36039 }
36040 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36041 ecode2 = SWIG_AsVal_int(obj1, &val2);
36042 if (!SWIG_IsOK(ecode2)) {
36043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
36044 }
36045 arg2 = static_cast< int >(val2);
36046 ecode3 = SWIG_AsVal_int(obj2, &val3);
36047 if (!SWIG_IsOK(ecode3)) {
36048 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
36049 }
36050 arg3 = static_cast< int >(val3);
36051 ecode4 = SWIG_AsVal_int(obj3, &val4);
36052 if (!SWIG_IsOK(ecode4)) {
36053 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
36054 }
36055 arg4 = static_cast< int >(val4);
36056 ecode5 = SWIG_AsVal_int(obj4, &val5);
36057 if (!SWIG_IsOK(ecode5)) {
36058 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
36059 }
36060 arg5 = static_cast< int >(val5);
36061 {
36062 PyThreadState* __tstate = wxPyBeginAllowThreads();
36063 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
36064 wxPyEndAllowThreads(__tstate);
36065 if (PyErr_Occurred()) SWIG_fail;
36066 }
36067 resultobj = SWIG_Py_Void();
36068 return resultobj;
36069 fail:
36070 return NULL;
36071 }
36072
36073
36074 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36075 PyObject *resultobj = 0;
36076 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36077 wxRect *arg2 = 0 ;
36078 void *argp1 = 0 ;
36079 int res1 = 0 ;
36080 wxRect temp2 ;
36081 PyObject * obj0 = 0 ;
36082 PyObject * obj1 = 0 ;
36083 char * kwnames[] = {
36084 (char *) "self",(char *) "rect", NULL
36085 };
36086
36087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
36088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36089 if (!SWIG_IsOK(res1)) {
36090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36091 }
36092 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36093 {
36094 arg2 = &temp2;
36095 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36096 }
36097 {
36098 PyThreadState* __tstate = wxPyBeginAllowThreads();
36099 (arg1)->DrawCheckMark((wxRect const &)*arg2);
36100 wxPyEndAllowThreads(__tstate);
36101 if (PyErr_Occurred()) SWIG_fail;
36102 }
36103 resultobj = SWIG_Py_Void();
36104 return resultobj;
36105 fail:
36106 return NULL;
36107 }
36108
36109
36110 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36111 PyObject *resultobj = 0;
36112 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36113 int arg2 ;
36114 int arg3 ;
36115 int arg4 ;
36116 int arg5 ;
36117 double arg6 ;
36118 double arg7 ;
36119 void *argp1 = 0 ;
36120 int res1 = 0 ;
36121 int val2 ;
36122 int ecode2 = 0 ;
36123 int val3 ;
36124 int ecode3 = 0 ;
36125 int val4 ;
36126 int ecode4 = 0 ;
36127 int val5 ;
36128 int ecode5 = 0 ;
36129 double val6 ;
36130 int ecode6 = 0 ;
36131 double val7 ;
36132 int ecode7 = 0 ;
36133 PyObject * obj0 = 0 ;
36134 PyObject * obj1 = 0 ;
36135 PyObject * obj2 = 0 ;
36136 PyObject * obj3 = 0 ;
36137 PyObject * obj4 = 0 ;
36138 PyObject * obj5 = 0 ;
36139 PyObject * obj6 = 0 ;
36140 char * kwnames[] = {
36141 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
36142 };
36143
36144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36146 if (!SWIG_IsOK(res1)) {
36147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36148 }
36149 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36150 ecode2 = SWIG_AsVal_int(obj1, &val2);
36151 if (!SWIG_IsOK(ecode2)) {
36152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
36153 }
36154 arg2 = static_cast< int >(val2);
36155 ecode3 = SWIG_AsVal_int(obj2, &val3);
36156 if (!SWIG_IsOK(ecode3)) {
36157 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
36158 }
36159 arg3 = static_cast< int >(val3);
36160 ecode4 = SWIG_AsVal_int(obj3, &val4);
36161 if (!SWIG_IsOK(ecode4)) {
36162 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
36163 }
36164 arg4 = static_cast< int >(val4);
36165 ecode5 = SWIG_AsVal_int(obj4, &val5);
36166 if (!SWIG_IsOK(ecode5)) {
36167 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
36168 }
36169 arg5 = static_cast< int >(val5);
36170 ecode6 = SWIG_AsVal_double(obj5, &val6);
36171 if (!SWIG_IsOK(ecode6)) {
36172 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
36173 }
36174 arg6 = static_cast< double >(val6);
36175 ecode7 = SWIG_AsVal_double(obj6, &val7);
36176 if (!SWIG_IsOK(ecode7)) {
36177 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
36178 }
36179 arg7 = static_cast< double >(val7);
36180 {
36181 PyThreadState* __tstate = wxPyBeginAllowThreads();
36182 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
36183 wxPyEndAllowThreads(__tstate);
36184 if (PyErr_Occurred()) SWIG_fail;
36185 }
36186 resultobj = SWIG_Py_Void();
36187 return resultobj;
36188 fail:
36189 return NULL;
36190 }
36191
36192
36193 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36194 PyObject *resultobj = 0;
36195 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36196 wxPoint *arg2 = 0 ;
36197 wxSize *arg3 = 0 ;
36198 double arg4 ;
36199 double arg5 ;
36200 void *argp1 = 0 ;
36201 int res1 = 0 ;
36202 wxPoint temp2 ;
36203 wxSize temp3 ;
36204 double val4 ;
36205 int ecode4 = 0 ;
36206 double val5 ;
36207 int ecode5 = 0 ;
36208 PyObject * obj0 = 0 ;
36209 PyObject * obj1 = 0 ;
36210 PyObject * obj2 = 0 ;
36211 PyObject * obj3 = 0 ;
36212 PyObject * obj4 = 0 ;
36213 char * kwnames[] = {
36214 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
36215 };
36216
36217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36219 if (!SWIG_IsOK(res1)) {
36220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36221 }
36222 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36223 {
36224 arg2 = &temp2;
36225 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36226 }
36227 {
36228 arg3 = &temp3;
36229 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36230 }
36231 ecode4 = SWIG_AsVal_double(obj3, &val4);
36232 if (!SWIG_IsOK(ecode4)) {
36233 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
36234 }
36235 arg4 = static_cast< double >(val4);
36236 ecode5 = SWIG_AsVal_double(obj4, &val5);
36237 if (!SWIG_IsOK(ecode5)) {
36238 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
36239 }
36240 arg5 = static_cast< double >(val5);
36241 {
36242 PyThreadState* __tstate = wxPyBeginAllowThreads();
36243 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
36244 wxPyEndAllowThreads(__tstate);
36245 if (PyErr_Occurred()) SWIG_fail;
36246 }
36247 resultobj = SWIG_Py_Void();
36248 return resultobj;
36249 fail:
36250 return NULL;
36251 }
36252
36253
36254 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36255 PyObject *resultobj = 0;
36256 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36257 int arg2 ;
36258 int arg3 ;
36259 void *argp1 = 0 ;
36260 int res1 = 0 ;
36261 int val2 ;
36262 int ecode2 = 0 ;
36263 int val3 ;
36264 int ecode3 = 0 ;
36265 PyObject * obj0 = 0 ;
36266 PyObject * obj1 = 0 ;
36267 PyObject * obj2 = 0 ;
36268 char * kwnames[] = {
36269 (char *) "self",(char *) "x",(char *) "y", NULL
36270 };
36271
36272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36274 if (!SWIG_IsOK(res1)) {
36275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36276 }
36277 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36278 ecode2 = SWIG_AsVal_int(obj1, &val2);
36279 if (!SWIG_IsOK(ecode2)) {
36280 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
36281 }
36282 arg2 = static_cast< int >(val2);
36283 ecode3 = SWIG_AsVal_int(obj2, &val3);
36284 if (!SWIG_IsOK(ecode3)) {
36285 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
36286 }
36287 arg3 = static_cast< int >(val3);
36288 {
36289 PyThreadState* __tstate = wxPyBeginAllowThreads();
36290 (arg1)->DrawPoint(arg2,arg3);
36291 wxPyEndAllowThreads(__tstate);
36292 if (PyErr_Occurred()) SWIG_fail;
36293 }
36294 resultobj = SWIG_Py_Void();
36295 return resultobj;
36296 fail:
36297 return NULL;
36298 }
36299
36300
36301 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36302 PyObject *resultobj = 0;
36303 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36304 wxPoint *arg2 = 0 ;
36305 void *argp1 = 0 ;
36306 int res1 = 0 ;
36307 wxPoint temp2 ;
36308 PyObject * obj0 = 0 ;
36309 PyObject * obj1 = 0 ;
36310 char * kwnames[] = {
36311 (char *) "self",(char *) "pt", NULL
36312 };
36313
36314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36316 if (!SWIG_IsOK(res1)) {
36317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36318 }
36319 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36320 {
36321 arg2 = &temp2;
36322 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36323 }
36324 {
36325 PyThreadState* __tstate = wxPyBeginAllowThreads();
36326 (arg1)->DrawPoint((wxPoint const &)*arg2);
36327 wxPyEndAllowThreads(__tstate);
36328 if (PyErr_Occurred()) SWIG_fail;
36329 }
36330 resultobj = SWIG_Py_Void();
36331 return resultobj;
36332 fail:
36333 return NULL;
36334 }
36335
36336
36337 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36338 PyObject *resultobj = 0;
36339 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36340 int arg2 ;
36341 int arg3 ;
36342 int arg4 ;
36343 int arg5 ;
36344 void *argp1 = 0 ;
36345 int res1 = 0 ;
36346 int val2 ;
36347 int ecode2 = 0 ;
36348 int val3 ;
36349 int ecode3 = 0 ;
36350 int val4 ;
36351 int ecode4 = 0 ;
36352 int val5 ;
36353 int ecode5 = 0 ;
36354 PyObject * obj0 = 0 ;
36355 PyObject * obj1 = 0 ;
36356 PyObject * obj2 = 0 ;
36357 PyObject * obj3 = 0 ;
36358 PyObject * obj4 = 0 ;
36359 char * kwnames[] = {
36360 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36361 };
36362
36363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36365 if (!SWIG_IsOK(res1)) {
36366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36367 }
36368 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36369 ecode2 = SWIG_AsVal_int(obj1, &val2);
36370 if (!SWIG_IsOK(ecode2)) {
36371 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
36372 }
36373 arg2 = static_cast< int >(val2);
36374 ecode3 = SWIG_AsVal_int(obj2, &val3);
36375 if (!SWIG_IsOK(ecode3)) {
36376 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
36377 }
36378 arg3 = static_cast< int >(val3);
36379 ecode4 = SWIG_AsVal_int(obj3, &val4);
36380 if (!SWIG_IsOK(ecode4)) {
36381 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
36382 }
36383 arg4 = static_cast< int >(val4);
36384 ecode5 = SWIG_AsVal_int(obj4, &val5);
36385 if (!SWIG_IsOK(ecode5)) {
36386 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
36387 }
36388 arg5 = static_cast< int >(val5);
36389 {
36390 PyThreadState* __tstate = wxPyBeginAllowThreads();
36391 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
36392 wxPyEndAllowThreads(__tstate);
36393 if (PyErr_Occurred()) SWIG_fail;
36394 }
36395 resultobj = SWIG_Py_Void();
36396 return resultobj;
36397 fail:
36398 return NULL;
36399 }
36400
36401
36402 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36403 PyObject *resultobj = 0;
36404 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36405 wxRect *arg2 = 0 ;
36406 void *argp1 = 0 ;
36407 int res1 = 0 ;
36408 wxRect temp2 ;
36409 PyObject * obj0 = 0 ;
36410 PyObject * obj1 = 0 ;
36411 char * kwnames[] = {
36412 (char *) "self",(char *) "rect", NULL
36413 };
36414
36415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
36416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36417 if (!SWIG_IsOK(res1)) {
36418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36419 }
36420 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36421 {
36422 arg2 = &temp2;
36423 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36424 }
36425 {
36426 PyThreadState* __tstate = wxPyBeginAllowThreads();
36427 (arg1)->DrawRectangle((wxRect const &)*arg2);
36428 wxPyEndAllowThreads(__tstate);
36429 if (PyErr_Occurred()) SWIG_fail;
36430 }
36431 resultobj = SWIG_Py_Void();
36432 return resultobj;
36433 fail:
36434 return NULL;
36435 }
36436
36437
36438 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36439 PyObject *resultobj = 0;
36440 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36441 wxPoint *arg2 = 0 ;
36442 wxSize *arg3 = 0 ;
36443 void *argp1 = 0 ;
36444 int res1 = 0 ;
36445 wxPoint temp2 ;
36446 wxSize temp3 ;
36447 PyObject * obj0 = 0 ;
36448 PyObject * obj1 = 0 ;
36449 PyObject * obj2 = 0 ;
36450 char * kwnames[] = {
36451 (char *) "self",(char *) "pt",(char *) "sz", NULL
36452 };
36453
36454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36456 if (!SWIG_IsOK(res1)) {
36457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36458 }
36459 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36460 {
36461 arg2 = &temp2;
36462 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36463 }
36464 {
36465 arg3 = &temp3;
36466 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36467 }
36468 {
36469 PyThreadState* __tstate = wxPyBeginAllowThreads();
36470 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
36471 wxPyEndAllowThreads(__tstate);
36472 if (PyErr_Occurred()) SWIG_fail;
36473 }
36474 resultobj = SWIG_Py_Void();
36475 return resultobj;
36476 fail:
36477 return NULL;
36478 }
36479
36480
36481 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36482 PyObject *resultobj = 0;
36483 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36484 int arg2 ;
36485 int arg3 ;
36486 int arg4 ;
36487 int arg5 ;
36488 double arg6 ;
36489 void *argp1 = 0 ;
36490 int res1 = 0 ;
36491 int val2 ;
36492 int ecode2 = 0 ;
36493 int val3 ;
36494 int ecode3 = 0 ;
36495 int val4 ;
36496 int ecode4 = 0 ;
36497 int val5 ;
36498 int ecode5 = 0 ;
36499 double val6 ;
36500 int ecode6 = 0 ;
36501 PyObject * obj0 = 0 ;
36502 PyObject * obj1 = 0 ;
36503 PyObject * obj2 = 0 ;
36504 PyObject * obj3 = 0 ;
36505 PyObject * obj4 = 0 ;
36506 PyObject * obj5 = 0 ;
36507 char * kwnames[] = {
36508 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
36509 };
36510
36511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36513 if (!SWIG_IsOK(res1)) {
36514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36515 }
36516 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36517 ecode2 = SWIG_AsVal_int(obj1, &val2);
36518 if (!SWIG_IsOK(ecode2)) {
36519 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
36520 }
36521 arg2 = static_cast< int >(val2);
36522 ecode3 = SWIG_AsVal_int(obj2, &val3);
36523 if (!SWIG_IsOK(ecode3)) {
36524 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
36525 }
36526 arg3 = static_cast< int >(val3);
36527 ecode4 = SWIG_AsVal_int(obj3, &val4);
36528 if (!SWIG_IsOK(ecode4)) {
36529 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
36530 }
36531 arg4 = static_cast< int >(val4);
36532 ecode5 = SWIG_AsVal_int(obj4, &val5);
36533 if (!SWIG_IsOK(ecode5)) {
36534 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
36535 }
36536 arg5 = static_cast< int >(val5);
36537 ecode6 = SWIG_AsVal_double(obj5, &val6);
36538 if (!SWIG_IsOK(ecode6)) {
36539 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
36540 }
36541 arg6 = static_cast< double >(val6);
36542 {
36543 PyThreadState* __tstate = wxPyBeginAllowThreads();
36544 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
36545 wxPyEndAllowThreads(__tstate);
36546 if (PyErr_Occurred()) SWIG_fail;
36547 }
36548 resultobj = SWIG_Py_Void();
36549 return resultobj;
36550 fail:
36551 return NULL;
36552 }
36553
36554
36555 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36556 PyObject *resultobj = 0;
36557 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36558 wxRect *arg2 = 0 ;
36559 double arg3 ;
36560 void *argp1 = 0 ;
36561 int res1 = 0 ;
36562 wxRect temp2 ;
36563 double val3 ;
36564 int ecode3 = 0 ;
36565 PyObject * obj0 = 0 ;
36566 PyObject * obj1 = 0 ;
36567 PyObject * obj2 = 0 ;
36568 char * kwnames[] = {
36569 (char *) "self",(char *) "r",(char *) "radius", NULL
36570 };
36571
36572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36574 if (!SWIG_IsOK(res1)) {
36575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36576 }
36577 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36578 {
36579 arg2 = &temp2;
36580 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36581 }
36582 ecode3 = SWIG_AsVal_double(obj2, &val3);
36583 if (!SWIG_IsOK(ecode3)) {
36584 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
36585 }
36586 arg3 = static_cast< double >(val3);
36587 {
36588 PyThreadState* __tstate = wxPyBeginAllowThreads();
36589 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
36590 wxPyEndAllowThreads(__tstate);
36591 if (PyErr_Occurred()) SWIG_fail;
36592 }
36593 resultobj = SWIG_Py_Void();
36594 return resultobj;
36595 fail:
36596 return NULL;
36597 }
36598
36599
36600 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36601 PyObject *resultobj = 0;
36602 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36603 wxPoint *arg2 = 0 ;
36604 wxSize *arg3 = 0 ;
36605 double arg4 ;
36606 void *argp1 = 0 ;
36607 int res1 = 0 ;
36608 wxPoint temp2 ;
36609 wxSize temp3 ;
36610 double val4 ;
36611 int ecode4 = 0 ;
36612 PyObject * obj0 = 0 ;
36613 PyObject * obj1 = 0 ;
36614 PyObject * obj2 = 0 ;
36615 PyObject * obj3 = 0 ;
36616 char * kwnames[] = {
36617 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
36618 };
36619
36620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36622 if (!SWIG_IsOK(res1)) {
36623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36624 }
36625 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36626 {
36627 arg2 = &temp2;
36628 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36629 }
36630 {
36631 arg3 = &temp3;
36632 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36633 }
36634 ecode4 = SWIG_AsVal_double(obj3, &val4);
36635 if (!SWIG_IsOK(ecode4)) {
36636 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
36637 }
36638 arg4 = static_cast< double >(val4);
36639 {
36640 PyThreadState* __tstate = wxPyBeginAllowThreads();
36641 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
36642 wxPyEndAllowThreads(__tstate);
36643 if (PyErr_Occurred()) SWIG_fail;
36644 }
36645 resultobj = SWIG_Py_Void();
36646 return resultobj;
36647 fail:
36648 return NULL;
36649 }
36650
36651
36652 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36653 PyObject *resultobj = 0;
36654 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36655 int arg2 ;
36656 int arg3 ;
36657 int arg4 ;
36658 void *argp1 = 0 ;
36659 int res1 = 0 ;
36660 int val2 ;
36661 int ecode2 = 0 ;
36662 int val3 ;
36663 int ecode3 = 0 ;
36664 int val4 ;
36665 int ecode4 = 0 ;
36666 PyObject * obj0 = 0 ;
36667 PyObject * obj1 = 0 ;
36668 PyObject * obj2 = 0 ;
36669 PyObject * obj3 = 0 ;
36670 char * kwnames[] = {
36671 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
36672 };
36673
36674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36676 if (!SWIG_IsOK(res1)) {
36677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36678 }
36679 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36680 ecode2 = SWIG_AsVal_int(obj1, &val2);
36681 if (!SWIG_IsOK(ecode2)) {
36682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
36683 }
36684 arg2 = static_cast< int >(val2);
36685 ecode3 = SWIG_AsVal_int(obj2, &val3);
36686 if (!SWIG_IsOK(ecode3)) {
36687 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
36688 }
36689 arg3 = static_cast< int >(val3);
36690 ecode4 = SWIG_AsVal_int(obj3, &val4);
36691 if (!SWIG_IsOK(ecode4)) {
36692 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
36693 }
36694 arg4 = static_cast< int >(val4);
36695 {
36696 PyThreadState* __tstate = wxPyBeginAllowThreads();
36697 (arg1)->DrawCircle(arg2,arg3,arg4);
36698 wxPyEndAllowThreads(__tstate);
36699 if (PyErr_Occurred()) SWIG_fail;
36700 }
36701 resultobj = SWIG_Py_Void();
36702 return resultobj;
36703 fail:
36704 return NULL;
36705 }
36706
36707
36708 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36709 PyObject *resultobj = 0;
36710 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36711 wxPoint *arg2 = 0 ;
36712 int arg3 ;
36713 void *argp1 = 0 ;
36714 int res1 = 0 ;
36715 wxPoint temp2 ;
36716 int val3 ;
36717 int ecode3 = 0 ;
36718 PyObject * obj0 = 0 ;
36719 PyObject * obj1 = 0 ;
36720 PyObject * obj2 = 0 ;
36721 char * kwnames[] = {
36722 (char *) "self",(char *) "pt",(char *) "radius", NULL
36723 };
36724
36725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36727 if (!SWIG_IsOK(res1)) {
36728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36729 }
36730 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36731 {
36732 arg2 = &temp2;
36733 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36734 }
36735 ecode3 = SWIG_AsVal_int(obj2, &val3);
36736 if (!SWIG_IsOK(ecode3)) {
36737 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
36738 }
36739 arg3 = static_cast< int >(val3);
36740 {
36741 PyThreadState* __tstate = wxPyBeginAllowThreads();
36742 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
36743 wxPyEndAllowThreads(__tstate);
36744 if (PyErr_Occurred()) SWIG_fail;
36745 }
36746 resultobj = SWIG_Py_Void();
36747 return resultobj;
36748 fail:
36749 return NULL;
36750 }
36751
36752
36753 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36754 PyObject *resultobj = 0;
36755 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36756 int arg2 ;
36757 int arg3 ;
36758 int arg4 ;
36759 int arg5 ;
36760 void *argp1 = 0 ;
36761 int res1 = 0 ;
36762 int val2 ;
36763 int ecode2 = 0 ;
36764 int val3 ;
36765 int ecode3 = 0 ;
36766 int val4 ;
36767 int ecode4 = 0 ;
36768 int val5 ;
36769 int ecode5 = 0 ;
36770 PyObject * obj0 = 0 ;
36771 PyObject * obj1 = 0 ;
36772 PyObject * obj2 = 0 ;
36773 PyObject * obj3 = 0 ;
36774 PyObject * obj4 = 0 ;
36775 char * kwnames[] = {
36776 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36777 };
36778
36779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36781 if (!SWIG_IsOK(res1)) {
36782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36783 }
36784 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36785 ecode2 = SWIG_AsVal_int(obj1, &val2);
36786 if (!SWIG_IsOK(ecode2)) {
36787 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
36788 }
36789 arg2 = static_cast< int >(val2);
36790 ecode3 = SWIG_AsVal_int(obj2, &val3);
36791 if (!SWIG_IsOK(ecode3)) {
36792 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
36793 }
36794 arg3 = static_cast< int >(val3);
36795 ecode4 = SWIG_AsVal_int(obj3, &val4);
36796 if (!SWIG_IsOK(ecode4)) {
36797 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
36798 }
36799 arg4 = static_cast< int >(val4);
36800 ecode5 = SWIG_AsVal_int(obj4, &val5);
36801 if (!SWIG_IsOK(ecode5)) {
36802 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
36803 }
36804 arg5 = static_cast< int >(val5);
36805 {
36806 PyThreadState* __tstate = wxPyBeginAllowThreads();
36807 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
36808 wxPyEndAllowThreads(__tstate);
36809 if (PyErr_Occurred()) SWIG_fail;
36810 }
36811 resultobj = SWIG_Py_Void();
36812 return resultobj;
36813 fail:
36814 return NULL;
36815 }
36816
36817
36818 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36819 PyObject *resultobj = 0;
36820 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36821 wxRect *arg2 = 0 ;
36822 void *argp1 = 0 ;
36823 int res1 = 0 ;
36824 wxRect temp2 ;
36825 PyObject * obj0 = 0 ;
36826 PyObject * obj1 = 0 ;
36827 char * kwnames[] = {
36828 (char *) "self",(char *) "rect", NULL
36829 };
36830
36831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
36832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36833 if (!SWIG_IsOK(res1)) {
36834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36835 }
36836 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36837 {
36838 arg2 = &temp2;
36839 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36840 }
36841 {
36842 PyThreadState* __tstate = wxPyBeginAllowThreads();
36843 (arg1)->DrawEllipse((wxRect const &)*arg2);
36844 wxPyEndAllowThreads(__tstate);
36845 if (PyErr_Occurred()) SWIG_fail;
36846 }
36847 resultobj = SWIG_Py_Void();
36848 return resultobj;
36849 fail:
36850 return NULL;
36851 }
36852
36853
36854 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36855 PyObject *resultobj = 0;
36856 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36857 wxPoint *arg2 = 0 ;
36858 wxSize *arg3 = 0 ;
36859 void *argp1 = 0 ;
36860 int res1 = 0 ;
36861 wxPoint temp2 ;
36862 wxSize temp3 ;
36863 PyObject * obj0 = 0 ;
36864 PyObject * obj1 = 0 ;
36865 PyObject * obj2 = 0 ;
36866 char * kwnames[] = {
36867 (char *) "self",(char *) "pt",(char *) "sz", NULL
36868 };
36869
36870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36872 if (!SWIG_IsOK(res1)) {
36873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36874 }
36875 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36876 {
36877 arg2 = &temp2;
36878 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36879 }
36880 {
36881 arg3 = &temp3;
36882 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36883 }
36884 {
36885 PyThreadState* __tstate = wxPyBeginAllowThreads();
36886 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
36887 wxPyEndAllowThreads(__tstate);
36888 if (PyErr_Occurred()) SWIG_fail;
36889 }
36890 resultobj = SWIG_Py_Void();
36891 return resultobj;
36892 fail:
36893 return NULL;
36894 }
36895
36896
36897 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36898 PyObject *resultobj = 0;
36899 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36900 wxIcon *arg2 = 0 ;
36901 int arg3 ;
36902 int arg4 ;
36903 void *argp1 = 0 ;
36904 int res1 = 0 ;
36905 void *argp2 = 0 ;
36906 int res2 = 0 ;
36907 int val3 ;
36908 int ecode3 = 0 ;
36909 int val4 ;
36910 int ecode4 = 0 ;
36911 PyObject * obj0 = 0 ;
36912 PyObject * obj1 = 0 ;
36913 PyObject * obj2 = 0 ;
36914 PyObject * obj3 = 0 ;
36915 char * kwnames[] = {
36916 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
36917 };
36918
36919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36921 if (!SWIG_IsOK(res1)) {
36922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36923 }
36924 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36925 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
36926 if (!SWIG_IsOK(res2)) {
36927 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
36928 }
36929 if (!argp2) {
36930 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
36931 }
36932 arg2 = reinterpret_cast< wxIcon * >(argp2);
36933 ecode3 = SWIG_AsVal_int(obj2, &val3);
36934 if (!SWIG_IsOK(ecode3)) {
36935 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
36936 }
36937 arg3 = static_cast< int >(val3);
36938 ecode4 = SWIG_AsVal_int(obj3, &val4);
36939 if (!SWIG_IsOK(ecode4)) {
36940 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
36941 }
36942 arg4 = static_cast< int >(val4);
36943 {
36944 PyThreadState* __tstate = wxPyBeginAllowThreads();
36945 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
36946 wxPyEndAllowThreads(__tstate);
36947 if (PyErr_Occurred()) SWIG_fail;
36948 }
36949 resultobj = SWIG_Py_Void();
36950 return resultobj;
36951 fail:
36952 return NULL;
36953 }
36954
36955
36956 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36957 PyObject *resultobj = 0;
36958 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36959 wxIcon *arg2 = 0 ;
36960 wxPoint *arg3 = 0 ;
36961 void *argp1 = 0 ;
36962 int res1 = 0 ;
36963 void *argp2 = 0 ;
36964 int res2 = 0 ;
36965 wxPoint temp3 ;
36966 PyObject * obj0 = 0 ;
36967 PyObject * obj1 = 0 ;
36968 PyObject * obj2 = 0 ;
36969 char * kwnames[] = {
36970 (char *) "self",(char *) "icon",(char *) "pt", NULL
36971 };
36972
36973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36975 if (!SWIG_IsOK(res1)) {
36976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36977 }
36978 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36979 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
36980 if (!SWIG_IsOK(res2)) {
36981 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
36982 }
36983 if (!argp2) {
36984 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
36985 }
36986 arg2 = reinterpret_cast< wxIcon * >(argp2);
36987 {
36988 arg3 = &temp3;
36989 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36990 }
36991 {
36992 PyThreadState* __tstate = wxPyBeginAllowThreads();
36993 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*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_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37005 PyObject *resultobj = 0;
37006 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37007 wxBitmap *arg2 = 0 ;
37008 int arg3 ;
37009 int arg4 ;
37010 bool arg5 = (bool) false ;
37011 void *argp1 = 0 ;
37012 int res1 = 0 ;
37013 void *argp2 = 0 ;
37014 int res2 = 0 ;
37015 int val3 ;
37016 int ecode3 = 0 ;
37017 int val4 ;
37018 int ecode4 = 0 ;
37019 bool 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 *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
37028 };
37029
37030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",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_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37034 }
37035 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37036 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37037 if (!SWIG_IsOK(res2)) {
37038 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37039 }
37040 if (!argp2) {
37041 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37042 }
37043 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37044 ecode3 = SWIG_AsVal_int(obj2, &val3);
37045 if (!SWIG_IsOK(ecode3)) {
37046 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
37047 }
37048 arg3 = static_cast< int >(val3);
37049 ecode4 = SWIG_AsVal_int(obj3, &val4);
37050 if (!SWIG_IsOK(ecode4)) {
37051 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
37052 }
37053 arg4 = static_cast< int >(val4);
37054 if (obj4) {
37055 ecode5 = SWIG_AsVal_bool(obj4, &val5);
37056 if (!SWIG_IsOK(ecode5)) {
37057 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
37058 }
37059 arg5 = static_cast< bool >(val5);
37060 }
37061 {
37062 PyThreadState* __tstate = wxPyBeginAllowThreads();
37063 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
37064 wxPyEndAllowThreads(__tstate);
37065 if (PyErr_Occurred()) SWIG_fail;
37066 }
37067 resultobj = SWIG_Py_Void();
37068 return resultobj;
37069 fail:
37070 return NULL;
37071 }
37072
37073
37074 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37075 PyObject *resultobj = 0;
37076 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37077 wxBitmap *arg2 = 0 ;
37078 wxPoint *arg3 = 0 ;
37079 bool arg4 = (bool) false ;
37080 void *argp1 = 0 ;
37081 int res1 = 0 ;
37082 void *argp2 = 0 ;
37083 int res2 = 0 ;
37084 wxPoint temp3 ;
37085 bool val4 ;
37086 int ecode4 = 0 ;
37087 PyObject * obj0 = 0 ;
37088 PyObject * obj1 = 0 ;
37089 PyObject * obj2 = 0 ;
37090 PyObject * obj3 = 0 ;
37091 char * kwnames[] = {
37092 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
37093 };
37094
37095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37097 if (!SWIG_IsOK(res1)) {
37098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37099 }
37100 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37101 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37102 if (!SWIG_IsOK(res2)) {
37103 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37104 }
37105 if (!argp2) {
37106 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37107 }
37108 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37109 {
37110 arg3 = &temp3;
37111 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37112 }
37113 if (obj3) {
37114 ecode4 = SWIG_AsVal_bool(obj3, &val4);
37115 if (!SWIG_IsOK(ecode4)) {
37116 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
37117 }
37118 arg4 = static_cast< bool >(val4);
37119 }
37120 {
37121 PyThreadState* __tstate = wxPyBeginAllowThreads();
37122 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
37123 wxPyEndAllowThreads(__tstate);
37124 if (PyErr_Occurred()) SWIG_fail;
37125 }
37126 resultobj = SWIG_Py_Void();
37127 return resultobj;
37128 fail:
37129 return NULL;
37130 }
37131
37132
37133 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37134 PyObject *resultobj = 0;
37135 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37136 wxString *arg2 = 0 ;
37137 int arg3 ;
37138 int arg4 ;
37139 void *argp1 = 0 ;
37140 int res1 = 0 ;
37141 bool temp2 = false ;
37142 int val3 ;
37143 int ecode3 = 0 ;
37144 int val4 ;
37145 int ecode4 = 0 ;
37146 PyObject * obj0 = 0 ;
37147 PyObject * obj1 = 0 ;
37148 PyObject * obj2 = 0 ;
37149 PyObject * obj3 = 0 ;
37150 char * kwnames[] = {
37151 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
37152 };
37153
37154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37156 if (!SWIG_IsOK(res1)) {
37157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37158 }
37159 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37160 {
37161 arg2 = wxString_in_helper(obj1);
37162 if (arg2 == NULL) SWIG_fail;
37163 temp2 = true;
37164 }
37165 ecode3 = SWIG_AsVal_int(obj2, &val3);
37166 if (!SWIG_IsOK(ecode3)) {
37167 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
37168 }
37169 arg3 = static_cast< int >(val3);
37170 ecode4 = SWIG_AsVal_int(obj3, &val4);
37171 if (!SWIG_IsOK(ecode4)) {
37172 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
37173 }
37174 arg4 = static_cast< int >(val4);
37175 {
37176 PyThreadState* __tstate = wxPyBeginAllowThreads();
37177 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
37178 wxPyEndAllowThreads(__tstate);
37179 if (PyErr_Occurred()) SWIG_fail;
37180 }
37181 resultobj = SWIG_Py_Void();
37182 {
37183 if (temp2)
37184 delete arg2;
37185 }
37186 return resultobj;
37187 fail:
37188 {
37189 if (temp2)
37190 delete arg2;
37191 }
37192 return NULL;
37193 }
37194
37195
37196 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37197 PyObject *resultobj = 0;
37198 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37199 wxString *arg2 = 0 ;
37200 wxPoint *arg3 = 0 ;
37201 void *argp1 = 0 ;
37202 int res1 = 0 ;
37203 bool temp2 = false ;
37204 wxPoint temp3 ;
37205 PyObject * obj0 = 0 ;
37206 PyObject * obj1 = 0 ;
37207 PyObject * obj2 = 0 ;
37208 char * kwnames[] = {
37209 (char *) "self",(char *) "text",(char *) "pt", NULL
37210 };
37211
37212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37214 if (!SWIG_IsOK(res1)) {
37215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37216 }
37217 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37218 {
37219 arg2 = wxString_in_helper(obj1);
37220 if (arg2 == NULL) SWIG_fail;
37221 temp2 = true;
37222 }
37223 {
37224 arg3 = &temp3;
37225 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37226 }
37227 {
37228 PyThreadState* __tstate = wxPyBeginAllowThreads();
37229 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
37230 wxPyEndAllowThreads(__tstate);
37231 if (PyErr_Occurred()) SWIG_fail;
37232 }
37233 resultobj = SWIG_Py_Void();
37234 {
37235 if (temp2)
37236 delete arg2;
37237 }
37238 return resultobj;
37239 fail:
37240 {
37241 if (temp2)
37242 delete arg2;
37243 }
37244 return NULL;
37245 }
37246
37247
37248 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37249 PyObject *resultobj = 0;
37250 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37251 wxString *arg2 = 0 ;
37252 int arg3 ;
37253 int arg4 ;
37254 double arg5 ;
37255 void *argp1 = 0 ;
37256 int res1 = 0 ;
37257 bool temp2 = false ;
37258 int val3 ;
37259 int ecode3 = 0 ;
37260 int val4 ;
37261 int ecode4 = 0 ;
37262 double val5 ;
37263 int ecode5 = 0 ;
37264 PyObject * obj0 = 0 ;
37265 PyObject * obj1 = 0 ;
37266 PyObject * obj2 = 0 ;
37267 PyObject * obj3 = 0 ;
37268 PyObject * obj4 = 0 ;
37269 char * kwnames[] = {
37270 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
37271 };
37272
37273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37275 if (!SWIG_IsOK(res1)) {
37276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37277 }
37278 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37279 {
37280 arg2 = wxString_in_helper(obj1);
37281 if (arg2 == NULL) SWIG_fail;
37282 temp2 = true;
37283 }
37284 ecode3 = SWIG_AsVal_int(obj2, &val3);
37285 if (!SWIG_IsOK(ecode3)) {
37286 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
37287 }
37288 arg3 = static_cast< int >(val3);
37289 ecode4 = SWIG_AsVal_int(obj3, &val4);
37290 if (!SWIG_IsOK(ecode4)) {
37291 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
37292 }
37293 arg4 = static_cast< int >(val4);
37294 ecode5 = SWIG_AsVal_double(obj4, &val5);
37295 if (!SWIG_IsOK(ecode5)) {
37296 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
37297 }
37298 arg5 = static_cast< double >(val5);
37299 {
37300 PyThreadState* __tstate = wxPyBeginAllowThreads();
37301 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
37302 wxPyEndAllowThreads(__tstate);
37303 if (PyErr_Occurred()) SWIG_fail;
37304 }
37305 resultobj = SWIG_Py_Void();
37306 {
37307 if (temp2)
37308 delete arg2;
37309 }
37310 return resultobj;
37311 fail:
37312 {
37313 if (temp2)
37314 delete arg2;
37315 }
37316 return NULL;
37317 }
37318
37319
37320 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37321 PyObject *resultobj = 0;
37322 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37323 wxString *arg2 = 0 ;
37324 wxPoint *arg3 = 0 ;
37325 double arg4 ;
37326 void *argp1 = 0 ;
37327 int res1 = 0 ;
37328 bool temp2 = false ;
37329 wxPoint temp3 ;
37330 double val4 ;
37331 int ecode4 = 0 ;
37332 PyObject * obj0 = 0 ;
37333 PyObject * obj1 = 0 ;
37334 PyObject * obj2 = 0 ;
37335 PyObject * obj3 = 0 ;
37336 char * kwnames[] = {
37337 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
37338 };
37339
37340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37342 if (!SWIG_IsOK(res1)) {
37343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37344 }
37345 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37346 {
37347 arg2 = wxString_in_helper(obj1);
37348 if (arg2 == NULL) SWIG_fail;
37349 temp2 = true;
37350 }
37351 {
37352 arg3 = &temp3;
37353 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37354 }
37355 ecode4 = SWIG_AsVal_double(obj3, &val4);
37356 if (!SWIG_IsOK(ecode4)) {
37357 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
37358 }
37359 arg4 = static_cast< double >(val4);
37360 {
37361 PyThreadState* __tstate = wxPyBeginAllowThreads();
37362 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
37363 wxPyEndAllowThreads(__tstate);
37364 if (PyErr_Occurred()) SWIG_fail;
37365 }
37366 resultobj = SWIG_Py_Void();
37367 {
37368 if (temp2)
37369 delete arg2;
37370 }
37371 return resultobj;
37372 fail:
37373 {
37374 if (temp2)
37375 delete arg2;
37376 }
37377 return NULL;
37378 }
37379
37380
37381 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37382 PyObject *resultobj = 0;
37383 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37384 int arg2 ;
37385 wxPoint *arg3 = (wxPoint *) 0 ;
37386 int arg4 = (int) 0 ;
37387 int arg5 = (int) 0 ;
37388 void *argp1 = 0 ;
37389 int res1 = 0 ;
37390 int val4 ;
37391 int ecode4 = 0 ;
37392 int val5 ;
37393 int ecode5 = 0 ;
37394 PyObject * obj0 = 0 ;
37395 PyObject * obj1 = 0 ;
37396 PyObject * obj2 = 0 ;
37397 PyObject * obj3 = 0 ;
37398 char * kwnames[] = {
37399 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
37400 };
37401
37402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37404 if (!SWIG_IsOK(res1)) {
37405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37406 }
37407 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37408 {
37409 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37410 if (arg3 == NULL) SWIG_fail;
37411 }
37412 if (obj2) {
37413 ecode4 = SWIG_AsVal_int(obj2, &val4);
37414 if (!SWIG_IsOK(ecode4)) {
37415 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
37416 }
37417 arg4 = static_cast< int >(val4);
37418 }
37419 if (obj3) {
37420 ecode5 = SWIG_AsVal_int(obj3, &val5);
37421 if (!SWIG_IsOK(ecode5)) {
37422 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
37423 }
37424 arg5 = static_cast< int >(val5);
37425 }
37426 {
37427 PyThreadState* __tstate = wxPyBeginAllowThreads();
37428 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
37429 wxPyEndAllowThreads(__tstate);
37430 if (PyErr_Occurred()) SWIG_fail;
37431 }
37432 resultobj = SWIG_Py_Void();
37433 {
37434 if (arg3) delete [] arg3;
37435 }
37436 return resultobj;
37437 fail:
37438 {
37439 if (arg3) delete [] arg3;
37440 }
37441 return NULL;
37442 }
37443
37444
37445 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37446 PyObject *resultobj = 0;
37447 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37448 int arg2 ;
37449 wxPoint *arg3 = (wxPoint *) 0 ;
37450 int arg4 = (int) 0 ;
37451 int arg5 = (int) 0 ;
37452 int arg6 = (int) wxODDEVEN_RULE ;
37453 void *argp1 = 0 ;
37454 int res1 = 0 ;
37455 int val4 ;
37456 int ecode4 = 0 ;
37457 int val5 ;
37458 int ecode5 = 0 ;
37459 int val6 ;
37460 int ecode6 = 0 ;
37461 PyObject * obj0 = 0 ;
37462 PyObject * obj1 = 0 ;
37463 PyObject * obj2 = 0 ;
37464 PyObject * obj3 = 0 ;
37465 PyObject * obj4 = 0 ;
37466 char * kwnames[] = {
37467 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
37468 };
37469
37470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37472 if (!SWIG_IsOK(res1)) {
37473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37474 }
37475 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37476 {
37477 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37478 if (arg3 == NULL) SWIG_fail;
37479 }
37480 if (obj2) {
37481 ecode4 = SWIG_AsVal_int(obj2, &val4);
37482 if (!SWIG_IsOK(ecode4)) {
37483 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
37484 }
37485 arg4 = static_cast< int >(val4);
37486 }
37487 if (obj3) {
37488 ecode5 = SWIG_AsVal_int(obj3, &val5);
37489 if (!SWIG_IsOK(ecode5)) {
37490 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
37491 }
37492 arg5 = static_cast< int >(val5);
37493 }
37494 if (obj4) {
37495 ecode6 = SWIG_AsVal_int(obj4, &val6);
37496 if (!SWIG_IsOK(ecode6)) {
37497 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
37498 }
37499 arg6 = static_cast< int >(val6);
37500 }
37501 {
37502 PyThreadState* __tstate = wxPyBeginAllowThreads();
37503 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
37504 wxPyEndAllowThreads(__tstate);
37505 if (PyErr_Occurred()) SWIG_fail;
37506 }
37507 resultobj = SWIG_Py_Void();
37508 {
37509 if (arg3) delete [] arg3;
37510 }
37511 return resultobj;
37512 fail:
37513 {
37514 if (arg3) delete [] arg3;
37515 }
37516 return NULL;
37517 }
37518
37519
37520 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37521 PyObject *resultobj = 0;
37522 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37523 wxString *arg2 = 0 ;
37524 wxRect *arg3 = 0 ;
37525 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37526 int arg5 = (int) -1 ;
37527 void *argp1 = 0 ;
37528 int res1 = 0 ;
37529 bool temp2 = false ;
37530 wxRect temp3 ;
37531 int val4 ;
37532 int ecode4 = 0 ;
37533 int val5 ;
37534 int ecode5 = 0 ;
37535 PyObject * obj0 = 0 ;
37536 PyObject * obj1 = 0 ;
37537 PyObject * obj2 = 0 ;
37538 PyObject * obj3 = 0 ;
37539 PyObject * obj4 = 0 ;
37540 char * kwnames[] = {
37541 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37542 };
37543
37544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37546 if (!SWIG_IsOK(res1)) {
37547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37548 }
37549 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37550 {
37551 arg2 = wxString_in_helper(obj1);
37552 if (arg2 == NULL) SWIG_fail;
37553 temp2 = true;
37554 }
37555 {
37556 arg3 = &temp3;
37557 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
37558 }
37559 if (obj3) {
37560 ecode4 = SWIG_AsVal_int(obj3, &val4);
37561 if (!SWIG_IsOK(ecode4)) {
37562 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
37563 }
37564 arg4 = static_cast< int >(val4);
37565 }
37566 if (obj4) {
37567 ecode5 = SWIG_AsVal_int(obj4, &val5);
37568 if (!SWIG_IsOK(ecode5)) {
37569 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
37570 }
37571 arg5 = static_cast< int >(val5);
37572 }
37573 {
37574 PyThreadState* __tstate = wxPyBeginAllowThreads();
37575 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
37576 wxPyEndAllowThreads(__tstate);
37577 if (PyErr_Occurred()) SWIG_fail;
37578 }
37579 resultobj = SWIG_Py_Void();
37580 {
37581 if (temp2)
37582 delete arg2;
37583 }
37584 return resultobj;
37585 fail:
37586 {
37587 if (temp2)
37588 delete arg2;
37589 }
37590 return NULL;
37591 }
37592
37593
37594 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37595 PyObject *resultobj = 0;
37596 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37597 wxString *arg2 = 0 ;
37598 wxBitmap *arg3 = 0 ;
37599 wxRect *arg4 = 0 ;
37600 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37601 int arg6 = (int) -1 ;
37602 void *argp1 = 0 ;
37603 int res1 = 0 ;
37604 bool temp2 = false ;
37605 void *argp3 = 0 ;
37606 int res3 = 0 ;
37607 wxRect temp4 ;
37608 int val5 ;
37609 int ecode5 = 0 ;
37610 int val6 ;
37611 int ecode6 = 0 ;
37612 PyObject * obj0 = 0 ;
37613 PyObject * obj1 = 0 ;
37614 PyObject * obj2 = 0 ;
37615 PyObject * obj3 = 0 ;
37616 PyObject * obj4 = 0 ;
37617 PyObject * obj5 = 0 ;
37618 char * kwnames[] = {
37619 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37620 };
37621
37622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37624 if (!SWIG_IsOK(res1)) {
37625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37626 }
37627 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37628 {
37629 arg2 = wxString_in_helper(obj1);
37630 if (arg2 == NULL) SWIG_fail;
37631 temp2 = true;
37632 }
37633 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
37634 if (!SWIG_IsOK(res3)) {
37635 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
37636 }
37637 if (!argp3) {
37638 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
37639 }
37640 arg3 = reinterpret_cast< wxBitmap * >(argp3);
37641 {
37642 arg4 = &temp4;
37643 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
37644 }
37645 if (obj4) {
37646 ecode5 = SWIG_AsVal_int(obj4, &val5);
37647 if (!SWIG_IsOK(ecode5)) {
37648 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
37649 }
37650 arg5 = static_cast< int >(val5);
37651 }
37652 if (obj5) {
37653 ecode6 = SWIG_AsVal_int(obj5, &val6);
37654 if (!SWIG_IsOK(ecode6)) {
37655 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
37656 }
37657 arg6 = static_cast< int >(val6);
37658 }
37659 {
37660 PyThreadState* __tstate = wxPyBeginAllowThreads();
37661 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
37662 wxPyEndAllowThreads(__tstate);
37663 if (PyErr_Occurred()) SWIG_fail;
37664 }
37665 resultobj = SWIG_Py_Void();
37666 {
37667 if (temp2)
37668 delete arg2;
37669 }
37670 return resultobj;
37671 fail:
37672 {
37673 if (temp2)
37674 delete arg2;
37675 }
37676 return NULL;
37677 }
37678
37679
37680 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37681 PyObject *resultobj = 0;
37682 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37683 int arg2 ;
37684 wxPoint *arg3 = (wxPoint *) 0 ;
37685 void *argp1 = 0 ;
37686 int res1 = 0 ;
37687 PyObject * obj0 = 0 ;
37688 PyObject * obj1 = 0 ;
37689 char * kwnames[] = {
37690 (char *) "self",(char *) "points", NULL
37691 };
37692
37693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
37694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37695 if (!SWIG_IsOK(res1)) {
37696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37697 }
37698 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37699 {
37700 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37701 if (arg3 == NULL) SWIG_fail;
37702 }
37703 {
37704 PyThreadState* __tstate = wxPyBeginAllowThreads();
37705 (arg1)->DrawSpline(arg2,arg3);
37706 wxPyEndAllowThreads(__tstate);
37707 if (PyErr_Occurred()) SWIG_fail;
37708 }
37709 resultobj = SWIG_Py_Void();
37710 {
37711 if (arg3) delete [] arg3;
37712 }
37713 return resultobj;
37714 fail:
37715 {
37716 if (arg3) delete [] arg3;
37717 }
37718 return NULL;
37719 }
37720
37721
37722 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37723 PyObject *resultobj = 0;
37724 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37725 void *argp1 = 0 ;
37726 int res1 = 0 ;
37727 PyObject *swig_obj[1] ;
37728
37729 if (!args) SWIG_fail;
37730 swig_obj[0] = args;
37731 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37732 if (!SWIG_IsOK(res1)) {
37733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37734 }
37735 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37736 {
37737 PyThreadState* __tstate = wxPyBeginAllowThreads();
37738 (arg1)->Clear();
37739 wxPyEndAllowThreads(__tstate);
37740 if (PyErr_Occurred()) SWIG_fail;
37741 }
37742 resultobj = SWIG_Py_Void();
37743 return resultobj;
37744 fail:
37745 return NULL;
37746 }
37747
37748
37749 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37750 PyObject *resultobj = 0;
37751 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37752 wxFont *arg2 = 0 ;
37753 void *argp1 = 0 ;
37754 int res1 = 0 ;
37755 void *argp2 = 0 ;
37756 int res2 = 0 ;
37757 PyObject * obj0 = 0 ;
37758 PyObject * obj1 = 0 ;
37759 char * kwnames[] = {
37760 (char *) "self",(char *) "font", NULL
37761 };
37762
37763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
37764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37765 if (!SWIG_IsOK(res1)) {
37766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37767 }
37768 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37769 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
37770 if (!SWIG_IsOK(res2)) {
37771 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
37772 }
37773 if (!argp2) {
37774 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
37775 }
37776 arg2 = reinterpret_cast< wxFont * >(argp2);
37777 {
37778 PyThreadState* __tstate = wxPyBeginAllowThreads();
37779 (arg1)->SetFont((wxFont const &)*arg2);
37780 wxPyEndAllowThreads(__tstate);
37781 if (PyErr_Occurred()) SWIG_fail;
37782 }
37783 resultobj = SWIG_Py_Void();
37784 return resultobj;
37785 fail:
37786 return NULL;
37787 }
37788
37789
37790 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37791 PyObject *resultobj = 0;
37792 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37793 wxPen *arg2 = 0 ;
37794 void *argp1 = 0 ;
37795 int res1 = 0 ;
37796 void *argp2 = 0 ;
37797 int res2 = 0 ;
37798 PyObject * obj0 = 0 ;
37799 PyObject * obj1 = 0 ;
37800 char * kwnames[] = {
37801 (char *) "self",(char *) "pen", NULL
37802 };
37803
37804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
37805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37806 if (!SWIG_IsOK(res1)) {
37807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37808 }
37809 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37810 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
37811 if (!SWIG_IsOK(res2)) {
37812 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
37813 }
37814 if (!argp2) {
37815 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
37816 }
37817 arg2 = reinterpret_cast< wxPen * >(argp2);
37818 {
37819 PyThreadState* __tstate = wxPyBeginAllowThreads();
37820 (arg1)->SetPen((wxPen const &)*arg2);
37821 wxPyEndAllowThreads(__tstate);
37822 if (PyErr_Occurred()) SWIG_fail;
37823 }
37824 resultobj = SWIG_Py_Void();
37825 return resultobj;
37826 fail:
37827 return NULL;
37828 }
37829
37830
37831 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37832 PyObject *resultobj = 0;
37833 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37834 wxBrush *arg2 = 0 ;
37835 void *argp1 = 0 ;
37836 int res1 = 0 ;
37837 void *argp2 = 0 ;
37838 int res2 = 0 ;
37839 PyObject * obj0 = 0 ;
37840 PyObject * obj1 = 0 ;
37841 char * kwnames[] = {
37842 (char *) "self",(char *) "brush", NULL
37843 };
37844
37845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
37846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37847 if (!SWIG_IsOK(res1)) {
37848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37849 }
37850 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37851 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
37852 if (!SWIG_IsOK(res2)) {
37853 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
37854 }
37855 if (!argp2) {
37856 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
37857 }
37858 arg2 = reinterpret_cast< wxBrush * >(argp2);
37859 {
37860 PyThreadState* __tstate = wxPyBeginAllowThreads();
37861 (arg1)->SetBrush((wxBrush const &)*arg2);
37862 wxPyEndAllowThreads(__tstate);
37863 if (PyErr_Occurred()) SWIG_fail;
37864 }
37865 resultobj = SWIG_Py_Void();
37866 return resultobj;
37867 fail:
37868 return NULL;
37869 }
37870
37871
37872 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37873 PyObject *resultobj = 0;
37874 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37875 wxBrush *arg2 = 0 ;
37876 void *argp1 = 0 ;
37877 int res1 = 0 ;
37878 void *argp2 = 0 ;
37879 int res2 = 0 ;
37880 PyObject * obj0 = 0 ;
37881 PyObject * obj1 = 0 ;
37882 char * kwnames[] = {
37883 (char *) "self",(char *) "brush", NULL
37884 };
37885
37886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
37887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37888 if (!SWIG_IsOK(res1)) {
37889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37890 }
37891 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37892 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
37893 if (!SWIG_IsOK(res2)) {
37894 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
37895 }
37896 if (!argp2) {
37897 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
37898 }
37899 arg2 = reinterpret_cast< wxBrush * >(argp2);
37900 {
37901 PyThreadState* __tstate = wxPyBeginAllowThreads();
37902 (arg1)->SetBackground((wxBrush const &)*arg2);
37903 wxPyEndAllowThreads(__tstate);
37904 if (PyErr_Occurred()) SWIG_fail;
37905 }
37906 resultobj = SWIG_Py_Void();
37907 return resultobj;
37908 fail:
37909 return NULL;
37910 }
37911
37912
37913 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37914 PyObject *resultobj = 0;
37915 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37916 int arg2 ;
37917 void *argp1 = 0 ;
37918 int res1 = 0 ;
37919 int val2 ;
37920 int ecode2 = 0 ;
37921 PyObject * obj0 = 0 ;
37922 PyObject * obj1 = 0 ;
37923 char * kwnames[] = {
37924 (char *) "self",(char *) "mode", NULL
37925 };
37926
37927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
37928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37929 if (!SWIG_IsOK(res1)) {
37930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37931 }
37932 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37933 ecode2 = SWIG_AsVal_int(obj1, &val2);
37934 if (!SWIG_IsOK(ecode2)) {
37935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
37936 }
37937 arg2 = static_cast< int >(val2);
37938 {
37939 PyThreadState* __tstate = wxPyBeginAllowThreads();
37940 (arg1)->SetBackgroundMode(arg2);
37941 wxPyEndAllowThreads(__tstate);
37942 if (PyErr_Occurred()) SWIG_fail;
37943 }
37944 resultobj = SWIG_Py_Void();
37945 return resultobj;
37946 fail:
37947 return NULL;
37948 }
37949
37950
37951 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37952 PyObject *resultobj = 0;
37953 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37954 wxPalette *arg2 = 0 ;
37955 void *argp1 = 0 ;
37956 int res1 = 0 ;
37957 void *argp2 = 0 ;
37958 int res2 = 0 ;
37959 PyObject * obj0 = 0 ;
37960 PyObject * obj1 = 0 ;
37961 char * kwnames[] = {
37962 (char *) "self",(char *) "palette", NULL
37963 };
37964
37965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
37966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37967 if (!SWIG_IsOK(res1)) {
37968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37969 }
37970 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37971 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
37972 if (!SWIG_IsOK(res2)) {
37973 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
37974 }
37975 if (!argp2) {
37976 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
37977 }
37978 arg2 = reinterpret_cast< wxPalette * >(argp2);
37979 {
37980 PyThreadState* __tstate = wxPyBeginAllowThreads();
37981 (arg1)->SetPalette((wxPalette const &)*arg2);
37982 wxPyEndAllowThreads(__tstate);
37983 if (PyErr_Occurred()) SWIG_fail;
37984 }
37985 resultobj = SWIG_Py_Void();
37986 return resultobj;
37987 fail:
37988 return NULL;
37989 }
37990
37991
37992 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37993 PyObject *resultobj = 0;
37994 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37995 wxColour *arg2 = 0 ;
37996 void *argp1 = 0 ;
37997 int res1 = 0 ;
37998 wxColour temp2 ;
37999 PyObject * obj0 = 0 ;
38000 PyObject * obj1 = 0 ;
38001 char * kwnames[] = {
38002 (char *) "self",(char *) "colour", NULL
38003 };
38004
38005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
38006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38007 if (!SWIG_IsOK(res1)) {
38008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38009 }
38010 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38011 {
38012 arg2 = &temp2;
38013 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38014 }
38015 {
38016 PyThreadState* __tstate = wxPyBeginAllowThreads();
38017 (arg1)->SetTextForeground((wxColour const &)*arg2);
38018 wxPyEndAllowThreads(__tstate);
38019 if (PyErr_Occurred()) SWIG_fail;
38020 }
38021 resultobj = SWIG_Py_Void();
38022 return resultobj;
38023 fail:
38024 return NULL;
38025 }
38026
38027
38028 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38029 PyObject *resultobj = 0;
38030 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38031 wxColour *arg2 = 0 ;
38032 void *argp1 = 0 ;
38033 int res1 = 0 ;
38034 wxColour temp2 ;
38035 PyObject * obj0 = 0 ;
38036 PyObject * obj1 = 0 ;
38037 char * kwnames[] = {
38038 (char *) "self",(char *) "colour", NULL
38039 };
38040
38041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38043 if (!SWIG_IsOK(res1)) {
38044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38045 }
38046 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38047 {
38048 arg2 = &temp2;
38049 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38050 }
38051 {
38052 PyThreadState* __tstate = wxPyBeginAllowThreads();
38053 (arg1)->SetTextBackground((wxColour const &)*arg2);
38054 wxPyEndAllowThreads(__tstate);
38055 if (PyErr_Occurred()) SWIG_fail;
38056 }
38057 resultobj = SWIG_Py_Void();
38058 return resultobj;
38059 fail:
38060 return NULL;
38061 }
38062
38063
38064 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38065 PyObject *resultobj = 0;
38066 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38067 int arg2 ;
38068 void *argp1 = 0 ;
38069 int res1 = 0 ;
38070 int val2 ;
38071 int ecode2 = 0 ;
38072 PyObject * obj0 = 0 ;
38073 PyObject * obj1 = 0 ;
38074 char * kwnames[] = {
38075 (char *) "self",(char *) "function", NULL
38076 };
38077
38078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
38079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38080 if (!SWIG_IsOK(res1)) {
38081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38082 }
38083 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38084 ecode2 = SWIG_AsVal_int(obj1, &val2);
38085 if (!SWIG_IsOK(ecode2)) {
38086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
38087 }
38088 arg2 = static_cast< int >(val2);
38089 {
38090 PyThreadState* __tstate = wxPyBeginAllowThreads();
38091 (arg1)->SetLogicalFunction(arg2);
38092 wxPyEndAllowThreads(__tstate);
38093 if (PyErr_Occurred()) SWIG_fail;
38094 }
38095 resultobj = SWIG_Py_Void();
38096 return resultobj;
38097 fail:
38098 return NULL;
38099 }
38100
38101
38102 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38103 PyObject *obj;
38104 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38105 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
38106 return SWIG_Py_Void();
38107 }
38108
38109 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38110 return SWIG_Python_InitShadowInstance(args);
38111 }
38112
38113 static PyMethodDef SwigMethods[] = {
38114 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
38115 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
38116 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
38117 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
38118 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
38119 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
38120 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
38121 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38122 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
38123 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
38124 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
38125 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
38126 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
38127 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
38128 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38129 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38130 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38131 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
38132 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
38133 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38134 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38135 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
38136 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
38137 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
38138 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
38139 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
38140 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
38141 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38142 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38143 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
38144 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
38145 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
38146 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
38147 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
38148 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
38149 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
38150 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
38151 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
38152 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
38153 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
38154 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
38155 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
38156 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38157 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
38158 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38159 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38160 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38161 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
38162 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38163 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
38164 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38165 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38166 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
38167 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
38168 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
38169 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38170 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
38171 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38172 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38173 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
38174 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
38175 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
38176 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
38177 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
38178 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
38179 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
38180 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
38181 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38182 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
38183 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38184 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38185 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38186 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38187 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
38188 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
38189 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
38190 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
38191 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
38192 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
38193 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
38194 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
38195 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
38196 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
38197 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38198 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
38199 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38200 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
38201 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38202 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38203 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38204 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38205 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
38206 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38207 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38208 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38209 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38210 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
38211 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
38212 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
38213 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38214 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38215 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
38216 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
38217 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
38218 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
38219 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
38220 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
38221 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
38222 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
38223 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
38224 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
38225 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
38226 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
38227 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
38228 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
38229 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
38230 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38231 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
38232 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
38233 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38234 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38235 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38236 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38237 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38238 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
38239 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
38240 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
38241 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
38242 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
38243 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
38244 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
38245 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
38246 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
38247 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
38248 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
38249 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
38250 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38251 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
38252 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
38253 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38254 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38255 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38256 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38257 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38258 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
38259 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
38260 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
38261 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
38262 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
38263 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
38264 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
38265 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
38266 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
38267 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
38268 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38269 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38270 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38271 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38272 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
38273 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
38274 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
38275 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
38276 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38277 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38278 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38279 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38280 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
38281 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
38282 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38283 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
38284 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
38285 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
38286 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
38287 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
38288 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
38289 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
38290 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
38291 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
38292 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38293 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38294 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
38295 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38296 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38297 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38298 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
38299 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
38300 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
38301 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
38302 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38303 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38304 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
38305 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
38306 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
38307 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
38308 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38309 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38310 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
38311 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
38312 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
38313 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38314 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
38315 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38316 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
38317 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
38318 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
38319 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
38320 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
38321 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38322 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
38323 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
38324 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
38325 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
38326 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38327 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
38328 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
38329 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38330 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
38331 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
38332 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38333 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
38334 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38335 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38336 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
38337 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
38338 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
38339 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
38340 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
38341 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
38342 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
38343 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
38344 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
38345 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
38346 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
38347 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
38348 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
38349 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
38350 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
38351 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
38352 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
38353 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
38354 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
38355 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
38356 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
38357 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
38358 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
38359 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
38360 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
38361 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
38362 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
38363 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
38364 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38365 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38366 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38367 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38368 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38369 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38370 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38371 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38372 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
38373 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
38374 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
38375 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
38376 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
38377 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
38378 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
38379 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
38380 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
38381 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
38382 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
38383 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
38384 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38385 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
38386 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
38387 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
38388 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38389 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38390 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
38391 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
38392 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
38393 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38394 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38395 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
38396 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38397 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
38398 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
38399 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38400 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
38401 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
38402 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38403 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38404 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
38405 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
38406 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
38407 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
38408 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
38409 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
38410 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38411 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
38412 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
38413 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38414 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38415 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
38416 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38417 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38418 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
38419 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
38420 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
38421 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
38422 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
38423 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
38424 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
38425 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
38426 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
38427 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
38428 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
38429 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
38430 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
38431 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38432 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38433 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38434 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38435 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38436 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38437 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38438 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38439 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38440 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
38441 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
38442 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
38443 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
38444 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
38445 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
38446 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
38447 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
38448 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38449 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
38450 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
38451 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
38452 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
38453 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38454 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
38455 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
38456 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
38457 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
38458 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
38459 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
38460 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
38461 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
38462 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
38463 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
38464 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
38465 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
38466 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
38467 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
38468 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
38469 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
38470 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
38471 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
38472 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
38473 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
38474 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
38475 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
38476 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
38477 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
38478 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
38479 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
38480 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
38481 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
38482 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38483 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
38484 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38485 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
38486 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38487 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
38488 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
38489 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
38490 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
38491 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
38492 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
38493 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
38494 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38495 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
38496 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
38497 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
38498 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
38499 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
38500 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
38501 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
38502 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
38503 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
38504 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
38505 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38506 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38507 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
38508 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
38509 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
38510 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
38511 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
38512 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38513 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
38514 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
38515 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38516 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38517 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
38518 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38519 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
38520 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38521 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
38522 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38523 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
38524 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
38525 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
38526 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38527 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38528 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38529 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38530 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38531 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38532 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38533 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38534 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38535 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38536 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38537 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38538 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
38539 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38540 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38541 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38542 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38543 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38544 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38545 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38546 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
38547 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38548 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
38549 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38550 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38551 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38552 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38553 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38554 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
38555 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38556 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
38557 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38558 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38559 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
38560 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
38561 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
38562 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
38563 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
38564 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
38565 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
38566 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
38567 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38568 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38569 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
38570 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
38571 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
38572 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
38573 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
38574 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
38575 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
38576 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38577 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38578 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38579 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
38580 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
38581 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
38582 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
38583 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
38584 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
38585 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
38586 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38587 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38588 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
38589 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
38590 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38591 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38592 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
38593 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
38594 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
38595 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
38596 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
38597 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
38598 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
38599 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
38600 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
38601 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
38602 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
38603 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
38604 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
38605 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38606 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
38607 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
38608 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
38609 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
38610 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
38611 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
38612 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
38613 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
38614 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38615 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38616 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
38617 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
38618 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38619 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38620 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
38621 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
38622 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
38623 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
38624 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
38625 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38626 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
38627 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
38628 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
38629 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
38630 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
38631 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
38632 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
38633 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
38634 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
38635 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
38636 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
38637 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
38638 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
38639 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
38640 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
38641 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38642 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
38643 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
38644 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
38645 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38646 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
38647 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
38648 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
38649 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38650 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
38651 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
38652 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
38653 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
38654 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
38655 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
38656 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
38657 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
38658 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
38659 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
38660 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
38661 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
38662 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
38663 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
38664 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
38665 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
38666 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
38667 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
38668 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
38669 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38670 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
38671 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
38672 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
38673 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
38674 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
38675 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
38676 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
38677 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
38678 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
38679 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
38680 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
38681 { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38682 { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL},
38683 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
38684 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
38685 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38686 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
38687 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
38688 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38689 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
38690 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
38691 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
38692 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
38693 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
38694 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
38695 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
38696 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
38697 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
38698 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
38699 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
38700 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
38701 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
38702 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
38703 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
38704 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
38705 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
38706 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
38707 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
38708 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
38709 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
38710 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
38711 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
38712 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
38713 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
38714 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
38715 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
38716 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
38717 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
38718 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
38719 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
38720 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
38721 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
38722 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
38723 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
38724 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
38725 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
38726 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
38727 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
38728 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
38729 { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL},
38730 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
38731 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
38732 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38733 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
38734 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
38735 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
38736 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
38737 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
38738 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
38739 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38740 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
38741 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
38742 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
38743 { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL},
38744 { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL},
38745 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
38746 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
38747 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
38748 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
38749 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
38750 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
38751 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
38752 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
38753 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38754 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38755 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38756 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38757 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38758 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38759 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
38760 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
38761 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
38762 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
38763 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
38764 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
38765 { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL},
38766 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
38767 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
38768 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
38769 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
38770 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
38771 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
38772 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38773 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38774 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38775 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
38776 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
38777 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
38778 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
38779 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38780 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
38781 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
38782 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
38783 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
38784 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
38785 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
38786 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
38787 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
38788 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
38789 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
38790 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
38791 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
38792 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
38793 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
38794 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
38795 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38796 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
38797 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38798 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38799 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
38800 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38801 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38802 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
38803 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
38804 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
38805 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38806 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38807 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38808 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38809 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
38810 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
38811 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
38812 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
38813 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
38814 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
38815 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
38816 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
38817 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
38818 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
38819 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38820 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38821 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38822 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
38823 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
38824 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
38825 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
38826 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
38827 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
38828 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
38829 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
38830 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
38831 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
38832 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
38833 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
38834 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
38835 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
38836 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
38837 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
38838 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
38839 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
38840 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
38841 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
38842 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
38843 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
38844 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38845 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38846 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38847 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
38848 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
38849 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
38850 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
38851 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
38852 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
38853 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
38854 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
38855 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
38856 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
38857 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
38858 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
38859 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38860 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38861 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38862 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
38863 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
38864 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
38865 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
38866 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
38867 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
38868 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
38869 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
38870 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
38871 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
38872 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
38873 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
38874 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38875 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38876 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38877 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
38878 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
38879 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
38880 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
38881 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
38882 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
38883 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
38884 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
38885 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
38886 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
38887 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
38888 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
38889 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
38890 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
38891 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
38892 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
38893 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
38894 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
38895 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
38896 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
38897 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
38898 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
38899 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
38900 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
38901 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
38902 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
38903 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
38904 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
38905 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38906 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
38907 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38908 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
38909 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
38910 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
38911 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
38912 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
38913 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
38914 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
38915 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
38916 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
38917 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
38918 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
38919 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
38920 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
38921 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
38922 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
38923 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
38924 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
38925 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
38926 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
38927 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
38928 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
38929 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
38930 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
38931 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
38932 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
38933 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
38934 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
38935 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
38936 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
38937 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
38938 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
38939 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
38940 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
38941 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
38942 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
38943 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
38944 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38945 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
38946 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
38947 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
38948 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
38949 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
38950 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
38951 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
38952 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
38953 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
38954 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
38955 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
38956 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
38957 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38958 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
38959 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
38960 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
38961 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
38962 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
38963 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
38964 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
38965 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
38966 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
38967 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
38968 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
38969 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
38970 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
38971 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
38972 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
38973 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
38974 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
38975 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
38976 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
38977 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
38978 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
38979 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
38980 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
38981 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38982 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
38983 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38984 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
38985 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38986 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
38987 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38988 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
38989 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
38990 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
38991 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38992 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38993 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38994 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38995 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38996 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38997 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38998 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38999 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39000 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39001 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39002 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39003 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39004 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39005 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39006 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39007 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39008 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39009 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39010 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39011 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39012 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39013 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39014 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39015 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39016 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39017 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39018 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
39019 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39020 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39021 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39022 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39023 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39024 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39025 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39026 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39027 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39028 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
39029 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
39030 { NULL, NULL, 0, NULL }
39031 };
39032
39033
39034 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
39035
39036 static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
39037 return (void *)((wxClientDC *) ((wxPaintDC *) x));
39038 }
39039 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
39040 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
39041 }
39042 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
39043 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
39044 }
39045 static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) {
39046 return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
39047 }
39048 static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) {
39049 return (void *)((wxWindowDC *) ((wxMemoryDC *) x));
39050 }
39051 static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
39052 return (void *)((wxWindowDC *) ((wxClientDC *) x));
39053 }
39054 static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
39055 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
39056 }
39057 static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) {
39058 return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39059 }
39060 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
39061 return (void *)((wxLocale *) ((wxPyLocale *) x));
39062 }
39063 static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
39064 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
39065 }
39066 static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
39067 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
39068 }
39069 static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
39070 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39071 }
39072 static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
39073 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
39074 }
39075 static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
39076 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
39077 }
39078 static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
39079 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
39080 }
39081 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
39082 return (void *)((wxGDIObject *) ((wxIcon *) x));
39083 }
39084 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
39085 return (void *)((wxGDIObject *) ((wxPalette *) x));
39086 }
39087 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
39088 return (void *)((wxGDIObject *) ((wxPen *) x));
39089 }
39090 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
39091 return (void *)((wxGDIObject *) ((wxFont *) x));
39092 }
39093 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
39094 return (void *)((wxGDIObject *) ((wxCursor *) x));
39095 }
39096 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
39097 return (void *)((wxGDIObject *) ((wxBitmap *) x));
39098 }
39099 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
39100 return (void *)((wxGDIObject *) ((wxRegion *) x));
39101 }
39102 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
39103 return (void *)((wxGDIObject *) ((wxBrush *) x));
39104 }
39105 static void *_p_wxGCDCTo_p_wxDC(void *x) {
39106 return (void *)((wxDC *) ((wxGCDC *) x));
39107 }
39108 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
39109 return (void *)((wxDC *) ((wxScreenDC *) x));
39110 }
39111 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
39112 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
39113 }
39114 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
39115 return (void *)((wxDC *) ((wxMirrorDC *) x));
39116 }
39117 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
39118 return (void *)((wxDC *) ((wxWindowDC *) x));
39119 }
39120 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
39121 return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x));
39122 }
39123 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
39124 return (void *)((wxDC *) ((wxMetaFileDC *) x));
39125 }
39126 static void *_p_wxClientDCTo_p_wxDC(void *x) {
39127 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
39128 }
39129 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
39130 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39131 }
39132 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
39133 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39134 }
39135 static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
39136 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
39137 }
39138 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
39139 return (void *)((wxDC *) ((wxPostScriptDC *) x));
39140 }
39141 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
39142 return (void *)((wxDC *) ((wxPrinterDC *) x));
39143 }
39144 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
39145 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
39146 }
39147 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
39148 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
39149 }
39150 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
39151 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
39152 }
39153 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
39154 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
39155 }
39156 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
39157 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
39158 }
39159 static void *_p_wxPenTo_p_wxObject(void *x) {
39160 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
39161 }
39162 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
39163 return (void *)((wxObject *) ((wxRegionIterator *) x));
39164 }
39165 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
39166 return (void *)((wxObject *) ((wxSizerItem *) x));
39167 }
39168 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
39169 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
39170 }
39171 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
39172 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
39173 }
39174 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
39175 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
39176 }
39177 static void *_p_wxIconTo_p_wxObject(void *x) {
39178 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
39179 }
39180 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
39181 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
39182 }
39183 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
39184 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
39185 }
39186 static void *_p_wxSizerTo_p_wxObject(void *x) {
39187 return (void *)((wxObject *) ((wxSizer *) x));
39188 }
39189 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
39190 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
39191 }
39192 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
39193 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
39194 }
39195 static void *_p_wxEventTo_p_wxObject(void *x) {
39196 return (void *)((wxObject *) ((wxEvent *) x));
39197 }
39198 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
39199 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
39200 }
39201 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
39202 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
39203 }
39204 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
39205 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
39206 }
39207 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
39208 return (void *)((wxObject *) ((wxPseudoDC *) x));
39209 }
39210 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
39211 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
39212 }
39213 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
39214 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
39215 }
39216 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
39217 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
39218 }
39219 static void *_p_wxDCTo_p_wxObject(void *x) {
39220 return (void *)((wxObject *) ((wxDC *) x));
39221 }
39222 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
39223 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
39224 }
39225 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
39226 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
39227 }
39228 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
39229 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
39230 }
39231 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
39232 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
39233 }
39234 static void *_p_wxControlTo_p_wxObject(void *x) {
39235 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
39236 }
39237 static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
39238 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
39239 }
39240 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
39241 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
39242 }
39243 static void *_p_wxClientDCTo_p_wxObject(void *x) {
39244 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
39245 }
39246 static void *_p_wxFSFileTo_p_wxObject(void *x) {
39247 return (void *)((wxObject *) ((wxFSFile *) x));
39248 }
39249 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
39250 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x));
39251 }
39252 static void *_p_wxRegionTo_p_wxObject(void *x) {
39253 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
39254 }
39255 static void *_p_wxPySizerTo_p_wxObject(void *x) {
39256 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
39257 }
39258 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
39259 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
39260 }
39261 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
39262 return (void *)((wxObject *) ((wxGDIObject *) x));
39263 }
39264 static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
39265 return (void *)((wxObject *) ((wxGraphicsObject *) x));
39266 }
39267 static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
39268 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
39269 }
39270 static void *_p_wxEffectsTo_p_wxObject(void *x) {
39271 return (void *)((wxObject *) ((wxEffects *) x));
39272 }
39273 static void *_p_wxPyEventTo_p_wxObject(void *x) {
39274 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
39275 }
39276 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
39277 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
39278 }
39279 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
39280 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
39281 }
39282 static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
39283 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
39284 }
39285 static void *_p_wxShowEventTo_p_wxObject(void *x) {
39286 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
39287 }
39288 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
39289 return (void *)((wxObject *) ((wxMenuItem *) x));
39290 }
39291 static void *_p_wxDateEventTo_p_wxObject(void *x) {
39292 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
39293 }
39294 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
39295 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
39296 }
39297 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
39298 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
39299 }
39300 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
39301 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
39302 }
39303 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
39304 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
39305 }
39306 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
39307 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
39308 }
39309 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
39310 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
39311 }
39312 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
39313 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
39314 }
39315 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
39316 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
39317 }
39318 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
39319 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
39320 }
39321 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
39322 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
39323 }
39324 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
39325 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
39326 }
39327 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
39328 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
39329 }
39330 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
39331 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
39332 }
39333 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
39334 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
39335 }
39336 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
39337 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
39338 }
39339 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
39340 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
39341 }
39342 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
39343 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
39344 }
39345 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
39346 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
39347 }
39348 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
39349 return (void *)((wxObject *) ((wxImageHandler *) x));
39350 }
39351 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
39352 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
39353 }
39354 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
39355 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
39356 }
39357 static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
39358 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
39359 }
39360 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
39361 return (void *)((wxObject *) ((wxEvtHandler *) x));
39362 }
39363 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
39364 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
39365 }
39366 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
39367 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39368 }
39369 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
39370 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39371 }
39372 static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
39373 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
39374 }
39375 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
39376 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
39377 }
39378 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
39379 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
39380 }
39381 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
39382 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
39383 }
39384 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
39385 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
39386 }
39387 static void *_p_wxImageTo_p_wxObject(void *x) {
39388 return (void *)((wxObject *) ((wxImage *) x));
39389 }
39390 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
39391 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
39392 }
39393 static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
39394 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
39395 }
39396 static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
39397 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
39398 }
39399 static void *_p_wxPaletteTo_p_wxObject(void *x) {
39400 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
39401 }
39402 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
39403 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
39404 }
39405 static void *_p_wxImageListTo_p_wxObject(void *x) {
39406 return (void *)((wxObject *) ((wxImageList *) x));
39407 }
39408 static void *_p_wxGCDCTo_p_wxObject(void *x) {
39409 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
39410 }
39411 static void *_p_wxCursorTo_p_wxObject(void *x) {
39412 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
39413 }
39414 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
39415 return (void *)((wxObject *) ((wxEncodingConverter *) x));
39416 }
39417 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
39418 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
39419 }
39420 static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
39421 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
39422 }
39423 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
39424 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
39425 }
39426 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
39427 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
39428 }
39429 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
39430 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
39431 }
39432 static void *_p_wxWindowTo_p_wxObject(void *x) {
39433 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
39434 }
39435 static void *_p_wxMenuTo_p_wxObject(void *x) {
39436 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
39437 }
39438 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
39439 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
39440 }
39441 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
39442 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
39443 }
39444 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
39445 return (void *)((wxObject *) ((wxFileSystem *) x));
39446 }
39447 static void *_p_wxBitmapTo_p_wxObject(void *x) {
39448 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
39449 }
39450 static void *_p_wxMaskTo_p_wxObject(void *x) {
39451 return (void *)((wxObject *) ((wxMask *) x));
39452 }
39453 static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
39454 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39455 }
39456 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
39457 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
39458 }
39459 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
39460 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
39461 }
39462 static void *_p_wxPyAppTo_p_wxObject(void *x) {
39463 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
39464 }
39465 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
39466 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
39467 }
39468 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
39469 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
39470 }
39471 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
39472 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
39473 }
39474 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
39475 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
39476 }
39477 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
39478 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
39479 }
39480 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
39481 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
39482 }
39483 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
39484 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
39485 }
39486 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
39487 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
39488 }
39489 static void *_p_wxFontTo_p_wxObject(void *x) {
39490 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
39491 }
39492 static void *_p_wxBrushTo_p_wxObject(void *x) {
39493 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
39494 }
39495 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
39496 return (void *)((wxObject *) ((wxMetaFile *) x));
39497 }
39498 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
39499 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
39500 }
39501 static void *_p_wxColourTo_p_wxObject(void *x) {
39502 return (void *)((wxObject *) ((wxColour *) x));
39503 }
39504 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
39505 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
39506 }
39507 static void *_p_wxValidatorTo_p_wxObject(void *x) {
39508 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
39509 }
39510 static void *_p_wxControlTo_p_wxWindow(void *x) {
39511 return (void *)((wxWindow *) ((wxControl *) x));
39512 }
39513 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
39514 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
39515 }
39516 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
39517 return (void *)((wxWindow *) ((wxMenuBar *) x));
39518 }
39519 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
39520 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
39521 }
39522 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
39523 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
39524 }
39525 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
39526 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
39527 static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
39528 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};
39529 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
39530 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
39531 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
39532 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
39533 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
39534 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
39535 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
39536 static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
39537 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
39538 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
39539 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
39540 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
39541 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
39542 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
39543 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
39544 static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
39545 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
39546 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
39547 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
39548 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
39549 static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
39550 static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
39551 static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
39552 static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
39553 static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
39554 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
39555 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
39556 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
39557 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
39558 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
39559 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
39560 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
39561 static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
39562 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
39563 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
39564 static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
39565 static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
39566 static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
39567 static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
39568 static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
39569 static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
39570 static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
39571 static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
39572 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
39573 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
39574 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
39575 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
39576 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
39577 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
39578 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
39579 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
39580 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
39581 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
39582 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
39583 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
39584 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
39585 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
39586 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
39587 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
39588 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
39589 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
39590 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
39591 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
39592 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
39593 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
39594 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
39595 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
39596 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
39597 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
39598 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
39599 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
39600 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
39601 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
39602 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
39603 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
39604 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
39605 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
39606 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
39607 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
39608 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
39609 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
39610 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
39611 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
39612 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
39613 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
39614 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
39615 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
39616 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
39617 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
39618 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
39619 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
39620 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
39621 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
39622 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
39623 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
39624 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
39625 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
39626 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
39627 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
39628 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
39629 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
39630 static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
39631 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
39632 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
39633 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
39634 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
39635 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
39636 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
39637 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
39638 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
39639 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
39640 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
39641 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
39642 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
39643 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
39644 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
39645 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
39646 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
39647 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
39648 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
39649 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
39650 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
39651 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
39652 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
39653 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
39654 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
39655 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
39656 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
39657 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
39658 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
39659 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
39660 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
39661 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
39662 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
39663 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
39664 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
39665 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
39666 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
39667 static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
39668 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
39669 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
39670 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
39671 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
39672 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
39673 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
39674 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
39675 static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
39676 static swig_type_info _swigt__p_wxPoint2DDouble = {"_p_wxPoint2DDouble", "wxPoint2DDouble *", 0, 0, (void*)0, 0};
39677 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
39678 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
39679 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
39680 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
39681 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
39682 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
39683 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
39684 static swig_type_info _swigt__p_wxRect2DDouble = {"_p_wxRect2DDouble", "wxRect2DDouble *", 0, 0, (void*)0, 0};
39685 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
39686 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
39687 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
39688 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
39689 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
39690 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
39691 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
39692 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
39693 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
39694 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
39695 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
39696
39697 static swig_type_info *swig_type_initial[] = {
39698 &_swigt__p_buffer,
39699 &_swigt__p_char,
39700 &_swigt__p_double,
39701 &_swigt__p_form_ops_t,
39702 &_swigt__p_int,
39703 &_swigt__p_unsigned_char,
39704 &_swigt__p_unsigned_int,
39705 &_swigt__p_unsigned_long,
39706 &_swigt__p_void,
39707 &_swigt__p_wxANIHandler,
39708 &_swigt__p_wxAcceleratorTable,
39709 &_swigt__p_wxActivateEvent,
39710 &_swigt__p_wxAlphaPixelData,
39711 &_swigt__p_wxAlphaPixelData_Accessor,
39712 &_swigt__p_wxAutoBufferedPaintDC,
39713 &_swigt__p_wxBMPHandler,
39714 &_swigt__p_wxBitmap,
39715 &_swigt__p_wxBoxSizer,
39716 &_swigt__p_wxBrush,
39717 &_swigt__p_wxBrushList,
39718 &_swigt__p_wxBufferedDC,
39719 &_swigt__p_wxBufferedPaintDC,
39720 &_swigt__p_wxCURHandler,
39721 &_swigt__p_wxChar,
39722 &_swigt__p_wxChildFocusEvent,
39723 &_swigt__p_wxClientDC,
39724 &_swigt__p_wxClipboardTextEvent,
39725 &_swigt__p_wxCloseEvent,
39726 &_swigt__p_wxColor,
39727 &_swigt__p_wxColour,
39728 &_swigt__p_wxColourDatabase,
39729 &_swigt__p_wxCommandEvent,
39730 &_swigt__p_wxContextMenuEvent,
39731 &_swigt__p_wxControl,
39732 &_swigt__p_wxControlWithItems,
39733 &_swigt__p_wxCursor,
39734 &_swigt__p_wxDC,
39735 &_swigt__p_wxDCBrushChanger,
39736 &_swigt__p_wxDCClipper,
39737 &_swigt__p_wxDCOverlay,
39738 &_swigt__p_wxDCPenChanger,
39739 &_swigt__p_wxDCTextColourChanger,
39740 &_swigt__p_wxDash,
39741 &_swigt__p_wxDateEvent,
39742 &_swigt__p_wxDisplayChangedEvent,
39743 &_swigt__p_wxDropFilesEvent,
39744 &_swigt__p_wxDuplexMode,
39745 &_swigt__p_wxEffects,
39746 &_swigt__p_wxEncodingConverter,
39747 &_swigt__p_wxEraseEvent,
39748 &_swigt__p_wxEvent,
39749 &_swigt__p_wxEvtHandler,
39750 &_swigt__p_wxFSFile,
39751 &_swigt__p_wxFileSystem,
39752 &_swigt__p_wxFlexGridSizer,
39753 &_swigt__p_wxFocusEvent,
39754 &_swigt__p_wxFont,
39755 &_swigt__p_wxFontList,
39756 &_swigt__p_wxFontMapper,
39757 &_swigt__p_wxGBSizerItem,
39758 &_swigt__p_wxGCDC,
39759 &_swigt__p_wxGDIObjListBase,
39760 &_swigt__p_wxGDIObject,
39761 &_swigt__p_wxGIFHandler,
39762 &_swigt__p_wxGraphicsBrush,
39763 &_swigt__p_wxGraphicsContext,
39764 &_swigt__p_wxGraphicsFont,
39765 &_swigt__p_wxGraphicsMatrix,
39766 &_swigt__p_wxGraphicsObject,
39767 &_swigt__p_wxGraphicsPath,
39768 &_swigt__p_wxGraphicsPen,
39769 &_swigt__p_wxGraphicsRenderer,
39770 &_swigt__p_wxGridBagSizer,
39771 &_swigt__p_wxGridSizer,
39772 &_swigt__p_wxHeaderButtonParams,
39773 &_swigt__p_wxICOHandler,
39774 &_swigt__p_wxIcon,
39775 &_swigt__p_wxIconBundle,
39776 &_swigt__p_wxIconLocation,
39777 &_swigt__p_wxIconizeEvent,
39778 &_swigt__p_wxIdleEvent,
39779 &_swigt__p_wxImage,
39780 &_swigt__p_wxImageHandler,
39781 &_swigt__p_wxImageList,
39782 &_swigt__p_wxIndividualLayoutConstraint,
39783 &_swigt__p_wxInitDialogEvent,
39784 &_swigt__p_wxJPEGHandler,
39785 &_swigt__p_wxKeyEvent,
39786 &_swigt__p_wxLanguageInfo,
39787 &_swigt__p_wxLayoutConstraints,
39788 &_swigt__p_wxLocale,
39789 &_swigt__p_wxMask,
39790 &_swigt__p_wxMaximizeEvent,
39791 &_swigt__p_wxMemoryDC,
39792 &_swigt__p_wxMenu,
39793 &_swigt__p_wxMenuBar,
39794 &_swigt__p_wxMenuEvent,
39795 &_swigt__p_wxMenuItem,
39796 &_swigt__p_wxMetaFile,
39797 &_swigt__p_wxMetaFileDC,
39798 &_swigt__p_wxMirrorDC,
39799 &_swigt__p_wxMouseCaptureChangedEvent,
39800 &_swigt__p_wxMouseCaptureLostEvent,
39801 &_swigt__p_wxMouseEvent,
39802 &_swigt__p_wxMoveEvent,
39803 &_swigt__p_wxNativeEncodingInfo,
39804 &_swigt__p_wxNativeFontInfo,
39805 &_swigt__p_wxNativePixelData,
39806 &_swigt__p_wxNativePixelData_Accessor,
39807 &_swigt__p_wxNavigationKeyEvent,
39808 &_swigt__p_wxNcPaintEvent,
39809 &_swigt__p_wxNotifyEvent,
39810 &_swigt__p_wxObject,
39811 &_swigt__p_wxOverlay,
39812 &_swigt__p_wxPCXHandler,
39813 &_swigt__p_wxPNGHandler,
39814 &_swigt__p_wxPNMHandler,
39815 &_swigt__p_wxPaintDC,
39816 &_swigt__p_wxPaintEvent,
39817 &_swigt__p_wxPalette,
39818 &_swigt__p_wxPaletteChangedEvent,
39819 &_swigt__p_wxPaperSize,
39820 &_swigt__p_wxPen,
39821 &_swigt__p_wxPenList,
39822 &_swigt__p_wxPixelDataBase,
39823 &_swigt__p_wxPoint,
39824 &_swigt__p_wxPoint2D,
39825 &_swigt__p_wxPoint2DDouble,
39826 &_swigt__p_wxPostScriptDC,
39827 &_swigt__p_wxPrintData,
39828 &_swigt__p_wxPrinterDC,
39829 &_swigt__p_wxPseudoDC,
39830 &_swigt__p_wxPyApp,
39831 &_swigt__p_wxPyCommandEvent,
39832 &_swigt__p_wxPyEvent,
39833 &_swigt__p_wxPyFontEnumerator,
39834 &_swigt__p_wxPyImageHandler,
39835 &_swigt__p_wxPyLocale,
39836 &_swigt__p_wxPySizer,
39837 &_swigt__p_wxPyValidator,
39838 &_swigt__p_wxQueryNewPaletteEvent,
39839 &_swigt__p_wxRect,
39840 &_swigt__p_wxRect2DDouble,
39841 &_swigt__p_wxRegion,
39842 &_swigt__p_wxRegionIterator,
39843 &_swigt__p_wxRendererNative,
39844 &_swigt__p_wxRendererVersion,
39845 &_swigt__p_wxScreenDC,
39846 &_swigt__p_wxScrollEvent,
39847 &_swigt__p_wxScrollWinEvent,
39848 &_swigt__p_wxSetCursorEvent,
39849 &_swigt__p_wxShowEvent,
39850 &_swigt__p_wxSize,
39851 &_swigt__p_wxSizeEvent,
39852 &_swigt__p_wxSizer,
39853 &_swigt__p_wxSizerItem,
39854 &_swigt__p_wxSplitterRenderParams,
39855 &_swigt__p_wxStaticBoxSizer,
39856 &_swigt__p_wxStdDialogButtonSizer,
39857 &_swigt__p_wxStockGDI,
39858 &_swigt__p_wxString,
39859 &_swigt__p_wxSysColourChangedEvent,
39860 &_swigt__p_wxTGAHandler,
39861 &_swigt__p_wxTIFFHandler,
39862 &_swigt__p_wxUpdateUIEvent,
39863 &_swigt__p_wxValidator,
39864 &_swigt__p_wxWindow,
39865 &_swigt__p_wxWindowCreateEvent,
39866 &_swigt__p_wxWindowDC,
39867 &_swigt__p_wxWindowDestroyEvent,
39868 &_swigt__p_wxXPMHandler,
39869 };
39870
39871 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
39872 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
39873 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
39874 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
39875 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
39876 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
39877 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
39878 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
39879 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
39880 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
39881 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
39882 static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
39883 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
39884 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
39885 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
39886 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}};
39887 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
39888 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
39889 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}};
39890 static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
39891 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
39892 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
39893 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
39894 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}};
39895 static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
39896 static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
39897 static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
39898 static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
39899 static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
39900 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
39901 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
39902 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
39903 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
39904 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
39905 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
39906 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
39907 static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
39908 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}};
39909 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}};
39910 static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
39911 static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
39912 static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
39913 static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
39914 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}};
39915 static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
39916 static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
39917 static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
39918 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
39919 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
39920 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
39921 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
39922 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
39923 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
39924 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
39925 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}};
39926 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
39927 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}};
39928 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
39929 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
39930 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
39931 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
39932 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
39933 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
39934 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
39935 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
39936 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
39937 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
39938 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
39939 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
39940 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
39941 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
39942 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
39943 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
39944 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
39945 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
39946 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
39947 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
39948 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
39949 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
39950 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
39951 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
39952 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
39953 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
39954 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
39955 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
39956 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
39957 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
39958 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
39959 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
39960 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
39961 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
39962 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
39963 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
39964 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
39965 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
39966 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
39967 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
39968 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
39969 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
39970 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
39971 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
39972 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
39973 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
39974 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
39975 static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
39976 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
39977 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
39978 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
39979 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
39980 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
39981 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
39982 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
39983 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
39984 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
39985 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
39986 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
39987 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
39988 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
39989 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
39990 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
39991 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
39992 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
39993 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
39994 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
39995 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
39996 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
39997 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
39998 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
39999 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40000 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
40001 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
40002 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
40003 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
40004 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40005 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40006 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
40007 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40008 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40009 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
40010 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
40011 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
40012 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}};
40013 static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
40014 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40015 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
40016 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
40017 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
40018 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
40019 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}};
40020 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
40021 static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
40022 static swig_cast_info _swigc__p_wxPoint2DDouble[] = { {&_swigt__p_wxPoint2DDouble, 0, 0, 0},{0, 0, 0, 0}};
40023 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
40024 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
40025 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
40026 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
40027 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
40028 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
40029 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
40030 static swig_cast_info _swigc__p_wxRect2DDouble[] = { {&_swigt__p_wxRect2DDouble, 0, 0, 0},{0, 0, 0, 0}};
40031 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
40032 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
40033 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
40034 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
40035 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
40036 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
40037 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
40038 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
40039 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
40040 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}};
40041 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxWindowDC, 0, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxWindowDC, 0, 0},{0, 0, 0, 0}};
40042
40043 static swig_cast_info *swig_cast_initial[] = {
40044 _swigc__p_buffer,
40045 _swigc__p_char,
40046 _swigc__p_double,
40047 _swigc__p_form_ops_t,
40048 _swigc__p_int,
40049 _swigc__p_unsigned_char,
40050 _swigc__p_unsigned_int,
40051 _swigc__p_unsigned_long,
40052 _swigc__p_void,
40053 _swigc__p_wxANIHandler,
40054 _swigc__p_wxAcceleratorTable,
40055 _swigc__p_wxActivateEvent,
40056 _swigc__p_wxAlphaPixelData,
40057 _swigc__p_wxAlphaPixelData_Accessor,
40058 _swigc__p_wxAutoBufferedPaintDC,
40059 _swigc__p_wxBMPHandler,
40060 _swigc__p_wxBitmap,
40061 _swigc__p_wxBoxSizer,
40062 _swigc__p_wxBrush,
40063 _swigc__p_wxBrushList,
40064 _swigc__p_wxBufferedDC,
40065 _swigc__p_wxBufferedPaintDC,
40066 _swigc__p_wxCURHandler,
40067 _swigc__p_wxChar,
40068 _swigc__p_wxChildFocusEvent,
40069 _swigc__p_wxClientDC,
40070 _swigc__p_wxClipboardTextEvent,
40071 _swigc__p_wxCloseEvent,
40072 _swigc__p_wxColor,
40073 _swigc__p_wxColour,
40074 _swigc__p_wxColourDatabase,
40075 _swigc__p_wxCommandEvent,
40076 _swigc__p_wxContextMenuEvent,
40077 _swigc__p_wxControl,
40078 _swigc__p_wxControlWithItems,
40079 _swigc__p_wxCursor,
40080 _swigc__p_wxDC,
40081 _swigc__p_wxDCBrushChanger,
40082 _swigc__p_wxDCClipper,
40083 _swigc__p_wxDCOverlay,
40084 _swigc__p_wxDCPenChanger,
40085 _swigc__p_wxDCTextColourChanger,
40086 _swigc__p_wxDash,
40087 _swigc__p_wxDateEvent,
40088 _swigc__p_wxDisplayChangedEvent,
40089 _swigc__p_wxDropFilesEvent,
40090 _swigc__p_wxDuplexMode,
40091 _swigc__p_wxEffects,
40092 _swigc__p_wxEncodingConverter,
40093 _swigc__p_wxEraseEvent,
40094 _swigc__p_wxEvent,
40095 _swigc__p_wxEvtHandler,
40096 _swigc__p_wxFSFile,
40097 _swigc__p_wxFileSystem,
40098 _swigc__p_wxFlexGridSizer,
40099 _swigc__p_wxFocusEvent,
40100 _swigc__p_wxFont,
40101 _swigc__p_wxFontList,
40102 _swigc__p_wxFontMapper,
40103 _swigc__p_wxGBSizerItem,
40104 _swigc__p_wxGCDC,
40105 _swigc__p_wxGDIObjListBase,
40106 _swigc__p_wxGDIObject,
40107 _swigc__p_wxGIFHandler,
40108 _swigc__p_wxGraphicsBrush,
40109 _swigc__p_wxGraphicsContext,
40110 _swigc__p_wxGraphicsFont,
40111 _swigc__p_wxGraphicsMatrix,
40112 _swigc__p_wxGraphicsObject,
40113 _swigc__p_wxGraphicsPath,
40114 _swigc__p_wxGraphicsPen,
40115 _swigc__p_wxGraphicsRenderer,
40116 _swigc__p_wxGridBagSizer,
40117 _swigc__p_wxGridSizer,
40118 _swigc__p_wxHeaderButtonParams,
40119 _swigc__p_wxICOHandler,
40120 _swigc__p_wxIcon,
40121 _swigc__p_wxIconBundle,
40122 _swigc__p_wxIconLocation,
40123 _swigc__p_wxIconizeEvent,
40124 _swigc__p_wxIdleEvent,
40125 _swigc__p_wxImage,
40126 _swigc__p_wxImageHandler,
40127 _swigc__p_wxImageList,
40128 _swigc__p_wxIndividualLayoutConstraint,
40129 _swigc__p_wxInitDialogEvent,
40130 _swigc__p_wxJPEGHandler,
40131 _swigc__p_wxKeyEvent,
40132 _swigc__p_wxLanguageInfo,
40133 _swigc__p_wxLayoutConstraints,
40134 _swigc__p_wxLocale,
40135 _swigc__p_wxMask,
40136 _swigc__p_wxMaximizeEvent,
40137 _swigc__p_wxMemoryDC,
40138 _swigc__p_wxMenu,
40139 _swigc__p_wxMenuBar,
40140 _swigc__p_wxMenuEvent,
40141 _swigc__p_wxMenuItem,
40142 _swigc__p_wxMetaFile,
40143 _swigc__p_wxMetaFileDC,
40144 _swigc__p_wxMirrorDC,
40145 _swigc__p_wxMouseCaptureChangedEvent,
40146 _swigc__p_wxMouseCaptureLostEvent,
40147 _swigc__p_wxMouseEvent,
40148 _swigc__p_wxMoveEvent,
40149 _swigc__p_wxNativeEncodingInfo,
40150 _swigc__p_wxNativeFontInfo,
40151 _swigc__p_wxNativePixelData,
40152 _swigc__p_wxNativePixelData_Accessor,
40153 _swigc__p_wxNavigationKeyEvent,
40154 _swigc__p_wxNcPaintEvent,
40155 _swigc__p_wxNotifyEvent,
40156 _swigc__p_wxObject,
40157 _swigc__p_wxOverlay,
40158 _swigc__p_wxPCXHandler,
40159 _swigc__p_wxPNGHandler,
40160 _swigc__p_wxPNMHandler,
40161 _swigc__p_wxPaintDC,
40162 _swigc__p_wxPaintEvent,
40163 _swigc__p_wxPalette,
40164 _swigc__p_wxPaletteChangedEvent,
40165 _swigc__p_wxPaperSize,
40166 _swigc__p_wxPen,
40167 _swigc__p_wxPenList,
40168 _swigc__p_wxPixelDataBase,
40169 _swigc__p_wxPoint,
40170 _swigc__p_wxPoint2D,
40171 _swigc__p_wxPoint2DDouble,
40172 _swigc__p_wxPostScriptDC,
40173 _swigc__p_wxPrintData,
40174 _swigc__p_wxPrinterDC,
40175 _swigc__p_wxPseudoDC,
40176 _swigc__p_wxPyApp,
40177 _swigc__p_wxPyCommandEvent,
40178 _swigc__p_wxPyEvent,
40179 _swigc__p_wxPyFontEnumerator,
40180 _swigc__p_wxPyImageHandler,
40181 _swigc__p_wxPyLocale,
40182 _swigc__p_wxPySizer,
40183 _swigc__p_wxPyValidator,
40184 _swigc__p_wxQueryNewPaletteEvent,
40185 _swigc__p_wxRect,
40186 _swigc__p_wxRect2DDouble,
40187 _swigc__p_wxRegion,
40188 _swigc__p_wxRegionIterator,
40189 _swigc__p_wxRendererNative,
40190 _swigc__p_wxRendererVersion,
40191 _swigc__p_wxScreenDC,
40192 _swigc__p_wxScrollEvent,
40193 _swigc__p_wxScrollWinEvent,
40194 _swigc__p_wxSetCursorEvent,
40195 _swigc__p_wxShowEvent,
40196 _swigc__p_wxSize,
40197 _swigc__p_wxSizeEvent,
40198 _swigc__p_wxSizer,
40199 _swigc__p_wxSizerItem,
40200 _swigc__p_wxSplitterRenderParams,
40201 _swigc__p_wxStaticBoxSizer,
40202 _swigc__p_wxStdDialogButtonSizer,
40203 _swigc__p_wxStockGDI,
40204 _swigc__p_wxString,
40205 _swigc__p_wxSysColourChangedEvent,
40206 _swigc__p_wxTGAHandler,
40207 _swigc__p_wxTIFFHandler,
40208 _swigc__p_wxUpdateUIEvent,
40209 _swigc__p_wxValidator,
40210 _swigc__p_wxWindow,
40211 _swigc__p_wxWindowCreateEvent,
40212 _swigc__p_wxWindowDC,
40213 _swigc__p_wxWindowDestroyEvent,
40214 _swigc__p_wxXPMHandler,
40215 };
40216
40217
40218 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
40219
40220 static swig_const_info swig_const_table[] = {
40221 {0, 0, 0, 0.0, 0, 0}};
40222
40223 #ifdef __cplusplus
40224 }
40225 #endif
40226 /* -----------------------------------------------------------------------------
40227 * Type initialization:
40228 * This problem is tough by the requirement that no dynamic
40229 * memory is used. Also, since swig_type_info structures store pointers to
40230 * swig_cast_info structures and swig_cast_info structures store pointers back
40231 * to swig_type_info structures, we need some lookup code at initialization.
40232 * The idea is that swig generates all the structures that are needed.
40233 * The runtime then collects these partially filled structures.
40234 * The SWIG_InitializeModule function takes these initial arrays out of
40235 * swig_module, and does all the lookup, filling in the swig_module.types
40236 * array with the correct data and linking the correct swig_cast_info
40237 * structures together.
40238 *
40239 * The generated swig_type_info structures are assigned staticly to an initial
40240 * array. We just loop though that array, and handle each type individually.
40241 * First we lookup if this type has been already loaded, and if so, use the
40242 * loaded structure instead of the generated one. Then we have to fill in the
40243 * cast linked list. The cast data is initially stored in something like a
40244 * two-dimensional array. Each row corresponds to a type (there are the same
40245 * number of rows as there are in the swig_type_initial array). Each entry in
40246 * a column is one of the swig_cast_info structures for that type.
40247 * The cast_initial array is actually an array of arrays, because each row has
40248 * a variable number of columns. So to actually build the cast linked list,
40249 * we find the array of casts associated with the type, and loop through it
40250 * adding the casts to the list. The one last trick we need to do is making
40251 * sure the type pointer in the swig_cast_info struct is correct.
40252 *
40253 * First off, we lookup the cast->type name to see if it is already loaded.
40254 * There are three cases to handle:
40255 * 1) If the cast->type has already been loaded AND the type we are adding
40256 * casting info to has not been loaded (it is in this module), THEN we
40257 * replace the cast->type pointer with the type pointer that has already
40258 * been loaded.
40259 * 2) If BOTH types (the one we are adding casting info to, and the
40260 * cast->type) are loaded, THEN the cast info has already been loaded by
40261 * the previous module so we just ignore it.
40262 * 3) Finally, if cast->type has not already been loaded, then we add that
40263 * swig_cast_info to the linked list (because the cast->type) pointer will
40264 * be correct.
40265 * ----------------------------------------------------------------------------- */
40266
40267 #ifdef __cplusplus
40268 extern "C" {
40269 #if 0
40270 } /* c-mode */
40271 #endif
40272 #endif
40273
40274 #if 0
40275 #define SWIGRUNTIME_DEBUG
40276 #endif
40277
40278 SWIGRUNTIME void
40279 SWIG_InitializeModule(void *clientdata) {
40280 size_t i;
40281 swig_module_info *module_head;
40282 static int init_run = 0;
40283
40284 clientdata = clientdata;
40285
40286 if (init_run) return;
40287 init_run = 1;
40288
40289 /* Initialize the swig_module */
40290 swig_module.type_initial = swig_type_initial;
40291 swig_module.cast_initial = swig_cast_initial;
40292
40293 /* Try and load any already created modules */
40294 module_head = SWIG_GetModule(clientdata);
40295 if (module_head) {
40296 swig_module.next = module_head->next;
40297 module_head->next = &swig_module;
40298 } else {
40299 /* This is the first module loaded */
40300 swig_module.next = &swig_module;
40301 SWIG_SetModule(clientdata, &swig_module);
40302 }
40303
40304 /* Now work on filling in swig_module.types */
40305 #ifdef SWIGRUNTIME_DEBUG
40306 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
40307 #endif
40308 for (i = 0; i < swig_module.size; ++i) {
40309 swig_type_info *type = 0;
40310 swig_type_info *ret;
40311 swig_cast_info *cast;
40312
40313 #ifdef SWIGRUNTIME_DEBUG
40314 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40315 #endif
40316
40317 /* if there is another module already loaded */
40318 if (swig_module.next != &swig_module) {
40319 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
40320 }
40321 if (type) {
40322 /* Overwrite clientdata field */
40323 #ifdef SWIGRUNTIME_DEBUG
40324 printf("SWIG_InitializeModule: found type %s\n", type->name);
40325 #endif
40326 if (swig_module.type_initial[i]->clientdata) {
40327 type->clientdata = swig_module.type_initial[i]->clientdata;
40328 #ifdef SWIGRUNTIME_DEBUG
40329 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
40330 #endif
40331 }
40332 } else {
40333 type = swig_module.type_initial[i];
40334 }
40335
40336 /* Insert casting types */
40337 cast = swig_module.cast_initial[i];
40338 while (cast->type) {
40339 /* Don't need to add information already in the list */
40340 ret = 0;
40341 #ifdef SWIGRUNTIME_DEBUG
40342 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
40343 #endif
40344 if (swig_module.next != &swig_module) {
40345 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
40346 #ifdef SWIGRUNTIME_DEBUG
40347 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
40348 #endif
40349 }
40350 if (ret) {
40351 if (type == swig_module.type_initial[i]) {
40352 #ifdef SWIGRUNTIME_DEBUG
40353 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
40354 #endif
40355 cast->type = ret;
40356 ret = 0;
40357 } else {
40358 /* Check for casting already in the list */
40359 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
40360 #ifdef SWIGRUNTIME_DEBUG
40361 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
40362 #endif
40363 if (!ocast) ret = 0;
40364 }
40365 }
40366
40367 if (!ret) {
40368 #ifdef SWIGRUNTIME_DEBUG
40369 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
40370 #endif
40371 if (type->cast) {
40372 type->cast->prev = cast;
40373 cast->next = type->cast;
40374 }
40375 type->cast = cast;
40376 }
40377 cast++;
40378 }
40379 /* Set entry in modules->types array equal to the type */
40380 swig_module.types[i] = type;
40381 }
40382 swig_module.types[i] = 0;
40383
40384 #ifdef SWIGRUNTIME_DEBUG
40385 printf("**** SWIG_InitializeModule: Cast List ******\n");
40386 for (i = 0; i < swig_module.size; ++i) {
40387 int j = 0;
40388 swig_cast_info *cast = swig_module.cast_initial[i];
40389 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40390 while (cast->type) {
40391 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
40392 cast++;
40393 ++j;
40394 }
40395 printf("---- Total casts: %d\n",j);
40396 }
40397 printf("**** SWIG_InitializeModule: Cast List ******\n");
40398 #endif
40399 }
40400
40401 /* This function will propagate the clientdata field of type to
40402 * any new swig_type_info structures that have been added into the list
40403 * of equivalent types. It is like calling
40404 * SWIG_TypeClientData(type, clientdata) a second time.
40405 */
40406 SWIGRUNTIME void
40407 SWIG_PropagateClientData(void) {
40408 size_t i;
40409 swig_cast_info *equiv;
40410 static int init_run = 0;
40411
40412 if (init_run) return;
40413 init_run = 1;
40414
40415 for (i = 0; i < swig_module.size; i++) {
40416 if (swig_module.types[i]->clientdata) {
40417 equiv = swig_module.types[i]->cast;
40418 while (equiv) {
40419 if (!equiv->converter) {
40420 if (equiv->type && !equiv->type->clientdata)
40421 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
40422 }
40423 equiv = equiv->next;
40424 }
40425 }
40426 }
40427 }
40428
40429 #ifdef __cplusplus
40430 #if 0
40431 {
40432 /* c-mode */
40433 #endif
40434 }
40435 #endif
40436
40437
40438
40439 #ifdef __cplusplus
40440 extern "C" {
40441 #endif
40442
40443 /* Python-specific SWIG API */
40444 #define SWIG_newvarlink() SWIG_Python_newvarlink()
40445 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
40446 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
40447
40448 /* -----------------------------------------------------------------------------
40449 * global variable support code.
40450 * ----------------------------------------------------------------------------- */
40451
40452 typedef struct swig_globalvar {
40453 char *name; /* Name of global variable */
40454 PyObject *(*get_attr)(void); /* Return the current value */
40455 int (*set_attr)(PyObject *); /* Set the value */
40456 struct swig_globalvar *next;
40457 } swig_globalvar;
40458
40459 typedef struct swig_varlinkobject {
40460 PyObject_HEAD
40461 swig_globalvar *vars;
40462 } swig_varlinkobject;
40463
40464 SWIGINTERN PyObject *
40465 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
40466 return PyString_FromString("<Swig global variables>");
40467 }
40468
40469 SWIGINTERN PyObject *
40470 swig_varlink_str(swig_varlinkobject *v) {
40471 PyObject *str = PyString_FromString("(");
40472 swig_globalvar *var;
40473 for (var = v->vars; var; var=var->next) {
40474 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
40475 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
40476 }
40477 PyString_ConcatAndDel(&str,PyString_FromString(")"));
40478 return str;
40479 }
40480
40481 SWIGINTERN int
40482 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
40483 PyObject *str = swig_varlink_str(v);
40484 fprintf(fp,"Swig global variables ");
40485 fprintf(fp,"%s\n", PyString_AsString(str));
40486 Py_DECREF(str);
40487 return 0;
40488 }
40489
40490 SWIGINTERN void
40491 swig_varlink_dealloc(swig_varlinkobject *v) {
40492 swig_globalvar *var = v->vars;
40493 while (var) {
40494 swig_globalvar *n = var->next;
40495 free(var->name);
40496 free(var);
40497 var = n;
40498 }
40499 }
40500
40501 SWIGINTERN PyObject *
40502 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
40503 PyObject *res = NULL;
40504 swig_globalvar *var = v->vars;
40505 while (var) {
40506 if (strcmp(var->name,n) == 0) {
40507 res = (*var->get_attr)();
40508 break;
40509 }
40510 var = var->next;
40511 }
40512 if (res == NULL && !PyErr_Occurred()) {
40513 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
40514 }
40515 return res;
40516 }
40517
40518 SWIGINTERN int
40519 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
40520 int res = 1;
40521 swig_globalvar *var = v->vars;
40522 while (var) {
40523 if (strcmp(var->name,n) == 0) {
40524 res = (*var->set_attr)(p);
40525 break;
40526 }
40527 var = var->next;
40528 }
40529 if (res == 1 && !PyErr_Occurred()) {
40530 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
40531 }
40532 return res;
40533 }
40534
40535 SWIGINTERN PyTypeObject*
40536 swig_varlink_type(void) {
40537 static char varlink__doc__[] = "Swig var link object";
40538 static PyTypeObject varlink_type;
40539 static int type_init = 0;
40540 if (!type_init) {
40541 const PyTypeObject tmp
40542 = {
40543 PyObject_HEAD_INIT(NULL)
40544 0, /* Number of items in variable part (ob_size) */
40545 (char *)"swigvarlink", /* Type name (tp_name) */
40546 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
40547 0, /* Itemsize (tp_itemsize) */
40548 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
40549 (printfunc) swig_varlink_print, /* Print (tp_print) */
40550 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
40551 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
40552 0, /* tp_compare */
40553 (reprfunc) swig_varlink_repr, /* tp_repr */
40554 0, /* tp_as_number */
40555 0, /* tp_as_sequence */
40556 0, /* tp_as_mapping */
40557 0, /* tp_hash */
40558 0, /* tp_call */
40559 (reprfunc)swig_varlink_str, /* tp_str */
40560 0, /* tp_getattro */
40561 0, /* tp_setattro */
40562 0, /* tp_as_buffer */
40563 0, /* tp_flags */
40564 varlink__doc__, /* tp_doc */
40565 0, /* tp_traverse */
40566 0, /* tp_clear */
40567 0, /* tp_richcompare */
40568 0, /* tp_weaklistoffset */
40569 #if PY_VERSION_HEX >= 0x02020000
40570 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
40571 #endif
40572 #if PY_VERSION_HEX >= 0x02030000
40573 0, /* tp_del */
40574 #endif
40575 #ifdef COUNT_ALLOCS
40576 0,0,0,0 /* tp_alloc -> tp_next */
40577 #endif
40578 };
40579 varlink_type = tmp;
40580 varlink_type.ob_type = &PyType_Type;
40581 type_init = 1;
40582 }
40583 return &varlink_type;
40584 }
40585
40586 /* Create a variable linking object for use later */
40587 SWIGINTERN PyObject *
40588 SWIG_Python_newvarlink(void) {
40589 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
40590 if (result) {
40591 result->vars = 0;
40592 }
40593 return ((PyObject*) result);
40594 }
40595
40596 SWIGINTERN void
40597 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
40598 swig_varlinkobject *v = (swig_varlinkobject *) p;
40599 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
40600 if (gv) {
40601 size_t size = strlen(name)+1;
40602 gv->name = (char *)malloc(size);
40603 if (gv->name) {
40604 strncpy(gv->name,name,size);
40605 gv->get_attr = get_attr;
40606 gv->set_attr = set_attr;
40607 gv->next = v->vars;
40608 }
40609 }
40610 v->vars = gv;
40611 }
40612
40613 SWIGINTERN PyObject *
40614 SWIG_globals() {
40615 static PyObject *_SWIG_globals = 0;
40616 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
40617 return _SWIG_globals;
40618 }
40619
40620 /* -----------------------------------------------------------------------------
40621 * constants/methods manipulation
40622 * ----------------------------------------------------------------------------- */
40623
40624 /* Install Constants */
40625 SWIGINTERN void
40626 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
40627 PyObject *obj = 0;
40628 size_t i;
40629 for (i = 0; constants[i].type; ++i) {
40630 switch(constants[i].type) {
40631 case SWIG_PY_POINTER:
40632 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
40633 break;
40634 case SWIG_PY_BINARY:
40635 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
40636 break;
40637 default:
40638 obj = 0;
40639 break;
40640 }
40641 if (obj) {
40642 PyDict_SetItemString(d, constants[i].name, obj);
40643 Py_DECREF(obj);
40644 }
40645 }
40646 }
40647
40648 /* -----------------------------------------------------------------------------*/
40649 /* Fix SwigMethods to carry the callback ptrs when needed */
40650 /* -----------------------------------------------------------------------------*/
40651
40652 SWIGINTERN void
40653 SWIG_Python_FixMethods(PyMethodDef *methods,
40654 swig_const_info *const_table,
40655 swig_type_info **types,
40656 swig_type_info **types_initial) {
40657 size_t i;
40658 for (i = 0; methods[i].ml_name; ++i) {
40659 const char *c = methods[i].ml_doc;
40660 if (c && (c = strstr(c, "swig_ptr: "))) {
40661 int j;
40662 swig_const_info *ci = 0;
40663 const char *name = c + 10;
40664 for (j = 0; const_table[j].type; ++j) {
40665 if (strncmp(const_table[j].name, name,
40666 strlen(const_table[j].name)) == 0) {
40667 ci = &(const_table[j]);
40668 break;
40669 }
40670 }
40671 if (ci) {
40672 size_t shift = (ci->ptype) - types;
40673 swig_type_info *ty = types_initial[shift];
40674 size_t ldoc = (c - methods[i].ml_doc);
40675 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
40676 char *ndoc = (char*)malloc(ldoc + lptr + 10);
40677 if (ndoc) {
40678 char *buff = ndoc;
40679 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
40680 if (ptr) {
40681 strncpy(buff, methods[i].ml_doc, ldoc);
40682 buff += ldoc;
40683 strncpy(buff, "swig_ptr: ", 10);
40684 buff += 10;
40685 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
40686 methods[i].ml_doc = ndoc;
40687 }
40688 }
40689 }
40690 }
40691 }
40692 }
40693
40694 #ifdef __cplusplus
40695 }
40696 #endif
40697
40698 /* -----------------------------------------------------------------------------*
40699 * Partial Init method
40700 * -----------------------------------------------------------------------------*/
40701
40702 #ifdef __cplusplus
40703 extern "C"
40704 #endif
40705 SWIGEXPORT void SWIG_init(void) {
40706 PyObject *m, *d;
40707
40708 /* Fix SwigMethods to carry the callback ptrs when needed */
40709 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
40710
40711 m = Py_InitModule((char *) SWIG_name, SwigMethods);
40712 d = PyModule_GetDict(m);
40713
40714 SWIG_InitializeModule(0);
40715 SWIG_InstallConstants(d,swig_const_table);
40716
40717
40718 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
40719 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
40720 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
40721 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
40722 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
40723 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
40724 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
40725 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
40726 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
40727 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
40728 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
40729 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
40730 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
40731 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
40732 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
40733 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
40734 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
40735 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
40736 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
40737 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
40738 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
40739 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
40740 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
40741 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
40742 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
40743 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
40744 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
40745 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
40746 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
40747 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
40748 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
40749 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
40750 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
40751 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
40752 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
40753 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
40754 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
40755 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
40756 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
40757 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
40758 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
40759 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
40760 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
40761 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
40762 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
40763 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
40764 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
40765 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
40766 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
40767 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
40768 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
40769 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
40770 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
40771 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
40772 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
40773 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
40774 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
40775 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
40776 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
40777 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
40778 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
40779 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
40780 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
40781 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
40782 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
40783 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
40784 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
40785 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
40786 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
40787 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
40788 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
40789 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
40790 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
40791 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
40792 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
40793 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
40794 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
40795 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
40796 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
40797 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
40798 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
40799 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
40800 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
40801 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
40802 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
40803 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
40804 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
40805 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
40806 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
40807 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
40808 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
40809 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
40810 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
40811 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
40812 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
40813 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
40814 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
40815 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
40816 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
40817 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
40818 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
40819 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
40820 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
40821 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
40822 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
40823 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
40824 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
40825 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
40826 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
40827 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
40828 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
40829 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
40830 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
40831 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
40832 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
40833 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
40834 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
40835 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
40836 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
40837 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
40838 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
40839 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
40840 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
40841 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
40842 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
40843 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
40844 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
40845 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
40846 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
40847 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
40848 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
40849 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
40850
40851 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
40852
40853 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
40854 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
40855 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
40856 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
40857 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
40858 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
40859 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
40860 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
40861 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
40862 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
40863 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
40864 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
40865 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
40866 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
40867 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
40868 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
40869 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
40870 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
40871 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
40872 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
40873 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
40874 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
40875 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
40876 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
40877 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
40878 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
40879 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
40880 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
40881 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
40882 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
40883 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
40884 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
40885 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
40886 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
40887 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
40888 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
40889 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
40890 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
40891 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
40892 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
40893 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
40894 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
40895 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
40896 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
40897 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
40898 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
40899 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
40900 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
40901 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
40902 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
40903 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
40904 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
40905 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
40906 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
40907 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
40908 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
40909 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
40910 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
40911 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
40912 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
40913 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
40914 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
40915 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
40916 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
40917 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
40918 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
40919 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
40920 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
40921 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
40922 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
40923 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
40924 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
40925 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
40926 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
40927 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
40928 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
40929 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
40930 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
40931 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
40932 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
40933 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
40934 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
40935 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
40936 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
40937 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
40938 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
40939 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
40940 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
40941 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
40942 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
40943 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
40944 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
40945 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
40946 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
40947 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
40948 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
40949 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
40950 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
40951 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
40952 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
40953 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
40954 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
40955 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
40956 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
40957 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
40958 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
40959 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
40960 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
40961 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
40962 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
40963 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
40964 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
40965 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
40966 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
40967 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
40968 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
40969 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
40970 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
40971 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
40972 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
40973 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
40974 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
40975 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
40976 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
40977 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
40978 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
40979 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
40980 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
40981 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
40982 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
40983 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
40984 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
40985 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
40986 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
40987 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
40988 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
40989 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
40990 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
40991 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
40992 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
40993 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
40994 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
40995 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
40996 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
40997 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
40998 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
40999 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
41000 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
41001 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
41002 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
41003 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
41004 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
41005 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
41006 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
41007 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
41008 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
41009 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
41010 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
41011 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
41012 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
41013 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
41014 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
41015 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
41016 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
41017 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
41018 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
41019 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
41020 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
41021 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
41022 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
41023 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
41024 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
41025 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
41026 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
41027 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
41028 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
41029 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
41030 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
41031 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
41032 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
41033 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
41034 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
41035 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
41036 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
41037 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
41038 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
41039 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
41040 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
41041 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
41042 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
41043 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
41044 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
41045 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
41046 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
41047 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
41048 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
41049 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
41050 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
41051 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
41052 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
41053 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
41054 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
41055 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
41056 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
41057 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
41058 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
41059 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
41060 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
41061 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
41062 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
41063 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
41064 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
41065 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
41066 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
41067 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
41068 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
41069 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
41070 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
41071 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
41072 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
41073 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
41074 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
41075 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
41076 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
41077 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
41078 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
41079 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
41080 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
41081 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
41082 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
41083 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
41084 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
41085 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
41086 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
41087 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
41088 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
41089 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
41090 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
41091 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
41092 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
41093 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
41094 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
41095 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
41096 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
41097 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
41098 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
41099 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
41100 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
41101 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
41102 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
41103 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
41104 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
41105 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
41106 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
41107 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
41108 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
41109 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
41110 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
41111 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
41112 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
41113 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
41114 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
41115 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
41116 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
41117 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
41118 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
41119 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
41120 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
41121 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
41122 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
41123 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
41124 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
41125 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
41126 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
41127 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
41128 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
41129 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
41130 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
41131 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
41132 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
41133 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
41134 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
41135 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
41136 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
41137 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
41138 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
41139 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
41140 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
41141 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
41142 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
41143 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
41144 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
41145 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
41146 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
41147 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
41148 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
41149 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
41150 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
41151 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
41152 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
41153 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
41154 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
41155 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
41156 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
41157 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
41158 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
41159 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
41160 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
41161 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
41162 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
41163 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
41164 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
41165 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
41166 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
41167 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
41168 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
41169 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
41170 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
41171 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
41172 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
41173 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
41174 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
41175 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
41176 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
41177
41178 // Work around a chicken/egg problem in drawlist.cpp
41179 wxPyDrawList_SetAPIPtr();
41180
41181 }
41182