]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_gdi_wrap.cpp
Add wxGraphicsMatrix::Get
[wxWidgets.git] / wxPython / src / mac / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_buffer swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_double swig_types[2]
2469 #define SWIGTYPE_p_form_ops_t swig_types[3]
2470 #define SWIGTYPE_p_int swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_void swig_types[8]
2475 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2476 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478 #define SWIGTYPE_p_wxAlphaPixelData swig_types[12]
2479 #define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13]
2480 #define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14]
2481 #define SWIGTYPE_p_wxBMPHandler swig_types[15]
2482 #define SWIGTYPE_p_wxBitmap swig_types[16]
2483 #define SWIGTYPE_p_wxBoxSizer swig_types[17]
2484 #define SWIGTYPE_p_wxBrush swig_types[18]
2485 #define SWIGTYPE_p_wxBrushList swig_types[19]
2486 #define SWIGTYPE_p_wxBufferedDC swig_types[20]
2487 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[21]
2488 #define SWIGTYPE_p_wxCURHandler swig_types[22]
2489 #define SWIGTYPE_p_wxChar swig_types[23]
2490 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491 #define SWIGTYPE_p_wxClientDC swig_types[25]
2492 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[26]
2493 #define SWIGTYPE_p_wxCloseEvent swig_types[27]
2494 #define SWIGTYPE_p_wxColor swig_types[28]
2495 #define SWIGTYPE_p_wxColour swig_types[29]
2496 #define SWIGTYPE_p_wxColourDatabase swig_types[30]
2497 #define SWIGTYPE_p_wxCommandEvent swig_types[31]
2498 #define SWIGTYPE_p_wxContextMenuEvent swig_types[32]
2499 #define SWIGTYPE_p_wxControl swig_types[33]
2500 #define SWIGTYPE_p_wxControlWithItems swig_types[34]
2501 #define SWIGTYPE_p_wxCursor swig_types[35]
2502 #define SWIGTYPE_p_wxDC swig_types[36]
2503 #define SWIGTYPE_p_wxDCBrushChanger swig_types[37]
2504 #define SWIGTYPE_p_wxDCClipper swig_types[38]
2505 #define SWIGTYPE_p_wxDCOverlay swig_types[39]
2506 #define SWIGTYPE_p_wxDCPenChanger swig_types[40]
2507 #define SWIGTYPE_p_wxDCTextColourChanger swig_types[41]
2508 #define SWIGTYPE_p_wxDash swig_types[42]
2509 #define SWIGTYPE_p_wxDateEvent swig_types[43]
2510 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44]
2511 #define SWIGTYPE_p_wxDropFilesEvent swig_types[45]
2512 #define SWIGTYPE_p_wxDuplexMode swig_types[46]
2513 #define SWIGTYPE_p_wxEffects swig_types[47]
2514 #define SWIGTYPE_p_wxEncodingConverter swig_types[48]
2515 #define SWIGTYPE_p_wxEraseEvent swig_types[49]
2516 #define SWIGTYPE_p_wxEvent swig_types[50]
2517 #define SWIGTYPE_p_wxEvtHandler swig_types[51]
2518 #define SWIGTYPE_p_wxFSFile swig_types[52]
2519 #define SWIGTYPE_p_wxFileSystem swig_types[53]
2520 #define SWIGTYPE_p_wxFlexGridSizer swig_types[54]
2521 #define SWIGTYPE_p_wxFocusEvent swig_types[55]
2522 #define SWIGTYPE_p_wxFont swig_types[56]
2523 #define SWIGTYPE_p_wxFontList swig_types[57]
2524 #define SWIGTYPE_p_wxFontMapper swig_types[58]
2525 #define SWIGTYPE_p_wxGBSizerItem swig_types[59]
2526 #define SWIGTYPE_p_wxGCDC swig_types[60]
2527 #define SWIGTYPE_p_wxGDIObjListBase swig_types[61]
2528 #define SWIGTYPE_p_wxGDIObject swig_types[62]
2529 #define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530 #define SWIGTYPE_p_wxGraphicsBrush swig_types[64]
2531 #define SWIGTYPE_p_wxGraphicsContext swig_types[65]
2532 #define SWIGTYPE_p_wxGraphicsFont swig_types[66]
2533 #define SWIGTYPE_p_wxGraphicsMatrix swig_types[67]
2534 #define SWIGTYPE_p_wxGraphicsObject swig_types[68]
2535 #define SWIGTYPE_p_wxGraphicsPath swig_types[69]
2536 #define SWIGTYPE_p_wxGraphicsPen swig_types[70]
2537 #define SWIGTYPE_p_wxGraphicsRenderer swig_types[71]
2538 #define SWIGTYPE_p_wxGridBagSizer swig_types[72]
2539 #define SWIGTYPE_p_wxGridSizer swig_types[73]
2540 #define SWIGTYPE_p_wxHeaderButtonParams swig_types[74]
2541 #define SWIGTYPE_p_wxICOHandler swig_types[75]
2542 #define SWIGTYPE_p_wxIcon swig_types[76]
2543 #define SWIGTYPE_p_wxIconBundle swig_types[77]
2544 #define SWIGTYPE_p_wxIconLocation swig_types[78]
2545 #define SWIGTYPE_p_wxIconizeEvent swig_types[79]
2546 #define SWIGTYPE_p_wxIdleEvent swig_types[80]
2547 #define SWIGTYPE_p_wxImage swig_types[81]
2548 #define SWIGTYPE_p_wxImageHandler swig_types[82]
2549 #define SWIGTYPE_p_wxImageList swig_types[83]
2550 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[84]
2551 #define SWIGTYPE_p_wxInitDialogEvent swig_types[85]
2552 #define SWIGTYPE_p_wxJPEGHandler swig_types[86]
2553 #define SWIGTYPE_p_wxKeyEvent swig_types[87]
2554 #define SWIGTYPE_p_wxLanguageInfo swig_types[88]
2555 #define SWIGTYPE_p_wxLayoutConstraints swig_types[89]
2556 #define SWIGTYPE_p_wxLocale swig_types[90]
2557 #define SWIGTYPE_p_wxMask swig_types[91]
2558 #define SWIGTYPE_p_wxMaximizeEvent swig_types[92]
2559 #define SWIGTYPE_p_wxMemoryDC swig_types[93]
2560 #define SWIGTYPE_p_wxMenu swig_types[94]
2561 #define SWIGTYPE_p_wxMenuBar swig_types[95]
2562 #define SWIGTYPE_p_wxMenuEvent swig_types[96]
2563 #define SWIGTYPE_p_wxMenuItem swig_types[97]
2564 #define SWIGTYPE_p_wxMetaFile swig_types[98]
2565 #define SWIGTYPE_p_wxMetaFileDC swig_types[99]
2566 #define SWIGTYPE_p_wxMirrorDC swig_types[100]
2567 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569 #define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570 #define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[105]
2572 #define SWIGTYPE_p_wxNativeFontInfo swig_types[106]
2573 #define SWIGTYPE_p_wxNativePixelData swig_types[107]
2574 #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[108]
2575 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[109]
2576 #define SWIGTYPE_p_wxNcPaintEvent swig_types[110]
2577 #define SWIGTYPE_p_wxNotifyEvent swig_types[111]
2578 #define SWIGTYPE_p_wxObject swig_types[112]
2579 #define SWIGTYPE_p_wxOverlay swig_types[113]
2580 #define SWIGTYPE_p_wxPCXHandler swig_types[114]
2581 #define SWIGTYPE_p_wxPNGHandler swig_types[115]
2582 #define SWIGTYPE_p_wxPNMHandler swig_types[116]
2583 #define SWIGTYPE_p_wxPaintDC swig_types[117]
2584 #define SWIGTYPE_p_wxPaintEvent swig_types[118]
2585 #define SWIGTYPE_p_wxPalette swig_types[119]
2586 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[120]
2587 #define SWIGTYPE_p_wxPaperSize swig_types[121]
2588 #define SWIGTYPE_p_wxPen swig_types[122]
2589 #define SWIGTYPE_p_wxPenList swig_types[123]
2590 #define SWIGTYPE_p_wxPixelDataBase swig_types[124]
2591 #define SWIGTYPE_p_wxPoint swig_types[125]
2592 #define SWIGTYPE_p_wxPoint2D swig_types[126]
2593 #define SWIGTYPE_p_wxPoint2DDouble swig_types[127]
2594 #define SWIGTYPE_p_wxPostScriptDC swig_types[128]
2595 #define SWIGTYPE_p_wxPrintData swig_types[129]
2596 #define SWIGTYPE_p_wxPrinterDC swig_types[130]
2597 #define SWIGTYPE_p_wxPseudoDC swig_types[131]
2598 #define SWIGTYPE_p_wxPyApp swig_types[132]
2599 #define SWIGTYPE_p_wxPyCommandEvent swig_types[133]
2600 #define SWIGTYPE_p_wxPyEvent swig_types[134]
2601 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[135]
2602 #define SWIGTYPE_p_wxPyImageHandler swig_types[136]
2603 #define SWIGTYPE_p_wxPyLocale swig_types[137]
2604 #define SWIGTYPE_p_wxPySizer swig_types[138]
2605 #define SWIGTYPE_p_wxPyValidator swig_types[139]
2606 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[140]
2607 #define SWIGTYPE_p_wxRect swig_types[141]
2608 #define SWIGTYPE_p_wxRect2DDouble swig_types[142]
2609 #define SWIGTYPE_p_wxRegion swig_types[143]
2610 #define SWIGTYPE_p_wxRegionIterator swig_types[144]
2611 #define SWIGTYPE_p_wxRendererNative swig_types[145]
2612 #define SWIGTYPE_p_wxRendererVersion swig_types[146]
2613 #define SWIGTYPE_p_wxScreenDC swig_types[147]
2614 #define SWIGTYPE_p_wxScrollEvent swig_types[148]
2615 #define SWIGTYPE_p_wxScrollWinEvent swig_types[149]
2616 #define SWIGTYPE_p_wxSetCursorEvent swig_types[150]
2617 #define SWIGTYPE_p_wxShowEvent swig_types[151]
2618 #define SWIGTYPE_p_wxSize swig_types[152]
2619 #define SWIGTYPE_p_wxSizeEvent swig_types[153]
2620 #define SWIGTYPE_p_wxSizer swig_types[154]
2621 #define SWIGTYPE_p_wxSizerItem swig_types[155]
2622 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[156]
2623 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[157]
2624 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[158]
2625 #define SWIGTYPE_p_wxStockGDI swig_types[159]
2626 #define SWIGTYPE_p_wxString swig_types[160]
2627 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[161]
2628 #define SWIGTYPE_p_wxTGAHandler swig_types[162]
2629 #define SWIGTYPE_p_wxTIFFHandler swig_types[163]
2630 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[164]
2631 #define SWIGTYPE_p_wxValidator swig_types[165]
2632 #define SWIGTYPE_p_wxWindow swig_types[166]
2633 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[167]
2634 #define SWIGTYPE_p_wxWindowDC swig_types[168]
2635 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[169]
2636 #define SWIGTYPE_p_wxXPMHandler swig_types[170]
2637 static swig_type_info *swig_types[172];
2638 static swig_module_info swig_module = {swig_types, 171, 0, 0, 0, 0};
2639 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2640 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2641
2642 /* -------- TYPES TABLE (END) -------- */
2643
2644 #if (PY_VERSION_HEX <= 0x02000000)
2645 # if !defined(SWIG_PYTHON_CLASSIC)
2646 # error "This python version requires to use swig with the '-classic' option"
2647 # endif
2648 #endif
2649 #if (PY_VERSION_HEX <= 0x02020000)
2650 # error "This python version requires to use swig with the '-nomodern' option"
2651 #endif
2652 #if (PY_VERSION_HEX <= 0x02020000)
2653 # error "This python version requires to use swig with the '-nomodernargs' option"
2654 #endif
2655 #ifndef METH_O
2656 # error "This python version requires to use swig with the '-nofastunpack' option"
2657 #endif
2658
2659 /*-----------------------------------------------
2660 @(target):= _gdi_.so
2661 ------------------------------------------------*/
2662 #define SWIG_init init_gdi_
2663
2664 #define SWIG_name "_gdi_"
2665
2666 #define SWIGVERSION 0x010329
2667
2668
2669 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2670 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2671
2672
2673 #include <stdexcept>
2674
2675
2676 namespace swig {
2677 class PyObject_ptr {
2678 protected:
2679 PyObject *_obj;
2680
2681 public:
2682 PyObject_ptr() :_obj(0)
2683 {
2684 }
2685
2686 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2687 {
2688 Py_XINCREF(_obj);
2689 }
2690
2691 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2692 {
2693 if (initial_ref) Py_XINCREF(_obj);
2694 }
2695
2696 PyObject_ptr & operator=(const PyObject_ptr& item)
2697 {
2698 Py_XINCREF(item._obj);
2699 Py_XDECREF(_obj);
2700 _obj = item._obj;
2701 return *this;
2702 }
2703
2704 ~PyObject_ptr()
2705 {
2706 Py_XDECREF(_obj);
2707 }
2708
2709 operator PyObject *() const
2710 {
2711 return _obj;
2712 }
2713
2714 PyObject *operator->() const
2715 {
2716 return _obj;
2717 }
2718 };
2719 }
2720
2721
2722 namespace swig {
2723 struct PyObject_var : PyObject_ptr {
2724 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2725
2726 PyObject_var & operator = (PyObject* obj)
2727 {
2728 Py_XDECREF(_obj);
2729 _obj = obj;
2730 return *this;
2731 }
2732 };
2733 }
2734
2735
2736 #include "wx/wxPython/wxPython.h"
2737 #include "wx/wxPython/pyclasses.h"
2738
2739
2740 static const wxString wxPyEmptyString(wxEmptyString);
2741
2742 #define SWIG_From_long PyInt_FromLong
2743
2744
2745 SWIGINTERNINLINE PyObject *
2746 SWIG_From_int (int value)
2747 {
2748 return SWIG_From_long (value);
2749 }
2750
2751
2752 #include <limits.h>
2753 #ifndef LLONG_MIN
2754 # define LLONG_MIN LONG_LONG_MIN
2755 #endif
2756 #ifndef LLONG_MAX
2757 # define LLONG_MAX LONG_LONG_MAX
2758 #endif
2759 #ifndef ULLONG_MAX
2760 # define ULLONG_MAX ULONG_LONG_MAX
2761 #endif
2762
2763
2764 SWIGINTERN int
2765 SWIG_AsVal_long (PyObject* obj, long* val)
2766 {
2767 if (PyNumber_Check(obj)) {
2768 if (val) *val = PyInt_AsLong(obj);
2769 return SWIG_OK;
2770 }
2771 return SWIG_TypeError;
2772 }
2773
2774
2775 SWIGINTERN int
2776 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2777 {
2778 long v = 0;
2779 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2780 return SWIG_TypeError;
2781 }
2782 else if (val)
2783 *val = (unsigned long)v;
2784 return SWIG_OK;
2785 }
2786
2787
2788 SWIGINTERN int
2789 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2790 {
2791 unsigned long v;
2792 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2793 if (SWIG_IsOK(res)) {
2794 if ((v > UCHAR_MAX)) {
2795 return SWIG_OverflowError;
2796 } else {
2797 if (val) *val = static_cast< unsigned char >(v);
2798 }
2799 }
2800 return res;
2801 }
2802
2803
2804 SWIGINTERNINLINE PyObject*
2805 SWIG_From_unsigned_SS_long (unsigned long value)
2806 {
2807 return (value > LONG_MAX) ?
2808 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2809 }
2810
2811
2812 SWIGINTERNINLINE PyObject *
2813 SWIG_From_unsigned_SS_char (unsigned char value)
2814 {
2815 return SWIG_From_unsigned_SS_long (value);
2816 }
2817
2818 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2819 wxColour temp, *obj = &temp;
2820 if ( other == Py_None ) return false;
2821 if ( ! wxColour_helper(other, &obj) ) {
2822 PyErr_Clear();
2823 return false;
2824 }
2825 return self->operator==(*obj);
2826 }
2827 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2828 wxColour temp, *obj = &temp;
2829 if ( other == Py_None ) return true;
2830 if ( ! wxColour_helper(other, &obj)) {
2831 PyErr_Clear();
2832 return true;
2833 }
2834 return self->operator!=(*obj);
2835 }
2836
2837 SWIGINTERN int
2838 SWIG_AsVal_bool (PyObject *obj, bool *val)
2839 {
2840 if (obj == Py_True) {
2841 if (val) *val = true;
2842 return SWIG_OK;
2843 } else if (obj == Py_False) {
2844 if (val) *val = false;
2845 return SWIG_OK;
2846 } else {
2847 long v = 0;
2848 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2849 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2850 return res;
2851 }
2852 }
2853
2854 SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2855 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
2856 int red = -1;
2857 int green = -1;
2858 int blue = -1;
2859 int alpha = wxALPHA_OPAQUE;
2860 if (self->IsOk()) {
2861 red = self->Red();
2862 green = self->Green();
2863 blue = self->Blue();
2864 alpha = self->Alpha();
2865 }
2866 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2867 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2868 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2869 if (includeAlpha)
2870 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
2871 return rv;
2872 }
2873 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2874 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2875 }
2876
2877 SWIGINTERN int
2878 SWIG_AsVal_int (PyObject * obj, int *val)
2879 {
2880 long v;
2881 int res = SWIG_AsVal_long (obj, &v);
2882 if (SWIG_IsOK(res)) {
2883 if ((v < INT_MIN || v > INT_MAX)) {
2884 return SWIG_OverflowError;
2885 } else {
2886 if (val) *val = static_cast< int >(v);
2887 }
2888 }
2889 return res;
2890 }
2891
2892 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2893 wxDash* dashes;
2894 int count = self->GetDashes(&dashes);
2895 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2896 PyObject* retval = PyList_New(0);
2897 for (int x=0; x<count; x++) {
2898 PyObject* pyint = PyInt_FromLong(dashes[x]);
2899 PyList_Append(retval, pyint);
2900 Py_DECREF(pyint);
2901 }
2902 wxPyEndBlockThreads(blocked);
2903 return retval;
2904 }
2905 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2906 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2907 int size = PyList_Size(pyDashes);
2908 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2909
2910 // black magic warning! The array of wxDashes needs to exist as
2911 // long as the pen does because wxPen does not copy the array. So
2912 // stick a copy in a Python string object and attach it to _self,
2913 // and then call SetDashes with a pointer to that array. Then
2914 // when the Python pen object is destroyed the array will be
2915 // cleaned up too.
2916 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2917 PyObject_SetAttrString(_self, "_dashes", strDashes);
2918
2919 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2920 delete [] dashes;
2921 Py_DECREF(strDashes);
2922 wxPyEndBlockThreads(blocked);
2923 }
2924 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2925 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2926
2927 SWIGINTERNINLINE PyObject *
2928 SWIG_From_short (short value)
2929 {
2930 return SWIG_From_long (value);
2931 }
2932
2933
2934 SWIGINTERN int
2935 SWIG_AsVal_short (PyObject * obj, short *val)
2936 {
2937 long v;
2938 int res = SWIG_AsVal_long (obj, &v);
2939 if (SWIG_IsOK(res)) {
2940 if ((v < SHRT_MIN || v > SHRT_MAX)) {
2941 return SWIG_OverflowError;
2942 } else {
2943 if (val) *val = static_cast< short >(v);
2944 }
2945 }
2946 return res;
2947 }
2948
2949
2950 #include <wx/rawbmp.h>
2951
2952
2953 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2954 // appears to me that the other platforms are already doing it, so I'll just
2955 // automatically do it for wxMSW here.
2956 #ifdef __WXMSW__
2957 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2958 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2959 #else
2960 #define wxPy_premultiply(p, a) (p)
2961 #define wxPy_unpremultiply(p, a) (p)
2962 #endif
2963
2964
2965 #include <wx/image.h>
2966
2967 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2968 char** cArray = NULL;
2969 int count;
2970
2971 if (!PyList_Check(listOfStrings)) {
2972 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2973 return NULL;
2974 }
2975 count = PyList_Size(listOfStrings);
2976 cArray = new char*[count];
2977
2978 for(int x=0; x<count; x++) {
2979 // TODO: Need some validation and error checking here
2980 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2981 }
2982 return cArray;
2983 }
2984
2985
2986 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2987 char** cArray = NULL;
2988 wxBitmap* bmp;
2989
2990 cArray = ConvertListOfStrings(listOfStrings);
2991 if (! cArray)
2992 return NULL;
2993 bmp = new wxBitmap(cArray);
2994 delete [] cArray;
2995 return bmp;
2996 }
2997 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2998 char* buf;
2999 Py_ssize_t length;
3000 PyString_AsStringAndSize(bits, &buf, &length);
3001 return new wxBitmap(buf, width, height, depth);
3002 }
3003 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
3004 wxSize size(self->GetWidth(), self->GetHeight());
3005 return size;
3006 }
3007 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
3008 wxMask *mask = new wxMask(*self, colour);
3009 self->SetMask(mask);
3010 }
3011 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
3012 self->SetWidth(size.x);
3013 self->SetHeight(size.y);
3014 }
3015 SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){
3016 int height=self->GetHeight();
3017 int width=self->GetWidth();
3018
3019 if (DATASIZE != width * height * 3) {
3020 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3021 }
3022 wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3023 if (! pixData) {
3024 // raise an exception...
3025 wxPyErr_SetString(PyExc_RuntimeError,
3026 "Failed to gain raw access to bitmap data.");
3027 return;
3028 }
3029
3030 wxNativePixelData::Iterator p(pixData);
3031 for (int y=0; y<height; y++) {
3032 wxNativePixelData::Iterator rowStart = p;
3033 for (int x=0; x<width; x++) {
3034 p.Red() = *(data++);
3035 p.Green() = *(data++);
3036 p.Blue() = *(data++);
3037 ++p;
3038 }
3039 p = rowStart;
3040 p.OffsetY(pixData, 1);
3041 }
3042 }
3043 SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){
3044 int height=self->GetHeight();
3045 int width=self->GetWidth();
3046
3047 if (DATASIZE != width * height * 4) {
3048 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3049 }
3050 wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3051 if (! pixData) {
3052 // raise an exception...
3053 wxPyErr_SetString(PyExc_RuntimeError,
3054 "Failed to gain raw access to bitmap data.");
3055 return;
3056 }
3057
3058 pixData.UseAlpha();
3059 wxAlphaPixelData::Iterator p(pixData);
3060 for (int y=0; y<height; y++) {
3061 wxAlphaPixelData::Iterator rowStart = p;
3062 for (int x=0; x<width; x++) {
3063 byte a = data[3];
3064 p.Red() = wxPy_premultiply(*(data++), a);
3065 p.Green() = wxPy_premultiply(*(data++), a);
3066 p.Blue() = wxPy_premultiply(*(data++), a);
3067 p.Alpha() = a; data++;
3068 ++p;
3069 }
3070 p = rowStart;
3071 p.OffsetY(pixData, 1);
3072 }
3073 }
3074 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; }
3075 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; }
3076
3077 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3078 buffer data, int DATASIZE,
3079 buffer alpha, int ALPHASIZE)
3080 {
3081 if (DATASIZE != width*height*3) {
3082 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3083 return NULL;
3084 }
3085
3086 if (ALPHASIZE != width*height) {
3087 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3088 return NULL;
3089 }
3090
3091 wxBitmap* bmp = new wxBitmap(width, height, 32);
3092 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3093 if (! pixData) {
3094 // raise an exception...
3095 wxPyErr_SetString(PyExc_RuntimeError,
3096 "Failed to gain raw access to bitmap data.");
3097 return NULL;
3098 }
3099
3100 pixData.UseAlpha();
3101 wxAlphaPixelData::Iterator p(pixData);
3102 for (int y=0; y<height; y++) {
3103 wxAlphaPixelData::Iterator rowStart = p;
3104 for (int x=0; x<width; x++) {
3105 byte a = *(alpha++);
3106 p.Red() = wxPy_premultiply(*(data++), a);
3107 p.Green() = wxPy_premultiply(*(data++), a);
3108 p.Blue() = wxPy_premultiply(*(data++), a);
3109 p.Alpha() = a;
3110 ++p;
3111 }
3112 p = rowStart;
3113 p.OffsetY(pixData, 1);
3114 }
3115 return bmp;
3116 }
3117
3118 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3119 {
3120 if (DATASIZE != width*height*3) {
3121 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3122 return NULL;
3123 }
3124
3125 wxBitmap* bmp = new wxBitmap(width, height, 24);
3126 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3127 if (! pixData) {
3128 // raise an exception...
3129 wxPyErr_SetString(PyExc_RuntimeError,
3130 "Failed to gain raw access to bitmap data.");
3131 return NULL;
3132 }
3133
3134 wxNativePixelData::Iterator p(pixData);
3135 for (int y=0; y<height; y++) {
3136 wxNativePixelData::Iterator rowStart = p;
3137 for (int x=0; x<width; x++) {
3138 p.Red() = *(data++);
3139 p.Green() = *(data++);
3140 p.Blue() = *(data++);
3141 ++p;
3142 }
3143 p = rowStart;
3144 p.OffsetY(pixData, 1);
3145 }
3146 return bmp;
3147 }
3148
3149
3150 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3151 {
3152 if (DATASIZE != width*height*4) {
3153 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3154 return NULL;
3155 }
3156
3157 wxBitmap* bmp = new wxBitmap(width, height, 32);
3158 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3159 if (! pixData) {
3160 // raise an exception...
3161 wxPyErr_SetString(PyExc_RuntimeError,
3162 "Failed to gain raw access to bitmap data.");
3163 return NULL;
3164 }
3165
3166 pixData.UseAlpha();
3167 wxAlphaPixelData::Iterator p(pixData);
3168 for (int y=0; y<height; y++) {
3169 wxAlphaPixelData::Iterator rowStart = p;
3170 for (int x=0; x<width; x++) {
3171 byte a = data[3];
3172 p.Red() = wxPy_premultiply(*(data++), a);
3173 p.Green() = wxPy_premultiply(*(data++), a);
3174 p.Blue() = wxPy_premultiply(*(data++), a);
3175 p.Alpha() = a; data++;
3176 ++p;
3177 }
3178 p = rowStart;
3179 p.OffsetY(pixData, 1);
3180 }
3181 return bmp;
3182 }
3183
3184
3185 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3186
3187 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3188 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3189 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3190 self->Red() = red;
3191 self->Green() = green;
3192 self->Blue() = blue;
3193 }
3194 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3195 PyObject* rv = PyTuple_New(3);
3196 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3197 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3198 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3199 return rv;
3200 }
3201
3202 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3203
3204 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3205 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3206 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3207 self->Red() = wxPy_premultiply(red, alpha);
3208 self->Green() = wxPy_premultiply(green, alpha);
3209 self->Blue() = wxPy_premultiply(blue, alpha);
3210 self->Alpha() = alpha;
3211 }
3212 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3213 PyObject* rv = PyTuple_New(4);
3214 int red = self->Red();
3215 int green = self->Green();
3216 int blue = self->Blue();
3217 int alpha = self->Alpha();
3218
3219 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3220 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3221 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3222 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3223 return rv;
3224 }
3225 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3226 if ( !colour.IsOk() )
3227 return new wxMask(bitmap, *wxBLACK);
3228 else
3229 return new wxMask(bitmap, colour);
3230 }
3231
3232 #include <wx/iconbndl.h>
3233
3234 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3235 wxIcon* icon = new wxIcon();
3236 icon->CopyFromBitmap(bmp);
3237 return icon;
3238 }
3239 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3240 char** cArray = NULL;
3241 wxIcon* icon;
3242
3243 cArray = ConvertListOfStrings(listOfStrings);
3244 if (! cArray)
3245 return NULL;
3246 icon = new wxIcon(cArray);
3247 delete [] cArray;
3248 return icon;
3249 }
3250 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3251
3252
3253
3254 return new wxIconLocation(*filename);
3255
3256 }
3257 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3258
3259
3260
3261 // do nothing
3262
3263 }
3264 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3265
3266
3267
3268 return -1;
3269
3270 }
3271 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3272 #ifdef __WXGTK__
3273 wxImage img(cursorName, type);
3274 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3275 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3276 return new wxCursor(img);
3277 #else
3278 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3279 #endif
3280 }
3281
3282
3283 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3284 (*self) ++;
3285 }
3286 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3287 return self->operator bool();
3288 }
3289
3290 #include <wx/fontutil.h>
3291 #include <wx/fontmap.h>
3292 #include <wx/fontenum.h>
3293
3294 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3295 return self->ToString();
3296 }
3297
3298 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3299 static wxNativeEncodingInfo info;
3300 if ( wxGetNativeFontEncoding(encoding, &info) )
3301 return &info;
3302 else
3303 return NULL;
3304 }
3305
3306
3307 SWIGINTERNINLINE PyObject *
3308 SWIG_From_size_t (size_t value)
3309 {
3310 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3311 }
3312
3313
3314 SWIGINTERNINLINE int
3315 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3316 {
3317 unsigned long v;
3318 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3319 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3320 return res;
3321 }
3322
3323 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3324 wxFontEncoding alt_enc;
3325 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3326 return PyInt_FromLong(alt_enc);
3327 else {
3328 Py_INCREF(Py_None);
3329 return Py_None;
3330 }
3331 }
3332 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3333 wxNativeFontInfo nfi;
3334 nfi.FromString(info);
3335 return new wxFont(nfi);
3336 }
3337 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3338 return wxFont::New(pointSize, family, flags, face, encoding);
3339 }
3340 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3341 return wxFontBase::New(pixelSize, family,
3342 style, weight, underlined,
3343 face, encoding);
3344 }
3345 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3346 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3347 }
3348 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3349 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3350
3351 class wxPyFontEnumerator : public wxFontEnumerator {
3352 public:
3353 wxPyFontEnumerator() {}
3354 ~wxPyFontEnumerator() {}
3355
3356 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3357 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3358
3359 PYPRIVATE;
3360 };
3361
3362 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3363 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3364
3365
3366 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3367 PyObject* ret;
3368 wxArrayString arr = wxFontEnumerator::GetEncodings();
3369 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3370 ret = wxArrayString2PyList_helper(arr);
3371 wxPyEndBlockThreads(blocked);
3372 return ret;
3373 }
3374 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3375 PyObject* ret;
3376 wxArrayString arr = wxFontEnumerator::GetFacenames();
3377 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3378 ret = wxArrayString2PyList_helper(arr);
3379 wxPyEndBlockThreads(blocked);
3380 return ret;
3381 }
3382
3383 #include <locale.h>
3384
3385 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3386 wxLocale* loc;
3387 if (language == -1)
3388 loc = new wxLocale();
3389 else
3390 loc = new wxLocale(language, flags);
3391 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3392 // for the floating point conversions and such to work right.
3393 #if PY_VERSION_HEX < 0x02040000
3394 setlocale(LC_NUMERIC, "C");
3395 #endif
3396 return loc;
3397 }
3398 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3399 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3400 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3401 // for the floating point conversions and such to work right.
3402 #if PY_VERSION_HEX < 0x02040000
3403 setlocale(LC_NUMERIC, "C");
3404 #endif
3405 return rc;
3406 }
3407 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3408 bool rc = self->Init(language, flags);
3409 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3410 // for the floating point conversions and such to work right.
3411 #if PY_VERSION_HEX < 0x02040000
3412 setlocale(LC_NUMERIC, "C");
3413 #endif
3414 return rc;
3415 }
3416
3417 class wxPyLocale : public wxLocale
3418 {
3419 public:
3420 wxPyLocale();
3421
3422 wxPyLocale(const wxChar *szName, // name (for messages)
3423 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3424 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3425 bool bLoadDefault = true, // preload wxstd.mo?
3426 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3427
3428 wxPyLocale(int language, // wxLanguage id or custom language
3429 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3430
3431 ~wxPyLocale();
3432
3433 virtual const wxChar *GetString(const wxChar *szOrigString,
3434 const wxChar *szDomain = NULL) const;
3435 virtual const wxChar *GetString(const wxChar *szOrigString,
3436 const wxChar *szOrigString2, size_t n,
3437 const wxChar *szDomain = NULL) const;
3438
3439 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3440 const wxChar *szDomain = NULL) const;
3441 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3442 const wxChar *szOrigString2, size_t n,
3443 const wxChar *szDomain = NULL) const;
3444
3445 PYPRIVATE;
3446 private:
3447 DECLARE_NO_COPY_CLASS(wxPyLocale)
3448 };
3449
3450 wxPyLocale::wxPyLocale() : wxLocale()
3451 {
3452 }
3453
3454 wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3455 const wxChar *szShort, // dir prefix (for msg files)
3456 const wxChar *szLocale, // locale (for setlocale)
3457 bool bLoadDefault, // preload wxstd.mo?
3458 bool bConvertEncoding) // convert Win<->Unix if necessary?
3459 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3460 {
3461 }
3462
3463 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3464 int flags) : wxLocale(language, flags)
3465 {
3466 }
3467
3468 wxPyLocale::~wxPyLocale()
3469 {
3470 }
3471
3472 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3473 const wxChar *szDomain) const
3474 {
3475 wxChar *str = GetSingularString(szOrigString, szDomain);
3476 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3477 }
3478
3479 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3480 const wxChar *szOrigString2, size_t n,
3481 const wxChar *szDomain) const
3482 {
3483 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3484 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3485 }
3486
3487 wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3488 const wxChar *szDomain) const
3489 {
3490 bool found;
3491 static wxString str;
3492 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3493 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3494 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3495 PyObject* param1 = wx2PyString(szOrigString);
3496 PyObject* param2 = wx2PyString(szDomain);
3497 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3498 Py_DECREF(param1);
3499 Py_DECREF(param2);
3500 if (ret) {
3501 str = Py2wxString(ret);
3502 Py_DECREF(ret);
3503 }
3504 }
3505 wxPyEndBlockThreads(blocked);
3506 return (found ? (wxChar*)str.c_str() : NULL);
3507 }
3508
3509 wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3510 const wxChar *szOrigString2, size_t n,
3511 const wxChar *szDomain) const
3512 {
3513 bool found;
3514 static wxString str;
3515 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3516 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3517 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3518 PyObject* param1 = wx2PyString(szOrigString);
3519 PyObject* param2 = wx2PyString(szOrigString2);
3520 PyObject* param4 = wx2PyString(szDomain);
3521 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3522 Py_DECREF(param1);
3523 Py_DECREF(param2);
3524 Py_DECREF(param4);
3525 if( ret) {
3526 str = Py2wxString(ret);
3527 Py_DECREF(ret);
3528 }
3529 }
3530 wxPyEndBlockThreads(blocked);
3531 return (found ? (wxChar*)str.c_str() : NULL);
3532 }
3533
3534 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3535 wxPyLocale* loc;
3536 if (language == -1)
3537 loc = new wxPyLocale();
3538 else
3539 loc = new wxPyLocale(language, flags);
3540 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3541 // for the floating point conversions and such to work right.
3542 #if PY_VERSION_HEX < 0x02040000
3543 setlocale(LC_NUMERIC, "C");
3544 #endif
3545 return loc;
3546 }
3547
3548 #include "wx/wxPython/pydrawxxx.h"
3549
3550 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3551 wxColour col;
3552 self->GetPixel(x, y, &col);
3553 return col;
3554 }
3555 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3556 wxColour col;
3557 self->GetPixel(pt, &col);
3558 return col;
3559 }
3560
3561 SWIGINTERN int
3562 SWIG_AsVal_double (PyObject *obj, double* val)
3563 {
3564 if (PyNumber_Check(obj)) {
3565 if (val) *val = PyFloat_AsDouble(obj);
3566 return SWIG_OK;
3567 }
3568 return SWIG_TypeError;
3569 }
3570
3571 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3572 wxRect rv;
3573 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3574 return rv;
3575 }
3576 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3577 wxRect rect;
3578 self->GetClippingBox(rect);
3579 return rect;
3580 }
3581 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3582 wxArrayInt widths;
3583 self->GetPartialTextExtents(text, widths);
3584 return widths;
3585 }
3586
3587 #define SWIG_From_double PyFloat_FromDouble
3588
3589 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3590 self->SetLogicalOrigin(point.x, point.y);
3591 }
3592 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3593 self->SetDeviceOrigin(point.x, point.y);
3594 }
3595 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3596 self->CalcBoundingBox(point.x, point.y);
3597 }
3598 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3599 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3600 }
3601 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3602 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3603 }
3604 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3605 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3606 }
3607 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3608 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3609 }
3610 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3611 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3612 }
3613 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3614 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3615 }
3616
3617 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3618 *x1 = dc->MinX();
3619 *y1 = dc->MinY();
3620 *x2 = dc->MaxX();
3621 *y2 = dc->MaxY();
3622 }
3623
3624
3625 #include <wx/dcbuffer.h>
3626
3627
3628 #include <wx/dcps.h>
3629
3630
3631 #include <wx/metafile.h>
3632
3633
3634 #include <wx/graphics.h>
3635
3636
3637 #if !wxUSE_GRAPHICS_CONTEXT
3638 // C++ stub classes for platforms or build configurations that don't have
3639 // wxGraphicsContext yet.
3640
3641 class wxGraphicsRenderer;
3642 class wxGraphicsMatrix;
3643
3644
3645 class wxGraphicsObject : public wxObject
3646 {
3647 public :
3648 wxGraphicsObject() {}
3649 wxGraphicsObject( wxGraphicsRenderer* ) {
3650 PyErr_SetString(PyExc_NotImplementedError,
3651 "wx.GraphicsObject is not available on this platform.");
3652 }
3653 wxGraphicsObject( const wxGraphicsObject& ) {}
3654 virtual ~wxGraphicsObject() {}
3655 bool IsNull() const { return false; }
3656 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3657 } ;
3658
3659
3660
3661 class wxGraphicsPen : public wxGraphicsObject
3662 {
3663 public:
3664 wxGraphicsPen() {}
3665 virtual ~wxGraphicsPen() {}
3666 } ;
3667 wxGraphicsPen wxNullGraphicsPen;
3668
3669
3670
3671 class wxGraphicsBrush : public wxGraphicsObject
3672 {
3673 public :
3674 wxGraphicsBrush() {}
3675 virtual ~wxGraphicsBrush() {}
3676 } ;
3677 wxGraphicsBrush wxNullGraphicsBrush;
3678
3679
3680
3681 class wxGraphicsFont : public wxGraphicsObject
3682 {
3683 public :
3684 wxGraphicsFont() {}
3685 virtual ~wxGraphicsFont() {}
3686 } ;
3687 wxGraphicsFont wxNullGraphicsFont;
3688
3689
3690
3691 class wxGraphicsPath : public wxGraphicsObject
3692 {
3693 public :
3694 wxGraphicsPath() { }
3695 wxGraphicsPath(wxGraphicsRenderer* ) {
3696 PyErr_SetString(PyExc_NotImplementedError,
3697 "wx.GraphicsPath is not available on this platform.");
3698 }
3699 virtual ~wxGraphicsPath() {}
3700
3701 void MoveToPoint( wxDouble, wxDouble ) {}
3702 void MoveToPoint( const wxPoint2DDouble& ) {}
3703 void AddLineToPoint( wxDouble, wxDouble ) {}
3704 void AddLineToPoint( const wxPoint2DDouble& ) {}
3705 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3706 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3707 void AddPath( const wxGraphicsPath& ) {}
3708 void CloseSubpath() {}
3709 void GetCurrentPoint( wxDouble&, wxDouble&) const {}
3710 wxPoint2DDouble GetCurrentPoint() const { return wxPoint2D(0,0); }
3711 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3712 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
3713
3714 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3715 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3716 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3717 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3718
3719 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3720 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3721 void * GetNativePath() const { return NULL; }
3722 void UnGetNativePath(void *) const {}
3723 void Transform( const wxGraphicsMatrix& ) {}
3724 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) const {}
3725 wxRect2D GetBox() const { return wxRect2D(0,0,0,0); }
3726
3727 bool Contains( wxDouble , wxDouble , int ) const { return false; }
3728 bool Contains( const wxPoint2DDouble& , int ) const { return false; }
3729 };
3730 wxGraphicsPath wxNullGraphicsPath;
3731
3732
3733 class wxGraphicsMatrix : public wxGraphicsObject
3734 {
3735 public :
3736 wxGraphicsMatrix() { }
3737 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3738 PyErr_SetString(PyExc_NotImplementedError,
3739 "wx.GraphicsMatrix is not available on this platform.");
3740 }
3741 virtual ~wxGraphicsMatrix() {}
3742 virtual void Concat( const wxGraphicsMatrix & ) {}
3743 virtual void Copy( const wxGraphicsMatrix & ) {}
3744 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3745 wxDouble , wxDouble ) {}
3746 virtual void Get(wxDouble*, wxDouble*, wxDouble*,
3747 wxDouble*, wxDouble*, wxDouble*) {}
3748 virtual void Invert() {}
3749 virtual bool IsEqual( const wxGraphicsMatrix& t) const { return false; }
3750 virtual bool IsIdentity() const { return false; }
3751 virtual void Translate( wxDouble , wxDouble ) {}
3752 virtual void Scale( wxDouble , wxDouble ) {}
3753 virtual void Rotate( wxDouble ) {}
3754 virtual void TransformPoint( wxDouble *, wxDouble * ) const {}
3755 virtual void TransformDistance( wxDouble *, wxDouble * ) const {}
3756 virtual void * GetNativeMatrix() const { return NULL; }
3757 };
3758 wxGraphicsMatrix wxNullGraphicsMatrix;
3759
3760
3761 class wxGraphicsContext : public wxGraphicsObject
3762 {
3763 public:
3764
3765 wxGraphicsContext(wxGraphicsRenderer* ) {
3766 PyErr_SetString(PyExc_NotImplementedError,
3767 "wx.GraphicsContext is not available on this platform.");
3768 }
3769
3770 virtual ~wxGraphicsContext() {}
3771
3772 static wxGraphicsContext* Create() {
3773 PyErr_SetString(PyExc_NotImplementedError,
3774 "wx.GraphicsContext is not available on this platform.");
3775 return NULL;
3776 }
3777 static wxGraphicsContext* Create( const wxWindowDC& ) {
3778 PyErr_SetString(PyExc_NotImplementedError,
3779 "wx.GraphicsContext is not available on this platform.");
3780 return NULL;
3781 }
3782
3783 static wxGraphicsContext* CreateFromNative( void * ) {
3784 PyErr_SetString(PyExc_NotImplementedError,
3785 "wx.GraphicsContext is not available on this platform.");
3786 return NULL;
3787 }
3788
3789 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3790 PyErr_SetString(PyExc_NotImplementedError,
3791 "wx.GraphicsContext is not available on this platform.");
3792 return NULL;
3793 }
3794
3795 static wxGraphicsContext* Create( wxWindow* ) {
3796 PyErr_SetString(PyExc_NotImplementedError,
3797 "wx.GraphicsContext is not available on this platform.");
3798 return NULL;
3799 }
3800
3801 wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
3802
3803 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
3804
3805 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
3806
3807 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3808 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
3809
3810 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3811 wxDouble xc, wxDouble yc, wxDouble radius,
3812 const wxColour &oColor, const wxColour &cColor) { return wxNullGraphicsBrush; }
3813
3814 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return wxNullGraphicsFont; }
3815
3816 virtual wxGraphicsMatrix CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3817 wxDouble, wxDouble) { return wxNullGraphicsMatrix; }
3818
3819 virtual void PushState() {}
3820 virtual void PopState() {}
3821 virtual void Clip( const wxRegion & ) {}
3822 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3823 virtual void ResetClip() {}
3824 virtual void * GetNativeContext() { return NULL; }
3825 virtual int GetLogicalFunction() const { return 0; }
3826 virtual bool SetLogicalFunction(int ) {}
3827 virtual void Translate( wxDouble , wxDouble ) {}
3828 virtual void Scale( wxDouble , wxDouble ) {}
3829 virtual void Rotate( wxDouble ) {}
3830 virtual void ConcatTransform( const wxGraphicsMatrix& ) {}
3831 virtual void SetTransform( const wxGraphicsMatrix& ) {}
3832 virtual wxGraphicsMatrix GetTransform() const { return wxNullGraphicsMatrix; }
3833
3834 virtual void SetPen( const wxGraphicsPen& ) {}
3835 void SetPen( const wxPen& ) {}
3836
3837 virtual void SetBrush( const wxGraphicsBrush& ) {}
3838 void SetBrush( const wxBrush& ) {}
3839
3840 virtual void SetFont( const wxGraphicsFont& ) {}
3841 void SetFont( const wxFont&, const wxColour& ) {}
3842
3843 virtual void StrokePath( const wxGraphicsPath & ) {}
3844 virtual void FillPath( const wxGraphicsPath &, int ) {}
3845 virtual void DrawPath( const wxGraphicsPath &, int ) {}
3846
3847 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3848 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3849 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxGraphicsBrush ) {}
3850 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble , wxGraphicsBrush ) {}
3851 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3852 wxDouble *, wxDouble * ) const {}
3853 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3854
3855 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3856 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3857
3858 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3859 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3860 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3861 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3862 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3863 virtual void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3864 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3865 virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {}
3866 virtual bool ShouldOffset() const { return false; }
3867 };
3868
3869
3870 class wxGraphicsRenderer : public wxObject
3871 {
3872 public :
3873 wxGraphicsRenderer() {
3874 PyErr_SetString(PyExc_NotImplementedError,
3875 "wx.GraphicsRenderer is not available on this platform.");
3876 }
3877
3878 virtual ~wxGraphicsRenderer() {}
3879
3880 static wxGraphicsRenderer* GetDefaultRenderer() {
3881 PyErr_SetString(PyExc_NotImplementedError,
3882 "wx.GraphicsRenderer is not available on this platform.");
3883 return NULL;
3884 }
3885
3886 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3887 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3888 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3889 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
3890 virtual wxGraphicsContext * CreateMeasuringContext() { return NULL; }
3891
3892 virtual wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
3893
3894 virtual wxGraphicsMatrix CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3895 wxDouble , wxDouble ) { return wxNullGraphicsMatrix; }
3896
3897 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
3898 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
3899 virtual wxGraphicsBrush CreateLinearGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble ,
3900 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
3901 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3902 const wxColour &, const wxColour &) { return wxNullGraphicsBrush; }
3903 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGraphicsFont; }
3904 };
3905
3906
3907
3908 class wxGCDC: public wxWindowDC
3909 {
3910 public:
3911 wxGCDC(const wxWindowDC&) {
3912 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3913 PyErr_SetString(PyExc_NotImplementedError,
3914 "wxGCDC is not available on this platform.");
3915 wxPyEndBlockThreads(blocked);
3916 }
3917
3918 wxGCDC(const wxWindow*) {
3919 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3920 PyErr_SetString(PyExc_NotImplementedError,
3921 "wxGCDC is not available on this platform.");
3922 wxPyEndBlockThreads(blocked);
3923 }
3924
3925 wxGCDC() {
3926 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3927 PyErr_SetString(PyExc_NotImplementedError,
3928 "wxGCDC is not available on this platform.");
3929 wxPyEndBlockThreads(blocked);
3930 }
3931
3932 virtual ~wxGCDC() {}
3933
3934 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3935 void SetGraphicsContext( wxGraphicsContext* ) {}
3936 };
3937
3938 #endif
3939
3940 SWIGINTERN void wxGraphicsContext_DrawText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3941 if ( !backgroundBrush.IsNull() )
3942 self->DrawText(str, x, y, backgroundBrush);
3943 else
3944 self->DrawText(str, x, y);
3945 }
3946 SWIGINTERN void wxGraphicsContext_DrawRotatedText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxDouble angle,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3947 if ( !backgroundBrush.IsNull() )
3948 self->DrawText(str, x, y, angle, backgroundBrush);
3949 else
3950 self->DrawText(str, x, y, angle);
3951 }
3952 SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3953 wxDouble width = 0.0,
3954 height = 0.0;
3955 self->GetTextExtent(text, &width, &height, NULL, NULL);
3956 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3957 PyObject* rv = PyTuple_New(2);
3958 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3959 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3960 return rv;
3961 }
3962 SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3963 wxArrayDouble widths;
3964 self->GetPartialTextExtents(text, widths);
3965 return widths;
3966 }
3967 SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
3968 size_t c1, c2, count;
3969 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3970 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3971
3972 if ( beginP != NULL && endP != NULL )
3973 {
3974 count = wxMin(c1, c2);
3975 self->StrokeLines(count, beginP, endP);
3976 }
3977 delete [] beginP;
3978 delete [] endP;
3979 }
3980
3981 #include "wx/dcgraph.h"
3982
3983
3984 #include <wx/overlay.h>
3985
3986
3987
3988 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3989 self->AddColour(name, wxColour(red, green, blue));
3990 }
3991
3992 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3993 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3994 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3995 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3996
3997
3998 #include <wx/effects.h>
3999
4000
4001 #include "wx/renderer.h"
4002
4003
4004 SWIGINTERNINLINE PyObject*
4005 SWIG_From_bool (bool value)
4006 {
4007 return PyBool_FromLong(value ? 1 : 0);
4008 }
4009
4010
4011 #include "wx/wxPython/pseudodc.h"
4012
4013 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
4014 wxRect rect;
4015 self->GetIdBounds(id, rect);
4016 return rect;
4017 }
4018 #ifdef __cplusplus
4019 extern "C" {
4020 #endif
4021 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4022 PyObject *resultobj = 0;
4023 wxGDIObject *result = 0 ;
4024
4025 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
4026 {
4027 if (!wxPyCheckForApp()) SWIG_fail;
4028 PyThreadState* __tstate = wxPyBeginAllowThreads();
4029 result = (wxGDIObject *)new wxGDIObject();
4030 wxPyEndAllowThreads(__tstate);
4031 if (PyErr_Occurred()) SWIG_fail;
4032 }
4033 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
4034 return resultobj;
4035 fail:
4036 return NULL;
4037 }
4038
4039
4040 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4041 PyObject *resultobj = 0;
4042 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4043 void *argp1 = 0 ;
4044 int res1 = 0 ;
4045 PyObject *swig_obj[1] ;
4046
4047 if (!args) SWIG_fail;
4048 swig_obj[0] = args;
4049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
4050 if (!SWIG_IsOK(res1)) {
4051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4052 }
4053 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4054 {
4055 PyThreadState* __tstate = wxPyBeginAllowThreads();
4056 delete arg1;
4057
4058 wxPyEndAllowThreads(__tstate);
4059 if (PyErr_Occurred()) SWIG_fail;
4060 }
4061 resultobj = SWIG_Py_Void();
4062 return resultobj;
4063 fail:
4064 return NULL;
4065 }
4066
4067
4068 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4069 PyObject *resultobj = 0;
4070 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4071 bool result;
4072 void *argp1 = 0 ;
4073 int res1 = 0 ;
4074 PyObject *swig_obj[1] ;
4075
4076 if (!args) SWIG_fail;
4077 swig_obj[0] = args;
4078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4079 if (!SWIG_IsOK(res1)) {
4080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4081 }
4082 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4083 {
4084 PyThreadState* __tstate = wxPyBeginAllowThreads();
4085 result = (bool)(arg1)->IsNull();
4086 wxPyEndAllowThreads(__tstate);
4087 if (PyErr_Occurred()) SWIG_fail;
4088 }
4089 {
4090 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4091 }
4092 return resultobj;
4093 fail:
4094 return NULL;
4095 }
4096
4097
4098 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4099 PyObject *obj;
4100 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4101 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4102 return SWIG_Py_Void();
4103 }
4104
4105 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4106 return SWIG_Python_InitShadowInstance(args);
4107 }
4108
4109 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4110 PyObject *resultobj = 0;
4111 byte arg1 = (byte) 0 ;
4112 byte arg2 = (byte) 0 ;
4113 byte arg3 = (byte) 0 ;
4114 byte arg4 = (byte) wxALPHA_OPAQUE ;
4115 wxColour *result = 0 ;
4116 unsigned char val1 ;
4117 int ecode1 = 0 ;
4118 unsigned char val2 ;
4119 int ecode2 = 0 ;
4120 unsigned char val3 ;
4121 int ecode3 = 0 ;
4122 unsigned char val4 ;
4123 int ecode4 = 0 ;
4124 PyObject * obj0 = 0 ;
4125 PyObject * obj1 = 0 ;
4126 PyObject * obj2 = 0 ;
4127 PyObject * obj3 = 0 ;
4128 char * kwnames[] = {
4129 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4130 };
4131
4132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4133 if (obj0) {
4134 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4135 if (!SWIG_IsOK(ecode1)) {
4136 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4137 }
4138 arg1 = static_cast< byte >(val1);
4139 }
4140 if (obj1) {
4141 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4142 if (!SWIG_IsOK(ecode2)) {
4143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4144 }
4145 arg2 = static_cast< byte >(val2);
4146 }
4147 if (obj2) {
4148 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4149 if (!SWIG_IsOK(ecode3)) {
4150 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4151 }
4152 arg3 = static_cast< byte >(val3);
4153 }
4154 if (obj3) {
4155 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4156 if (!SWIG_IsOK(ecode4)) {
4157 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4158 }
4159 arg4 = static_cast< byte >(val4);
4160 }
4161 {
4162 PyThreadState* __tstate = wxPyBeginAllowThreads();
4163 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
4164 wxPyEndAllowThreads(__tstate);
4165 if (PyErr_Occurred()) SWIG_fail;
4166 }
4167 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4168 return resultobj;
4169 fail:
4170 return NULL;
4171 }
4172
4173
4174 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4175 PyObject *resultobj = 0;
4176 wxString *arg1 = 0 ;
4177 wxColour *result = 0 ;
4178 bool temp1 = false ;
4179 PyObject * obj0 = 0 ;
4180 char * kwnames[] = {
4181 (char *) "colorName", NULL
4182 };
4183
4184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4185 {
4186 arg1 = wxString_in_helper(obj0);
4187 if (arg1 == NULL) SWIG_fail;
4188 temp1 = true;
4189 }
4190 {
4191 if (!wxPyCheckForApp()) SWIG_fail;
4192 PyThreadState* __tstate = wxPyBeginAllowThreads();
4193 result = (wxColour *)new wxColour((wxString const &)*arg1);
4194 wxPyEndAllowThreads(__tstate);
4195 if (PyErr_Occurred()) SWIG_fail;
4196 }
4197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4198 {
4199 if (temp1)
4200 delete arg1;
4201 }
4202 return resultobj;
4203 fail:
4204 {
4205 if (temp1)
4206 delete arg1;
4207 }
4208 return NULL;
4209 }
4210
4211
4212 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4213 PyObject *resultobj = 0;
4214 unsigned long arg1 ;
4215 wxColour *result = 0 ;
4216 unsigned long val1 ;
4217 int ecode1 = 0 ;
4218 PyObject * obj0 = 0 ;
4219 char * kwnames[] = {
4220 (char *) "colRGB", NULL
4221 };
4222
4223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4224 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4225 if (!SWIG_IsOK(ecode1)) {
4226 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4227 }
4228 arg1 = static_cast< unsigned long >(val1);
4229 {
4230 PyThreadState* __tstate = wxPyBeginAllowThreads();
4231 result = (wxColour *)new wxColour(arg1);
4232 wxPyEndAllowThreads(__tstate);
4233 if (PyErr_Occurred()) SWIG_fail;
4234 }
4235 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4236 return resultobj;
4237 fail:
4238 return NULL;
4239 }
4240
4241
4242 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4243 PyObject *resultobj = 0;
4244 wxColour *arg1 = (wxColour *) 0 ;
4245 void *argp1 = 0 ;
4246 int res1 = 0 ;
4247 PyObject *swig_obj[1] ;
4248
4249 if (!args) SWIG_fail;
4250 swig_obj[0] = args;
4251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4252 if (!SWIG_IsOK(res1)) {
4253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4254 }
4255 arg1 = reinterpret_cast< wxColour * >(argp1);
4256 {
4257 PyThreadState* __tstate = wxPyBeginAllowThreads();
4258 delete arg1;
4259
4260 wxPyEndAllowThreads(__tstate);
4261 if (PyErr_Occurred()) SWIG_fail;
4262 }
4263 resultobj = SWIG_Py_Void();
4264 return resultobj;
4265 fail:
4266 return NULL;
4267 }
4268
4269
4270 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4271 PyObject *resultobj = 0;
4272 wxColour *arg1 = (wxColour *) 0 ;
4273 byte result;
4274 void *argp1 = 0 ;
4275 int res1 = 0 ;
4276 PyObject *swig_obj[1] ;
4277
4278 if (!args) SWIG_fail;
4279 swig_obj[0] = args;
4280 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4281 if (!SWIG_IsOK(res1)) {
4282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4283 }
4284 arg1 = reinterpret_cast< wxColour * >(argp1);
4285 {
4286 PyThreadState* __tstate = wxPyBeginAllowThreads();
4287 result = (byte)(arg1)->Red();
4288 wxPyEndAllowThreads(__tstate);
4289 if (PyErr_Occurred()) SWIG_fail;
4290 }
4291 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4292 return resultobj;
4293 fail:
4294 return NULL;
4295 }
4296
4297
4298 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4299 PyObject *resultobj = 0;
4300 wxColour *arg1 = (wxColour *) 0 ;
4301 byte result;
4302 void *argp1 = 0 ;
4303 int res1 = 0 ;
4304 PyObject *swig_obj[1] ;
4305
4306 if (!args) SWIG_fail;
4307 swig_obj[0] = args;
4308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4309 if (!SWIG_IsOK(res1)) {
4310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4311 }
4312 arg1 = reinterpret_cast< wxColour * >(argp1);
4313 {
4314 PyThreadState* __tstate = wxPyBeginAllowThreads();
4315 result = (byte)(arg1)->Green();
4316 wxPyEndAllowThreads(__tstate);
4317 if (PyErr_Occurred()) SWIG_fail;
4318 }
4319 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4320 return resultobj;
4321 fail:
4322 return NULL;
4323 }
4324
4325
4326 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4327 PyObject *resultobj = 0;
4328 wxColour *arg1 = (wxColour *) 0 ;
4329 byte result;
4330 void *argp1 = 0 ;
4331 int res1 = 0 ;
4332 PyObject *swig_obj[1] ;
4333
4334 if (!args) SWIG_fail;
4335 swig_obj[0] = args;
4336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4337 if (!SWIG_IsOK(res1)) {
4338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4339 }
4340 arg1 = reinterpret_cast< wxColour * >(argp1);
4341 {
4342 PyThreadState* __tstate = wxPyBeginAllowThreads();
4343 result = (byte)(arg1)->Blue();
4344 wxPyEndAllowThreads(__tstate);
4345 if (PyErr_Occurred()) SWIG_fail;
4346 }
4347 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4348 return resultobj;
4349 fail:
4350 return NULL;
4351 }
4352
4353
4354 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4355 PyObject *resultobj = 0;
4356 wxColour *arg1 = (wxColour *) 0 ;
4357 byte result;
4358 void *argp1 = 0 ;
4359 int res1 = 0 ;
4360 PyObject *swig_obj[1] ;
4361
4362 if (!args) SWIG_fail;
4363 swig_obj[0] = args;
4364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4365 if (!SWIG_IsOK(res1)) {
4366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4367 }
4368 arg1 = reinterpret_cast< wxColour * >(argp1);
4369 {
4370 PyThreadState* __tstate = wxPyBeginAllowThreads();
4371 result = (byte)(arg1)->Alpha();
4372 wxPyEndAllowThreads(__tstate);
4373 if (PyErr_Occurred()) SWIG_fail;
4374 }
4375 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4376 return resultobj;
4377 fail:
4378 return NULL;
4379 }
4380
4381
4382 SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4383 PyObject *resultobj = 0;
4384 wxColour *arg1 = (wxColour *) 0 ;
4385 bool result;
4386 void *argp1 = 0 ;
4387 int res1 = 0 ;
4388 PyObject *swig_obj[1] ;
4389
4390 if (!args) SWIG_fail;
4391 swig_obj[0] = args;
4392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4393 if (!SWIG_IsOK(res1)) {
4394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
4395 }
4396 arg1 = reinterpret_cast< wxColour * >(argp1);
4397 {
4398 PyThreadState* __tstate = wxPyBeginAllowThreads();
4399 result = (bool)(arg1)->IsOk();
4400 wxPyEndAllowThreads(__tstate);
4401 if (PyErr_Occurred()) SWIG_fail;
4402 }
4403 {
4404 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4405 }
4406 return resultobj;
4407 fail:
4408 return NULL;
4409 }
4410
4411
4412 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4413 PyObject *resultobj = 0;
4414 wxColour *arg1 = (wxColour *) 0 ;
4415 byte arg2 ;
4416 byte arg3 ;
4417 byte arg4 ;
4418 byte arg5 = (byte) wxALPHA_OPAQUE ;
4419 void *argp1 = 0 ;
4420 int res1 = 0 ;
4421 unsigned char val2 ;
4422 int ecode2 = 0 ;
4423 unsigned char val3 ;
4424 int ecode3 = 0 ;
4425 unsigned char val4 ;
4426 int ecode4 = 0 ;
4427 unsigned char val5 ;
4428 int ecode5 = 0 ;
4429 PyObject * obj0 = 0 ;
4430 PyObject * obj1 = 0 ;
4431 PyObject * obj2 = 0 ;
4432 PyObject * obj3 = 0 ;
4433 PyObject * obj4 = 0 ;
4434 char * kwnames[] = {
4435 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4436 };
4437
4438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4440 if (!SWIG_IsOK(res1)) {
4441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4442 }
4443 arg1 = reinterpret_cast< wxColour * >(argp1);
4444 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4445 if (!SWIG_IsOK(ecode2)) {
4446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4447 }
4448 arg2 = static_cast< byte >(val2);
4449 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4450 if (!SWIG_IsOK(ecode3)) {
4451 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4452 }
4453 arg3 = static_cast< byte >(val3);
4454 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4455 if (!SWIG_IsOK(ecode4)) {
4456 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4457 }
4458 arg4 = static_cast< byte >(val4);
4459 if (obj4) {
4460 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4461 if (!SWIG_IsOK(ecode5)) {
4462 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4463 }
4464 arg5 = static_cast< byte >(val5);
4465 }
4466 {
4467 PyThreadState* __tstate = wxPyBeginAllowThreads();
4468 (arg1)->Set(arg2,arg3,arg4,arg5);
4469 wxPyEndAllowThreads(__tstate);
4470 if (PyErr_Occurred()) SWIG_fail;
4471 }
4472 resultobj = SWIG_Py_Void();
4473 return resultobj;
4474 fail:
4475 return NULL;
4476 }
4477
4478
4479 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4480 PyObject *resultobj = 0;
4481 wxColour *arg1 = (wxColour *) 0 ;
4482 unsigned long arg2 ;
4483 void *argp1 = 0 ;
4484 int res1 = 0 ;
4485 unsigned long val2 ;
4486 int ecode2 = 0 ;
4487 PyObject * obj0 = 0 ;
4488 PyObject * obj1 = 0 ;
4489 char * kwnames[] = {
4490 (char *) "self",(char *) "colRGB", NULL
4491 };
4492
4493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4495 if (!SWIG_IsOK(res1)) {
4496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4497 }
4498 arg1 = reinterpret_cast< wxColour * >(argp1);
4499 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4500 if (!SWIG_IsOK(ecode2)) {
4501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4502 }
4503 arg2 = static_cast< unsigned long >(val2);
4504 {
4505 PyThreadState* __tstate = wxPyBeginAllowThreads();
4506 (arg1)->Set(arg2);
4507 wxPyEndAllowThreads(__tstate);
4508 if (PyErr_Occurred()) SWIG_fail;
4509 }
4510 resultobj = SWIG_Py_Void();
4511 return resultobj;
4512 fail:
4513 return NULL;
4514 }
4515
4516
4517 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4518 PyObject *resultobj = 0;
4519 wxColour *arg1 = (wxColour *) 0 ;
4520 wxString *arg2 = 0 ;
4521 void *argp1 = 0 ;
4522 int res1 = 0 ;
4523 bool temp2 = false ;
4524 PyObject * obj0 = 0 ;
4525 PyObject * obj1 = 0 ;
4526 char * kwnames[] = {
4527 (char *) "self",(char *) "colourName", NULL
4528 };
4529
4530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4532 if (!SWIG_IsOK(res1)) {
4533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4534 }
4535 arg1 = reinterpret_cast< wxColour * >(argp1);
4536 {
4537 arg2 = wxString_in_helper(obj1);
4538 if (arg2 == NULL) SWIG_fail;
4539 temp2 = true;
4540 }
4541 {
4542 PyThreadState* __tstate = wxPyBeginAllowThreads();
4543 (arg1)->Set((wxString const &)*arg2);
4544 wxPyEndAllowThreads(__tstate);
4545 if (PyErr_Occurred()) SWIG_fail;
4546 }
4547 resultobj = SWIG_Py_Void();
4548 {
4549 if (temp2)
4550 delete arg2;
4551 }
4552 return resultobj;
4553 fail:
4554 {
4555 if (temp2)
4556 delete arg2;
4557 }
4558 return NULL;
4559 }
4560
4561
4562 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4563 PyObject *resultobj = 0;
4564 wxColour *arg1 = (wxColour *) 0 ;
4565 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4566 wxString result;
4567 void *argp1 = 0 ;
4568 int res1 = 0 ;
4569 long val2 ;
4570 int ecode2 = 0 ;
4571 PyObject * obj0 = 0 ;
4572 PyObject * obj1 = 0 ;
4573 char * kwnames[] = {
4574 (char *) "self",(char *) "flags", NULL
4575 };
4576
4577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4579 if (!SWIG_IsOK(res1)) {
4580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4581 }
4582 arg1 = reinterpret_cast< wxColour * >(argp1);
4583 if (obj1) {
4584 ecode2 = SWIG_AsVal_long(obj1, &val2);
4585 if (!SWIG_IsOK(ecode2)) {
4586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4587 }
4588 arg2 = static_cast< long >(val2);
4589 }
4590 {
4591 PyThreadState* __tstate = wxPyBeginAllowThreads();
4592 result = ((wxColour const *)arg1)->GetAsString(arg2);
4593 wxPyEndAllowThreads(__tstate);
4594 if (PyErr_Occurred()) SWIG_fail;
4595 }
4596 {
4597 #if wxUSE_UNICODE
4598 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4599 #else
4600 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4601 #endif
4602 }
4603 return resultobj;
4604 fail:
4605 return NULL;
4606 }
4607
4608
4609 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4610 PyObject *resultobj = 0;
4611 wxColour *arg1 = (wxColour *) 0 ;
4612 long result;
4613 void *argp1 = 0 ;
4614 int res1 = 0 ;
4615 PyObject *swig_obj[1] ;
4616
4617 if (!args) SWIG_fail;
4618 swig_obj[0] = args;
4619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4620 if (!SWIG_IsOK(res1)) {
4621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4622 }
4623 arg1 = reinterpret_cast< wxColour * >(argp1);
4624 {
4625 PyThreadState* __tstate = wxPyBeginAllowThreads();
4626 result = (long)((wxColour const *)arg1)->GetPixel();
4627 wxPyEndAllowThreads(__tstate);
4628 if (PyErr_Occurred()) SWIG_fail;
4629 }
4630 resultobj = SWIG_From_long(static_cast< long >(result));
4631 return resultobj;
4632 fail:
4633 return NULL;
4634 }
4635
4636
4637 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4638 PyObject *resultobj = 0;
4639 wxColour *arg1 = (wxColour *) 0 ;
4640 PyObject *arg2 = (PyObject *) 0 ;
4641 bool result;
4642 void *argp1 = 0 ;
4643 int res1 = 0 ;
4644 PyObject * obj0 = 0 ;
4645 PyObject * obj1 = 0 ;
4646 char * kwnames[] = {
4647 (char *) "self",(char *) "other", NULL
4648 };
4649
4650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4652 if (!SWIG_IsOK(res1)) {
4653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4654 }
4655 arg1 = reinterpret_cast< wxColour * >(argp1);
4656 arg2 = obj1;
4657 {
4658 result = (bool)wxColour___eq__(arg1,arg2);
4659 if (PyErr_Occurred()) SWIG_fail;
4660 }
4661 {
4662 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4663 }
4664 return resultobj;
4665 fail:
4666 return NULL;
4667 }
4668
4669
4670 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4671 PyObject *resultobj = 0;
4672 wxColour *arg1 = (wxColour *) 0 ;
4673 PyObject *arg2 = (PyObject *) 0 ;
4674 bool result;
4675 void *argp1 = 0 ;
4676 int res1 = 0 ;
4677 PyObject * obj0 = 0 ;
4678 PyObject * obj1 = 0 ;
4679 char * kwnames[] = {
4680 (char *) "self",(char *) "other", NULL
4681 };
4682
4683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4685 if (!SWIG_IsOK(res1)) {
4686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4687 }
4688 arg1 = reinterpret_cast< wxColour * >(argp1);
4689 arg2 = obj1;
4690 {
4691 result = (bool)wxColour___ne__(arg1,arg2);
4692 if (PyErr_Occurred()) SWIG_fail;
4693 }
4694 {
4695 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4696 }
4697 return resultobj;
4698 fail:
4699 return NULL;
4700 }
4701
4702
4703 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4704 PyObject *resultobj = 0;
4705 wxColour *arg1 = (wxColour *) 0 ;
4706 bool arg2 = (bool) false ;
4707 PyObject *result = 0 ;
4708 void *argp1 = 0 ;
4709 int res1 = 0 ;
4710 bool val2 ;
4711 int ecode2 = 0 ;
4712 PyObject * obj0 = 0 ;
4713 PyObject * obj1 = 0 ;
4714 char * kwnames[] = {
4715 (char *) "self",(char *) "includeAlpha", NULL
4716 };
4717
4718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4720 if (!SWIG_IsOK(res1)) {
4721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4722 }
4723 arg1 = reinterpret_cast< wxColour * >(argp1);
4724 if (obj1) {
4725 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4726 if (!SWIG_IsOK(ecode2)) {
4727 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4728 }
4729 arg2 = static_cast< bool >(val2);
4730 }
4731 {
4732 result = (PyObject *)wxColour_Get(arg1,arg2);
4733 if (PyErr_Occurred()) SWIG_fail;
4734 }
4735 resultobj = result;
4736 return resultobj;
4737 fail:
4738 return NULL;
4739 }
4740
4741
4742 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4743 PyObject *resultobj = 0;
4744 wxColour *arg1 = (wxColour *) 0 ;
4745 unsigned long result;
4746 void *argp1 = 0 ;
4747 int res1 = 0 ;
4748 PyObject *swig_obj[1] ;
4749
4750 if (!args) SWIG_fail;
4751 swig_obj[0] = args;
4752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4753 if (!SWIG_IsOK(res1)) {
4754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4755 }
4756 arg1 = reinterpret_cast< wxColour * >(argp1);
4757 {
4758 result = (unsigned long)wxColour_GetRGB(arg1);
4759 if (PyErr_Occurred()) SWIG_fail;
4760 }
4761 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4762 return resultobj;
4763 fail:
4764 return NULL;
4765 }
4766
4767
4768 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4769 PyObject *obj;
4770 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4771 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4772 return SWIG_Py_Void();
4773 }
4774
4775 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4776 return SWIG_Python_InitShadowInstance(args);
4777 }
4778
4779 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4780 PyObject *resultobj = 0;
4781 int arg1 ;
4782 unsigned char *arg2 = (unsigned char *) 0 ;
4783 unsigned char *arg3 = (unsigned char *) 0 ;
4784 unsigned char *arg4 = (unsigned char *) 0 ;
4785 wxPalette *result = 0 ;
4786 int val1 ;
4787 int ecode1 = 0 ;
4788 void *argp2 = 0 ;
4789 int res2 = 0 ;
4790 void *argp3 = 0 ;
4791 int res3 = 0 ;
4792 void *argp4 = 0 ;
4793 int res4 = 0 ;
4794 PyObject * obj0 = 0 ;
4795 PyObject * obj1 = 0 ;
4796 PyObject * obj2 = 0 ;
4797 PyObject * obj3 = 0 ;
4798 char * kwnames[] = {
4799 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4800 };
4801
4802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4803 ecode1 = SWIG_AsVal_int(obj0, &val1);
4804 if (!SWIG_IsOK(ecode1)) {
4805 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4806 }
4807 arg1 = static_cast< int >(val1);
4808 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4809 if (!SWIG_IsOK(res2)) {
4810 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4811 }
4812 arg2 = reinterpret_cast< unsigned char * >(argp2);
4813 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4814 if (!SWIG_IsOK(res3)) {
4815 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4816 }
4817 arg3 = reinterpret_cast< unsigned char * >(argp3);
4818 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4819 if (!SWIG_IsOK(res4)) {
4820 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4821 }
4822 arg4 = reinterpret_cast< unsigned char * >(argp4);
4823 {
4824 if (!wxPyCheckForApp()) SWIG_fail;
4825 PyThreadState* __tstate = wxPyBeginAllowThreads();
4826 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4827 wxPyEndAllowThreads(__tstate);
4828 if (PyErr_Occurred()) SWIG_fail;
4829 }
4830 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4831 return resultobj;
4832 fail:
4833 return NULL;
4834 }
4835
4836
4837 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4838 PyObject *resultobj = 0;
4839 wxPalette *arg1 = (wxPalette *) 0 ;
4840 void *argp1 = 0 ;
4841 int res1 = 0 ;
4842 PyObject *swig_obj[1] ;
4843
4844 if (!args) SWIG_fail;
4845 swig_obj[0] = args;
4846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4847 if (!SWIG_IsOK(res1)) {
4848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4849 }
4850 arg1 = reinterpret_cast< wxPalette * >(argp1);
4851 {
4852 PyThreadState* __tstate = wxPyBeginAllowThreads();
4853 delete arg1;
4854
4855 wxPyEndAllowThreads(__tstate);
4856 if (PyErr_Occurred()) SWIG_fail;
4857 }
4858 resultobj = SWIG_Py_Void();
4859 return resultobj;
4860 fail:
4861 return NULL;
4862 }
4863
4864
4865 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4866 PyObject *resultobj = 0;
4867 wxPalette *arg1 = (wxPalette *) 0 ;
4868 byte arg2 ;
4869 byte arg3 ;
4870 byte arg4 ;
4871 int result;
4872 void *argp1 = 0 ;
4873 int res1 = 0 ;
4874 unsigned char val2 ;
4875 int ecode2 = 0 ;
4876 unsigned char val3 ;
4877 int ecode3 = 0 ;
4878 unsigned char val4 ;
4879 int ecode4 = 0 ;
4880 PyObject * obj0 = 0 ;
4881 PyObject * obj1 = 0 ;
4882 PyObject * obj2 = 0 ;
4883 PyObject * obj3 = 0 ;
4884 char * kwnames[] = {
4885 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4886 };
4887
4888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4890 if (!SWIG_IsOK(res1)) {
4891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4892 }
4893 arg1 = reinterpret_cast< wxPalette * >(argp1);
4894 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4895 if (!SWIG_IsOK(ecode2)) {
4896 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4897 }
4898 arg2 = static_cast< byte >(val2);
4899 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4900 if (!SWIG_IsOK(ecode3)) {
4901 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4902 }
4903 arg3 = static_cast< byte >(val3);
4904 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4905 if (!SWIG_IsOK(ecode4)) {
4906 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4907 }
4908 arg4 = static_cast< byte >(val4);
4909 {
4910 PyThreadState* __tstate = wxPyBeginAllowThreads();
4911 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4912 wxPyEndAllowThreads(__tstate);
4913 if (PyErr_Occurred()) SWIG_fail;
4914 }
4915 resultobj = SWIG_From_int(static_cast< int >(result));
4916 return resultobj;
4917 fail:
4918 return NULL;
4919 }
4920
4921
4922 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4923 PyObject *resultobj = 0;
4924 wxPalette *arg1 = (wxPalette *) 0 ;
4925 int arg2 ;
4926 byte *arg3 = (byte *) 0 ;
4927 byte *arg4 = (byte *) 0 ;
4928 byte *arg5 = (byte *) 0 ;
4929 bool result;
4930 void *argp1 = 0 ;
4931 int res1 = 0 ;
4932 int val2 ;
4933 int ecode2 = 0 ;
4934 byte temp3 ;
4935 int res3 = SWIG_TMPOBJ ;
4936 byte temp4 ;
4937 int res4 = SWIG_TMPOBJ ;
4938 byte temp5 ;
4939 int res5 = SWIG_TMPOBJ ;
4940 PyObject * obj0 = 0 ;
4941 PyObject * obj1 = 0 ;
4942 char * kwnames[] = {
4943 (char *) "self",(char *) "pixel", NULL
4944 };
4945
4946 arg3 = &temp3;
4947 arg4 = &temp4;
4948 arg5 = &temp5;
4949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4951 if (!SWIG_IsOK(res1)) {
4952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4953 }
4954 arg1 = reinterpret_cast< wxPalette * >(argp1);
4955 ecode2 = SWIG_AsVal_int(obj1, &val2);
4956 if (!SWIG_IsOK(ecode2)) {
4957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4958 }
4959 arg2 = static_cast< int >(val2);
4960 {
4961 PyThreadState* __tstate = wxPyBeginAllowThreads();
4962 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4963 wxPyEndAllowThreads(__tstate);
4964 if (PyErr_Occurred()) SWIG_fail;
4965 }
4966 {
4967 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4968 }
4969 if (SWIG_IsTmpObj(res3)) {
4970 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4971 } else {
4972 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4973 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4974 }
4975 if (SWIG_IsTmpObj(res4)) {
4976 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4977 } else {
4978 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4979 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4980 }
4981 if (SWIG_IsTmpObj(res5)) {
4982 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4983 } else {
4984 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4985 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4986 }
4987 return resultobj;
4988 fail:
4989 return NULL;
4990 }
4991
4992
4993 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4994 PyObject *resultobj = 0;
4995 wxPalette *arg1 = (wxPalette *) 0 ;
4996 int result;
4997 void *argp1 = 0 ;
4998 int res1 = 0 ;
4999 PyObject *swig_obj[1] ;
5000
5001 if (!args) SWIG_fail;
5002 swig_obj[0] = args;
5003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
5004 if (!SWIG_IsOK(res1)) {
5005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
5006 }
5007 arg1 = reinterpret_cast< wxPalette * >(argp1);
5008 {
5009 PyThreadState* __tstate = wxPyBeginAllowThreads();
5010 result = (int)((wxPalette const *)arg1)->GetColoursCount();
5011 wxPyEndAllowThreads(__tstate);
5012 if (PyErr_Occurred()) SWIG_fail;
5013 }
5014 resultobj = SWIG_From_int(static_cast< int >(result));
5015 return resultobj;
5016 fail:
5017 return NULL;
5018 }
5019
5020
5021 SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5022 PyObject *resultobj = 0;
5023 wxPalette *arg1 = (wxPalette *) 0 ;
5024 bool result;
5025 void *argp1 = 0 ;
5026 int res1 = 0 ;
5027 PyObject *swig_obj[1] ;
5028
5029 if (!args) SWIG_fail;
5030 swig_obj[0] = args;
5031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
5032 if (!SWIG_IsOK(res1)) {
5033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
5034 }
5035 arg1 = reinterpret_cast< wxPalette * >(argp1);
5036 {
5037 PyThreadState* __tstate = wxPyBeginAllowThreads();
5038 result = (bool)(arg1)->IsOk();
5039 wxPyEndAllowThreads(__tstate);
5040 if (PyErr_Occurred()) SWIG_fail;
5041 }
5042 {
5043 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5044 }
5045 return resultobj;
5046 fail:
5047 return NULL;
5048 }
5049
5050
5051 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5052 PyObject *obj;
5053 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5054 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
5055 return SWIG_Py_Void();
5056 }
5057
5058 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5059 return SWIG_Python_InitShadowInstance(args);
5060 }
5061
5062 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5063 PyObject *resultobj = 0;
5064 wxColour *arg1 = 0 ;
5065 int arg2 = (int) 1 ;
5066 int arg3 = (int) wxSOLID ;
5067 wxPen *result = 0 ;
5068 wxColour temp1 ;
5069 int val2 ;
5070 int ecode2 = 0 ;
5071 int val3 ;
5072 int ecode3 = 0 ;
5073 PyObject * obj0 = 0 ;
5074 PyObject * obj1 = 0 ;
5075 PyObject * obj2 = 0 ;
5076 char * kwnames[] = {
5077 (char *) "colour",(char *) "width",(char *) "style", NULL
5078 };
5079
5080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5081 {
5082 arg1 = &temp1;
5083 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5084 }
5085 if (obj1) {
5086 ecode2 = SWIG_AsVal_int(obj1, &val2);
5087 if (!SWIG_IsOK(ecode2)) {
5088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5089 }
5090 arg2 = static_cast< int >(val2);
5091 }
5092 if (obj2) {
5093 ecode3 = SWIG_AsVal_int(obj2, &val3);
5094 if (!SWIG_IsOK(ecode3)) {
5095 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5096 }
5097 arg3 = static_cast< int >(val3);
5098 }
5099 {
5100 if (!wxPyCheckForApp()) SWIG_fail;
5101 PyThreadState* __tstate = wxPyBeginAllowThreads();
5102 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5103 wxPyEndAllowThreads(__tstate);
5104 if (PyErr_Occurred()) SWIG_fail;
5105 }
5106 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5107 return resultobj;
5108 fail:
5109 return NULL;
5110 }
5111
5112
5113 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5114 PyObject *resultobj = 0;
5115 wxPen *arg1 = (wxPen *) 0 ;
5116 void *argp1 = 0 ;
5117 int res1 = 0 ;
5118 PyObject *swig_obj[1] ;
5119
5120 if (!args) SWIG_fail;
5121 swig_obj[0] = args;
5122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5123 if (!SWIG_IsOK(res1)) {
5124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5125 }
5126 arg1 = reinterpret_cast< wxPen * >(argp1);
5127 {
5128 PyThreadState* __tstate = wxPyBeginAllowThreads();
5129 delete arg1;
5130
5131 wxPyEndAllowThreads(__tstate);
5132 if (PyErr_Occurred()) SWIG_fail;
5133 }
5134 resultobj = SWIG_Py_Void();
5135 return resultobj;
5136 fail:
5137 return NULL;
5138 }
5139
5140
5141 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5142 PyObject *resultobj = 0;
5143 wxPen *arg1 = (wxPen *) 0 ;
5144 int result;
5145 void *argp1 = 0 ;
5146 int res1 = 0 ;
5147 PyObject *swig_obj[1] ;
5148
5149 if (!args) SWIG_fail;
5150 swig_obj[0] = args;
5151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5152 if (!SWIG_IsOK(res1)) {
5153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5154 }
5155 arg1 = reinterpret_cast< wxPen * >(argp1);
5156 {
5157 PyThreadState* __tstate = wxPyBeginAllowThreads();
5158 result = (int)(arg1)->GetCap();
5159 wxPyEndAllowThreads(__tstate);
5160 if (PyErr_Occurred()) SWIG_fail;
5161 }
5162 resultobj = SWIG_From_int(static_cast< int >(result));
5163 return resultobj;
5164 fail:
5165 return NULL;
5166 }
5167
5168
5169 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5170 PyObject *resultobj = 0;
5171 wxPen *arg1 = (wxPen *) 0 ;
5172 wxColour result;
5173 void *argp1 = 0 ;
5174 int res1 = 0 ;
5175 PyObject *swig_obj[1] ;
5176
5177 if (!args) SWIG_fail;
5178 swig_obj[0] = args;
5179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5180 if (!SWIG_IsOK(res1)) {
5181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5182 }
5183 arg1 = reinterpret_cast< wxPen * >(argp1);
5184 {
5185 PyThreadState* __tstate = wxPyBeginAllowThreads();
5186 result = (arg1)->GetColour();
5187 wxPyEndAllowThreads(__tstate);
5188 if (PyErr_Occurred()) SWIG_fail;
5189 }
5190 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5191 return resultobj;
5192 fail:
5193 return NULL;
5194 }
5195
5196
5197 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5198 PyObject *resultobj = 0;
5199 wxPen *arg1 = (wxPen *) 0 ;
5200 int result;
5201 void *argp1 = 0 ;
5202 int res1 = 0 ;
5203 PyObject *swig_obj[1] ;
5204
5205 if (!args) SWIG_fail;
5206 swig_obj[0] = args;
5207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5208 if (!SWIG_IsOK(res1)) {
5209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5210 }
5211 arg1 = reinterpret_cast< wxPen * >(argp1);
5212 {
5213 PyThreadState* __tstate = wxPyBeginAllowThreads();
5214 result = (int)(arg1)->GetJoin();
5215 wxPyEndAllowThreads(__tstate);
5216 if (PyErr_Occurred()) SWIG_fail;
5217 }
5218 resultobj = SWIG_From_int(static_cast< int >(result));
5219 return resultobj;
5220 fail:
5221 return NULL;
5222 }
5223
5224
5225 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5226 PyObject *resultobj = 0;
5227 wxPen *arg1 = (wxPen *) 0 ;
5228 int result;
5229 void *argp1 = 0 ;
5230 int res1 = 0 ;
5231 PyObject *swig_obj[1] ;
5232
5233 if (!args) SWIG_fail;
5234 swig_obj[0] = args;
5235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5236 if (!SWIG_IsOK(res1)) {
5237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5238 }
5239 arg1 = reinterpret_cast< wxPen * >(argp1);
5240 {
5241 PyThreadState* __tstate = wxPyBeginAllowThreads();
5242 result = (int)(arg1)->GetStyle();
5243 wxPyEndAllowThreads(__tstate);
5244 if (PyErr_Occurred()) SWIG_fail;
5245 }
5246 resultobj = SWIG_From_int(static_cast< int >(result));
5247 return resultobj;
5248 fail:
5249 return NULL;
5250 }
5251
5252
5253 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5254 PyObject *resultobj = 0;
5255 wxPen *arg1 = (wxPen *) 0 ;
5256 int result;
5257 void *argp1 = 0 ;
5258 int res1 = 0 ;
5259 PyObject *swig_obj[1] ;
5260
5261 if (!args) SWIG_fail;
5262 swig_obj[0] = args;
5263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5264 if (!SWIG_IsOK(res1)) {
5265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5266 }
5267 arg1 = reinterpret_cast< wxPen * >(argp1);
5268 {
5269 PyThreadState* __tstate = wxPyBeginAllowThreads();
5270 result = (int)(arg1)->GetWidth();
5271 wxPyEndAllowThreads(__tstate);
5272 if (PyErr_Occurred()) SWIG_fail;
5273 }
5274 resultobj = SWIG_From_int(static_cast< int >(result));
5275 return resultobj;
5276 fail:
5277 return NULL;
5278 }
5279
5280
5281 SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5282 PyObject *resultobj = 0;
5283 wxPen *arg1 = (wxPen *) 0 ;
5284 bool result;
5285 void *argp1 = 0 ;
5286 int res1 = 0 ;
5287 PyObject *swig_obj[1] ;
5288
5289 if (!args) SWIG_fail;
5290 swig_obj[0] = args;
5291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5292 if (!SWIG_IsOK(res1)) {
5293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
5294 }
5295 arg1 = reinterpret_cast< wxPen * >(argp1);
5296 {
5297 PyThreadState* __tstate = wxPyBeginAllowThreads();
5298 result = (bool)(arg1)->IsOk();
5299 wxPyEndAllowThreads(__tstate);
5300 if (PyErr_Occurred()) SWIG_fail;
5301 }
5302 {
5303 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5304 }
5305 return resultobj;
5306 fail:
5307 return NULL;
5308 }
5309
5310
5311 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5312 PyObject *resultobj = 0;
5313 wxPen *arg1 = (wxPen *) 0 ;
5314 int arg2 ;
5315 void *argp1 = 0 ;
5316 int res1 = 0 ;
5317 int val2 ;
5318 int ecode2 = 0 ;
5319 PyObject * obj0 = 0 ;
5320 PyObject * obj1 = 0 ;
5321 char * kwnames[] = {
5322 (char *) "self",(char *) "cap_style", NULL
5323 };
5324
5325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5327 if (!SWIG_IsOK(res1)) {
5328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5329 }
5330 arg1 = reinterpret_cast< wxPen * >(argp1);
5331 ecode2 = SWIG_AsVal_int(obj1, &val2);
5332 if (!SWIG_IsOK(ecode2)) {
5333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5334 }
5335 arg2 = static_cast< int >(val2);
5336 {
5337 PyThreadState* __tstate = wxPyBeginAllowThreads();
5338 (arg1)->SetCap(arg2);
5339 wxPyEndAllowThreads(__tstate);
5340 if (PyErr_Occurred()) SWIG_fail;
5341 }
5342 resultobj = SWIG_Py_Void();
5343 return resultobj;
5344 fail:
5345 return NULL;
5346 }
5347
5348
5349 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5350 PyObject *resultobj = 0;
5351 wxPen *arg1 = (wxPen *) 0 ;
5352 wxColour *arg2 = 0 ;
5353 void *argp1 = 0 ;
5354 int res1 = 0 ;
5355 wxColour temp2 ;
5356 PyObject * obj0 = 0 ;
5357 PyObject * obj1 = 0 ;
5358 char * kwnames[] = {
5359 (char *) "self",(char *) "colour", NULL
5360 };
5361
5362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5364 if (!SWIG_IsOK(res1)) {
5365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5366 }
5367 arg1 = reinterpret_cast< wxPen * >(argp1);
5368 {
5369 arg2 = &temp2;
5370 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5371 }
5372 {
5373 PyThreadState* __tstate = wxPyBeginAllowThreads();
5374 (arg1)->SetColour(*arg2);
5375 wxPyEndAllowThreads(__tstate);
5376 if (PyErr_Occurred()) SWIG_fail;
5377 }
5378 resultobj = SWIG_Py_Void();
5379 return resultobj;
5380 fail:
5381 return NULL;
5382 }
5383
5384
5385 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5386 PyObject *resultobj = 0;
5387 wxPen *arg1 = (wxPen *) 0 ;
5388 int arg2 ;
5389 void *argp1 = 0 ;
5390 int res1 = 0 ;
5391 int val2 ;
5392 int ecode2 = 0 ;
5393 PyObject * obj0 = 0 ;
5394 PyObject * obj1 = 0 ;
5395 char * kwnames[] = {
5396 (char *) "self",(char *) "join_style", NULL
5397 };
5398
5399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5401 if (!SWIG_IsOK(res1)) {
5402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5403 }
5404 arg1 = reinterpret_cast< wxPen * >(argp1);
5405 ecode2 = SWIG_AsVal_int(obj1, &val2);
5406 if (!SWIG_IsOK(ecode2)) {
5407 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5408 }
5409 arg2 = static_cast< int >(val2);
5410 {
5411 PyThreadState* __tstate = wxPyBeginAllowThreads();
5412 (arg1)->SetJoin(arg2);
5413 wxPyEndAllowThreads(__tstate);
5414 if (PyErr_Occurred()) SWIG_fail;
5415 }
5416 resultobj = SWIG_Py_Void();
5417 return resultobj;
5418 fail:
5419 return NULL;
5420 }
5421
5422
5423 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5424 PyObject *resultobj = 0;
5425 wxPen *arg1 = (wxPen *) 0 ;
5426 int arg2 ;
5427 void *argp1 = 0 ;
5428 int res1 = 0 ;
5429 int val2 ;
5430 int ecode2 = 0 ;
5431 PyObject * obj0 = 0 ;
5432 PyObject * obj1 = 0 ;
5433 char * kwnames[] = {
5434 (char *) "self",(char *) "style", NULL
5435 };
5436
5437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5439 if (!SWIG_IsOK(res1)) {
5440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5441 }
5442 arg1 = reinterpret_cast< wxPen * >(argp1);
5443 ecode2 = SWIG_AsVal_int(obj1, &val2);
5444 if (!SWIG_IsOK(ecode2)) {
5445 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5446 }
5447 arg2 = static_cast< int >(val2);
5448 {
5449 PyThreadState* __tstate = wxPyBeginAllowThreads();
5450 (arg1)->SetStyle(arg2);
5451 wxPyEndAllowThreads(__tstate);
5452 if (PyErr_Occurred()) SWIG_fail;
5453 }
5454 resultobj = SWIG_Py_Void();
5455 return resultobj;
5456 fail:
5457 return NULL;
5458 }
5459
5460
5461 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5462 PyObject *resultobj = 0;
5463 wxPen *arg1 = (wxPen *) 0 ;
5464 int arg2 ;
5465 void *argp1 = 0 ;
5466 int res1 = 0 ;
5467 int val2 ;
5468 int ecode2 = 0 ;
5469 PyObject * obj0 = 0 ;
5470 PyObject * obj1 = 0 ;
5471 char * kwnames[] = {
5472 (char *) "self",(char *) "width", NULL
5473 };
5474
5475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5477 if (!SWIG_IsOK(res1)) {
5478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5479 }
5480 arg1 = reinterpret_cast< wxPen * >(argp1);
5481 ecode2 = SWIG_AsVal_int(obj1, &val2);
5482 if (!SWIG_IsOK(ecode2)) {
5483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5484 }
5485 arg2 = static_cast< int >(val2);
5486 {
5487 PyThreadState* __tstate = wxPyBeginAllowThreads();
5488 (arg1)->SetWidth(arg2);
5489 wxPyEndAllowThreads(__tstate);
5490 if (PyErr_Occurred()) SWIG_fail;
5491 }
5492 resultobj = SWIG_Py_Void();
5493 return resultobj;
5494 fail:
5495 return NULL;
5496 }
5497
5498
5499 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5500 PyObject *resultobj = 0;
5501 wxPen *arg1 = (wxPen *) 0 ;
5502 int arg2 ;
5503 wxDash *arg3 = (wxDash *) 0 ;
5504 void *argp1 = 0 ;
5505 int res1 = 0 ;
5506 PyObject * obj0 = 0 ;
5507 PyObject * obj1 = 0 ;
5508 char * kwnames[] = {
5509 (char *) "self",(char *) "dashes", NULL
5510 };
5511
5512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5514 if (!SWIG_IsOK(res1)) {
5515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5516 }
5517 arg1 = reinterpret_cast< wxPen * >(argp1);
5518 {
5519 arg2 = PyList_Size(obj1);
5520 arg3 = (wxDash*)byte_LIST_helper(obj1);
5521 if (arg3 == NULL) SWIG_fail;
5522 }
5523 {
5524 PyThreadState* __tstate = wxPyBeginAllowThreads();
5525 (arg1)->SetDashes(arg2,arg3);
5526 wxPyEndAllowThreads(__tstate);
5527 if (PyErr_Occurred()) SWIG_fail;
5528 }
5529 resultobj = SWIG_Py_Void();
5530 {
5531 if (arg3) delete [] arg3;
5532 }
5533 return resultobj;
5534 fail:
5535 {
5536 if (arg3) delete [] arg3;
5537 }
5538 return NULL;
5539 }
5540
5541
5542 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5543 PyObject *resultobj = 0;
5544 wxPen *arg1 = (wxPen *) 0 ;
5545 PyObject *result = 0 ;
5546 void *argp1 = 0 ;
5547 int res1 = 0 ;
5548 PyObject *swig_obj[1] ;
5549
5550 if (!args) SWIG_fail;
5551 swig_obj[0] = args;
5552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5553 if (!SWIG_IsOK(res1)) {
5554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5555 }
5556 arg1 = reinterpret_cast< wxPen * >(argp1);
5557 {
5558 PyThreadState* __tstate = wxPyBeginAllowThreads();
5559 result = (PyObject *)wxPen_GetDashes(arg1);
5560 wxPyEndAllowThreads(__tstate);
5561 if (PyErr_Occurred()) SWIG_fail;
5562 }
5563 resultobj = result;
5564 return resultobj;
5565 fail:
5566 return NULL;
5567 }
5568
5569
5570 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5571 PyObject *resultobj = 0;
5572 wxPen *arg1 = (wxPen *) 0 ;
5573 PyObject *arg2 = (PyObject *) 0 ;
5574 PyObject *arg3 = (PyObject *) 0 ;
5575 void *argp1 = 0 ;
5576 int res1 = 0 ;
5577 PyObject * obj0 = 0 ;
5578 PyObject * obj1 = 0 ;
5579 PyObject * obj2 = 0 ;
5580 char * kwnames[] = {
5581 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5582 };
5583
5584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5586 if (!SWIG_IsOK(res1)) {
5587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5588 }
5589 arg1 = reinterpret_cast< wxPen * >(argp1);
5590 arg2 = obj1;
5591 arg3 = obj2;
5592 {
5593 PyThreadState* __tstate = wxPyBeginAllowThreads();
5594 wxPen__SetDashes(arg1,arg2,arg3);
5595 wxPyEndAllowThreads(__tstate);
5596 if (PyErr_Occurred()) SWIG_fail;
5597 }
5598 resultobj = SWIG_Py_Void();
5599 return resultobj;
5600 fail:
5601 return NULL;
5602 }
5603
5604
5605 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5606 PyObject *resultobj = 0;
5607 wxPen *arg1 = (wxPen *) 0 ;
5608 wxPen *arg2 = (wxPen *) 0 ;
5609 bool result;
5610 void *argp1 = 0 ;
5611 int res1 = 0 ;
5612 void *argp2 = 0 ;
5613 int res2 = 0 ;
5614 PyObject * obj0 = 0 ;
5615 PyObject * obj1 = 0 ;
5616 char * kwnames[] = {
5617 (char *) "self",(char *) "other", NULL
5618 };
5619
5620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5622 if (!SWIG_IsOK(res1)) {
5623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5624 }
5625 arg1 = reinterpret_cast< wxPen * >(argp1);
5626 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5627 if (!SWIG_IsOK(res2)) {
5628 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5629 }
5630 arg2 = reinterpret_cast< wxPen * >(argp2);
5631 {
5632 PyThreadState* __tstate = wxPyBeginAllowThreads();
5633 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5634 wxPyEndAllowThreads(__tstate);
5635 if (PyErr_Occurred()) SWIG_fail;
5636 }
5637 {
5638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5639 }
5640 return resultobj;
5641 fail:
5642 return NULL;
5643 }
5644
5645
5646 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5647 PyObject *resultobj = 0;
5648 wxPen *arg1 = (wxPen *) 0 ;
5649 wxPen *arg2 = (wxPen *) 0 ;
5650 bool result;
5651 void *argp1 = 0 ;
5652 int res1 = 0 ;
5653 void *argp2 = 0 ;
5654 int res2 = 0 ;
5655 PyObject * obj0 = 0 ;
5656 PyObject * obj1 = 0 ;
5657 char * kwnames[] = {
5658 (char *) "self",(char *) "other", NULL
5659 };
5660
5661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5663 if (!SWIG_IsOK(res1)) {
5664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5665 }
5666 arg1 = reinterpret_cast< wxPen * >(argp1);
5667 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5668 if (!SWIG_IsOK(res2)) {
5669 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5670 }
5671 arg2 = reinterpret_cast< wxPen * >(argp2);
5672 {
5673 PyThreadState* __tstate = wxPyBeginAllowThreads();
5674 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5675 wxPyEndAllowThreads(__tstate);
5676 if (PyErr_Occurred()) SWIG_fail;
5677 }
5678 {
5679 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5680 }
5681 return resultobj;
5682 fail:
5683 return NULL;
5684 }
5685
5686
5687 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5688 PyObject *obj;
5689 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5690 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5691 return SWIG_Py_Void();
5692 }
5693
5694 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5695 return SWIG_Python_InitShadowInstance(args);
5696 }
5697
5698 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5699 PyObject *resultobj = 0;
5700 wxColour *arg1 = 0 ;
5701 int arg2 = (int) wxSOLID ;
5702 wxBrush *result = 0 ;
5703 wxColour temp1 ;
5704 int val2 ;
5705 int ecode2 = 0 ;
5706 PyObject * obj0 = 0 ;
5707 PyObject * obj1 = 0 ;
5708 char * kwnames[] = {
5709 (char *) "colour",(char *) "style", NULL
5710 };
5711
5712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5713 {
5714 arg1 = &temp1;
5715 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5716 }
5717 if (obj1) {
5718 ecode2 = SWIG_AsVal_int(obj1, &val2);
5719 if (!SWIG_IsOK(ecode2)) {
5720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5721 }
5722 arg2 = static_cast< int >(val2);
5723 }
5724 {
5725 if (!wxPyCheckForApp()) SWIG_fail;
5726 PyThreadState* __tstate = wxPyBeginAllowThreads();
5727 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5728 wxPyEndAllowThreads(__tstate);
5729 if (PyErr_Occurred()) SWIG_fail;
5730 }
5731 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5732 return resultobj;
5733 fail:
5734 return NULL;
5735 }
5736
5737
5738 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5739 PyObject *resultobj = 0;
5740 wxBitmap *arg1 = 0 ;
5741 wxBrush *result = 0 ;
5742 void *argp1 = 0 ;
5743 int res1 = 0 ;
5744 PyObject * obj0 = 0 ;
5745 char * kwnames[] = {
5746 (char *) "stippleBitmap", NULL
5747 };
5748
5749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5750 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5751 if (!SWIG_IsOK(res1)) {
5752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5753 }
5754 if (!argp1) {
5755 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5756 }
5757 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5758 {
5759 if (!wxPyCheckForApp()) SWIG_fail;
5760 PyThreadState* __tstate = wxPyBeginAllowThreads();
5761 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5762 wxPyEndAllowThreads(__tstate);
5763 if (PyErr_Occurred()) SWIG_fail;
5764 }
5765 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5766 return resultobj;
5767 fail:
5768 return NULL;
5769 }
5770
5771
5772 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5773 PyObject *resultobj = 0;
5774 wxBrush *arg1 = (wxBrush *) 0 ;
5775 void *argp1 = 0 ;
5776 int res1 = 0 ;
5777 PyObject *swig_obj[1] ;
5778
5779 if (!args) SWIG_fail;
5780 swig_obj[0] = args;
5781 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5782 if (!SWIG_IsOK(res1)) {
5783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5784 }
5785 arg1 = reinterpret_cast< wxBrush * >(argp1);
5786 {
5787 PyThreadState* __tstate = wxPyBeginAllowThreads();
5788 delete arg1;
5789
5790 wxPyEndAllowThreads(__tstate);
5791 if (PyErr_Occurred()) SWIG_fail;
5792 }
5793 resultobj = SWIG_Py_Void();
5794 return resultobj;
5795 fail:
5796 return NULL;
5797 }
5798
5799
5800 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5801 PyObject *resultobj = 0;
5802 wxBrush *arg1 = (wxBrush *) 0 ;
5803 wxColour *arg2 = 0 ;
5804 void *argp1 = 0 ;
5805 int res1 = 0 ;
5806 wxColour temp2 ;
5807 PyObject * obj0 = 0 ;
5808 PyObject * obj1 = 0 ;
5809 char * kwnames[] = {
5810 (char *) "self",(char *) "col", NULL
5811 };
5812
5813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5815 if (!SWIG_IsOK(res1)) {
5816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5817 }
5818 arg1 = reinterpret_cast< wxBrush * >(argp1);
5819 {
5820 arg2 = &temp2;
5821 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5822 }
5823 {
5824 PyThreadState* __tstate = wxPyBeginAllowThreads();
5825 (arg1)->SetColour((wxColour const &)*arg2);
5826 wxPyEndAllowThreads(__tstate);
5827 if (PyErr_Occurred()) SWIG_fail;
5828 }
5829 resultobj = SWIG_Py_Void();
5830 return resultobj;
5831 fail:
5832 return NULL;
5833 }
5834
5835
5836 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5837 PyObject *resultobj = 0;
5838 wxBrush *arg1 = (wxBrush *) 0 ;
5839 int arg2 ;
5840 void *argp1 = 0 ;
5841 int res1 = 0 ;
5842 int val2 ;
5843 int ecode2 = 0 ;
5844 PyObject * obj0 = 0 ;
5845 PyObject * obj1 = 0 ;
5846 char * kwnames[] = {
5847 (char *) "self",(char *) "style", NULL
5848 };
5849
5850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5852 if (!SWIG_IsOK(res1)) {
5853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5854 }
5855 arg1 = reinterpret_cast< wxBrush * >(argp1);
5856 ecode2 = SWIG_AsVal_int(obj1, &val2);
5857 if (!SWIG_IsOK(ecode2)) {
5858 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5859 }
5860 arg2 = static_cast< int >(val2);
5861 {
5862 PyThreadState* __tstate = wxPyBeginAllowThreads();
5863 (arg1)->SetStyle(arg2);
5864 wxPyEndAllowThreads(__tstate);
5865 if (PyErr_Occurred()) SWIG_fail;
5866 }
5867 resultobj = SWIG_Py_Void();
5868 return resultobj;
5869 fail:
5870 return NULL;
5871 }
5872
5873
5874 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5875 PyObject *resultobj = 0;
5876 wxBrush *arg1 = (wxBrush *) 0 ;
5877 wxBitmap *arg2 = 0 ;
5878 void *argp1 = 0 ;
5879 int res1 = 0 ;
5880 void *argp2 = 0 ;
5881 int res2 = 0 ;
5882 PyObject * obj0 = 0 ;
5883 PyObject * obj1 = 0 ;
5884 char * kwnames[] = {
5885 (char *) "self",(char *) "stipple", NULL
5886 };
5887
5888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5890 if (!SWIG_IsOK(res1)) {
5891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5892 }
5893 arg1 = reinterpret_cast< wxBrush * >(argp1);
5894 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5895 if (!SWIG_IsOK(res2)) {
5896 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5897 }
5898 if (!argp2) {
5899 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5900 }
5901 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5902 {
5903 PyThreadState* __tstate = wxPyBeginAllowThreads();
5904 (arg1)->SetStipple((wxBitmap const &)*arg2);
5905 wxPyEndAllowThreads(__tstate);
5906 if (PyErr_Occurred()) SWIG_fail;
5907 }
5908 resultobj = SWIG_Py_Void();
5909 return resultobj;
5910 fail:
5911 return NULL;
5912 }
5913
5914
5915 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5916 PyObject *resultobj = 0;
5917 wxBrush *arg1 = (wxBrush *) 0 ;
5918 wxColour result;
5919 void *argp1 = 0 ;
5920 int res1 = 0 ;
5921 PyObject *swig_obj[1] ;
5922
5923 if (!args) SWIG_fail;
5924 swig_obj[0] = args;
5925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5926 if (!SWIG_IsOK(res1)) {
5927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5928 }
5929 arg1 = reinterpret_cast< wxBrush * >(argp1);
5930 {
5931 PyThreadState* __tstate = wxPyBeginAllowThreads();
5932 result = ((wxBrush const *)arg1)->GetColour();
5933 wxPyEndAllowThreads(__tstate);
5934 if (PyErr_Occurred()) SWIG_fail;
5935 }
5936 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5937 return resultobj;
5938 fail:
5939 return NULL;
5940 }
5941
5942
5943 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5944 PyObject *resultobj = 0;
5945 wxBrush *arg1 = (wxBrush *) 0 ;
5946 int result;
5947 void *argp1 = 0 ;
5948 int res1 = 0 ;
5949 PyObject *swig_obj[1] ;
5950
5951 if (!args) SWIG_fail;
5952 swig_obj[0] = args;
5953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5954 if (!SWIG_IsOK(res1)) {
5955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5956 }
5957 arg1 = reinterpret_cast< wxBrush * >(argp1);
5958 {
5959 PyThreadState* __tstate = wxPyBeginAllowThreads();
5960 result = (int)((wxBrush const *)arg1)->GetStyle();
5961 wxPyEndAllowThreads(__tstate);
5962 if (PyErr_Occurred()) SWIG_fail;
5963 }
5964 resultobj = SWIG_From_int(static_cast< int >(result));
5965 return resultobj;
5966 fail:
5967 return NULL;
5968 }
5969
5970
5971 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5972 PyObject *resultobj = 0;
5973 wxBrush *arg1 = (wxBrush *) 0 ;
5974 wxBitmap *result = 0 ;
5975 void *argp1 = 0 ;
5976 int res1 = 0 ;
5977 PyObject *swig_obj[1] ;
5978
5979 if (!args) SWIG_fail;
5980 swig_obj[0] = args;
5981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5982 if (!SWIG_IsOK(res1)) {
5983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5984 }
5985 arg1 = reinterpret_cast< wxBrush * >(argp1);
5986 {
5987 PyThreadState* __tstate = wxPyBeginAllowThreads();
5988 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5989 wxPyEndAllowThreads(__tstate);
5990 if (PyErr_Occurred()) SWIG_fail;
5991 }
5992 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5993 return resultobj;
5994 fail:
5995 return NULL;
5996 }
5997
5998
5999 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6000 PyObject *resultobj = 0;
6001 wxBrush *arg1 = (wxBrush *) 0 ;
6002 bool result;
6003 void *argp1 = 0 ;
6004 int res1 = 0 ;
6005 PyObject *swig_obj[1] ;
6006
6007 if (!args) SWIG_fail;
6008 swig_obj[0] = args;
6009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6010 if (!SWIG_IsOK(res1)) {
6011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
6012 }
6013 arg1 = reinterpret_cast< wxBrush * >(argp1);
6014 {
6015 PyThreadState* __tstate = wxPyBeginAllowThreads();
6016 result = (bool)((wxBrush const *)arg1)->IsHatch();
6017 wxPyEndAllowThreads(__tstate);
6018 if (PyErr_Occurred()) SWIG_fail;
6019 }
6020 {
6021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6022 }
6023 return resultobj;
6024 fail:
6025 return NULL;
6026 }
6027
6028
6029 SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6030 PyObject *resultobj = 0;
6031 wxBrush *arg1 = (wxBrush *) 0 ;
6032 bool result;
6033 void *argp1 = 0 ;
6034 int res1 = 0 ;
6035 PyObject *swig_obj[1] ;
6036
6037 if (!args) SWIG_fail;
6038 swig_obj[0] = args;
6039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6040 if (!SWIG_IsOK(res1)) {
6041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
6042 }
6043 arg1 = reinterpret_cast< wxBrush * >(argp1);
6044 {
6045 PyThreadState* __tstate = wxPyBeginAllowThreads();
6046 result = (bool)(arg1)->IsOk();
6047 wxPyEndAllowThreads(__tstate);
6048 if (PyErr_Occurred()) SWIG_fail;
6049 }
6050 {
6051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6052 }
6053 return resultobj;
6054 fail:
6055 return NULL;
6056 }
6057
6058
6059 SWIGINTERN PyObject *_wrap_Brush_MacGetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6060 PyObject *resultobj = 0;
6061 wxBrush *arg1 = (wxBrush *) 0 ;
6062 short result;
6063 void *argp1 = 0 ;
6064 int res1 = 0 ;
6065 PyObject *swig_obj[1] ;
6066
6067 if (!args) SWIG_fail;
6068 swig_obj[0] = args;
6069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6070 if (!SWIG_IsOK(res1)) {
6071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacGetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
6072 }
6073 arg1 = reinterpret_cast< wxBrush * >(argp1);
6074 {
6075 PyThreadState* __tstate = wxPyBeginAllowThreads();
6076 result = (short)(arg1)->MacGetTheme();
6077 wxPyEndAllowThreads(__tstate);
6078 if (PyErr_Occurred()) SWIG_fail;
6079 }
6080 resultobj = SWIG_From_short(static_cast< short >(result));
6081 return resultobj;
6082 fail:
6083 return NULL;
6084 }
6085
6086
6087 SWIGINTERN PyObject *_wrap_Brush_MacSetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6088 PyObject *resultobj = 0;
6089 wxBrush *arg1 = (wxBrush *) 0 ;
6090 short arg2 ;
6091 void *argp1 = 0 ;
6092 int res1 = 0 ;
6093 short val2 ;
6094 int ecode2 = 0 ;
6095 PyObject * obj0 = 0 ;
6096 PyObject * obj1 = 0 ;
6097 char * kwnames[] = {
6098 (char *) "self",(char *) "macThemeBrush", NULL
6099 };
6100
6101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) SWIG_fail;
6102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6103 if (!SWIG_IsOK(res1)) {
6104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacSetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
6105 }
6106 arg1 = reinterpret_cast< wxBrush * >(argp1);
6107 ecode2 = SWIG_AsVal_short(obj1, &val2);
6108 if (!SWIG_IsOK(ecode2)) {
6109 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_MacSetTheme" "', expected argument " "2"" of type '" "short""'");
6110 }
6111 arg2 = static_cast< short >(val2);
6112 {
6113 PyThreadState* __tstate = wxPyBeginAllowThreads();
6114 (arg1)->MacSetTheme(arg2);
6115 wxPyEndAllowThreads(__tstate);
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 *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6126 PyObject *obj;
6127 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6128 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6129 return SWIG_Py_Void();
6130 }
6131
6132 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6133 return SWIG_Python_InitShadowInstance(args);
6134 }
6135
6136 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6137 PyObject *resultobj = 0;
6138 wxString *arg1 = 0 ;
6139 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6140 wxBitmap *result = 0 ;
6141 bool temp1 = false ;
6142 int val2 ;
6143 int ecode2 = 0 ;
6144 PyObject * obj0 = 0 ;
6145 PyObject * obj1 = 0 ;
6146 char * kwnames[] = {
6147 (char *) "name",(char *) "type", NULL
6148 };
6149
6150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6151 {
6152 arg1 = wxString_in_helper(obj0);
6153 if (arg1 == NULL) SWIG_fail;
6154 temp1 = true;
6155 }
6156 if (obj1) {
6157 ecode2 = SWIG_AsVal_int(obj1, &val2);
6158 if (!SWIG_IsOK(ecode2)) {
6159 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6160 }
6161 arg2 = static_cast< wxBitmapType >(val2);
6162 }
6163 {
6164 if (!wxPyCheckForApp()) SWIG_fail;
6165 PyThreadState* __tstate = wxPyBeginAllowThreads();
6166 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6167 wxPyEndAllowThreads(__tstate);
6168 if (PyErr_Occurred()) SWIG_fail;
6169 }
6170 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6171 {
6172 if (temp1)
6173 delete arg1;
6174 }
6175 return resultobj;
6176 fail:
6177 {
6178 if (temp1)
6179 delete arg1;
6180 }
6181 return NULL;
6182 }
6183
6184
6185 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6186 PyObject *resultobj = 0;
6187 wxBitmap *arg1 = (wxBitmap *) 0 ;
6188 void *argp1 = 0 ;
6189 int res1 = 0 ;
6190 PyObject *swig_obj[1] ;
6191
6192 if (!args) SWIG_fail;
6193 swig_obj[0] = args;
6194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6195 if (!SWIG_IsOK(res1)) {
6196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6197 }
6198 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6199 {
6200 delete arg1;
6201
6202 if (PyErr_Occurred()) SWIG_fail;
6203 }
6204 resultobj = SWIG_Py_Void();
6205 return resultobj;
6206 fail:
6207 return NULL;
6208 }
6209
6210
6211 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6212 PyObject *resultobj = 0;
6213 int arg1 ;
6214 int arg2 ;
6215 int arg3 = (int) -1 ;
6216 wxBitmap *result = 0 ;
6217 int val1 ;
6218 int ecode1 = 0 ;
6219 int val2 ;
6220 int ecode2 = 0 ;
6221 int val3 ;
6222 int ecode3 = 0 ;
6223 PyObject * obj0 = 0 ;
6224 PyObject * obj1 = 0 ;
6225 PyObject * obj2 = 0 ;
6226 char * kwnames[] = {
6227 (char *) "width",(char *) "height",(char *) "depth", NULL
6228 };
6229
6230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6231 ecode1 = SWIG_AsVal_int(obj0, &val1);
6232 if (!SWIG_IsOK(ecode1)) {
6233 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6234 }
6235 arg1 = static_cast< int >(val1);
6236 ecode2 = SWIG_AsVal_int(obj1, &val2);
6237 if (!SWIG_IsOK(ecode2)) {
6238 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6239 }
6240 arg2 = static_cast< int >(val2);
6241 if (obj2) {
6242 ecode3 = SWIG_AsVal_int(obj2, &val3);
6243 if (!SWIG_IsOK(ecode3)) {
6244 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6245 }
6246 arg3 = static_cast< int >(val3);
6247 }
6248 {
6249 if (!wxPyCheckForApp()) SWIG_fail;
6250 PyThreadState* __tstate = wxPyBeginAllowThreads();
6251 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6252 wxPyEndAllowThreads(__tstate);
6253 if (PyErr_Occurred()) SWIG_fail;
6254 }
6255 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6256 return resultobj;
6257 fail:
6258 return NULL;
6259 }
6260
6261
6262 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6263 PyObject *resultobj = 0;
6264 wxIcon *arg1 = 0 ;
6265 wxBitmap *result = 0 ;
6266 void *argp1 = 0 ;
6267 int res1 = 0 ;
6268 PyObject * obj0 = 0 ;
6269 char * kwnames[] = {
6270 (char *) "icon", NULL
6271 };
6272
6273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6274 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6275 if (!SWIG_IsOK(res1)) {
6276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6277 }
6278 if (!argp1) {
6279 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6280 }
6281 arg1 = reinterpret_cast< wxIcon * >(argp1);
6282 {
6283 if (!wxPyCheckForApp()) SWIG_fail;
6284 PyThreadState* __tstate = wxPyBeginAllowThreads();
6285 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6286 wxPyEndAllowThreads(__tstate);
6287 if (PyErr_Occurred()) SWIG_fail;
6288 }
6289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6290 return resultobj;
6291 fail:
6292 return NULL;
6293 }
6294
6295
6296 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6297 PyObject *resultobj = 0;
6298 wxImage *arg1 = 0 ;
6299 int arg2 = (int) -1 ;
6300 wxBitmap *result = 0 ;
6301 void *argp1 = 0 ;
6302 int res1 = 0 ;
6303 int val2 ;
6304 int ecode2 = 0 ;
6305 PyObject * obj0 = 0 ;
6306 PyObject * obj1 = 0 ;
6307 char * kwnames[] = {
6308 (char *) "image",(char *) "depth", NULL
6309 };
6310
6311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6312 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6313 if (!SWIG_IsOK(res1)) {
6314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6315 }
6316 if (!argp1) {
6317 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6318 }
6319 arg1 = reinterpret_cast< wxImage * >(argp1);
6320 if (obj1) {
6321 ecode2 = SWIG_AsVal_int(obj1, &val2);
6322 if (!SWIG_IsOK(ecode2)) {
6323 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6324 }
6325 arg2 = static_cast< int >(val2);
6326 }
6327 {
6328 if (!wxPyCheckForApp()) SWIG_fail;
6329 PyThreadState* __tstate = wxPyBeginAllowThreads();
6330 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6331 wxPyEndAllowThreads(__tstate);
6332 if (PyErr_Occurred()) SWIG_fail;
6333 }
6334 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6335 return resultobj;
6336 fail:
6337 return NULL;
6338 }
6339
6340
6341 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6342 PyObject *resultobj = 0;
6343 PyObject *arg1 = (PyObject *) 0 ;
6344 wxBitmap *result = 0 ;
6345 PyObject * obj0 = 0 ;
6346 char * kwnames[] = {
6347 (char *) "listOfStrings", NULL
6348 };
6349
6350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6351 arg1 = obj0;
6352 {
6353 if (!wxPyCheckForApp()) SWIG_fail;
6354 PyThreadState* __tstate = wxPyBeginAllowThreads();
6355 result = (wxBitmap *)new_wxBitmap(arg1);
6356 wxPyEndAllowThreads(__tstate);
6357 if (PyErr_Occurred()) SWIG_fail;
6358 }
6359 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6360 return resultobj;
6361 fail:
6362 return NULL;
6363 }
6364
6365
6366 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6367 PyObject *resultobj = 0;
6368 PyObject *arg1 = (PyObject *) 0 ;
6369 int arg2 ;
6370 int arg3 ;
6371 int arg4 = (int) 1 ;
6372 wxBitmap *result = 0 ;
6373 int val2 ;
6374 int ecode2 = 0 ;
6375 int val3 ;
6376 int ecode3 = 0 ;
6377 int val4 ;
6378 int ecode4 = 0 ;
6379 PyObject * obj0 = 0 ;
6380 PyObject * obj1 = 0 ;
6381 PyObject * obj2 = 0 ;
6382 PyObject * obj3 = 0 ;
6383 char * kwnames[] = {
6384 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6385 };
6386
6387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6388 arg1 = obj0;
6389 ecode2 = SWIG_AsVal_int(obj1, &val2);
6390 if (!SWIG_IsOK(ecode2)) {
6391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6392 }
6393 arg2 = static_cast< int >(val2);
6394 ecode3 = SWIG_AsVal_int(obj2, &val3);
6395 if (!SWIG_IsOK(ecode3)) {
6396 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6397 }
6398 arg3 = static_cast< int >(val3);
6399 if (obj3) {
6400 ecode4 = SWIG_AsVal_int(obj3, &val4);
6401 if (!SWIG_IsOK(ecode4)) {
6402 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6403 }
6404 arg4 = static_cast< int >(val4);
6405 }
6406 {
6407 if (!wxPyCheckForApp()) SWIG_fail;
6408 PyThreadState* __tstate = wxPyBeginAllowThreads();
6409 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6410 wxPyEndAllowThreads(__tstate);
6411 if (PyErr_Occurred()) SWIG_fail;
6412 }
6413 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6414 return resultobj;
6415 fail:
6416 return NULL;
6417 }
6418
6419
6420 SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6421 PyObject *resultobj = 0;
6422 wxBitmap *arg1 = (wxBitmap *) 0 ;
6423 bool result;
6424 void *argp1 = 0 ;
6425 int res1 = 0 ;
6426 PyObject *swig_obj[1] ;
6427
6428 if (!args) SWIG_fail;
6429 swig_obj[0] = args;
6430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6431 if (!SWIG_IsOK(res1)) {
6432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
6433 }
6434 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6435 {
6436 result = (bool)(arg1)->IsOk();
6437 if (PyErr_Occurred()) SWIG_fail;
6438 }
6439 {
6440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6441 }
6442 return resultobj;
6443 fail:
6444 return NULL;
6445 }
6446
6447
6448 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6449 PyObject *resultobj = 0;
6450 wxBitmap *arg1 = (wxBitmap *) 0 ;
6451 int result;
6452 void *argp1 = 0 ;
6453 int res1 = 0 ;
6454 PyObject *swig_obj[1] ;
6455
6456 if (!args) SWIG_fail;
6457 swig_obj[0] = args;
6458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6459 if (!SWIG_IsOK(res1)) {
6460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6461 }
6462 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6463 {
6464 result = (int)(arg1)->GetWidth();
6465 if (PyErr_Occurred()) SWIG_fail;
6466 }
6467 resultobj = SWIG_From_int(static_cast< int >(result));
6468 return resultobj;
6469 fail:
6470 return NULL;
6471 }
6472
6473
6474 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6475 PyObject *resultobj = 0;
6476 wxBitmap *arg1 = (wxBitmap *) 0 ;
6477 int result;
6478 void *argp1 = 0 ;
6479 int res1 = 0 ;
6480 PyObject *swig_obj[1] ;
6481
6482 if (!args) SWIG_fail;
6483 swig_obj[0] = args;
6484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6485 if (!SWIG_IsOK(res1)) {
6486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6487 }
6488 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6489 {
6490 result = (int)(arg1)->GetHeight();
6491 if (PyErr_Occurred()) SWIG_fail;
6492 }
6493 resultobj = SWIG_From_int(static_cast< int >(result));
6494 return resultobj;
6495 fail:
6496 return NULL;
6497 }
6498
6499
6500 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6501 PyObject *resultobj = 0;
6502 wxBitmap *arg1 = (wxBitmap *) 0 ;
6503 int result;
6504 void *argp1 = 0 ;
6505 int res1 = 0 ;
6506 PyObject *swig_obj[1] ;
6507
6508 if (!args) SWIG_fail;
6509 swig_obj[0] = args;
6510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6511 if (!SWIG_IsOK(res1)) {
6512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6513 }
6514 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6515 {
6516 result = (int)(arg1)->GetDepth();
6517 if (PyErr_Occurred()) SWIG_fail;
6518 }
6519 resultobj = SWIG_From_int(static_cast< int >(result));
6520 return resultobj;
6521 fail:
6522 return NULL;
6523 }
6524
6525
6526 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6527 PyObject *resultobj = 0;
6528 wxBitmap *arg1 = (wxBitmap *) 0 ;
6529 wxSize result;
6530 void *argp1 = 0 ;
6531 int res1 = 0 ;
6532 PyObject *swig_obj[1] ;
6533
6534 if (!args) SWIG_fail;
6535 swig_obj[0] = args;
6536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6537 if (!SWIG_IsOK(res1)) {
6538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6539 }
6540 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6541 {
6542 result = wxBitmap_GetSize(arg1);
6543 if (PyErr_Occurred()) SWIG_fail;
6544 }
6545 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6546 return resultobj;
6547 fail:
6548 return NULL;
6549 }
6550
6551
6552 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6553 PyObject *resultobj = 0;
6554 wxBitmap *arg1 = (wxBitmap *) 0 ;
6555 SwigValueWrapper<wxImage > result;
6556 void *argp1 = 0 ;
6557 int res1 = 0 ;
6558 PyObject *swig_obj[1] ;
6559
6560 if (!args) SWIG_fail;
6561 swig_obj[0] = args;
6562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6563 if (!SWIG_IsOK(res1)) {
6564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6565 }
6566 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6567 {
6568 result = ((wxBitmap const *)arg1)->ConvertToImage();
6569 if (PyErr_Occurred()) SWIG_fail;
6570 }
6571 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6572 return resultobj;
6573 fail:
6574 return NULL;
6575 }
6576
6577
6578 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6579 PyObject *resultobj = 0;
6580 wxBitmap *arg1 = (wxBitmap *) 0 ;
6581 wxMask *result = 0 ;
6582 void *argp1 = 0 ;
6583 int res1 = 0 ;
6584 PyObject *swig_obj[1] ;
6585
6586 if (!args) SWIG_fail;
6587 swig_obj[0] = args;
6588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6589 if (!SWIG_IsOK(res1)) {
6590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6591 }
6592 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6593 {
6594 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6595 if (PyErr_Occurred()) SWIG_fail;
6596 }
6597 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6598 return resultobj;
6599 fail:
6600 return NULL;
6601 }
6602
6603
6604 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6605 PyObject *resultobj = 0;
6606 wxBitmap *arg1 = (wxBitmap *) 0 ;
6607 wxMask *arg2 = (wxMask *) 0 ;
6608 void *argp1 = 0 ;
6609 int res1 = 0 ;
6610 int res2 = 0 ;
6611 PyObject * obj0 = 0 ;
6612 PyObject * obj1 = 0 ;
6613 char * kwnames[] = {
6614 (char *) "self",(char *) "mask", NULL
6615 };
6616
6617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6619 if (!SWIG_IsOK(res1)) {
6620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6621 }
6622 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6623 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6624 if (!SWIG_IsOK(res2)) {
6625 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6626 }
6627 {
6628 (arg1)->SetMask(arg2);
6629 if (PyErr_Occurred()) SWIG_fail;
6630 }
6631 resultobj = SWIG_Py_Void();
6632 return resultobj;
6633 fail:
6634 return NULL;
6635 }
6636
6637
6638 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6639 PyObject *resultobj = 0;
6640 wxBitmap *arg1 = (wxBitmap *) 0 ;
6641 wxColour *arg2 = 0 ;
6642 void *argp1 = 0 ;
6643 int res1 = 0 ;
6644 wxColour temp2 ;
6645 PyObject * obj0 = 0 ;
6646 PyObject * obj1 = 0 ;
6647 char * kwnames[] = {
6648 (char *) "self",(char *) "colour", NULL
6649 };
6650
6651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6653 if (!SWIG_IsOK(res1)) {
6654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6655 }
6656 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6657 {
6658 arg2 = &temp2;
6659 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6660 }
6661 {
6662 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6663 if (PyErr_Occurred()) SWIG_fail;
6664 }
6665 resultobj = SWIG_Py_Void();
6666 return resultobj;
6667 fail:
6668 return NULL;
6669 }
6670
6671
6672 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6673 PyObject *resultobj = 0;
6674 wxBitmap *arg1 = (wxBitmap *) 0 ;
6675 wxRect *arg2 = 0 ;
6676 SwigValueWrapper<wxBitmap > result;
6677 void *argp1 = 0 ;
6678 int res1 = 0 ;
6679 wxRect temp2 ;
6680 PyObject * obj0 = 0 ;
6681 PyObject * obj1 = 0 ;
6682 char * kwnames[] = {
6683 (char *) "self",(char *) "rect", NULL
6684 };
6685
6686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6688 if (!SWIG_IsOK(res1)) {
6689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6690 }
6691 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6692 {
6693 arg2 = &temp2;
6694 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6695 }
6696 {
6697 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6698 if (PyErr_Occurred()) SWIG_fail;
6699 }
6700 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6701 return resultobj;
6702 fail:
6703 return NULL;
6704 }
6705
6706
6707 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6708 PyObject *resultobj = 0;
6709 wxBitmap *arg1 = (wxBitmap *) 0 ;
6710 wxString *arg2 = 0 ;
6711 wxBitmapType arg3 ;
6712 wxPalette *arg4 = (wxPalette *) NULL ;
6713 bool result;
6714 void *argp1 = 0 ;
6715 int res1 = 0 ;
6716 bool temp2 = false ;
6717 int val3 ;
6718 int ecode3 = 0 ;
6719 void *argp4 = 0 ;
6720 int res4 = 0 ;
6721 PyObject * obj0 = 0 ;
6722 PyObject * obj1 = 0 ;
6723 PyObject * obj2 = 0 ;
6724 PyObject * obj3 = 0 ;
6725 char * kwnames[] = {
6726 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6727 };
6728
6729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6731 if (!SWIG_IsOK(res1)) {
6732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6733 }
6734 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6735 {
6736 arg2 = wxString_in_helper(obj1);
6737 if (arg2 == NULL) SWIG_fail;
6738 temp2 = true;
6739 }
6740 ecode3 = SWIG_AsVal_int(obj2, &val3);
6741 if (!SWIG_IsOK(ecode3)) {
6742 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6743 }
6744 arg3 = static_cast< wxBitmapType >(val3);
6745 if (obj3) {
6746 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6747 if (!SWIG_IsOK(res4)) {
6748 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6749 }
6750 arg4 = reinterpret_cast< wxPalette * >(argp4);
6751 }
6752 {
6753 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6754 if (PyErr_Occurred()) SWIG_fail;
6755 }
6756 {
6757 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6758 }
6759 {
6760 if (temp2)
6761 delete arg2;
6762 }
6763 return resultobj;
6764 fail:
6765 {
6766 if (temp2)
6767 delete arg2;
6768 }
6769 return NULL;
6770 }
6771
6772
6773 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6774 PyObject *resultobj = 0;
6775 wxBitmap *arg1 = (wxBitmap *) 0 ;
6776 wxString *arg2 = 0 ;
6777 wxBitmapType arg3 ;
6778 bool result;
6779 void *argp1 = 0 ;
6780 int res1 = 0 ;
6781 bool temp2 = false ;
6782 int val3 ;
6783 int ecode3 = 0 ;
6784 PyObject * obj0 = 0 ;
6785 PyObject * obj1 = 0 ;
6786 PyObject * obj2 = 0 ;
6787 char * kwnames[] = {
6788 (char *) "self",(char *) "name",(char *) "type", NULL
6789 };
6790
6791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6793 if (!SWIG_IsOK(res1)) {
6794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6795 }
6796 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6797 {
6798 arg2 = wxString_in_helper(obj1);
6799 if (arg2 == NULL) SWIG_fail;
6800 temp2 = true;
6801 }
6802 ecode3 = SWIG_AsVal_int(obj2, &val3);
6803 if (!SWIG_IsOK(ecode3)) {
6804 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6805 }
6806 arg3 = static_cast< wxBitmapType >(val3);
6807 {
6808 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6809 if (PyErr_Occurred()) SWIG_fail;
6810 }
6811 {
6812 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6813 }
6814 {
6815 if (temp2)
6816 delete arg2;
6817 }
6818 return resultobj;
6819 fail:
6820 {
6821 if (temp2)
6822 delete arg2;
6823 }
6824 return NULL;
6825 }
6826
6827
6828 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6829 PyObject *resultobj = 0;
6830 wxBitmap *arg1 = (wxBitmap *) 0 ;
6831 wxPalette *result = 0 ;
6832 void *argp1 = 0 ;
6833 int res1 = 0 ;
6834 PyObject *swig_obj[1] ;
6835
6836 if (!args) SWIG_fail;
6837 swig_obj[0] = args;
6838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6839 if (!SWIG_IsOK(res1)) {
6840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6841 }
6842 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6843 {
6844 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6845 if (PyErr_Occurred()) SWIG_fail;
6846 }
6847 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6848 return resultobj;
6849 fail:
6850 return NULL;
6851 }
6852
6853
6854 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6855 PyObject *resultobj = 0;
6856 wxBitmap *arg1 = (wxBitmap *) 0 ;
6857 wxIcon *arg2 = 0 ;
6858 bool result;
6859 void *argp1 = 0 ;
6860 int res1 = 0 ;
6861 void *argp2 = 0 ;
6862 int res2 = 0 ;
6863 PyObject * obj0 = 0 ;
6864 PyObject * obj1 = 0 ;
6865 char * kwnames[] = {
6866 (char *) "self",(char *) "icon", NULL
6867 };
6868
6869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6871 if (!SWIG_IsOK(res1)) {
6872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6873 }
6874 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6875 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6876 if (!SWIG_IsOK(res2)) {
6877 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6878 }
6879 if (!argp2) {
6880 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6881 }
6882 arg2 = reinterpret_cast< wxIcon * >(argp2);
6883 {
6884 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6885 if (PyErr_Occurred()) SWIG_fail;
6886 }
6887 {
6888 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6889 }
6890 return resultobj;
6891 fail:
6892 return NULL;
6893 }
6894
6895
6896 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6897 PyObject *resultobj = 0;
6898 wxBitmap *arg1 = (wxBitmap *) 0 ;
6899 int arg2 ;
6900 void *argp1 = 0 ;
6901 int res1 = 0 ;
6902 int val2 ;
6903 int ecode2 = 0 ;
6904 PyObject * obj0 = 0 ;
6905 PyObject * obj1 = 0 ;
6906 char * kwnames[] = {
6907 (char *) "self",(char *) "height", NULL
6908 };
6909
6910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6912 if (!SWIG_IsOK(res1)) {
6913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6914 }
6915 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6916 ecode2 = SWIG_AsVal_int(obj1, &val2);
6917 if (!SWIG_IsOK(ecode2)) {
6918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6919 }
6920 arg2 = static_cast< int >(val2);
6921 {
6922 (arg1)->SetHeight(arg2);
6923 if (PyErr_Occurred()) SWIG_fail;
6924 }
6925 resultobj = SWIG_Py_Void();
6926 return resultobj;
6927 fail:
6928 return NULL;
6929 }
6930
6931
6932 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6933 PyObject *resultobj = 0;
6934 wxBitmap *arg1 = (wxBitmap *) 0 ;
6935 int arg2 ;
6936 void *argp1 = 0 ;
6937 int res1 = 0 ;
6938 int val2 ;
6939 int ecode2 = 0 ;
6940 PyObject * obj0 = 0 ;
6941 PyObject * obj1 = 0 ;
6942 char * kwnames[] = {
6943 (char *) "self",(char *) "width", NULL
6944 };
6945
6946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6948 if (!SWIG_IsOK(res1)) {
6949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6950 }
6951 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6952 ecode2 = SWIG_AsVal_int(obj1, &val2);
6953 if (!SWIG_IsOK(ecode2)) {
6954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6955 }
6956 arg2 = static_cast< int >(val2);
6957 {
6958 (arg1)->SetWidth(arg2);
6959 if (PyErr_Occurred()) SWIG_fail;
6960 }
6961 resultobj = SWIG_Py_Void();
6962 return resultobj;
6963 fail:
6964 return NULL;
6965 }
6966
6967
6968 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6969 PyObject *resultobj = 0;
6970 wxBitmap *arg1 = (wxBitmap *) 0 ;
6971 int arg2 ;
6972 void *argp1 = 0 ;
6973 int res1 = 0 ;
6974 int val2 ;
6975 int ecode2 = 0 ;
6976 PyObject * obj0 = 0 ;
6977 PyObject * obj1 = 0 ;
6978 char * kwnames[] = {
6979 (char *) "self",(char *) "depth", NULL
6980 };
6981
6982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6984 if (!SWIG_IsOK(res1)) {
6985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6986 }
6987 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6988 ecode2 = SWIG_AsVal_int(obj1, &val2);
6989 if (!SWIG_IsOK(ecode2)) {
6990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6991 }
6992 arg2 = static_cast< int >(val2);
6993 {
6994 (arg1)->SetDepth(arg2);
6995 if (PyErr_Occurred()) SWIG_fail;
6996 }
6997 resultobj = SWIG_Py_Void();
6998 return resultobj;
6999 fail:
7000 return NULL;
7001 }
7002
7003
7004 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7005 PyObject *resultobj = 0;
7006 wxBitmap *arg1 = (wxBitmap *) 0 ;
7007 wxSize *arg2 = 0 ;
7008 void *argp1 = 0 ;
7009 int res1 = 0 ;
7010 wxSize temp2 ;
7011 PyObject * obj0 = 0 ;
7012 PyObject * obj1 = 0 ;
7013 char * kwnames[] = {
7014 (char *) "self",(char *) "size", NULL
7015 };
7016
7017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
7018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7019 if (!SWIG_IsOK(res1)) {
7020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
7021 }
7022 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7023 {
7024 arg2 = &temp2;
7025 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7026 }
7027 {
7028 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
7029 if (PyErr_Occurred()) SWIG_fail;
7030 }
7031 resultobj = SWIG_Py_Void();
7032 return resultobj;
7033 fail:
7034 return NULL;
7035 }
7036
7037
7038 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7039 PyObject *resultobj = 0;
7040 wxBitmap *arg1 = (wxBitmap *) 0 ;
7041 buffer arg2 ;
7042 int arg3 ;
7043 void *argp1 = 0 ;
7044 int res1 = 0 ;
7045 Py_ssize_t temp2 ;
7046 PyObject * obj0 = 0 ;
7047 PyObject * obj1 = 0 ;
7048 char * kwnames[] = {
7049 (char *) "self",(char *) "data", NULL
7050 };
7051
7052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
7053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7054 if (!SWIG_IsOK(res1)) {
7055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
7056 }
7057 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7058 {
7059 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7060 arg3 = (int)temp2;
7061 }
7062 {
7063 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
7064 if (PyErr_Occurred()) SWIG_fail;
7065 }
7066 resultobj = SWIG_Py_Void();
7067 return resultobj;
7068 fail:
7069 return NULL;
7070 }
7071
7072
7073 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7074 PyObject *resultobj = 0;
7075 wxBitmap *arg1 = (wxBitmap *) 0 ;
7076 buffer arg2 ;
7077 int arg3 ;
7078 void *argp1 = 0 ;
7079 int res1 = 0 ;
7080 Py_ssize_t temp2 ;
7081 PyObject * obj0 = 0 ;
7082 PyObject * obj1 = 0 ;
7083 char * kwnames[] = {
7084 (char *) "self",(char *) "data", NULL
7085 };
7086
7087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7089 if (!SWIG_IsOK(res1)) {
7090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7091 }
7092 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7093 {
7094 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7095 arg3 = (int)temp2;
7096 }
7097 {
7098 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7099 if (PyErr_Occurred()) SWIG_fail;
7100 }
7101 resultobj = SWIG_Py_Void();
7102 return resultobj;
7103 fail:
7104 return NULL;
7105 }
7106
7107
7108 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7109 PyObject *resultobj = 0;
7110 wxBitmap *arg1 = (wxBitmap *) 0 ;
7111 wxBitmap *arg2 = (wxBitmap *) 0 ;
7112 bool result;
7113 void *argp1 = 0 ;
7114 int res1 = 0 ;
7115 void *argp2 = 0 ;
7116 int res2 = 0 ;
7117 PyObject * obj0 = 0 ;
7118 PyObject * obj1 = 0 ;
7119 char * kwnames[] = {
7120 (char *) "self",(char *) "other", NULL
7121 };
7122
7123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7125 if (!SWIG_IsOK(res1)) {
7126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7127 }
7128 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7129 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7130 if (!SWIG_IsOK(res2)) {
7131 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7132 }
7133 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7134 {
7135 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
7136 if (PyErr_Occurred()) SWIG_fail;
7137 }
7138 {
7139 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7140 }
7141 return resultobj;
7142 fail:
7143 return NULL;
7144 }
7145
7146
7147 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7148 PyObject *resultobj = 0;
7149 wxBitmap *arg1 = (wxBitmap *) 0 ;
7150 wxBitmap *arg2 = (wxBitmap *) 0 ;
7151 bool result;
7152 void *argp1 = 0 ;
7153 int res1 = 0 ;
7154 void *argp2 = 0 ;
7155 int res2 = 0 ;
7156 PyObject * obj0 = 0 ;
7157 PyObject * obj1 = 0 ;
7158 char * kwnames[] = {
7159 (char *) "self",(char *) "other", NULL
7160 };
7161
7162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7164 if (!SWIG_IsOK(res1)) {
7165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7166 }
7167 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7168 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7169 if (!SWIG_IsOK(res2)) {
7170 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7171 }
7172 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7173 {
7174 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7175 if (PyErr_Occurred()) SWIG_fail;
7176 }
7177 {
7178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7179 }
7180 return resultobj;
7181 fail:
7182 return NULL;
7183 }
7184
7185
7186 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7187 PyObject *obj;
7188 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7189 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7190 return SWIG_Py_Void();
7191 }
7192
7193 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7194 return SWIG_Python_InitShadowInstance(args);
7195 }
7196
7197 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7198 PyObject *resultobj = 0;
7199 int arg1 ;
7200 int arg2 ;
7201 buffer arg3 ;
7202 int arg4 ;
7203 buffer arg5 ;
7204 int arg6 ;
7205 wxBitmap *result = 0 ;
7206 int val1 ;
7207 int ecode1 = 0 ;
7208 int val2 ;
7209 int ecode2 = 0 ;
7210 Py_ssize_t temp3 ;
7211 Py_ssize_t temp5 ;
7212 PyObject * obj0 = 0 ;
7213 PyObject * obj1 = 0 ;
7214 PyObject * obj2 = 0 ;
7215 PyObject * obj3 = 0 ;
7216 char * kwnames[] = {
7217 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7218 };
7219
7220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7221 ecode1 = SWIG_AsVal_int(obj0, &val1);
7222 if (!SWIG_IsOK(ecode1)) {
7223 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7224 }
7225 arg1 = static_cast< int >(val1);
7226 ecode2 = SWIG_AsVal_int(obj1, &val2);
7227 if (!SWIG_IsOK(ecode2)) {
7228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7229 }
7230 arg2 = static_cast< int >(val2);
7231 {
7232 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7233 arg4 = (int)temp3;
7234 }
7235 {
7236 if (obj3 != Py_None) {
7237 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7238 arg6 = (int)temp5;
7239 }
7240 }
7241 {
7242 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7243 if (PyErr_Occurred()) SWIG_fail;
7244 }
7245 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7246 return resultobj;
7247 fail:
7248 return NULL;
7249 }
7250
7251
7252 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7253 PyObject *resultobj = 0;
7254 int arg1 ;
7255 int arg2 ;
7256 buffer arg3 ;
7257 int arg4 ;
7258 wxBitmap *result = 0 ;
7259 int val1 ;
7260 int ecode1 = 0 ;
7261 int val2 ;
7262 int ecode2 = 0 ;
7263 Py_ssize_t temp3 ;
7264 PyObject * obj0 = 0 ;
7265 PyObject * obj1 = 0 ;
7266 PyObject * obj2 = 0 ;
7267 char * kwnames[] = {
7268 (char *) "width",(char *) "height",(char *) "data", NULL
7269 };
7270
7271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7272 ecode1 = SWIG_AsVal_int(obj0, &val1);
7273 if (!SWIG_IsOK(ecode1)) {
7274 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7275 }
7276 arg1 = static_cast< int >(val1);
7277 ecode2 = SWIG_AsVal_int(obj1, &val2);
7278 if (!SWIG_IsOK(ecode2)) {
7279 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7280 }
7281 arg2 = static_cast< int >(val2);
7282 {
7283 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7284 arg4 = (int)temp3;
7285 }
7286 {
7287 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7288 if (PyErr_Occurred()) SWIG_fail;
7289 }
7290 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7291 return resultobj;
7292 fail:
7293 return NULL;
7294 }
7295
7296
7297 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7298 PyObject *resultobj = 0;
7299 int arg1 ;
7300 int arg2 ;
7301 buffer arg3 ;
7302 int arg4 ;
7303 wxBitmap *result = 0 ;
7304 int val1 ;
7305 int ecode1 = 0 ;
7306 int val2 ;
7307 int ecode2 = 0 ;
7308 Py_ssize_t temp3 ;
7309 PyObject * obj0 = 0 ;
7310 PyObject * obj1 = 0 ;
7311 PyObject * obj2 = 0 ;
7312 char * kwnames[] = {
7313 (char *) "width",(char *) "height",(char *) "data", NULL
7314 };
7315
7316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7317 ecode1 = SWIG_AsVal_int(obj0, &val1);
7318 if (!SWIG_IsOK(ecode1)) {
7319 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7320 }
7321 arg1 = static_cast< int >(val1);
7322 ecode2 = SWIG_AsVal_int(obj1, &val2);
7323 if (!SWIG_IsOK(ecode2)) {
7324 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7325 }
7326 arg2 = static_cast< int >(val2);
7327 {
7328 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7329 arg4 = (int)temp3;
7330 }
7331 {
7332 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7333 if (PyErr_Occurred()) SWIG_fail;
7334 }
7335 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7336 return resultobj;
7337 fail:
7338 return NULL;
7339 }
7340
7341
7342 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7343 PyObject *resultobj = 0;
7344 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7345 wxPoint result;
7346 void *argp1 = 0 ;
7347 int res1 = 0 ;
7348 PyObject *swig_obj[1] ;
7349
7350 if (!args) SWIG_fail;
7351 swig_obj[0] = args;
7352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7353 if (!SWIG_IsOK(res1)) {
7354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7355 }
7356 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7357 {
7358 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7359 if (PyErr_Occurred()) SWIG_fail;
7360 }
7361 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7362 return resultobj;
7363 fail:
7364 return NULL;
7365 }
7366
7367
7368 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7369 PyObject *resultobj = 0;
7370 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7371 int result;
7372 void *argp1 = 0 ;
7373 int res1 = 0 ;
7374 PyObject *swig_obj[1] ;
7375
7376 if (!args) SWIG_fail;
7377 swig_obj[0] = args;
7378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7379 if (!SWIG_IsOK(res1)) {
7380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7381 }
7382 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7383 {
7384 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7385 if (PyErr_Occurred()) SWIG_fail;
7386 }
7387 resultobj = SWIG_From_int(static_cast< int >(result));
7388 return resultobj;
7389 fail:
7390 return NULL;
7391 }
7392
7393
7394 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7395 PyObject *resultobj = 0;
7396 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7397 int result;
7398 void *argp1 = 0 ;
7399 int res1 = 0 ;
7400 PyObject *swig_obj[1] ;
7401
7402 if (!args) SWIG_fail;
7403 swig_obj[0] = args;
7404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7405 if (!SWIG_IsOK(res1)) {
7406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7407 }
7408 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7409 {
7410 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7411 if (PyErr_Occurred()) SWIG_fail;
7412 }
7413 resultobj = SWIG_From_int(static_cast< int >(result));
7414 return resultobj;
7415 fail:
7416 return NULL;
7417 }
7418
7419
7420 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7421 PyObject *resultobj = 0;
7422 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7423 wxSize result;
7424 void *argp1 = 0 ;
7425 int res1 = 0 ;
7426 PyObject *swig_obj[1] ;
7427
7428 if (!args) SWIG_fail;
7429 swig_obj[0] = args;
7430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7431 if (!SWIG_IsOK(res1)) {
7432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7433 }
7434 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7435 {
7436 result = ((wxPixelDataBase const *)arg1)->GetSize();
7437 if (PyErr_Occurred()) SWIG_fail;
7438 }
7439 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7440 return resultobj;
7441 fail:
7442 return NULL;
7443 }
7444
7445
7446 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7447 PyObject *resultobj = 0;
7448 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7449 int result;
7450 void *argp1 = 0 ;
7451 int res1 = 0 ;
7452 PyObject *swig_obj[1] ;
7453
7454 if (!args) SWIG_fail;
7455 swig_obj[0] = args;
7456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7457 if (!SWIG_IsOK(res1)) {
7458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7459 }
7460 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7461 {
7462 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7463 if (PyErr_Occurred()) SWIG_fail;
7464 }
7465 resultobj = SWIG_From_int(static_cast< int >(result));
7466 return resultobj;
7467 fail:
7468 return NULL;
7469 }
7470
7471
7472 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7473 PyObject *obj;
7474 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7475 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7476 return SWIG_Py_Void();
7477 }
7478
7479 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7480 PyObject *resultobj = 0;
7481 wxBitmap *arg1 = 0 ;
7482 wxNativePixelData *result = 0 ;
7483 void *argp1 = 0 ;
7484 int res1 = 0 ;
7485
7486 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7488 if (!SWIG_IsOK(res1)) {
7489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7490 }
7491 if (!argp1) {
7492 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7493 }
7494 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7495 {
7496 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7497 if (PyErr_Occurred()) SWIG_fail;
7498 }
7499 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7500 return resultobj;
7501 fail:
7502 return NULL;
7503 }
7504
7505
7506 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7507 PyObject *resultobj = 0;
7508 wxBitmap *arg1 = 0 ;
7509 wxRect *arg2 = 0 ;
7510 wxNativePixelData *result = 0 ;
7511 void *argp1 = 0 ;
7512 int res1 = 0 ;
7513 wxRect temp2 ;
7514
7515 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7517 if (!SWIG_IsOK(res1)) {
7518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7519 }
7520 if (!argp1) {
7521 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7522 }
7523 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7524 {
7525 arg2 = &temp2;
7526 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7527 }
7528 {
7529 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7530 if (PyErr_Occurred()) SWIG_fail;
7531 }
7532 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7533 return resultobj;
7534 fail:
7535 return NULL;
7536 }
7537
7538
7539 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7540 PyObject *resultobj = 0;
7541 wxBitmap *arg1 = 0 ;
7542 wxPoint *arg2 = 0 ;
7543 wxSize *arg3 = 0 ;
7544 wxNativePixelData *result = 0 ;
7545 void *argp1 = 0 ;
7546 int res1 = 0 ;
7547 wxPoint temp2 ;
7548 wxSize temp3 ;
7549
7550 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7552 if (!SWIG_IsOK(res1)) {
7553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7554 }
7555 if (!argp1) {
7556 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7557 }
7558 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7559 {
7560 arg2 = &temp2;
7561 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7562 }
7563 {
7564 arg3 = &temp3;
7565 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7566 }
7567 {
7568 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7569 if (PyErr_Occurred()) SWIG_fail;
7570 }
7571 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7572 return resultobj;
7573 fail:
7574 return NULL;
7575 }
7576
7577
7578 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7579 int argc;
7580 PyObject *argv[4];
7581
7582 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7583 --argc;
7584 if (argc == 1) {
7585 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7586 }
7587 if (argc == 2) {
7588 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7589 }
7590 if (argc == 3) {
7591 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7592 }
7593
7594 fail:
7595 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7596 return NULL;
7597 }
7598
7599
7600 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7601 PyObject *resultobj = 0;
7602 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7603 void *argp1 = 0 ;
7604 int res1 = 0 ;
7605 PyObject *swig_obj[1] ;
7606
7607 if (!args) SWIG_fail;
7608 swig_obj[0] = args;
7609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7610 if (!SWIG_IsOK(res1)) {
7611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7612 }
7613 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7614 {
7615 delete arg1;
7616
7617 if (PyErr_Occurred()) SWIG_fail;
7618 }
7619 resultobj = SWIG_Py_Void();
7620 return resultobj;
7621 fail:
7622 return NULL;
7623 }
7624
7625
7626 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7627 PyObject *resultobj = 0;
7628 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7629 wxNativePixelData_Accessor result;
7630 void *argp1 = 0 ;
7631 int res1 = 0 ;
7632 PyObject *swig_obj[1] ;
7633
7634 if (!args) SWIG_fail;
7635 swig_obj[0] = args;
7636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7637 if (!SWIG_IsOK(res1)) {
7638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7639 }
7640 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7641 {
7642 result = ((wxNativePixelData const *)arg1)->GetPixels();
7643 if (PyErr_Occurred()) SWIG_fail;
7644 }
7645 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7646 return resultobj;
7647 fail:
7648 return NULL;
7649 }
7650
7651
7652 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7653 PyObject *resultobj = 0;
7654 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7655 void *argp1 = 0 ;
7656 int res1 = 0 ;
7657 PyObject *swig_obj[1] ;
7658
7659 if (!args) SWIG_fail;
7660 swig_obj[0] = args;
7661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7662 if (!SWIG_IsOK(res1)) {
7663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7664 }
7665 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7666 {
7667 (arg1)->UseAlpha();
7668 if (PyErr_Occurred()) SWIG_fail;
7669 }
7670 resultobj = SWIG_Py_Void();
7671 return resultobj;
7672 fail:
7673 return NULL;
7674 }
7675
7676
7677 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7678 PyObject *resultobj = 0;
7679 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7680 bool result;
7681 void *argp1 = 0 ;
7682 int res1 = 0 ;
7683 PyObject *swig_obj[1] ;
7684
7685 if (!args) SWIG_fail;
7686 swig_obj[0] = args;
7687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7688 if (!SWIG_IsOK(res1)) {
7689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7690 }
7691 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7692 {
7693 result = (bool)wxNativePixelData___nonzero__(arg1);
7694 if (PyErr_Occurred()) SWIG_fail;
7695 }
7696 {
7697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7698 }
7699 return resultobj;
7700 fail:
7701 return NULL;
7702 }
7703
7704
7705 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7706 PyObject *obj;
7707 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7708 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7709 return SWIG_Py_Void();
7710 }
7711
7712 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7713 return SWIG_Python_InitShadowInstance(args);
7714 }
7715
7716 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7717 PyObject *resultobj = 0;
7718 wxNativePixelData *arg1 = 0 ;
7719 wxNativePixelData_Accessor *result = 0 ;
7720 void *argp1 = 0 ;
7721 int res1 = 0 ;
7722
7723 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7725 if (!SWIG_IsOK(res1)) {
7726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7727 }
7728 if (!argp1) {
7729 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7730 }
7731 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7732 {
7733 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7734 if (PyErr_Occurred()) SWIG_fail;
7735 }
7736 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7737 return resultobj;
7738 fail:
7739 return NULL;
7740 }
7741
7742
7743 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7744 PyObject *resultobj = 0;
7745 wxBitmap *arg1 = 0 ;
7746 wxNativePixelData *arg2 = 0 ;
7747 wxNativePixelData_Accessor *result = 0 ;
7748 void *argp1 = 0 ;
7749 int res1 = 0 ;
7750 void *argp2 = 0 ;
7751 int res2 = 0 ;
7752
7753 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7754 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7755 if (!SWIG_IsOK(res1)) {
7756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7757 }
7758 if (!argp1) {
7759 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7760 }
7761 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7762 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7763 if (!SWIG_IsOK(res2)) {
7764 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7765 }
7766 if (!argp2) {
7767 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7768 }
7769 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7770 {
7771 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7772 if (PyErr_Occurred()) SWIG_fail;
7773 }
7774 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7775 return resultobj;
7776 fail:
7777 return NULL;
7778 }
7779
7780
7781 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7782 PyObject *resultobj = 0;
7783 wxNativePixelData_Accessor *result = 0 ;
7784
7785 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7786 {
7787 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7788 if (PyErr_Occurred()) SWIG_fail;
7789 }
7790 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7791 return resultobj;
7792 fail:
7793 return NULL;
7794 }
7795
7796
7797 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7798 int argc;
7799 PyObject *argv[3];
7800
7801 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7802 --argc;
7803 if (argc == 0) {
7804 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7805 }
7806 if (argc == 1) {
7807 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7808 }
7809 if (argc == 2) {
7810 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7811 }
7812
7813 fail:
7814 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7815 return NULL;
7816 }
7817
7818
7819 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7820 PyObject *resultobj = 0;
7821 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7822 void *argp1 = 0 ;
7823 int res1 = 0 ;
7824 PyObject *swig_obj[1] ;
7825
7826 if (!args) SWIG_fail;
7827 swig_obj[0] = args;
7828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7829 if (!SWIG_IsOK(res1)) {
7830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7831 }
7832 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7833 {
7834 delete arg1;
7835
7836 if (PyErr_Occurred()) SWIG_fail;
7837 }
7838 resultobj = SWIG_Py_Void();
7839 return resultobj;
7840 fail:
7841 return NULL;
7842 }
7843
7844
7845 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7846 PyObject *resultobj = 0;
7847 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7848 wxNativePixelData *arg2 = 0 ;
7849 void *argp1 = 0 ;
7850 int res1 = 0 ;
7851 void *argp2 = 0 ;
7852 int res2 = 0 ;
7853 PyObject * obj0 = 0 ;
7854 PyObject * obj1 = 0 ;
7855 char * kwnames[] = {
7856 (char *) "self",(char *) "data", NULL
7857 };
7858
7859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7861 if (!SWIG_IsOK(res1)) {
7862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7863 }
7864 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7865 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7866 if (!SWIG_IsOK(res2)) {
7867 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7868 }
7869 if (!argp2) {
7870 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7871 }
7872 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7873 {
7874 (arg1)->Reset((wxNativePixelData const &)*arg2);
7875 if (PyErr_Occurred()) SWIG_fail;
7876 }
7877 resultobj = SWIG_Py_Void();
7878 return resultobj;
7879 fail:
7880 return NULL;
7881 }
7882
7883
7884 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7885 PyObject *resultobj = 0;
7886 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7887 bool result;
7888 void *argp1 = 0 ;
7889 int res1 = 0 ;
7890 PyObject *swig_obj[1] ;
7891
7892 if (!args) SWIG_fail;
7893 swig_obj[0] = args;
7894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7895 if (!SWIG_IsOK(res1)) {
7896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7897 }
7898 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7899 {
7900 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7901 if (PyErr_Occurred()) SWIG_fail;
7902 }
7903 {
7904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7905 }
7906 return resultobj;
7907 fail:
7908 return NULL;
7909 }
7910
7911
7912 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7913 PyObject *resultobj = 0;
7914 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7915 void *argp1 = 0 ;
7916 int res1 = 0 ;
7917 PyObject *swig_obj[1] ;
7918
7919 if (!args) SWIG_fail;
7920 swig_obj[0] = args;
7921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7922 if (!SWIG_IsOK(res1)) {
7923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7924 }
7925 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7926 {
7927 wxNativePixelData_Accessor_nextPixel(arg1);
7928 if (PyErr_Occurred()) SWIG_fail;
7929 }
7930 resultobj = SWIG_Py_Void();
7931 return resultobj;
7932 fail:
7933 return NULL;
7934 }
7935
7936
7937 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7938 PyObject *resultobj = 0;
7939 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7940 wxNativePixelData *arg2 = 0 ;
7941 int arg3 ;
7942 int arg4 ;
7943 void *argp1 = 0 ;
7944 int res1 = 0 ;
7945 void *argp2 = 0 ;
7946 int res2 = 0 ;
7947 int val3 ;
7948 int ecode3 = 0 ;
7949 int val4 ;
7950 int ecode4 = 0 ;
7951 PyObject * obj0 = 0 ;
7952 PyObject * obj1 = 0 ;
7953 PyObject * obj2 = 0 ;
7954 PyObject * obj3 = 0 ;
7955 char * kwnames[] = {
7956 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7957 };
7958
7959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7961 if (!SWIG_IsOK(res1)) {
7962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7963 }
7964 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7965 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7966 if (!SWIG_IsOK(res2)) {
7967 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7968 }
7969 if (!argp2) {
7970 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7971 }
7972 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7973 ecode3 = SWIG_AsVal_int(obj2, &val3);
7974 if (!SWIG_IsOK(ecode3)) {
7975 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7976 }
7977 arg3 = static_cast< int >(val3);
7978 ecode4 = SWIG_AsVal_int(obj3, &val4);
7979 if (!SWIG_IsOK(ecode4)) {
7980 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7981 }
7982 arg4 = static_cast< int >(val4);
7983 {
7984 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7985 if (PyErr_Occurred()) SWIG_fail;
7986 }
7987 resultobj = SWIG_Py_Void();
7988 return resultobj;
7989 fail:
7990 return NULL;
7991 }
7992
7993
7994 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7995 PyObject *resultobj = 0;
7996 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7997 wxNativePixelData *arg2 = 0 ;
7998 int arg3 ;
7999 void *argp1 = 0 ;
8000 int res1 = 0 ;
8001 void *argp2 = 0 ;
8002 int res2 = 0 ;
8003 int val3 ;
8004 int ecode3 = 0 ;
8005 PyObject * obj0 = 0 ;
8006 PyObject * obj1 = 0 ;
8007 PyObject * obj2 = 0 ;
8008 char * kwnames[] = {
8009 (char *) "self",(char *) "data",(char *) "x", NULL
8010 };
8011
8012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8014 if (!SWIG_IsOK(res1)) {
8015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8016 }
8017 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8018 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8019 if (!SWIG_IsOK(res2)) {
8020 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8021 }
8022 if (!argp2) {
8023 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8024 }
8025 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8026 ecode3 = SWIG_AsVal_int(obj2, &val3);
8027 if (!SWIG_IsOK(ecode3)) {
8028 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8029 }
8030 arg3 = static_cast< int >(val3);
8031 {
8032 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
8033 if (PyErr_Occurred()) SWIG_fail;
8034 }
8035 resultobj = SWIG_Py_Void();
8036 return resultobj;
8037 fail:
8038 return NULL;
8039 }
8040
8041
8042 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8043 PyObject *resultobj = 0;
8044 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8045 wxNativePixelData *arg2 = 0 ;
8046 int arg3 ;
8047 void *argp1 = 0 ;
8048 int res1 = 0 ;
8049 void *argp2 = 0 ;
8050 int res2 = 0 ;
8051 int val3 ;
8052 int ecode3 = 0 ;
8053 PyObject * obj0 = 0 ;
8054 PyObject * obj1 = 0 ;
8055 PyObject * obj2 = 0 ;
8056 char * kwnames[] = {
8057 (char *) "self",(char *) "data",(char *) "y", NULL
8058 };
8059
8060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8062 if (!SWIG_IsOK(res1)) {
8063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8064 }
8065 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8066 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8067 if (!SWIG_IsOK(res2)) {
8068 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8069 }
8070 if (!argp2) {
8071 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8072 }
8073 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8074 ecode3 = SWIG_AsVal_int(obj2, &val3);
8075 if (!SWIG_IsOK(ecode3)) {
8076 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8077 }
8078 arg3 = static_cast< int >(val3);
8079 {
8080 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
8081 if (PyErr_Occurred()) SWIG_fail;
8082 }
8083 resultobj = SWIG_Py_Void();
8084 return resultobj;
8085 fail:
8086 return NULL;
8087 }
8088
8089
8090 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8091 PyObject *resultobj = 0;
8092 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8093 wxNativePixelData *arg2 = 0 ;
8094 int arg3 ;
8095 int arg4 ;
8096 void *argp1 = 0 ;
8097 int res1 = 0 ;
8098 void *argp2 = 0 ;
8099 int res2 = 0 ;
8100 int val3 ;
8101 int ecode3 = 0 ;
8102 int val4 ;
8103 int ecode4 = 0 ;
8104 PyObject * obj0 = 0 ;
8105 PyObject * obj1 = 0 ;
8106 PyObject * obj2 = 0 ;
8107 PyObject * obj3 = 0 ;
8108 char * kwnames[] = {
8109 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8110 };
8111
8112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8114 if (!SWIG_IsOK(res1)) {
8115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8116 }
8117 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8118 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8119 if (!SWIG_IsOK(res2)) {
8120 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8121 }
8122 if (!argp2) {
8123 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8124 }
8125 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8126 ecode3 = SWIG_AsVal_int(obj2, &val3);
8127 if (!SWIG_IsOK(ecode3)) {
8128 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8129 }
8130 arg3 = static_cast< int >(val3);
8131 ecode4 = SWIG_AsVal_int(obj3, &val4);
8132 if (!SWIG_IsOK(ecode4)) {
8133 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8134 }
8135 arg4 = static_cast< int >(val4);
8136 {
8137 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8138 if (PyErr_Occurred()) SWIG_fail;
8139 }
8140 resultobj = SWIG_Py_Void();
8141 return resultobj;
8142 fail:
8143 return NULL;
8144 }
8145
8146
8147 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8148 PyObject *resultobj = 0;
8149 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8150 byte arg2 ;
8151 byte arg3 ;
8152 byte arg4 ;
8153 void *argp1 = 0 ;
8154 int res1 = 0 ;
8155 unsigned char val2 ;
8156 int ecode2 = 0 ;
8157 unsigned char val3 ;
8158 int ecode3 = 0 ;
8159 unsigned char val4 ;
8160 int ecode4 = 0 ;
8161 PyObject * obj0 = 0 ;
8162 PyObject * obj1 = 0 ;
8163 PyObject * obj2 = 0 ;
8164 PyObject * obj3 = 0 ;
8165 char * kwnames[] = {
8166 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8167 };
8168
8169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8171 if (!SWIG_IsOK(res1)) {
8172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8173 }
8174 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8175 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8176 if (!SWIG_IsOK(ecode2)) {
8177 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8178 }
8179 arg2 = static_cast< byte >(val2);
8180 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8181 if (!SWIG_IsOK(ecode3)) {
8182 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8183 }
8184 arg3 = static_cast< byte >(val3);
8185 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8186 if (!SWIG_IsOK(ecode4)) {
8187 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8188 }
8189 arg4 = static_cast< byte >(val4);
8190 {
8191 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8192 if (PyErr_Occurred()) SWIG_fail;
8193 }
8194 resultobj = SWIG_Py_Void();
8195 return resultobj;
8196 fail:
8197 return NULL;
8198 }
8199
8200
8201 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8202 PyObject *resultobj = 0;
8203 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8204 PyObject *result = 0 ;
8205 void *argp1 = 0 ;
8206 int res1 = 0 ;
8207 PyObject *swig_obj[1] ;
8208
8209 if (!args) SWIG_fail;
8210 swig_obj[0] = args;
8211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8212 if (!SWIG_IsOK(res1)) {
8213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8214 }
8215 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8216 {
8217 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8218 if (PyErr_Occurred()) SWIG_fail;
8219 }
8220 resultobj = result;
8221 return resultobj;
8222 fail:
8223 return NULL;
8224 }
8225
8226
8227 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8228 PyObject *obj;
8229 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8230 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8231 return SWIG_Py_Void();
8232 }
8233
8234 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8235 return SWIG_Python_InitShadowInstance(args);
8236 }
8237
8238 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8239 PyObject *resultobj = 0;
8240 wxBitmap *arg1 = 0 ;
8241 wxAlphaPixelData *result = 0 ;
8242 void *argp1 = 0 ;
8243 int res1 = 0 ;
8244
8245 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8247 if (!SWIG_IsOK(res1)) {
8248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8249 }
8250 if (!argp1) {
8251 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8252 }
8253 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8254 {
8255 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8256 if (PyErr_Occurred()) SWIG_fail;
8257 }
8258 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8259 return resultobj;
8260 fail:
8261 return NULL;
8262 }
8263
8264
8265 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8266 PyObject *resultobj = 0;
8267 wxBitmap *arg1 = 0 ;
8268 wxRect *arg2 = 0 ;
8269 wxAlphaPixelData *result = 0 ;
8270 void *argp1 = 0 ;
8271 int res1 = 0 ;
8272 wxRect temp2 ;
8273
8274 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8276 if (!SWIG_IsOK(res1)) {
8277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8278 }
8279 if (!argp1) {
8280 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8281 }
8282 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8283 {
8284 arg2 = &temp2;
8285 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8286 }
8287 {
8288 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8289 if (PyErr_Occurred()) SWIG_fail;
8290 }
8291 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8292 return resultobj;
8293 fail:
8294 return NULL;
8295 }
8296
8297
8298 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8299 PyObject *resultobj = 0;
8300 wxBitmap *arg1 = 0 ;
8301 wxPoint *arg2 = 0 ;
8302 wxSize *arg3 = 0 ;
8303 wxAlphaPixelData *result = 0 ;
8304 void *argp1 = 0 ;
8305 int res1 = 0 ;
8306 wxPoint temp2 ;
8307 wxSize temp3 ;
8308
8309 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8311 if (!SWIG_IsOK(res1)) {
8312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8313 }
8314 if (!argp1) {
8315 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8316 }
8317 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8318 {
8319 arg2 = &temp2;
8320 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8321 }
8322 {
8323 arg3 = &temp3;
8324 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8325 }
8326 {
8327 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8328 if (PyErr_Occurred()) SWIG_fail;
8329 }
8330 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8331 return resultobj;
8332 fail:
8333 return NULL;
8334 }
8335
8336
8337 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8338 int argc;
8339 PyObject *argv[4];
8340
8341 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8342 --argc;
8343 if (argc == 1) {
8344 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8345 }
8346 if (argc == 2) {
8347 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8348 }
8349 if (argc == 3) {
8350 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8351 }
8352
8353 fail:
8354 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8355 return NULL;
8356 }
8357
8358
8359 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8360 PyObject *resultobj = 0;
8361 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8362 void *argp1 = 0 ;
8363 int res1 = 0 ;
8364 PyObject *swig_obj[1] ;
8365
8366 if (!args) SWIG_fail;
8367 swig_obj[0] = args;
8368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8369 if (!SWIG_IsOK(res1)) {
8370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8371 }
8372 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8373 {
8374 delete arg1;
8375
8376 if (PyErr_Occurred()) SWIG_fail;
8377 }
8378 resultobj = SWIG_Py_Void();
8379 return resultobj;
8380 fail:
8381 return NULL;
8382 }
8383
8384
8385 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8386 PyObject *resultobj = 0;
8387 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8388 wxAlphaPixelData_Accessor result;
8389 void *argp1 = 0 ;
8390 int res1 = 0 ;
8391 PyObject *swig_obj[1] ;
8392
8393 if (!args) SWIG_fail;
8394 swig_obj[0] = args;
8395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8396 if (!SWIG_IsOK(res1)) {
8397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8398 }
8399 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8400 {
8401 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8402 if (PyErr_Occurred()) SWIG_fail;
8403 }
8404 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8405 return resultobj;
8406 fail:
8407 return NULL;
8408 }
8409
8410
8411 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8412 PyObject *resultobj = 0;
8413 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8414 void *argp1 = 0 ;
8415 int res1 = 0 ;
8416 PyObject *swig_obj[1] ;
8417
8418 if (!args) SWIG_fail;
8419 swig_obj[0] = args;
8420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8421 if (!SWIG_IsOK(res1)) {
8422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8423 }
8424 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8425 {
8426 (arg1)->UseAlpha();
8427 if (PyErr_Occurred()) SWIG_fail;
8428 }
8429 resultobj = SWIG_Py_Void();
8430 return resultobj;
8431 fail:
8432 return NULL;
8433 }
8434
8435
8436 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8437 PyObject *resultobj = 0;
8438 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8439 bool result;
8440 void *argp1 = 0 ;
8441 int res1 = 0 ;
8442 PyObject *swig_obj[1] ;
8443
8444 if (!args) SWIG_fail;
8445 swig_obj[0] = args;
8446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8447 if (!SWIG_IsOK(res1)) {
8448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8449 }
8450 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8451 {
8452 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8453 if (PyErr_Occurred()) SWIG_fail;
8454 }
8455 {
8456 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8457 }
8458 return resultobj;
8459 fail:
8460 return NULL;
8461 }
8462
8463
8464 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8465 PyObject *obj;
8466 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8467 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8468 return SWIG_Py_Void();
8469 }
8470
8471 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8472 return SWIG_Python_InitShadowInstance(args);
8473 }
8474
8475 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8476 PyObject *resultobj = 0;
8477 wxAlphaPixelData *arg1 = 0 ;
8478 wxAlphaPixelData_Accessor *result = 0 ;
8479 void *argp1 = 0 ;
8480 int res1 = 0 ;
8481
8482 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8484 if (!SWIG_IsOK(res1)) {
8485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8486 }
8487 if (!argp1) {
8488 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8489 }
8490 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8491 {
8492 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8493 if (PyErr_Occurred()) SWIG_fail;
8494 }
8495 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8496 return resultobj;
8497 fail:
8498 return NULL;
8499 }
8500
8501
8502 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8503 PyObject *resultobj = 0;
8504 wxBitmap *arg1 = 0 ;
8505 wxAlphaPixelData *arg2 = 0 ;
8506 wxAlphaPixelData_Accessor *result = 0 ;
8507 void *argp1 = 0 ;
8508 int res1 = 0 ;
8509 void *argp2 = 0 ;
8510 int res2 = 0 ;
8511
8512 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8514 if (!SWIG_IsOK(res1)) {
8515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8516 }
8517 if (!argp1) {
8518 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8519 }
8520 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8521 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8522 if (!SWIG_IsOK(res2)) {
8523 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8524 }
8525 if (!argp2) {
8526 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8527 }
8528 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8529 {
8530 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8531 if (PyErr_Occurred()) SWIG_fail;
8532 }
8533 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8534 return resultobj;
8535 fail:
8536 return NULL;
8537 }
8538
8539
8540 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8541 PyObject *resultobj = 0;
8542 wxAlphaPixelData_Accessor *result = 0 ;
8543
8544 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8545 {
8546 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8547 if (PyErr_Occurred()) SWIG_fail;
8548 }
8549 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8550 return resultobj;
8551 fail:
8552 return NULL;
8553 }
8554
8555
8556 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8557 int argc;
8558 PyObject *argv[3];
8559
8560 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8561 --argc;
8562 if (argc == 0) {
8563 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8564 }
8565 if (argc == 1) {
8566 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8567 }
8568 if (argc == 2) {
8569 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8570 }
8571
8572 fail:
8573 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8574 return NULL;
8575 }
8576
8577
8578 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8579 PyObject *resultobj = 0;
8580 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8581 void *argp1 = 0 ;
8582 int res1 = 0 ;
8583 PyObject *swig_obj[1] ;
8584
8585 if (!args) SWIG_fail;
8586 swig_obj[0] = args;
8587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8588 if (!SWIG_IsOK(res1)) {
8589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8590 }
8591 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8592 {
8593 delete arg1;
8594
8595 if (PyErr_Occurred()) SWIG_fail;
8596 }
8597 resultobj = SWIG_Py_Void();
8598 return resultobj;
8599 fail:
8600 return NULL;
8601 }
8602
8603
8604 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8605 PyObject *resultobj = 0;
8606 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8607 wxAlphaPixelData *arg2 = 0 ;
8608 void *argp1 = 0 ;
8609 int res1 = 0 ;
8610 void *argp2 = 0 ;
8611 int res2 = 0 ;
8612 PyObject * obj0 = 0 ;
8613 PyObject * obj1 = 0 ;
8614 char * kwnames[] = {
8615 (char *) "self",(char *) "data", NULL
8616 };
8617
8618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8620 if (!SWIG_IsOK(res1)) {
8621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8622 }
8623 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8624 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8625 if (!SWIG_IsOK(res2)) {
8626 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8627 }
8628 if (!argp2) {
8629 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8630 }
8631 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8632 {
8633 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8634 if (PyErr_Occurred()) SWIG_fail;
8635 }
8636 resultobj = SWIG_Py_Void();
8637 return resultobj;
8638 fail:
8639 return NULL;
8640 }
8641
8642
8643 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8644 PyObject *resultobj = 0;
8645 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8646 bool result;
8647 void *argp1 = 0 ;
8648 int res1 = 0 ;
8649 PyObject *swig_obj[1] ;
8650
8651 if (!args) SWIG_fail;
8652 swig_obj[0] = args;
8653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8654 if (!SWIG_IsOK(res1)) {
8655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8656 }
8657 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8658 {
8659 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8660 if (PyErr_Occurred()) SWIG_fail;
8661 }
8662 {
8663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8664 }
8665 return resultobj;
8666 fail:
8667 return NULL;
8668 }
8669
8670
8671 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8672 PyObject *resultobj = 0;
8673 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8674 void *argp1 = 0 ;
8675 int res1 = 0 ;
8676 PyObject *swig_obj[1] ;
8677
8678 if (!args) SWIG_fail;
8679 swig_obj[0] = args;
8680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8681 if (!SWIG_IsOK(res1)) {
8682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8683 }
8684 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8685 {
8686 wxAlphaPixelData_Accessor_nextPixel(arg1);
8687 if (PyErr_Occurred()) SWIG_fail;
8688 }
8689 resultobj = SWIG_Py_Void();
8690 return resultobj;
8691 fail:
8692 return NULL;
8693 }
8694
8695
8696 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8697 PyObject *resultobj = 0;
8698 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8699 wxAlphaPixelData *arg2 = 0 ;
8700 int arg3 ;
8701 int arg4 ;
8702 void *argp1 = 0 ;
8703 int res1 = 0 ;
8704 void *argp2 = 0 ;
8705 int res2 = 0 ;
8706 int val3 ;
8707 int ecode3 = 0 ;
8708 int val4 ;
8709 int ecode4 = 0 ;
8710 PyObject * obj0 = 0 ;
8711 PyObject * obj1 = 0 ;
8712 PyObject * obj2 = 0 ;
8713 PyObject * obj3 = 0 ;
8714 char * kwnames[] = {
8715 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8716 };
8717
8718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8720 if (!SWIG_IsOK(res1)) {
8721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8722 }
8723 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8724 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8725 if (!SWIG_IsOK(res2)) {
8726 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8727 }
8728 if (!argp2) {
8729 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8730 }
8731 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8732 ecode3 = SWIG_AsVal_int(obj2, &val3);
8733 if (!SWIG_IsOK(ecode3)) {
8734 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8735 }
8736 arg3 = static_cast< int >(val3);
8737 ecode4 = SWIG_AsVal_int(obj3, &val4);
8738 if (!SWIG_IsOK(ecode4)) {
8739 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8740 }
8741 arg4 = static_cast< int >(val4);
8742 {
8743 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8744 if (PyErr_Occurred()) SWIG_fail;
8745 }
8746 resultobj = SWIG_Py_Void();
8747 return resultobj;
8748 fail:
8749 return NULL;
8750 }
8751
8752
8753 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8754 PyObject *resultobj = 0;
8755 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8756 wxAlphaPixelData *arg2 = 0 ;
8757 int arg3 ;
8758 void *argp1 = 0 ;
8759 int res1 = 0 ;
8760 void *argp2 = 0 ;
8761 int res2 = 0 ;
8762 int val3 ;
8763 int ecode3 = 0 ;
8764 PyObject * obj0 = 0 ;
8765 PyObject * obj1 = 0 ;
8766 PyObject * obj2 = 0 ;
8767 char * kwnames[] = {
8768 (char *) "self",(char *) "data",(char *) "x", NULL
8769 };
8770
8771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8773 if (!SWIG_IsOK(res1)) {
8774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8775 }
8776 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8777 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8778 if (!SWIG_IsOK(res2)) {
8779 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8780 }
8781 if (!argp2) {
8782 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8783 }
8784 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8785 ecode3 = SWIG_AsVal_int(obj2, &val3);
8786 if (!SWIG_IsOK(ecode3)) {
8787 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8788 }
8789 arg3 = static_cast< int >(val3);
8790 {
8791 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8792 if (PyErr_Occurred()) SWIG_fail;
8793 }
8794 resultobj = SWIG_Py_Void();
8795 return resultobj;
8796 fail:
8797 return NULL;
8798 }
8799
8800
8801 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8802 PyObject *resultobj = 0;
8803 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8804 wxAlphaPixelData *arg2 = 0 ;
8805 int arg3 ;
8806 void *argp1 = 0 ;
8807 int res1 = 0 ;
8808 void *argp2 = 0 ;
8809 int res2 = 0 ;
8810 int val3 ;
8811 int ecode3 = 0 ;
8812 PyObject * obj0 = 0 ;
8813 PyObject * obj1 = 0 ;
8814 PyObject * obj2 = 0 ;
8815 char * kwnames[] = {
8816 (char *) "self",(char *) "data",(char *) "y", NULL
8817 };
8818
8819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8821 if (!SWIG_IsOK(res1)) {
8822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8823 }
8824 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8825 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8826 if (!SWIG_IsOK(res2)) {
8827 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8828 }
8829 if (!argp2) {
8830 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8831 }
8832 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8833 ecode3 = SWIG_AsVal_int(obj2, &val3);
8834 if (!SWIG_IsOK(ecode3)) {
8835 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8836 }
8837 arg3 = static_cast< int >(val3);
8838 {
8839 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8840 if (PyErr_Occurred()) SWIG_fail;
8841 }
8842 resultobj = SWIG_Py_Void();
8843 return resultobj;
8844 fail:
8845 return NULL;
8846 }
8847
8848
8849 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8850 PyObject *resultobj = 0;
8851 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8852 wxAlphaPixelData *arg2 = 0 ;
8853 int arg3 ;
8854 int arg4 ;
8855 void *argp1 = 0 ;
8856 int res1 = 0 ;
8857 void *argp2 = 0 ;
8858 int res2 = 0 ;
8859 int val3 ;
8860 int ecode3 = 0 ;
8861 int val4 ;
8862 int ecode4 = 0 ;
8863 PyObject * obj0 = 0 ;
8864 PyObject * obj1 = 0 ;
8865 PyObject * obj2 = 0 ;
8866 PyObject * obj3 = 0 ;
8867 char * kwnames[] = {
8868 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8869 };
8870
8871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8873 if (!SWIG_IsOK(res1)) {
8874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8875 }
8876 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8877 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8878 if (!SWIG_IsOK(res2)) {
8879 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8880 }
8881 if (!argp2) {
8882 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8883 }
8884 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8885 ecode3 = SWIG_AsVal_int(obj2, &val3);
8886 if (!SWIG_IsOK(ecode3)) {
8887 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8888 }
8889 arg3 = static_cast< int >(val3);
8890 ecode4 = SWIG_AsVal_int(obj3, &val4);
8891 if (!SWIG_IsOK(ecode4)) {
8892 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8893 }
8894 arg4 = static_cast< int >(val4);
8895 {
8896 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8897 if (PyErr_Occurred()) SWIG_fail;
8898 }
8899 resultobj = SWIG_Py_Void();
8900 return resultobj;
8901 fail:
8902 return NULL;
8903 }
8904
8905
8906 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8907 PyObject *resultobj = 0;
8908 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8909 byte arg2 ;
8910 byte arg3 ;
8911 byte arg4 ;
8912 byte arg5 ;
8913 void *argp1 = 0 ;
8914 int res1 = 0 ;
8915 unsigned char val2 ;
8916 int ecode2 = 0 ;
8917 unsigned char val3 ;
8918 int ecode3 = 0 ;
8919 unsigned char val4 ;
8920 int ecode4 = 0 ;
8921 unsigned char val5 ;
8922 int ecode5 = 0 ;
8923 PyObject * obj0 = 0 ;
8924 PyObject * obj1 = 0 ;
8925 PyObject * obj2 = 0 ;
8926 PyObject * obj3 = 0 ;
8927 PyObject * obj4 = 0 ;
8928 char * kwnames[] = {
8929 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8930 };
8931
8932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8934 if (!SWIG_IsOK(res1)) {
8935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8936 }
8937 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8938 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8939 if (!SWIG_IsOK(ecode2)) {
8940 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8941 }
8942 arg2 = static_cast< byte >(val2);
8943 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8944 if (!SWIG_IsOK(ecode3)) {
8945 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8946 }
8947 arg3 = static_cast< byte >(val3);
8948 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8949 if (!SWIG_IsOK(ecode4)) {
8950 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8951 }
8952 arg4 = static_cast< byte >(val4);
8953 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8954 if (!SWIG_IsOK(ecode5)) {
8955 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8956 }
8957 arg5 = static_cast< byte >(val5);
8958 {
8959 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8960 if (PyErr_Occurred()) SWIG_fail;
8961 }
8962 resultobj = SWIG_Py_Void();
8963 return resultobj;
8964 fail:
8965 return NULL;
8966 }
8967
8968
8969 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8970 PyObject *resultobj = 0;
8971 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8972 PyObject *result = 0 ;
8973 void *argp1 = 0 ;
8974 int res1 = 0 ;
8975 PyObject *swig_obj[1] ;
8976
8977 if (!args) SWIG_fail;
8978 swig_obj[0] = args;
8979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8980 if (!SWIG_IsOK(res1)) {
8981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8982 }
8983 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8984 {
8985 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
8986 if (PyErr_Occurred()) SWIG_fail;
8987 }
8988 resultobj = result;
8989 return resultobj;
8990 fail:
8991 return NULL;
8992 }
8993
8994
8995 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8996 PyObject *obj;
8997 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8998 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
8999 return SWIG_Py_Void();
9000 }
9001
9002 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9003 return SWIG_Python_InitShadowInstance(args);
9004 }
9005
9006 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9007 PyObject *resultobj = 0;
9008 wxBitmap *arg1 = 0 ;
9009 wxColour const &arg2_defvalue = wxNullColour ;
9010 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
9011 wxMask *result = 0 ;
9012 void *argp1 = 0 ;
9013 int res1 = 0 ;
9014 wxColour temp2 ;
9015 PyObject * obj0 = 0 ;
9016 PyObject * obj1 = 0 ;
9017 char * kwnames[] = {
9018 (char *) "bitmap",(char *) "colour", NULL
9019 };
9020
9021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
9022 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9023 if (!SWIG_IsOK(res1)) {
9024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9025 }
9026 if (!argp1) {
9027 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9028 }
9029 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9030 if (obj1) {
9031 {
9032 arg2 = &temp2;
9033 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
9034 }
9035 }
9036 {
9037 if (!wxPyCheckForApp()) SWIG_fail;
9038 PyThreadState* __tstate = wxPyBeginAllowThreads();
9039 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
9040 wxPyEndAllowThreads(__tstate);
9041 if (PyErr_Occurred()) SWIG_fail;
9042 }
9043 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
9044 return resultobj;
9045 fail:
9046 return NULL;
9047 }
9048
9049
9050 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9051 PyObject *resultobj = 0;
9052 wxMask *arg1 = (wxMask *) 0 ;
9053 void *argp1 = 0 ;
9054 int res1 = 0 ;
9055 PyObject *swig_obj[1] ;
9056
9057 if (!args) SWIG_fail;
9058 swig_obj[0] = args;
9059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
9060 if (!SWIG_IsOK(res1)) {
9061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
9062 }
9063 arg1 = reinterpret_cast< wxMask * >(argp1);
9064 {
9065 delete arg1;
9066
9067 if (PyErr_Occurred()) SWIG_fail;
9068 }
9069 resultobj = SWIG_Py_Void();
9070 return resultobj;
9071 fail:
9072 return NULL;
9073 }
9074
9075
9076 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9077 PyObject *obj;
9078 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9079 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9080 return SWIG_Py_Void();
9081 }
9082
9083 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9084 return SWIG_Python_InitShadowInstance(args);
9085 }
9086
9087 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9088 PyObject *resultobj = 0;
9089 wxString *arg1 = 0 ;
9090 wxBitmapType arg2 ;
9091 int arg3 = (int) -1 ;
9092 int arg4 = (int) -1 ;
9093 wxIcon *result = 0 ;
9094 bool temp1 = false ;
9095 int val2 ;
9096 int ecode2 = 0 ;
9097 int val3 ;
9098 int ecode3 = 0 ;
9099 int val4 ;
9100 int ecode4 = 0 ;
9101 PyObject * obj0 = 0 ;
9102 PyObject * obj1 = 0 ;
9103 PyObject * obj2 = 0 ;
9104 PyObject * obj3 = 0 ;
9105 char * kwnames[] = {
9106 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9107 };
9108
9109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9110 {
9111 arg1 = wxString_in_helper(obj0);
9112 if (arg1 == NULL) SWIG_fail;
9113 temp1 = true;
9114 }
9115 ecode2 = SWIG_AsVal_int(obj1, &val2);
9116 if (!SWIG_IsOK(ecode2)) {
9117 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9118 }
9119 arg2 = static_cast< wxBitmapType >(val2);
9120 if (obj2) {
9121 ecode3 = SWIG_AsVal_int(obj2, &val3);
9122 if (!SWIG_IsOK(ecode3)) {
9123 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9124 }
9125 arg3 = static_cast< int >(val3);
9126 }
9127 if (obj3) {
9128 ecode4 = SWIG_AsVal_int(obj3, &val4);
9129 if (!SWIG_IsOK(ecode4)) {
9130 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9131 }
9132 arg4 = static_cast< int >(val4);
9133 }
9134 {
9135 if (!wxPyCheckForApp()) SWIG_fail;
9136 PyThreadState* __tstate = wxPyBeginAllowThreads();
9137 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9138 wxPyEndAllowThreads(__tstate);
9139 if (PyErr_Occurred()) SWIG_fail;
9140 }
9141 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9142 {
9143 if (temp1)
9144 delete arg1;
9145 }
9146 return resultobj;
9147 fail:
9148 {
9149 if (temp1)
9150 delete arg1;
9151 }
9152 return NULL;
9153 }
9154
9155
9156 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9157 PyObject *resultobj = 0;
9158 wxIcon *arg1 = (wxIcon *) 0 ;
9159 void *argp1 = 0 ;
9160 int res1 = 0 ;
9161 PyObject *swig_obj[1] ;
9162
9163 if (!args) SWIG_fail;
9164 swig_obj[0] = args;
9165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9166 if (!SWIG_IsOK(res1)) {
9167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9168 }
9169 arg1 = reinterpret_cast< wxIcon * >(argp1);
9170 {
9171 PyThreadState* __tstate = wxPyBeginAllowThreads();
9172 delete arg1;
9173
9174 wxPyEndAllowThreads(__tstate);
9175 if (PyErr_Occurred()) SWIG_fail;
9176 }
9177 resultobj = SWIG_Py_Void();
9178 return resultobj;
9179 fail:
9180 return NULL;
9181 }
9182
9183
9184 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9185 PyObject *resultobj = 0;
9186 wxIcon *result = 0 ;
9187
9188 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9189 {
9190 if (!wxPyCheckForApp()) SWIG_fail;
9191 PyThreadState* __tstate = wxPyBeginAllowThreads();
9192 result = (wxIcon *)new wxIcon();
9193 wxPyEndAllowThreads(__tstate);
9194 if (PyErr_Occurred()) SWIG_fail;
9195 }
9196 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9197 return resultobj;
9198 fail:
9199 return NULL;
9200 }
9201
9202
9203 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9204 PyObject *resultobj = 0;
9205 wxIconLocation *arg1 = 0 ;
9206 wxIcon *result = 0 ;
9207 void *argp1 = 0 ;
9208 int res1 = 0 ;
9209 PyObject * obj0 = 0 ;
9210 char * kwnames[] = {
9211 (char *) "loc", NULL
9212 };
9213
9214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9215 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9216 if (!SWIG_IsOK(res1)) {
9217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9218 }
9219 if (!argp1) {
9220 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9221 }
9222 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9223 {
9224 if (!wxPyCheckForApp()) SWIG_fail;
9225 PyThreadState* __tstate = wxPyBeginAllowThreads();
9226 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9227 wxPyEndAllowThreads(__tstate);
9228 if (PyErr_Occurred()) SWIG_fail;
9229 }
9230 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9231 return resultobj;
9232 fail:
9233 return NULL;
9234 }
9235
9236
9237 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9238 PyObject *resultobj = 0;
9239 wxBitmap *arg1 = 0 ;
9240 wxIcon *result = 0 ;
9241 void *argp1 = 0 ;
9242 int res1 = 0 ;
9243 PyObject * obj0 = 0 ;
9244 char * kwnames[] = {
9245 (char *) "bmp", NULL
9246 };
9247
9248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9249 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9250 if (!SWIG_IsOK(res1)) {
9251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9252 }
9253 if (!argp1) {
9254 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9255 }
9256 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9257 {
9258 if (!wxPyCheckForApp()) SWIG_fail;
9259 PyThreadState* __tstate = wxPyBeginAllowThreads();
9260 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9261 wxPyEndAllowThreads(__tstate);
9262 if (PyErr_Occurred()) SWIG_fail;
9263 }
9264 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9265 return resultobj;
9266 fail:
9267 return NULL;
9268 }
9269
9270
9271 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9272 PyObject *resultobj = 0;
9273 PyObject *arg1 = (PyObject *) 0 ;
9274 wxIcon *result = 0 ;
9275 PyObject * obj0 = 0 ;
9276 char * kwnames[] = {
9277 (char *) "listOfStrings", NULL
9278 };
9279
9280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9281 arg1 = obj0;
9282 {
9283 if (!wxPyCheckForApp()) SWIG_fail;
9284 PyThreadState* __tstate = wxPyBeginAllowThreads();
9285 result = (wxIcon *)new_wxIcon(arg1);
9286 wxPyEndAllowThreads(__tstate);
9287 if (PyErr_Occurred()) SWIG_fail;
9288 }
9289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9290 return resultobj;
9291 fail:
9292 return NULL;
9293 }
9294
9295
9296 SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9297 PyObject *resultobj = 0;
9298 wxIcon *arg1 = (wxIcon *) 0 ;
9299 bool result;
9300 void *argp1 = 0 ;
9301 int res1 = 0 ;
9302 PyObject *swig_obj[1] ;
9303
9304 if (!args) SWIG_fail;
9305 swig_obj[0] = args;
9306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9307 if (!SWIG_IsOK(res1)) {
9308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
9309 }
9310 arg1 = reinterpret_cast< wxIcon * >(argp1);
9311 {
9312 PyThreadState* __tstate = wxPyBeginAllowThreads();
9313 result = (bool)(arg1)->IsOk();
9314 wxPyEndAllowThreads(__tstate);
9315 if (PyErr_Occurred()) SWIG_fail;
9316 }
9317 {
9318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9319 }
9320 return resultobj;
9321 fail:
9322 return NULL;
9323 }
9324
9325
9326 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9327 PyObject *resultobj = 0;
9328 wxIcon *arg1 = (wxIcon *) 0 ;
9329 int result;
9330 void *argp1 = 0 ;
9331 int res1 = 0 ;
9332 PyObject *swig_obj[1] ;
9333
9334 if (!args) SWIG_fail;
9335 swig_obj[0] = args;
9336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9337 if (!SWIG_IsOK(res1)) {
9338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9339 }
9340 arg1 = reinterpret_cast< wxIcon * >(argp1);
9341 {
9342 PyThreadState* __tstate = wxPyBeginAllowThreads();
9343 result = (int)(arg1)->GetWidth();
9344 wxPyEndAllowThreads(__tstate);
9345 if (PyErr_Occurred()) SWIG_fail;
9346 }
9347 resultobj = SWIG_From_int(static_cast< int >(result));
9348 return resultobj;
9349 fail:
9350 return NULL;
9351 }
9352
9353
9354 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9355 PyObject *resultobj = 0;
9356 wxIcon *arg1 = (wxIcon *) 0 ;
9357 int result;
9358 void *argp1 = 0 ;
9359 int res1 = 0 ;
9360 PyObject *swig_obj[1] ;
9361
9362 if (!args) SWIG_fail;
9363 swig_obj[0] = args;
9364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9365 if (!SWIG_IsOK(res1)) {
9366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9367 }
9368 arg1 = reinterpret_cast< wxIcon * >(argp1);
9369 {
9370 PyThreadState* __tstate = wxPyBeginAllowThreads();
9371 result = (int)(arg1)->GetHeight();
9372 wxPyEndAllowThreads(__tstate);
9373 if (PyErr_Occurred()) SWIG_fail;
9374 }
9375 resultobj = SWIG_From_int(static_cast< int >(result));
9376 return resultobj;
9377 fail:
9378 return NULL;
9379 }
9380
9381
9382 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9383 PyObject *resultobj = 0;
9384 wxIcon *arg1 = (wxIcon *) 0 ;
9385 int result;
9386 void *argp1 = 0 ;
9387 int res1 = 0 ;
9388 PyObject *swig_obj[1] ;
9389
9390 if (!args) SWIG_fail;
9391 swig_obj[0] = args;
9392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9393 if (!SWIG_IsOK(res1)) {
9394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9395 }
9396 arg1 = reinterpret_cast< wxIcon * >(argp1);
9397 {
9398 PyThreadState* __tstate = wxPyBeginAllowThreads();
9399 result = (int)(arg1)->GetDepth();
9400 wxPyEndAllowThreads(__tstate);
9401 if (PyErr_Occurred()) SWIG_fail;
9402 }
9403 resultobj = SWIG_From_int(static_cast< int >(result));
9404 return resultobj;
9405 fail:
9406 return NULL;
9407 }
9408
9409
9410 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9411 PyObject *resultobj = 0;
9412 wxIcon *arg1 = (wxIcon *) 0 ;
9413 int arg2 ;
9414 void *argp1 = 0 ;
9415 int res1 = 0 ;
9416 int val2 ;
9417 int ecode2 = 0 ;
9418 PyObject * obj0 = 0 ;
9419 PyObject * obj1 = 0 ;
9420 char * kwnames[] = {
9421 (char *) "self",(char *) "w", NULL
9422 };
9423
9424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9426 if (!SWIG_IsOK(res1)) {
9427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9428 }
9429 arg1 = reinterpret_cast< wxIcon * >(argp1);
9430 ecode2 = SWIG_AsVal_int(obj1, &val2);
9431 if (!SWIG_IsOK(ecode2)) {
9432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9433 }
9434 arg2 = static_cast< int >(val2);
9435 {
9436 PyThreadState* __tstate = wxPyBeginAllowThreads();
9437 (arg1)->SetWidth(arg2);
9438 wxPyEndAllowThreads(__tstate);
9439 if (PyErr_Occurred()) SWIG_fail;
9440 }
9441 resultobj = SWIG_Py_Void();
9442 return resultobj;
9443 fail:
9444 return NULL;
9445 }
9446
9447
9448 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9449 PyObject *resultobj = 0;
9450 wxIcon *arg1 = (wxIcon *) 0 ;
9451 int arg2 ;
9452 void *argp1 = 0 ;
9453 int res1 = 0 ;
9454 int val2 ;
9455 int ecode2 = 0 ;
9456 PyObject * obj0 = 0 ;
9457 PyObject * obj1 = 0 ;
9458 char * kwnames[] = {
9459 (char *) "self",(char *) "h", NULL
9460 };
9461
9462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9464 if (!SWIG_IsOK(res1)) {
9465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9466 }
9467 arg1 = reinterpret_cast< wxIcon * >(argp1);
9468 ecode2 = SWIG_AsVal_int(obj1, &val2);
9469 if (!SWIG_IsOK(ecode2)) {
9470 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9471 }
9472 arg2 = static_cast< int >(val2);
9473 {
9474 PyThreadState* __tstate = wxPyBeginAllowThreads();
9475 (arg1)->SetHeight(arg2);
9476 wxPyEndAllowThreads(__tstate);
9477 if (PyErr_Occurred()) SWIG_fail;
9478 }
9479 resultobj = SWIG_Py_Void();
9480 return resultobj;
9481 fail:
9482 return NULL;
9483 }
9484
9485
9486 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9487 PyObject *resultobj = 0;
9488 wxIcon *arg1 = (wxIcon *) 0 ;
9489 int arg2 ;
9490 void *argp1 = 0 ;
9491 int res1 = 0 ;
9492 int val2 ;
9493 int ecode2 = 0 ;
9494 PyObject * obj0 = 0 ;
9495 PyObject * obj1 = 0 ;
9496 char * kwnames[] = {
9497 (char *) "self",(char *) "d", NULL
9498 };
9499
9500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9502 if (!SWIG_IsOK(res1)) {
9503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9504 }
9505 arg1 = reinterpret_cast< wxIcon * >(argp1);
9506 ecode2 = SWIG_AsVal_int(obj1, &val2);
9507 if (!SWIG_IsOK(ecode2)) {
9508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9509 }
9510 arg2 = static_cast< int >(val2);
9511 {
9512 PyThreadState* __tstate = wxPyBeginAllowThreads();
9513 (arg1)->SetDepth(arg2);
9514 wxPyEndAllowThreads(__tstate);
9515 if (PyErr_Occurred()) SWIG_fail;
9516 }
9517 resultobj = SWIG_Py_Void();
9518 return resultobj;
9519 fail:
9520 return NULL;
9521 }
9522
9523
9524 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9525 PyObject *resultobj = 0;
9526 wxIcon *arg1 = (wxIcon *) 0 ;
9527 wxBitmap *arg2 = 0 ;
9528 void *argp1 = 0 ;
9529 int res1 = 0 ;
9530 void *argp2 = 0 ;
9531 int res2 = 0 ;
9532 PyObject * obj0 = 0 ;
9533 PyObject * obj1 = 0 ;
9534 char * kwnames[] = {
9535 (char *) "self",(char *) "bmp", NULL
9536 };
9537
9538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9540 if (!SWIG_IsOK(res1)) {
9541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9542 }
9543 arg1 = reinterpret_cast< wxIcon * >(argp1);
9544 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9545 if (!SWIG_IsOK(res2)) {
9546 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9547 }
9548 if (!argp2) {
9549 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9550 }
9551 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9552 {
9553 PyThreadState* __tstate = wxPyBeginAllowThreads();
9554 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9555 wxPyEndAllowThreads(__tstate);
9556 if (PyErr_Occurred()) SWIG_fail;
9557 }
9558 resultobj = SWIG_Py_Void();
9559 return resultobj;
9560 fail:
9561 return NULL;
9562 }
9563
9564
9565 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9566 PyObject *obj;
9567 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9568 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9569 return SWIG_Py_Void();
9570 }
9571
9572 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9573 return SWIG_Python_InitShadowInstance(args);
9574 }
9575
9576 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9577 PyObject *resultobj = 0;
9578 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9579 int arg2 = (int) 0 ;
9580 wxIconLocation *result = 0 ;
9581 bool temp1 = false ;
9582 int val2 ;
9583 int ecode2 = 0 ;
9584 PyObject * obj0 = 0 ;
9585 PyObject * obj1 = 0 ;
9586 char * kwnames[] = {
9587 (char *) "filename",(char *) "num", NULL
9588 };
9589
9590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9591 if (obj0) {
9592 {
9593 arg1 = wxString_in_helper(obj0);
9594 if (arg1 == NULL) SWIG_fail;
9595 temp1 = true;
9596 }
9597 }
9598 if (obj1) {
9599 ecode2 = SWIG_AsVal_int(obj1, &val2);
9600 if (!SWIG_IsOK(ecode2)) {
9601 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9602 }
9603 arg2 = static_cast< int >(val2);
9604 }
9605 {
9606 PyThreadState* __tstate = wxPyBeginAllowThreads();
9607 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9608 wxPyEndAllowThreads(__tstate);
9609 if (PyErr_Occurred()) SWIG_fail;
9610 }
9611 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9612 {
9613 if (temp1)
9614 delete arg1;
9615 }
9616 return resultobj;
9617 fail:
9618 {
9619 if (temp1)
9620 delete arg1;
9621 }
9622 return NULL;
9623 }
9624
9625
9626 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9627 PyObject *resultobj = 0;
9628 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
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, SWIG_POINTER_DISOWN | 0 );
9636 if (!SWIG_IsOK(res1)) {
9637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9638 }
9639 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9640 {
9641 PyThreadState* __tstate = wxPyBeginAllowThreads();
9642 delete arg1;
9643
9644 wxPyEndAllowThreads(__tstate);
9645 if (PyErr_Occurred()) SWIG_fail;
9646 }
9647 resultobj = SWIG_Py_Void();
9648 return resultobj;
9649 fail:
9650 return NULL;
9651 }
9652
9653
9654 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9655 PyObject *resultobj = 0;
9656 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9657 bool result;
9658 void *argp1 = 0 ;
9659 int res1 = 0 ;
9660 PyObject *swig_obj[1] ;
9661
9662 if (!args) SWIG_fail;
9663 swig_obj[0] = args;
9664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9665 if (!SWIG_IsOK(res1)) {
9666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9667 }
9668 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9669 {
9670 PyThreadState* __tstate = wxPyBeginAllowThreads();
9671 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9672 wxPyEndAllowThreads(__tstate);
9673 if (PyErr_Occurred()) SWIG_fail;
9674 }
9675 {
9676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9677 }
9678 return resultobj;
9679 fail:
9680 return NULL;
9681 }
9682
9683
9684 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9685 PyObject *resultobj = 0;
9686 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9687 wxString *arg2 = 0 ;
9688 void *argp1 = 0 ;
9689 int res1 = 0 ;
9690 bool temp2 = false ;
9691 PyObject * obj0 = 0 ;
9692 PyObject * obj1 = 0 ;
9693 char * kwnames[] = {
9694 (char *) "self",(char *) "filename", NULL
9695 };
9696
9697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9699 if (!SWIG_IsOK(res1)) {
9700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9701 }
9702 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9703 {
9704 arg2 = wxString_in_helper(obj1);
9705 if (arg2 == NULL) SWIG_fail;
9706 temp2 = true;
9707 }
9708 {
9709 PyThreadState* __tstate = wxPyBeginAllowThreads();
9710 (arg1)->SetFileName((wxString const &)*arg2);
9711 wxPyEndAllowThreads(__tstate);
9712 if (PyErr_Occurred()) SWIG_fail;
9713 }
9714 resultobj = SWIG_Py_Void();
9715 {
9716 if (temp2)
9717 delete arg2;
9718 }
9719 return resultobj;
9720 fail:
9721 {
9722 if (temp2)
9723 delete arg2;
9724 }
9725 return NULL;
9726 }
9727
9728
9729 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9730 PyObject *resultobj = 0;
9731 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9732 wxString *result = 0 ;
9733 void *argp1 = 0 ;
9734 int res1 = 0 ;
9735 PyObject *swig_obj[1] ;
9736
9737 if (!args) SWIG_fail;
9738 swig_obj[0] = args;
9739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9740 if (!SWIG_IsOK(res1)) {
9741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9742 }
9743 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9744 {
9745 PyThreadState* __tstate = wxPyBeginAllowThreads();
9746 {
9747 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9748 result = (wxString *) &_result_ref;
9749 }
9750 wxPyEndAllowThreads(__tstate);
9751 if (PyErr_Occurred()) SWIG_fail;
9752 }
9753 {
9754 #if wxUSE_UNICODE
9755 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9756 #else
9757 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9758 #endif
9759 }
9760 return resultobj;
9761 fail:
9762 return NULL;
9763 }
9764
9765
9766 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9767 PyObject *resultobj = 0;
9768 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9769 int arg2 ;
9770 void *argp1 = 0 ;
9771 int res1 = 0 ;
9772 int val2 ;
9773 int ecode2 = 0 ;
9774 PyObject * obj0 = 0 ;
9775 PyObject * obj1 = 0 ;
9776 char * kwnames[] = {
9777 (char *) "self",(char *) "num", NULL
9778 };
9779
9780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9782 if (!SWIG_IsOK(res1)) {
9783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9784 }
9785 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9786 ecode2 = SWIG_AsVal_int(obj1, &val2);
9787 if (!SWIG_IsOK(ecode2)) {
9788 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9789 }
9790 arg2 = static_cast< int >(val2);
9791 {
9792 PyThreadState* __tstate = wxPyBeginAllowThreads();
9793 wxIconLocation_SetIndex(arg1,arg2);
9794 wxPyEndAllowThreads(__tstate);
9795 if (PyErr_Occurred()) SWIG_fail;
9796 }
9797 resultobj = SWIG_Py_Void();
9798 return resultobj;
9799 fail:
9800 return NULL;
9801 }
9802
9803
9804 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9805 PyObject *resultobj = 0;
9806 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9807 int result;
9808 void *argp1 = 0 ;
9809 int res1 = 0 ;
9810 PyObject *swig_obj[1] ;
9811
9812 if (!args) SWIG_fail;
9813 swig_obj[0] = args;
9814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9815 if (!SWIG_IsOK(res1)) {
9816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9817 }
9818 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9819 {
9820 PyThreadState* __tstate = wxPyBeginAllowThreads();
9821 result = (int)wxIconLocation_GetIndex(arg1);
9822 wxPyEndAllowThreads(__tstate);
9823 if (PyErr_Occurred()) SWIG_fail;
9824 }
9825 resultobj = SWIG_From_int(static_cast< int >(result));
9826 return resultobj;
9827 fail:
9828 return NULL;
9829 }
9830
9831
9832 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9833 PyObject *obj;
9834 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9835 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9836 return SWIG_Py_Void();
9837 }
9838
9839 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9840 return SWIG_Python_InitShadowInstance(args);
9841 }
9842
9843 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9844 PyObject *resultobj = 0;
9845 wxIconBundle *result = 0 ;
9846
9847 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9848 {
9849 PyThreadState* __tstate = wxPyBeginAllowThreads();
9850 result = (wxIconBundle *)new wxIconBundle();
9851 wxPyEndAllowThreads(__tstate);
9852 if (PyErr_Occurred()) SWIG_fail;
9853 }
9854 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9855 return resultobj;
9856 fail:
9857 return NULL;
9858 }
9859
9860
9861 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9862 PyObject *resultobj = 0;
9863 wxString *arg1 = 0 ;
9864 long arg2 ;
9865 wxIconBundle *result = 0 ;
9866 bool temp1 = false ;
9867 long val2 ;
9868 int ecode2 = 0 ;
9869 PyObject * obj0 = 0 ;
9870 PyObject * obj1 = 0 ;
9871 char * kwnames[] = {
9872 (char *) "file",(char *) "type", NULL
9873 };
9874
9875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9876 {
9877 arg1 = wxString_in_helper(obj0);
9878 if (arg1 == NULL) SWIG_fail;
9879 temp1 = true;
9880 }
9881 ecode2 = SWIG_AsVal_long(obj1, &val2);
9882 if (!SWIG_IsOK(ecode2)) {
9883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9884 }
9885 arg2 = static_cast< long >(val2);
9886 {
9887 PyThreadState* __tstate = wxPyBeginAllowThreads();
9888 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9889 wxPyEndAllowThreads(__tstate);
9890 if (PyErr_Occurred()) SWIG_fail;
9891 }
9892 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9893 {
9894 if (temp1)
9895 delete arg1;
9896 }
9897 return resultobj;
9898 fail:
9899 {
9900 if (temp1)
9901 delete arg1;
9902 }
9903 return NULL;
9904 }
9905
9906
9907 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9908 PyObject *resultobj = 0;
9909 wxIcon *arg1 = 0 ;
9910 wxIconBundle *result = 0 ;
9911 void *argp1 = 0 ;
9912 int res1 = 0 ;
9913 PyObject * obj0 = 0 ;
9914 char * kwnames[] = {
9915 (char *) "icon", NULL
9916 };
9917
9918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9919 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9920 if (!SWIG_IsOK(res1)) {
9921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9922 }
9923 if (!argp1) {
9924 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9925 }
9926 arg1 = reinterpret_cast< wxIcon * >(argp1);
9927 {
9928 PyThreadState* __tstate = wxPyBeginAllowThreads();
9929 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9930 wxPyEndAllowThreads(__tstate);
9931 if (PyErr_Occurred()) SWIG_fail;
9932 }
9933 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9934 return resultobj;
9935 fail:
9936 return NULL;
9937 }
9938
9939
9940 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9941 PyObject *resultobj = 0;
9942 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9943 void *argp1 = 0 ;
9944 int res1 = 0 ;
9945 PyObject *swig_obj[1] ;
9946
9947 if (!args) SWIG_fail;
9948 swig_obj[0] = args;
9949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9950 if (!SWIG_IsOK(res1)) {
9951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9952 }
9953 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9954 {
9955 PyThreadState* __tstate = wxPyBeginAllowThreads();
9956 delete arg1;
9957
9958 wxPyEndAllowThreads(__tstate);
9959 if (PyErr_Occurred()) SWIG_fail;
9960 }
9961 resultobj = SWIG_Py_Void();
9962 return resultobj;
9963 fail:
9964 return NULL;
9965 }
9966
9967
9968 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9969 PyObject *resultobj = 0;
9970 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9971 wxIcon *arg2 = 0 ;
9972 void *argp1 = 0 ;
9973 int res1 = 0 ;
9974 void *argp2 = 0 ;
9975 int res2 = 0 ;
9976 PyObject * obj0 = 0 ;
9977 PyObject * obj1 = 0 ;
9978 char * kwnames[] = {
9979 (char *) "self",(char *) "icon", NULL
9980 };
9981
9982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9984 if (!SWIG_IsOK(res1)) {
9985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9986 }
9987 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9988 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9989 if (!SWIG_IsOK(res2)) {
9990 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9991 }
9992 if (!argp2) {
9993 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9994 }
9995 arg2 = reinterpret_cast< wxIcon * >(argp2);
9996 {
9997 PyThreadState* __tstate = wxPyBeginAllowThreads();
9998 (arg1)->AddIcon((wxIcon const &)*arg2);
9999 wxPyEndAllowThreads(__tstate);
10000 if (PyErr_Occurred()) SWIG_fail;
10001 }
10002 resultobj = SWIG_Py_Void();
10003 return resultobj;
10004 fail:
10005 return NULL;
10006 }
10007
10008
10009 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10010 PyObject *resultobj = 0;
10011 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10012 wxString *arg2 = 0 ;
10013 long arg3 ;
10014 void *argp1 = 0 ;
10015 int res1 = 0 ;
10016 bool temp2 = false ;
10017 long val3 ;
10018 int ecode3 = 0 ;
10019 PyObject * obj0 = 0 ;
10020 PyObject * obj1 = 0 ;
10021 PyObject * obj2 = 0 ;
10022 char * kwnames[] = {
10023 (char *) "self",(char *) "file",(char *) "type", NULL
10024 };
10025
10026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10028 if (!SWIG_IsOK(res1)) {
10029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10030 }
10031 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10032 {
10033 arg2 = wxString_in_helper(obj1);
10034 if (arg2 == NULL) SWIG_fail;
10035 temp2 = true;
10036 }
10037 ecode3 = SWIG_AsVal_long(obj2, &val3);
10038 if (!SWIG_IsOK(ecode3)) {
10039 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10040 }
10041 arg3 = static_cast< long >(val3);
10042 {
10043 PyThreadState* __tstate = wxPyBeginAllowThreads();
10044 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10045 wxPyEndAllowThreads(__tstate);
10046 if (PyErr_Occurred()) SWIG_fail;
10047 }
10048 resultobj = SWIG_Py_Void();
10049 {
10050 if (temp2)
10051 delete arg2;
10052 }
10053 return resultobj;
10054 fail:
10055 {
10056 if (temp2)
10057 delete arg2;
10058 }
10059 return NULL;
10060 }
10061
10062
10063 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10064 PyObject *resultobj = 0;
10065 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10066 wxSize *arg2 = 0 ;
10067 wxIcon *result = 0 ;
10068 void *argp1 = 0 ;
10069 int res1 = 0 ;
10070 wxSize temp2 ;
10071 PyObject * obj0 = 0 ;
10072 PyObject * obj1 = 0 ;
10073 char * kwnames[] = {
10074 (char *) "self",(char *) "size", NULL
10075 };
10076
10077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10079 if (!SWIG_IsOK(res1)) {
10080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10081 }
10082 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10083 {
10084 arg2 = &temp2;
10085 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10086 }
10087 {
10088 PyThreadState* __tstate = wxPyBeginAllowThreads();
10089 {
10090 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10091 result = (wxIcon *) &_result_ref;
10092 }
10093 wxPyEndAllowThreads(__tstate);
10094 if (PyErr_Occurred()) SWIG_fail;
10095 }
10096 {
10097 wxIcon* resultptr = new wxIcon(*result);
10098 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10099 }
10100 return resultobj;
10101 fail:
10102 return NULL;
10103 }
10104
10105
10106 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10107 PyObject *obj;
10108 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10109 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10110 return SWIG_Py_Void();
10111 }
10112
10113 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10114 return SWIG_Python_InitShadowInstance(args);
10115 }
10116
10117 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10118 PyObject *resultobj = 0;
10119 wxString *arg1 = 0 ;
10120 long arg2 ;
10121 int arg3 = (int) 0 ;
10122 int arg4 = (int) 0 ;
10123 wxCursor *result = 0 ;
10124 bool temp1 = false ;
10125 long val2 ;
10126 int ecode2 = 0 ;
10127 int val3 ;
10128 int ecode3 = 0 ;
10129 int val4 ;
10130 int ecode4 = 0 ;
10131 PyObject * obj0 = 0 ;
10132 PyObject * obj1 = 0 ;
10133 PyObject * obj2 = 0 ;
10134 PyObject * obj3 = 0 ;
10135 char * kwnames[] = {
10136 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10137 };
10138
10139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10140 {
10141 arg1 = wxString_in_helper(obj0);
10142 if (arg1 == NULL) SWIG_fail;
10143 temp1 = true;
10144 }
10145 ecode2 = SWIG_AsVal_long(obj1, &val2);
10146 if (!SWIG_IsOK(ecode2)) {
10147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10148 }
10149 arg2 = static_cast< long >(val2);
10150 if (obj2) {
10151 ecode3 = SWIG_AsVal_int(obj2, &val3);
10152 if (!SWIG_IsOK(ecode3)) {
10153 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10154 }
10155 arg3 = static_cast< int >(val3);
10156 }
10157 if (obj3) {
10158 ecode4 = SWIG_AsVal_int(obj3, &val4);
10159 if (!SWIG_IsOK(ecode4)) {
10160 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10161 }
10162 arg4 = static_cast< int >(val4);
10163 }
10164 {
10165 if (!wxPyCheckForApp()) SWIG_fail;
10166 PyThreadState* __tstate = wxPyBeginAllowThreads();
10167 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10168 wxPyEndAllowThreads(__tstate);
10169 if (PyErr_Occurred()) SWIG_fail;
10170 }
10171 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10172 {
10173 if (temp1)
10174 delete arg1;
10175 }
10176 return resultobj;
10177 fail:
10178 {
10179 if (temp1)
10180 delete arg1;
10181 }
10182 return NULL;
10183 }
10184
10185
10186 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10187 PyObject *resultobj = 0;
10188 wxCursor *arg1 = (wxCursor *) 0 ;
10189 void *argp1 = 0 ;
10190 int res1 = 0 ;
10191 PyObject *swig_obj[1] ;
10192
10193 if (!args) SWIG_fail;
10194 swig_obj[0] = args;
10195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10196 if (!SWIG_IsOK(res1)) {
10197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10198 }
10199 arg1 = reinterpret_cast< wxCursor * >(argp1);
10200 {
10201 PyThreadState* __tstate = wxPyBeginAllowThreads();
10202 delete arg1;
10203
10204 wxPyEndAllowThreads(__tstate);
10205 if (PyErr_Occurred()) SWIG_fail;
10206 }
10207 resultobj = SWIG_Py_Void();
10208 return resultobj;
10209 fail:
10210 return NULL;
10211 }
10212
10213
10214 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10215 PyObject *resultobj = 0;
10216 int arg1 ;
10217 wxCursor *result = 0 ;
10218 int val1 ;
10219 int ecode1 = 0 ;
10220 PyObject * obj0 = 0 ;
10221 char * kwnames[] = {
10222 (char *) "id", NULL
10223 };
10224
10225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10226 ecode1 = SWIG_AsVal_int(obj0, &val1);
10227 if (!SWIG_IsOK(ecode1)) {
10228 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10229 }
10230 arg1 = static_cast< int >(val1);
10231 {
10232 if (!wxPyCheckForApp()) SWIG_fail;
10233 PyThreadState* __tstate = wxPyBeginAllowThreads();
10234 result = (wxCursor *)new wxCursor(arg1);
10235 wxPyEndAllowThreads(__tstate);
10236 if (PyErr_Occurred()) SWIG_fail;
10237 }
10238 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10239 return resultobj;
10240 fail:
10241 return NULL;
10242 }
10243
10244
10245 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10246 PyObject *resultobj = 0;
10247 wxImage *arg1 = 0 ;
10248 wxCursor *result = 0 ;
10249 void *argp1 = 0 ;
10250 int res1 = 0 ;
10251 PyObject * obj0 = 0 ;
10252 char * kwnames[] = {
10253 (char *) "image", NULL
10254 };
10255
10256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10257 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10258 if (!SWIG_IsOK(res1)) {
10259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10260 }
10261 if (!argp1) {
10262 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10263 }
10264 arg1 = reinterpret_cast< wxImage * >(argp1);
10265 {
10266 if (!wxPyCheckForApp()) SWIG_fail;
10267 PyThreadState* __tstate = wxPyBeginAllowThreads();
10268 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10269 wxPyEndAllowThreads(__tstate);
10270 if (PyErr_Occurred()) SWIG_fail;
10271 }
10272 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10273 return resultobj;
10274 fail:
10275 return NULL;
10276 }
10277
10278
10279 SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10280 PyObject *resultobj = 0;
10281 wxCursor *arg1 = (wxCursor *) 0 ;
10282 bool result;
10283 void *argp1 = 0 ;
10284 int res1 = 0 ;
10285 PyObject *swig_obj[1] ;
10286
10287 if (!args) SWIG_fail;
10288 swig_obj[0] = args;
10289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10290 if (!SWIG_IsOK(res1)) {
10291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
10292 }
10293 arg1 = reinterpret_cast< wxCursor * >(argp1);
10294 {
10295 PyThreadState* __tstate = wxPyBeginAllowThreads();
10296 result = (bool)(arg1)->IsOk();
10297 wxPyEndAllowThreads(__tstate);
10298 if (PyErr_Occurred()) SWIG_fail;
10299 }
10300 {
10301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10302 }
10303 return resultobj;
10304 fail:
10305 return NULL;
10306 }
10307
10308
10309 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10310 PyObject *obj;
10311 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10312 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10313 return SWIG_Py_Void();
10314 }
10315
10316 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10317 return SWIG_Python_InitShadowInstance(args);
10318 }
10319
10320 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10321 PyObject *resultobj = 0;
10322 int arg1 = (int) 0 ;
10323 int arg2 = (int) 0 ;
10324 int arg3 = (int) 0 ;
10325 int arg4 = (int) 0 ;
10326 wxRegion *result = 0 ;
10327 int val1 ;
10328 int ecode1 = 0 ;
10329 int val2 ;
10330 int ecode2 = 0 ;
10331 int val3 ;
10332 int ecode3 = 0 ;
10333 int val4 ;
10334 int ecode4 = 0 ;
10335 PyObject * obj0 = 0 ;
10336 PyObject * obj1 = 0 ;
10337 PyObject * obj2 = 0 ;
10338 PyObject * obj3 = 0 ;
10339 char * kwnames[] = {
10340 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10341 };
10342
10343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10344 if (obj0) {
10345 ecode1 = SWIG_AsVal_int(obj0, &val1);
10346 if (!SWIG_IsOK(ecode1)) {
10347 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10348 }
10349 arg1 = static_cast< int >(val1);
10350 }
10351 if (obj1) {
10352 ecode2 = SWIG_AsVal_int(obj1, &val2);
10353 if (!SWIG_IsOK(ecode2)) {
10354 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10355 }
10356 arg2 = static_cast< int >(val2);
10357 }
10358 if (obj2) {
10359 ecode3 = SWIG_AsVal_int(obj2, &val3);
10360 if (!SWIG_IsOK(ecode3)) {
10361 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10362 }
10363 arg3 = static_cast< int >(val3);
10364 }
10365 if (obj3) {
10366 ecode4 = SWIG_AsVal_int(obj3, &val4);
10367 if (!SWIG_IsOK(ecode4)) {
10368 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10369 }
10370 arg4 = static_cast< int >(val4);
10371 }
10372 {
10373 if (!wxPyCheckForApp()) SWIG_fail;
10374 PyThreadState* __tstate = wxPyBeginAllowThreads();
10375 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10376 wxPyEndAllowThreads(__tstate);
10377 if (PyErr_Occurred()) SWIG_fail;
10378 }
10379 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10380 return resultobj;
10381 fail:
10382 return NULL;
10383 }
10384
10385
10386 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10387 PyObject *resultobj = 0;
10388 wxBitmap *arg1 = 0 ;
10389 wxRegion *result = 0 ;
10390 void *argp1 = 0 ;
10391 int res1 = 0 ;
10392 PyObject * obj0 = 0 ;
10393 char * kwnames[] = {
10394 (char *) "bmp", NULL
10395 };
10396
10397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10398 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10399 if (!SWIG_IsOK(res1)) {
10400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10401 }
10402 if (!argp1) {
10403 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10404 }
10405 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10406 {
10407 if (!wxPyCheckForApp()) SWIG_fail;
10408 PyThreadState* __tstate = wxPyBeginAllowThreads();
10409 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10410 wxPyEndAllowThreads(__tstate);
10411 if (PyErr_Occurred()) SWIG_fail;
10412 }
10413 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10414 return resultobj;
10415 fail:
10416 return NULL;
10417 }
10418
10419
10420 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10421 PyObject *resultobj = 0;
10422 wxBitmap *arg1 = 0 ;
10423 wxColour *arg2 = 0 ;
10424 int arg3 = (int) 0 ;
10425 wxRegion *result = 0 ;
10426 void *argp1 = 0 ;
10427 int res1 = 0 ;
10428 wxColour temp2 ;
10429 int val3 ;
10430 int ecode3 = 0 ;
10431 PyObject * obj0 = 0 ;
10432 PyObject * obj1 = 0 ;
10433 PyObject * obj2 = 0 ;
10434 char * kwnames[] = {
10435 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10436 };
10437
10438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10439 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10440 if (!SWIG_IsOK(res1)) {
10441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10442 }
10443 if (!argp1) {
10444 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10445 }
10446 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10447 {
10448 arg2 = &temp2;
10449 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10450 }
10451 if (obj2) {
10452 ecode3 = SWIG_AsVal_int(obj2, &val3);
10453 if (!SWIG_IsOK(ecode3)) {
10454 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10455 }
10456 arg3 = static_cast< int >(val3);
10457 }
10458 {
10459 if (!wxPyCheckForApp()) SWIG_fail;
10460 PyThreadState* __tstate = wxPyBeginAllowThreads();
10461 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10462 wxPyEndAllowThreads(__tstate);
10463 if (PyErr_Occurred()) SWIG_fail;
10464 }
10465 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10466 return resultobj;
10467 fail:
10468 return NULL;
10469 }
10470
10471
10472 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10473 PyObject *resultobj = 0;
10474 int arg1 ;
10475 wxPoint *arg2 = (wxPoint *) 0 ;
10476 int arg3 = (int) wxWINDING_RULE ;
10477 wxRegion *result = 0 ;
10478 int val3 ;
10479 int ecode3 = 0 ;
10480 PyObject * obj0 = 0 ;
10481 PyObject * obj1 = 0 ;
10482 char * kwnames[] = {
10483 (char *) "points",(char *) "fillStyle", NULL
10484 };
10485
10486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10487 {
10488 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10489 if (arg2 == NULL) SWIG_fail;
10490 }
10491 if (obj1) {
10492 ecode3 = SWIG_AsVal_int(obj1, &val3);
10493 if (!SWIG_IsOK(ecode3)) {
10494 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10495 }
10496 arg3 = static_cast< int >(val3);
10497 }
10498 {
10499 if (!wxPyCheckForApp()) SWIG_fail;
10500 PyThreadState* __tstate = wxPyBeginAllowThreads();
10501 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10502 wxPyEndAllowThreads(__tstate);
10503 if (PyErr_Occurred()) SWIG_fail;
10504 }
10505 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10506 {
10507 if (arg2) delete [] arg2;
10508 }
10509 return resultobj;
10510 fail:
10511 {
10512 if (arg2) delete [] arg2;
10513 }
10514 return NULL;
10515 }
10516
10517
10518 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10519 PyObject *resultobj = 0;
10520 wxRegion *arg1 = (wxRegion *) 0 ;
10521 void *argp1 = 0 ;
10522 int res1 = 0 ;
10523 PyObject *swig_obj[1] ;
10524
10525 if (!args) SWIG_fail;
10526 swig_obj[0] = args;
10527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10528 if (!SWIG_IsOK(res1)) {
10529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10530 }
10531 arg1 = reinterpret_cast< wxRegion * >(argp1);
10532 {
10533 PyThreadState* __tstate = wxPyBeginAllowThreads();
10534 delete arg1;
10535
10536 wxPyEndAllowThreads(__tstate);
10537 if (PyErr_Occurred()) SWIG_fail;
10538 }
10539 resultobj = SWIG_Py_Void();
10540 return resultobj;
10541 fail:
10542 return NULL;
10543 }
10544
10545
10546 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10547 PyObject *resultobj = 0;
10548 wxRegion *arg1 = (wxRegion *) 0 ;
10549 void *argp1 = 0 ;
10550 int res1 = 0 ;
10551 PyObject *swig_obj[1] ;
10552
10553 if (!args) SWIG_fail;
10554 swig_obj[0] = args;
10555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10556 if (!SWIG_IsOK(res1)) {
10557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10558 }
10559 arg1 = reinterpret_cast< wxRegion * >(argp1);
10560 {
10561 PyThreadState* __tstate = wxPyBeginAllowThreads();
10562 (arg1)->Clear();
10563 wxPyEndAllowThreads(__tstate);
10564 if (PyErr_Occurred()) SWIG_fail;
10565 }
10566 resultobj = SWIG_Py_Void();
10567 return resultobj;
10568 fail:
10569 return NULL;
10570 }
10571
10572
10573 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10574 PyObject *resultobj = 0;
10575 wxRegion *arg1 = (wxRegion *) 0 ;
10576 int arg2 ;
10577 int arg3 ;
10578 bool result;
10579 void *argp1 = 0 ;
10580 int res1 = 0 ;
10581 int val2 ;
10582 int ecode2 = 0 ;
10583 int val3 ;
10584 int ecode3 = 0 ;
10585 PyObject * obj0 = 0 ;
10586 PyObject * obj1 = 0 ;
10587 PyObject * obj2 = 0 ;
10588 char * kwnames[] = {
10589 (char *) "self",(char *) "x",(char *) "y", NULL
10590 };
10591
10592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10594 if (!SWIG_IsOK(res1)) {
10595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10596 }
10597 arg1 = reinterpret_cast< wxRegion * >(argp1);
10598 ecode2 = SWIG_AsVal_int(obj1, &val2);
10599 if (!SWIG_IsOK(ecode2)) {
10600 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10601 }
10602 arg2 = static_cast< int >(val2);
10603 ecode3 = SWIG_AsVal_int(obj2, &val3);
10604 if (!SWIG_IsOK(ecode3)) {
10605 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10606 }
10607 arg3 = static_cast< int >(val3);
10608 {
10609 PyThreadState* __tstate = wxPyBeginAllowThreads();
10610 result = (bool)(arg1)->Offset(arg2,arg3);
10611 wxPyEndAllowThreads(__tstate);
10612 if (PyErr_Occurred()) SWIG_fail;
10613 }
10614 {
10615 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10616 }
10617 return resultobj;
10618 fail:
10619 return NULL;
10620 }
10621
10622
10623 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10624 PyObject *resultobj = 0;
10625 wxRegion *arg1 = (wxRegion *) 0 ;
10626 int arg2 ;
10627 int arg3 ;
10628 wxRegionContain result;
10629 void *argp1 = 0 ;
10630 int res1 = 0 ;
10631 int val2 ;
10632 int ecode2 = 0 ;
10633 int val3 ;
10634 int ecode3 = 0 ;
10635 PyObject * obj0 = 0 ;
10636 PyObject * obj1 = 0 ;
10637 PyObject * obj2 = 0 ;
10638 char * kwnames[] = {
10639 (char *) "self",(char *) "x",(char *) "y", NULL
10640 };
10641
10642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10644 if (!SWIG_IsOK(res1)) {
10645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10646 }
10647 arg1 = reinterpret_cast< wxRegion * >(argp1);
10648 ecode2 = SWIG_AsVal_int(obj1, &val2);
10649 if (!SWIG_IsOK(ecode2)) {
10650 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10651 }
10652 arg2 = static_cast< int >(val2);
10653 ecode3 = SWIG_AsVal_int(obj2, &val3);
10654 if (!SWIG_IsOK(ecode3)) {
10655 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10656 }
10657 arg3 = static_cast< int >(val3);
10658 {
10659 PyThreadState* __tstate = wxPyBeginAllowThreads();
10660 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10661 wxPyEndAllowThreads(__tstate);
10662 if (PyErr_Occurred()) SWIG_fail;
10663 }
10664 resultobj = SWIG_From_int(static_cast< int >(result));
10665 return resultobj;
10666 fail:
10667 return NULL;
10668 }
10669
10670
10671 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10672 PyObject *resultobj = 0;
10673 wxRegion *arg1 = (wxRegion *) 0 ;
10674 wxPoint *arg2 = 0 ;
10675 wxRegionContain result;
10676 void *argp1 = 0 ;
10677 int res1 = 0 ;
10678 wxPoint temp2 ;
10679 PyObject * obj0 = 0 ;
10680 PyObject * obj1 = 0 ;
10681 char * kwnames[] = {
10682 (char *) "self",(char *) "pt", NULL
10683 };
10684
10685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10687 if (!SWIG_IsOK(res1)) {
10688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10689 }
10690 arg1 = reinterpret_cast< wxRegion * >(argp1);
10691 {
10692 arg2 = &temp2;
10693 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10694 }
10695 {
10696 PyThreadState* __tstate = wxPyBeginAllowThreads();
10697 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10698 wxPyEndAllowThreads(__tstate);
10699 if (PyErr_Occurred()) SWIG_fail;
10700 }
10701 resultobj = SWIG_From_int(static_cast< int >(result));
10702 return resultobj;
10703 fail:
10704 return NULL;
10705 }
10706
10707
10708 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10709 PyObject *resultobj = 0;
10710 wxRegion *arg1 = (wxRegion *) 0 ;
10711 wxRect *arg2 = 0 ;
10712 wxRegionContain result;
10713 void *argp1 = 0 ;
10714 int res1 = 0 ;
10715 wxRect temp2 ;
10716 PyObject * obj0 = 0 ;
10717 PyObject * obj1 = 0 ;
10718 char * kwnames[] = {
10719 (char *) "self",(char *) "rect", NULL
10720 };
10721
10722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10724 if (!SWIG_IsOK(res1)) {
10725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10726 }
10727 arg1 = reinterpret_cast< wxRegion * >(argp1);
10728 {
10729 arg2 = &temp2;
10730 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10731 }
10732 {
10733 PyThreadState* __tstate = wxPyBeginAllowThreads();
10734 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10735 wxPyEndAllowThreads(__tstate);
10736 if (PyErr_Occurred()) SWIG_fail;
10737 }
10738 resultobj = SWIG_From_int(static_cast< int >(result));
10739 return resultobj;
10740 fail:
10741 return NULL;
10742 }
10743
10744
10745 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10746 PyObject *resultobj = 0;
10747 wxRegion *arg1 = (wxRegion *) 0 ;
10748 int arg2 ;
10749 int arg3 ;
10750 int arg4 ;
10751 int arg5 ;
10752 wxRegionContain result;
10753 void *argp1 = 0 ;
10754 int res1 = 0 ;
10755 int val2 ;
10756 int ecode2 = 0 ;
10757 int val3 ;
10758 int ecode3 = 0 ;
10759 int val4 ;
10760 int ecode4 = 0 ;
10761 int val5 ;
10762 int ecode5 = 0 ;
10763 PyObject * obj0 = 0 ;
10764 PyObject * obj1 = 0 ;
10765 PyObject * obj2 = 0 ;
10766 PyObject * obj3 = 0 ;
10767 PyObject * obj4 = 0 ;
10768 char * kwnames[] = {
10769 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10770 };
10771
10772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10774 if (!SWIG_IsOK(res1)) {
10775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10776 }
10777 arg1 = reinterpret_cast< wxRegion * >(argp1);
10778 ecode2 = SWIG_AsVal_int(obj1, &val2);
10779 if (!SWIG_IsOK(ecode2)) {
10780 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10781 }
10782 arg2 = static_cast< int >(val2);
10783 ecode3 = SWIG_AsVal_int(obj2, &val3);
10784 if (!SWIG_IsOK(ecode3)) {
10785 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10786 }
10787 arg3 = static_cast< int >(val3);
10788 ecode4 = SWIG_AsVal_int(obj3, &val4);
10789 if (!SWIG_IsOK(ecode4)) {
10790 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10791 }
10792 arg4 = static_cast< int >(val4);
10793 ecode5 = SWIG_AsVal_int(obj4, &val5);
10794 if (!SWIG_IsOK(ecode5)) {
10795 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10796 }
10797 arg5 = static_cast< int >(val5);
10798 {
10799 PyThreadState* __tstate = wxPyBeginAllowThreads();
10800 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10801 wxPyEndAllowThreads(__tstate);
10802 if (PyErr_Occurred()) SWIG_fail;
10803 }
10804 resultobj = SWIG_From_int(static_cast< int >(result));
10805 return resultobj;
10806 fail:
10807 return NULL;
10808 }
10809
10810
10811 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10812 PyObject *resultobj = 0;
10813 wxRegion *arg1 = (wxRegion *) 0 ;
10814 wxRect result;
10815 void *argp1 = 0 ;
10816 int res1 = 0 ;
10817 PyObject *swig_obj[1] ;
10818
10819 if (!args) SWIG_fail;
10820 swig_obj[0] = args;
10821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10822 if (!SWIG_IsOK(res1)) {
10823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10824 }
10825 arg1 = reinterpret_cast< wxRegion * >(argp1);
10826 {
10827 PyThreadState* __tstate = wxPyBeginAllowThreads();
10828 result = (arg1)->GetBox();
10829 wxPyEndAllowThreads(__tstate);
10830 if (PyErr_Occurred()) SWIG_fail;
10831 }
10832 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10833 return resultobj;
10834 fail:
10835 return NULL;
10836 }
10837
10838
10839 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10840 PyObject *resultobj = 0;
10841 wxRegion *arg1 = (wxRegion *) 0 ;
10842 int arg2 ;
10843 int arg3 ;
10844 int arg4 ;
10845 int arg5 ;
10846 bool result;
10847 void *argp1 = 0 ;
10848 int res1 = 0 ;
10849 int val2 ;
10850 int ecode2 = 0 ;
10851 int val3 ;
10852 int ecode3 = 0 ;
10853 int val4 ;
10854 int ecode4 = 0 ;
10855 int val5 ;
10856 int ecode5 = 0 ;
10857 PyObject * obj0 = 0 ;
10858 PyObject * obj1 = 0 ;
10859 PyObject * obj2 = 0 ;
10860 PyObject * obj3 = 0 ;
10861 PyObject * obj4 = 0 ;
10862 char * kwnames[] = {
10863 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10864 };
10865
10866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10868 if (!SWIG_IsOK(res1)) {
10869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10870 }
10871 arg1 = reinterpret_cast< wxRegion * >(argp1);
10872 ecode2 = SWIG_AsVal_int(obj1, &val2);
10873 if (!SWIG_IsOK(ecode2)) {
10874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10875 }
10876 arg2 = static_cast< int >(val2);
10877 ecode3 = SWIG_AsVal_int(obj2, &val3);
10878 if (!SWIG_IsOK(ecode3)) {
10879 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10880 }
10881 arg3 = static_cast< int >(val3);
10882 ecode4 = SWIG_AsVal_int(obj3, &val4);
10883 if (!SWIG_IsOK(ecode4)) {
10884 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10885 }
10886 arg4 = static_cast< int >(val4);
10887 ecode5 = SWIG_AsVal_int(obj4, &val5);
10888 if (!SWIG_IsOK(ecode5)) {
10889 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10890 }
10891 arg5 = static_cast< int >(val5);
10892 {
10893 PyThreadState* __tstate = wxPyBeginAllowThreads();
10894 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10895 wxPyEndAllowThreads(__tstate);
10896 if (PyErr_Occurred()) SWIG_fail;
10897 }
10898 {
10899 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10900 }
10901 return resultobj;
10902 fail:
10903 return NULL;
10904 }
10905
10906
10907 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10908 PyObject *resultobj = 0;
10909 wxRegion *arg1 = (wxRegion *) 0 ;
10910 wxRect *arg2 = 0 ;
10911 bool result;
10912 void *argp1 = 0 ;
10913 int res1 = 0 ;
10914 wxRect temp2 ;
10915 PyObject * obj0 = 0 ;
10916 PyObject * obj1 = 0 ;
10917 char * kwnames[] = {
10918 (char *) "self",(char *) "rect", NULL
10919 };
10920
10921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10923 if (!SWIG_IsOK(res1)) {
10924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10925 }
10926 arg1 = reinterpret_cast< wxRegion * >(argp1);
10927 {
10928 arg2 = &temp2;
10929 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10930 }
10931 {
10932 PyThreadState* __tstate = wxPyBeginAllowThreads();
10933 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10934 wxPyEndAllowThreads(__tstate);
10935 if (PyErr_Occurred()) SWIG_fail;
10936 }
10937 {
10938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10939 }
10940 return resultobj;
10941 fail:
10942 return NULL;
10943 }
10944
10945
10946 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10947 PyObject *resultobj = 0;
10948 wxRegion *arg1 = (wxRegion *) 0 ;
10949 wxRegion *arg2 = 0 ;
10950 bool result;
10951 void *argp1 = 0 ;
10952 int res1 = 0 ;
10953 void *argp2 = 0 ;
10954 int res2 = 0 ;
10955 PyObject * obj0 = 0 ;
10956 PyObject * obj1 = 0 ;
10957 char * kwnames[] = {
10958 (char *) "self",(char *) "region", NULL
10959 };
10960
10961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10963 if (!SWIG_IsOK(res1)) {
10964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10965 }
10966 arg1 = reinterpret_cast< wxRegion * >(argp1);
10967 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10968 if (!SWIG_IsOK(res2)) {
10969 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10970 }
10971 if (!argp2) {
10972 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10973 }
10974 arg2 = reinterpret_cast< wxRegion * >(argp2);
10975 {
10976 PyThreadState* __tstate = wxPyBeginAllowThreads();
10977 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10978 wxPyEndAllowThreads(__tstate);
10979 if (PyErr_Occurred()) SWIG_fail;
10980 }
10981 {
10982 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10983 }
10984 return resultobj;
10985 fail:
10986 return NULL;
10987 }
10988
10989
10990 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10991 PyObject *resultobj = 0;
10992 wxRegion *arg1 = (wxRegion *) 0 ;
10993 bool result;
10994 void *argp1 = 0 ;
10995 int res1 = 0 ;
10996 PyObject *swig_obj[1] ;
10997
10998 if (!args) SWIG_fail;
10999 swig_obj[0] = args;
11000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11001 if (!SWIG_IsOK(res1)) {
11002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11003 }
11004 arg1 = reinterpret_cast< wxRegion * >(argp1);
11005 {
11006 PyThreadState* __tstate = wxPyBeginAllowThreads();
11007 result = (bool)(arg1)->IsEmpty();
11008 wxPyEndAllowThreads(__tstate);
11009 if (PyErr_Occurred()) SWIG_fail;
11010 }
11011 {
11012 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11013 }
11014 return resultobj;
11015 fail:
11016 return NULL;
11017 }
11018
11019
11020 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11021 PyObject *resultobj = 0;
11022 wxRegion *arg1 = (wxRegion *) 0 ;
11023 wxRegion *arg2 = 0 ;
11024 bool result;
11025 void *argp1 = 0 ;
11026 int res1 = 0 ;
11027 void *argp2 = 0 ;
11028 int res2 = 0 ;
11029 PyObject * obj0 = 0 ;
11030 PyObject * obj1 = 0 ;
11031 char * kwnames[] = {
11032 (char *) "self",(char *) "region", NULL
11033 };
11034
11035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11037 if (!SWIG_IsOK(res1)) {
11038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11039 }
11040 arg1 = reinterpret_cast< wxRegion * >(argp1);
11041 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11042 if (!SWIG_IsOK(res2)) {
11043 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11044 }
11045 if (!argp2) {
11046 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11047 }
11048 arg2 = reinterpret_cast< wxRegion * >(argp2);
11049 {
11050 PyThreadState* __tstate = wxPyBeginAllowThreads();
11051 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11052 wxPyEndAllowThreads(__tstate);
11053 if (PyErr_Occurred()) SWIG_fail;
11054 }
11055 {
11056 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11057 }
11058 return resultobj;
11059 fail:
11060 return NULL;
11061 }
11062
11063
11064 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11065 PyObject *resultobj = 0;
11066 wxRegion *arg1 = (wxRegion *) 0 ;
11067 int arg2 ;
11068 int arg3 ;
11069 int arg4 ;
11070 int arg5 ;
11071 bool result;
11072 void *argp1 = 0 ;
11073 int res1 = 0 ;
11074 int val2 ;
11075 int ecode2 = 0 ;
11076 int val3 ;
11077 int ecode3 = 0 ;
11078 int val4 ;
11079 int ecode4 = 0 ;
11080 int val5 ;
11081 int ecode5 = 0 ;
11082 PyObject * obj0 = 0 ;
11083 PyObject * obj1 = 0 ;
11084 PyObject * obj2 = 0 ;
11085 PyObject * obj3 = 0 ;
11086 PyObject * obj4 = 0 ;
11087 char * kwnames[] = {
11088 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11089 };
11090
11091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11093 if (!SWIG_IsOK(res1)) {
11094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11095 }
11096 arg1 = reinterpret_cast< wxRegion * >(argp1);
11097 ecode2 = SWIG_AsVal_int(obj1, &val2);
11098 if (!SWIG_IsOK(ecode2)) {
11099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11100 }
11101 arg2 = static_cast< int >(val2);
11102 ecode3 = SWIG_AsVal_int(obj2, &val3);
11103 if (!SWIG_IsOK(ecode3)) {
11104 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11105 }
11106 arg3 = static_cast< int >(val3);
11107 ecode4 = SWIG_AsVal_int(obj3, &val4);
11108 if (!SWIG_IsOK(ecode4)) {
11109 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11110 }
11111 arg4 = static_cast< int >(val4);
11112 ecode5 = SWIG_AsVal_int(obj4, &val5);
11113 if (!SWIG_IsOK(ecode5)) {
11114 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11115 }
11116 arg5 = static_cast< int >(val5);
11117 {
11118 PyThreadState* __tstate = wxPyBeginAllowThreads();
11119 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11120 wxPyEndAllowThreads(__tstate);
11121 if (PyErr_Occurred()) SWIG_fail;
11122 }
11123 {
11124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11125 }
11126 return resultobj;
11127 fail:
11128 return NULL;
11129 }
11130
11131
11132 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11133 PyObject *resultobj = 0;
11134 wxRegion *arg1 = (wxRegion *) 0 ;
11135 wxRect *arg2 = 0 ;
11136 bool result;
11137 void *argp1 = 0 ;
11138 int res1 = 0 ;
11139 wxRect temp2 ;
11140 PyObject * obj0 = 0 ;
11141 PyObject * obj1 = 0 ;
11142 char * kwnames[] = {
11143 (char *) "self",(char *) "rect", NULL
11144 };
11145
11146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11148 if (!SWIG_IsOK(res1)) {
11149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11150 }
11151 arg1 = reinterpret_cast< wxRegion * >(argp1);
11152 {
11153 arg2 = &temp2;
11154 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11155 }
11156 {
11157 PyThreadState* __tstate = wxPyBeginAllowThreads();
11158 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11159 wxPyEndAllowThreads(__tstate);
11160 if (PyErr_Occurred()) SWIG_fail;
11161 }
11162 {
11163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11164 }
11165 return resultobj;
11166 fail:
11167 return NULL;
11168 }
11169
11170
11171 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11172 PyObject *resultobj = 0;
11173 wxRegion *arg1 = (wxRegion *) 0 ;
11174 wxRegion *arg2 = 0 ;
11175 bool result;
11176 void *argp1 = 0 ;
11177 int res1 = 0 ;
11178 void *argp2 = 0 ;
11179 int res2 = 0 ;
11180 PyObject * obj0 = 0 ;
11181 PyObject * obj1 = 0 ;
11182 char * kwnames[] = {
11183 (char *) "self",(char *) "region", NULL
11184 };
11185
11186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11188 if (!SWIG_IsOK(res1)) {
11189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11190 }
11191 arg1 = reinterpret_cast< wxRegion * >(argp1);
11192 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11193 if (!SWIG_IsOK(res2)) {
11194 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11195 }
11196 if (!argp2) {
11197 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11198 }
11199 arg2 = reinterpret_cast< wxRegion * >(argp2);
11200 {
11201 PyThreadState* __tstate = wxPyBeginAllowThreads();
11202 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11203 wxPyEndAllowThreads(__tstate);
11204 if (PyErr_Occurred()) SWIG_fail;
11205 }
11206 {
11207 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11208 }
11209 return resultobj;
11210 fail:
11211 return NULL;
11212 }
11213
11214
11215 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11216 PyObject *resultobj = 0;
11217 wxRegion *arg1 = (wxRegion *) 0 ;
11218 int arg2 ;
11219 int arg3 ;
11220 int arg4 ;
11221 int arg5 ;
11222 bool result;
11223 void *argp1 = 0 ;
11224 int res1 = 0 ;
11225 int val2 ;
11226 int ecode2 = 0 ;
11227 int val3 ;
11228 int ecode3 = 0 ;
11229 int val4 ;
11230 int ecode4 = 0 ;
11231 int val5 ;
11232 int ecode5 = 0 ;
11233 PyObject * obj0 = 0 ;
11234 PyObject * obj1 = 0 ;
11235 PyObject * obj2 = 0 ;
11236 PyObject * obj3 = 0 ;
11237 PyObject * obj4 = 0 ;
11238 char * kwnames[] = {
11239 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11240 };
11241
11242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11244 if (!SWIG_IsOK(res1)) {
11245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11246 }
11247 arg1 = reinterpret_cast< wxRegion * >(argp1);
11248 ecode2 = SWIG_AsVal_int(obj1, &val2);
11249 if (!SWIG_IsOK(ecode2)) {
11250 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11251 }
11252 arg2 = static_cast< int >(val2);
11253 ecode3 = SWIG_AsVal_int(obj2, &val3);
11254 if (!SWIG_IsOK(ecode3)) {
11255 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11256 }
11257 arg3 = static_cast< int >(val3);
11258 ecode4 = SWIG_AsVal_int(obj3, &val4);
11259 if (!SWIG_IsOK(ecode4)) {
11260 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11261 }
11262 arg4 = static_cast< int >(val4);
11263 ecode5 = SWIG_AsVal_int(obj4, &val5);
11264 if (!SWIG_IsOK(ecode5)) {
11265 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11266 }
11267 arg5 = static_cast< int >(val5);
11268 {
11269 PyThreadState* __tstate = wxPyBeginAllowThreads();
11270 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11271 wxPyEndAllowThreads(__tstate);
11272 if (PyErr_Occurred()) SWIG_fail;
11273 }
11274 {
11275 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11276 }
11277 return resultobj;
11278 fail:
11279 return NULL;
11280 }
11281
11282
11283 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11284 PyObject *resultobj = 0;
11285 wxRegion *arg1 = (wxRegion *) 0 ;
11286 wxRect *arg2 = 0 ;
11287 bool result;
11288 void *argp1 = 0 ;
11289 int res1 = 0 ;
11290 wxRect temp2 ;
11291 PyObject * obj0 = 0 ;
11292 PyObject * obj1 = 0 ;
11293 char * kwnames[] = {
11294 (char *) "self",(char *) "rect", NULL
11295 };
11296
11297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11299 if (!SWIG_IsOK(res1)) {
11300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11301 }
11302 arg1 = reinterpret_cast< wxRegion * >(argp1);
11303 {
11304 arg2 = &temp2;
11305 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11306 }
11307 {
11308 PyThreadState* __tstate = wxPyBeginAllowThreads();
11309 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11310 wxPyEndAllowThreads(__tstate);
11311 if (PyErr_Occurred()) SWIG_fail;
11312 }
11313 {
11314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11315 }
11316 return resultobj;
11317 fail:
11318 return NULL;
11319 }
11320
11321
11322 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11323 PyObject *resultobj = 0;
11324 wxRegion *arg1 = (wxRegion *) 0 ;
11325 wxRegion *arg2 = 0 ;
11326 bool result;
11327 void *argp1 = 0 ;
11328 int res1 = 0 ;
11329 void *argp2 = 0 ;
11330 int res2 = 0 ;
11331 PyObject * obj0 = 0 ;
11332 PyObject * obj1 = 0 ;
11333 char * kwnames[] = {
11334 (char *) "self",(char *) "region", NULL
11335 };
11336
11337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11339 if (!SWIG_IsOK(res1)) {
11340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11341 }
11342 arg1 = reinterpret_cast< wxRegion * >(argp1);
11343 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11344 if (!SWIG_IsOK(res2)) {
11345 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11346 }
11347 if (!argp2) {
11348 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11349 }
11350 arg2 = reinterpret_cast< wxRegion * >(argp2);
11351 {
11352 PyThreadState* __tstate = wxPyBeginAllowThreads();
11353 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11354 wxPyEndAllowThreads(__tstate);
11355 if (PyErr_Occurred()) SWIG_fail;
11356 }
11357 {
11358 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11359 }
11360 return resultobj;
11361 fail:
11362 return NULL;
11363 }
11364
11365
11366 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11367 PyObject *resultobj = 0;
11368 wxRegion *arg1 = (wxRegion *) 0 ;
11369 int arg2 ;
11370 int arg3 ;
11371 int arg4 ;
11372 int arg5 ;
11373 bool result;
11374 void *argp1 = 0 ;
11375 int res1 = 0 ;
11376 int val2 ;
11377 int ecode2 = 0 ;
11378 int val3 ;
11379 int ecode3 = 0 ;
11380 int val4 ;
11381 int ecode4 = 0 ;
11382 int val5 ;
11383 int ecode5 = 0 ;
11384 PyObject * obj0 = 0 ;
11385 PyObject * obj1 = 0 ;
11386 PyObject * obj2 = 0 ;
11387 PyObject * obj3 = 0 ;
11388 PyObject * obj4 = 0 ;
11389 char * kwnames[] = {
11390 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11391 };
11392
11393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11395 if (!SWIG_IsOK(res1)) {
11396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11397 }
11398 arg1 = reinterpret_cast< wxRegion * >(argp1);
11399 ecode2 = SWIG_AsVal_int(obj1, &val2);
11400 if (!SWIG_IsOK(ecode2)) {
11401 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11402 }
11403 arg2 = static_cast< int >(val2);
11404 ecode3 = SWIG_AsVal_int(obj2, &val3);
11405 if (!SWIG_IsOK(ecode3)) {
11406 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11407 }
11408 arg3 = static_cast< int >(val3);
11409 ecode4 = SWIG_AsVal_int(obj3, &val4);
11410 if (!SWIG_IsOK(ecode4)) {
11411 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11412 }
11413 arg4 = static_cast< int >(val4);
11414 ecode5 = SWIG_AsVal_int(obj4, &val5);
11415 if (!SWIG_IsOK(ecode5)) {
11416 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11417 }
11418 arg5 = static_cast< int >(val5);
11419 {
11420 PyThreadState* __tstate = wxPyBeginAllowThreads();
11421 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11422 wxPyEndAllowThreads(__tstate);
11423 if (PyErr_Occurred()) SWIG_fail;
11424 }
11425 {
11426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11427 }
11428 return resultobj;
11429 fail:
11430 return NULL;
11431 }
11432
11433
11434 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11435 PyObject *resultobj = 0;
11436 wxRegion *arg1 = (wxRegion *) 0 ;
11437 wxRect *arg2 = 0 ;
11438 bool result;
11439 void *argp1 = 0 ;
11440 int res1 = 0 ;
11441 wxRect temp2 ;
11442 PyObject * obj0 = 0 ;
11443 PyObject * obj1 = 0 ;
11444 char * kwnames[] = {
11445 (char *) "self",(char *) "rect", NULL
11446 };
11447
11448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11450 if (!SWIG_IsOK(res1)) {
11451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11452 }
11453 arg1 = reinterpret_cast< wxRegion * >(argp1);
11454 {
11455 arg2 = &temp2;
11456 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11457 }
11458 {
11459 PyThreadState* __tstate = wxPyBeginAllowThreads();
11460 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11461 wxPyEndAllowThreads(__tstate);
11462 if (PyErr_Occurred()) SWIG_fail;
11463 }
11464 {
11465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11466 }
11467 return resultobj;
11468 fail:
11469 return NULL;
11470 }
11471
11472
11473 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11474 PyObject *resultobj = 0;
11475 wxRegion *arg1 = (wxRegion *) 0 ;
11476 wxRegion *arg2 = 0 ;
11477 bool result;
11478 void *argp1 = 0 ;
11479 int res1 = 0 ;
11480 void *argp2 = 0 ;
11481 int res2 = 0 ;
11482 PyObject * obj0 = 0 ;
11483 PyObject * obj1 = 0 ;
11484 char * kwnames[] = {
11485 (char *) "self",(char *) "region", NULL
11486 };
11487
11488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11490 if (!SWIG_IsOK(res1)) {
11491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11492 }
11493 arg1 = reinterpret_cast< wxRegion * >(argp1);
11494 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11495 if (!SWIG_IsOK(res2)) {
11496 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11497 }
11498 if (!argp2) {
11499 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11500 }
11501 arg2 = reinterpret_cast< wxRegion * >(argp2);
11502 {
11503 PyThreadState* __tstate = wxPyBeginAllowThreads();
11504 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11505 wxPyEndAllowThreads(__tstate);
11506 if (PyErr_Occurred()) SWIG_fail;
11507 }
11508 {
11509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11510 }
11511 return resultobj;
11512 fail:
11513 return NULL;
11514 }
11515
11516
11517 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11518 PyObject *resultobj = 0;
11519 wxRegion *arg1 = (wxRegion *) 0 ;
11520 SwigValueWrapper<wxBitmap > result;
11521 void *argp1 = 0 ;
11522 int res1 = 0 ;
11523 PyObject *swig_obj[1] ;
11524
11525 if (!args) SWIG_fail;
11526 swig_obj[0] = args;
11527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11528 if (!SWIG_IsOK(res1)) {
11529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11530 }
11531 arg1 = reinterpret_cast< wxRegion * >(argp1);
11532 {
11533 PyThreadState* __tstate = wxPyBeginAllowThreads();
11534 result = (arg1)->ConvertToBitmap();
11535 wxPyEndAllowThreads(__tstate);
11536 if (PyErr_Occurred()) SWIG_fail;
11537 }
11538 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11539 return resultobj;
11540 fail:
11541 return NULL;
11542 }
11543
11544
11545 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11546 PyObject *resultobj = 0;
11547 wxRegion *arg1 = (wxRegion *) 0 ;
11548 wxBitmap *arg2 = 0 ;
11549 bool result;
11550 void *argp1 = 0 ;
11551 int res1 = 0 ;
11552 void *argp2 = 0 ;
11553 int res2 = 0 ;
11554 PyObject * obj0 = 0 ;
11555 PyObject * obj1 = 0 ;
11556 char * kwnames[] = {
11557 (char *) "self",(char *) "bmp", NULL
11558 };
11559
11560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11562 if (!SWIG_IsOK(res1)) {
11563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11564 }
11565 arg1 = reinterpret_cast< wxRegion * >(argp1);
11566 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11567 if (!SWIG_IsOK(res2)) {
11568 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11569 }
11570 if (!argp2) {
11571 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11572 }
11573 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11574 {
11575 PyThreadState* __tstate = wxPyBeginAllowThreads();
11576 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11577 wxPyEndAllowThreads(__tstate);
11578 if (PyErr_Occurred()) SWIG_fail;
11579 }
11580 {
11581 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11582 }
11583 return resultobj;
11584 fail:
11585 return NULL;
11586 }
11587
11588
11589 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11590 PyObject *resultobj = 0;
11591 wxRegion *arg1 = (wxRegion *) 0 ;
11592 wxBitmap *arg2 = 0 ;
11593 wxColour *arg3 = 0 ;
11594 int arg4 = (int) 0 ;
11595 bool result;
11596 void *argp1 = 0 ;
11597 int res1 = 0 ;
11598 void *argp2 = 0 ;
11599 int res2 = 0 ;
11600 wxColour temp3 ;
11601 int val4 ;
11602 int ecode4 = 0 ;
11603 PyObject * obj0 = 0 ;
11604 PyObject * obj1 = 0 ;
11605 PyObject * obj2 = 0 ;
11606 PyObject * obj3 = 0 ;
11607 char * kwnames[] = {
11608 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11609 };
11610
11611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11613 if (!SWIG_IsOK(res1)) {
11614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11615 }
11616 arg1 = reinterpret_cast< wxRegion * >(argp1);
11617 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11618 if (!SWIG_IsOK(res2)) {
11619 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11620 }
11621 if (!argp2) {
11622 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11623 }
11624 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11625 {
11626 arg3 = &temp3;
11627 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11628 }
11629 if (obj3) {
11630 ecode4 = SWIG_AsVal_int(obj3, &val4);
11631 if (!SWIG_IsOK(ecode4)) {
11632 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11633 }
11634 arg4 = static_cast< int >(val4);
11635 }
11636 {
11637 PyThreadState* __tstate = wxPyBeginAllowThreads();
11638 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11639 wxPyEndAllowThreads(__tstate);
11640 if (PyErr_Occurred()) SWIG_fail;
11641 }
11642 {
11643 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11644 }
11645 return resultobj;
11646 fail:
11647 return NULL;
11648 }
11649
11650
11651 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11652 PyObject *obj;
11653 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11654 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11655 return SWIG_Py_Void();
11656 }
11657
11658 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11659 return SWIG_Python_InitShadowInstance(args);
11660 }
11661
11662 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11663 PyObject *resultobj = 0;
11664 wxRegion *arg1 = 0 ;
11665 wxRegionIterator *result = 0 ;
11666 void *argp1 = 0 ;
11667 int res1 = 0 ;
11668 PyObject * obj0 = 0 ;
11669 char * kwnames[] = {
11670 (char *) "region", NULL
11671 };
11672
11673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11674 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11675 if (!SWIG_IsOK(res1)) {
11676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11677 }
11678 if (!argp1) {
11679 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11680 }
11681 arg1 = reinterpret_cast< wxRegion * >(argp1);
11682 {
11683 if (!wxPyCheckForApp()) SWIG_fail;
11684 PyThreadState* __tstate = wxPyBeginAllowThreads();
11685 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11686 wxPyEndAllowThreads(__tstate);
11687 if (PyErr_Occurred()) SWIG_fail;
11688 }
11689 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11690 return resultobj;
11691 fail:
11692 return NULL;
11693 }
11694
11695
11696 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11697 PyObject *resultobj = 0;
11698 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
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, SWIG_POINTER_DISOWN | 0 );
11706 if (!SWIG_IsOK(res1)) {
11707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11708 }
11709 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11710 {
11711 PyThreadState* __tstate = wxPyBeginAllowThreads();
11712 delete arg1;
11713
11714 wxPyEndAllowThreads(__tstate);
11715 if (PyErr_Occurred()) SWIG_fail;
11716 }
11717 resultobj = SWIG_Py_Void();
11718 return resultobj;
11719 fail:
11720 return NULL;
11721 }
11722
11723
11724 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11725 PyObject *resultobj = 0;
11726 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11727 int result;
11728 void *argp1 = 0 ;
11729 int res1 = 0 ;
11730 PyObject *swig_obj[1] ;
11731
11732 if (!args) SWIG_fail;
11733 swig_obj[0] = args;
11734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11735 if (!SWIG_IsOK(res1)) {
11736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11737 }
11738 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11739 {
11740 PyThreadState* __tstate = wxPyBeginAllowThreads();
11741 result = (int)(arg1)->GetX();
11742 wxPyEndAllowThreads(__tstate);
11743 if (PyErr_Occurred()) SWIG_fail;
11744 }
11745 resultobj = SWIG_From_int(static_cast< int >(result));
11746 return resultobj;
11747 fail:
11748 return NULL;
11749 }
11750
11751
11752 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11753 PyObject *resultobj = 0;
11754 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11755 int result;
11756 void *argp1 = 0 ;
11757 int res1 = 0 ;
11758 PyObject *swig_obj[1] ;
11759
11760 if (!args) SWIG_fail;
11761 swig_obj[0] = args;
11762 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11763 if (!SWIG_IsOK(res1)) {
11764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11765 }
11766 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11767 {
11768 PyThreadState* __tstate = wxPyBeginAllowThreads();
11769 result = (int)(arg1)->GetY();
11770 wxPyEndAllowThreads(__tstate);
11771 if (PyErr_Occurred()) SWIG_fail;
11772 }
11773 resultobj = SWIG_From_int(static_cast< int >(result));
11774 return resultobj;
11775 fail:
11776 return NULL;
11777 }
11778
11779
11780 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11781 PyObject *resultobj = 0;
11782 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11783 int result;
11784 void *argp1 = 0 ;
11785 int res1 = 0 ;
11786 PyObject *swig_obj[1] ;
11787
11788 if (!args) SWIG_fail;
11789 swig_obj[0] = args;
11790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11791 if (!SWIG_IsOK(res1)) {
11792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11793 }
11794 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11795 {
11796 PyThreadState* __tstate = wxPyBeginAllowThreads();
11797 result = (int)(arg1)->GetW();
11798 wxPyEndAllowThreads(__tstate);
11799 if (PyErr_Occurred()) SWIG_fail;
11800 }
11801 resultobj = SWIG_From_int(static_cast< int >(result));
11802 return resultobj;
11803 fail:
11804 return NULL;
11805 }
11806
11807
11808 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11809 PyObject *resultobj = 0;
11810 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11811 int result;
11812 void *argp1 = 0 ;
11813 int res1 = 0 ;
11814 PyObject *swig_obj[1] ;
11815
11816 if (!args) SWIG_fail;
11817 swig_obj[0] = args;
11818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11819 if (!SWIG_IsOK(res1)) {
11820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11821 }
11822 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11823 {
11824 PyThreadState* __tstate = wxPyBeginAllowThreads();
11825 result = (int)(arg1)->GetWidth();
11826 wxPyEndAllowThreads(__tstate);
11827 if (PyErr_Occurred()) SWIG_fail;
11828 }
11829 resultobj = SWIG_From_int(static_cast< int >(result));
11830 return resultobj;
11831 fail:
11832 return NULL;
11833 }
11834
11835
11836 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11837 PyObject *resultobj = 0;
11838 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11839 int result;
11840 void *argp1 = 0 ;
11841 int res1 = 0 ;
11842 PyObject *swig_obj[1] ;
11843
11844 if (!args) SWIG_fail;
11845 swig_obj[0] = args;
11846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11847 if (!SWIG_IsOK(res1)) {
11848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11849 }
11850 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11851 {
11852 PyThreadState* __tstate = wxPyBeginAllowThreads();
11853 result = (int)(arg1)->GetH();
11854 wxPyEndAllowThreads(__tstate);
11855 if (PyErr_Occurred()) SWIG_fail;
11856 }
11857 resultobj = SWIG_From_int(static_cast< int >(result));
11858 return resultobj;
11859 fail:
11860 return NULL;
11861 }
11862
11863
11864 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11865 PyObject *resultobj = 0;
11866 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11867 int result;
11868 void *argp1 = 0 ;
11869 int res1 = 0 ;
11870 PyObject *swig_obj[1] ;
11871
11872 if (!args) SWIG_fail;
11873 swig_obj[0] = args;
11874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11875 if (!SWIG_IsOK(res1)) {
11876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11877 }
11878 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11879 {
11880 PyThreadState* __tstate = wxPyBeginAllowThreads();
11881 result = (int)(arg1)->GetHeight();
11882 wxPyEndAllowThreads(__tstate);
11883 if (PyErr_Occurred()) SWIG_fail;
11884 }
11885 resultobj = SWIG_From_int(static_cast< int >(result));
11886 return resultobj;
11887 fail:
11888 return NULL;
11889 }
11890
11891
11892 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11893 PyObject *resultobj = 0;
11894 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11895 wxRect result;
11896 void *argp1 = 0 ;
11897 int res1 = 0 ;
11898 PyObject *swig_obj[1] ;
11899
11900 if (!args) SWIG_fail;
11901 swig_obj[0] = args;
11902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11903 if (!SWIG_IsOK(res1)) {
11904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11905 }
11906 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11907 {
11908 PyThreadState* __tstate = wxPyBeginAllowThreads();
11909 result = (arg1)->GetRect();
11910 wxPyEndAllowThreads(__tstate);
11911 if (PyErr_Occurred()) SWIG_fail;
11912 }
11913 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11914 return resultobj;
11915 fail:
11916 return NULL;
11917 }
11918
11919
11920 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11921 PyObject *resultobj = 0;
11922 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11923 bool result;
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_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11933 }
11934 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11935 {
11936 PyThreadState* __tstate = wxPyBeginAllowThreads();
11937 result = (bool)(arg1)->HaveRects();
11938 wxPyEndAllowThreads(__tstate);
11939 if (PyErr_Occurred()) SWIG_fail;
11940 }
11941 {
11942 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11943 }
11944 return resultobj;
11945 fail:
11946 return NULL;
11947 }
11948
11949
11950 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11951 PyObject *resultobj = 0;
11952 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11953 void *argp1 = 0 ;
11954 int res1 = 0 ;
11955 PyObject *swig_obj[1] ;
11956
11957 if (!args) SWIG_fail;
11958 swig_obj[0] = args;
11959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11960 if (!SWIG_IsOK(res1)) {
11961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11962 }
11963 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11964 {
11965 PyThreadState* __tstate = wxPyBeginAllowThreads();
11966 (arg1)->Reset();
11967 wxPyEndAllowThreads(__tstate);
11968 if (PyErr_Occurred()) SWIG_fail;
11969 }
11970 resultobj = SWIG_Py_Void();
11971 return resultobj;
11972 fail:
11973 return NULL;
11974 }
11975
11976
11977 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11978 PyObject *resultobj = 0;
11979 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11980 void *argp1 = 0 ;
11981 int res1 = 0 ;
11982 PyObject *swig_obj[1] ;
11983
11984 if (!args) SWIG_fail;
11985 swig_obj[0] = args;
11986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11987 if (!SWIG_IsOK(res1)) {
11988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11989 }
11990 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11991 {
11992 PyThreadState* __tstate = wxPyBeginAllowThreads();
11993 wxRegionIterator_Next(arg1);
11994 wxPyEndAllowThreads(__tstate);
11995 if (PyErr_Occurred()) SWIG_fail;
11996 }
11997 resultobj = SWIG_Py_Void();
11998 return resultobj;
11999 fail:
12000 return NULL;
12001 }
12002
12003
12004 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12005 PyObject *resultobj = 0;
12006 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12007 bool result;
12008 void *argp1 = 0 ;
12009 int res1 = 0 ;
12010 PyObject *swig_obj[1] ;
12011
12012 if (!args) SWIG_fail;
12013 swig_obj[0] = args;
12014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12015 if (!SWIG_IsOK(res1)) {
12016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12017 }
12018 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12019 {
12020 PyThreadState* __tstate = wxPyBeginAllowThreads();
12021 result = (bool)wxRegionIterator___nonzero__(arg1);
12022 wxPyEndAllowThreads(__tstate);
12023 if (PyErr_Occurred()) SWIG_fail;
12024 }
12025 {
12026 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12027 }
12028 return resultobj;
12029 fail:
12030 return NULL;
12031 }
12032
12033
12034 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12035 PyObject *obj;
12036 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12037 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12038 return SWIG_Py_Void();
12039 }
12040
12041 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12042 return SWIG_Python_InitShadowInstance(args);
12043 }
12044
12045 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12046 PyObject *resultobj = 0;
12047 wxNativeFontInfo *result = 0 ;
12048
12049 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12050 {
12051 PyThreadState* __tstate = wxPyBeginAllowThreads();
12052 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12053 wxPyEndAllowThreads(__tstate);
12054 if (PyErr_Occurred()) SWIG_fail;
12055 }
12056 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12057 return resultobj;
12058 fail:
12059 return NULL;
12060 }
12061
12062
12063 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12064 PyObject *resultobj = 0;
12065 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12066 void *argp1 = 0 ;
12067 int res1 = 0 ;
12068 PyObject *swig_obj[1] ;
12069
12070 if (!args) SWIG_fail;
12071 swig_obj[0] = args;
12072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12073 if (!SWIG_IsOK(res1)) {
12074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12075 }
12076 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12077 {
12078 PyThreadState* __tstate = wxPyBeginAllowThreads();
12079 delete arg1;
12080
12081 wxPyEndAllowThreads(__tstate);
12082 if (PyErr_Occurred()) SWIG_fail;
12083 }
12084 resultobj = SWIG_Py_Void();
12085 return resultobj;
12086 fail:
12087 return NULL;
12088 }
12089
12090
12091 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12092 PyObject *resultobj = 0;
12093 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12094 void *argp1 = 0 ;
12095 int res1 = 0 ;
12096 PyObject *swig_obj[1] ;
12097
12098 if (!args) SWIG_fail;
12099 swig_obj[0] = args;
12100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12101 if (!SWIG_IsOK(res1)) {
12102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12103 }
12104 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12105 {
12106 PyThreadState* __tstate = wxPyBeginAllowThreads();
12107 (arg1)->Init();
12108 wxPyEndAllowThreads(__tstate);
12109 if (PyErr_Occurred()) SWIG_fail;
12110 }
12111 resultobj = SWIG_Py_Void();
12112 return resultobj;
12113 fail:
12114 return NULL;
12115 }
12116
12117
12118 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12119 PyObject *resultobj = 0;
12120 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12121 wxFont *arg2 = 0 ;
12122 void *argp1 = 0 ;
12123 int res1 = 0 ;
12124 void *argp2 = 0 ;
12125 int res2 = 0 ;
12126 PyObject * obj0 = 0 ;
12127 PyObject * obj1 = 0 ;
12128 char * kwnames[] = {
12129 (char *) "self",(char *) "font", NULL
12130 };
12131
12132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12134 if (!SWIG_IsOK(res1)) {
12135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12136 }
12137 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12138 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12139 if (!SWIG_IsOK(res2)) {
12140 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12141 }
12142 if (!argp2) {
12143 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12144 }
12145 arg2 = reinterpret_cast< wxFont * >(argp2);
12146 {
12147 PyThreadState* __tstate = wxPyBeginAllowThreads();
12148 (arg1)->InitFromFont((wxFont const &)*arg2);
12149 wxPyEndAllowThreads(__tstate);
12150 if (PyErr_Occurred()) SWIG_fail;
12151 }
12152 resultobj = SWIG_Py_Void();
12153 return resultobj;
12154 fail:
12155 return NULL;
12156 }
12157
12158
12159 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12160 PyObject *resultobj = 0;
12161 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12162 int result;
12163 void *argp1 = 0 ;
12164 int res1 = 0 ;
12165 PyObject *swig_obj[1] ;
12166
12167 if (!args) SWIG_fail;
12168 swig_obj[0] = args;
12169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12170 if (!SWIG_IsOK(res1)) {
12171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12172 }
12173 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12174 {
12175 PyThreadState* __tstate = wxPyBeginAllowThreads();
12176 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12177 wxPyEndAllowThreads(__tstate);
12178 if (PyErr_Occurred()) SWIG_fail;
12179 }
12180 resultobj = SWIG_From_int(static_cast< int >(result));
12181 return resultobj;
12182 fail:
12183 return NULL;
12184 }
12185
12186
12187 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12188 PyObject *resultobj = 0;
12189 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12190 wxFontStyle result;
12191 void *argp1 = 0 ;
12192 int res1 = 0 ;
12193 PyObject *swig_obj[1] ;
12194
12195 if (!args) SWIG_fail;
12196 swig_obj[0] = args;
12197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12198 if (!SWIG_IsOK(res1)) {
12199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12200 }
12201 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12202 {
12203 PyThreadState* __tstate = wxPyBeginAllowThreads();
12204 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12205 wxPyEndAllowThreads(__tstate);
12206 if (PyErr_Occurred()) SWIG_fail;
12207 }
12208 resultobj = SWIG_From_int(static_cast< int >(result));
12209 return resultobj;
12210 fail:
12211 return NULL;
12212 }
12213
12214
12215 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12216 PyObject *resultobj = 0;
12217 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12218 wxFontWeight result;
12219 void *argp1 = 0 ;
12220 int res1 = 0 ;
12221 PyObject *swig_obj[1] ;
12222
12223 if (!args) SWIG_fail;
12224 swig_obj[0] = args;
12225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12226 if (!SWIG_IsOK(res1)) {
12227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12228 }
12229 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12230 {
12231 PyThreadState* __tstate = wxPyBeginAllowThreads();
12232 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12233 wxPyEndAllowThreads(__tstate);
12234 if (PyErr_Occurred()) SWIG_fail;
12235 }
12236 resultobj = SWIG_From_int(static_cast< int >(result));
12237 return resultobj;
12238 fail:
12239 return NULL;
12240 }
12241
12242
12243 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12244 PyObject *resultobj = 0;
12245 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12246 bool result;
12247 void *argp1 = 0 ;
12248 int res1 = 0 ;
12249 PyObject *swig_obj[1] ;
12250
12251 if (!args) SWIG_fail;
12252 swig_obj[0] = args;
12253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12254 if (!SWIG_IsOK(res1)) {
12255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12256 }
12257 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12258 {
12259 PyThreadState* __tstate = wxPyBeginAllowThreads();
12260 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12261 wxPyEndAllowThreads(__tstate);
12262 if (PyErr_Occurred()) SWIG_fail;
12263 }
12264 {
12265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12266 }
12267 return resultobj;
12268 fail:
12269 return NULL;
12270 }
12271
12272
12273 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12274 PyObject *resultobj = 0;
12275 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12276 wxString result;
12277 void *argp1 = 0 ;
12278 int res1 = 0 ;
12279 PyObject *swig_obj[1] ;
12280
12281 if (!args) SWIG_fail;
12282 swig_obj[0] = args;
12283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12284 if (!SWIG_IsOK(res1)) {
12285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12286 }
12287 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12288 {
12289 PyThreadState* __tstate = wxPyBeginAllowThreads();
12290 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12291 wxPyEndAllowThreads(__tstate);
12292 if (PyErr_Occurred()) SWIG_fail;
12293 }
12294 {
12295 #if wxUSE_UNICODE
12296 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12297 #else
12298 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12299 #endif
12300 }
12301 return resultobj;
12302 fail:
12303 return NULL;
12304 }
12305
12306
12307 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12308 PyObject *resultobj = 0;
12309 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12310 wxFontFamily result;
12311 void *argp1 = 0 ;
12312 int res1 = 0 ;
12313 PyObject *swig_obj[1] ;
12314
12315 if (!args) SWIG_fail;
12316 swig_obj[0] = args;
12317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12318 if (!SWIG_IsOK(res1)) {
12319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12320 }
12321 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12322 {
12323 PyThreadState* __tstate = wxPyBeginAllowThreads();
12324 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12325 wxPyEndAllowThreads(__tstate);
12326 if (PyErr_Occurred()) SWIG_fail;
12327 }
12328 resultobj = SWIG_From_int(static_cast< int >(result));
12329 return resultobj;
12330 fail:
12331 return NULL;
12332 }
12333
12334
12335 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12336 PyObject *resultobj = 0;
12337 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12338 wxFontEncoding result;
12339 void *argp1 = 0 ;
12340 int res1 = 0 ;
12341 PyObject *swig_obj[1] ;
12342
12343 if (!args) SWIG_fail;
12344 swig_obj[0] = args;
12345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12346 if (!SWIG_IsOK(res1)) {
12347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12348 }
12349 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12350 {
12351 PyThreadState* __tstate = wxPyBeginAllowThreads();
12352 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12353 wxPyEndAllowThreads(__tstate);
12354 if (PyErr_Occurred()) SWIG_fail;
12355 }
12356 resultobj = SWIG_From_int(static_cast< int >(result));
12357 return resultobj;
12358 fail:
12359 return NULL;
12360 }
12361
12362
12363 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12364 PyObject *resultobj = 0;
12365 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12366 int arg2 ;
12367 void *argp1 = 0 ;
12368 int res1 = 0 ;
12369 int val2 ;
12370 int ecode2 = 0 ;
12371 PyObject * obj0 = 0 ;
12372 PyObject * obj1 = 0 ;
12373 char * kwnames[] = {
12374 (char *) "self",(char *) "pointsize", NULL
12375 };
12376
12377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12379 if (!SWIG_IsOK(res1)) {
12380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12381 }
12382 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12383 ecode2 = SWIG_AsVal_int(obj1, &val2);
12384 if (!SWIG_IsOK(ecode2)) {
12385 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12386 }
12387 arg2 = static_cast< int >(val2);
12388 {
12389 PyThreadState* __tstate = wxPyBeginAllowThreads();
12390 (arg1)->SetPointSize(arg2);
12391 wxPyEndAllowThreads(__tstate);
12392 if (PyErr_Occurred()) SWIG_fail;
12393 }
12394 resultobj = SWIG_Py_Void();
12395 return resultobj;
12396 fail:
12397 return NULL;
12398 }
12399
12400
12401 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12402 PyObject *resultobj = 0;
12403 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12404 wxFontStyle arg2 ;
12405 void *argp1 = 0 ;
12406 int res1 = 0 ;
12407 int val2 ;
12408 int ecode2 = 0 ;
12409 PyObject * obj0 = 0 ;
12410 PyObject * obj1 = 0 ;
12411 char * kwnames[] = {
12412 (char *) "self",(char *) "style", NULL
12413 };
12414
12415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12417 if (!SWIG_IsOK(res1)) {
12418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12419 }
12420 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12421 ecode2 = SWIG_AsVal_int(obj1, &val2);
12422 if (!SWIG_IsOK(ecode2)) {
12423 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12424 }
12425 arg2 = static_cast< wxFontStyle >(val2);
12426 {
12427 PyThreadState* __tstate = wxPyBeginAllowThreads();
12428 (arg1)->SetStyle(arg2);
12429 wxPyEndAllowThreads(__tstate);
12430 if (PyErr_Occurred()) SWIG_fail;
12431 }
12432 resultobj = SWIG_Py_Void();
12433 return resultobj;
12434 fail:
12435 return NULL;
12436 }
12437
12438
12439 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12440 PyObject *resultobj = 0;
12441 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12442 wxFontWeight arg2 ;
12443 void *argp1 = 0 ;
12444 int res1 = 0 ;
12445 int val2 ;
12446 int ecode2 = 0 ;
12447 PyObject * obj0 = 0 ;
12448 PyObject * obj1 = 0 ;
12449 char * kwnames[] = {
12450 (char *) "self",(char *) "weight", NULL
12451 };
12452
12453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12455 if (!SWIG_IsOK(res1)) {
12456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12457 }
12458 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12459 ecode2 = SWIG_AsVal_int(obj1, &val2);
12460 if (!SWIG_IsOK(ecode2)) {
12461 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12462 }
12463 arg2 = static_cast< wxFontWeight >(val2);
12464 {
12465 PyThreadState* __tstate = wxPyBeginAllowThreads();
12466 (arg1)->SetWeight(arg2);
12467 wxPyEndAllowThreads(__tstate);
12468 if (PyErr_Occurred()) SWIG_fail;
12469 }
12470 resultobj = SWIG_Py_Void();
12471 return resultobj;
12472 fail:
12473 return NULL;
12474 }
12475
12476
12477 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12478 PyObject *resultobj = 0;
12479 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12480 bool arg2 ;
12481 void *argp1 = 0 ;
12482 int res1 = 0 ;
12483 bool val2 ;
12484 int ecode2 = 0 ;
12485 PyObject * obj0 = 0 ;
12486 PyObject * obj1 = 0 ;
12487 char * kwnames[] = {
12488 (char *) "self",(char *) "underlined", NULL
12489 };
12490
12491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12493 if (!SWIG_IsOK(res1)) {
12494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12495 }
12496 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12497 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12498 if (!SWIG_IsOK(ecode2)) {
12499 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12500 }
12501 arg2 = static_cast< bool >(val2);
12502 {
12503 PyThreadState* __tstate = wxPyBeginAllowThreads();
12504 (arg1)->SetUnderlined(arg2);
12505 wxPyEndAllowThreads(__tstate);
12506 if (PyErr_Occurred()) SWIG_fail;
12507 }
12508 resultobj = SWIG_Py_Void();
12509 return resultobj;
12510 fail:
12511 return NULL;
12512 }
12513
12514
12515 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12516 PyObject *resultobj = 0;
12517 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12518 wxString arg2 ;
12519 bool result;
12520 void *argp1 = 0 ;
12521 int res1 = 0 ;
12522 PyObject * obj0 = 0 ;
12523 PyObject * obj1 = 0 ;
12524 char * kwnames[] = {
12525 (char *) "self",(char *) "facename", NULL
12526 };
12527
12528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12530 if (!SWIG_IsOK(res1)) {
12531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12532 }
12533 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12534 {
12535 wxString* sptr = wxString_in_helper(obj1);
12536 if (sptr == NULL) SWIG_fail;
12537 arg2 = *sptr;
12538 delete sptr;
12539 }
12540 {
12541 PyThreadState* __tstate = wxPyBeginAllowThreads();
12542 result = (bool)(arg1)->SetFaceName(arg2);
12543 wxPyEndAllowThreads(__tstate);
12544 if (PyErr_Occurred()) SWIG_fail;
12545 }
12546 {
12547 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12548 }
12549 return resultobj;
12550 fail:
12551 return NULL;
12552 }
12553
12554
12555 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12556 PyObject *resultobj = 0;
12557 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12558 wxFontFamily arg2 ;
12559 void *argp1 = 0 ;
12560 int res1 = 0 ;
12561 int val2 ;
12562 int ecode2 = 0 ;
12563 PyObject * obj0 = 0 ;
12564 PyObject * obj1 = 0 ;
12565 char * kwnames[] = {
12566 (char *) "self",(char *) "family", NULL
12567 };
12568
12569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12571 if (!SWIG_IsOK(res1)) {
12572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12573 }
12574 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12575 ecode2 = SWIG_AsVal_int(obj1, &val2);
12576 if (!SWIG_IsOK(ecode2)) {
12577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12578 }
12579 arg2 = static_cast< wxFontFamily >(val2);
12580 {
12581 PyThreadState* __tstate = wxPyBeginAllowThreads();
12582 (arg1)->SetFamily(arg2);
12583 wxPyEndAllowThreads(__tstate);
12584 if (PyErr_Occurred()) SWIG_fail;
12585 }
12586 resultobj = SWIG_Py_Void();
12587 return resultobj;
12588 fail:
12589 return NULL;
12590 }
12591
12592
12593 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12594 PyObject *resultobj = 0;
12595 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12596 wxFontEncoding arg2 ;
12597 void *argp1 = 0 ;
12598 int res1 = 0 ;
12599 int val2 ;
12600 int ecode2 = 0 ;
12601 PyObject * obj0 = 0 ;
12602 PyObject * obj1 = 0 ;
12603 char * kwnames[] = {
12604 (char *) "self",(char *) "encoding", NULL
12605 };
12606
12607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12609 if (!SWIG_IsOK(res1)) {
12610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12611 }
12612 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12613 ecode2 = SWIG_AsVal_int(obj1, &val2);
12614 if (!SWIG_IsOK(ecode2)) {
12615 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12616 }
12617 arg2 = static_cast< wxFontEncoding >(val2);
12618 {
12619 PyThreadState* __tstate = wxPyBeginAllowThreads();
12620 (arg1)->SetEncoding(arg2);
12621 wxPyEndAllowThreads(__tstate);
12622 if (PyErr_Occurred()) SWIG_fail;
12623 }
12624 resultobj = SWIG_Py_Void();
12625 return resultobj;
12626 fail:
12627 return NULL;
12628 }
12629
12630
12631 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12632 PyObject *resultobj = 0;
12633 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12634 wxString *arg2 = 0 ;
12635 bool result;
12636 void *argp1 = 0 ;
12637 int res1 = 0 ;
12638 bool temp2 = false ;
12639 PyObject * obj0 = 0 ;
12640 PyObject * obj1 = 0 ;
12641 char * kwnames[] = {
12642 (char *) "self",(char *) "s", NULL
12643 };
12644
12645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12647 if (!SWIG_IsOK(res1)) {
12648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12649 }
12650 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12651 {
12652 arg2 = wxString_in_helper(obj1);
12653 if (arg2 == NULL) SWIG_fail;
12654 temp2 = true;
12655 }
12656 {
12657 PyThreadState* __tstate = wxPyBeginAllowThreads();
12658 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12659 wxPyEndAllowThreads(__tstate);
12660 if (PyErr_Occurred()) SWIG_fail;
12661 }
12662 {
12663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12664 }
12665 {
12666 if (temp2)
12667 delete arg2;
12668 }
12669 return resultobj;
12670 fail:
12671 {
12672 if (temp2)
12673 delete arg2;
12674 }
12675 return NULL;
12676 }
12677
12678
12679 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12680 PyObject *resultobj = 0;
12681 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12682 wxString result;
12683 void *argp1 = 0 ;
12684 int res1 = 0 ;
12685 PyObject *swig_obj[1] ;
12686
12687 if (!args) SWIG_fail;
12688 swig_obj[0] = args;
12689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12690 if (!SWIG_IsOK(res1)) {
12691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12692 }
12693 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12694 {
12695 PyThreadState* __tstate = wxPyBeginAllowThreads();
12696 result = ((wxNativeFontInfo const *)arg1)->ToString();
12697 wxPyEndAllowThreads(__tstate);
12698 if (PyErr_Occurred()) SWIG_fail;
12699 }
12700 {
12701 #if wxUSE_UNICODE
12702 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12703 #else
12704 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12705 #endif
12706 }
12707 return resultobj;
12708 fail:
12709 return NULL;
12710 }
12711
12712
12713 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12714 PyObject *resultobj = 0;
12715 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12716 wxString result;
12717 void *argp1 = 0 ;
12718 int res1 = 0 ;
12719 PyObject *swig_obj[1] ;
12720
12721 if (!args) SWIG_fail;
12722 swig_obj[0] = args;
12723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12724 if (!SWIG_IsOK(res1)) {
12725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12726 }
12727 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12728 {
12729 PyThreadState* __tstate = wxPyBeginAllowThreads();
12730 result = wxNativeFontInfo___str__(arg1);
12731 wxPyEndAllowThreads(__tstate);
12732 if (PyErr_Occurred()) SWIG_fail;
12733 }
12734 {
12735 #if wxUSE_UNICODE
12736 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12737 #else
12738 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12739 #endif
12740 }
12741 return resultobj;
12742 fail:
12743 return NULL;
12744 }
12745
12746
12747 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12748 PyObject *resultobj = 0;
12749 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12750 wxString *arg2 = 0 ;
12751 bool result;
12752 void *argp1 = 0 ;
12753 int res1 = 0 ;
12754 bool temp2 = false ;
12755 PyObject * obj0 = 0 ;
12756 PyObject * obj1 = 0 ;
12757 char * kwnames[] = {
12758 (char *) "self",(char *) "s", NULL
12759 };
12760
12761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12763 if (!SWIG_IsOK(res1)) {
12764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12765 }
12766 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12767 {
12768 arg2 = wxString_in_helper(obj1);
12769 if (arg2 == NULL) SWIG_fail;
12770 temp2 = true;
12771 }
12772 {
12773 PyThreadState* __tstate = wxPyBeginAllowThreads();
12774 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12775 wxPyEndAllowThreads(__tstate);
12776 if (PyErr_Occurred()) SWIG_fail;
12777 }
12778 {
12779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12780 }
12781 {
12782 if (temp2)
12783 delete arg2;
12784 }
12785 return resultobj;
12786 fail:
12787 {
12788 if (temp2)
12789 delete arg2;
12790 }
12791 return NULL;
12792 }
12793
12794
12795 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12796 PyObject *resultobj = 0;
12797 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12798 wxString result;
12799 void *argp1 = 0 ;
12800 int res1 = 0 ;
12801 PyObject *swig_obj[1] ;
12802
12803 if (!args) SWIG_fail;
12804 swig_obj[0] = args;
12805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12806 if (!SWIG_IsOK(res1)) {
12807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12808 }
12809 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12810 {
12811 PyThreadState* __tstate = wxPyBeginAllowThreads();
12812 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12813 wxPyEndAllowThreads(__tstate);
12814 if (PyErr_Occurred()) SWIG_fail;
12815 }
12816 {
12817 #if wxUSE_UNICODE
12818 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12819 #else
12820 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12821 #endif
12822 }
12823 return resultobj;
12824 fail:
12825 return NULL;
12826 }
12827
12828
12829 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12830 PyObject *obj;
12831 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12832 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12833 return SWIG_Py_Void();
12834 }
12835
12836 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12837 return SWIG_Python_InitShadowInstance(args);
12838 }
12839
12840 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12841 PyObject *resultobj = 0;
12842 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12843 wxString *arg2 = (wxString *) 0 ;
12844 void *argp1 = 0 ;
12845 int res1 = 0 ;
12846 bool temp2 = false ;
12847 PyObject *swig_obj[2] ;
12848
12849 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12851 if (!SWIG_IsOK(res1)) {
12852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12853 }
12854 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12855 {
12856 arg2 = wxString_in_helper(swig_obj[1]);
12857 if (arg2 == NULL) SWIG_fail;
12858 temp2 = true;
12859 }
12860 if (arg1) (arg1)->facename = *arg2;
12861
12862 resultobj = SWIG_Py_Void();
12863 {
12864 if (temp2)
12865 delete arg2;
12866 }
12867 return resultobj;
12868 fail:
12869 {
12870 if (temp2)
12871 delete arg2;
12872 }
12873 return NULL;
12874 }
12875
12876
12877 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12878 PyObject *resultobj = 0;
12879 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12880 wxString *result = 0 ;
12881 void *argp1 = 0 ;
12882 int res1 = 0 ;
12883 PyObject *swig_obj[1] ;
12884
12885 if (!args) SWIG_fail;
12886 swig_obj[0] = args;
12887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12888 if (!SWIG_IsOK(res1)) {
12889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12890 }
12891 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12892 result = (wxString *)& ((arg1)->facename);
12893 {
12894 #if wxUSE_UNICODE
12895 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12896 #else
12897 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12898 #endif
12899 }
12900 return resultobj;
12901 fail:
12902 return NULL;
12903 }
12904
12905
12906 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12907 PyObject *resultobj = 0;
12908 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12909 wxFontEncoding arg2 ;
12910 void *argp1 = 0 ;
12911 int res1 = 0 ;
12912 int val2 ;
12913 int ecode2 = 0 ;
12914 PyObject *swig_obj[2] ;
12915
12916 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
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_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12920 }
12921 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12922 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12923 if (!SWIG_IsOK(ecode2)) {
12924 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12925 }
12926 arg2 = static_cast< wxFontEncoding >(val2);
12927 if (arg1) (arg1)->encoding = arg2;
12928
12929 resultobj = SWIG_Py_Void();
12930 return resultobj;
12931 fail:
12932 return NULL;
12933 }
12934
12935
12936 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12937 PyObject *resultobj = 0;
12938 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12939 wxFontEncoding result;
12940 void *argp1 = 0 ;
12941 int res1 = 0 ;
12942 PyObject *swig_obj[1] ;
12943
12944 if (!args) SWIG_fail;
12945 swig_obj[0] = args;
12946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12947 if (!SWIG_IsOK(res1)) {
12948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12949 }
12950 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12951 result = (wxFontEncoding) ((arg1)->encoding);
12952 resultobj = SWIG_From_int(static_cast< int >(result));
12953 return resultobj;
12954 fail:
12955 return NULL;
12956 }
12957
12958
12959 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12960 PyObject *resultobj = 0;
12961 wxNativeEncodingInfo *result = 0 ;
12962
12963 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12964 {
12965 PyThreadState* __tstate = wxPyBeginAllowThreads();
12966 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12967 wxPyEndAllowThreads(__tstate);
12968 if (PyErr_Occurred()) SWIG_fail;
12969 }
12970 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12971 return resultobj;
12972 fail:
12973 return NULL;
12974 }
12975
12976
12977 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12978 PyObject *resultobj = 0;
12979 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12980 void *argp1 = 0 ;
12981 int res1 = 0 ;
12982 PyObject *swig_obj[1] ;
12983
12984 if (!args) SWIG_fail;
12985 swig_obj[0] = args;
12986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12987 if (!SWIG_IsOK(res1)) {
12988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12989 }
12990 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12991 {
12992 PyThreadState* __tstate = wxPyBeginAllowThreads();
12993 delete arg1;
12994
12995 wxPyEndAllowThreads(__tstate);
12996 if (PyErr_Occurred()) SWIG_fail;
12997 }
12998 resultobj = SWIG_Py_Void();
12999 return resultobj;
13000 fail:
13001 return NULL;
13002 }
13003
13004
13005 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13006 PyObject *resultobj = 0;
13007 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13008 wxString *arg2 = 0 ;
13009 bool result;
13010 void *argp1 = 0 ;
13011 int res1 = 0 ;
13012 bool temp2 = false ;
13013 PyObject * obj0 = 0 ;
13014 PyObject * obj1 = 0 ;
13015 char * kwnames[] = {
13016 (char *) "self",(char *) "s", NULL
13017 };
13018
13019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13021 if (!SWIG_IsOK(res1)) {
13022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13023 }
13024 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13025 {
13026 arg2 = wxString_in_helper(obj1);
13027 if (arg2 == NULL) SWIG_fail;
13028 temp2 = true;
13029 }
13030 {
13031 PyThreadState* __tstate = wxPyBeginAllowThreads();
13032 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13033 wxPyEndAllowThreads(__tstate);
13034 if (PyErr_Occurred()) SWIG_fail;
13035 }
13036 {
13037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13038 }
13039 {
13040 if (temp2)
13041 delete arg2;
13042 }
13043 return resultobj;
13044 fail:
13045 {
13046 if (temp2)
13047 delete arg2;
13048 }
13049 return NULL;
13050 }
13051
13052
13053 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13054 PyObject *resultobj = 0;
13055 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13056 wxString result;
13057 void *argp1 = 0 ;
13058 int res1 = 0 ;
13059 PyObject *swig_obj[1] ;
13060
13061 if (!args) SWIG_fail;
13062 swig_obj[0] = args;
13063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13064 if (!SWIG_IsOK(res1)) {
13065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13066 }
13067 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13068 {
13069 PyThreadState* __tstate = wxPyBeginAllowThreads();
13070 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13071 wxPyEndAllowThreads(__tstate);
13072 if (PyErr_Occurred()) SWIG_fail;
13073 }
13074 {
13075 #if wxUSE_UNICODE
13076 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13077 #else
13078 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13079 #endif
13080 }
13081 return resultobj;
13082 fail:
13083 return NULL;
13084 }
13085
13086
13087 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13088 PyObject *obj;
13089 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13090 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13091 return SWIG_Py_Void();
13092 }
13093
13094 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13095 return SWIG_Python_InitShadowInstance(args);
13096 }
13097
13098 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13099 PyObject *resultobj = 0;
13100 wxFontEncoding arg1 ;
13101 wxNativeEncodingInfo *result = 0 ;
13102 int val1 ;
13103 int ecode1 = 0 ;
13104 PyObject * obj0 = 0 ;
13105 char * kwnames[] = {
13106 (char *) "encoding", NULL
13107 };
13108
13109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13110 ecode1 = SWIG_AsVal_int(obj0, &val1);
13111 if (!SWIG_IsOK(ecode1)) {
13112 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13113 }
13114 arg1 = static_cast< wxFontEncoding >(val1);
13115 {
13116 PyThreadState* __tstate = wxPyBeginAllowThreads();
13117 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13118 wxPyEndAllowThreads(__tstate);
13119 if (PyErr_Occurred()) SWIG_fail;
13120 }
13121 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13122 return resultobj;
13123 fail:
13124 return NULL;
13125 }
13126
13127
13128 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13129 PyObject *resultobj = 0;
13130 wxNativeEncodingInfo *arg1 = 0 ;
13131 bool result;
13132 void *argp1 = 0 ;
13133 int res1 = 0 ;
13134 PyObject * obj0 = 0 ;
13135 char * kwnames[] = {
13136 (char *) "info", NULL
13137 };
13138
13139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13140 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13141 if (!SWIG_IsOK(res1)) {
13142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13143 }
13144 if (!argp1) {
13145 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13146 }
13147 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13148 {
13149 PyThreadState* __tstate = wxPyBeginAllowThreads();
13150 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13151 wxPyEndAllowThreads(__tstate);
13152 if (PyErr_Occurred()) SWIG_fail;
13153 }
13154 {
13155 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13156 }
13157 return resultobj;
13158 fail:
13159 return NULL;
13160 }
13161
13162
13163 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13164 PyObject *resultobj = 0;
13165 wxFontMapper *result = 0 ;
13166
13167 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13168 {
13169 PyThreadState* __tstate = wxPyBeginAllowThreads();
13170 result = (wxFontMapper *)new wxFontMapper();
13171 wxPyEndAllowThreads(__tstate);
13172 if (PyErr_Occurred()) SWIG_fail;
13173 }
13174 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13175 return resultobj;
13176 fail:
13177 return NULL;
13178 }
13179
13180
13181 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13182 PyObject *resultobj = 0;
13183 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13184 void *argp1 = 0 ;
13185 int res1 = 0 ;
13186 PyObject *swig_obj[1] ;
13187
13188 if (!args) SWIG_fail;
13189 swig_obj[0] = args;
13190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13191 if (!SWIG_IsOK(res1)) {
13192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13193 }
13194 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13195 {
13196 PyThreadState* __tstate = wxPyBeginAllowThreads();
13197 delete arg1;
13198
13199 wxPyEndAllowThreads(__tstate);
13200 if (PyErr_Occurred()) SWIG_fail;
13201 }
13202 resultobj = SWIG_Py_Void();
13203 return resultobj;
13204 fail:
13205 return NULL;
13206 }
13207
13208
13209 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13210 PyObject *resultobj = 0;
13211 wxFontMapper *result = 0 ;
13212
13213 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13214 {
13215 PyThreadState* __tstate = wxPyBeginAllowThreads();
13216 result = (wxFontMapper *)wxFontMapper::Get();
13217 wxPyEndAllowThreads(__tstate);
13218 if (PyErr_Occurred()) SWIG_fail;
13219 }
13220 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13221 return resultobj;
13222 fail:
13223 return NULL;
13224 }
13225
13226
13227 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13228 PyObject *resultobj = 0;
13229 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13230 wxFontMapper *result = 0 ;
13231 void *argp1 = 0 ;
13232 int res1 = 0 ;
13233 PyObject * obj0 = 0 ;
13234 char * kwnames[] = {
13235 (char *) "mapper", NULL
13236 };
13237
13238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13240 if (!SWIG_IsOK(res1)) {
13241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13242 }
13243 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13244 {
13245 PyThreadState* __tstate = wxPyBeginAllowThreads();
13246 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13247 wxPyEndAllowThreads(__tstate);
13248 if (PyErr_Occurred()) SWIG_fail;
13249 }
13250 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13251 return resultobj;
13252 fail:
13253 return NULL;
13254 }
13255
13256
13257 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13258 PyObject *resultobj = 0;
13259 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13260 wxString *arg2 = 0 ;
13261 bool arg3 = (bool) true ;
13262 wxFontEncoding result;
13263 void *argp1 = 0 ;
13264 int res1 = 0 ;
13265 bool temp2 = false ;
13266 bool val3 ;
13267 int ecode3 = 0 ;
13268 PyObject * obj0 = 0 ;
13269 PyObject * obj1 = 0 ;
13270 PyObject * obj2 = 0 ;
13271 char * kwnames[] = {
13272 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13273 };
13274
13275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13277 if (!SWIG_IsOK(res1)) {
13278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13279 }
13280 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13281 {
13282 arg2 = wxString_in_helper(obj1);
13283 if (arg2 == NULL) SWIG_fail;
13284 temp2 = true;
13285 }
13286 if (obj2) {
13287 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13288 if (!SWIG_IsOK(ecode3)) {
13289 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13290 }
13291 arg3 = static_cast< bool >(val3);
13292 }
13293 {
13294 PyThreadState* __tstate = wxPyBeginAllowThreads();
13295 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13296 wxPyEndAllowThreads(__tstate);
13297 if (PyErr_Occurred()) SWIG_fail;
13298 }
13299 resultobj = SWIG_From_int(static_cast< int >(result));
13300 {
13301 if (temp2)
13302 delete arg2;
13303 }
13304 return resultobj;
13305 fail:
13306 {
13307 if (temp2)
13308 delete arg2;
13309 }
13310 return NULL;
13311 }
13312
13313
13314 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13315 PyObject *resultobj = 0;
13316 size_t result;
13317
13318 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13319 {
13320 PyThreadState* __tstate = wxPyBeginAllowThreads();
13321 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13322 wxPyEndAllowThreads(__tstate);
13323 if (PyErr_Occurred()) SWIG_fail;
13324 }
13325 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13326 return resultobj;
13327 fail:
13328 return NULL;
13329 }
13330
13331
13332 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13333 PyObject *resultobj = 0;
13334 size_t arg1 ;
13335 wxFontEncoding result;
13336 size_t val1 ;
13337 int ecode1 = 0 ;
13338 PyObject * obj0 = 0 ;
13339 char * kwnames[] = {
13340 (char *) "n", NULL
13341 };
13342
13343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13344 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13345 if (!SWIG_IsOK(ecode1)) {
13346 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13347 }
13348 arg1 = static_cast< size_t >(val1);
13349 {
13350 PyThreadState* __tstate = wxPyBeginAllowThreads();
13351 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13352 wxPyEndAllowThreads(__tstate);
13353 if (PyErr_Occurred()) SWIG_fail;
13354 }
13355 resultobj = SWIG_From_int(static_cast< int >(result));
13356 return resultobj;
13357 fail:
13358 return NULL;
13359 }
13360
13361
13362 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13363 PyObject *resultobj = 0;
13364 wxFontEncoding arg1 ;
13365 wxString result;
13366 int val1 ;
13367 int ecode1 = 0 ;
13368 PyObject * obj0 = 0 ;
13369 char * kwnames[] = {
13370 (char *) "encoding", NULL
13371 };
13372
13373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13374 ecode1 = SWIG_AsVal_int(obj0, &val1);
13375 if (!SWIG_IsOK(ecode1)) {
13376 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13377 }
13378 arg1 = static_cast< wxFontEncoding >(val1);
13379 {
13380 PyThreadState* __tstate = wxPyBeginAllowThreads();
13381 result = wxFontMapper::GetEncodingName(arg1);
13382 wxPyEndAllowThreads(__tstate);
13383 if (PyErr_Occurred()) SWIG_fail;
13384 }
13385 {
13386 #if wxUSE_UNICODE
13387 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13388 #else
13389 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13390 #endif
13391 }
13392 return resultobj;
13393 fail:
13394 return NULL;
13395 }
13396
13397
13398 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13399 PyObject *resultobj = 0;
13400 wxFontEncoding arg1 ;
13401 wxString result;
13402 int val1 ;
13403 int ecode1 = 0 ;
13404 PyObject * obj0 = 0 ;
13405 char * kwnames[] = {
13406 (char *) "encoding", NULL
13407 };
13408
13409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13410 ecode1 = SWIG_AsVal_int(obj0, &val1);
13411 if (!SWIG_IsOK(ecode1)) {
13412 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13413 }
13414 arg1 = static_cast< wxFontEncoding >(val1);
13415 {
13416 PyThreadState* __tstate = wxPyBeginAllowThreads();
13417 result = wxFontMapper::GetEncodingDescription(arg1);
13418 wxPyEndAllowThreads(__tstate);
13419 if (PyErr_Occurred()) SWIG_fail;
13420 }
13421 {
13422 #if wxUSE_UNICODE
13423 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13424 #else
13425 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13426 #endif
13427 }
13428 return resultobj;
13429 fail:
13430 return NULL;
13431 }
13432
13433
13434 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13435 PyObject *resultobj = 0;
13436 wxString *arg1 = 0 ;
13437 wxFontEncoding result;
13438 bool temp1 = false ;
13439 PyObject * obj0 = 0 ;
13440 char * kwnames[] = {
13441 (char *) "name", NULL
13442 };
13443
13444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13445 {
13446 arg1 = wxString_in_helper(obj0);
13447 if (arg1 == NULL) SWIG_fail;
13448 temp1 = true;
13449 }
13450 {
13451 PyThreadState* __tstate = wxPyBeginAllowThreads();
13452 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13453 wxPyEndAllowThreads(__tstate);
13454 if (PyErr_Occurred()) SWIG_fail;
13455 }
13456 resultobj = SWIG_From_int(static_cast< int >(result));
13457 {
13458 if (temp1)
13459 delete arg1;
13460 }
13461 return resultobj;
13462 fail:
13463 {
13464 if (temp1)
13465 delete arg1;
13466 }
13467 return NULL;
13468 }
13469
13470
13471 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13472 PyObject *resultobj = 0;
13473 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13474 wxString *arg2 = 0 ;
13475 void *argp1 = 0 ;
13476 int res1 = 0 ;
13477 bool temp2 = false ;
13478 PyObject * obj0 = 0 ;
13479 PyObject * obj1 = 0 ;
13480 char * kwnames[] = {
13481 (char *) "self",(char *) "prefix", NULL
13482 };
13483
13484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13486 if (!SWIG_IsOK(res1)) {
13487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13488 }
13489 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13490 {
13491 arg2 = wxString_in_helper(obj1);
13492 if (arg2 == NULL) SWIG_fail;
13493 temp2 = true;
13494 }
13495 {
13496 PyThreadState* __tstate = wxPyBeginAllowThreads();
13497 (arg1)->SetConfigPath((wxString const &)*arg2);
13498 wxPyEndAllowThreads(__tstate);
13499 if (PyErr_Occurred()) SWIG_fail;
13500 }
13501 resultobj = SWIG_Py_Void();
13502 {
13503 if (temp2)
13504 delete arg2;
13505 }
13506 return resultobj;
13507 fail:
13508 {
13509 if (temp2)
13510 delete arg2;
13511 }
13512 return NULL;
13513 }
13514
13515
13516 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13517 PyObject *resultobj = 0;
13518 wxString result;
13519
13520 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13521 {
13522 PyThreadState* __tstate = wxPyBeginAllowThreads();
13523 result = wxFontMapper::GetDefaultConfigPath();
13524 wxPyEndAllowThreads(__tstate);
13525 if (PyErr_Occurred()) SWIG_fail;
13526 }
13527 {
13528 #if wxUSE_UNICODE
13529 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13530 #else
13531 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13532 #endif
13533 }
13534 return resultobj;
13535 fail:
13536 return NULL;
13537 }
13538
13539
13540 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13541 PyObject *resultobj = 0;
13542 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13543 wxFontEncoding arg2 ;
13544 wxString const &arg3_defvalue = wxPyEmptyString ;
13545 wxString *arg3 = (wxString *) &arg3_defvalue ;
13546 bool arg4 = (bool) true ;
13547 PyObject *result = 0 ;
13548 void *argp1 = 0 ;
13549 int res1 = 0 ;
13550 int val2 ;
13551 int ecode2 = 0 ;
13552 bool temp3 = false ;
13553 bool val4 ;
13554 int ecode4 = 0 ;
13555 PyObject * obj0 = 0 ;
13556 PyObject * obj1 = 0 ;
13557 PyObject * obj2 = 0 ;
13558 PyObject * obj3 = 0 ;
13559 char * kwnames[] = {
13560 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13561 };
13562
13563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13565 if (!SWIG_IsOK(res1)) {
13566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13567 }
13568 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13569 ecode2 = SWIG_AsVal_int(obj1, &val2);
13570 if (!SWIG_IsOK(ecode2)) {
13571 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13572 }
13573 arg2 = static_cast< wxFontEncoding >(val2);
13574 if (obj2) {
13575 {
13576 arg3 = wxString_in_helper(obj2);
13577 if (arg3 == NULL) SWIG_fail;
13578 temp3 = true;
13579 }
13580 }
13581 if (obj3) {
13582 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13583 if (!SWIG_IsOK(ecode4)) {
13584 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13585 }
13586 arg4 = static_cast< bool >(val4);
13587 }
13588 {
13589 PyThreadState* __tstate = wxPyBeginAllowThreads();
13590 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13591 wxPyEndAllowThreads(__tstate);
13592 if (PyErr_Occurred()) SWIG_fail;
13593 }
13594 resultobj = result;
13595 {
13596 if (temp3)
13597 delete arg3;
13598 }
13599 return resultobj;
13600 fail:
13601 {
13602 if (temp3)
13603 delete arg3;
13604 }
13605 return NULL;
13606 }
13607
13608
13609 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13610 PyObject *resultobj = 0;
13611 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13612 wxFontEncoding arg2 ;
13613 wxString const &arg3_defvalue = wxPyEmptyString ;
13614 wxString *arg3 = (wxString *) &arg3_defvalue ;
13615 bool result;
13616 void *argp1 = 0 ;
13617 int res1 = 0 ;
13618 int val2 ;
13619 int ecode2 = 0 ;
13620 bool temp3 = false ;
13621 PyObject * obj0 = 0 ;
13622 PyObject * obj1 = 0 ;
13623 PyObject * obj2 = 0 ;
13624 char * kwnames[] = {
13625 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13626 };
13627
13628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13630 if (!SWIG_IsOK(res1)) {
13631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13632 }
13633 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13634 ecode2 = SWIG_AsVal_int(obj1, &val2);
13635 if (!SWIG_IsOK(ecode2)) {
13636 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13637 }
13638 arg2 = static_cast< wxFontEncoding >(val2);
13639 if (obj2) {
13640 {
13641 arg3 = wxString_in_helper(obj2);
13642 if (arg3 == NULL) SWIG_fail;
13643 temp3 = true;
13644 }
13645 }
13646 {
13647 PyThreadState* __tstate = wxPyBeginAllowThreads();
13648 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13649 wxPyEndAllowThreads(__tstate);
13650 if (PyErr_Occurred()) SWIG_fail;
13651 }
13652 {
13653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13654 }
13655 {
13656 if (temp3)
13657 delete arg3;
13658 }
13659 return resultobj;
13660 fail:
13661 {
13662 if (temp3)
13663 delete arg3;
13664 }
13665 return NULL;
13666 }
13667
13668
13669 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13670 PyObject *resultobj = 0;
13671 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13672 wxWindow *arg2 = (wxWindow *) 0 ;
13673 void *argp1 = 0 ;
13674 int res1 = 0 ;
13675 void *argp2 = 0 ;
13676 int res2 = 0 ;
13677 PyObject * obj0 = 0 ;
13678 PyObject * obj1 = 0 ;
13679 char * kwnames[] = {
13680 (char *) "self",(char *) "parent", NULL
13681 };
13682
13683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13685 if (!SWIG_IsOK(res1)) {
13686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13687 }
13688 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13689 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13690 if (!SWIG_IsOK(res2)) {
13691 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13692 }
13693 arg2 = reinterpret_cast< wxWindow * >(argp2);
13694 {
13695 PyThreadState* __tstate = wxPyBeginAllowThreads();
13696 (arg1)->SetDialogParent(arg2);
13697 wxPyEndAllowThreads(__tstate);
13698 if (PyErr_Occurred()) SWIG_fail;
13699 }
13700 resultobj = SWIG_Py_Void();
13701 return resultobj;
13702 fail:
13703 return NULL;
13704 }
13705
13706
13707 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13708 PyObject *resultobj = 0;
13709 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13710 wxString *arg2 = 0 ;
13711 void *argp1 = 0 ;
13712 int res1 = 0 ;
13713 bool temp2 = false ;
13714 PyObject * obj0 = 0 ;
13715 PyObject * obj1 = 0 ;
13716 char * kwnames[] = {
13717 (char *) "self",(char *) "title", NULL
13718 };
13719
13720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13722 if (!SWIG_IsOK(res1)) {
13723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13724 }
13725 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13726 {
13727 arg2 = wxString_in_helper(obj1);
13728 if (arg2 == NULL) SWIG_fail;
13729 temp2 = true;
13730 }
13731 {
13732 PyThreadState* __tstate = wxPyBeginAllowThreads();
13733 (arg1)->SetDialogTitle((wxString const &)*arg2);
13734 wxPyEndAllowThreads(__tstate);
13735 if (PyErr_Occurred()) SWIG_fail;
13736 }
13737 resultobj = SWIG_Py_Void();
13738 {
13739 if (temp2)
13740 delete arg2;
13741 }
13742 return resultobj;
13743 fail:
13744 {
13745 if (temp2)
13746 delete arg2;
13747 }
13748 return NULL;
13749 }
13750
13751
13752 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13753 PyObject *obj;
13754 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13755 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13756 return SWIG_Py_Void();
13757 }
13758
13759 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13760 return SWIG_Python_InitShadowInstance(args);
13761 }
13762
13763 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13764 PyObject *resultobj = 0;
13765 int arg1 ;
13766 int arg2 ;
13767 int arg3 ;
13768 int arg4 ;
13769 bool arg5 = (bool) false ;
13770 wxString const &arg6_defvalue = wxPyEmptyString ;
13771 wxString *arg6 = (wxString *) &arg6_defvalue ;
13772 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13773 wxFont *result = 0 ;
13774 int val1 ;
13775 int ecode1 = 0 ;
13776 int val2 ;
13777 int ecode2 = 0 ;
13778 int val3 ;
13779 int ecode3 = 0 ;
13780 int val4 ;
13781 int ecode4 = 0 ;
13782 bool val5 ;
13783 int ecode5 = 0 ;
13784 bool temp6 = false ;
13785 int val7 ;
13786 int ecode7 = 0 ;
13787 PyObject * obj0 = 0 ;
13788 PyObject * obj1 = 0 ;
13789 PyObject * obj2 = 0 ;
13790 PyObject * obj3 = 0 ;
13791 PyObject * obj4 = 0 ;
13792 PyObject * obj5 = 0 ;
13793 PyObject * obj6 = 0 ;
13794 char * kwnames[] = {
13795 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13796 };
13797
13798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13799 ecode1 = SWIG_AsVal_int(obj0, &val1);
13800 if (!SWIG_IsOK(ecode1)) {
13801 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13802 }
13803 arg1 = static_cast< int >(val1);
13804 ecode2 = SWIG_AsVal_int(obj1, &val2);
13805 if (!SWIG_IsOK(ecode2)) {
13806 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13807 }
13808 arg2 = static_cast< int >(val2);
13809 ecode3 = SWIG_AsVal_int(obj2, &val3);
13810 if (!SWIG_IsOK(ecode3)) {
13811 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13812 }
13813 arg3 = static_cast< int >(val3);
13814 ecode4 = SWIG_AsVal_int(obj3, &val4);
13815 if (!SWIG_IsOK(ecode4)) {
13816 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13817 }
13818 arg4 = static_cast< int >(val4);
13819 if (obj4) {
13820 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13821 if (!SWIG_IsOK(ecode5)) {
13822 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13823 }
13824 arg5 = static_cast< bool >(val5);
13825 }
13826 if (obj5) {
13827 {
13828 arg6 = wxString_in_helper(obj5);
13829 if (arg6 == NULL) SWIG_fail;
13830 temp6 = true;
13831 }
13832 }
13833 if (obj6) {
13834 ecode7 = SWIG_AsVal_int(obj6, &val7);
13835 if (!SWIG_IsOK(ecode7)) {
13836 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13837 }
13838 arg7 = static_cast< wxFontEncoding >(val7);
13839 }
13840 {
13841 if (!wxPyCheckForApp()) SWIG_fail;
13842 PyThreadState* __tstate = wxPyBeginAllowThreads();
13843 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13844 wxPyEndAllowThreads(__tstate);
13845 if (PyErr_Occurred()) SWIG_fail;
13846 }
13847 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13848 {
13849 if (temp6)
13850 delete arg6;
13851 }
13852 return resultobj;
13853 fail:
13854 {
13855 if (temp6)
13856 delete arg6;
13857 }
13858 return NULL;
13859 }
13860
13861
13862 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13863 PyObject *resultobj = 0;
13864 wxFont *arg1 = (wxFont *) 0 ;
13865 void *argp1 = 0 ;
13866 int res1 = 0 ;
13867 PyObject *swig_obj[1] ;
13868
13869 if (!args) SWIG_fail;
13870 swig_obj[0] = args;
13871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13872 if (!SWIG_IsOK(res1)) {
13873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13874 }
13875 arg1 = reinterpret_cast< wxFont * >(argp1);
13876 {
13877 PyThreadState* __tstate = wxPyBeginAllowThreads();
13878 delete arg1;
13879
13880 wxPyEndAllowThreads(__tstate);
13881 if (PyErr_Occurred()) SWIG_fail;
13882 }
13883 resultobj = SWIG_Py_Void();
13884 return resultobj;
13885 fail:
13886 return NULL;
13887 }
13888
13889
13890 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13891 PyObject *resultobj = 0;
13892 wxNativeFontInfo *arg1 = 0 ;
13893 wxFont *result = 0 ;
13894 void *argp1 = 0 ;
13895 int res1 = 0 ;
13896 PyObject * obj0 = 0 ;
13897 char * kwnames[] = {
13898 (char *) "info", NULL
13899 };
13900
13901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13902 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13903 if (!SWIG_IsOK(res1)) {
13904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13905 }
13906 if (!argp1) {
13907 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13908 }
13909 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13910 {
13911 if (!wxPyCheckForApp()) SWIG_fail;
13912 PyThreadState* __tstate = wxPyBeginAllowThreads();
13913 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13914 wxPyEndAllowThreads(__tstate);
13915 if (PyErr_Occurred()) SWIG_fail;
13916 }
13917 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13918 return resultobj;
13919 fail:
13920 return NULL;
13921 }
13922
13923
13924 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13925 PyObject *resultobj = 0;
13926 wxString *arg1 = 0 ;
13927 wxFont *result = 0 ;
13928 bool temp1 = false ;
13929 PyObject * obj0 = 0 ;
13930 char * kwnames[] = {
13931 (char *) "info", NULL
13932 };
13933
13934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13935 {
13936 arg1 = wxString_in_helper(obj0);
13937 if (arg1 == NULL) SWIG_fail;
13938 temp1 = true;
13939 }
13940 {
13941 if (!wxPyCheckForApp()) SWIG_fail;
13942 PyThreadState* __tstate = wxPyBeginAllowThreads();
13943 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13944 wxPyEndAllowThreads(__tstate);
13945 if (PyErr_Occurred()) SWIG_fail;
13946 }
13947 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13948 {
13949 if (temp1)
13950 delete arg1;
13951 }
13952 return resultobj;
13953 fail:
13954 {
13955 if (temp1)
13956 delete arg1;
13957 }
13958 return NULL;
13959 }
13960
13961
13962 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13963 PyObject *resultobj = 0;
13964 int arg1 ;
13965 wxFontFamily arg2 ;
13966 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13967 wxString const &arg4_defvalue = wxPyEmptyString ;
13968 wxString *arg4 = (wxString *) &arg4_defvalue ;
13969 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13970 wxFont *result = 0 ;
13971 int val1 ;
13972 int ecode1 = 0 ;
13973 int val2 ;
13974 int ecode2 = 0 ;
13975 int val3 ;
13976 int ecode3 = 0 ;
13977 bool temp4 = false ;
13978 int val5 ;
13979 int ecode5 = 0 ;
13980 PyObject * obj0 = 0 ;
13981 PyObject * obj1 = 0 ;
13982 PyObject * obj2 = 0 ;
13983 PyObject * obj3 = 0 ;
13984 PyObject * obj4 = 0 ;
13985 char * kwnames[] = {
13986 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13987 };
13988
13989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13990 ecode1 = SWIG_AsVal_int(obj0, &val1);
13991 if (!SWIG_IsOK(ecode1)) {
13992 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13993 }
13994 arg1 = static_cast< int >(val1);
13995 ecode2 = SWIG_AsVal_int(obj1, &val2);
13996 if (!SWIG_IsOK(ecode2)) {
13997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13998 }
13999 arg2 = static_cast< wxFontFamily >(val2);
14000 if (obj2) {
14001 ecode3 = SWIG_AsVal_int(obj2, &val3);
14002 if (!SWIG_IsOK(ecode3)) {
14003 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14004 }
14005 arg3 = static_cast< int >(val3);
14006 }
14007 if (obj3) {
14008 {
14009 arg4 = wxString_in_helper(obj3);
14010 if (arg4 == NULL) SWIG_fail;
14011 temp4 = true;
14012 }
14013 }
14014 if (obj4) {
14015 ecode5 = SWIG_AsVal_int(obj4, &val5);
14016 if (!SWIG_IsOK(ecode5)) {
14017 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14018 }
14019 arg5 = static_cast< wxFontEncoding >(val5);
14020 }
14021 {
14022 if (!wxPyCheckForApp()) SWIG_fail;
14023 PyThreadState* __tstate = wxPyBeginAllowThreads();
14024 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14025 wxPyEndAllowThreads(__tstate);
14026 if (PyErr_Occurred()) SWIG_fail;
14027 }
14028 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14029 {
14030 if (temp4)
14031 delete arg4;
14032 }
14033 return resultobj;
14034 fail:
14035 {
14036 if (temp4)
14037 delete arg4;
14038 }
14039 return NULL;
14040 }
14041
14042
14043 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14044 PyObject *resultobj = 0;
14045 wxSize *arg1 = 0 ;
14046 int arg2 ;
14047 int arg3 ;
14048 int arg4 ;
14049 bool arg5 = (bool) false ;
14050 wxString const &arg6_defvalue = wxEmptyString ;
14051 wxString *arg6 = (wxString *) &arg6_defvalue ;
14052 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14053 wxFont *result = 0 ;
14054 wxSize temp1 ;
14055 int val2 ;
14056 int ecode2 = 0 ;
14057 int val3 ;
14058 int ecode3 = 0 ;
14059 int val4 ;
14060 int ecode4 = 0 ;
14061 bool val5 ;
14062 int ecode5 = 0 ;
14063 bool temp6 = false ;
14064 int val7 ;
14065 int ecode7 = 0 ;
14066 PyObject * obj0 = 0 ;
14067 PyObject * obj1 = 0 ;
14068 PyObject * obj2 = 0 ;
14069 PyObject * obj3 = 0 ;
14070 PyObject * obj4 = 0 ;
14071 PyObject * obj5 = 0 ;
14072 PyObject * obj6 = 0 ;
14073 char * kwnames[] = {
14074 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14075 };
14076
14077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14078 {
14079 arg1 = &temp1;
14080 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14081 }
14082 ecode2 = SWIG_AsVal_int(obj1, &val2);
14083 if (!SWIG_IsOK(ecode2)) {
14084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14085 }
14086 arg2 = static_cast< int >(val2);
14087 ecode3 = SWIG_AsVal_int(obj2, &val3);
14088 if (!SWIG_IsOK(ecode3)) {
14089 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14090 }
14091 arg3 = static_cast< int >(val3);
14092 ecode4 = SWIG_AsVal_int(obj3, &val4);
14093 if (!SWIG_IsOK(ecode4)) {
14094 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14095 }
14096 arg4 = static_cast< int >(val4);
14097 if (obj4) {
14098 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14099 if (!SWIG_IsOK(ecode5)) {
14100 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14101 }
14102 arg5 = static_cast< bool >(val5);
14103 }
14104 if (obj5) {
14105 {
14106 arg6 = wxString_in_helper(obj5);
14107 if (arg6 == NULL) SWIG_fail;
14108 temp6 = true;
14109 }
14110 }
14111 if (obj6) {
14112 ecode7 = SWIG_AsVal_int(obj6, &val7);
14113 if (!SWIG_IsOK(ecode7)) {
14114 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14115 }
14116 arg7 = static_cast< wxFontEncoding >(val7);
14117 }
14118 {
14119 if (!wxPyCheckForApp()) SWIG_fail;
14120 PyThreadState* __tstate = wxPyBeginAllowThreads();
14121 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14122 wxPyEndAllowThreads(__tstate);
14123 if (PyErr_Occurred()) SWIG_fail;
14124 }
14125 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14126 {
14127 if (temp6)
14128 delete arg6;
14129 }
14130 return resultobj;
14131 fail:
14132 {
14133 if (temp6)
14134 delete arg6;
14135 }
14136 return NULL;
14137 }
14138
14139
14140 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14141 PyObject *resultobj = 0;
14142 wxSize *arg1 = 0 ;
14143 wxFontFamily arg2 ;
14144 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14145 wxString const &arg4_defvalue = wxEmptyString ;
14146 wxString *arg4 = (wxString *) &arg4_defvalue ;
14147 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14148 wxFont *result = 0 ;
14149 wxSize temp1 ;
14150 int val2 ;
14151 int ecode2 = 0 ;
14152 int val3 ;
14153 int ecode3 = 0 ;
14154 bool temp4 = false ;
14155 int val5 ;
14156 int ecode5 = 0 ;
14157 PyObject * obj0 = 0 ;
14158 PyObject * obj1 = 0 ;
14159 PyObject * obj2 = 0 ;
14160 PyObject * obj3 = 0 ;
14161 PyObject * obj4 = 0 ;
14162 char * kwnames[] = {
14163 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14164 };
14165
14166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14167 {
14168 arg1 = &temp1;
14169 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14170 }
14171 ecode2 = SWIG_AsVal_int(obj1, &val2);
14172 if (!SWIG_IsOK(ecode2)) {
14173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14174 }
14175 arg2 = static_cast< wxFontFamily >(val2);
14176 if (obj2) {
14177 ecode3 = SWIG_AsVal_int(obj2, &val3);
14178 if (!SWIG_IsOK(ecode3)) {
14179 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14180 }
14181 arg3 = static_cast< int >(val3);
14182 }
14183 if (obj3) {
14184 {
14185 arg4 = wxString_in_helper(obj3);
14186 if (arg4 == NULL) SWIG_fail;
14187 temp4 = true;
14188 }
14189 }
14190 if (obj4) {
14191 ecode5 = SWIG_AsVal_int(obj4, &val5);
14192 if (!SWIG_IsOK(ecode5)) {
14193 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14194 }
14195 arg5 = static_cast< wxFontEncoding >(val5);
14196 }
14197 {
14198 if (!wxPyCheckForApp()) SWIG_fail;
14199 PyThreadState* __tstate = wxPyBeginAllowThreads();
14200 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14201 wxPyEndAllowThreads(__tstate);
14202 if (PyErr_Occurred()) SWIG_fail;
14203 }
14204 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14205 {
14206 if (temp4)
14207 delete arg4;
14208 }
14209 return resultobj;
14210 fail:
14211 {
14212 if (temp4)
14213 delete arg4;
14214 }
14215 return NULL;
14216 }
14217
14218
14219 SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14220 PyObject *resultobj = 0;
14221 wxFont *arg1 = (wxFont *) 0 ;
14222 bool result;
14223 void *argp1 = 0 ;
14224 int res1 = 0 ;
14225 PyObject *swig_obj[1] ;
14226
14227 if (!args) SWIG_fail;
14228 swig_obj[0] = args;
14229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14230 if (!SWIG_IsOK(res1)) {
14231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
14232 }
14233 arg1 = reinterpret_cast< wxFont * >(argp1);
14234 {
14235 PyThreadState* __tstate = wxPyBeginAllowThreads();
14236 result = (bool)((wxFont const *)arg1)->IsOk();
14237 wxPyEndAllowThreads(__tstate);
14238 if (PyErr_Occurred()) SWIG_fail;
14239 }
14240 {
14241 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14242 }
14243 return resultobj;
14244 fail:
14245 return NULL;
14246 }
14247
14248
14249 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14250 PyObject *resultobj = 0;
14251 wxFont *arg1 = (wxFont *) 0 ;
14252 wxFont *arg2 = (wxFont *) 0 ;
14253 bool result;
14254 void *argp1 = 0 ;
14255 int res1 = 0 ;
14256 void *argp2 = 0 ;
14257 int res2 = 0 ;
14258 PyObject * obj0 = 0 ;
14259 PyObject * obj1 = 0 ;
14260 char * kwnames[] = {
14261 (char *) "self",(char *) "other", NULL
14262 };
14263
14264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14266 if (!SWIG_IsOK(res1)) {
14267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14268 }
14269 arg1 = reinterpret_cast< wxFont * >(argp1);
14270 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14271 if (!SWIG_IsOK(res2)) {
14272 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14273 }
14274 arg2 = reinterpret_cast< wxFont * >(argp2);
14275 {
14276 PyThreadState* __tstate = wxPyBeginAllowThreads();
14277 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14278 wxPyEndAllowThreads(__tstate);
14279 if (PyErr_Occurred()) SWIG_fail;
14280 }
14281 {
14282 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14283 }
14284 return resultobj;
14285 fail:
14286 return NULL;
14287 }
14288
14289
14290 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14291 PyObject *resultobj = 0;
14292 wxFont *arg1 = (wxFont *) 0 ;
14293 wxFont *arg2 = (wxFont *) 0 ;
14294 bool result;
14295 void *argp1 = 0 ;
14296 int res1 = 0 ;
14297 void *argp2 = 0 ;
14298 int res2 = 0 ;
14299 PyObject * obj0 = 0 ;
14300 PyObject * obj1 = 0 ;
14301 char * kwnames[] = {
14302 (char *) "self",(char *) "other", NULL
14303 };
14304
14305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14307 if (!SWIG_IsOK(res1)) {
14308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14309 }
14310 arg1 = reinterpret_cast< wxFont * >(argp1);
14311 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14312 if (!SWIG_IsOK(res2)) {
14313 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14314 }
14315 arg2 = reinterpret_cast< wxFont * >(argp2);
14316 {
14317 PyThreadState* __tstate = wxPyBeginAllowThreads();
14318 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14319 wxPyEndAllowThreads(__tstate);
14320 if (PyErr_Occurred()) SWIG_fail;
14321 }
14322 {
14323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14324 }
14325 return resultobj;
14326 fail:
14327 return NULL;
14328 }
14329
14330
14331 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14332 PyObject *resultobj = 0;
14333 wxFont *arg1 = (wxFont *) 0 ;
14334 int result;
14335 void *argp1 = 0 ;
14336 int res1 = 0 ;
14337 PyObject *swig_obj[1] ;
14338
14339 if (!args) SWIG_fail;
14340 swig_obj[0] = args;
14341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14342 if (!SWIG_IsOK(res1)) {
14343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14344 }
14345 arg1 = reinterpret_cast< wxFont * >(argp1);
14346 {
14347 PyThreadState* __tstate = wxPyBeginAllowThreads();
14348 result = (int)((wxFont const *)arg1)->GetPointSize();
14349 wxPyEndAllowThreads(__tstate);
14350 if (PyErr_Occurred()) SWIG_fail;
14351 }
14352 resultobj = SWIG_From_int(static_cast< int >(result));
14353 return resultobj;
14354 fail:
14355 return NULL;
14356 }
14357
14358
14359 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14360 PyObject *resultobj = 0;
14361 wxFont *arg1 = (wxFont *) 0 ;
14362 wxSize result;
14363 void *argp1 = 0 ;
14364 int res1 = 0 ;
14365 PyObject *swig_obj[1] ;
14366
14367 if (!args) SWIG_fail;
14368 swig_obj[0] = args;
14369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14370 if (!SWIG_IsOK(res1)) {
14371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14372 }
14373 arg1 = reinterpret_cast< wxFont * >(argp1);
14374 {
14375 PyThreadState* __tstate = wxPyBeginAllowThreads();
14376 result = ((wxFont const *)arg1)->GetPixelSize();
14377 wxPyEndAllowThreads(__tstate);
14378 if (PyErr_Occurred()) SWIG_fail;
14379 }
14380 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14381 return resultobj;
14382 fail:
14383 return NULL;
14384 }
14385
14386
14387 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14388 PyObject *resultobj = 0;
14389 wxFont *arg1 = (wxFont *) 0 ;
14390 bool result;
14391 void *argp1 = 0 ;
14392 int res1 = 0 ;
14393 PyObject *swig_obj[1] ;
14394
14395 if (!args) SWIG_fail;
14396 swig_obj[0] = args;
14397 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14398 if (!SWIG_IsOK(res1)) {
14399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14400 }
14401 arg1 = reinterpret_cast< wxFont * >(argp1);
14402 {
14403 PyThreadState* __tstate = wxPyBeginAllowThreads();
14404 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14405 wxPyEndAllowThreads(__tstate);
14406 if (PyErr_Occurred()) SWIG_fail;
14407 }
14408 {
14409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14410 }
14411 return resultobj;
14412 fail:
14413 return NULL;
14414 }
14415
14416
14417 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14418 PyObject *resultobj = 0;
14419 wxFont *arg1 = (wxFont *) 0 ;
14420 int result;
14421 void *argp1 = 0 ;
14422 int res1 = 0 ;
14423 PyObject *swig_obj[1] ;
14424
14425 if (!args) SWIG_fail;
14426 swig_obj[0] = args;
14427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14428 if (!SWIG_IsOK(res1)) {
14429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14430 }
14431 arg1 = reinterpret_cast< wxFont * >(argp1);
14432 {
14433 PyThreadState* __tstate = wxPyBeginAllowThreads();
14434 result = (int)((wxFont const *)arg1)->GetFamily();
14435 wxPyEndAllowThreads(__tstate);
14436 if (PyErr_Occurred()) SWIG_fail;
14437 }
14438 resultobj = SWIG_From_int(static_cast< int >(result));
14439 return resultobj;
14440 fail:
14441 return NULL;
14442 }
14443
14444
14445 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14446 PyObject *resultobj = 0;
14447 wxFont *arg1 = (wxFont *) 0 ;
14448 int result;
14449 void *argp1 = 0 ;
14450 int res1 = 0 ;
14451 PyObject *swig_obj[1] ;
14452
14453 if (!args) SWIG_fail;
14454 swig_obj[0] = args;
14455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14456 if (!SWIG_IsOK(res1)) {
14457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14458 }
14459 arg1 = reinterpret_cast< wxFont * >(argp1);
14460 {
14461 PyThreadState* __tstate = wxPyBeginAllowThreads();
14462 result = (int)((wxFont const *)arg1)->GetStyle();
14463 wxPyEndAllowThreads(__tstate);
14464 if (PyErr_Occurred()) SWIG_fail;
14465 }
14466 resultobj = SWIG_From_int(static_cast< int >(result));
14467 return resultobj;
14468 fail:
14469 return NULL;
14470 }
14471
14472
14473 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14474 PyObject *resultobj = 0;
14475 wxFont *arg1 = (wxFont *) 0 ;
14476 int result;
14477 void *argp1 = 0 ;
14478 int res1 = 0 ;
14479 PyObject *swig_obj[1] ;
14480
14481 if (!args) SWIG_fail;
14482 swig_obj[0] = args;
14483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14484 if (!SWIG_IsOK(res1)) {
14485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14486 }
14487 arg1 = reinterpret_cast< wxFont * >(argp1);
14488 {
14489 PyThreadState* __tstate = wxPyBeginAllowThreads();
14490 result = (int)((wxFont const *)arg1)->GetWeight();
14491 wxPyEndAllowThreads(__tstate);
14492 if (PyErr_Occurred()) SWIG_fail;
14493 }
14494 resultobj = SWIG_From_int(static_cast< int >(result));
14495 return resultobj;
14496 fail:
14497 return NULL;
14498 }
14499
14500
14501 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14502 PyObject *resultobj = 0;
14503 wxFont *arg1 = (wxFont *) 0 ;
14504 bool result;
14505 void *argp1 = 0 ;
14506 int res1 = 0 ;
14507 PyObject *swig_obj[1] ;
14508
14509 if (!args) SWIG_fail;
14510 swig_obj[0] = args;
14511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14512 if (!SWIG_IsOK(res1)) {
14513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14514 }
14515 arg1 = reinterpret_cast< wxFont * >(argp1);
14516 {
14517 PyThreadState* __tstate = wxPyBeginAllowThreads();
14518 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14519 wxPyEndAllowThreads(__tstate);
14520 if (PyErr_Occurred()) SWIG_fail;
14521 }
14522 {
14523 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14524 }
14525 return resultobj;
14526 fail:
14527 return NULL;
14528 }
14529
14530
14531 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14532 PyObject *resultobj = 0;
14533 wxFont *arg1 = (wxFont *) 0 ;
14534 wxString result;
14535 void *argp1 = 0 ;
14536 int res1 = 0 ;
14537 PyObject *swig_obj[1] ;
14538
14539 if (!args) SWIG_fail;
14540 swig_obj[0] = args;
14541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14542 if (!SWIG_IsOK(res1)) {
14543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14544 }
14545 arg1 = reinterpret_cast< wxFont * >(argp1);
14546 {
14547 PyThreadState* __tstate = wxPyBeginAllowThreads();
14548 result = ((wxFont const *)arg1)->GetFaceName();
14549 wxPyEndAllowThreads(__tstate);
14550 if (PyErr_Occurred()) SWIG_fail;
14551 }
14552 {
14553 #if wxUSE_UNICODE
14554 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14555 #else
14556 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14557 #endif
14558 }
14559 return resultobj;
14560 fail:
14561 return NULL;
14562 }
14563
14564
14565 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14566 PyObject *resultobj = 0;
14567 wxFont *arg1 = (wxFont *) 0 ;
14568 wxFontEncoding result;
14569 void *argp1 = 0 ;
14570 int res1 = 0 ;
14571 PyObject *swig_obj[1] ;
14572
14573 if (!args) SWIG_fail;
14574 swig_obj[0] = args;
14575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14576 if (!SWIG_IsOK(res1)) {
14577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14578 }
14579 arg1 = reinterpret_cast< wxFont * >(argp1);
14580 {
14581 PyThreadState* __tstate = wxPyBeginAllowThreads();
14582 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14583 wxPyEndAllowThreads(__tstate);
14584 if (PyErr_Occurred()) SWIG_fail;
14585 }
14586 resultobj = SWIG_From_int(static_cast< int >(result));
14587 return resultobj;
14588 fail:
14589 return NULL;
14590 }
14591
14592
14593 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14594 PyObject *resultobj = 0;
14595 wxFont *arg1 = (wxFont *) 0 ;
14596 wxNativeFontInfo *result = 0 ;
14597 void *argp1 = 0 ;
14598 int res1 = 0 ;
14599 PyObject *swig_obj[1] ;
14600
14601 if (!args) SWIG_fail;
14602 swig_obj[0] = args;
14603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14604 if (!SWIG_IsOK(res1)) {
14605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14606 }
14607 arg1 = reinterpret_cast< wxFont * >(argp1);
14608 {
14609 PyThreadState* __tstate = wxPyBeginAllowThreads();
14610 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14611 wxPyEndAllowThreads(__tstate);
14612 if (PyErr_Occurred()) SWIG_fail;
14613 }
14614 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14615 return resultobj;
14616 fail:
14617 return NULL;
14618 }
14619
14620
14621 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14622 PyObject *resultobj = 0;
14623 wxFont *arg1 = (wxFont *) 0 ;
14624 bool result;
14625 void *argp1 = 0 ;
14626 int res1 = 0 ;
14627 PyObject *swig_obj[1] ;
14628
14629 if (!args) SWIG_fail;
14630 swig_obj[0] = args;
14631 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14632 if (!SWIG_IsOK(res1)) {
14633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14634 }
14635 arg1 = reinterpret_cast< wxFont * >(argp1);
14636 {
14637 PyThreadState* __tstate = wxPyBeginAllowThreads();
14638 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14639 wxPyEndAllowThreads(__tstate);
14640 if (PyErr_Occurred()) SWIG_fail;
14641 }
14642 {
14643 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14644 }
14645 return resultobj;
14646 fail:
14647 return NULL;
14648 }
14649
14650
14651 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14652 PyObject *resultobj = 0;
14653 wxFont *arg1 = (wxFont *) 0 ;
14654 wxString result;
14655 void *argp1 = 0 ;
14656 int res1 = 0 ;
14657 PyObject *swig_obj[1] ;
14658
14659 if (!args) SWIG_fail;
14660 swig_obj[0] = args;
14661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14662 if (!SWIG_IsOK(res1)) {
14663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14664 }
14665 arg1 = reinterpret_cast< wxFont * >(argp1);
14666 {
14667 PyThreadState* __tstate = wxPyBeginAllowThreads();
14668 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14669 wxPyEndAllowThreads(__tstate);
14670 if (PyErr_Occurred()) SWIG_fail;
14671 }
14672 {
14673 #if wxUSE_UNICODE
14674 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14675 #else
14676 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14677 #endif
14678 }
14679 return resultobj;
14680 fail:
14681 return NULL;
14682 }
14683
14684
14685 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14686 PyObject *resultobj = 0;
14687 wxFont *arg1 = (wxFont *) 0 ;
14688 wxString result;
14689 void *argp1 = 0 ;
14690 int res1 = 0 ;
14691 PyObject *swig_obj[1] ;
14692
14693 if (!args) SWIG_fail;
14694 swig_obj[0] = args;
14695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14696 if (!SWIG_IsOK(res1)) {
14697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14698 }
14699 arg1 = reinterpret_cast< wxFont * >(argp1);
14700 {
14701 PyThreadState* __tstate = wxPyBeginAllowThreads();
14702 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14703 wxPyEndAllowThreads(__tstate);
14704 if (PyErr_Occurred()) SWIG_fail;
14705 }
14706 {
14707 #if wxUSE_UNICODE
14708 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14709 #else
14710 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14711 #endif
14712 }
14713 return resultobj;
14714 fail:
14715 return NULL;
14716 }
14717
14718
14719 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14720 PyObject *resultobj = 0;
14721 wxFont *arg1 = (wxFont *) 0 ;
14722 int arg2 ;
14723 void *argp1 = 0 ;
14724 int res1 = 0 ;
14725 int val2 ;
14726 int ecode2 = 0 ;
14727 PyObject * obj0 = 0 ;
14728 PyObject * obj1 = 0 ;
14729 char * kwnames[] = {
14730 (char *) "self",(char *) "pointSize", NULL
14731 };
14732
14733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14735 if (!SWIG_IsOK(res1)) {
14736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14737 }
14738 arg1 = reinterpret_cast< wxFont * >(argp1);
14739 ecode2 = SWIG_AsVal_int(obj1, &val2);
14740 if (!SWIG_IsOK(ecode2)) {
14741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14742 }
14743 arg2 = static_cast< int >(val2);
14744 {
14745 PyThreadState* __tstate = wxPyBeginAllowThreads();
14746 (arg1)->SetPointSize(arg2);
14747 wxPyEndAllowThreads(__tstate);
14748 if (PyErr_Occurred()) SWIG_fail;
14749 }
14750 resultobj = SWIG_Py_Void();
14751 return resultobj;
14752 fail:
14753 return NULL;
14754 }
14755
14756
14757 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14758 PyObject *resultobj = 0;
14759 wxFont *arg1 = (wxFont *) 0 ;
14760 wxSize *arg2 = 0 ;
14761 void *argp1 = 0 ;
14762 int res1 = 0 ;
14763 wxSize temp2 ;
14764 PyObject * obj0 = 0 ;
14765 PyObject * obj1 = 0 ;
14766 char * kwnames[] = {
14767 (char *) "self",(char *) "pixelSize", NULL
14768 };
14769
14770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14772 if (!SWIG_IsOK(res1)) {
14773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14774 }
14775 arg1 = reinterpret_cast< wxFont * >(argp1);
14776 {
14777 arg2 = &temp2;
14778 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14779 }
14780 {
14781 PyThreadState* __tstate = wxPyBeginAllowThreads();
14782 (arg1)->SetPixelSize((wxSize const &)*arg2);
14783 wxPyEndAllowThreads(__tstate);
14784 if (PyErr_Occurred()) SWIG_fail;
14785 }
14786 resultobj = SWIG_Py_Void();
14787 return resultobj;
14788 fail:
14789 return NULL;
14790 }
14791
14792
14793 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14794 PyObject *resultobj = 0;
14795 wxFont *arg1 = (wxFont *) 0 ;
14796 int arg2 ;
14797 void *argp1 = 0 ;
14798 int res1 = 0 ;
14799 int val2 ;
14800 int ecode2 = 0 ;
14801 PyObject * obj0 = 0 ;
14802 PyObject * obj1 = 0 ;
14803 char * kwnames[] = {
14804 (char *) "self",(char *) "family", NULL
14805 };
14806
14807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14809 if (!SWIG_IsOK(res1)) {
14810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14811 }
14812 arg1 = reinterpret_cast< wxFont * >(argp1);
14813 ecode2 = SWIG_AsVal_int(obj1, &val2);
14814 if (!SWIG_IsOK(ecode2)) {
14815 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14816 }
14817 arg2 = static_cast< int >(val2);
14818 {
14819 PyThreadState* __tstate = wxPyBeginAllowThreads();
14820 (arg1)->SetFamily(arg2);
14821 wxPyEndAllowThreads(__tstate);
14822 if (PyErr_Occurred()) SWIG_fail;
14823 }
14824 resultobj = SWIG_Py_Void();
14825 return resultobj;
14826 fail:
14827 return NULL;
14828 }
14829
14830
14831 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14832 PyObject *resultobj = 0;
14833 wxFont *arg1 = (wxFont *) 0 ;
14834 int arg2 ;
14835 void *argp1 = 0 ;
14836 int res1 = 0 ;
14837 int val2 ;
14838 int ecode2 = 0 ;
14839 PyObject * obj0 = 0 ;
14840 PyObject * obj1 = 0 ;
14841 char * kwnames[] = {
14842 (char *) "self",(char *) "style", NULL
14843 };
14844
14845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14847 if (!SWIG_IsOK(res1)) {
14848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14849 }
14850 arg1 = reinterpret_cast< wxFont * >(argp1);
14851 ecode2 = SWIG_AsVal_int(obj1, &val2);
14852 if (!SWIG_IsOK(ecode2)) {
14853 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14854 }
14855 arg2 = static_cast< int >(val2);
14856 {
14857 PyThreadState* __tstate = wxPyBeginAllowThreads();
14858 (arg1)->SetStyle(arg2);
14859 wxPyEndAllowThreads(__tstate);
14860 if (PyErr_Occurred()) SWIG_fail;
14861 }
14862 resultobj = SWIG_Py_Void();
14863 return resultobj;
14864 fail:
14865 return NULL;
14866 }
14867
14868
14869 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14870 PyObject *resultobj = 0;
14871 wxFont *arg1 = (wxFont *) 0 ;
14872 int arg2 ;
14873 void *argp1 = 0 ;
14874 int res1 = 0 ;
14875 int val2 ;
14876 int ecode2 = 0 ;
14877 PyObject * obj0 = 0 ;
14878 PyObject * obj1 = 0 ;
14879 char * kwnames[] = {
14880 (char *) "self",(char *) "weight", NULL
14881 };
14882
14883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14885 if (!SWIG_IsOK(res1)) {
14886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14887 }
14888 arg1 = reinterpret_cast< wxFont * >(argp1);
14889 ecode2 = SWIG_AsVal_int(obj1, &val2);
14890 if (!SWIG_IsOK(ecode2)) {
14891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14892 }
14893 arg2 = static_cast< int >(val2);
14894 {
14895 PyThreadState* __tstate = wxPyBeginAllowThreads();
14896 (arg1)->SetWeight(arg2);
14897 wxPyEndAllowThreads(__tstate);
14898 if (PyErr_Occurred()) SWIG_fail;
14899 }
14900 resultobj = SWIG_Py_Void();
14901 return resultobj;
14902 fail:
14903 return NULL;
14904 }
14905
14906
14907 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14908 PyObject *resultobj = 0;
14909 wxFont *arg1 = (wxFont *) 0 ;
14910 wxString *arg2 = 0 ;
14911 bool result;
14912 void *argp1 = 0 ;
14913 int res1 = 0 ;
14914 bool temp2 = false ;
14915 PyObject * obj0 = 0 ;
14916 PyObject * obj1 = 0 ;
14917 char * kwnames[] = {
14918 (char *) "self",(char *) "faceName", NULL
14919 };
14920
14921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14923 if (!SWIG_IsOK(res1)) {
14924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14925 }
14926 arg1 = reinterpret_cast< wxFont * >(argp1);
14927 {
14928 arg2 = wxString_in_helper(obj1);
14929 if (arg2 == NULL) SWIG_fail;
14930 temp2 = true;
14931 }
14932 {
14933 PyThreadState* __tstate = wxPyBeginAllowThreads();
14934 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
14935 wxPyEndAllowThreads(__tstate);
14936 if (PyErr_Occurred()) SWIG_fail;
14937 }
14938 {
14939 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14940 }
14941 {
14942 if (temp2)
14943 delete arg2;
14944 }
14945 return resultobj;
14946 fail:
14947 {
14948 if (temp2)
14949 delete arg2;
14950 }
14951 return NULL;
14952 }
14953
14954
14955 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14956 PyObject *resultobj = 0;
14957 wxFont *arg1 = (wxFont *) 0 ;
14958 bool arg2 ;
14959 void *argp1 = 0 ;
14960 int res1 = 0 ;
14961 bool val2 ;
14962 int ecode2 = 0 ;
14963 PyObject * obj0 = 0 ;
14964 PyObject * obj1 = 0 ;
14965 char * kwnames[] = {
14966 (char *) "self",(char *) "underlined", NULL
14967 };
14968
14969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14971 if (!SWIG_IsOK(res1)) {
14972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14973 }
14974 arg1 = reinterpret_cast< wxFont * >(argp1);
14975 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14976 if (!SWIG_IsOK(ecode2)) {
14977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14978 }
14979 arg2 = static_cast< bool >(val2);
14980 {
14981 PyThreadState* __tstate = wxPyBeginAllowThreads();
14982 (arg1)->SetUnderlined(arg2);
14983 wxPyEndAllowThreads(__tstate);
14984 if (PyErr_Occurred()) SWIG_fail;
14985 }
14986 resultobj = SWIG_Py_Void();
14987 return resultobj;
14988 fail:
14989 return NULL;
14990 }
14991
14992
14993 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14994 PyObject *resultobj = 0;
14995 wxFont *arg1 = (wxFont *) 0 ;
14996 wxFontEncoding arg2 ;
14997 void *argp1 = 0 ;
14998 int res1 = 0 ;
14999 int val2 ;
15000 int ecode2 = 0 ;
15001 PyObject * obj0 = 0 ;
15002 PyObject * obj1 = 0 ;
15003 char * kwnames[] = {
15004 (char *) "self",(char *) "encoding", NULL
15005 };
15006
15007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15009 if (!SWIG_IsOK(res1)) {
15010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15011 }
15012 arg1 = reinterpret_cast< wxFont * >(argp1);
15013 ecode2 = SWIG_AsVal_int(obj1, &val2);
15014 if (!SWIG_IsOK(ecode2)) {
15015 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15016 }
15017 arg2 = static_cast< wxFontEncoding >(val2);
15018 {
15019 PyThreadState* __tstate = wxPyBeginAllowThreads();
15020 (arg1)->SetEncoding(arg2);
15021 wxPyEndAllowThreads(__tstate);
15022 if (PyErr_Occurred()) SWIG_fail;
15023 }
15024 resultobj = SWIG_Py_Void();
15025 return resultobj;
15026 fail:
15027 return NULL;
15028 }
15029
15030
15031 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15032 PyObject *resultobj = 0;
15033 wxFont *arg1 = (wxFont *) 0 ;
15034 wxNativeFontInfo *arg2 = 0 ;
15035 void *argp1 = 0 ;
15036 int res1 = 0 ;
15037 void *argp2 = 0 ;
15038 int res2 = 0 ;
15039 PyObject * obj0 = 0 ;
15040 PyObject * obj1 = 0 ;
15041 char * kwnames[] = {
15042 (char *) "self",(char *) "info", NULL
15043 };
15044
15045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15047 if (!SWIG_IsOK(res1)) {
15048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15049 }
15050 arg1 = reinterpret_cast< wxFont * >(argp1);
15051 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15052 if (!SWIG_IsOK(res2)) {
15053 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15054 }
15055 if (!argp2) {
15056 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15057 }
15058 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15059 {
15060 PyThreadState* __tstate = wxPyBeginAllowThreads();
15061 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15062 wxPyEndAllowThreads(__tstate);
15063 if (PyErr_Occurred()) SWIG_fail;
15064 }
15065 resultobj = SWIG_Py_Void();
15066 return resultobj;
15067 fail:
15068 return NULL;
15069 }
15070
15071
15072 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15073 PyObject *resultobj = 0;
15074 wxFont *arg1 = (wxFont *) 0 ;
15075 wxString *arg2 = 0 ;
15076 bool result;
15077 void *argp1 = 0 ;
15078 int res1 = 0 ;
15079 bool temp2 = false ;
15080 PyObject * obj0 = 0 ;
15081 PyObject * obj1 = 0 ;
15082 char * kwnames[] = {
15083 (char *) "self",(char *) "info", NULL
15084 };
15085
15086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15088 if (!SWIG_IsOK(res1)) {
15089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15090 }
15091 arg1 = reinterpret_cast< wxFont * >(argp1);
15092 {
15093 arg2 = wxString_in_helper(obj1);
15094 if (arg2 == NULL) SWIG_fail;
15095 temp2 = true;
15096 }
15097 {
15098 PyThreadState* __tstate = wxPyBeginAllowThreads();
15099 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
15100 wxPyEndAllowThreads(__tstate);
15101 if (PyErr_Occurred()) SWIG_fail;
15102 }
15103 {
15104 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15105 }
15106 {
15107 if (temp2)
15108 delete arg2;
15109 }
15110 return resultobj;
15111 fail:
15112 {
15113 if (temp2)
15114 delete arg2;
15115 }
15116 return NULL;
15117 }
15118
15119
15120 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15121 PyObject *resultobj = 0;
15122 wxFont *arg1 = (wxFont *) 0 ;
15123 wxString *arg2 = 0 ;
15124 bool result;
15125 void *argp1 = 0 ;
15126 int res1 = 0 ;
15127 bool temp2 = false ;
15128 PyObject * obj0 = 0 ;
15129 PyObject * obj1 = 0 ;
15130 char * kwnames[] = {
15131 (char *) "self",(char *) "info", NULL
15132 };
15133
15134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15136 if (!SWIG_IsOK(res1)) {
15137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15138 }
15139 arg1 = reinterpret_cast< wxFont * >(argp1);
15140 {
15141 arg2 = wxString_in_helper(obj1);
15142 if (arg2 == NULL) SWIG_fail;
15143 temp2 = true;
15144 }
15145 {
15146 PyThreadState* __tstate = wxPyBeginAllowThreads();
15147 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
15148 wxPyEndAllowThreads(__tstate);
15149 if (PyErr_Occurred()) SWIG_fail;
15150 }
15151 {
15152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15153 }
15154 {
15155 if (temp2)
15156 delete arg2;
15157 }
15158 return resultobj;
15159 fail:
15160 {
15161 if (temp2)
15162 delete arg2;
15163 }
15164 return NULL;
15165 }
15166
15167
15168 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15169 PyObject *resultobj = 0;
15170 wxFont *arg1 = (wxFont *) 0 ;
15171 wxString result;
15172 void *argp1 = 0 ;
15173 int res1 = 0 ;
15174 PyObject *swig_obj[1] ;
15175
15176 if (!args) SWIG_fail;
15177 swig_obj[0] = args;
15178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15179 if (!SWIG_IsOK(res1)) {
15180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15181 }
15182 arg1 = reinterpret_cast< wxFont * >(argp1);
15183 {
15184 PyThreadState* __tstate = wxPyBeginAllowThreads();
15185 result = ((wxFont const *)arg1)->GetFamilyString();
15186 wxPyEndAllowThreads(__tstate);
15187 if (PyErr_Occurred()) SWIG_fail;
15188 }
15189 {
15190 #if wxUSE_UNICODE
15191 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15192 #else
15193 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15194 #endif
15195 }
15196 return resultobj;
15197 fail:
15198 return NULL;
15199 }
15200
15201
15202 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15203 PyObject *resultobj = 0;
15204 wxFont *arg1 = (wxFont *) 0 ;
15205 wxString result;
15206 void *argp1 = 0 ;
15207 int res1 = 0 ;
15208 PyObject *swig_obj[1] ;
15209
15210 if (!args) SWIG_fail;
15211 swig_obj[0] = args;
15212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15213 if (!SWIG_IsOK(res1)) {
15214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15215 }
15216 arg1 = reinterpret_cast< wxFont * >(argp1);
15217 {
15218 PyThreadState* __tstate = wxPyBeginAllowThreads();
15219 result = ((wxFont const *)arg1)->GetStyleString();
15220 wxPyEndAllowThreads(__tstate);
15221 if (PyErr_Occurred()) SWIG_fail;
15222 }
15223 {
15224 #if wxUSE_UNICODE
15225 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15226 #else
15227 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15228 #endif
15229 }
15230 return resultobj;
15231 fail:
15232 return NULL;
15233 }
15234
15235
15236 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15237 PyObject *resultobj = 0;
15238 wxFont *arg1 = (wxFont *) 0 ;
15239 wxString result;
15240 void *argp1 = 0 ;
15241 int res1 = 0 ;
15242 PyObject *swig_obj[1] ;
15243
15244 if (!args) SWIG_fail;
15245 swig_obj[0] = args;
15246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15247 if (!SWIG_IsOK(res1)) {
15248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15249 }
15250 arg1 = reinterpret_cast< wxFont * >(argp1);
15251 {
15252 PyThreadState* __tstate = wxPyBeginAllowThreads();
15253 result = ((wxFont const *)arg1)->GetWeightString();
15254 wxPyEndAllowThreads(__tstate);
15255 if (PyErr_Occurred()) SWIG_fail;
15256 }
15257 {
15258 #if wxUSE_UNICODE
15259 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15260 #else
15261 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15262 #endif
15263 }
15264 return resultobj;
15265 fail:
15266 return NULL;
15267 }
15268
15269
15270 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15271 PyObject *resultobj = 0;
15272 wxFont *arg1 = (wxFont *) 0 ;
15273 bool arg2 = (bool) true ;
15274 void *argp1 = 0 ;
15275 int res1 = 0 ;
15276 bool val2 ;
15277 int ecode2 = 0 ;
15278 PyObject * obj0 = 0 ;
15279 PyObject * obj1 = 0 ;
15280 char * kwnames[] = {
15281 (char *) "self",(char *) "no", NULL
15282 };
15283
15284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15286 if (!SWIG_IsOK(res1)) {
15287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15288 }
15289 arg1 = reinterpret_cast< wxFont * >(argp1);
15290 if (obj1) {
15291 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15292 if (!SWIG_IsOK(ecode2)) {
15293 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15294 }
15295 arg2 = static_cast< bool >(val2);
15296 }
15297 {
15298 PyThreadState* __tstate = wxPyBeginAllowThreads();
15299 (arg1)->SetNoAntiAliasing(arg2);
15300 wxPyEndAllowThreads(__tstate);
15301 if (PyErr_Occurred()) SWIG_fail;
15302 }
15303 resultobj = SWIG_Py_Void();
15304 return resultobj;
15305 fail:
15306 return NULL;
15307 }
15308
15309
15310 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15311 PyObject *resultobj = 0;
15312 wxFont *arg1 = (wxFont *) 0 ;
15313 bool result;
15314 void *argp1 = 0 ;
15315 int res1 = 0 ;
15316 PyObject *swig_obj[1] ;
15317
15318 if (!args) SWIG_fail;
15319 swig_obj[0] = args;
15320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15321 if (!SWIG_IsOK(res1)) {
15322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15323 }
15324 arg1 = reinterpret_cast< wxFont * >(argp1);
15325 {
15326 PyThreadState* __tstate = wxPyBeginAllowThreads();
15327 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15328 wxPyEndAllowThreads(__tstate);
15329 if (PyErr_Occurred()) SWIG_fail;
15330 }
15331 {
15332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15333 }
15334 return resultobj;
15335 fail:
15336 return NULL;
15337 }
15338
15339
15340 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15341 PyObject *resultobj = 0;
15342 wxFontEncoding result;
15343
15344 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15345 {
15346 if (!wxPyCheckForApp()) SWIG_fail;
15347 PyThreadState* __tstate = wxPyBeginAllowThreads();
15348 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15349 wxPyEndAllowThreads(__tstate);
15350 if (PyErr_Occurred()) SWIG_fail;
15351 }
15352 resultobj = SWIG_From_int(static_cast< int >(result));
15353 return resultobj;
15354 fail:
15355 return NULL;
15356 }
15357
15358
15359 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15360 PyObject *resultobj = 0;
15361 wxFontEncoding arg1 ;
15362 int val1 ;
15363 int ecode1 = 0 ;
15364 PyObject * obj0 = 0 ;
15365 char * kwnames[] = {
15366 (char *) "encoding", NULL
15367 };
15368
15369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15370 ecode1 = SWIG_AsVal_int(obj0, &val1);
15371 if (!SWIG_IsOK(ecode1)) {
15372 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15373 }
15374 arg1 = static_cast< wxFontEncoding >(val1);
15375 {
15376 if (!wxPyCheckForApp()) SWIG_fail;
15377 PyThreadState* __tstate = wxPyBeginAllowThreads();
15378 wxFont::SetDefaultEncoding(arg1);
15379 wxPyEndAllowThreads(__tstate);
15380 if (PyErr_Occurred()) SWIG_fail;
15381 }
15382 resultobj = SWIG_Py_Void();
15383 return resultobj;
15384 fail:
15385 return NULL;
15386 }
15387
15388
15389 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15390 PyObject *obj;
15391 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15392 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15393 return SWIG_Py_Void();
15394 }
15395
15396 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15397 return SWIG_Python_InitShadowInstance(args);
15398 }
15399
15400 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15401 PyObject *resultobj = 0;
15402 wxPyFontEnumerator *result = 0 ;
15403
15404 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15405 {
15406 if (!wxPyCheckForApp()) SWIG_fail;
15407 PyThreadState* __tstate = wxPyBeginAllowThreads();
15408 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15409 wxPyEndAllowThreads(__tstate);
15410 if (PyErr_Occurred()) SWIG_fail;
15411 }
15412 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15413 return resultobj;
15414 fail:
15415 return NULL;
15416 }
15417
15418
15419 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15420 PyObject *resultobj = 0;
15421 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15422 void *argp1 = 0 ;
15423 int res1 = 0 ;
15424 PyObject *swig_obj[1] ;
15425
15426 if (!args) SWIG_fail;
15427 swig_obj[0] = args;
15428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15429 if (!SWIG_IsOK(res1)) {
15430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15431 }
15432 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15433 {
15434 PyThreadState* __tstate = wxPyBeginAllowThreads();
15435 delete arg1;
15436
15437 wxPyEndAllowThreads(__tstate);
15438 if (PyErr_Occurred()) SWIG_fail;
15439 }
15440 resultobj = SWIG_Py_Void();
15441 return resultobj;
15442 fail:
15443 return NULL;
15444 }
15445
15446
15447 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15448 PyObject *resultobj = 0;
15449 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15450 PyObject *arg2 = (PyObject *) 0 ;
15451 PyObject *arg3 = (PyObject *) 0 ;
15452 int arg4 = (int) 0 ;
15453 void *argp1 = 0 ;
15454 int res1 = 0 ;
15455 int val4 ;
15456 int ecode4 = 0 ;
15457 PyObject * obj0 = 0 ;
15458 PyObject * obj1 = 0 ;
15459 PyObject * obj2 = 0 ;
15460 PyObject * obj3 = 0 ;
15461 char * kwnames[] = {
15462 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15463 };
15464
15465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15467 if (!SWIG_IsOK(res1)) {
15468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15469 }
15470 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15471 arg2 = obj1;
15472 arg3 = obj2;
15473 if (obj3) {
15474 ecode4 = SWIG_AsVal_int(obj3, &val4);
15475 if (!SWIG_IsOK(ecode4)) {
15476 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "int""'");
15477 }
15478 arg4 = static_cast< int >(val4);
15479 }
15480 {
15481 PyThreadState* __tstate = wxPyBeginAllowThreads();
15482 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15483 wxPyEndAllowThreads(__tstate);
15484 if (PyErr_Occurred()) SWIG_fail;
15485 }
15486 resultobj = SWIG_Py_Void();
15487 return resultobj;
15488 fail:
15489 return NULL;
15490 }
15491
15492
15493 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15494 PyObject *resultobj = 0;
15495 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15496 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15497 bool arg3 = (bool) false ;
15498 bool result;
15499 void *argp1 = 0 ;
15500 int res1 = 0 ;
15501 int val2 ;
15502 int ecode2 = 0 ;
15503 bool val3 ;
15504 int ecode3 = 0 ;
15505 PyObject * obj0 = 0 ;
15506 PyObject * obj1 = 0 ;
15507 PyObject * obj2 = 0 ;
15508 char * kwnames[] = {
15509 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15510 };
15511
15512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15514 if (!SWIG_IsOK(res1)) {
15515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15516 }
15517 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15518 if (obj1) {
15519 ecode2 = SWIG_AsVal_int(obj1, &val2);
15520 if (!SWIG_IsOK(ecode2)) {
15521 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15522 }
15523 arg2 = static_cast< wxFontEncoding >(val2);
15524 }
15525 if (obj2) {
15526 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15527 if (!SWIG_IsOK(ecode3)) {
15528 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15529 }
15530 arg3 = static_cast< bool >(val3);
15531 }
15532 {
15533 PyThreadState* __tstate = wxPyBeginAllowThreads();
15534 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15535 wxPyEndAllowThreads(__tstate);
15536 if (PyErr_Occurred()) SWIG_fail;
15537 }
15538 {
15539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15540 }
15541 return resultobj;
15542 fail:
15543 return NULL;
15544 }
15545
15546
15547 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15548 PyObject *resultobj = 0;
15549 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15550 wxString const &arg2_defvalue = wxPyEmptyString ;
15551 wxString *arg2 = (wxString *) &arg2_defvalue ;
15552 bool result;
15553 void *argp1 = 0 ;
15554 int res1 = 0 ;
15555 bool temp2 = false ;
15556 PyObject * obj0 = 0 ;
15557 PyObject * obj1 = 0 ;
15558 char * kwnames[] = {
15559 (char *) "self",(char *) "facename", NULL
15560 };
15561
15562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15564 if (!SWIG_IsOK(res1)) {
15565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15566 }
15567 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15568 if (obj1) {
15569 {
15570 arg2 = wxString_in_helper(obj1);
15571 if (arg2 == NULL) SWIG_fail;
15572 temp2 = true;
15573 }
15574 }
15575 {
15576 PyThreadState* __tstate = wxPyBeginAllowThreads();
15577 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15578 wxPyEndAllowThreads(__tstate);
15579 if (PyErr_Occurred()) SWIG_fail;
15580 }
15581 {
15582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15583 }
15584 {
15585 if (temp2)
15586 delete arg2;
15587 }
15588 return resultobj;
15589 fail:
15590 {
15591 if (temp2)
15592 delete arg2;
15593 }
15594 return NULL;
15595 }
15596
15597
15598 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15599 PyObject *resultobj = 0;
15600 PyObject *result = 0 ;
15601
15602 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
15603 {
15604 PyThreadState* __tstate = wxPyBeginAllowThreads();
15605 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
15606 wxPyEndAllowThreads(__tstate);
15607 if (PyErr_Occurred()) SWIG_fail;
15608 }
15609 resultobj = result;
15610 return resultobj;
15611 fail:
15612 return NULL;
15613 }
15614
15615
15616 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15617 PyObject *resultobj = 0;
15618 PyObject *result = 0 ;
15619
15620 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
15621 {
15622 PyThreadState* __tstate = wxPyBeginAllowThreads();
15623 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
15624 wxPyEndAllowThreads(__tstate);
15625 if (PyErr_Occurred()) SWIG_fail;
15626 }
15627 resultobj = result;
15628 return resultobj;
15629 fail:
15630 return NULL;
15631 }
15632
15633
15634 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15635 PyObject *resultobj = 0;
15636 wxString *arg1 = 0 ;
15637 bool result;
15638 bool temp1 = false ;
15639 PyObject * obj0 = 0 ;
15640 char * kwnames[] = {
15641 (char *) "str", NULL
15642 };
15643
15644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15645 {
15646 arg1 = wxString_in_helper(obj0);
15647 if (arg1 == NULL) SWIG_fail;
15648 temp1 = true;
15649 }
15650 {
15651 PyThreadState* __tstate = wxPyBeginAllowThreads();
15652 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15653 wxPyEndAllowThreads(__tstate);
15654 if (PyErr_Occurred()) SWIG_fail;
15655 }
15656 {
15657 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15658 }
15659 {
15660 if (temp1)
15661 delete arg1;
15662 }
15663 return resultobj;
15664 fail:
15665 {
15666 if (temp1)
15667 delete arg1;
15668 }
15669 return NULL;
15670 }
15671
15672
15673 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15674 PyObject *obj;
15675 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15676 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15677 return SWIG_Py_Void();
15678 }
15679
15680 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15681 return SWIG_Python_InitShadowInstance(args);
15682 }
15683
15684 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15685 PyObject *resultobj = 0;
15686 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15687 int arg2 ;
15688 void *argp1 = 0 ;
15689 int res1 = 0 ;
15690 int val2 ;
15691 int ecode2 = 0 ;
15692 PyObject *swig_obj[2] ;
15693
15694 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15696 if (!SWIG_IsOK(res1)) {
15697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15698 }
15699 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15700 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15701 if (!SWIG_IsOK(ecode2)) {
15702 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15703 }
15704 arg2 = static_cast< int >(val2);
15705 if (arg1) (arg1)->Language = arg2;
15706
15707 resultobj = SWIG_Py_Void();
15708 return resultobj;
15709 fail:
15710 return NULL;
15711 }
15712
15713
15714 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15715 PyObject *resultobj = 0;
15716 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15717 int result;
15718 void *argp1 = 0 ;
15719 int res1 = 0 ;
15720 PyObject *swig_obj[1] ;
15721
15722 if (!args) SWIG_fail;
15723 swig_obj[0] = args;
15724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15725 if (!SWIG_IsOK(res1)) {
15726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15727 }
15728 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15729 result = (int) ((arg1)->Language);
15730 resultobj = SWIG_From_int(static_cast< int >(result));
15731 return resultobj;
15732 fail:
15733 return NULL;
15734 }
15735
15736
15737 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15738 PyObject *resultobj = 0;
15739 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15740 wxString *arg2 = (wxString *) 0 ;
15741 void *argp1 = 0 ;
15742 int res1 = 0 ;
15743 bool temp2 = false ;
15744 PyObject *swig_obj[2] ;
15745
15746 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15748 if (!SWIG_IsOK(res1)) {
15749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15750 }
15751 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15752 {
15753 arg2 = wxString_in_helper(swig_obj[1]);
15754 if (arg2 == NULL) SWIG_fail;
15755 temp2 = true;
15756 }
15757 if (arg1) (arg1)->CanonicalName = *arg2;
15758
15759 resultobj = SWIG_Py_Void();
15760 {
15761 if (temp2)
15762 delete arg2;
15763 }
15764 return resultobj;
15765 fail:
15766 {
15767 if (temp2)
15768 delete arg2;
15769 }
15770 return NULL;
15771 }
15772
15773
15774 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15775 PyObject *resultobj = 0;
15776 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15777 wxString *result = 0 ;
15778 void *argp1 = 0 ;
15779 int res1 = 0 ;
15780 PyObject *swig_obj[1] ;
15781
15782 if (!args) SWIG_fail;
15783 swig_obj[0] = args;
15784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15785 if (!SWIG_IsOK(res1)) {
15786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15787 }
15788 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15789 result = (wxString *)& ((arg1)->CanonicalName);
15790 {
15791 #if wxUSE_UNICODE
15792 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15793 #else
15794 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15795 #endif
15796 }
15797 return resultobj;
15798 fail:
15799 return NULL;
15800 }
15801
15802
15803 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15804 PyObject *resultobj = 0;
15805 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15806 wxString *arg2 = (wxString *) 0 ;
15807 void *argp1 = 0 ;
15808 int res1 = 0 ;
15809 bool temp2 = false ;
15810 PyObject *swig_obj[2] ;
15811
15812 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15814 if (!SWIG_IsOK(res1)) {
15815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15816 }
15817 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15818 {
15819 arg2 = wxString_in_helper(swig_obj[1]);
15820 if (arg2 == NULL) SWIG_fail;
15821 temp2 = true;
15822 }
15823 if (arg1) (arg1)->Description = *arg2;
15824
15825 resultobj = SWIG_Py_Void();
15826 {
15827 if (temp2)
15828 delete arg2;
15829 }
15830 return resultobj;
15831 fail:
15832 {
15833 if (temp2)
15834 delete arg2;
15835 }
15836 return NULL;
15837 }
15838
15839
15840 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15841 PyObject *resultobj = 0;
15842 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15843 wxString *result = 0 ;
15844 void *argp1 = 0 ;
15845 int res1 = 0 ;
15846 PyObject *swig_obj[1] ;
15847
15848 if (!args) SWIG_fail;
15849 swig_obj[0] = args;
15850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15851 if (!SWIG_IsOK(res1)) {
15852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15853 }
15854 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15855 result = (wxString *)& ((arg1)->Description);
15856 {
15857 #if wxUSE_UNICODE
15858 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15859 #else
15860 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15861 #endif
15862 }
15863 return resultobj;
15864 fail:
15865 return NULL;
15866 }
15867
15868
15869 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15870 PyObject *obj;
15871 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15872 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15873 return SWIG_Py_Void();
15874 }
15875
15876 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15877 PyObject *resultobj = 0;
15878 int arg1 = (int) -1 ;
15879 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15880 wxLocale *result = 0 ;
15881 int val1 ;
15882 int ecode1 = 0 ;
15883 int val2 ;
15884 int ecode2 = 0 ;
15885 PyObject * obj0 = 0 ;
15886 PyObject * obj1 = 0 ;
15887 char * kwnames[] = {
15888 (char *) "language",(char *) "flags", NULL
15889 };
15890
15891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15892 if (obj0) {
15893 ecode1 = SWIG_AsVal_int(obj0, &val1);
15894 if (!SWIG_IsOK(ecode1)) {
15895 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15896 }
15897 arg1 = static_cast< int >(val1);
15898 }
15899 if (obj1) {
15900 ecode2 = SWIG_AsVal_int(obj1, &val2);
15901 if (!SWIG_IsOK(ecode2)) {
15902 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15903 }
15904 arg2 = static_cast< int >(val2);
15905 }
15906 {
15907 PyThreadState* __tstate = wxPyBeginAllowThreads();
15908 result = (wxLocale *)new_wxLocale(arg1,arg2);
15909 wxPyEndAllowThreads(__tstate);
15910 if (PyErr_Occurred()) SWIG_fail;
15911 }
15912 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15913 return resultobj;
15914 fail:
15915 return NULL;
15916 }
15917
15918
15919 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15920 PyObject *resultobj = 0;
15921 wxLocale *arg1 = (wxLocale *) 0 ;
15922 void *argp1 = 0 ;
15923 int res1 = 0 ;
15924 PyObject *swig_obj[1] ;
15925
15926 if (!args) SWIG_fail;
15927 swig_obj[0] = args;
15928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15929 if (!SWIG_IsOK(res1)) {
15930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15931 }
15932 arg1 = reinterpret_cast< wxLocale * >(argp1);
15933 {
15934 PyThreadState* __tstate = wxPyBeginAllowThreads();
15935 delete arg1;
15936
15937 wxPyEndAllowThreads(__tstate);
15938 if (PyErr_Occurred()) SWIG_fail;
15939 }
15940 resultobj = SWIG_Py_Void();
15941 return resultobj;
15942 fail:
15943 return NULL;
15944 }
15945
15946
15947 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15948 PyObject *resultobj = 0;
15949 wxLocale *arg1 = (wxLocale *) 0 ;
15950 wxString *arg2 = 0 ;
15951 wxString const &arg3_defvalue = wxPyEmptyString ;
15952 wxString *arg3 = (wxString *) &arg3_defvalue ;
15953 wxString const &arg4_defvalue = wxPyEmptyString ;
15954 wxString *arg4 = (wxString *) &arg4_defvalue ;
15955 bool arg5 = (bool) true ;
15956 bool arg6 = (bool) false ;
15957 bool result;
15958 void *argp1 = 0 ;
15959 int res1 = 0 ;
15960 bool temp2 = false ;
15961 bool temp3 = false ;
15962 bool temp4 = false ;
15963 bool val5 ;
15964 int ecode5 = 0 ;
15965 bool val6 ;
15966 int ecode6 = 0 ;
15967 PyObject * obj0 = 0 ;
15968 PyObject * obj1 = 0 ;
15969 PyObject * obj2 = 0 ;
15970 PyObject * obj3 = 0 ;
15971 PyObject * obj4 = 0 ;
15972 PyObject * obj5 = 0 ;
15973 char * kwnames[] = {
15974 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15975 };
15976
15977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15979 if (!SWIG_IsOK(res1)) {
15980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15981 }
15982 arg1 = reinterpret_cast< wxLocale * >(argp1);
15983 {
15984 arg2 = wxString_in_helper(obj1);
15985 if (arg2 == NULL) SWIG_fail;
15986 temp2 = true;
15987 }
15988 if (obj2) {
15989 {
15990 arg3 = wxString_in_helper(obj2);
15991 if (arg3 == NULL) SWIG_fail;
15992 temp3 = true;
15993 }
15994 }
15995 if (obj3) {
15996 {
15997 arg4 = wxString_in_helper(obj3);
15998 if (arg4 == NULL) SWIG_fail;
15999 temp4 = true;
16000 }
16001 }
16002 if (obj4) {
16003 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16004 if (!SWIG_IsOK(ecode5)) {
16005 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16006 }
16007 arg5 = static_cast< bool >(val5);
16008 }
16009 if (obj5) {
16010 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16011 if (!SWIG_IsOK(ecode6)) {
16012 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16013 }
16014 arg6 = static_cast< bool >(val6);
16015 }
16016 {
16017 PyThreadState* __tstate = wxPyBeginAllowThreads();
16018 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16019 wxPyEndAllowThreads(__tstate);
16020 if (PyErr_Occurred()) SWIG_fail;
16021 }
16022 {
16023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16024 }
16025 {
16026 if (temp2)
16027 delete arg2;
16028 }
16029 {
16030 if (temp3)
16031 delete arg3;
16032 }
16033 {
16034 if (temp4)
16035 delete arg4;
16036 }
16037 return resultobj;
16038 fail:
16039 {
16040 if (temp2)
16041 delete arg2;
16042 }
16043 {
16044 if (temp3)
16045 delete arg3;
16046 }
16047 {
16048 if (temp4)
16049 delete arg4;
16050 }
16051 return NULL;
16052 }
16053
16054
16055 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16056 PyObject *resultobj = 0;
16057 wxLocale *arg1 = (wxLocale *) 0 ;
16058 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16059 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16060 bool result;
16061 void *argp1 = 0 ;
16062 int res1 = 0 ;
16063 int val2 ;
16064 int ecode2 = 0 ;
16065 int val3 ;
16066 int ecode3 = 0 ;
16067 PyObject * obj0 = 0 ;
16068 PyObject * obj1 = 0 ;
16069 PyObject * obj2 = 0 ;
16070 char * kwnames[] = {
16071 (char *) "self",(char *) "language",(char *) "flags", NULL
16072 };
16073
16074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16076 if (!SWIG_IsOK(res1)) {
16077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16078 }
16079 arg1 = reinterpret_cast< wxLocale * >(argp1);
16080 if (obj1) {
16081 ecode2 = SWIG_AsVal_int(obj1, &val2);
16082 if (!SWIG_IsOK(ecode2)) {
16083 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16084 }
16085 arg2 = static_cast< int >(val2);
16086 }
16087 if (obj2) {
16088 ecode3 = SWIG_AsVal_int(obj2, &val3);
16089 if (!SWIG_IsOK(ecode3)) {
16090 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16091 }
16092 arg3 = static_cast< int >(val3);
16093 }
16094 {
16095 PyThreadState* __tstate = wxPyBeginAllowThreads();
16096 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16097 wxPyEndAllowThreads(__tstate);
16098 if (PyErr_Occurred()) SWIG_fail;
16099 }
16100 {
16101 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16102 }
16103 return resultobj;
16104 fail:
16105 return NULL;
16106 }
16107
16108
16109 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16110 PyObject *resultobj = 0;
16111 int result;
16112
16113 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16114 {
16115 PyThreadState* __tstate = wxPyBeginAllowThreads();
16116 result = (int)wxLocale::GetSystemLanguage();
16117 wxPyEndAllowThreads(__tstate);
16118 if (PyErr_Occurred()) SWIG_fail;
16119 }
16120 resultobj = SWIG_From_int(static_cast< int >(result));
16121 return resultobj;
16122 fail:
16123 return NULL;
16124 }
16125
16126
16127 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16128 PyObject *resultobj = 0;
16129 wxFontEncoding result;
16130
16131 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16132 {
16133 PyThreadState* __tstate = wxPyBeginAllowThreads();
16134 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16135 wxPyEndAllowThreads(__tstate);
16136 if (PyErr_Occurred()) SWIG_fail;
16137 }
16138 resultobj = SWIG_From_int(static_cast< int >(result));
16139 return resultobj;
16140 fail:
16141 return NULL;
16142 }
16143
16144
16145 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16146 PyObject *resultobj = 0;
16147 wxString result;
16148
16149 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16150 {
16151 PyThreadState* __tstate = wxPyBeginAllowThreads();
16152 result = wxLocale::GetSystemEncodingName();
16153 wxPyEndAllowThreads(__tstate);
16154 if (PyErr_Occurred()) SWIG_fail;
16155 }
16156 {
16157 #if wxUSE_UNICODE
16158 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16159 #else
16160 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16161 #endif
16162 }
16163 return resultobj;
16164 fail:
16165 return NULL;
16166 }
16167
16168
16169 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16170 PyObject *resultobj = 0;
16171 wxLocale *arg1 = (wxLocale *) 0 ;
16172 bool result;
16173 void *argp1 = 0 ;
16174 int res1 = 0 ;
16175 PyObject *swig_obj[1] ;
16176
16177 if (!args) SWIG_fail;
16178 swig_obj[0] = args;
16179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16180 if (!SWIG_IsOK(res1)) {
16181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16182 }
16183 arg1 = reinterpret_cast< wxLocale * >(argp1);
16184 {
16185 PyThreadState* __tstate = wxPyBeginAllowThreads();
16186 result = (bool)((wxLocale const *)arg1)->IsOk();
16187 wxPyEndAllowThreads(__tstate);
16188 if (PyErr_Occurred()) SWIG_fail;
16189 }
16190 {
16191 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16192 }
16193 return resultobj;
16194 fail:
16195 return NULL;
16196 }
16197
16198
16199 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16200 PyObject *resultobj = 0;
16201 wxLocale *arg1 = (wxLocale *) 0 ;
16202 wxString result;
16203 void *argp1 = 0 ;
16204 int res1 = 0 ;
16205 PyObject *swig_obj[1] ;
16206
16207 if (!args) SWIG_fail;
16208 swig_obj[0] = args;
16209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16210 if (!SWIG_IsOK(res1)) {
16211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16212 }
16213 arg1 = reinterpret_cast< wxLocale * >(argp1);
16214 {
16215 PyThreadState* __tstate = wxPyBeginAllowThreads();
16216 result = ((wxLocale const *)arg1)->GetLocale();
16217 wxPyEndAllowThreads(__tstate);
16218 if (PyErr_Occurred()) SWIG_fail;
16219 }
16220 {
16221 #if wxUSE_UNICODE
16222 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16223 #else
16224 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16225 #endif
16226 }
16227 return resultobj;
16228 fail:
16229 return NULL;
16230 }
16231
16232
16233 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16234 PyObject *resultobj = 0;
16235 wxLocale *arg1 = (wxLocale *) 0 ;
16236 int result;
16237 void *argp1 = 0 ;
16238 int res1 = 0 ;
16239 PyObject *swig_obj[1] ;
16240
16241 if (!args) SWIG_fail;
16242 swig_obj[0] = args;
16243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16244 if (!SWIG_IsOK(res1)) {
16245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16246 }
16247 arg1 = reinterpret_cast< wxLocale * >(argp1);
16248 {
16249 PyThreadState* __tstate = wxPyBeginAllowThreads();
16250 result = (int)((wxLocale const *)arg1)->GetLanguage();
16251 wxPyEndAllowThreads(__tstate);
16252 if (PyErr_Occurred()) SWIG_fail;
16253 }
16254 resultobj = SWIG_From_int(static_cast< int >(result));
16255 return resultobj;
16256 fail:
16257 return NULL;
16258 }
16259
16260
16261 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16262 PyObject *resultobj = 0;
16263 wxLocale *arg1 = (wxLocale *) 0 ;
16264 wxString result;
16265 void *argp1 = 0 ;
16266 int res1 = 0 ;
16267 PyObject *swig_obj[1] ;
16268
16269 if (!args) SWIG_fail;
16270 swig_obj[0] = args;
16271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16272 if (!SWIG_IsOK(res1)) {
16273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16274 }
16275 arg1 = reinterpret_cast< wxLocale * >(argp1);
16276 {
16277 PyThreadState* __tstate = wxPyBeginAllowThreads();
16278 result = ((wxLocale const *)arg1)->GetSysName();
16279 wxPyEndAllowThreads(__tstate);
16280 if (PyErr_Occurred()) SWIG_fail;
16281 }
16282 {
16283 #if wxUSE_UNICODE
16284 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16285 #else
16286 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16287 #endif
16288 }
16289 return resultobj;
16290 fail:
16291 return NULL;
16292 }
16293
16294
16295 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16296 PyObject *resultobj = 0;
16297 wxLocale *arg1 = (wxLocale *) 0 ;
16298 wxString result;
16299 void *argp1 = 0 ;
16300 int res1 = 0 ;
16301 PyObject *swig_obj[1] ;
16302
16303 if (!args) SWIG_fail;
16304 swig_obj[0] = args;
16305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16306 if (!SWIG_IsOK(res1)) {
16307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16308 }
16309 arg1 = reinterpret_cast< wxLocale * >(argp1);
16310 {
16311 PyThreadState* __tstate = wxPyBeginAllowThreads();
16312 result = ((wxLocale const *)arg1)->GetCanonicalName();
16313 wxPyEndAllowThreads(__tstate);
16314 if (PyErr_Occurred()) SWIG_fail;
16315 }
16316 {
16317 #if wxUSE_UNICODE
16318 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16319 #else
16320 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16321 #endif
16322 }
16323 return resultobj;
16324 fail:
16325 return NULL;
16326 }
16327
16328
16329 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16330 PyObject *resultobj = 0;
16331 wxString *arg1 = 0 ;
16332 bool temp1 = false ;
16333 PyObject * obj0 = 0 ;
16334 char * kwnames[] = {
16335 (char *) "prefix", NULL
16336 };
16337
16338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16339 {
16340 arg1 = wxString_in_helper(obj0);
16341 if (arg1 == NULL) SWIG_fail;
16342 temp1 = true;
16343 }
16344 {
16345 PyThreadState* __tstate = wxPyBeginAllowThreads();
16346 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16347 wxPyEndAllowThreads(__tstate);
16348 if (PyErr_Occurred()) SWIG_fail;
16349 }
16350 resultobj = SWIG_Py_Void();
16351 {
16352 if (temp1)
16353 delete arg1;
16354 }
16355 return resultobj;
16356 fail:
16357 {
16358 if (temp1)
16359 delete arg1;
16360 }
16361 return NULL;
16362 }
16363
16364
16365 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16366 PyObject *resultobj = 0;
16367 wxLocale *arg1 = (wxLocale *) 0 ;
16368 wxString *arg2 = 0 ;
16369 bool result;
16370 void *argp1 = 0 ;
16371 int res1 = 0 ;
16372 bool temp2 = false ;
16373 PyObject * obj0 = 0 ;
16374 PyObject * obj1 = 0 ;
16375 char * kwnames[] = {
16376 (char *) "self",(char *) "szDomain", NULL
16377 };
16378
16379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16381 if (!SWIG_IsOK(res1)) {
16382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16383 }
16384 arg1 = reinterpret_cast< wxLocale * >(argp1);
16385 {
16386 arg2 = wxString_in_helper(obj1);
16387 if (arg2 == NULL) SWIG_fail;
16388 temp2 = true;
16389 }
16390 {
16391 PyThreadState* __tstate = wxPyBeginAllowThreads();
16392 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16393 wxPyEndAllowThreads(__tstate);
16394 if (PyErr_Occurred()) SWIG_fail;
16395 }
16396 {
16397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16398 }
16399 {
16400 if (temp2)
16401 delete arg2;
16402 }
16403 return resultobj;
16404 fail:
16405 {
16406 if (temp2)
16407 delete arg2;
16408 }
16409 return NULL;
16410 }
16411
16412
16413 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16414 PyObject *resultobj = 0;
16415 int arg1 ;
16416 bool result;
16417 int val1 ;
16418 int ecode1 = 0 ;
16419 PyObject * obj0 = 0 ;
16420 char * kwnames[] = {
16421 (char *) "lang", NULL
16422 };
16423
16424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16425 ecode1 = SWIG_AsVal_int(obj0, &val1);
16426 if (!SWIG_IsOK(ecode1)) {
16427 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16428 }
16429 arg1 = static_cast< int >(val1);
16430 {
16431 PyThreadState* __tstate = wxPyBeginAllowThreads();
16432 result = (bool)wxLocale::IsAvailable(arg1);
16433 wxPyEndAllowThreads(__tstate);
16434 if (PyErr_Occurred()) SWIG_fail;
16435 }
16436 {
16437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16438 }
16439 return resultobj;
16440 fail:
16441 return NULL;
16442 }
16443
16444
16445 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16446 PyObject *resultobj = 0;
16447 wxLocale *arg1 = (wxLocale *) 0 ;
16448 wxString *arg2 = 0 ;
16449 bool result;
16450 void *argp1 = 0 ;
16451 int res1 = 0 ;
16452 bool temp2 = false ;
16453 PyObject * obj0 = 0 ;
16454 PyObject * obj1 = 0 ;
16455 char * kwnames[] = {
16456 (char *) "self",(char *) "szDomain", NULL
16457 };
16458
16459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16461 if (!SWIG_IsOK(res1)) {
16462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16463 }
16464 arg1 = reinterpret_cast< wxLocale * >(argp1);
16465 {
16466 arg2 = wxString_in_helper(obj1);
16467 if (arg2 == NULL) SWIG_fail;
16468 temp2 = true;
16469 }
16470 {
16471 PyThreadState* __tstate = wxPyBeginAllowThreads();
16472 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16473 wxPyEndAllowThreads(__tstate);
16474 if (PyErr_Occurred()) SWIG_fail;
16475 }
16476 {
16477 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16478 }
16479 {
16480 if (temp2)
16481 delete arg2;
16482 }
16483 return resultobj;
16484 fail:
16485 {
16486 if (temp2)
16487 delete arg2;
16488 }
16489 return NULL;
16490 }
16491
16492
16493 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16494 PyObject *resultobj = 0;
16495 int arg1 ;
16496 wxLanguageInfo *result = 0 ;
16497 int val1 ;
16498 int ecode1 = 0 ;
16499 PyObject * obj0 = 0 ;
16500 char * kwnames[] = {
16501 (char *) "lang", NULL
16502 };
16503
16504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16505 ecode1 = SWIG_AsVal_int(obj0, &val1);
16506 if (!SWIG_IsOK(ecode1)) {
16507 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16508 }
16509 arg1 = static_cast< int >(val1);
16510 {
16511 PyThreadState* __tstate = wxPyBeginAllowThreads();
16512 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16513 wxPyEndAllowThreads(__tstate);
16514 if (PyErr_Occurred()) SWIG_fail;
16515 }
16516 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16517 return resultobj;
16518 fail:
16519 return NULL;
16520 }
16521
16522
16523 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16524 PyObject *resultobj = 0;
16525 int arg1 ;
16526 wxString result;
16527 int val1 ;
16528 int ecode1 = 0 ;
16529 PyObject * obj0 = 0 ;
16530 char * kwnames[] = {
16531 (char *) "lang", NULL
16532 };
16533
16534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16535 ecode1 = SWIG_AsVal_int(obj0, &val1);
16536 if (!SWIG_IsOK(ecode1)) {
16537 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16538 }
16539 arg1 = static_cast< int >(val1);
16540 {
16541 PyThreadState* __tstate = wxPyBeginAllowThreads();
16542 result = wxLocale::GetLanguageName(arg1);
16543 wxPyEndAllowThreads(__tstate);
16544 if (PyErr_Occurred()) SWIG_fail;
16545 }
16546 {
16547 #if wxUSE_UNICODE
16548 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16549 #else
16550 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16551 #endif
16552 }
16553 return resultobj;
16554 fail:
16555 return NULL;
16556 }
16557
16558
16559 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16560 PyObject *resultobj = 0;
16561 wxString *arg1 = 0 ;
16562 wxLanguageInfo *result = 0 ;
16563 bool temp1 = false ;
16564 PyObject * obj0 = 0 ;
16565 char * kwnames[] = {
16566 (char *) "locale", NULL
16567 };
16568
16569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16570 {
16571 arg1 = wxString_in_helper(obj0);
16572 if (arg1 == NULL) SWIG_fail;
16573 temp1 = true;
16574 }
16575 {
16576 PyThreadState* __tstate = wxPyBeginAllowThreads();
16577 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16578 wxPyEndAllowThreads(__tstate);
16579 if (PyErr_Occurred()) SWIG_fail;
16580 }
16581 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16582 {
16583 if (temp1)
16584 delete arg1;
16585 }
16586 return resultobj;
16587 fail:
16588 {
16589 if (temp1)
16590 delete arg1;
16591 }
16592 return NULL;
16593 }
16594
16595
16596 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16597 PyObject *resultobj = 0;
16598 wxLanguageInfo *arg1 = 0 ;
16599 void *argp1 = 0 ;
16600 int res1 = 0 ;
16601 PyObject * obj0 = 0 ;
16602 char * kwnames[] = {
16603 (char *) "info", NULL
16604 };
16605
16606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16607 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16608 if (!SWIG_IsOK(res1)) {
16609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16610 }
16611 if (!argp1) {
16612 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16613 }
16614 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16615 {
16616 PyThreadState* __tstate = wxPyBeginAllowThreads();
16617 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16618 wxPyEndAllowThreads(__tstate);
16619 if (PyErr_Occurred()) SWIG_fail;
16620 }
16621 resultobj = SWIG_Py_Void();
16622 return resultobj;
16623 fail:
16624 return NULL;
16625 }
16626
16627
16628 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16629 PyObject *resultobj = 0;
16630 wxLocale *arg1 = (wxLocale *) 0 ;
16631 wxString *arg2 = 0 ;
16632 wxString const &arg3_defvalue = wxPyEmptyString ;
16633 wxString *arg3 = (wxString *) &arg3_defvalue ;
16634 wxString result;
16635 void *argp1 = 0 ;
16636 int res1 = 0 ;
16637 bool temp2 = false ;
16638 bool temp3 = false ;
16639 PyObject * obj0 = 0 ;
16640 PyObject * obj1 = 0 ;
16641 PyObject * obj2 = 0 ;
16642 char * kwnames[] = {
16643 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16644 };
16645
16646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16648 if (!SWIG_IsOK(res1)) {
16649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16650 }
16651 arg1 = reinterpret_cast< wxLocale * >(argp1);
16652 {
16653 arg2 = wxString_in_helper(obj1);
16654 if (arg2 == NULL) SWIG_fail;
16655 temp2 = true;
16656 }
16657 if (obj2) {
16658 {
16659 arg3 = wxString_in_helper(obj2);
16660 if (arg3 == NULL) SWIG_fail;
16661 temp3 = true;
16662 }
16663 }
16664 {
16665 PyThreadState* __tstate = wxPyBeginAllowThreads();
16666 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16667 wxPyEndAllowThreads(__tstate);
16668 if (PyErr_Occurred()) SWIG_fail;
16669 }
16670 {
16671 #if wxUSE_UNICODE
16672 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16673 #else
16674 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16675 #endif
16676 }
16677 {
16678 if (temp2)
16679 delete arg2;
16680 }
16681 {
16682 if (temp3)
16683 delete arg3;
16684 }
16685 return resultobj;
16686 fail:
16687 {
16688 if (temp2)
16689 delete arg2;
16690 }
16691 {
16692 if (temp3)
16693 delete arg3;
16694 }
16695 return NULL;
16696 }
16697
16698
16699 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16700 PyObject *resultobj = 0;
16701 wxLocale *arg1 = (wxLocale *) 0 ;
16702 wxString *result = 0 ;
16703 void *argp1 = 0 ;
16704 int res1 = 0 ;
16705 PyObject *swig_obj[1] ;
16706
16707 if (!args) SWIG_fail;
16708 swig_obj[0] = args;
16709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16710 if (!SWIG_IsOK(res1)) {
16711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16712 }
16713 arg1 = reinterpret_cast< wxLocale * >(argp1);
16714 {
16715 PyThreadState* __tstate = wxPyBeginAllowThreads();
16716 {
16717 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16718 result = (wxString *) &_result_ref;
16719 }
16720 wxPyEndAllowThreads(__tstate);
16721 if (PyErr_Occurred()) SWIG_fail;
16722 }
16723 {
16724 #if wxUSE_UNICODE
16725 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16726 #else
16727 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16728 #endif
16729 }
16730 return resultobj;
16731 fail:
16732 return NULL;
16733 }
16734
16735
16736 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16737 PyObject *obj;
16738 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16739 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16740 return SWIG_Py_Void();
16741 }
16742
16743 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16744 return SWIG_Python_InitShadowInstance(args);
16745 }
16746
16747 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16748 PyObject *resultobj = 0;
16749 int arg1 = (int) -1 ;
16750 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16751 wxPyLocale *result = 0 ;
16752 int val1 ;
16753 int ecode1 = 0 ;
16754 int val2 ;
16755 int ecode2 = 0 ;
16756 PyObject * obj0 = 0 ;
16757 PyObject * obj1 = 0 ;
16758 char * kwnames[] = {
16759 (char *) "language",(char *) "flags", NULL
16760 };
16761
16762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16763 if (obj0) {
16764 ecode1 = SWIG_AsVal_int(obj0, &val1);
16765 if (!SWIG_IsOK(ecode1)) {
16766 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16767 }
16768 arg1 = static_cast< int >(val1);
16769 }
16770 if (obj1) {
16771 ecode2 = SWIG_AsVal_int(obj1, &val2);
16772 if (!SWIG_IsOK(ecode2)) {
16773 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16774 }
16775 arg2 = static_cast< int >(val2);
16776 }
16777 {
16778 PyThreadState* __tstate = wxPyBeginAllowThreads();
16779 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16780 wxPyEndAllowThreads(__tstate);
16781 if (PyErr_Occurred()) SWIG_fail;
16782 }
16783 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16784 return resultobj;
16785 fail:
16786 return NULL;
16787 }
16788
16789
16790 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16791 PyObject *resultobj = 0;
16792 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16793 void *argp1 = 0 ;
16794 int res1 = 0 ;
16795 PyObject *swig_obj[1] ;
16796
16797 if (!args) SWIG_fail;
16798 swig_obj[0] = args;
16799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16800 if (!SWIG_IsOK(res1)) {
16801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16802 }
16803 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16804 {
16805 PyThreadState* __tstate = wxPyBeginAllowThreads();
16806 delete arg1;
16807
16808 wxPyEndAllowThreads(__tstate);
16809 if (PyErr_Occurred()) SWIG_fail;
16810 }
16811 resultobj = SWIG_Py_Void();
16812 return resultobj;
16813 fail:
16814 return NULL;
16815 }
16816
16817
16818 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16819 PyObject *resultobj = 0;
16820 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16821 PyObject *arg2 = (PyObject *) 0 ;
16822 PyObject *arg3 = (PyObject *) 0 ;
16823 void *argp1 = 0 ;
16824 int res1 = 0 ;
16825 PyObject * obj0 = 0 ;
16826 PyObject * obj1 = 0 ;
16827 PyObject * obj2 = 0 ;
16828 char * kwnames[] = {
16829 (char *) "self",(char *) "self",(char *) "_class", NULL
16830 };
16831
16832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16834 if (!SWIG_IsOK(res1)) {
16835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16836 }
16837 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16838 arg2 = obj1;
16839 arg3 = obj2;
16840 {
16841 PyThreadState* __tstate = wxPyBeginAllowThreads();
16842 (arg1)->_setCallbackInfo(arg2,arg3);
16843 wxPyEndAllowThreads(__tstate);
16844 if (PyErr_Occurred()) SWIG_fail;
16845 }
16846 resultobj = SWIG_Py_Void();
16847 return resultobj;
16848 fail:
16849 return NULL;
16850 }
16851
16852
16853 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16854 PyObject *resultobj = 0;
16855 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16856 wxChar *arg2 = (wxChar *) 0 ;
16857 wxChar *arg3 = (wxChar *) NULL ;
16858 wxChar *result = 0 ;
16859 void *argp1 = 0 ;
16860 int res1 = 0 ;
16861 void *argp2 = 0 ;
16862 int res2 = 0 ;
16863 void *argp3 = 0 ;
16864 int res3 = 0 ;
16865 PyObject * obj0 = 0 ;
16866 PyObject * obj1 = 0 ;
16867 PyObject * obj2 = 0 ;
16868 char * kwnames[] = {
16869 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16870 };
16871
16872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16874 if (!SWIG_IsOK(res1)) {
16875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16876 }
16877 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16878 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16879 if (!SWIG_IsOK(res2)) {
16880 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
16881 }
16882 arg2 = reinterpret_cast< wxChar * >(argp2);
16883 if (obj2) {
16884 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16885 if (!SWIG_IsOK(res3)) {
16886 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
16887 }
16888 arg3 = reinterpret_cast< wxChar * >(argp3);
16889 }
16890 {
16891 PyThreadState* __tstate = wxPyBeginAllowThreads();
16892 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
16893 wxPyEndAllowThreads(__tstate);
16894 if (PyErr_Occurred()) SWIG_fail;
16895 }
16896 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16897 return resultobj;
16898 fail:
16899 return NULL;
16900 }
16901
16902
16903 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16904 PyObject *resultobj = 0;
16905 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16906 wxChar *arg2 = (wxChar *) 0 ;
16907 wxChar *arg3 = (wxChar *) 0 ;
16908 size_t arg4 ;
16909 wxChar *arg5 = (wxChar *) NULL ;
16910 wxChar *result = 0 ;
16911 void *argp1 = 0 ;
16912 int res1 = 0 ;
16913 void *argp2 = 0 ;
16914 int res2 = 0 ;
16915 void *argp3 = 0 ;
16916 int res3 = 0 ;
16917 size_t val4 ;
16918 int ecode4 = 0 ;
16919 void *argp5 = 0 ;
16920 int res5 = 0 ;
16921 PyObject * obj0 = 0 ;
16922 PyObject * obj1 = 0 ;
16923 PyObject * obj2 = 0 ;
16924 PyObject * obj3 = 0 ;
16925 PyObject * obj4 = 0 ;
16926 char * kwnames[] = {
16927 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16928 };
16929
16930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16932 if (!SWIG_IsOK(res1)) {
16933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16934 }
16935 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16936 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16937 if (!SWIG_IsOK(res2)) {
16938 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16939 }
16940 arg2 = reinterpret_cast< wxChar * >(argp2);
16941 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16942 if (!SWIG_IsOK(res3)) {
16943 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16944 }
16945 arg3 = reinterpret_cast< wxChar * >(argp3);
16946 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16947 if (!SWIG_IsOK(ecode4)) {
16948 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16949 }
16950 arg4 = static_cast< size_t >(val4);
16951 if (obj4) {
16952 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16953 if (!SWIG_IsOK(res5)) {
16954 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16955 }
16956 arg5 = reinterpret_cast< wxChar * >(argp5);
16957 }
16958 {
16959 PyThreadState* __tstate = wxPyBeginAllowThreads();
16960 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
16961 wxPyEndAllowThreads(__tstate);
16962 if (PyErr_Occurred()) SWIG_fail;
16963 }
16964 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16965 return resultobj;
16966 fail:
16967 return NULL;
16968 }
16969
16970
16971 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16972 PyObject *obj;
16973 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16974 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
16975 return SWIG_Py_Void();
16976 }
16977
16978 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16979 return SWIG_Python_InitShadowInstance(args);
16980 }
16981
16982 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16983 PyObject *resultobj = 0;
16984 wxLocale *result = 0 ;
16985
16986 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16987 {
16988 PyThreadState* __tstate = wxPyBeginAllowThreads();
16989 result = (wxLocale *)wxGetLocale();
16990 wxPyEndAllowThreads(__tstate);
16991 if (PyErr_Occurred()) SWIG_fail;
16992 }
16993 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16994 return resultobj;
16995 fail:
16996 return NULL;
16997 }
16998
16999
17000 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17001 PyObject *resultobj = 0;
17002 wxString *arg1 = 0 ;
17003 wxString result;
17004 bool temp1 = false ;
17005
17006 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17007 {
17008 arg1 = wxString_in_helper(swig_obj[0]);
17009 if (arg1 == NULL) SWIG_fail;
17010 temp1 = true;
17011 }
17012 {
17013 PyThreadState* __tstate = wxPyBeginAllowThreads();
17014 result = wxGetTranslation((wxString const &)*arg1);
17015 wxPyEndAllowThreads(__tstate);
17016 if (PyErr_Occurred()) SWIG_fail;
17017 }
17018 {
17019 #if wxUSE_UNICODE
17020 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17021 #else
17022 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17023 #endif
17024 }
17025 {
17026 if (temp1)
17027 delete arg1;
17028 }
17029 return resultobj;
17030 fail:
17031 {
17032 if (temp1)
17033 delete arg1;
17034 }
17035 return NULL;
17036 }
17037
17038
17039 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17040 PyObject *resultobj = 0;
17041 wxString *arg1 = 0 ;
17042 wxString *arg2 = 0 ;
17043 wxString result;
17044 bool temp1 = false ;
17045 bool temp2 = false ;
17046
17047 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17048 {
17049 arg1 = wxString_in_helper(swig_obj[0]);
17050 if (arg1 == NULL) SWIG_fail;
17051 temp1 = true;
17052 }
17053 {
17054 arg2 = wxString_in_helper(swig_obj[1]);
17055 if (arg2 == NULL) SWIG_fail;
17056 temp2 = true;
17057 }
17058 {
17059 PyThreadState* __tstate = wxPyBeginAllowThreads();
17060 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17061 wxPyEndAllowThreads(__tstate);
17062 if (PyErr_Occurred()) SWIG_fail;
17063 }
17064 {
17065 #if wxUSE_UNICODE
17066 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17067 #else
17068 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17069 #endif
17070 }
17071 {
17072 if (temp1)
17073 delete arg1;
17074 }
17075 {
17076 if (temp2)
17077 delete arg2;
17078 }
17079 return resultobj;
17080 fail:
17081 {
17082 if (temp1)
17083 delete arg1;
17084 }
17085 {
17086 if (temp2)
17087 delete arg2;
17088 }
17089 return NULL;
17090 }
17091
17092
17093 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17094 PyObject *resultobj = 0;
17095 wxString *arg1 = 0 ;
17096 wxString *arg2 = 0 ;
17097 size_t arg3 ;
17098 wxString result;
17099 bool temp1 = false ;
17100 bool temp2 = false ;
17101 size_t val3 ;
17102 int ecode3 = 0 ;
17103
17104 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17105 {
17106 arg1 = wxString_in_helper(swig_obj[0]);
17107 if (arg1 == NULL) SWIG_fail;
17108 temp1 = true;
17109 }
17110 {
17111 arg2 = wxString_in_helper(swig_obj[1]);
17112 if (arg2 == NULL) SWIG_fail;
17113 temp2 = true;
17114 }
17115 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17116 if (!SWIG_IsOK(ecode3)) {
17117 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17118 }
17119 arg3 = static_cast< size_t >(val3);
17120 {
17121 PyThreadState* __tstate = wxPyBeginAllowThreads();
17122 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17123 wxPyEndAllowThreads(__tstate);
17124 if (PyErr_Occurred()) SWIG_fail;
17125 }
17126 {
17127 #if wxUSE_UNICODE
17128 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17129 #else
17130 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17131 #endif
17132 }
17133 {
17134 if (temp1)
17135 delete arg1;
17136 }
17137 {
17138 if (temp2)
17139 delete arg2;
17140 }
17141 return resultobj;
17142 fail:
17143 {
17144 if (temp1)
17145 delete arg1;
17146 }
17147 {
17148 if (temp2)
17149 delete arg2;
17150 }
17151 return NULL;
17152 }
17153
17154
17155 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17156 PyObject *resultobj = 0;
17157 wxString *arg1 = 0 ;
17158 wxString *arg2 = 0 ;
17159 size_t arg3 ;
17160 wxString *arg4 = 0 ;
17161 wxString result;
17162 bool temp1 = false ;
17163 bool temp2 = false ;
17164 size_t val3 ;
17165 int ecode3 = 0 ;
17166 bool temp4 = false ;
17167
17168 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17169 {
17170 arg1 = wxString_in_helper(swig_obj[0]);
17171 if (arg1 == NULL) SWIG_fail;
17172 temp1 = true;
17173 }
17174 {
17175 arg2 = wxString_in_helper(swig_obj[1]);
17176 if (arg2 == NULL) SWIG_fail;
17177 temp2 = true;
17178 }
17179 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17180 if (!SWIG_IsOK(ecode3)) {
17181 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17182 }
17183 arg3 = static_cast< size_t >(val3);
17184 {
17185 arg4 = wxString_in_helper(swig_obj[3]);
17186 if (arg4 == NULL) SWIG_fail;
17187 temp4 = true;
17188 }
17189 {
17190 PyThreadState* __tstate = wxPyBeginAllowThreads();
17191 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17192 wxPyEndAllowThreads(__tstate);
17193 if (PyErr_Occurred()) SWIG_fail;
17194 }
17195 {
17196 #if wxUSE_UNICODE
17197 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17198 #else
17199 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17200 #endif
17201 }
17202 {
17203 if (temp1)
17204 delete arg1;
17205 }
17206 {
17207 if (temp2)
17208 delete arg2;
17209 }
17210 {
17211 if (temp4)
17212 delete arg4;
17213 }
17214 return resultobj;
17215 fail:
17216 {
17217 if (temp1)
17218 delete arg1;
17219 }
17220 {
17221 if (temp2)
17222 delete arg2;
17223 }
17224 {
17225 if (temp4)
17226 delete arg4;
17227 }
17228 return NULL;
17229 }
17230
17231
17232 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17233 int argc;
17234 PyObject *argv[5];
17235
17236 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
17237 --argc;
17238 if (argc == 1) {
17239 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17240 }
17241 if (argc == 2) {
17242 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17243 }
17244 if (argc == 3) {
17245 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17246 }
17247 if (argc == 4) {
17248 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17249 }
17250
17251 fail:
17252 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17253 return NULL;
17254 }
17255
17256
17257 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17258 PyObject *resultobj = 0;
17259 wxEncodingConverter *result = 0 ;
17260
17261 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17262 {
17263 PyThreadState* __tstate = wxPyBeginAllowThreads();
17264 result = (wxEncodingConverter *)new wxEncodingConverter();
17265 wxPyEndAllowThreads(__tstate);
17266 if (PyErr_Occurred()) SWIG_fail;
17267 }
17268 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17269 return resultobj;
17270 fail:
17271 return NULL;
17272 }
17273
17274
17275 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17276 PyObject *resultobj = 0;
17277 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17278 void *argp1 = 0 ;
17279 int res1 = 0 ;
17280 PyObject *swig_obj[1] ;
17281
17282 if (!args) SWIG_fail;
17283 swig_obj[0] = args;
17284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17285 if (!SWIG_IsOK(res1)) {
17286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17287 }
17288 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17289 {
17290 PyThreadState* __tstate = wxPyBeginAllowThreads();
17291 delete arg1;
17292
17293 wxPyEndAllowThreads(__tstate);
17294 if (PyErr_Occurred()) SWIG_fail;
17295 }
17296 resultobj = SWIG_Py_Void();
17297 return resultobj;
17298 fail:
17299 return NULL;
17300 }
17301
17302
17303 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17304 PyObject *resultobj = 0;
17305 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17306 wxFontEncoding arg2 ;
17307 wxFontEncoding arg3 ;
17308 int arg4 = (int) wxCONVERT_STRICT ;
17309 bool result;
17310 void *argp1 = 0 ;
17311 int res1 = 0 ;
17312 int val2 ;
17313 int ecode2 = 0 ;
17314 int val3 ;
17315 int ecode3 = 0 ;
17316 int val4 ;
17317 int ecode4 = 0 ;
17318 PyObject * obj0 = 0 ;
17319 PyObject * obj1 = 0 ;
17320 PyObject * obj2 = 0 ;
17321 PyObject * obj3 = 0 ;
17322 char * kwnames[] = {
17323 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17324 };
17325
17326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17328 if (!SWIG_IsOK(res1)) {
17329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17330 }
17331 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17332 ecode2 = SWIG_AsVal_int(obj1, &val2);
17333 if (!SWIG_IsOK(ecode2)) {
17334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17335 }
17336 arg2 = static_cast< wxFontEncoding >(val2);
17337 ecode3 = SWIG_AsVal_int(obj2, &val3);
17338 if (!SWIG_IsOK(ecode3)) {
17339 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17340 }
17341 arg3 = static_cast< wxFontEncoding >(val3);
17342 if (obj3) {
17343 ecode4 = SWIG_AsVal_int(obj3, &val4);
17344 if (!SWIG_IsOK(ecode4)) {
17345 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17346 }
17347 arg4 = static_cast< int >(val4);
17348 }
17349 {
17350 PyThreadState* __tstate = wxPyBeginAllowThreads();
17351 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17352 wxPyEndAllowThreads(__tstate);
17353 if (PyErr_Occurred()) SWIG_fail;
17354 }
17355 {
17356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17357 }
17358 return resultobj;
17359 fail:
17360 return NULL;
17361 }
17362
17363
17364 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17365 PyObject *resultobj = 0;
17366 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17367 wxString *arg2 = 0 ;
17368 wxString result;
17369 void *argp1 = 0 ;
17370 int res1 = 0 ;
17371 bool temp2 = false ;
17372 PyObject * obj0 = 0 ;
17373 PyObject * obj1 = 0 ;
17374 char * kwnames[] = {
17375 (char *) "self",(char *) "input", NULL
17376 };
17377
17378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17380 if (!SWIG_IsOK(res1)) {
17381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17382 }
17383 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17384 {
17385 arg2 = wxString_in_helper(obj1);
17386 if (arg2 == NULL) SWIG_fail;
17387 temp2 = true;
17388 }
17389 {
17390 PyThreadState* __tstate = wxPyBeginAllowThreads();
17391 result = (arg1)->Convert((wxString const &)*arg2);
17392 wxPyEndAllowThreads(__tstate);
17393 if (PyErr_Occurred()) SWIG_fail;
17394 }
17395 {
17396 #if wxUSE_UNICODE
17397 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17398 #else
17399 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17400 #endif
17401 }
17402 {
17403 if (temp2)
17404 delete arg2;
17405 }
17406 return resultobj;
17407 fail:
17408 {
17409 if (temp2)
17410 delete arg2;
17411 }
17412 return NULL;
17413 }
17414
17415
17416 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17417 PyObject *resultobj = 0;
17418 wxFontEncoding arg1 ;
17419 int arg2 = (int) wxPLATFORM_CURRENT ;
17420 wxFontEncodingArray result;
17421 int val1 ;
17422 int ecode1 = 0 ;
17423 int val2 ;
17424 int ecode2 = 0 ;
17425 PyObject * obj0 = 0 ;
17426 PyObject * obj1 = 0 ;
17427 char * kwnames[] = {
17428 (char *) "enc",(char *) "platform", NULL
17429 };
17430
17431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17432 ecode1 = SWIG_AsVal_int(obj0, &val1);
17433 if (!SWIG_IsOK(ecode1)) {
17434 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17435 }
17436 arg1 = static_cast< wxFontEncoding >(val1);
17437 if (obj1) {
17438 ecode2 = SWIG_AsVal_int(obj1, &val2);
17439 if (!SWIG_IsOK(ecode2)) {
17440 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17441 }
17442 arg2 = static_cast< int >(val2);
17443 }
17444 {
17445 PyThreadState* __tstate = wxPyBeginAllowThreads();
17446 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17447 wxPyEndAllowThreads(__tstate);
17448 if (PyErr_Occurred()) SWIG_fail;
17449 }
17450 {
17451 resultobj = PyList_New(0);
17452 for (size_t i=0; i < (&result)->GetCount(); i++) {
17453 PyObject* number = PyInt_FromLong((&result)->Item(i));
17454 PyList_Append(resultobj, number);
17455 Py_DECREF(number);
17456 }
17457 }
17458 return resultobj;
17459 fail:
17460 return NULL;
17461 }
17462
17463
17464 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17465 PyObject *resultobj = 0;
17466 wxFontEncoding arg1 ;
17467 wxFontEncodingArray result;
17468 int val1 ;
17469 int ecode1 = 0 ;
17470 PyObject * obj0 = 0 ;
17471 char * kwnames[] = {
17472 (char *) "enc", NULL
17473 };
17474
17475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17476 ecode1 = SWIG_AsVal_int(obj0, &val1);
17477 if (!SWIG_IsOK(ecode1)) {
17478 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17479 }
17480 arg1 = static_cast< wxFontEncoding >(val1);
17481 {
17482 PyThreadState* __tstate = wxPyBeginAllowThreads();
17483 result = wxEncodingConverter::GetAllEquivalents(arg1);
17484 wxPyEndAllowThreads(__tstate);
17485 if (PyErr_Occurred()) SWIG_fail;
17486 }
17487 {
17488 resultobj = PyList_New(0);
17489 for (size_t i=0; i < (&result)->GetCount(); i++) {
17490 PyObject* number = PyInt_FromLong((&result)->Item(i));
17491 PyList_Append(resultobj, number);
17492 Py_DECREF(number);
17493 }
17494 }
17495 return resultobj;
17496 fail:
17497 return NULL;
17498 }
17499
17500
17501 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17502 PyObject *resultobj = 0;
17503 wxFontEncoding arg1 ;
17504 wxFontEncoding arg2 ;
17505 bool result;
17506 int val1 ;
17507 int ecode1 = 0 ;
17508 int val2 ;
17509 int ecode2 = 0 ;
17510 PyObject * obj0 = 0 ;
17511 PyObject * obj1 = 0 ;
17512 char * kwnames[] = {
17513 (char *) "encIn",(char *) "encOut", NULL
17514 };
17515
17516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17517 ecode1 = SWIG_AsVal_int(obj0, &val1);
17518 if (!SWIG_IsOK(ecode1)) {
17519 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17520 }
17521 arg1 = static_cast< wxFontEncoding >(val1);
17522 ecode2 = SWIG_AsVal_int(obj1, &val2);
17523 if (!SWIG_IsOK(ecode2)) {
17524 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17525 }
17526 arg2 = static_cast< wxFontEncoding >(val2);
17527 {
17528 PyThreadState* __tstate = wxPyBeginAllowThreads();
17529 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17530 wxPyEndAllowThreads(__tstate);
17531 if (PyErr_Occurred()) SWIG_fail;
17532 }
17533 {
17534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17535 }
17536 return resultobj;
17537 fail:
17538 return NULL;
17539 }
17540
17541
17542 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17543 PyObject *obj;
17544 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17545 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17546 return SWIG_Py_Void();
17547 }
17548
17549 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17550 return SWIG_Python_InitShadowInstance(args);
17551 }
17552
17553 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17554 PyObject *resultobj = 0;
17555 wxDC *arg1 = (wxDC *) 0 ;
17556 void *argp1 = 0 ;
17557 int res1 = 0 ;
17558 PyObject *swig_obj[1] ;
17559
17560 if (!args) SWIG_fail;
17561 swig_obj[0] = args;
17562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17563 if (!SWIG_IsOK(res1)) {
17564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17565 }
17566 arg1 = reinterpret_cast< wxDC * >(argp1);
17567 {
17568 PyThreadState* __tstate = wxPyBeginAllowThreads();
17569 delete arg1;
17570
17571 wxPyEndAllowThreads(__tstate);
17572 if (PyErr_Occurred()) SWIG_fail;
17573 }
17574 resultobj = SWIG_Py_Void();
17575 return resultobj;
17576 fail:
17577 return NULL;
17578 }
17579
17580
17581 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17582 PyObject *resultobj = 0;
17583 wxDC *arg1 = (wxDC *) 0 ;
17584 int arg2 ;
17585 int arg3 ;
17586 wxColour *arg4 = 0 ;
17587 int arg5 = (int) wxFLOOD_SURFACE ;
17588 bool result;
17589 void *argp1 = 0 ;
17590 int res1 = 0 ;
17591 int val2 ;
17592 int ecode2 = 0 ;
17593 int val3 ;
17594 int ecode3 = 0 ;
17595 wxColour temp4 ;
17596 int val5 ;
17597 int ecode5 = 0 ;
17598 PyObject * obj0 = 0 ;
17599 PyObject * obj1 = 0 ;
17600 PyObject * obj2 = 0 ;
17601 PyObject * obj3 = 0 ;
17602 PyObject * obj4 = 0 ;
17603 char * kwnames[] = {
17604 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17605 };
17606
17607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17609 if (!SWIG_IsOK(res1)) {
17610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17611 }
17612 arg1 = reinterpret_cast< wxDC * >(argp1);
17613 ecode2 = SWIG_AsVal_int(obj1, &val2);
17614 if (!SWIG_IsOK(ecode2)) {
17615 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17616 }
17617 arg2 = static_cast< int >(val2);
17618 ecode3 = SWIG_AsVal_int(obj2, &val3);
17619 if (!SWIG_IsOK(ecode3)) {
17620 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17621 }
17622 arg3 = static_cast< int >(val3);
17623 {
17624 arg4 = &temp4;
17625 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17626 }
17627 if (obj4) {
17628 ecode5 = SWIG_AsVal_int(obj4, &val5);
17629 if (!SWIG_IsOK(ecode5)) {
17630 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17631 }
17632 arg5 = static_cast< int >(val5);
17633 }
17634 {
17635 PyThreadState* __tstate = wxPyBeginAllowThreads();
17636 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17637 wxPyEndAllowThreads(__tstate);
17638 if (PyErr_Occurred()) SWIG_fail;
17639 }
17640 {
17641 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17642 }
17643 return resultobj;
17644 fail:
17645 return NULL;
17646 }
17647
17648
17649 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17650 PyObject *resultobj = 0;
17651 wxDC *arg1 = (wxDC *) 0 ;
17652 wxPoint *arg2 = 0 ;
17653 wxColour *arg3 = 0 ;
17654 int arg4 = (int) wxFLOOD_SURFACE ;
17655 bool result;
17656 void *argp1 = 0 ;
17657 int res1 = 0 ;
17658 wxPoint temp2 ;
17659 wxColour temp3 ;
17660 int val4 ;
17661 int ecode4 = 0 ;
17662 PyObject * obj0 = 0 ;
17663 PyObject * obj1 = 0 ;
17664 PyObject * obj2 = 0 ;
17665 PyObject * obj3 = 0 ;
17666 char * kwnames[] = {
17667 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17668 };
17669
17670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17672 if (!SWIG_IsOK(res1)) {
17673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17674 }
17675 arg1 = reinterpret_cast< wxDC * >(argp1);
17676 {
17677 arg2 = &temp2;
17678 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17679 }
17680 {
17681 arg3 = &temp3;
17682 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17683 }
17684 if (obj3) {
17685 ecode4 = SWIG_AsVal_int(obj3, &val4);
17686 if (!SWIG_IsOK(ecode4)) {
17687 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17688 }
17689 arg4 = static_cast< int >(val4);
17690 }
17691 {
17692 PyThreadState* __tstate = wxPyBeginAllowThreads();
17693 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17694 wxPyEndAllowThreads(__tstate);
17695 if (PyErr_Occurred()) SWIG_fail;
17696 }
17697 {
17698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17699 }
17700 return resultobj;
17701 fail:
17702 return NULL;
17703 }
17704
17705
17706 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17707 PyObject *resultobj = 0;
17708 wxDC *arg1 = (wxDC *) 0 ;
17709 wxRect *arg2 = 0 ;
17710 wxColour *arg3 = 0 ;
17711 wxColour *arg4 = 0 ;
17712 wxPoint *arg5 = 0 ;
17713 void *argp1 = 0 ;
17714 int res1 = 0 ;
17715 wxRect temp2 ;
17716 wxColour temp3 ;
17717 wxColour temp4 ;
17718 wxPoint temp5 ;
17719 PyObject * obj0 = 0 ;
17720 PyObject * obj1 = 0 ;
17721 PyObject * obj2 = 0 ;
17722 PyObject * obj3 = 0 ;
17723 PyObject * obj4 = 0 ;
17724 char * kwnames[] = {
17725 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17726 };
17727
17728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17730 if (!SWIG_IsOK(res1)) {
17731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17732 }
17733 arg1 = reinterpret_cast< wxDC * >(argp1);
17734 {
17735 arg2 = &temp2;
17736 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17737 }
17738 {
17739 arg3 = &temp3;
17740 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17741 }
17742 {
17743 arg4 = &temp4;
17744 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17745 }
17746 {
17747 arg5 = &temp5;
17748 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17749 }
17750 {
17751 PyThreadState* __tstate = wxPyBeginAllowThreads();
17752 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17753 wxPyEndAllowThreads(__tstate);
17754 if (PyErr_Occurred()) SWIG_fail;
17755 }
17756 resultobj = SWIG_Py_Void();
17757 return resultobj;
17758 fail:
17759 return NULL;
17760 }
17761
17762
17763 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17764 PyObject *resultobj = 0;
17765 wxDC *arg1 = (wxDC *) 0 ;
17766 wxRect *arg2 = 0 ;
17767 wxColour *arg3 = 0 ;
17768 wxColour *arg4 = 0 ;
17769 wxDirection arg5 = (wxDirection) wxEAST ;
17770 void *argp1 = 0 ;
17771 int res1 = 0 ;
17772 wxRect temp2 ;
17773 wxColour temp3 ;
17774 wxColour temp4 ;
17775 int val5 ;
17776 int ecode5 = 0 ;
17777 PyObject * obj0 = 0 ;
17778 PyObject * obj1 = 0 ;
17779 PyObject * obj2 = 0 ;
17780 PyObject * obj3 = 0 ;
17781 PyObject * obj4 = 0 ;
17782 char * kwnames[] = {
17783 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17784 };
17785
17786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17788 if (!SWIG_IsOK(res1)) {
17789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17790 }
17791 arg1 = reinterpret_cast< wxDC * >(argp1);
17792 {
17793 arg2 = &temp2;
17794 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17795 }
17796 {
17797 arg3 = &temp3;
17798 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17799 }
17800 {
17801 arg4 = &temp4;
17802 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17803 }
17804 if (obj4) {
17805 ecode5 = SWIG_AsVal_int(obj4, &val5);
17806 if (!SWIG_IsOK(ecode5)) {
17807 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17808 }
17809 arg5 = static_cast< wxDirection >(val5);
17810 }
17811 {
17812 PyThreadState* __tstate = wxPyBeginAllowThreads();
17813 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17814 wxPyEndAllowThreads(__tstate);
17815 if (PyErr_Occurred()) SWIG_fail;
17816 }
17817 resultobj = SWIG_Py_Void();
17818 return resultobj;
17819 fail:
17820 return NULL;
17821 }
17822
17823
17824 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17825 PyObject *resultobj = 0;
17826 wxDC *arg1 = (wxDC *) 0 ;
17827 int arg2 ;
17828 int arg3 ;
17829 wxColour result;
17830 void *argp1 = 0 ;
17831 int res1 = 0 ;
17832 int val2 ;
17833 int ecode2 = 0 ;
17834 int val3 ;
17835 int ecode3 = 0 ;
17836 PyObject * obj0 = 0 ;
17837 PyObject * obj1 = 0 ;
17838 PyObject * obj2 = 0 ;
17839 char * kwnames[] = {
17840 (char *) "self",(char *) "x",(char *) "y", NULL
17841 };
17842
17843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17845 if (!SWIG_IsOK(res1)) {
17846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17847 }
17848 arg1 = reinterpret_cast< wxDC * >(argp1);
17849 ecode2 = SWIG_AsVal_int(obj1, &val2);
17850 if (!SWIG_IsOK(ecode2)) {
17851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17852 }
17853 arg2 = static_cast< int >(val2);
17854 ecode3 = SWIG_AsVal_int(obj2, &val3);
17855 if (!SWIG_IsOK(ecode3)) {
17856 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17857 }
17858 arg3 = static_cast< int >(val3);
17859 {
17860 PyThreadState* __tstate = wxPyBeginAllowThreads();
17861 result = wxDC_GetPixel(arg1,arg2,arg3);
17862 wxPyEndAllowThreads(__tstate);
17863 if (PyErr_Occurred()) SWIG_fail;
17864 }
17865 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17866 return resultobj;
17867 fail:
17868 return NULL;
17869 }
17870
17871
17872 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17873 PyObject *resultobj = 0;
17874 wxDC *arg1 = (wxDC *) 0 ;
17875 wxPoint *arg2 = 0 ;
17876 wxColour result;
17877 void *argp1 = 0 ;
17878 int res1 = 0 ;
17879 wxPoint temp2 ;
17880 PyObject * obj0 = 0 ;
17881 PyObject * obj1 = 0 ;
17882 char * kwnames[] = {
17883 (char *) "self",(char *) "pt", NULL
17884 };
17885
17886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17888 if (!SWIG_IsOK(res1)) {
17889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17890 }
17891 arg1 = reinterpret_cast< wxDC * >(argp1);
17892 {
17893 arg2 = &temp2;
17894 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17895 }
17896 {
17897 PyThreadState* __tstate = wxPyBeginAllowThreads();
17898 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17899 wxPyEndAllowThreads(__tstate);
17900 if (PyErr_Occurred()) SWIG_fail;
17901 }
17902 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17903 return resultobj;
17904 fail:
17905 return NULL;
17906 }
17907
17908
17909 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17910 PyObject *resultobj = 0;
17911 wxDC *arg1 = (wxDC *) 0 ;
17912 int arg2 ;
17913 int arg3 ;
17914 int arg4 ;
17915 int arg5 ;
17916 void *argp1 = 0 ;
17917 int res1 = 0 ;
17918 int val2 ;
17919 int ecode2 = 0 ;
17920 int val3 ;
17921 int ecode3 = 0 ;
17922 int val4 ;
17923 int ecode4 = 0 ;
17924 int val5 ;
17925 int ecode5 = 0 ;
17926 PyObject * obj0 = 0 ;
17927 PyObject * obj1 = 0 ;
17928 PyObject * obj2 = 0 ;
17929 PyObject * obj3 = 0 ;
17930 PyObject * obj4 = 0 ;
17931 char * kwnames[] = {
17932 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17933 };
17934
17935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17937 if (!SWIG_IsOK(res1)) {
17938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17939 }
17940 arg1 = reinterpret_cast< wxDC * >(argp1);
17941 ecode2 = SWIG_AsVal_int(obj1, &val2);
17942 if (!SWIG_IsOK(ecode2)) {
17943 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17944 }
17945 arg2 = static_cast< int >(val2);
17946 ecode3 = SWIG_AsVal_int(obj2, &val3);
17947 if (!SWIG_IsOK(ecode3)) {
17948 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17949 }
17950 arg3 = static_cast< int >(val3);
17951 ecode4 = SWIG_AsVal_int(obj3, &val4);
17952 if (!SWIG_IsOK(ecode4)) {
17953 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17954 }
17955 arg4 = static_cast< int >(val4);
17956 ecode5 = SWIG_AsVal_int(obj4, &val5);
17957 if (!SWIG_IsOK(ecode5)) {
17958 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17959 }
17960 arg5 = static_cast< int >(val5);
17961 {
17962 PyThreadState* __tstate = wxPyBeginAllowThreads();
17963 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17964 wxPyEndAllowThreads(__tstate);
17965 if (PyErr_Occurred()) SWIG_fail;
17966 }
17967 resultobj = SWIG_Py_Void();
17968 return resultobj;
17969 fail:
17970 return NULL;
17971 }
17972
17973
17974 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17975 PyObject *resultobj = 0;
17976 wxDC *arg1 = (wxDC *) 0 ;
17977 wxPoint *arg2 = 0 ;
17978 wxPoint *arg3 = 0 ;
17979 void *argp1 = 0 ;
17980 int res1 = 0 ;
17981 wxPoint temp2 ;
17982 wxPoint temp3 ;
17983 PyObject * obj0 = 0 ;
17984 PyObject * obj1 = 0 ;
17985 PyObject * obj2 = 0 ;
17986 char * kwnames[] = {
17987 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17988 };
17989
17990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17992 if (!SWIG_IsOK(res1)) {
17993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17994 }
17995 arg1 = reinterpret_cast< wxDC * >(argp1);
17996 {
17997 arg2 = &temp2;
17998 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17999 }
18000 {
18001 arg3 = &temp3;
18002 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18003 }
18004 {
18005 PyThreadState* __tstate = wxPyBeginAllowThreads();
18006 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18007 wxPyEndAllowThreads(__tstate);
18008 if (PyErr_Occurred()) SWIG_fail;
18009 }
18010 resultobj = SWIG_Py_Void();
18011 return resultobj;
18012 fail:
18013 return NULL;
18014 }
18015
18016
18017 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18018 PyObject *resultobj = 0;
18019 wxDC *arg1 = (wxDC *) 0 ;
18020 int arg2 ;
18021 int arg3 ;
18022 void *argp1 = 0 ;
18023 int res1 = 0 ;
18024 int val2 ;
18025 int ecode2 = 0 ;
18026 int val3 ;
18027 int ecode3 = 0 ;
18028 PyObject * obj0 = 0 ;
18029 PyObject * obj1 = 0 ;
18030 PyObject * obj2 = 0 ;
18031 char * kwnames[] = {
18032 (char *) "self",(char *) "x",(char *) "y", NULL
18033 };
18034
18035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18037 if (!SWIG_IsOK(res1)) {
18038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18039 }
18040 arg1 = reinterpret_cast< wxDC * >(argp1);
18041 ecode2 = SWIG_AsVal_int(obj1, &val2);
18042 if (!SWIG_IsOK(ecode2)) {
18043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18044 }
18045 arg2 = static_cast< int >(val2);
18046 ecode3 = SWIG_AsVal_int(obj2, &val3);
18047 if (!SWIG_IsOK(ecode3)) {
18048 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18049 }
18050 arg3 = static_cast< int >(val3);
18051 {
18052 PyThreadState* __tstate = wxPyBeginAllowThreads();
18053 (arg1)->CrossHair(arg2,arg3);
18054 wxPyEndAllowThreads(__tstate);
18055 if (PyErr_Occurred()) SWIG_fail;
18056 }
18057 resultobj = SWIG_Py_Void();
18058 return resultobj;
18059 fail:
18060 return NULL;
18061 }
18062
18063
18064 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18065 PyObject *resultobj = 0;
18066 wxDC *arg1 = (wxDC *) 0 ;
18067 wxPoint *arg2 = 0 ;
18068 void *argp1 = 0 ;
18069 int res1 = 0 ;
18070 wxPoint temp2 ;
18071 PyObject * obj0 = 0 ;
18072 PyObject * obj1 = 0 ;
18073 char * kwnames[] = {
18074 (char *) "self",(char *) "pt", NULL
18075 };
18076
18077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18079 if (!SWIG_IsOK(res1)) {
18080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18081 }
18082 arg1 = reinterpret_cast< wxDC * >(argp1);
18083 {
18084 arg2 = &temp2;
18085 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18086 }
18087 {
18088 PyThreadState* __tstate = wxPyBeginAllowThreads();
18089 (arg1)->CrossHair((wxPoint const &)*arg2);
18090 wxPyEndAllowThreads(__tstate);
18091 if (PyErr_Occurred()) SWIG_fail;
18092 }
18093 resultobj = SWIG_Py_Void();
18094 return resultobj;
18095 fail:
18096 return NULL;
18097 }
18098
18099
18100 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18101 PyObject *resultobj = 0;
18102 wxDC *arg1 = (wxDC *) 0 ;
18103 int arg2 ;
18104 int arg3 ;
18105 int arg4 ;
18106 int arg5 ;
18107 int arg6 ;
18108 int arg7 ;
18109 void *argp1 = 0 ;
18110 int res1 = 0 ;
18111 int val2 ;
18112 int ecode2 = 0 ;
18113 int val3 ;
18114 int ecode3 = 0 ;
18115 int val4 ;
18116 int ecode4 = 0 ;
18117 int val5 ;
18118 int ecode5 = 0 ;
18119 int val6 ;
18120 int ecode6 = 0 ;
18121 int val7 ;
18122 int ecode7 = 0 ;
18123 PyObject * obj0 = 0 ;
18124 PyObject * obj1 = 0 ;
18125 PyObject * obj2 = 0 ;
18126 PyObject * obj3 = 0 ;
18127 PyObject * obj4 = 0 ;
18128 PyObject * obj5 = 0 ;
18129 PyObject * obj6 = 0 ;
18130 char * kwnames[] = {
18131 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18132 };
18133
18134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18136 if (!SWIG_IsOK(res1)) {
18137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18138 }
18139 arg1 = reinterpret_cast< wxDC * >(argp1);
18140 ecode2 = SWIG_AsVal_int(obj1, &val2);
18141 if (!SWIG_IsOK(ecode2)) {
18142 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18143 }
18144 arg2 = static_cast< int >(val2);
18145 ecode3 = SWIG_AsVal_int(obj2, &val3);
18146 if (!SWIG_IsOK(ecode3)) {
18147 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18148 }
18149 arg3 = static_cast< int >(val3);
18150 ecode4 = SWIG_AsVal_int(obj3, &val4);
18151 if (!SWIG_IsOK(ecode4)) {
18152 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18153 }
18154 arg4 = static_cast< int >(val4);
18155 ecode5 = SWIG_AsVal_int(obj4, &val5);
18156 if (!SWIG_IsOK(ecode5)) {
18157 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18158 }
18159 arg5 = static_cast< int >(val5);
18160 ecode6 = SWIG_AsVal_int(obj5, &val6);
18161 if (!SWIG_IsOK(ecode6)) {
18162 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18163 }
18164 arg6 = static_cast< int >(val6);
18165 ecode7 = SWIG_AsVal_int(obj6, &val7);
18166 if (!SWIG_IsOK(ecode7)) {
18167 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18168 }
18169 arg7 = static_cast< int >(val7);
18170 {
18171 PyThreadState* __tstate = wxPyBeginAllowThreads();
18172 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18173 wxPyEndAllowThreads(__tstate);
18174 if (PyErr_Occurred()) SWIG_fail;
18175 }
18176 resultobj = SWIG_Py_Void();
18177 return resultobj;
18178 fail:
18179 return NULL;
18180 }
18181
18182
18183 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18184 PyObject *resultobj = 0;
18185 wxDC *arg1 = (wxDC *) 0 ;
18186 wxPoint *arg2 = 0 ;
18187 wxPoint *arg3 = 0 ;
18188 wxPoint *arg4 = 0 ;
18189 void *argp1 = 0 ;
18190 int res1 = 0 ;
18191 wxPoint temp2 ;
18192 wxPoint temp3 ;
18193 wxPoint temp4 ;
18194 PyObject * obj0 = 0 ;
18195 PyObject * obj1 = 0 ;
18196 PyObject * obj2 = 0 ;
18197 PyObject * obj3 = 0 ;
18198 char * kwnames[] = {
18199 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18200 };
18201
18202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18204 if (!SWIG_IsOK(res1)) {
18205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18206 }
18207 arg1 = reinterpret_cast< wxDC * >(argp1);
18208 {
18209 arg2 = &temp2;
18210 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18211 }
18212 {
18213 arg3 = &temp3;
18214 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18215 }
18216 {
18217 arg4 = &temp4;
18218 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18219 }
18220 {
18221 PyThreadState* __tstate = wxPyBeginAllowThreads();
18222 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18223 wxPyEndAllowThreads(__tstate);
18224 if (PyErr_Occurred()) SWIG_fail;
18225 }
18226 resultobj = SWIG_Py_Void();
18227 return resultobj;
18228 fail:
18229 return NULL;
18230 }
18231
18232
18233 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18234 PyObject *resultobj = 0;
18235 wxDC *arg1 = (wxDC *) 0 ;
18236 int arg2 ;
18237 int arg3 ;
18238 int arg4 ;
18239 int arg5 ;
18240 void *argp1 = 0 ;
18241 int res1 = 0 ;
18242 int val2 ;
18243 int ecode2 = 0 ;
18244 int val3 ;
18245 int ecode3 = 0 ;
18246 int val4 ;
18247 int ecode4 = 0 ;
18248 int val5 ;
18249 int ecode5 = 0 ;
18250 PyObject * obj0 = 0 ;
18251 PyObject * obj1 = 0 ;
18252 PyObject * obj2 = 0 ;
18253 PyObject * obj3 = 0 ;
18254 PyObject * obj4 = 0 ;
18255 char * kwnames[] = {
18256 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18257 };
18258
18259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18261 if (!SWIG_IsOK(res1)) {
18262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18263 }
18264 arg1 = reinterpret_cast< wxDC * >(argp1);
18265 ecode2 = SWIG_AsVal_int(obj1, &val2);
18266 if (!SWIG_IsOK(ecode2)) {
18267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18268 }
18269 arg2 = static_cast< int >(val2);
18270 ecode3 = SWIG_AsVal_int(obj2, &val3);
18271 if (!SWIG_IsOK(ecode3)) {
18272 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18273 }
18274 arg3 = static_cast< int >(val3);
18275 ecode4 = SWIG_AsVal_int(obj3, &val4);
18276 if (!SWIG_IsOK(ecode4)) {
18277 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18278 }
18279 arg4 = static_cast< int >(val4);
18280 ecode5 = SWIG_AsVal_int(obj4, &val5);
18281 if (!SWIG_IsOK(ecode5)) {
18282 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18283 }
18284 arg5 = static_cast< int >(val5);
18285 {
18286 PyThreadState* __tstate = wxPyBeginAllowThreads();
18287 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18288 wxPyEndAllowThreads(__tstate);
18289 if (PyErr_Occurred()) SWIG_fail;
18290 }
18291 resultobj = SWIG_Py_Void();
18292 return resultobj;
18293 fail:
18294 return NULL;
18295 }
18296
18297
18298 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18299 PyObject *resultobj = 0;
18300 wxDC *arg1 = (wxDC *) 0 ;
18301 wxRect *arg2 = 0 ;
18302 void *argp1 = 0 ;
18303 int res1 = 0 ;
18304 wxRect temp2 ;
18305 PyObject * obj0 = 0 ;
18306 PyObject * obj1 = 0 ;
18307 char * kwnames[] = {
18308 (char *) "self",(char *) "rect", NULL
18309 };
18310
18311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18313 if (!SWIG_IsOK(res1)) {
18314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18315 }
18316 arg1 = reinterpret_cast< wxDC * >(argp1);
18317 {
18318 arg2 = &temp2;
18319 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18320 }
18321 {
18322 PyThreadState* __tstate = wxPyBeginAllowThreads();
18323 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18324 wxPyEndAllowThreads(__tstate);
18325 if (PyErr_Occurred()) SWIG_fail;
18326 }
18327 resultobj = SWIG_Py_Void();
18328 return resultobj;
18329 fail:
18330 return NULL;
18331 }
18332
18333
18334 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18335 PyObject *resultobj = 0;
18336 wxDC *arg1 = (wxDC *) 0 ;
18337 int arg2 ;
18338 int arg3 ;
18339 int arg4 ;
18340 int arg5 ;
18341 double arg6 ;
18342 double arg7 ;
18343 void *argp1 = 0 ;
18344 int res1 = 0 ;
18345 int val2 ;
18346 int ecode2 = 0 ;
18347 int val3 ;
18348 int ecode3 = 0 ;
18349 int val4 ;
18350 int ecode4 = 0 ;
18351 int val5 ;
18352 int ecode5 = 0 ;
18353 double val6 ;
18354 int ecode6 = 0 ;
18355 double val7 ;
18356 int ecode7 = 0 ;
18357 PyObject * obj0 = 0 ;
18358 PyObject * obj1 = 0 ;
18359 PyObject * obj2 = 0 ;
18360 PyObject * obj3 = 0 ;
18361 PyObject * obj4 = 0 ;
18362 PyObject * obj5 = 0 ;
18363 PyObject * obj6 = 0 ;
18364 char * kwnames[] = {
18365 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18366 };
18367
18368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18370 if (!SWIG_IsOK(res1)) {
18371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18372 }
18373 arg1 = reinterpret_cast< wxDC * >(argp1);
18374 ecode2 = SWIG_AsVal_int(obj1, &val2);
18375 if (!SWIG_IsOK(ecode2)) {
18376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18377 }
18378 arg2 = static_cast< int >(val2);
18379 ecode3 = SWIG_AsVal_int(obj2, &val3);
18380 if (!SWIG_IsOK(ecode3)) {
18381 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18382 }
18383 arg3 = static_cast< int >(val3);
18384 ecode4 = SWIG_AsVal_int(obj3, &val4);
18385 if (!SWIG_IsOK(ecode4)) {
18386 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18387 }
18388 arg4 = static_cast< int >(val4);
18389 ecode5 = SWIG_AsVal_int(obj4, &val5);
18390 if (!SWIG_IsOK(ecode5)) {
18391 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18392 }
18393 arg5 = static_cast< int >(val5);
18394 ecode6 = SWIG_AsVal_double(obj5, &val6);
18395 if (!SWIG_IsOK(ecode6)) {
18396 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18397 }
18398 arg6 = static_cast< double >(val6);
18399 ecode7 = SWIG_AsVal_double(obj6, &val7);
18400 if (!SWIG_IsOK(ecode7)) {
18401 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18402 }
18403 arg7 = static_cast< double >(val7);
18404 {
18405 PyThreadState* __tstate = wxPyBeginAllowThreads();
18406 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18407 wxPyEndAllowThreads(__tstate);
18408 if (PyErr_Occurred()) SWIG_fail;
18409 }
18410 resultobj = SWIG_Py_Void();
18411 return resultobj;
18412 fail:
18413 return NULL;
18414 }
18415
18416
18417 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18418 PyObject *resultobj = 0;
18419 wxDC *arg1 = (wxDC *) 0 ;
18420 wxPoint *arg2 = 0 ;
18421 wxSize *arg3 = 0 ;
18422 double arg4 ;
18423 double arg5 ;
18424 void *argp1 = 0 ;
18425 int res1 = 0 ;
18426 wxPoint temp2 ;
18427 wxSize temp3 ;
18428 double val4 ;
18429 int ecode4 = 0 ;
18430 double val5 ;
18431 int ecode5 = 0 ;
18432 PyObject * obj0 = 0 ;
18433 PyObject * obj1 = 0 ;
18434 PyObject * obj2 = 0 ;
18435 PyObject * obj3 = 0 ;
18436 PyObject * obj4 = 0 ;
18437 char * kwnames[] = {
18438 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18439 };
18440
18441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18443 if (!SWIG_IsOK(res1)) {
18444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18445 }
18446 arg1 = reinterpret_cast< wxDC * >(argp1);
18447 {
18448 arg2 = &temp2;
18449 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18450 }
18451 {
18452 arg3 = &temp3;
18453 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18454 }
18455 ecode4 = SWIG_AsVal_double(obj3, &val4);
18456 if (!SWIG_IsOK(ecode4)) {
18457 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18458 }
18459 arg4 = static_cast< double >(val4);
18460 ecode5 = SWIG_AsVal_double(obj4, &val5);
18461 if (!SWIG_IsOK(ecode5)) {
18462 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18463 }
18464 arg5 = static_cast< double >(val5);
18465 {
18466 PyThreadState* __tstate = wxPyBeginAllowThreads();
18467 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18468 wxPyEndAllowThreads(__tstate);
18469 if (PyErr_Occurred()) SWIG_fail;
18470 }
18471 resultobj = SWIG_Py_Void();
18472 return resultobj;
18473 fail:
18474 return NULL;
18475 }
18476
18477
18478 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18479 PyObject *resultobj = 0;
18480 wxDC *arg1 = (wxDC *) 0 ;
18481 int arg2 ;
18482 int arg3 ;
18483 void *argp1 = 0 ;
18484 int res1 = 0 ;
18485 int val2 ;
18486 int ecode2 = 0 ;
18487 int val3 ;
18488 int ecode3 = 0 ;
18489 PyObject * obj0 = 0 ;
18490 PyObject * obj1 = 0 ;
18491 PyObject * obj2 = 0 ;
18492 char * kwnames[] = {
18493 (char *) "self",(char *) "x",(char *) "y", NULL
18494 };
18495
18496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18498 if (!SWIG_IsOK(res1)) {
18499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18500 }
18501 arg1 = reinterpret_cast< wxDC * >(argp1);
18502 ecode2 = SWIG_AsVal_int(obj1, &val2);
18503 if (!SWIG_IsOK(ecode2)) {
18504 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18505 }
18506 arg2 = static_cast< int >(val2);
18507 ecode3 = SWIG_AsVal_int(obj2, &val3);
18508 if (!SWIG_IsOK(ecode3)) {
18509 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18510 }
18511 arg3 = static_cast< int >(val3);
18512 {
18513 PyThreadState* __tstate = wxPyBeginAllowThreads();
18514 (arg1)->DrawPoint(arg2,arg3);
18515 wxPyEndAllowThreads(__tstate);
18516 if (PyErr_Occurred()) SWIG_fail;
18517 }
18518 resultobj = SWIG_Py_Void();
18519 return resultobj;
18520 fail:
18521 return NULL;
18522 }
18523
18524
18525 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18526 PyObject *resultobj = 0;
18527 wxDC *arg1 = (wxDC *) 0 ;
18528 wxPoint *arg2 = 0 ;
18529 void *argp1 = 0 ;
18530 int res1 = 0 ;
18531 wxPoint temp2 ;
18532 PyObject * obj0 = 0 ;
18533 PyObject * obj1 = 0 ;
18534 char * kwnames[] = {
18535 (char *) "self",(char *) "pt", NULL
18536 };
18537
18538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18540 if (!SWIG_IsOK(res1)) {
18541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18542 }
18543 arg1 = reinterpret_cast< wxDC * >(argp1);
18544 {
18545 arg2 = &temp2;
18546 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18547 }
18548 {
18549 PyThreadState* __tstate = wxPyBeginAllowThreads();
18550 (arg1)->DrawPoint((wxPoint const &)*arg2);
18551 wxPyEndAllowThreads(__tstate);
18552 if (PyErr_Occurred()) SWIG_fail;
18553 }
18554 resultobj = SWIG_Py_Void();
18555 return resultobj;
18556 fail:
18557 return NULL;
18558 }
18559
18560
18561 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18562 PyObject *resultobj = 0;
18563 wxDC *arg1 = (wxDC *) 0 ;
18564 int arg2 ;
18565 int arg3 ;
18566 int arg4 ;
18567 int arg5 ;
18568 void *argp1 = 0 ;
18569 int res1 = 0 ;
18570 int val2 ;
18571 int ecode2 = 0 ;
18572 int val3 ;
18573 int ecode3 = 0 ;
18574 int val4 ;
18575 int ecode4 = 0 ;
18576 int val5 ;
18577 int ecode5 = 0 ;
18578 PyObject * obj0 = 0 ;
18579 PyObject * obj1 = 0 ;
18580 PyObject * obj2 = 0 ;
18581 PyObject * obj3 = 0 ;
18582 PyObject * obj4 = 0 ;
18583 char * kwnames[] = {
18584 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18585 };
18586
18587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18589 if (!SWIG_IsOK(res1)) {
18590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18591 }
18592 arg1 = reinterpret_cast< wxDC * >(argp1);
18593 ecode2 = SWIG_AsVal_int(obj1, &val2);
18594 if (!SWIG_IsOK(ecode2)) {
18595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18596 }
18597 arg2 = static_cast< int >(val2);
18598 ecode3 = SWIG_AsVal_int(obj2, &val3);
18599 if (!SWIG_IsOK(ecode3)) {
18600 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18601 }
18602 arg3 = static_cast< int >(val3);
18603 ecode4 = SWIG_AsVal_int(obj3, &val4);
18604 if (!SWIG_IsOK(ecode4)) {
18605 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18606 }
18607 arg4 = static_cast< int >(val4);
18608 ecode5 = SWIG_AsVal_int(obj4, &val5);
18609 if (!SWIG_IsOK(ecode5)) {
18610 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18611 }
18612 arg5 = static_cast< int >(val5);
18613 {
18614 PyThreadState* __tstate = wxPyBeginAllowThreads();
18615 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18616 wxPyEndAllowThreads(__tstate);
18617 if (PyErr_Occurred()) SWIG_fail;
18618 }
18619 resultobj = SWIG_Py_Void();
18620 return resultobj;
18621 fail:
18622 return NULL;
18623 }
18624
18625
18626 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18627 PyObject *resultobj = 0;
18628 wxDC *arg1 = (wxDC *) 0 ;
18629 wxRect *arg2 = 0 ;
18630 void *argp1 = 0 ;
18631 int res1 = 0 ;
18632 wxRect temp2 ;
18633 PyObject * obj0 = 0 ;
18634 PyObject * obj1 = 0 ;
18635 char * kwnames[] = {
18636 (char *) "self",(char *) "rect", NULL
18637 };
18638
18639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18641 if (!SWIG_IsOK(res1)) {
18642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18643 }
18644 arg1 = reinterpret_cast< wxDC * >(argp1);
18645 {
18646 arg2 = &temp2;
18647 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18648 }
18649 {
18650 PyThreadState* __tstate = wxPyBeginAllowThreads();
18651 (arg1)->DrawRectangle((wxRect const &)*arg2);
18652 wxPyEndAllowThreads(__tstate);
18653 if (PyErr_Occurred()) SWIG_fail;
18654 }
18655 resultobj = SWIG_Py_Void();
18656 return resultobj;
18657 fail:
18658 return NULL;
18659 }
18660
18661
18662 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18663 PyObject *resultobj = 0;
18664 wxDC *arg1 = (wxDC *) 0 ;
18665 wxPoint *arg2 = 0 ;
18666 wxSize *arg3 = 0 ;
18667 void *argp1 = 0 ;
18668 int res1 = 0 ;
18669 wxPoint temp2 ;
18670 wxSize temp3 ;
18671 PyObject * obj0 = 0 ;
18672 PyObject * obj1 = 0 ;
18673 PyObject * obj2 = 0 ;
18674 char * kwnames[] = {
18675 (char *) "self",(char *) "pt",(char *) "sz", NULL
18676 };
18677
18678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18680 if (!SWIG_IsOK(res1)) {
18681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18682 }
18683 arg1 = reinterpret_cast< wxDC * >(argp1);
18684 {
18685 arg2 = &temp2;
18686 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18687 }
18688 {
18689 arg3 = &temp3;
18690 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18691 }
18692 {
18693 PyThreadState* __tstate = wxPyBeginAllowThreads();
18694 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18695 wxPyEndAllowThreads(__tstate);
18696 if (PyErr_Occurred()) SWIG_fail;
18697 }
18698 resultobj = SWIG_Py_Void();
18699 return resultobj;
18700 fail:
18701 return NULL;
18702 }
18703
18704
18705 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18706 PyObject *resultobj = 0;
18707 wxDC *arg1 = (wxDC *) 0 ;
18708 int arg2 ;
18709 int arg3 ;
18710 int arg4 ;
18711 int arg5 ;
18712 double arg6 ;
18713 void *argp1 = 0 ;
18714 int res1 = 0 ;
18715 int val2 ;
18716 int ecode2 = 0 ;
18717 int val3 ;
18718 int ecode3 = 0 ;
18719 int val4 ;
18720 int ecode4 = 0 ;
18721 int val5 ;
18722 int ecode5 = 0 ;
18723 double val6 ;
18724 int ecode6 = 0 ;
18725 PyObject * obj0 = 0 ;
18726 PyObject * obj1 = 0 ;
18727 PyObject * obj2 = 0 ;
18728 PyObject * obj3 = 0 ;
18729 PyObject * obj4 = 0 ;
18730 PyObject * obj5 = 0 ;
18731 char * kwnames[] = {
18732 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18733 };
18734
18735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18737 if (!SWIG_IsOK(res1)) {
18738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18739 }
18740 arg1 = reinterpret_cast< wxDC * >(argp1);
18741 ecode2 = SWIG_AsVal_int(obj1, &val2);
18742 if (!SWIG_IsOK(ecode2)) {
18743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18744 }
18745 arg2 = static_cast< int >(val2);
18746 ecode3 = SWIG_AsVal_int(obj2, &val3);
18747 if (!SWIG_IsOK(ecode3)) {
18748 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18749 }
18750 arg3 = static_cast< int >(val3);
18751 ecode4 = SWIG_AsVal_int(obj3, &val4);
18752 if (!SWIG_IsOK(ecode4)) {
18753 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18754 }
18755 arg4 = static_cast< int >(val4);
18756 ecode5 = SWIG_AsVal_int(obj4, &val5);
18757 if (!SWIG_IsOK(ecode5)) {
18758 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18759 }
18760 arg5 = static_cast< int >(val5);
18761 ecode6 = SWIG_AsVal_double(obj5, &val6);
18762 if (!SWIG_IsOK(ecode6)) {
18763 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18764 }
18765 arg6 = static_cast< double >(val6);
18766 {
18767 PyThreadState* __tstate = wxPyBeginAllowThreads();
18768 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18769 wxPyEndAllowThreads(__tstate);
18770 if (PyErr_Occurred()) SWIG_fail;
18771 }
18772 resultobj = SWIG_Py_Void();
18773 return resultobj;
18774 fail:
18775 return NULL;
18776 }
18777
18778
18779 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18780 PyObject *resultobj = 0;
18781 wxDC *arg1 = (wxDC *) 0 ;
18782 wxRect *arg2 = 0 ;
18783 double arg3 ;
18784 void *argp1 = 0 ;
18785 int res1 = 0 ;
18786 wxRect temp2 ;
18787 double val3 ;
18788 int ecode3 = 0 ;
18789 PyObject * obj0 = 0 ;
18790 PyObject * obj1 = 0 ;
18791 PyObject * obj2 = 0 ;
18792 char * kwnames[] = {
18793 (char *) "self",(char *) "r",(char *) "radius", NULL
18794 };
18795
18796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18798 if (!SWIG_IsOK(res1)) {
18799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18800 }
18801 arg1 = reinterpret_cast< wxDC * >(argp1);
18802 {
18803 arg2 = &temp2;
18804 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18805 }
18806 ecode3 = SWIG_AsVal_double(obj2, &val3);
18807 if (!SWIG_IsOK(ecode3)) {
18808 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18809 }
18810 arg3 = static_cast< double >(val3);
18811 {
18812 PyThreadState* __tstate = wxPyBeginAllowThreads();
18813 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18814 wxPyEndAllowThreads(__tstate);
18815 if (PyErr_Occurred()) SWIG_fail;
18816 }
18817 resultobj = SWIG_Py_Void();
18818 return resultobj;
18819 fail:
18820 return NULL;
18821 }
18822
18823
18824 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18825 PyObject *resultobj = 0;
18826 wxDC *arg1 = (wxDC *) 0 ;
18827 wxPoint *arg2 = 0 ;
18828 wxSize *arg3 = 0 ;
18829 double arg4 ;
18830 void *argp1 = 0 ;
18831 int res1 = 0 ;
18832 wxPoint temp2 ;
18833 wxSize temp3 ;
18834 double val4 ;
18835 int ecode4 = 0 ;
18836 PyObject * obj0 = 0 ;
18837 PyObject * obj1 = 0 ;
18838 PyObject * obj2 = 0 ;
18839 PyObject * obj3 = 0 ;
18840 char * kwnames[] = {
18841 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18842 };
18843
18844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18846 if (!SWIG_IsOK(res1)) {
18847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18848 }
18849 arg1 = reinterpret_cast< wxDC * >(argp1);
18850 {
18851 arg2 = &temp2;
18852 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18853 }
18854 {
18855 arg3 = &temp3;
18856 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18857 }
18858 ecode4 = SWIG_AsVal_double(obj3, &val4);
18859 if (!SWIG_IsOK(ecode4)) {
18860 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18861 }
18862 arg4 = static_cast< double >(val4);
18863 {
18864 PyThreadState* __tstate = wxPyBeginAllowThreads();
18865 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18866 wxPyEndAllowThreads(__tstate);
18867 if (PyErr_Occurred()) SWIG_fail;
18868 }
18869 resultobj = SWIG_Py_Void();
18870 return resultobj;
18871 fail:
18872 return NULL;
18873 }
18874
18875
18876 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18877 PyObject *resultobj = 0;
18878 wxDC *arg1 = (wxDC *) 0 ;
18879 int arg2 ;
18880 int arg3 ;
18881 int arg4 ;
18882 void *argp1 = 0 ;
18883 int res1 = 0 ;
18884 int val2 ;
18885 int ecode2 = 0 ;
18886 int val3 ;
18887 int ecode3 = 0 ;
18888 int val4 ;
18889 int ecode4 = 0 ;
18890 PyObject * obj0 = 0 ;
18891 PyObject * obj1 = 0 ;
18892 PyObject * obj2 = 0 ;
18893 PyObject * obj3 = 0 ;
18894 char * kwnames[] = {
18895 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18896 };
18897
18898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18900 if (!SWIG_IsOK(res1)) {
18901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18902 }
18903 arg1 = reinterpret_cast< wxDC * >(argp1);
18904 ecode2 = SWIG_AsVal_int(obj1, &val2);
18905 if (!SWIG_IsOK(ecode2)) {
18906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18907 }
18908 arg2 = static_cast< int >(val2);
18909 ecode3 = SWIG_AsVal_int(obj2, &val3);
18910 if (!SWIG_IsOK(ecode3)) {
18911 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18912 }
18913 arg3 = static_cast< int >(val3);
18914 ecode4 = SWIG_AsVal_int(obj3, &val4);
18915 if (!SWIG_IsOK(ecode4)) {
18916 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18917 }
18918 arg4 = static_cast< int >(val4);
18919 {
18920 PyThreadState* __tstate = wxPyBeginAllowThreads();
18921 (arg1)->DrawCircle(arg2,arg3,arg4);
18922 wxPyEndAllowThreads(__tstate);
18923 if (PyErr_Occurred()) SWIG_fail;
18924 }
18925 resultobj = SWIG_Py_Void();
18926 return resultobj;
18927 fail:
18928 return NULL;
18929 }
18930
18931
18932 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18933 PyObject *resultobj = 0;
18934 wxDC *arg1 = (wxDC *) 0 ;
18935 wxPoint *arg2 = 0 ;
18936 int arg3 ;
18937 void *argp1 = 0 ;
18938 int res1 = 0 ;
18939 wxPoint temp2 ;
18940 int val3 ;
18941 int ecode3 = 0 ;
18942 PyObject * obj0 = 0 ;
18943 PyObject * obj1 = 0 ;
18944 PyObject * obj2 = 0 ;
18945 char * kwnames[] = {
18946 (char *) "self",(char *) "pt",(char *) "radius", NULL
18947 };
18948
18949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18951 if (!SWIG_IsOK(res1)) {
18952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18953 }
18954 arg1 = reinterpret_cast< wxDC * >(argp1);
18955 {
18956 arg2 = &temp2;
18957 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18958 }
18959 ecode3 = SWIG_AsVal_int(obj2, &val3);
18960 if (!SWIG_IsOK(ecode3)) {
18961 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18962 }
18963 arg3 = static_cast< int >(val3);
18964 {
18965 PyThreadState* __tstate = wxPyBeginAllowThreads();
18966 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18967 wxPyEndAllowThreads(__tstate);
18968 if (PyErr_Occurred()) SWIG_fail;
18969 }
18970 resultobj = SWIG_Py_Void();
18971 return resultobj;
18972 fail:
18973 return NULL;
18974 }
18975
18976
18977 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18978 PyObject *resultobj = 0;
18979 wxDC *arg1 = (wxDC *) 0 ;
18980 int arg2 ;
18981 int arg3 ;
18982 int arg4 ;
18983 int arg5 ;
18984 void *argp1 = 0 ;
18985 int res1 = 0 ;
18986 int val2 ;
18987 int ecode2 = 0 ;
18988 int val3 ;
18989 int ecode3 = 0 ;
18990 int val4 ;
18991 int ecode4 = 0 ;
18992 int val5 ;
18993 int ecode5 = 0 ;
18994 PyObject * obj0 = 0 ;
18995 PyObject * obj1 = 0 ;
18996 PyObject * obj2 = 0 ;
18997 PyObject * obj3 = 0 ;
18998 PyObject * obj4 = 0 ;
18999 char * kwnames[] = {
19000 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19001 };
19002
19003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19005 if (!SWIG_IsOK(res1)) {
19006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19007 }
19008 arg1 = reinterpret_cast< wxDC * >(argp1);
19009 ecode2 = SWIG_AsVal_int(obj1, &val2);
19010 if (!SWIG_IsOK(ecode2)) {
19011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19012 }
19013 arg2 = static_cast< int >(val2);
19014 ecode3 = SWIG_AsVal_int(obj2, &val3);
19015 if (!SWIG_IsOK(ecode3)) {
19016 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19017 }
19018 arg3 = static_cast< int >(val3);
19019 ecode4 = SWIG_AsVal_int(obj3, &val4);
19020 if (!SWIG_IsOK(ecode4)) {
19021 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19022 }
19023 arg4 = static_cast< int >(val4);
19024 ecode5 = SWIG_AsVal_int(obj4, &val5);
19025 if (!SWIG_IsOK(ecode5)) {
19026 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19027 }
19028 arg5 = static_cast< int >(val5);
19029 {
19030 PyThreadState* __tstate = wxPyBeginAllowThreads();
19031 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19032 wxPyEndAllowThreads(__tstate);
19033 if (PyErr_Occurred()) SWIG_fail;
19034 }
19035 resultobj = SWIG_Py_Void();
19036 return resultobj;
19037 fail:
19038 return NULL;
19039 }
19040
19041
19042 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19043 PyObject *resultobj = 0;
19044 wxDC *arg1 = (wxDC *) 0 ;
19045 wxRect *arg2 = 0 ;
19046 void *argp1 = 0 ;
19047 int res1 = 0 ;
19048 wxRect temp2 ;
19049 PyObject * obj0 = 0 ;
19050 PyObject * obj1 = 0 ;
19051 char * kwnames[] = {
19052 (char *) "self",(char *) "rect", NULL
19053 };
19054
19055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19057 if (!SWIG_IsOK(res1)) {
19058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19059 }
19060 arg1 = reinterpret_cast< wxDC * >(argp1);
19061 {
19062 arg2 = &temp2;
19063 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19064 }
19065 {
19066 PyThreadState* __tstate = wxPyBeginAllowThreads();
19067 (arg1)->DrawEllipse((wxRect const &)*arg2);
19068 wxPyEndAllowThreads(__tstate);
19069 if (PyErr_Occurred()) SWIG_fail;
19070 }
19071 resultobj = SWIG_Py_Void();
19072 return resultobj;
19073 fail:
19074 return NULL;
19075 }
19076
19077
19078 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19079 PyObject *resultobj = 0;
19080 wxDC *arg1 = (wxDC *) 0 ;
19081 wxPoint *arg2 = 0 ;
19082 wxSize *arg3 = 0 ;
19083 void *argp1 = 0 ;
19084 int res1 = 0 ;
19085 wxPoint temp2 ;
19086 wxSize temp3 ;
19087 PyObject * obj0 = 0 ;
19088 PyObject * obj1 = 0 ;
19089 PyObject * obj2 = 0 ;
19090 char * kwnames[] = {
19091 (char *) "self",(char *) "pt",(char *) "sz", NULL
19092 };
19093
19094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19096 if (!SWIG_IsOK(res1)) {
19097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19098 }
19099 arg1 = reinterpret_cast< wxDC * >(argp1);
19100 {
19101 arg2 = &temp2;
19102 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19103 }
19104 {
19105 arg3 = &temp3;
19106 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19107 }
19108 {
19109 PyThreadState* __tstate = wxPyBeginAllowThreads();
19110 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19111 wxPyEndAllowThreads(__tstate);
19112 if (PyErr_Occurred()) SWIG_fail;
19113 }
19114 resultobj = SWIG_Py_Void();
19115 return resultobj;
19116 fail:
19117 return NULL;
19118 }
19119
19120
19121 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19122 PyObject *resultobj = 0;
19123 wxDC *arg1 = (wxDC *) 0 ;
19124 wxIcon *arg2 = 0 ;
19125 int arg3 ;
19126 int arg4 ;
19127 void *argp1 = 0 ;
19128 int res1 = 0 ;
19129 void *argp2 = 0 ;
19130 int res2 = 0 ;
19131 int val3 ;
19132 int ecode3 = 0 ;
19133 int val4 ;
19134 int ecode4 = 0 ;
19135 PyObject * obj0 = 0 ;
19136 PyObject * obj1 = 0 ;
19137 PyObject * obj2 = 0 ;
19138 PyObject * obj3 = 0 ;
19139 char * kwnames[] = {
19140 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19141 };
19142
19143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19145 if (!SWIG_IsOK(res1)) {
19146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19147 }
19148 arg1 = reinterpret_cast< wxDC * >(argp1);
19149 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19150 if (!SWIG_IsOK(res2)) {
19151 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19152 }
19153 if (!argp2) {
19154 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19155 }
19156 arg2 = reinterpret_cast< wxIcon * >(argp2);
19157 ecode3 = SWIG_AsVal_int(obj2, &val3);
19158 if (!SWIG_IsOK(ecode3)) {
19159 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19160 }
19161 arg3 = static_cast< int >(val3);
19162 ecode4 = SWIG_AsVal_int(obj3, &val4);
19163 if (!SWIG_IsOK(ecode4)) {
19164 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19165 }
19166 arg4 = static_cast< int >(val4);
19167 {
19168 PyThreadState* __tstate = wxPyBeginAllowThreads();
19169 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19170 wxPyEndAllowThreads(__tstate);
19171 if (PyErr_Occurred()) SWIG_fail;
19172 }
19173 resultobj = SWIG_Py_Void();
19174 return resultobj;
19175 fail:
19176 return NULL;
19177 }
19178
19179
19180 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19181 PyObject *resultobj = 0;
19182 wxDC *arg1 = (wxDC *) 0 ;
19183 wxIcon *arg2 = 0 ;
19184 wxPoint *arg3 = 0 ;
19185 void *argp1 = 0 ;
19186 int res1 = 0 ;
19187 void *argp2 = 0 ;
19188 int res2 = 0 ;
19189 wxPoint temp3 ;
19190 PyObject * obj0 = 0 ;
19191 PyObject * obj1 = 0 ;
19192 PyObject * obj2 = 0 ;
19193 char * kwnames[] = {
19194 (char *) "self",(char *) "icon",(char *) "pt", NULL
19195 };
19196
19197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19199 if (!SWIG_IsOK(res1)) {
19200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19201 }
19202 arg1 = reinterpret_cast< wxDC * >(argp1);
19203 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19204 if (!SWIG_IsOK(res2)) {
19205 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19206 }
19207 if (!argp2) {
19208 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19209 }
19210 arg2 = reinterpret_cast< wxIcon * >(argp2);
19211 {
19212 arg3 = &temp3;
19213 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19214 }
19215 {
19216 PyThreadState* __tstate = wxPyBeginAllowThreads();
19217 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19218 wxPyEndAllowThreads(__tstate);
19219 if (PyErr_Occurred()) SWIG_fail;
19220 }
19221 resultobj = SWIG_Py_Void();
19222 return resultobj;
19223 fail:
19224 return NULL;
19225 }
19226
19227
19228 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19229 PyObject *resultobj = 0;
19230 wxDC *arg1 = (wxDC *) 0 ;
19231 wxBitmap *arg2 = 0 ;
19232 int arg3 ;
19233 int arg4 ;
19234 bool arg5 = (bool) false ;
19235 void *argp1 = 0 ;
19236 int res1 = 0 ;
19237 void *argp2 = 0 ;
19238 int res2 = 0 ;
19239 int val3 ;
19240 int ecode3 = 0 ;
19241 int val4 ;
19242 int ecode4 = 0 ;
19243 bool val5 ;
19244 int ecode5 = 0 ;
19245 PyObject * obj0 = 0 ;
19246 PyObject * obj1 = 0 ;
19247 PyObject * obj2 = 0 ;
19248 PyObject * obj3 = 0 ;
19249 PyObject * obj4 = 0 ;
19250 char * kwnames[] = {
19251 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19252 };
19253
19254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19256 if (!SWIG_IsOK(res1)) {
19257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19258 }
19259 arg1 = reinterpret_cast< wxDC * >(argp1);
19260 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19261 if (!SWIG_IsOK(res2)) {
19262 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19263 }
19264 if (!argp2) {
19265 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19266 }
19267 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19268 ecode3 = SWIG_AsVal_int(obj2, &val3);
19269 if (!SWIG_IsOK(ecode3)) {
19270 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19271 }
19272 arg3 = static_cast< int >(val3);
19273 ecode4 = SWIG_AsVal_int(obj3, &val4);
19274 if (!SWIG_IsOK(ecode4)) {
19275 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19276 }
19277 arg4 = static_cast< int >(val4);
19278 if (obj4) {
19279 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19280 if (!SWIG_IsOK(ecode5)) {
19281 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19282 }
19283 arg5 = static_cast< bool >(val5);
19284 }
19285 {
19286 PyThreadState* __tstate = wxPyBeginAllowThreads();
19287 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19288 wxPyEndAllowThreads(__tstate);
19289 if (PyErr_Occurred()) SWIG_fail;
19290 }
19291 resultobj = SWIG_Py_Void();
19292 return resultobj;
19293 fail:
19294 return NULL;
19295 }
19296
19297
19298 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19299 PyObject *resultobj = 0;
19300 wxDC *arg1 = (wxDC *) 0 ;
19301 wxBitmap *arg2 = 0 ;
19302 wxPoint *arg3 = 0 ;
19303 bool arg4 = (bool) false ;
19304 void *argp1 = 0 ;
19305 int res1 = 0 ;
19306 void *argp2 = 0 ;
19307 int res2 = 0 ;
19308 wxPoint temp3 ;
19309 bool val4 ;
19310 int ecode4 = 0 ;
19311 PyObject * obj0 = 0 ;
19312 PyObject * obj1 = 0 ;
19313 PyObject * obj2 = 0 ;
19314 PyObject * obj3 = 0 ;
19315 char * kwnames[] = {
19316 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19317 };
19318
19319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19321 if (!SWIG_IsOK(res1)) {
19322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19323 }
19324 arg1 = reinterpret_cast< wxDC * >(argp1);
19325 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19326 if (!SWIG_IsOK(res2)) {
19327 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19328 }
19329 if (!argp2) {
19330 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19331 }
19332 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19333 {
19334 arg3 = &temp3;
19335 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19336 }
19337 if (obj3) {
19338 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19339 if (!SWIG_IsOK(ecode4)) {
19340 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19341 }
19342 arg4 = static_cast< bool >(val4);
19343 }
19344 {
19345 PyThreadState* __tstate = wxPyBeginAllowThreads();
19346 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19347 wxPyEndAllowThreads(__tstate);
19348 if (PyErr_Occurred()) SWIG_fail;
19349 }
19350 resultobj = SWIG_Py_Void();
19351 return resultobj;
19352 fail:
19353 return NULL;
19354 }
19355
19356
19357 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19358 PyObject *resultobj = 0;
19359 wxDC *arg1 = (wxDC *) 0 ;
19360 wxString *arg2 = 0 ;
19361 int arg3 ;
19362 int arg4 ;
19363 void *argp1 = 0 ;
19364 int res1 = 0 ;
19365 bool temp2 = false ;
19366 int val3 ;
19367 int ecode3 = 0 ;
19368 int val4 ;
19369 int ecode4 = 0 ;
19370 PyObject * obj0 = 0 ;
19371 PyObject * obj1 = 0 ;
19372 PyObject * obj2 = 0 ;
19373 PyObject * obj3 = 0 ;
19374 char * kwnames[] = {
19375 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19376 };
19377
19378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19380 if (!SWIG_IsOK(res1)) {
19381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19382 }
19383 arg1 = reinterpret_cast< wxDC * >(argp1);
19384 {
19385 arg2 = wxString_in_helper(obj1);
19386 if (arg2 == NULL) SWIG_fail;
19387 temp2 = true;
19388 }
19389 ecode3 = SWIG_AsVal_int(obj2, &val3);
19390 if (!SWIG_IsOK(ecode3)) {
19391 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19392 }
19393 arg3 = static_cast< int >(val3);
19394 ecode4 = SWIG_AsVal_int(obj3, &val4);
19395 if (!SWIG_IsOK(ecode4)) {
19396 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19397 }
19398 arg4 = static_cast< int >(val4);
19399 {
19400 PyThreadState* __tstate = wxPyBeginAllowThreads();
19401 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19402 wxPyEndAllowThreads(__tstate);
19403 if (PyErr_Occurred()) SWIG_fail;
19404 }
19405 resultobj = SWIG_Py_Void();
19406 {
19407 if (temp2)
19408 delete arg2;
19409 }
19410 return resultobj;
19411 fail:
19412 {
19413 if (temp2)
19414 delete arg2;
19415 }
19416 return NULL;
19417 }
19418
19419
19420 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19421 PyObject *resultobj = 0;
19422 wxDC *arg1 = (wxDC *) 0 ;
19423 wxString *arg2 = 0 ;
19424 wxPoint *arg3 = 0 ;
19425 void *argp1 = 0 ;
19426 int res1 = 0 ;
19427 bool temp2 = false ;
19428 wxPoint temp3 ;
19429 PyObject * obj0 = 0 ;
19430 PyObject * obj1 = 0 ;
19431 PyObject * obj2 = 0 ;
19432 char * kwnames[] = {
19433 (char *) "self",(char *) "text",(char *) "pt", NULL
19434 };
19435
19436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19438 if (!SWIG_IsOK(res1)) {
19439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19440 }
19441 arg1 = reinterpret_cast< wxDC * >(argp1);
19442 {
19443 arg2 = wxString_in_helper(obj1);
19444 if (arg2 == NULL) SWIG_fail;
19445 temp2 = true;
19446 }
19447 {
19448 arg3 = &temp3;
19449 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19450 }
19451 {
19452 PyThreadState* __tstate = wxPyBeginAllowThreads();
19453 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19454 wxPyEndAllowThreads(__tstate);
19455 if (PyErr_Occurred()) SWIG_fail;
19456 }
19457 resultobj = SWIG_Py_Void();
19458 {
19459 if (temp2)
19460 delete arg2;
19461 }
19462 return resultobj;
19463 fail:
19464 {
19465 if (temp2)
19466 delete arg2;
19467 }
19468 return NULL;
19469 }
19470
19471
19472 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19473 PyObject *resultobj = 0;
19474 wxDC *arg1 = (wxDC *) 0 ;
19475 wxString *arg2 = 0 ;
19476 int arg3 ;
19477 int arg4 ;
19478 double arg5 ;
19479 void *argp1 = 0 ;
19480 int res1 = 0 ;
19481 bool temp2 = false ;
19482 int val3 ;
19483 int ecode3 = 0 ;
19484 int val4 ;
19485 int ecode4 = 0 ;
19486 double val5 ;
19487 int ecode5 = 0 ;
19488 PyObject * obj0 = 0 ;
19489 PyObject * obj1 = 0 ;
19490 PyObject * obj2 = 0 ;
19491 PyObject * obj3 = 0 ;
19492 PyObject * obj4 = 0 ;
19493 char * kwnames[] = {
19494 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19495 };
19496
19497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19499 if (!SWIG_IsOK(res1)) {
19500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19501 }
19502 arg1 = reinterpret_cast< wxDC * >(argp1);
19503 {
19504 arg2 = wxString_in_helper(obj1);
19505 if (arg2 == NULL) SWIG_fail;
19506 temp2 = true;
19507 }
19508 ecode3 = SWIG_AsVal_int(obj2, &val3);
19509 if (!SWIG_IsOK(ecode3)) {
19510 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19511 }
19512 arg3 = static_cast< int >(val3);
19513 ecode4 = SWIG_AsVal_int(obj3, &val4);
19514 if (!SWIG_IsOK(ecode4)) {
19515 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19516 }
19517 arg4 = static_cast< int >(val4);
19518 ecode5 = SWIG_AsVal_double(obj4, &val5);
19519 if (!SWIG_IsOK(ecode5)) {
19520 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19521 }
19522 arg5 = static_cast< double >(val5);
19523 {
19524 PyThreadState* __tstate = wxPyBeginAllowThreads();
19525 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19526 wxPyEndAllowThreads(__tstate);
19527 if (PyErr_Occurred()) SWIG_fail;
19528 }
19529 resultobj = SWIG_Py_Void();
19530 {
19531 if (temp2)
19532 delete arg2;
19533 }
19534 return resultobj;
19535 fail:
19536 {
19537 if (temp2)
19538 delete arg2;
19539 }
19540 return NULL;
19541 }
19542
19543
19544 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19545 PyObject *resultobj = 0;
19546 wxDC *arg1 = (wxDC *) 0 ;
19547 wxString *arg2 = 0 ;
19548 wxPoint *arg3 = 0 ;
19549 double arg4 ;
19550 void *argp1 = 0 ;
19551 int res1 = 0 ;
19552 bool temp2 = false ;
19553 wxPoint temp3 ;
19554 double val4 ;
19555 int ecode4 = 0 ;
19556 PyObject * obj0 = 0 ;
19557 PyObject * obj1 = 0 ;
19558 PyObject * obj2 = 0 ;
19559 PyObject * obj3 = 0 ;
19560 char * kwnames[] = {
19561 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19562 };
19563
19564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19566 if (!SWIG_IsOK(res1)) {
19567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19568 }
19569 arg1 = reinterpret_cast< wxDC * >(argp1);
19570 {
19571 arg2 = wxString_in_helper(obj1);
19572 if (arg2 == NULL) SWIG_fail;
19573 temp2 = true;
19574 }
19575 {
19576 arg3 = &temp3;
19577 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19578 }
19579 ecode4 = SWIG_AsVal_double(obj3, &val4);
19580 if (!SWIG_IsOK(ecode4)) {
19581 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19582 }
19583 arg4 = static_cast< double >(val4);
19584 {
19585 PyThreadState* __tstate = wxPyBeginAllowThreads();
19586 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19587 wxPyEndAllowThreads(__tstate);
19588 if (PyErr_Occurred()) SWIG_fail;
19589 }
19590 resultobj = SWIG_Py_Void();
19591 {
19592 if (temp2)
19593 delete arg2;
19594 }
19595 return resultobj;
19596 fail:
19597 {
19598 if (temp2)
19599 delete arg2;
19600 }
19601 return NULL;
19602 }
19603
19604
19605 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19606 PyObject *resultobj = 0;
19607 wxDC *arg1 = (wxDC *) 0 ;
19608 int arg2 ;
19609 int arg3 ;
19610 int arg4 ;
19611 int arg5 ;
19612 wxDC *arg6 = (wxDC *) 0 ;
19613 int arg7 ;
19614 int arg8 ;
19615 int arg9 = (int) wxCOPY ;
19616 bool arg10 = (bool) false ;
19617 int arg11 = (int) -1 ;
19618 int arg12 = (int) -1 ;
19619 bool result;
19620 void *argp1 = 0 ;
19621 int res1 = 0 ;
19622 int val2 ;
19623 int ecode2 = 0 ;
19624 int val3 ;
19625 int ecode3 = 0 ;
19626 int val4 ;
19627 int ecode4 = 0 ;
19628 int val5 ;
19629 int ecode5 = 0 ;
19630 void *argp6 = 0 ;
19631 int res6 = 0 ;
19632 int val7 ;
19633 int ecode7 = 0 ;
19634 int val8 ;
19635 int ecode8 = 0 ;
19636 int val9 ;
19637 int ecode9 = 0 ;
19638 bool val10 ;
19639 int ecode10 = 0 ;
19640 int val11 ;
19641 int ecode11 = 0 ;
19642 int val12 ;
19643 int ecode12 = 0 ;
19644 PyObject * obj0 = 0 ;
19645 PyObject * obj1 = 0 ;
19646 PyObject * obj2 = 0 ;
19647 PyObject * obj3 = 0 ;
19648 PyObject * obj4 = 0 ;
19649 PyObject * obj5 = 0 ;
19650 PyObject * obj6 = 0 ;
19651 PyObject * obj7 = 0 ;
19652 PyObject * obj8 = 0 ;
19653 PyObject * obj9 = 0 ;
19654 PyObject * obj10 = 0 ;
19655 PyObject * obj11 = 0 ;
19656 char * kwnames[] = {
19657 (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
19658 };
19659
19660 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;
19661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19662 if (!SWIG_IsOK(res1)) {
19663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19664 }
19665 arg1 = reinterpret_cast< wxDC * >(argp1);
19666 ecode2 = SWIG_AsVal_int(obj1, &val2);
19667 if (!SWIG_IsOK(ecode2)) {
19668 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19669 }
19670 arg2 = static_cast< int >(val2);
19671 ecode3 = SWIG_AsVal_int(obj2, &val3);
19672 if (!SWIG_IsOK(ecode3)) {
19673 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19674 }
19675 arg3 = static_cast< int >(val3);
19676 ecode4 = SWIG_AsVal_int(obj3, &val4);
19677 if (!SWIG_IsOK(ecode4)) {
19678 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19679 }
19680 arg4 = static_cast< int >(val4);
19681 ecode5 = SWIG_AsVal_int(obj4, &val5);
19682 if (!SWIG_IsOK(ecode5)) {
19683 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19684 }
19685 arg5 = static_cast< int >(val5);
19686 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19687 if (!SWIG_IsOK(res6)) {
19688 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19689 }
19690 arg6 = reinterpret_cast< wxDC * >(argp6);
19691 ecode7 = SWIG_AsVal_int(obj6, &val7);
19692 if (!SWIG_IsOK(ecode7)) {
19693 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19694 }
19695 arg7 = static_cast< int >(val7);
19696 ecode8 = SWIG_AsVal_int(obj7, &val8);
19697 if (!SWIG_IsOK(ecode8)) {
19698 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19699 }
19700 arg8 = static_cast< int >(val8);
19701 if (obj8) {
19702 ecode9 = SWIG_AsVal_int(obj8, &val9);
19703 if (!SWIG_IsOK(ecode9)) {
19704 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19705 }
19706 arg9 = static_cast< int >(val9);
19707 }
19708 if (obj9) {
19709 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19710 if (!SWIG_IsOK(ecode10)) {
19711 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19712 }
19713 arg10 = static_cast< bool >(val10);
19714 }
19715 if (obj10) {
19716 ecode11 = SWIG_AsVal_int(obj10, &val11);
19717 if (!SWIG_IsOK(ecode11)) {
19718 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19719 }
19720 arg11 = static_cast< int >(val11);
19721 }
19722 if (obj11) {
19723 ecode12 = SWIG_AsVal_int(obj11, &val12);
19724 if (!SWIG_IsOK(ecode12)) {
19725 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19726 }
19727 arg12 = static_cast< int >(val12);
19728 }
19729 {
19730 PyThreadState* __tstate = wxPyBeginAllowThreads();
19731 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19732 wxPyEndAllowThreads(__tstate);
19733 if (PyErr_Occurred()) SWIG_fail;
19734 }
19735 {
19736 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19737 }
19738 return resultobj;
19739 fail:
19740 return NULL;
19741 }
19742
19743
19744 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19745 PyObject *resultobj = 0;
19746 wxDC *arg1 = (wxDC *) 0 ;
19747 wxPoint *arg2 = 0 ;
19748 wxSize *arg3 = 0 ;
19749 wxDC *arg4 = (wxDC *) 0 ;
19750 wxPoint *arg5 = 0 ;
19751 int arg6 = (int) wxCOPY ;
19752 bool arg7 = (bool) false ;
19753 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19754 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19755 bool result;
19756 void *argp1 = 0 ;
19757 int res1 = 0 ;
19758 wxPoint temp2 ;
19759 wxSize temp3 ;
19760 void *argp4 = 0 ;
19761 int res4 = 0 ;
19762 wxPoint temp5 ;
19763 int val6 ;
19764 int ecode6 = 0 ;
19765 bool val7 ;
19766 int ecode7 = 0 ;
19767 wxPoint temp8 ;
19768 PyObject * obj0 = 0 ;
19769 PyObject * obj1 = 0 ;
19770 PyObject * obj2 = 0 ;
19771 PyObject * obj3 = 0 ;
19772 PyObject * obj4 = 0 ;
19773 PyObject * obj5 = 0 ;
19774 PyObject * obj6 = 0 ;
19775 PyObject * obj7 = 0 ;
19776 char * kwnames[] = {
19777 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19778 };
19779
19780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19782 if (!SWIG_IsOK(res1)) {
19783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19784 }
19785 arg1 = reinterpret_cast< wxDC * >(argp1);
19786 {
19787 arg2 = &temp2;
19788 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19789 }
19790 {
19791 arg3 = &temp3;
19792 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19793 }
19794 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19795 if (!SWIG_IsOK(res4)) {
19796 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19797 }
19798 arg4 = reinterpret_cast< wxDC * >(argp4);
19799 {
19800 arg5 = &temp5;
19801 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19802 }
19803 if (obj5) {
19804 ecode6 = SWIG_AsVal_int(obj5, &val6);
19805 if (!SWIG_IsOK(ecode6)) {
19806 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19807 }
19808 arg6 = static_cast< int >(val6);
19809 }
19810 if (obj6) {
19811 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19812 if (!SWIG_IsOK(ecode7)) {
19813 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19814 }
19815 arg7 = static_cast< bool >(val7);
19816 }
19817 if (obj7) {
19818 {
19819 arg8 = &temp8;
19820 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
19821 }
19822 }
19823 {
19824 PyThreadState* __tstate = wxPyBeginAllowThreads();
19825 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19826 wxPyEndAllowThreads(__tstate);
19827 if (PyErr_Occurred()) SWIG_fail;
19828 }
19829 {
19830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19831 }
19832 return resultobj;
19833 fail:
19834 return NULL;
19835 }
19836
19837
19838 SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19839 PyObject *resultobj = 0;
19840 wxDC *arg1 = (wxDC *) 0 ;
19841 wxRect *arg2 = (wxRect *) NULL ;
19842 SwigValueWrapper<wxBitmap > result;
19843 void *argp1 = 0 ;
19844 int res1 = 0 ;
19845 void *argp2 = 0 ;
19846 int res2 = 0 ;
19847 PyObject * obj0 = 0 ;
19848 PyObject * obj1 = 0 ;
19849 char * kwnames[] = {
19850 (char *) "self",(char *) "subrect", NULL
19851 };
19852
19853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
19854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19855 if (!SWIG_IsOK(res1)) {
19856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
19857 }
19858 arg1 = reinterpret_cast< wxDC * >(argp1);
19859 if (obj1) {
19860 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
19861 if (!SWIG_IsOK(res2)) {
19862 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
19863 }
19864 arg2 = reinterpret_cast< wxRect * >(argp2);
19865 }
19866 {
19867 PyThreadState* __tstate = wxPyBeginAllowThreads();
19868 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
19869 wxPyEndAllowThreads(__tstate);
19870 if (PyErr_Occurred()) SWIG_fail;
19871 }
19872 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
19873 return resultobj;
19874 fail:
19875 return NULL;
19876 }
19877
19878
19879 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19880 PyObject *resultobj = 0;
19881 wxDC *arg1 = (wxDC *) 0 ;
19882 int arg2 ;
19883 int arg3 ;
19884 int arg4 ;
19885 int arg5 ;
19886 void *argp1 = 0 ;
19887 int res1 = 0 ;
19888 int val2 ;
19889 int ecode2 = 0 ;
19890 int val3 ;
19891 int ecode3 = 0 ;
19892 int val4 ;
19893 int ecode4 = 0 ;
19894 int val5 ;
19895 int ecode5 = 0 ;
19896 PyObject * obj0 = 0 ;
19897 PyObject * obj1 = 0 ;
19898 PyObject * obj2 = 0 ;
19899 PyObject * obj3 = 0 ;
19900 PyObject * obj4 = 0 ;
19901 char * kwnames[] = {
19902 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19903 };
19904
19905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19907 if (!SWIG_IsOK(res1)) {
19908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19909 }
19910 arg1 = reinterpret_cast< wxDC * >(argp1);
19911 ecode2 = SWIG_AsVal_int(obj1, &val2);
19912 if (!SWIG_IsOK(ecode2)) {
19913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19914 }
19915 arg2 = static_cast< int >(val2);
19916 ecode3 = SWIG_AsVal_int(obj2, &val3);
19917 if (!SWIG_IsOK(ecode3)) {
19918 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19919 }
19920 arg3 = static_cast< int >(val3);
19921 ecode4 = SWIG_AsVal_int(obj3, &val4);
19922 if (!SWIG_IsOK(ecode4)) {
19923 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19924 }
19925 arg4 = static_cast< int >(val4);
19926 ecode5 = SWIG_AsVal_int(obj4, &val5);
19927 if (!SWIG_IsOK(ecode5)) {
19928 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19929 }
19930 arg5 = static_cast< int >(val5);
19931 {
19932 PyThreadState* __tstate = wxPyBeginAllowThreads();
19933 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19934 wxPyEndAllowThreads(__tstate);
19935 if (PyErr_Occurred()) SWIG_fail;
19936 }
19937 resultobj = SWIG_Py_Void();
19938 return resultobj;
19939 fail:
19940 return NULL;
19941 }
19942
19943
19944 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19945 PyObject *resultobj = 0;
19946 wxDC *arg1 = (wxDC *) 0 ;
19947 wxPoint *arg2 = 0 ;
19948 wxSize *arg3 = 0 ;
19949 void *argp1 = 0 ;
19950 int res1 = 0 ;
19951 wxPoint temp2 ;
19952 wxSize temp3 ;
19953 PyObject * obj0 = 0 ;
19954 PyObject * obj1 = 0 ;
19955 PyObject * obj2 = 0 ;
19956 char * kwnames[] = {
19957 (char *) "self",(char *) "pt",(char *) "sz", NULL
19958 };
19959
19960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19962 if (!SWIG_IsOK(res1)) {
19963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19964 }
19965 arg1 = reinterpret_cast< wxDC * >(argp1);
19966 {
19967 arg2 = &temp2;
19968 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19969 }
19970 {
19971 arg3 = &temp3;
19972 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19973 }
19974 {
19975 PyThreadState* __tstate = wxPyBeginAllowThreads();
19976 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19977 wxPyEndAllowThreads(__tstate);
19978 if (PyErr_Occurred()) SWIG_fail;
19979 }
19980 resultobj = SWIG_Py_Void();
19981 return resultobj;
19982 fail:
19983 return NULL;
19984 }
19985
19986
19987 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19988 PyObject *resultobj = 0;
19989 wxDC *arg1 = (wxDC *) 0 ;
19990 wxRegion *arg2 = 0 ;
19991 void *argp1 = 0 ;
19992 int res1 = 0 ;
19993 void *argp2 = 0 ;
19994 int res2 = 0 ;
19995 PyObject * obj0 = 0 ;
19996 PyObject * obj1 = 0 ;
19997 char * kwnames[] = {
19998 (char *) "self",(char *) "region", NULL
19999 };
20000
20001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
20002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20003 if (!SWIG_IsOK(res1)) {
20004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20005 }
20006 arg1 = reinterpret_cast< wxDC * >(argp1);
20007 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20008 if (!SWIG_IsOK(res2)) {
20009 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20010 }
20011 if (!argp2) {
20012 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20013 }
20014 arg2 = reinterpret_cast< wxRegion * >(argp2);
20015 {
20016 PyThreadState* __tstate = wxPyBeginAllowThreads();
20017 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20018 wxPyEndAllowThreads(__tstate);
20019 if (PyErr_Occurred()) SWIG_fail;
20020 }
20021 resultobj = SWIG_Py_Void();
20022 return resultobj;
20023 fail:
20024 return NULL;
20025 }
20026
20027
20028 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20029 PyObject *resultobj = 0;
20030 wxDC *arg1 = (wxDC *) 0 ;
20031 wxRect *arg2 = 0 ;
20032 void *argp1 = 0 ;
20033 int res1 = 0 ;
20034 wxRect temp2 ;
20035 PyObject * obj0 = 0 ;
20036 PyObject * obj1 = 0 ;
20037 char * kwnames[] = {
20038 (char *) "self",(char *) "rect", NULL
20039 };
20040
20041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20043 if (!SWIG_IsOK(res1)) {
20044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20045 }
20046 arg1 = reinterpret_cast< wxDC * >(argp1);
20047 {
20048 arg2 = &temp2;
20049 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20050 }
20051 {
20052 PyThreadState* __tstate = wxPyBeginAllowThreads();
20053 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20054 wxPyEndAllowThreads(__tstate);
20055 if (PyErr_Occurred()) SWIG_fail;
20056 }
20057 resultobj = SWIG_Py_Void();
20058 return resultobj;
20059 fail:
20060 return NULL;
20061 }
20062
20063
20064 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20065 PyObject *resultobj = 0;
20066 wxDC *arg1 = (wxDC *) 0 ;
20067 int arg2 ;
20068 wxPoint *arg3 = (wxPoint *) 0 ;
20069 int arg4 = (int) 0 ;
20070 int arg5 = (int) 0 ;
20071 void *argp1 = 0 ;
20072 int res1 = 0 ;
20073 int val4 ;
20074 int ecode4 = 0 ;
20075 int val5 ;
20076 int ecode5 = 0 ;
20077 PyObject * obj0 = 0 ;
20078 PyObject * obj1 = 0 ;
20079 PyObject * obj2 = 0 ;
20080 PyObject * obj3 = 0 ;
20081 char * kwnames[] = {
20082 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20083 };
20084
20085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20087 if (!SWIG_IsOK(res1)) {
20088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20089 }
20090 arg1 = reinterpret_cast< wxDC * >(argp1);
20091 {
20092 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20093 if (arg3 == NULL) SWIG_fail;
20094 }
20095 if (obj2) {
20096 ecode4 = SWIG_AsVal_int(obj2, &val4);
20097 if (!SWIG_IsOK(ecode4)) {
20098 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20099 }
20100 arg4 = static_cast< int >(val4);
20101 }
20102 if (obj3) {
20103 ecode5 = SWIG_AsVal_int(obj3, &val5);
20104 if (!SWIG_IsOK(ecode5)) {
20105 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20106 }
20107 arg5 = static_cast< int >(val5);
20108 }
20109 {
20110 PyThreadState* __tstate = wxPyBeginAllowThreads();
20111 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20112 wxPyEndAllowThreads(__tstate);
20113 if (PyErr_Occurred()) SWIG_fail;
20114 }
20115 resultobj = SWIG_Py_Void();
20116 {
20117 if (arg3) delete [] arg3;
20118 }
20119 return resultobj;
20120 fail:
20121 {
20122 if (arg3) delete [] arg3;
20123 }
20124 return NULL;
20125 }
20126
20127
20128 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20129 PyObject *resultobj = 0;
20130 wxDC *arg1 = (wxDC *) 0 ;
20131 int arg2 ;
20132 wxPoint *arg3 = (wxPoint *) 0 ;
20133 int arg4 = (int) 0 ;
20134 int arg5 = (int) 0 ;
20135 int arg6 = (int) wxODDEVEN_RULE ;
20136 void *argp1 = 0 ;
20137 int res1 = 0 ;
20138 int val4 ;
20139 int ecode4 = 0 ;
20140 int val5 ;
20141 int ecode5 = 0 ;
20142 int val6 ;
20143 int ecode6 = 0 ;
20144 PyObject * obj0 = 0 ;
20145 PyObject * obj1 = 0 ;
20146 PyObject * obj2 = 0 ;
20147 PyObject * obj3 = 0 ;
20148 PyObject * obj4 = 0 ;
20149 char * kwnames[] = {
20150 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20151 };
20152
20153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20155 if (!SWIG_IsOK(res1)) {
20156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20157 }
20158 arg1 = reinterpret_cast< wxDC * >(argp1);
20159 {
20160 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20161 if (arg3 == NULL) SWIG_fail;
20162 }
20163 if (obj2) {
20164 ecode4 = SWIG_AsVal_int(obj2, &val4);
20165 if (!SWIG_IsOK(ecode4)) {
20166 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20167 }
20168 arg4 = static_cast< int >(val4);
20169 }
20170 if (obj3) {
20171 ecode5 = SWIG_AsVal_int(obj3, &val5);
20172 if (!SWIG_IsOK(ecode5)) {
20173 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20174 }
20175 arg5 = static_cast< int >(val5);
20176 }
20177 if (obj4) {
20178 ecode6 = SWIG_AsVal_int(obj4, &val6);
20179 if (!SWIG_IsOK(ecode6)) {
20180 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20181 }
20182 arg6 = static_cast< int >(val6);
20183 }
20184 {
20185 PyThreadState* __tstate = wxPyBeginAllowThreads();
20186 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20187 wxPyEndAllowThreads(__tstate);
20188 if (PyErr_Occurred()) SWIG_fail;
20189 }
20190 resultobj = SWIG_Py_Void();
20191 {
20192 if (arg3) delete [] arg3;
20193 }
20194 return resultobj;
20195 fail:
20196 {
20197 if (arg3) delete [] arg3;
20198 }
20199 return NULL;
20200 }
20201
20202
20203 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20204 PyObject *resultobj = 0;
20205 wxDC *arg1 = (wxDC *) 0 ;
20206 wxString *arg2 = 0 ;
20207 wxRect *arg3 = 0 ;
20208 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20209 int arg5 = (int) -1 ;
20210 void *argp1 = 0 ;
20211 int res1 = 0 ;
20212 bool temp2 = false ;
20213 wxRect temp3 ;
20214 int val4 ;
20215 int ecode4 = 0 ;
20216 int val5 ;
20217 int ecode5 = 0 ;
20218 PyObject * obj0 = 0 ;
20219 PyObject * obj1 = 0 ;
20220 PyObject * obj2 = 0 ;
20221 PyObject * obj3 = 0 ;
20222 PyObject * obj4 = 0 ;
20223 char * kwnames[] = {
20224 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20225 };
20226
20227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20229 if (!SWIG_IsOK(res1)) {
20230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20231 }
20232 arg1 = reinterpret_cast< wxDC * >(argp1);
20233 {
20234 arg2 = wxString_in_helper(obj1);
20235 if (arg2 == NULL) SWIG_fail;
20236 temp2 = true;
20237 }
20238 {
20239 arg3 = &temp3;
20240 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20241 }
20242 if (obj3) {
20243 ecode4 = SWIG_AsVal_int(obj3, &val4);
20244 if (!SWIG_IsOK(ecode4)) {
20245 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20246 }
20247 arg4 = static_cast< int >(val4);
20248 }
20249 if (obj4) {
20250 ecode5 = SWIG_AsVal_int(obj4, &val5);
20251 if (!SWIG_IsOK(ecode5)) {
20252 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20253 }
20254 arg5 = static_cast< int >(val5);
20255 }
20256 {
20257 PyThreadState* __tstate = wxPyBeginAllowThreads();
20258 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20259 wxPyEndAllowThreads(__tstate);
20260 if (PyErr_Occurred()) SWIG_fail;
20261 }
20262 resultobj = SWIG_Py_Void();
20263 {
20264 if (temp2)
20265 delete arg2;
20266 }
20267 return resultobj;
20268 fail:
20269 {
20270 if (temp2)
20271 delete arg2;
20272 }
20273 return NULL;
20274 }
20275
20276
20277 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20278 PyObject *resultobj = 0;
20279 wxDC *arg1 = (wxDC *) 0 ;
20280 wxString *arg2 = 0 ;
20281 wxBitmap *arg3 = 0 ;
20282 wxRect *arg4 = 0 ;
20283 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20284 int arg6 = (int) -1 ;
20285 wxRect result;
20286 void *argp1 = 0 ;
20287 int res1 = 0 ;
20288 bool temp2 = false ;
20289 void *argp3 = 0 ;
20290 int res3 = 0 ;
20291 wxRect temp4 ;
20292 int val5 ;
20293 int ecode5 = 0 ;
20294 int val6 ;
20295 int ecode6 = 0 ;
20296 PyObject * obj0 = 0 ;
20297 PyObject * obj1 = 0 ;
20298 PyObject * obj2 = 0 ;
20299 PyObject * obj3 = 0 ;
20300 PyObject * obj4 = 0 ;
20301 PyObject * obj5 = 0 ;
20302 char * kwnames[] = {
20303 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20304 };
20305
20306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20308 if (!SWIG_IsOK(res1)) {
20309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20310 }
20311 arg1 = reinterpret_cast< wxDC * >(argp1);
20312 {
20313 arg2 = wxString_in_helper(obj1);
20314 if (arg2 == NULL) SWIG_fail;
20315 temp2 = true;
20316 }
20317 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20318 if (!SWIG_IsOK(res3)) {
20319 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20320 }
20321 if (!argp3) {
20322 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20323 }
20324 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20325 {
20326 arg4 = &temp4;
20327 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20328 }
20329 if (obj4) {
20330 ecode5 = SWIG_AsVal_int(obj4, &val5);
20331 if (!SWIG_IsOK(ecode5)) {
20332 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20333 }
20334 arg5 = static_cast< int >(val5);
20335 }
20336 if (obj5) {
20337 ecode6 = SWIG_AsVal_int(obj5, &val6);
20338 if (!SWIG_IsOK(ecode6)) {
20339 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20340 }
20341 arg6 = static_cast< int >(val6);
20342 }
20343 {
20344 PyThreadState* __tstate = wxPyBeginAllowThreads();
20345 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20346 wxPyEndAllowThreads(__tstate);
20347 if (PyErr_Occurred()) SWIG_fail;
20348 }
20349 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20350 {
20351 if (temp2)
20352 delete arg2;
20353 }
20354 return resultobj;
20355 fail:
20356 {
20357 if (temp2)
20358 delete arg2;
20359 }
20360 return NULL;
20361 }
20362
20363
20364 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20365 PyObject *resultobj = 0;
20366 wxDC *arg1 = (wxDC *) 0 ;
20367 int arg2 ;
20368 wxPoint *arg3 = (wxPoint *) 0 ;
20369 void *argp1 = 0 ;
20370 int res1 = 0 ;
20371 PyObject * obj0 = 0 ;
20372 PyObject * obj1 = 0 ;
20373 char * kwnames[] = {
20374 (char *) "self",(char *) "points", NULL
20375 };
20376
20377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20379 if (!SWIG_IsOK(res1)) {
20380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20381 }
20382 arg1 = reinterpret_cast< wxDC * >(argp1);
20383 {
20384 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20385 if (arg3 == NULL) SWIG_fail;
20386 }
20387 {
20388 PyThreadState* __tstate = wxPyBeginAllowThreads();
20389 (arg1)->DrawSpline(arg2,arg3);
20390 wxPyEndAllowThreads(__tstate);
20391 if (PyErr_Occurred()) SWIG_fail;
20392 }
20393 resultobj = SWIG_Py_Void();
20394 {
20395 if (arg3) delete [] arg3;
20396 }
20397 return resultobj;
20398 fail:
20399 {
20400 if (arg3) delete [] arg3;
20401 }
20402 return NULL;
20403 }
20404
20405
20406 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20407 PyObject *resultobj = 0;
20408 wxDC *arg1 = (wxDC *) 0 ;
20409 void *argp1 = 0 ;
20410 int res1 = 0 ;
20411 PyObject *swig_obj[1] ;
20412
20413 if (!args) SWIG_fail;
20414 swig_obj[0] = args;
20415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20416 if (!SWIG_IsOK(res1)) {
20417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20418 }
20419 arg1 = reinterpret_cast< wxDC * >(argp1);
20420 {
20421 PyThreadState* __tstate = wxPyBeginAllowThreads();
20422 (arg1)->Clear();
20423 wxPyEndAllowThreads(__tstate);
20424 if (PyErr_Occurred()) SWIG_fail;
20425 }
20426 resultobj = SWIG_Py_Void();
20427 return resultobj;
20428 fail:
20429 return NULL;
20430 }
20431
20432
20433 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20434 PyObject *resultobj = 0;
20435 wxDC *arg1 = (wxDC *) 0 ;
20436 wxString *arg2 = 0 ;
20437 bool result;
20438 void *argp1 = 0 ;
20439 int res1 = 0 ;
20440 bool temp2 = false ;
20441 PyObject * obj0 = 0 ;
20442 PyObject * obj1 = 0 ;
20443 char * kwnames[] = {
20444 (char *) "self",(char *) "message", NULL
20445 };
20446
20447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20449 if (!SWIG_IsOK(res1)) {
20450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20451 }
20452 arg1 = reinterpret_cast< wxDC * >(argp1);
20453 {
20454 arg2 = wxString_in_helper(obj1);
20455 if (arg2 == NULL) SWIG_fail;
20456 temp2 = true;
20457 }
20458 {
20459 PyThreadState* __tstate = wxPyBeginAllowThreads();
20460 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20461 wxPyEndAllowThreads(__tstate);
20462 if (PyErr_Occurred()) SWIG_fail;
20463 }
20464 {
20465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20466 }
20467 {
20468 if (temp2)
20469 delete arg2;
20470 }
20471 return resultobj;
20472 fail:
20473 {
20474 if (temp2)
20475 delete arg2;
20476 }
20477 return NULL;
20478 }
20479
20480
20481 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20482 PyObject *resultobj = 0;
20483 wxDC *arg1 = (wxDC *) 0 ;
20484 void *argp1 = 0 ;
20485 int res1 = 0 ;
20486 PyObject *swig_obj[1] ;
20487
20488 if (!args) SWIG_fail;
20489 swig_obj[0] = args;
20490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20491 if (!SWIG_IsOK(res1)) {
20492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20493 }
20494 arg1 = reinterpret_cast< wxDC * >(argp1);
20495 {
20496 PyThreadState* __tstate = wxPyBeginAllowThreads();
20497 (arg1)->EndDoc();
20498 wxPyEndAllowThreads(__tstate);
20499 if (PyErr_Occurred()) SWIG_fail;
20500 }
20501 resultobj = SWIG_Py_Void();
20502 return resultobj;
20503 fail:
20504 return NULL;
20505 }
20506
20507
20508 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20509 PyObject *resultobj = 0;
20510 wxDC *arg1 = (wxDC *) 0 ;
20511 void *argp1 = 0 ;
20512 int res1 = 0 ;
20513 PyObject *swig_obj[1] ;
20514
20515 if (!args) SWIG_fail;
20516 swig_obj[0] = args;
20517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20518 if (!SWIG_IsOK(res1)) {
20519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20520 }
20521 arg1 = reinterpret_cast< wxDC * >(argp1);
20522 {
20523 PyThreadState* __tstate = wxPyBeginAllowThreads();
20524 (arg1)->StartPage();
20525 wxPyEndAllowThreads(__tstate);
20526 if (PyErr_Occurred()) SWIG_fail;
20527 }
20528 resultobj = SWIG_Py_Void();
20529 return resultobj;
20530 fail:
20531 return NULL;
20532 }
20533
20534
20535 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20536 PyObject *resultobj = 0;
20537 wxDC *arg1 = (wxDC *) 0 ;
20538 void *argp1 = 0 ;
20539 int res1 = 0 ;
20540 PyObject *swig_obj[1] ;
20541
20542 if (!args) SWIG_fail;
20543 swig_obj[0] = args;
20544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20545 if (!SWIG_IsOK(res1)) {
20546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20547 }
20548 arg1 = reinterpret_cast< wxDC * >(argp1);
20549 {
20550 PyThreadState* __tstate = wxPyBeginAllowThreads();
20551 (arg1)->EndPage();
20552 wxPyEndAllowThreads(__tstate);
20553 if (PyErr_Occurred()) SWIG_fail;
20554 }
20555 resultobj = SWIG_Py_Void();
20556 return resultobj;
20557 fail:
20558 return NULL;
20559 }
20560
20561
20562 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20563 PyObject *resultobj = 0;
20564 wxDC *arg1 = (wxDC *) 0 ;
20565 wxFont *arg2 = 0 ;
20566 void *argp1 = 0 ;
20567 int res1 = 0 ;
20568 void *argp2 = 0 ;
20569 int res2 = 0 ;
20570 PyObject * obj0 = 0 ;
20571 PyObject * obj1 = 0 ;
20572 char * kwnames[] = {
20573 (char *) "self",(char *) "font", NULL
20574 };
20575
20576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20578 if (!SWIG_IsOK(res1)) {
20579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20580 }
20581 arg1 = reinterpret_cast< wxDC * >(argp1);
20582 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20583 if (!SWIG_IsOK(res2)) {
20584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20585 }
20586 if (!argp2) {
20587 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20588 }
20589 arg2 = reinterpret_cast< wxFont * >(argp2);
20590 {
20591 PyThreadState* __tstate = wxPyBeginAllowThreads();
20592 (arg1)->SetFont((wxFont const &)*arg2);
20593 wxPyEndAllowThreads(__tstate);
20594 if (PyErr_Occurred()) SWIG_fail;
20595 }
20596 resultobj = SWIG_Py_Void();
20597 return resultobj;
20598 fail:
20599 return NULL;
20600 }
20601
20602
20603 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20604 PyObject *resultobj = 0;
20605 wxDC *arg1 = (wxDC *) 0 ;
20606 wxPen *arg2 = 0 ;
20607 void *argp1 = 0 ;
20608 int res1 = 0 ;
20609 void *argp2 = 0 ;
20610 int res2 = 0 ;
20611 PyObject * obj0 = 0 ;
20612 PyObject * obj1 = 0 ;
20613 char * kwnames[] = {
20614 (char *) "self",(char *) "pen", NULL
20615 };
20616
20617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20619 if (!SWIG_IsOK(res1)) {
20620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20621 }
20622 arg1 = reinterpret_cast< wxDC * >(argp1);
20623 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20624 if (!SWIG_IsOK(res2)) {
20625 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20626 }
20627 if (!argp2) {
20628 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20629 }
20630 arg2 = reinterpret_cast< wxPen * >(argp2);
20631 {
20632 PyThreadState* __tstate = wxPyBeginAllowThreads();
20633 (arg1)->SetPen((wxPen const &)*arg2);
20634 wxPyEndAllowThreads(__tstate);
20635 if (PyErr_Occurred()) SWIG_fail;
20636 }
20637 resultobj = SWIG_Py_Void();
20638 return resultobj;
20639 fail:
20640 return NULL;
20641 }
20642
20643
20644 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20645 PyObject *resultobj = 0;
20646 wxDC *arg1 = (wxDC *) 0 ;
20647 wxBrush *arg2 = 0 ;
20648 void *argp1 = 0 ;
20649 int res1 = 0 ;
20650 void *argp2 = 0 ;
20651 int res2 = 0 ;
20652 PyObject * obj0 = 0 ;
20653 PyObject * obj1 = 0 ;
20654 char * kwnames[] = {
20655 (char *) "self",(char *) "brush", NULL
20656 };
20657
20658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20660 if (!SWIG_IsOK(res1)) {
20661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20662 }
20663 arg1 = reinterpret_cast< wxDC * >(argp1);
20664 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20665 if (!SWIG_IsOK(res2)) {
20666 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20667 }
20668 if (!argp2) {
20669 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20670 }
20671 arg2 = reinterpret_cast< wxBrush * >(argp2);
20672 {
20673 PyThreadState* __tstate = wxPyBeginAllowThreads();
20674 (arg1)->SetBrush((wxBrush const &)*arg2);
20675 wxPyEndAllowThreads(__tstate);
20676 if (PyErr_Occurred()) SWIG_fail;
20677 }
20678 resultobj = SWIG_Py_Void();
20679 return resultobj;
20680 fail:
20681 return NULL;
20682 }
20683
20684
20685 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20686 PyObject *resultobj = 0;
20687 wxDC *arg1 = (wxDC *) 0 ;
20688 wxBrush *arg2 = 0 ;
20689 void *argp1 = 0 ;
20690 int res1 = 0 ;
20691 void *argp2 = 0 ;
20692 int res2 = 0 ;
20693 PyObject * obj0 = 0 ;
20694 PyObject * obj1 = 0 ;
20695 char * kwnames[] = {
20696 (char *) "self",(char *) "brush", NULL
20697 };
20698
20699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20701 if (!SWIG_IsOK(res1)) {
20702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20703 }
20704 arg1 = reinterpret_cast< wxDC * >(argp1);
20705 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20706 if (!SWIG_IsOK(res2)) {
20707 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20708 }
20709 if (!argp2) {
20710 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20711 }
20712 arg2 = reinterpret_cast< wxBrush * >(argp2);
20713 {
20714 PyThreadState* __tstate = wxPyBeginAllowThreads();
20715 (arg1)->SetBackground((wxBrush const &)*arg2);
20716 wxPyEndAllowThreads(__tstate);
20717 if (PyErr_Occurred()) SWIG_fail;
20718 }
20719 resultobj = SWIG_Py_Void();
20720 return resultobj;
20721 fail:
20722 return NULL;
20723 }
20724
20725
20726 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20727 PyObject *resultobj = 0;
20728 wxDC *arg1 = (wxDC *) 0 ;
20729 int arg2 ;
20730 void *argp1 = 0 ;
20731 int res1 = 0 ;
20732 int val2 ;
20733 int ecode2 = 0 ;
20734 PyObject * obj0 = 0 ;
20735 PyObject * obj1 = 0 ;
20736 char * kwnames[] = {
20737 (char *) "self",(char *) "mode", NULL
20738 };
20739
20740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20742 if (!SWIG_IsOK(res1)) {
20743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20744 }
20745 arg1 = reinterpret_cast< wxDC * >(argp1);
20746 ecode2 = SWIG_AsVal_int(obj1, &val2);
20747 if (!SWIG_IsOK(ecode2)) {
20748 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20749 }
20750 arg2 = static_cast< int >(val2);
20751 {
20752 PyThreadState* __tstate = wxPyBeginAllowThreads();
20753 (arg1)->SetBackgroundMode(arg2);
20754 wxPyEndAllowThreads(__tstate);
20755 if (PyErr_Occurred()) SWIG_fail;
20756 }
20757 resultobj = SWIG_Py_Void();
20758 return resultobj;
20759 fail:
20760 return NULL;
20761 }
20762
20763
20764 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20765 PyObject *resultobj = 0;
20766 wxDC *arg1 = (wxDC *) 0 ;
20767 wxPalette *arg2 = 0 ;
20768 void *argp1 = 0 ;
20769 int res1 = 0 ;
20770 void *argp2 = 0 ;
20771 int res2 = 0 ;
20772 PyObject * obj0 = 0 ;
20773 PyObject * obj1 = 0 ;
20774 char * kwnames[] = {
20775 (char *) "self",(char *) "palette", NULL
20776 };
20777
20778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20780 if (!SWIG_IsOK(res1)) {
20781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20782 }
20783 arg1 = reinterpret_cast< wxDC * >(argp1);
20784 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20785 if (!SWIG_IsOK(res2)) {
20786 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20787 }
20788 if (!argp2) {
20789 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20790 }
20791 arg2 = reinterpret_cast< wxPalette * >(argp2);
20792 {
20793 PyThreadState* __tstate = wxPyBeginAllowThreads();
20794 (arg1)->SetPalette((wxPalette const &)*arg2);
20795 wxPyEndAllowThreads(__tstate);
20796 if (PyErr_Occurred()) SWIG_fail;
20797 }
20798 resultobj = SWIG_Py_Void();
20799 return resultobj;
20800 fail:
20801 return NULL;
20802 }
20803
20804
20805 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20806 PyObject *resultobj = 0;
20807 wxDC *arg1 = (wxDC *) 0 ;
20808 void *argp1 = 0 ;
20809 int res1 = 0 ;
20810 PyObject *swig_obj[1] ;
20811
20812 if (!args) SWIG_fail;
20813 swig_obj[0] = args;
20814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20815 if (!SWIG_IsOK(res1)) {
20816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20817 }
20818 arg1 = reinterpret_cast< wxDC * >(argp1);
20819 {
20820 PyThreadState* __tstate = wxPyBeginAllowThreads();
20821 (arg1)->DestroyClippingRegion();
20822 wxPyEndAllowThreads(__tstate);
20823 if (PyErr_Occurred()) SWIG_fail;
20824 }
20825 resultobj = SWIG_Py_Void();
20826 return resultobj;
20827 fail:
20828 return NULL;
20829 }
20830
20831
20832 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20833 PyObject *resultobj = 0;
20834 wxDC *arg1 = (wxDC *) 0 ;
20835 int *arg2 = (int *) 0 ;
20836 int *arg3 = (int *) 0 ;
20837 int *arg4 = (int *) 0 ;
20838 int *arg5 = (int *) 0 ;
20839 void *argp1 = 0 ;
20840 int res1 = 0 ;
20841 int temp2 ;
20842 int res2 = SWIG_TMPOBJ ;
20843 int temp3 ;
20844 int res3 = SWIG_TMPOBJ ;
20845 int temp4 ;
20846 int res4 = SWIG_TMPOBJ ;
20847 int temp5 ;
20848 int res5 = SWIG_TMPOBJ ;
20849 PyObject *swig_obj[1] ;
20850
20851 arg2 = &temp2;
20852 arg3 = &temp3;
20853 arg4 = &temp4;
20854 arg5 = &temp5;
20855 if (!args) SWIG_fail;
20856 swig_obj[0] = args;
20857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20858 if (!SWIG_IsOK(res1)) {
20859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20860 }
20861 arg1 = reinterpret_cast< wxDC * >(argp1);
20862 {
20863 PyThreadState* __tstate = wxPyBeginAllowThreads();
20864 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20865 wxPyEndAllowThreads(__tstate);
20866 if (PyErr_Occurred()) SWIG_fail;
20867 }
20868 resultobj = SWIG_Py_Void();
20869 if (SWIG_IsTmpObj(res2)) {
20870 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20871 } else {
20872 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20873 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20874 }
20875 if (SWIG_IsTmpObj(res3)) {
20876 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20877 } else {
20878 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20879 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20880 }
20881 if (SWIG_IsTmpObj(res4)) {
20882 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20883 } else {
20884 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20885 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20886 }
20887 if (SWIG_IsTmpObj(res5)) {
20888 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20889 } else {
20890 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20891 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20892 }
20893 return resultobj;
20894 fail:
20895 return NULL;
20896 }
20897
20898
20899 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20900 PyObject *resultobj = 0;
20901 wxDC *arg1 = (wxDC *) 0 ;
20902 wxRect result;
20903 void *argp1 = 0 ;
20904 int res1 = 0 ;
20905 PyObject *swig_obj[1] ;
20906
20907 if (!args) SWIG_fail;
20908 swig_obj[0] = args;
20909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20910 if (!SWIG_IsOK(res1)) {
20911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20912 }
20913 arg1 = reinterpret_cast< wxDC * >(argp1);
20914 {
20915 PyThreadState* __tstate = wxPyBeginAllowThreads();
20916 result = wxDC_GetClippingRect(arg1);
20917 wxPyEndAllowThreads(__tstate);
20918 if (PyErr_Occurred()) SWIG_fail;
20919 }
20920 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20921 return resultobj;
20922 fail:
20923 return NULL;
20924 }
20925
20926
20927 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20928 PyObject *resultobj = 0;
20929 wxDC *arg1 = (wxDC *) 0 ;
20930 int result;
20931 void *argp1 = 0 ;
20932 int res1 = 0 ;
20933 PyObject *swig_obj[1] ;
20934
20935 if (!args) SWIG_fail;
20936 swig_obj[0] = args;
20937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20938 if (!SWIG_IsOK(res1)) {
20939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20940 }
20941 arg1 = reinterpret_cast< wxDC * >(argp1);
20942 {
20943 PyThreadState* __tstate = wxPyBeginAllowThreads();
20944 result = (int)((wxDC const *)arg1)->GetCharHeight();
20945 wxPyEndAllowThreads(__tstate);
20946 if (PyErr_Occurred()) SWIG_fail;
20947 }
20948 resultobj = SWIG_From_int(static_cast< int >(result));
20949 return resultobj;
20950 fail:
20951 return NULL;
20952 }
20953
20954
20955 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20956 PyObject *resultobj = 0;
20957 wxDC *arg1 = (wxDC *) 0 ;
20958 int result;
20959 void *argp1 = 0 ;
20960 int res1 = 0 ;
20961 PyObject *swig_obj[1] ;
20962
20963 if (!args) SWIG_fail;
20964 swig_obj[0] = args;
20965 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20966 if (!SWIG_IsOK(res1)) {
20967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20968 }
20969 arg1 = reinterpret_cast< wxDC * >(argp1);
20970 {
20971 PyThreadState* __tstate = wxPyBeginAllowThreads();
20972 result = (int)((wxDC const *)arg1)->GetCharWidth();
20973 wxPyEndAllowThreads(__tstate);
20974 if (PyErr_Occurred()) SWIG_fail;
20975 }
20976 resultobj = SWIG_From_int(static_cast< int >(result));
20977 return resultobj;
20978 fail:
20979 return NULL;
20980 }
20981
20982
20983 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20984 PyObject *resultobj = 0;
20985 wxDC *arg1 = (wxDC *) 0 ;
20986 wxString *arg2 = 0 ;
20987 int *arg3 = (int *) 0 ;
20988 int *arg4 = (int *) 0 ;
20989 void *argp1 = 0 ;
20990 int res1 = 0 ;
20991 bool temp2 = false ;
20992 int temp3 ;
20993 int res3 = SWIG_TMPOBJ ;
20994 int temp4 ;
20995 int res4 = SWIG_TMPOBJ ;
20996 PyObject * obj0 = 0 ;
20997 PyObject * obj1 = 0 ;
20998 char * kwnames[] = {
20999 (char *) "self",(char *) "string", NULL
21000 };
21001
21002 arg3 = &temp3;
21003 arg4 = &temp4;
21004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21006 if (!SWIG_IsOK(res1)) {
21007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21008 }
21009 arg1 = reinterpret_cast< wxDC * >(argp1);
21010 {
21011 arg2 = wxString_in_helper(obj1);
21012 if (arg2 == NULL) SWIG_fail;
21013 temp2 = true;
21014 }
21015 {
21016 PyThreadState* __tstate = wxPyBeginAllowThreads();
21017 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21018 wxPyEndAllowThreads(__tstate);
21019 if (PyErr_Occurred()) SWIG_fail;
21020 }
21021 resultobj = SWIG_Py_Void();
21022 if (SWIG_IsTmpObj(res3)) {
21023 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21024 } else {
21025 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21026 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21027 }
21028 if (SWIG_IsTmpObj(res4)) {
21029 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21030 } else {
21031 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21032 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21033 }
21034 {
21035 if (temp2)
21036 delete arg2;
21037 }
21038 return resultobj;
21039 fail:
21040 {
21041 if (temp2)
21042 delete arg2;
21043 }
21044 return NULL;
21045 }
21046
21047
21048 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21049 PyObject *resultobj = 0;
21050 wxDC *arg1 = (wxDC *) 0 ;
21051 wxString *arg2 = 0 ;
21052 int *arg3 = (int *) 0 ;
21053 int *arg4 = (int *) 0 ;
21054 int *arg5 = (int *) 0 ;
21055 int *arg6 = (int *) 0 ;
21056 wxFont *arg7 = (wxFont *) NULL ;
21057 void *argp1 = 0 ;
21058 int res1 = 0 ;
21059 bool temp2 = false ;
21060 int temp3 ;
21061 int res3 = SWIG_TMPOBJ ;
21062 int temp4 ;
21063 int res4 = SWIG_TMPOBJ ;
21064 int temp5 ;
21065 int res5 = SWIG_TMPOBJ ;
21066 int temp6 ;
21067 int res6 = SWIG_TMPOBJ ;
21068 void *argp7 = 0 ;
21069 int res7 = 0 ;
21070 PyObject * obj0 = 0 ;
21071 PyObject * obj1 = 0 ;
21072 PyObject * obj2 = 0 ;
21073 char * kwnames[] = {
21074 (char *) "self",(char *) "string",(char *) "font", NULL
21075 };
21076
21077 arg3 = &temp3;
21078 arg4 = &temp4;
21079 arg5 = &temp5;
21080 arg6 = &temp6;
21081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21083 if (!SWIG_IsOK(res1)) {
21084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21085 }
21086 arg1 = reinterpret_cast< wxDC * >(argp1);
21087 {
21088 arg2 = wxString_in_helper(obj1);
21089 if (arg2 == NULL) SWIG_fail;
21090 temp2 = true;
21091 }
21092 if (obj2) {
21093 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21094 if (!SWIG_IsOK(res7)) {
21095 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
21096 }
21097 arg7 = reinterpret_cast< wxFont * >(argp7);
21098 }
21099 {
21100 PyThreadState* __tstate = wxPyBeginAllowThreads();
21101 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21102 wxPyEndAllowThreads(__tstate);
21103 if (PyErr_Occurred()) SWIG_fail;
21104 }
21105 resultobj = SWIG_Py_Void();
21106 if (SWIG_IsTmpObj(res3)) {
21107 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21108 } else {
21109 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21110 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21111 }
21112 if (SWIG_IsTmpObj(res4)) {
21113 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21114 } else {
21115 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21116 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21117 }
21118 if (SWIG_IsTmpObj(res5)) {
21119 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21120 } else {
21121 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21122 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21123 }
21124 if (SWIG_IsTmpObj(res6)) {
21125 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21126 } else {
21127 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21128 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21129 }
21130 {
21131 if (temp2)
21132 delete arg2;
21133 }
21134 return resultobj;
21135 fail:
21136 {
21137 if (temp2)
21138 delete arg2;
21139 }
21140 return NULL;
21141 }
21142
21143
21144 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21145 PyObject *resultobj = 0;
21146 wxDC *arg1 = (wxDC *) 0 ;
21147 wxString *arg2 = 0 ;
21148 int *arg3 = (int *) 0 ;
21149 int *arg4 = (int *) 0 ;
21150 int *arg5 = (int *) 0 ;
21151 wxFont *arg6 = (wxFont *) NULL ;
21152 void *argp1 = 0 ;
21153 int res1 = 0 ;
21154 bool temp2 = false ;
21155 int temp3 ;
21156 int res3 = SWIG_TMPOBJ ;
21157 int temp4 ;
21158 int res4 = SWIG_TMPOBJ ;
21159 int temp5 ;
21160 int res5 = SWIG_TMPOBJ ;
21161 void *argp6 = 0 ;
21162 int res6 = 0 ;
21163 PyObject * obj0 = 0 ;
21164 PyObject * obj1 = 0 ;
21165 PyObject * obj2 = 0 ;
21166 char * kwnames[] = {
21167 (char *) "self",(char *) "text",(char *) "font", NULL
21168 };
21169
21170 arg3 = &temp3;
21171 arg4 = &temp4;
21172 arg5 = &temp5;
21173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21175 if (!SWIG_IsOK(res1)) {
21176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21177 }
21178 arg1 = reinterpret_cast< wxDC * >(argp1);
21179 {
21180 arg2 = wxString_in_helper(obj1);
21181 if (arg2 == NULL) SWIG_fail;
21182 temp2 = true;
21183 }
21184 if (obj2) {
21185 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21186 if (!SWIG_IsOK(res6)) {
21187 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
21188 }
21189 arg6 = reinterpret_cast< wxFont * >(argp6);
21190 }
21191 {
21192 PyThreadState* __tstate = wxPyBeginAllowThreads();
21193 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21194 wxPyEndAllowThreads(__tstate);
21195 if (PyErr_Occurred()) SWIG_fail;
21196 }
21197 resultobj = SWIG_Py_Void();
21198 if (SWIG_IsTmpObj(res3)) {
21199 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21200 } else {
21201 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21202 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21203 }
21204 if (SWIG_IsTmpObj(res4)) {
21205 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21206 } else {
21207 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21208 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21209 }
21210 if (SWIG_IsTmpObj(res5)) {
21211 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21212 } else {
21213 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21214 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21215 }
21216 {
21217 if (temp2)
21218 delete arg2;
21219 }
21220 return resultobj;
21221 fail:
21222 {
21223 if (temp2)
21224 delete arg2;
21225 }
21226 return NULL;
21227 }
21228
21229
21230 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21231 PyObject *resultobj = 0;
21232 wxDC *arg1 = (wxDC *) 0 ;
21233 wxString *arg2 = 0 ;
21234 wxArrayInt result;
21235 void *argp1 = 0 ;
21236 int res1 = 0 ;
21237 bool temp2 = false ;
21238 PyObject * obj0 = 0 ;
21239 PyObject * obj1 = 0 ;
21240 char * kwnames[] = {
21241 (char *) "self",(char *) "text", NULL
21242 };
21243
21244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21246 if (!SWIG_IsOK(res1)) {
21247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21248 }
21249 arg1 = reinterpret_cast< wxDC * >(argp1);
21250 {
21251 arg2 = wxString_in_helper(obj1);
21252 if (arg2 == NULL) SWIG_fail;
21253 temp2 = true;
21254 }
21255 {
21256 PyThreadState* __tstate = wxPyBeginAllowThreads();
21257 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21258 wxPyEndAllowThreads(__tstate);
21259 if (PyErr_Occurred()) SWIG_fail;
21260 }
21261 {
21262 resultobj = wxArrayInt2PyList_helper(result);
21263 }
21264 {
21265 if (temp2)
21266 delete arg2;
21267 }
21268 return resultobj;
21269 fail:
21270 {
21271 if (temp2)
21272 delete arg2;
21273 }
21274 return NULL;
21275 }
21276
21277
21278 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21279 PyObject *resultobj = 0;
21280 wxDC *arg1 = (wxDC *) 0 ;
21281 wxSize result;
21282 void *argp1 = 0 ;
21283 int res1 = 0 ;
21284 PyObject *swig_obj[1] ;
21285
21286 if (!args) SWIG_fail;
21287 swig_obj[0] = args;
21288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21289 if (!SWIG_IsOK(res1)) {
21290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21291 }
21292 arg1 = reinterpret_cast< wxDC * >(argp1);
21293 {
21294 PyThreadState* __tstate = wxPyBeginAllowThreads();
21295 result = (arg1)->GetSize();
21296 wxPyEndAllowThreads(__tstate);
21297 if (PyErr_Occurred()) SWIG_fail;
21298 }
21299 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21300 return resultobj;
21301 fail:
21302 return NULL;
21303 }
21304
21305
21306 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21307 PyObject *resultobj = 0;
21308 wxDC *arg1 = (wxDC *) 0 ;
21309 int *arg2 = (int *) 0 ;
21310 int *arg3 = (int *) 0 ;
21311 void *argp1 = 0 ;
21312 int res1 = 0 ;
21313 int temp2 ;
21314 int res2 = SWIG_TMPOBJ ;
21315 int temp3 ;
21316 int res3 = SWIG_TMPOBJ ;
21317 PyObject *swig_obj[1] ;
21318
21319 arg2 = &temp2;
21320 arg3 = &temp3;
21321 if (!args) SWIG_fail;
21322 swig_obj[0] = args;
21323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21324 if (!SWIG_IsOK(res1)) {
21325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21326 }
21327 arg1 = reinterpret_cast< wxDC * >(argp1);
21328 {
21329 PyThreadState* __tstate = wxPyBeginAllowThreads();
21330 (arg1)->GetSize(arg2,arg3);
21331 wxPyEndAllowThreads(__tstate);
21332 if (PyErr_Occurred()) SWIG_fail;
21333 }
21334 resultobj = SWIG_Py_Void();
21335 if (SWIG_IsTmpObj(res2)) {
21336 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21337 } else {
21338 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21339 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21340 }
21341 if (SWIG_IsTmpObj(res3)) {
21342 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21343 } else {
21344 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21345 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21346 }
21347 return resultobj;
21348 fail:
21349 return NULL;
21350 }
21351
21352
21353 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21354 PyObject *resultobj = 0;
21355 wxDC *arg1 = (wxDC *) 0 ;
21356 wxSize result;
21357 void *argp1 = 0 ;
21358 int res1 = 0 ;
21359 PyObject *swig_obj[1] ;
21360
21361 if (!args) SWIG_fail;
21362 swig_obj[0] = args;
21363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21364 if (!SWIG_IsOK(res1)) {
21365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21366 }
21367 arg1 = reinterpret_cast< wxDC * >(argp1);
21368 {
21369 PyThreadState* __tstate = wxPyBeginAllowThreads();
21370 result = ((wxDC const *)arg1)->GetSizeMM();
21371 wxPyEndAllowThreads(__tstate);
21372 if (PyErr_Occurred()) SWIG_fail;
21373 }
21374 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21375 return resultobj;
21376 fail:
21377 return NULL;
21378 }
21379
21380
21381 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21382 PyObject *resultobj = 0;
21383 wxDC *arg1 = (wxDC *) 0 ;
21384 int *arg2 = (int *) 0 ;
21385 int *arg3 = (int *) 0 ;
21386 void *argp1 = 0 ;
21387 int res1 = 0 ;
21388 int temp2 ;
21389 int res2 = SWIG_TMPOBJ ;
21390 int temp3 ;
21391 int res3 = SWIG_TMPOBJ ;
21392 PyObject *swig_obj[1] ;
21393
21394 arg2 = &temp2;
21395 arg3 = &temp3;
21396 if (!args) SWIG_fail;
21397 swig_obj[0] = args;
21398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21399 if (!SWIG_IsOK(res1)) {
21400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21401 }
21402 arg1 = reinterpret_cast< wxDC * >(argp1);
21403 {
21404 PyThreadState* __tstate = wxPyBeginAllowThreads();
21405 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21406 wxPyEndAllowThreads(__tstate);
21407 if (PyErr_Occurred()) SWIG_fail;
21408 }
21409 resultobj = SWIG_Py_Void();
21410 if (SWIG_IsTmpObj(res2)) {
21411 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21412 } else {
21413 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21414 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21415 }
21416 if (SWIG_IsTmpObj(res3)) {
21417 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21418 } else {
21419 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21420 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21421 }
21422 return resultobj;
21423 fail:
21424 return NULL;
21425 }
21426
21427
21428 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21429 PyObject *resultobj = 0;
21430 wxDC *arg1 = (wxDC *) 0 ;
21431 int arg2 ;
21432 int result;
21433 void *argp1 = 0 ;
21434 int res1 = 0 ;
21435 int val2 ;
21436 int ecode2 = 0 ;
21437 PyObject * obj0 = 0 ;
21438 PyObject * obj1 = 0 ;
21439 char * kwnames[] = {
21440 (char *) "self",(char *) "x", NULL
21441 };
21442
21443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21445 if (!SWIG_IsOK(res1)) {
21446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21447 }
21448 arg1 = reinterpret_cast< wxDC * >(argp1);
21449 ecode2 = SWIG_AsVal_int(obj1, &val2);
21450 if (!SWIG_IsOK(ecode2)) {
21451 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21452 }
21453 arg2 = static_cast< int >(val2);
21454 {
21455 PyThreadState* __tstate = wxPyBeginAllowThreads();
21456 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21457 wxPyEndAllowThreads(__tstate);
21458 if (PyErr_Occurred()) SWIG_fail;
21459 }
21460 resultobj = SWIG_From_int(static_cast< int >(result));
21461 return resultobj;
21462 fail:
21463 return NULL;
21464 }
21465
21466
21467 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21468 PyObject *resultobj = 0;
21469 wxDC *arg1 = (wxDC *) 0 ;
21470 int arg2 ;
21471 int result;
21472 void *argp1 = 0 ;
21473 int res1 = 0 ;
21474 int val2 ;
21475 int ecode2 = 0 ;
21476 PyObject * obj0 = 0 ;
21477 PyObject * obj1 = 0 ;
21478 char * kwnames[] = {
21479 (char *) "self",(char *) "y", NULL
21480 };
21481
21482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21484 if (!SWIG_IsOK(res1)) {
21485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21486 }
21487 arg1 = reinterpret_cast< wxDC * >(argp1);
21488 ecode2 = SWIG_AsVal_int(obj1, &val2);
21489 if (!SWIG_IsOK(ecode2)) {
21490 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21491 }
21492 arg2 = static_cast< int >(val2);
21493 {
21494 PyThreadState* __tstate = wxPyBeginAllowThreads();
21495 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21496 wxPyEndAllowThreads(__tstate);
21497 if (PyErr_Occurred()) SWIG_fail;
21498 }
21499 resultobj = SWIG_From_int(static_cast< int >(result));
21500 return resultobj;
21501 fail:
21502 return NULL;
21503 }
21504
21505
21506 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21507 PyObject *resultobj = 0;
21508 wxDC *arg1 = (wxDC *) 0 ;
21509 int arg2 ;
21510 int result;
21511 void *argp1 = 0 ;
21512 int res1 = 0 ;
21513 int val2 ;
21514 int ecode2 = 0 ;
21515 PyObject * obj0 = 0 ;
21516 PyObject * obj1 = 0 ;
21517 char * kwnames[] = {
21518 (char *) "self",(char *) "x", NULL
21519 };
21520
21521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21523 if (!SWIG_IsOK(res1)) {
21524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21525 }
21526 arg1 = reinterpret_cast< wxDC * >(argp1);
21527 ecode2 = SWIG_AsVal_int(obj1, &val2);
21528 if (!SWIG_IsOK(ecode2)) {
21529 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21530 }
21531 arg2 = static_cast< int >(val2);
21532 {
21533 PyThreadState* __tstate = wxPyBeginAllowThreads();
21534 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21535 wxPyEndAllowThreads(__tstate);
21536 if (PyErr_Occurred()) SWIG_fail;
21537 }
21538 resultobj = SWIG_From_int(static_cast< int >(result));
21539 return resultobj;
21540 fail:
21541 return NULL;
21542 }
21543
21544
21545 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21546 PyObject *resultobj = 0;
21547 wxDC *arg1 = (wxDC *) 0 ;
21548 int arg2 ;
21549 int result;
21550 void *argp1 = 0 ;
21551 int res1 = 0 ;
21552 int val2 ;
21553 int ecode2 = 0 ;
21554 PyObject * obj0 = 0 ;
21555 PyObject * obj1 = 0 ;
21556 char * kwnames[] = {
21557 (char *) "self",(char *) "y", NULL
21558 };
21559
21560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21562 if (!SWIG_IsOK(res1)) {
21563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21564 }
21565 arg1 = reinterpret_cast< wxDC * >(argp1);
21566 ecode2 = SWIG_AsVal_int(obj1, &val2);
21567 if (!SWIG_IsOK(ecode2)) {
21568 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21569 }
21570 arg2 = static_cast< int >(val2);
21571 {
21572 PyThreadState* __tstate = wxPyBeginAllowThreads();
21573 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21574 wxPyEndAllowThreads(__tstate);
21575 if (PyErr_Occurred()) SWIG_fail;
21576 }
21577 resultobj = SWIG_From_int(static_cast< int >(result));
21578 return resultobj;
21579 fail:
21580 return NULL;
21581 }
21582
21583
21584 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21585 PyObject *resultobj = 0;
21586 wxDC *arg1 = (wxDC *) 0 ;
21587 int arg2 ;
21588 int result;
21589 void *argp1 = 0 ;
21590 int res1 = 0 ;
21591 int val2 ;
21592 int ecode2 = 0 ;
21593 PyObject * obj0 = 0 ;
21594 PyObject * obj1 = 0 ;
21595 char * kwnames[] = {
21596 (char *) "self",(char *) "x", NULL
21597 };
21598
21599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21601 if (!SWIG_IsOK(res1)) {
21602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21603 }
21604 arg1 = reinterpret_cast< wxDC * >(argp1);
21605 ecode2 = SWIG_AsVal_int(obj1, &val2);
21606 if (!SWIG_IsOK(ecode2)) {
21607 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21608 }
21609 arg2 = static_cast< int >(val2);
21610 {
21611 PyThreadState* __tstate = wxPyBeginAllowThreads();
21612 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21613 wxPyEndAllowThreads(__tstate);
21614 if (PyErr_Occurred()) SWIG_fail;
21615 }
21616 resultobj = SWIG_From_int(static_cast< int >(result));
21617 return resultobj;
21618 fail:
21619 return NULL;
21620 }
21621
21622
21623 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21624 PyObject *resultobj = 0;
21625 wxDC *arg1 = (wxDC *) 0 ;
21626 int arg2 ;
21627 int result;
21628 void *argp1 = 0 ;
21629 int res1 = 0 ;
21630 int val2 ;
21631 int ecode2 = 0 ;
21632 PyObject * obj0 = 0 ;
21633 PyObject * obj1 = 0 ;
21634 char * kwnames[] = {
21635 (char *) "self",(char *) "y", NULL
21636 };
21637
21638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21640 if (!SWIG_IsOK(res1)) {
21641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21642 }
21643 arg1 = reinterpret_cast< wxDC * >(argp1);
21644 ecode2 = SWIG_AsVal_int(obj1, &val2);
21645 if (!SWIG_IsOK(ecode2)) {
21646 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21647 }
21648 arg2 = static_cast< int >(val2);
21649 {
21650 PyThreadState* __tstate = wxPyBeginAllowThreads();
21651 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21652 wxPyEndAllowThreads(__tstate);
21653 if (PyErr_Occurred()) SWIG_fail;
21654 }
21655 resultobj = SWIG_From_int(static_cast< int >(result));
21656 return resultobj;
21657 fail:
21658 return NULL;
21659 }
21660
21661
21662 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21663 PyObject *resultobj = 0;
21664 wxDC *arg1 = (wxDC *) 0 ;
21665 int arg2 ;
21666 int result;
21667 void *argp1 = 0 ;
21668 int res1 = 0 ;
21669 int val2 ;
21670 int ecode2 = 0 ;
21671 PyObject * obj0 = 0 ;
21672 PyObject * obj1 = 0 ;
21673 char * kwnames[] = {
21674 (char *) "self",(char *) "x", NULL
21675 };
21676
21677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21679 if (!SWIG_IsOK(res1)) {
21680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21681 }
21682 arg1 = reinterpret_cast< wxDC * >(argp1);
21683 ecode2 = SWIG_AsVal_int(obj1, &val2);
21684 if (!SWIG_IsOK(ecode2)) {
21685 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21686 }
21687 arg2 = static_cast< int >(val2);
21688 {
21689 PyThreadState* __tstate = wxPyBeginAllowThreads();
21690 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21691 wxPyEndAllowThreads(__tstate);
21692 if (PyErr_Occurred()) SWIG_fail;
21693 }
21694 resultobj = SWIG_From_int(static_cast< int >(result));
21695 return resultobj;
21696 fail:
21697 return NULL;
21698 }
21699
21700
21701 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21702 PyObject *resultobj = 0;
21703 wxDC *arg1 = (wxDC *) 0 ;
21704 int arg2 ;
21705 int result;
21706 void *argp1 = 0 ;
21707 int res1 = 0 ;
21708 int val2 ;
21709 int ecode2 = 0 ;
21710 PyObject * obj0 = 0 ;
21711 PyObject * obj1 = 0 ;
21712 char * kwnames[] = {
21713 (char *) "self",(char *) "y", NULL
21714 };
21715
21716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21718 if (!SWIG_IsOK(res1)) {
21719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21720 }
21721 arg1 = reinterpret_cast< wxDC * >(argp1);
21722 ecode2 = SWIG_AsVal_int(obj1, &val2);
21723 if (!SWIG_IsOK(ecode2)) {
21724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21725 }
21726 arg2 = static_cast< int >(val2);
21727 {
21728 PyThreadState* __tstate = wxPyBeginAllowThreads();
21729 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21730 wxPyEndAllowThreads(__tstate);
21731 if (PyErr_Occurred()) SWIG_fail;
21732 }
21733 resultobj = SWIG_From_int(static_cast< int >(result));
21734 return resultobj;
21735 fail:
21736 return NULL;
21737 }
21738
21739
21740 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21741 PyObject *resultobj = 0;
21742 wxDC *arg1 = (wxDC *) 0 ;
21743 bool result;
21744 void *argp1 = 0 ;
21745 int res1 = 0 ;
21746 PyObject *swig_obj[1] ;
21747
21748 if (!args) SWIG_fail;
21749 swig_obj[0] = args;
21750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21751 if (!SWIG_IsOK(res1)) {
21752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21753 }
21754 arg1 = reinterpret_cast< wxDC * >(argp1);
21755 {
21756 PyThreadState* __tstate = wxPyBeginAllowThreads();
21757 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21758 wxPyEndAllowThreads(__tstate);
21759 if (PyErr_Occurred()) SWIG_fail;
21760 }
21761 {
21762 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21763 }
21764 return resultobj;
21765 fail:
21766 return NULL;
21767 }
21768
21769
21770 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21771 PyObject *resultobj = 0;
21772 wxDC *arg1 = (wxDC *) 0 ;
21773 bool result;
21774 void *argp1 = 0 ;
21775 int res1 = 0 ;
21776 PyObject *swig_obj[1] ;
21777
21778 if (!args) SWIG_fail;
21779 swig_obj[0] = args;
21780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21781 if (!SWIG_IsOK(res1)) {
21782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21783 }
21784 arg1 = reinterpret_cast< wxDC * >(argp1);
21785 {
21786 PyThreadState* __tstate = wxPyBeginAllowThreads();
21787 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21788 wxPyEndAllowThreads(__tstate);
21789 if (PyErr_Occurred()) SWIG_fail;
21790 }
21791 {
21792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21793 }
21794 return resultobj;
21795 fail:
21796 return NULL;
21797 }
21798
21799
21800 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21801 PyObject *resultobj = 0;
21802 wxDC *arg1 = (wxDC *) 0 ;
21803 int result;
21804 void *argp1 = 0 ;
21805 int res1 = 0 ;
21806 PyObject *swig_obj[1] ;
21807
21808 if (!args) SWIG_fail;
21809 swig_obj[0] = args;
21810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21811 if (!SWIG_IsOK(res1)) {
21812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21813 }
21814 arg1 = reinterpret_cast< wxDC * >(argp1);
21815 {
21816 PyThreadState* __tstate = wxPyBeginAllowThreads();
21817 result = (int)((wxDC const *)arg1)->GetDepth();
21818 wxPyEndAllowThreads(__tstate);
21819 if (PyErr_Occurred()) SWIG_fail;
21820 }
21821 resultobj = SWIG_From_int(static_cast< int >(result));
21822 return resultobj;
21823 fail:
21824 return NULL;
21825 }
21826
21827
21828 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21829 PyObject *resultobj = 0;
21830 wxDC *arg1 = (wxDC *) 0 ;
21831 wxSize result;
21832 void *argp1 = 0 ;
21833 int res1 = 0 ;
21834 PyObject *swig_obj[1] ;
21835
21836 if (!args) SWIG_fail;
21837 swig_obj[0] = args;
21838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21839 if (!SWIG_IsOK(res1)) {
21840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21841 }
21842 arg1 = reinterpret_cast< wxDC * >(argp1);
21843 {
21844 PyThreadState* __tstate = wxPyBeginAllowThreads();
21845 result = ((wxDC const *)arg1)->GetPPI();
21846 wxPyEndAllowThreads(__tstate);
21847 if (PyErr_Occurred()) SWIG_fail;
21848 }
21849 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21850 return resultobj;
21851 fail:
21852 return NULL;
21853 }
21854
21855
21856 SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21857 PyObject *resultobj = 0;
21858 wxDC *arg1 = (wxDC *) 0 ;
21859 bool result;
21860 void *argp1 = 0 ;
21861 int res1 = 0 ;
21862 PyObject *swig_obj[1] ;
21863
21864 if (!args) SWIG_fail;
21865 swig_obj[0] = args;
21866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21867 if (!SWIG_IsOK(res1)) {
21868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
21869 }
21870 arg1 = reinterpret_cast< wxDC * >(argp1);
21871 {
21872 PyThreadState* __tstate = wxPyBeginAllowThreads();
21873 result = (bool)((wxDC const *)arg1)->IsOk();
21874 wxPyEndAllowThreads(__tstate);
21875 if (PyErr_Occurred()) SWIG_fail;
21876 }
21877 {
21878 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21879 }
21880 return resultobj;
21881 fail:
21882 return NULL;
21883 }
21884
21885
21886 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21887 PyObject *resultobj = 0;
21888 wxDC *arg1 = (wxDC *) 0 ;
21889 int result;
21890 void *argp1 = 0 ;
21891 int res1 = 0 ;
21892 PyObject *swig_obj[1] ;
21893
21894 if (!args) SWIG_fail;
21895 swig_obj[0] = args;
21896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21897 if (!SWIG_IsOK(res1)) {
21898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21899 }
21900 arg1 = reinterpret_cast< wxDC * >(argp1);
21901 {
21902 PyThreadState* __tstate = wxPyBeginAllowThreads();
21903 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21904 wxPyEndAllowThreads(__tstate);
21905 if (PyErr_Occurred()) SWIG_fail;
21906 }
21907 resultobj = SWIG_From_int(static_cast< int >(result));
21908 return resultobj;
21909 fail:
21910 return NULL;
21911 }
21912
21913
21914 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21915 PyObject *resultobj = 0;
21916 wxDC *arg1 = (wxDC *) 0 ;
21917 wxBrush *result = 0 ;
21918 void *argp1 = 0 ;
21919 int res1 = 0 ;
21920 PyObject *swig_obj[1] ;
21921
21922 if (!args) SWIG_fail;
21923 swig_obj[0] = args;
21924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21925 if (!SWIG_IsOK(res1)) {
21926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21927 }
21928 arg1 = reinterpret_cast< wxDC * >(argp1);
21929 {
21930 PyThreadState* __tstate = wxPyBeginAllowThreads();
21931 {
21932 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21933 result = (wxBrush *) &_result_ref;
21934 }
21935 wxPyEndAllowThreads(__tstate);
21936 if (PyErr_Occurred()) SWIG_fail;
21937 }
21938 {
21939 wxBrush* resultptr = new wxBrush(*result);
21940 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21941 }
21942 return resultobj;
21943 fail:
21944 return NULL;
21945 }
21946
21947
21948 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21949 PyObject *resultobj = 0;
21950 wxDC *arg1 = (wxDC *) 0 ;
21951 wxBrush *result = 0 ;
21952 void *argp1 = 0 ;
21953 int res1 = 0 ;
21954 PyObject *swig_obj[1] ;
21955
21956 if (!args) SWIG_fail;
21957 swig_obj[0] = args;
21958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21959 if (!SWIG_IsOK(res1)) {
21960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21961 }
21962 arg1 = reinterpret_cast< wxDC * >(argp1);
21963 {
21964 PyThreadState* __tstate = wxPyBeginAllowThreads();
21965 {
21966 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21967 result = (wxBrush *) &_result_ref;
21968 }
21969 wxPyEndAllowThreads(__tstate);
21970 if (PyErr_Occurred()) SWIG_fail;
21971 }
21972 {
21973 wxBrush* resultptr = new wxBrush(*result);
21974 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21975 }
21976 return resultobj;
21977 fail:
21978 return NULL;
21979 }
21980
21981
21982 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21983 PyObject *resultobj = 0;
21984 wxDC *arg1 = (wxDC *) 0 ;
21985 wxFont *result = 0 ;
21986 void *argp1 = 0 ;
21987 int res1 = 0 ;
21988 PyObject *swig_obj[1] ;
21989
21990 if (!args) SWIG_fail;
21991 swig_obj[0] = args;
21992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21993 if (!SWIG_IsOK(res1)) {
21994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21995 }
21996 arg1 = reinterpret_cast< wxDC * >(argp1);
21997 {
21998 PyThreadState* __tstate = wxPyBeginAllowThreads();
21999 {
22000 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
22001 result = (wxFont *) &_result_ref;
22002 }
22003 wxPyEndAllowThreads(__tstate);
22004 if (PyErr_Occurred()) SWIG_fail;
22005 }
22006 {
22007 wxFont* resultptr = new wxFont(*result);
22008 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22009 }
22010 return resultobj;
22011 fail:
22012 return NULL;
22013 }
22014
22015
22016 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22017 PyObject *resultobj = 0;
22018 wxDC *arg1 = (wxDC *) 0 ;
22019 wxPen *result = 0 ;
22020 void *argp1 = 0 ;
22021 int res1 = 0 ;
22022 PyObject *swig_obj[1] ;
22023
22024 if (!args) SWIG_fail;
22025 swig_obj[0] = args;
22026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22027 if (!SWIG_IsOK(res1)) {
22028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22029 }
22030 arg1 = reinterpret_cast< wxDC * >(argp1);
22031 {
22032 PyThreadState* __tstate = wxPyBeginAllowThreads();
22033 {
22034 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22035 result = (wxPen *) &_result_ref;
22036 }
22037 wxPyEndAllowThreads(__tstate);
22038 if (PyErr_Occurred()) SWIG_fail;
22039 }
22040 {
22041 wxPen* resultptr = new wxPen(*result);
22042 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22043 }
22044 return resultobj;
22045 fail:
22046 return NULL;
22047 }
22048
22049
22050 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(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_GetTextBackground" "', 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)->GetTextBackground();
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_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22082 PyObject *resultobj = 0;
22083 wxDC *arg1 = (wxDC *) 0 ;
22084 wxColour *result = 0 ;
22085 void *argp1 = 0 ;
22086 int res1 = 0 ;
22087 PyObject *swig_obj[1] ;
22088
22089 if (!args) SWIG_fail;
22090 swig_obj[0] = args;
22091 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22092 if (!SWIG_IsOK(res1)) {
22093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22094 }
22095 arg1 = reinterpret_cast< wxDC * >(argp1);
22096 {
22097 PyThreadState* __tstate = wxPyBeginAllowThreads();
22098 {
22099 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22100 result = (wxColour *) &_result_ref;
22101 }
22102 wxPyEndAllowThreads(__tstate);
22103 if (PyErr_Occurred()) SWIG_fail;
22104 }
22105 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22106 return resultobj;
22107 fail:
22108 return NULL;
22109 }
22110
22111
22112 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22113 PyObject *resultobj = 0;
22114 wxDC *arg1 = (wxDC *) 0 ;
22115 wxColour *arg2 = 0 ;
22116 void *argp1 = 0 ;
22117 int res1 = 0 ;
22118 wxColour temp2 ;
22119 PyObject * obj0 = 0 ;
22120 PyObject * obj1 = 0 ;
22121 char * kwnames[] = {
22122 (char *) "self",(char *) "colour", NULL
22123 };
22124
22125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22127 if (!SWIG_IsOK(res1)) {
22128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22129 }
22130 arg1 = reinterpret_cast< wxDC * >(argp1);
22131 {
22132 arg2 = &temp2;
22133 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22134 }
22135 {
22136 PyThreadState* __tstate = wxPyBeginAllowThreads();
22137 (arg1)->SetTextForeground((wxColour const &)*arg2);
22138 wxPyEndAllowThreads(__tstate);
22139 if (PyErr_Occurred()) SWIG_fail;
22140 }
22141 resultobj = SWIG_Py_Void();
22142 return resultobj;
22143 fail:
22144 return NULL;
22145 }
22146
22147
22148 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22149 PyObject *resultobj = 0;
22150 wxDC *arg1 = (wxDC *) 0 ;
22151 wxColour *arg2 = 0 ;
22152 void *argp1 = 0 ;
22153 int res1 = 0 ;
22154 wxColour temp2 ;
22155 PyObject * obj0 = 0 ;
22156 PyObject * obj1 = 0 ;
22157 char * kwnames[] = {
22158 (char *) "self",(char *) "colour", NULL
22159 };
22160
22161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22163 if (!SWIG_IsOK(res1)) {
22164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22165 }
22166 arg1 = reinterpret_cast< wxDC * >(argp1);
22167 {
22168 arg2 = &temp2;
22169 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22170 }
22171 {
22172 PyThreadState* __tstate = wxPyBeginAllowThreads();
22173 (arg1)->SetTextBackground((wxColour const &)*arg2);
22174 wxPyEndAllowThreads(__tstate);
22175 if (PyErr_Occurred()) SWIG_fail;
22176 }
22177 resultobj = SWIG_Py_Void();
22178 return resultobj;
22179 fail:
22180 return NULL;
22181 }
22182
22183
22184 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22185 PyObject *resultobj = 0;
22186 wxDC *arg1 = (wxDC *) 0 ;
22187 int result;
22188 void *argp1 = 0 ;
22189 int res1 = 0 ;
22190 PyObject *swig_obj[1] ;
22191
22192 if (!args) SWIG_fail;
22193 swig_obj[0] = args;
22194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22195 if (!SWIG_IsOK(res1)) {
22196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22197 }
22198 arg1 = reinterpret_cast< wxDC * >(argp1);
22199 {
22200 PyThreadState* __tstate = wxPyBeginAllowThreads();
22201 result = (int)((wxDC const *)arg1)->GetMapMode();
22202 wxPyEndAllowThreads(__tstate);
22203 if (PyErr_Occurred()) SWIG_fail;
22204 }
22205 resultobj = SWIG_From_int(static_cast< int >(result));
22206 return resultobj;
22207 fail:
22208 return NULL;
22209 }
22210
22211
22212 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22213 PyObject *resultobj = 0;
22214 wxDC *arg1 = (wxDC *) 0 ;
22215 int arg2 ;
22216 void *argp1 = 0 ;
22217 int res1 = 0 ;
22218 int val2 ;
22219 int ecode2 = 0 ;
22220 PyObject * obj0 = 0 ;
22221 PyObject * obj1 = 0 ;
22222 char * kwnames[] = {
22223 (char *) "self",(char *) "mode", NULL
22224 };
22225
22226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22228 if (!SWIG_IsOK(res1)) {
22229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22230 }
22231 arg1 = reinterpret_cast< wxDC * >(argp1);
22232 ecode2 = SWIG_AsVal_int(obj1, &val2);
22233 if (!SWIG_IsOK(ecode2)) {
22234 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22235 }
22236 arg2 = static_cast< int >(val2);
22237 {
22238 PyThreadState* __tstate = wxPyBeginAllowThreads();
22239 (arg1)->SetMapMode(arg2);
22240 wxPyEndAllowThreads(__tstate);
22241 if (PyErr_Occurred()) SWIG_fail;
22242 }
22243 resultobj = SWIG_Py_Void();
22244 return resultobj;
22245 fail:
22246 return NULL;
22247 }
22248
22249
22250 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22251 PyObject *resultobj = 0;
22252 wxDC *arg1 = (wxDC *) 0 ;
22253 double *arg2 = (double *) 0 ;
22254 double *arg3 = (double *) 0 ;
22255 void *argp1 = 0 ;
22256 int res1 = 0 ;
22257 double temp2 ;
22258 int res2 = SWIG_TMPOBJ ;
22259 double temp3 ;
22260 int res3 = SWIG_TMPOBJ ;
22261 PyObject *swig_obj[1] ;
22262
22263 arg2 = &temp2;
22264 arg3 = &temp3;
22265 if (!args) SWIG_fail;
22266 swig_obj[0] = args;
22267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22268 if (!SWIG_IsOK(res1)) {
22269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22270 }
22271 arg1 = reinterpret_cast< wxDC * >(argp1);
22272 {
22273 PyThreadState* __tstate = wxPyBeginAllowThreads();
22274 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22275 wxPyEndAllowThreads(__tstate);
22276 if (PyErr_Occurred()) SWIG_fail;
22277 }
22278 resultobj = SWIG_Py_Void();
22279 if (SWIG_IsTmpObj(res2)) {
22280 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22281 } else {
22282 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22283 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22284 }
22285 if (SWIG_IsTmpObj(res3)) {
22286 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22287 } else {
22288 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22289 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22290 }
22291 return resultobj;
22292 fail:
22293 return NULL;
22294 }
22295
22296
22297 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22298 PyObject *resultobj = 0;
22299 wxDC *arg1 = (wxDC *) 0 ;
22300 double arg2 ;
22301 double arg3 ;
22302 void *argp1 = 0 ;
22303 int res1 = 0 ;
22304 double val2 ;
22305 int ecode2 = 0 ;
22306 double val3 ;
22307 int ecode3 = 0 ;
22308 PyObject * obj0 = 0 ;
22309 PyObject * obj1 = 0 ;
22310 PyObject * obj2 = 0 ;
22311 char * kwnames[] = {
22312 (char *) "self",(char *) "x",(char *) "y", NULL
22313 };
22314
22315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22317 if (!SWIG_IsOK(res1)) {
22318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22319 }
22320 arg1 = reinterpret_cast< wxDC * >(argp1);
22321 ecode2 = SWIG_AsVal_double(obj1, &val2);
22322 if (!SWIG_IsOK(ecode2)) {
22323 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22324 }
22325 arg2 = static_cast< double >(val2);
22326 ecode3 = SWIG_AsVal_double(obj2, &val3);
22327 if (!SWIG_IsOK(ecode3)) {
22328 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22329 }
22330 arg3 = static_cast< double >(val3);
22331 {
22332 PyThreadState* __tstate = wxPyBeginAllowThreads();
22333 (arg1)->SetUserScale(arg2,arg3);
22334 wxPyEndAllowThreads(__tstate);
22335 if (PyErr_Occurred()) SWIG_fail;
22336 }
22337 resultobj = SWIG_Py_Void();
22338 return resultobj;
22339 fail:
22340 return NULL;
22341 }
22342
22343
22344 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22345 PyObject *resultobj = 0;
22346 wxDC *arg1 = (wxDC *) 0 ;
22347 double *arg2 = (double *) 0 ;
22348 double *arg3 = (double *) 0 ;
22349 void *argp1 = 0 ;
22350 int res1 = 0 ;
22351 double temp2 ;
22352 int res2 = SWIG_TMPOBJ ;
22353 double temp3 ;
22354 int res3 = SWIG_TMPOBJ ;
22355 PyObject *swig_obj[1] ;
22356
22357 arg2 = &temp2;
22358 arg3 = &temp3;
22359 if (!args) SWIG_fail;
22360 swig_obj[0] = args;
22361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22362 if (!SWIG_IsOK(res1)) {
22363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22364 }
22365 arg1 = reinterpret_cast< wxDC * >(argp1);
22366 {
22367 PyThreadState* __tstate = wxPyBeginAllowThreads();
22368 (arg1)->GetLogicalScale(arg2,arg3);
22369 wxPyEndAllowThreads(__tstate);
22370 if (PyErr_Occurred()) SWIG_fail;
22371 }
22372 resultobj = SWIG_Py_Void();
22373 if (SWIG_IsTmpObj(res2)) {
22374 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22375 } else {
22376 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22377 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22378 }
22379 if (SWIG_IsTmpObj(res3)) {
22380 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22381 } else {
22382 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22383 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22384 }
22385 return resultobj;
22386 fail:
22387 return NULL;
22388 }
22389
22390
22391 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22392 PyObject *resultobj = 0;
22393 wxDC *arg1 = (wxDC *) 0 ;
22394 double arg2 ;
22395 double arg3 ;
22396 void *argp1 = 0 ;
22397 int res1 = 0 ;
22398 double val2 ;
22399 int ecode2 = 0 ;
22400 double val3 ;
22401 int ecode3 = 0 ;
22402 PyObject * obj0 = 0 ;
22403 PyObject * obj1 = 0 ;
22404 PyObject * obj2 = 0 ;
22405 char * kwnames[] = {
22406 (char *) "self",(char *) "x",(char *) "y", NULL
22407 };
22408
22409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22411 if (!SWIG_IsOK(res1)) {
22412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22413 }
22414 arg1 = reinterpret_cast< wxDC * >(argp1);
22415 ecode2 = SWIG_AsVal_double(obj1, &val2);
22416 if (!SWIG_IsOK(ecode2)) {
22417 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22418 }
22419 arg2 = static_cast< double >(val2);
22420 ecode3 = SWIG_AsVal_double(obj2, &val3);
22421 if (!SWIG_IsOK(ecode3)) {
22422 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22423 }
22424 arg3 = static_cast< double >(val3);
22425 {
22426 PyThreadState* __tstate = wxPyBeginAllowThreads();
22427 (arg1)->SetLogicalScale(arg2,arg3);
22428 wxPyEndAllowThreads(__tstate);
22429 if (PyErr_Occurred()) SWIG_fail;
22430 }
22431 resultobj = SWIG_Py_Void();
22432 return resultobj;
22433 fail:
22434 return NULL;
22435 }
22436
22437
22438 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22439 PyObject *resultobj = 0;
22440 wxDC *arg1 = (wxDC *) 0 ;
22441 wxPoint result;
22442 void *argp1 = 0 ;
22443 int res1 = 0 ;
22444 PyObject *swig_obj[1] ;
22445
22446 if (!args) SWIG_fail;
22447 swig_obj[0] = args;
22448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22449 if (!SWIG_IsOK(res1)) {
22450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22451 }
22452 arg1 = reinterpret_cast< wxDC * >(argp1);
22453 {
22454 PyThreadState* __tstate = wxPyBeginAllowThreads();
22455 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22456 wxPyEndAllowThreads(__tstate);
22457 if (PyErr_Occurred()) SWIG_fail;
22458 }
22459 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22460 return resultobj;
22461 fail:
22462 return NULL;
22463 }
22464
22465
22466 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22467 PyObject *resultobj = 0;
22468 wxDC *arg1 = (wxDC *) 0 ;
22469 int *arg2 = (int *) 0 ;
22470 int *arg3 = (int *) 0 ;
22471 void *argp1 = 0 ;
22472 int res1 = 0 ;
22473 int temp2 ;
22474 int res2 = SWIG_TMPOBJ ;
22475 int temp3 ;
22476 int res3 = SWIG_TMPOBJ ;
22477 PyObject *swig_obj[1] ;
22478
22479 arg2 = &temp2;
22480 arg3 = &temp3;
22481 if (!args) SWIG_fail;
22482 swig_obj[0] = args;
22483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22484 if (!SWIG_IsOK(res1)) {
22485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22486 }
22487 arg1 = reinterpret_cast< wxDC * >(argp1);
22488 {
22489 PyThreadState* __tstate = wxPyBeginAllowThreads();
22490 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22491 wxPyEndAllowThreads(__tstate);
22492 if (PyErr_Occurred()) SWIG_fail;
22493 }
22494 resultobj = SWIG_Py_Void();
22495 if (SWIG_IsTmpObj(res2)) {
22496 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22497 } else {
22498 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22499 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22500 }
22501 if (SWIG_IsTmpObj(res3)) {
22502 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22503 } else {
22504 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22505 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22506 }
22507 return resultobj;
22508 fail:
22509 return NULL;
22510 }
22511
22512
22513 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22514 PyObject *resultobj = 0;
22515 wxDC *arg1 = (wxDC *) 0 ;
22516 int arg2 ;
22517 int arg3 ;
22518 void *argp1 = 0 ;
22519 int res1 = 0 ;
22520 int val2 ;
22521 int ecode2 = 0 ;
22522 int val3 ;
22523 int ecode3 = 0 ;
22524 PyObject * obj0 = 0 ;
22525 PyObject * obj1 = 0 ;
22526 PyObject * obj2 = 0 ;
22527 char * kwnames[] = {
22528 (char *) "self",(char *) "x",(char *) "y", NULL
22529 };
22530
22531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22533 if (!SWIG_IsOK(res1)) {
22534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22535 }
22536 arg1 = reinterpret_cast< wxDC * >(argp1);
22537 ecode2 = SWIG_AsVal_int(obj1, &val2);
22538 if (!SWIG_IsOK(ecode2)) {
22539 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22540 }
22541 arg2 = static_cast< int >(val2);
22542 ecode3 = SWIG_AsVal_int(obj2, &val3);
22543 if (!SWIG_IsOK(ecode3)) {
22544 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22545 }
22546 arg3 = static_cast< int >(val3);
22547 {
22548 PyThreadState* __tstate = wxPyBeginAllowThreads();
22549 (arg1)->SetLogicalOrigin(arg2,arg3);
22550 wxPyEndAllowThreads(__tstate);
22551 if (PyErr_Occurred()) SWIG_fail;
22552 }
22553 resultobj = SWIG_Py_Void();
22554 return resultobj;
22555 fail:
22556 return NULL;
22557 }
22558
22559
22560 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22561 PyObject *resultobj = 0;
22562 wxDC *arg1 = (wxDC *) 0 ;
22563 wxPoint *arg2 = 0 ;
22564 void *argp1 = 0 ;
22565 int res1 = 0 ;
22566 wxPoint temp2 ;
22567 PyObject * obj0 = 0 ;
22568 PyObject * obj1 = 0 ;
22569 char * kwnames[] = {
22570 (char *) "self",(char *) "point", NULL
22571 };
22572
22573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22575 if (!SWIG_IsOK(res1)) {
22576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22577 }
22578 arg1 = reinterpret_cast< wxDC * >(argp1);
22579 {
22580 arg2 = &temp2;
22581 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22582 }
22583 {
22584 PyThreadState* __tstate = wxPyBeginAllowThreads();
22585 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22586 wxPyEndAllowThreads(__tstate);
22587 if (PyErr_Occurred()) SWIG_fail;
22588 }
22589 resultobj = SWIG_Py_Void();
22590 return resultobj;
22591 fail:
22592 return NULL;
22593 }
22594
22595
22596 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22597 PyObject *resultobj = 0;
22598 wxDC *arg1 = (wxDC *) 0 ;
22599 wxPoint result;
22600 void *argp1 = 0 ;
22601 int res1 = 0 ;
22602 PyObject *swig_obj[1] ;
22603
22604 if (!args) SWIG_fail;
22605 swig_obj[0] = args;
22606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22607 if (!SWIG_IsOK(res1)) {
22608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22609 }
22610 arg1 = reinterpret_cast< wxDC * >(argp1);
22611 {
22612 PyThreadState* __tstate = wxPyBeginAllowThreads();
22613 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22614 wxPyEndAllowThreads(__tstate);
22615 if (PyErr_Occurred()) SWIG_fail;
22616 }
22617 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22618 return resultobj;
22619 fail:
22620 return NULL;
22621 }
22622
22623
22624 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22625 PyObject *resultobj = 0;
22626 wxDC *arg1 = (wxDC *) 0 ;
22627 int *arg2 = (int *) 0 ;
22628 int *arg3 = (int *) 0 ;
22629 void *argp1 = 0 ;
22630 int res1 = 0 ;
22631 int temp2 ;
22632 int res2 = SWIG_TMPOBJ ;
22633 int temp3 ;
22634 int res3 = SWIG_TMPOBJ ;
22635 PyObject *swig_obj[1] ;
22636
22637 arg2 = &temp2;
22638 arg3 = &temp3;
22639 if (!args) SWIG_fail;
22640 swig_obj[0] = args;
22641 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22642 if (!SWIG_IsOK(res1)) {
22643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22644 }
22645 arg1 = reinterpret_cast< wxDC * >(argp1);
22646 {
22647 PyThreadState* __tstate = wxPyBeginAllowThreads();
22648 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22649 wxPyEndAllowThreads(__tstate);
22650 if (PyErr_Occurred()) SWIG_fail;
22651 }
22652 resultobj = SWIG_Py_Void();
22653 if (SWIG_IsTmpObj(res2)) {
22654 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22655 } else {
22656 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22657 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22658 }
22659 if (SWIG_IsTmpObj(res3)) {
22660 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22661 } else {
22662 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22663 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22664 }
22665 return resultobj;
22666 fail:
22667 return NULL;
22668 }
22669
22670
22671 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22672 PyObject *resultobj = 0;
22673 wxDC *arg1 = (wxDC *) 0 ;
22674 int arg2 ;
22675 int arg3 ;
22676 void *argp1 = 0 ;
22677 int res1 = 0 ;
22678 int val2 ;
22679 int ecode2 = 0 ;
22680 int val3 ;
22681 int ecode3 = 0 ;
22682 PyObject * obj0 = 0 ;
22683 PyObject * obj1 = 0 ;
22684 PyObject * obj2 = 0 ;
22685 char * kwnames[] = {
22686 (char *) "self",(char *) "x",(char *) "y", NULL
22687 };
22688
22689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22691 if (!SWIG_IsOK(res1)) {
22692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22693 }
22694 arg1 = reinterpret_cast< wxDC * >(argp1);
22695 ecode2 = SWIG_AsVal_int(obj1, &val2);
22696 if (!SWIG_IsOK(ecode2)) {
22697 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22698 }
22699 arg2 = static_cast< int >(val2);
22700 ecode3 = SWIG_AsVal_int(obj2, &val3);
22701 if (!SWIG_IsOK(ecode3)) {
22702 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22703 }
22704 arg3 = static_cast< int >(val3);
22705 {
22706 PyThreadState* __tstate = wxPyBeginAllowThreads();
22707 (arg1)->SetDeviceOrigin(arg2,arg3);
22708 wxPyEndAllowThreads(__tstate);
22709 if (PyErr_Occurred()) SWIG_fail;
22710 }
22711 resultobj = SWIG_Py_Void();
22712 return resultobj;
22713 fail:
22714 return NULL;
22715 }
22716
22717
22718 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22719 PyObject *resultobj = 0;
22720 wxDC *arg1 = (wxDC *) 0 ;
22721 wxPoint *arg2 = 0 ;
22722 void *argp1 = 0 ;
22723 int res1 = 0 ;
22724 wxPoint temp2 ;
22725 PyObject * obj0 = 0 ;
22726 PyObject * obj1 = 0 ;
22727 char * kwnames[] = {
22728 (char *) "self",(char *) "point", NULL
22729 };
22730
22731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22733 if (!SWIG_IsOK(res1)) {
22734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22735 }
22736 arg1 = reinterpret_cast< wxDC * >(argp1);
22737 {
22738 arg2 = &temp2;
22739 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22740 }
22741 {
22742 PyThreadState* __tstate = wxPyBeginAllowThreads();
22743 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22744 wxPyEndAllowThreads(__tstate);
22745 if (PyErr_Occurred()) SWIG_fail;
22746 }
22747 resultobj = SWIG_Py_Void();
22748 return resultobj;
22749 fail:
22750 return NULL;
22751 }
22752
22753
22754 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22755 PyObject *resultobj = 0;
22756 wxDC *arg1 = (wxDC *) 0 ;
22757 bool arg2 ;
22758 bool arg3 ;
22759 void *argp1 = 0 ;
22760 int res1 = 0 ;
22761 bool val2 ;
22762 int ecode2 = 0 ;
22763 bool val3 ;
22764 int ecode3 = 0 ;
22765 PyObject * obj0 = 0 ;
22766 PyObject * obj1 = 0 ;
22767 PyObject * obj2 = 0 ;
22768 char * kwnames[] = {
22769 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22770 };
22771
22772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22774 if (!SWIG_IsOK(res1)) {
22775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22776 }
22777 arg1 = reinterpret_cast< wxDC * >(argp1);
22778 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22779 if (!SWIG_IsOK(ecode2)) {
22780 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22781 }
22782 arg2 = static_cast< bool >(val2);
22783 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22784 if (!SWIG_IsOK(ecode3)) {
22785 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22786 }
22787 arg3 = static_cast< bool >(val3);
22788 {
22789 PyThreadState* __tstate = wxPyBeginAllowThreads();
22790 (arg1)->SetAxisOrientation(arg2,arg3);
22791 wxPyEndAllowThreads(__tstate);
22792 if (PyErr_Occurred()) SWIG_fail;
22793 }
22794 resultobj = SWIG_Py_Void();
22795 return resultobj;
22796 fail:
22797 return NULL;
22798 }
22799
22800
22801 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22802 PyObject *resultobj = 0;
22803 wxDC *arg1 = (wxDC *) 0 ;
22804 int result;
22805 void *argp1 = 0 ;
22806 int res1 = 0 ;
22807 PyObject *swig_obj[1] ;
22808
22809 if (!args) SWIG_fail;
22810 swig_obj[0] = args;
22811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22812 if (!SWIG_IsOK(res1)) {
22813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22814 }
22815 arg1 = reinterpret_cast< wxDC * >(argp1);
22816 {
22817 PyThreadState* __tstate = wxPyBeginAllowThreads();
22818 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22819 wxPyEndAllowThreads(__tstate);
22820 if (PyErr_Occurred()) SWIG_fail;
22821 }
22822 resultobj = SWIG_From_int(static_cast< int >(result));
22823 return resultobj;
22824 fail:
22825 return NULL;
22826 }
22827
22828
22829 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22830 PyObject *resultobj = 0;
22831 wxDC *arg1 = (wxDC *) 0 ;
22832 int arg2 ;
22833 void *argp1 = 0 ;
22834 int res1 = 0 ;
22835 int val2 ;
22836 int ecode2 = 0 ;
22837 PyObject * obj0 = 0 ;
22838 PyObject * obj1 = 0 ;
22839 char * kwnames[] = {
22840 (char *) "self",(char *) "function", NULL
22841 };
22842
22843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22845 if (!SWIG_IsOK(res1)) {
22846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22847 }
22848 arg1 = reinterpret_cast< wxDC * >(argp1);
22849 ecode2 = SWIG_AsVal_int(obj1, &val2);
22850 if (!SWIG_IsOK(ecode2)) {
22851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22852 }
22853 arg2 = static_cast< int >(val2);
22854 {
22855 PyThreadState* __tstate = wxPyBeginAllowThreads();
22856 (arg1)->SetLogicalFunction(arg2);
22857 wxPyEndAllowThreads(__tstate);
22858 if (PyErr_Occurred()) SWIG_fail;
22859 }
22860 resultobj = SWIG_Py_Void();
22861 return resultobj;
22862 fail:
22863 return NULL;
22864 }
22865
22866
22867 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22868 PyObject *resultobj = 0;
22869 wxDC *arg1 = (wxDC *) 0 ;
22870 void *argp1 = 0 ;
22871 int res1 = 0 ;
22872 PyObject *swig_obj[1] ;
22873
22874 if (!args) SWIG_fail;
22875 swig_obj[0] = args;
22876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22877 if (!SWIG_IsOK(res1)) {
22878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22879 }
22880 arg1 = reinterpret_cast< wxDC * >(argp1);
22881 {
22882 PyThreadState* __tstate = wxPyBeginAllowThreads();
22883 (arg1)->ComputeScaleAndOrigin();
22884 wxPyEndAllowThreads(__tstate);
22885 if (PyErr_Occurred()) SWIG_fail;
22886 }
22887 resultobj = SWIG_Py_Void();
22888 return resultobj;
22889 fail:
22890 return NULL;
22891 }
22892
22893
22894 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22895 PyObject *resultobj = 0;
22896 wxDC *arg1 = (wxDC *) 0 ;
22897 int arg2 ;
22898 int arg3 ;
22899 void *argp1 = 0 ;
22900 int res1 = 0 ;
22901 int val2 ;
22902 int ecode2 = 0 ;
22903 int val3 ;
22904 int ecode3 = 0 ;
22905 PyObject * obj0 = 0 ;
22906 PyObject * obj1 = 0 ;
22907 PyObject * obj2 = 0 ;
22908 char * kwnames[] = {
22909 (char *) "self",(char *) "x",(char *) "y", NULL
22910 };
22911
22912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22914 if (!SWIG_IsOK(res1)) {
22915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22916 }
22917 arg1 = reinterpret_cast< wxDC * >(argp1);
22918 ecode2 = SWIG_AsVal_int(obj1, &val2);
22919 if (!SWIG_IsOK(ecode2)) {
22920 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22921 }
22922 arg2 = static_cast< int >(val2);
22923 ecode3 = SWIG_AsVal_int(obj2, &val3);
22924 if (!SWIG_IsOK(ecode3)) {
22925 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22926 }
22927 arg3 = static_cast< int >(val3);
22928 {
22929 PyThreadState* __tstate = wxPyBeginAllowThreads();
22930 (arg1)->CalcBoundingBox(arg2,arg3);
22931 wxPyEndAllowThreads(__tstate);
22932 if (PyErr_Occurred()) SWIG_fail;
22933 }
22934 resultobj = SWIG_Py_Void();
22935 return resultobj;
22936 fail:
22937 return NULL;
22938 }
22939
22940
22941 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22942 PyObject *resultobj = 0;
22943 wxDC *arg1 = (wxDC *) 0 ;
22944 wxPoint *arg2 = 0 ;
22945 void *argp1 = 0 ;
22946 int res1 = 0 ;
22947 wxPoint temp2 ;
22948 PyObject * obj0 = 0 ;
22949 PyObject * obj1 = 0 ;
22950 char * kwnames[] = {
22951 (char *) "self",(char *) "point", NULL
22952 };
22953
22954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22956 if (!SWIG_IsOK(res1)) {
22957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22958 }
22959 arg1 = reinterpret_cast< wxDC * >(argp1);
22960 {
22961 arg2 = &temp2;
22962 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22963 }
22964 {
22965 PyThreadState* __tstate = wxPyBeginAllowThreads();
22966 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22967 wxPyEndAllowThreads(__tstate);
22968 if (PyErr_Occurred()) SWIG_fail;
22969 }
22970 resultobj = SWIG_Py_Void();
22971 return resultobj;
22972 fail:
22973 return NULL;
22974 }
22975
22976
22977 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22978 PyObject *resultobj = 0;
22979 wxDC *arg1 = (wxDC *) 0 ;
22980 void *argp1 = 0 ;
22981 int res1 = 0 ;
22982 PyObject *swig_obj[1] ;
22983
22984 if (!args) SWIG_fail;
22985 swig_obj[0] = args;
22986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22987 if (!SWIG_IsOK(res1)) {
22988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22989 }
22990 arg1 = reinterpret_cast< wxDC * >(argp1);
22991 {
22992 PyThreadState* __tstate = wxPyBeginAllowThreads();
22993 (arg1)->ResetBoundingBox();
22994 wxPyEndAllowThreads(__tstate);
22995 if (PyErr_Occurred()) SWIG_fail;
22996 }
22997 resultobj = SWIG_Py_Void();
22998 return resultobj;
22999 fail:
23000 return NULL;
23001 }
23002
23003
23004 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23005 PyObject *resultobj = 0;
23006 wxDC *arg1 = (wxDC *) 0 ;
23007 int result;
23008 void *argp1 = 0 ;
23009 int res1 = 0 ;
23010 PyObject *swig_obj[1] ;
23011
23012 if (!args) SWIG_fail;
23013 swig_obj[0] = args;
23014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23015 if (!SWIG_IsOK(res1)) {
23016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23017 }
23018 arg1 = reinterpret_cast< wxDC * >(argp1);
23019 {
23020 PyThreadState* __tstate = wxPyBeginAllowThreads();
23021 result = (int)((wxDC const *)arg1)->MinX();
23022 wxPyEndAllowThreads(__tstate);
23023 if (PyErr_Occurred()) SWIG_fail;
23024 }
23025 resultobj = SWIG_From_int(static_cast< int >(result));
23026 return resultobj;
23027 fail:
23028 return NULL;
23029 }
23030
23031
23032 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23033 PyObject *resultobj = 0;
23034 wxDC *arg1 = (wxDC *) 0 ;
23035 int result;
23036 void *argp1 = 0 ;
23037 int res1 = 0 ;
23038 PyObject *swig_obj[1] ;
23039
23040 if (!args) SWIG_fail;
23041 swig_obj[0] = args;
23042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23043 if (!SWIG_IsOK(res1)) {
23044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23045 }
23046 arg1 = reinterpret_cast< wxDC * >(argp1);
23047 {
23048 PyThreadState* __tstate = wxPyBeginAllowThreads();
23049 result = (int)((wxDC const *)arg1)->MaxX();
23050 wxPyEndAllowThreads(__tstate);
23051 if (PyErr_Occurred()) SWIG_fail;
23052 }
23053 resultobj = SWIG_From_int(static_cast< int >(result));
23054 return resultobj;
23055 fail:
23056 return NULL;
23057 }
23058
23059
23060 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23061 PyObject *resultobj = 0;
23062 wxDC *arg1 = (wxDC *) 0 ;
23063 int result;
23064 void *argp1 = 0 ;
23065 int res1 = 0 ;
23066 PyObject *swig_obj[1] ;
23067
23068 if (!args) SWIG_fail;
23069 swig_obj[0] = args;
23070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23071 if (!SWIG_IsOK(res1)) {
23072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23073 }
23074 arg1 = reinterpret_cast< wxDC * >(argp1);
23075 {
23076 PyThreadState* __tstate = wxPyBeginAllowThreads();
23077 result = (int)((wxDC const *)arg1)->MinY();
23078 wxPyEndAllowThreads(__tstate);
23079 if (PyErr_Occurred()) SWIG_fail;
23080 }
23081 resultobj = SWIG_From_int(static_cast< int >(result));
23082 return resultobj;
23083 fail:
23084 return NULL;
23085 }
23086
23087
23088 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23089 PyObject *resultobj = 0;
23090 wxDC *arg1 = (wxDC *) 0 ;
23091 int result;
23092 void *argp1 = 0 ;
23093 int res1 = 0 ;
23094 PyObject *swig_obj[1] ;
23095
23096 if (!args) SWIG_fail;
23097 swig_obj[0] = args;
23098 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23099 if (!SWIG_IsOK(res1)) {
23100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23101 }
23102 arg1 = reinterpret_cast< wxDC * >(argp1);
23103 {
23104 PyThreadState* __tstate = wxPyBeginAllowThreads();
23105 result = (int)((wxDC const *)arg1)->MaxY();
23106 wxPyEndAllowThreads(__tstate);
23107 if (PyErr_Occurred()) SWIG_fail;
23108 }
23109 resultobj = SWIG_From_int(static_cast< int >(result));
23110 return resultobj;
23111 fail:
23112 return NULL;
23113 }
23114
23115
23116 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23117 PyObject *resultobj = 0;
23118 wxDC *arg1 = (wxDC *) 0 ;
23119 int *arg2 = (int *) 0 ;
23120 int *arg3 = (int *) 0 ;
23121 int *arg4 = (int *) 0 ;
23122 int *arg5 = (int *) 0 ;
23123 void *argp1 = 0 ;
23124 int res1 = 0 ;
23125 int temp2 ;
23126 int res2 = SWIG_TMPOBJ ;
23127 int temp3 ;
23128 int res3 = SWIG_TMPOBJ ;
23129 int temp4 ;
23130 int res4 = SWIG_TMPOBJ ;
23131 int temp5 ;
23132 int res5 = SWIG_TMPOBJ ;
23133 PyObject *swig_obj[1] ;
23134
23135 arg2 = &temp2;
23136 arg3 = &temp3;
23137 arg4 = &temp4;
23138 arg5 = &temp5;
23139 if (!args) SWIG_fail;
23140 swig_obj[0] = args;
23141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23142 if (!SWIG_IsOK(res1)) {
23143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23144 }
23145 arg1 = reinterpret_cast< wxDC * >(argp1);
23146 {
23147 PyThreadState* __tstate = wxPyBeginAllowThreads();
23148 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23149 wxPyEndAllowThreads(__tstate);
23150 if (PyErr_Occurred()) SWIG_fail;
23151 }
23152 resultobj = SWIG_Py_Void();
23153 if (SWIG_IsTmpObj(res2)) {
23154 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23155 } else {
23156 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23157 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23158 }
23159 if (SWIG_IsTmpObj(res3)) {
23160 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23161 } else {
23162 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23163 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23164 }
23165 if (SWIG_IsTmpObj(res4)) {
23166 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23167 } else {
23168 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23169 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23170 }
23171 if (SWIG_IsTmpObj(res5)) {
23172 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23173 } else {
23174 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23175 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23176 }
23177 return resultobj;
23178 fail:
23179 return NULL;
23180 }
23181
23182
23183 SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23184 PyObject *resultobj = 0;
23185 wxDC *arg1 = (wxDC *) 0 ;
23186 wxLayoutDirection result;
23187 void *argp1 = 0 ;
23188 int res1 = 0 ;
23189 PyObject *swig_obj[1] ;
23190
23191 if (!args) SWIG_fail;
23192 swig_obj[0] = args;
23193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23194 if (!SWIG_IsOK(res1)) {
23195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23196 }
23197 arg1 = reinterpret_cast< wxDC * >(argp1);
23198 {
23199 PyThreadState* __tstate = wxPyBeginAllowThreads();
23200 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23201 wxPyEndAllowThreads(__tstate);
23202 if (PyErr_Occurred()) SWIG_fail;
23203 }
23204 resultobj = SWIG_From_int(static_cast< int >(result));
23205 return resultobj;
23206 fail:
23207 return NULL;
23208 }
23209
23210
23211 SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23212 PyObject *resultobj = 0;
23213 wxDC *arg1 = (wxDC *) 0 ;
23214 wxLayoutDirection arg2 ;
23215 void *argp1 = 0 ;
23216 int res1 = 0 ;
23217 int val2 ;
23218 int ecode2 = 0 ;
23219 PyObject * obj0 = 0 ;
23220 PyObject * obj1 = 0 ;
23221 char * kwnames[] = {
23222 (char *) "self",(char *) "dir", NULL
23223 };
23224
23225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23227 if (!SWIG_IsOK(res1)) {
23228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23229 }
23230 arg1 = reinterpret_cast< wxDC * >(argp1);
23231 ecode2 = SWIG_AsVal_int(obj1, &val2);
23232 if (!SWIG_IsOK(ecode2)) {
23233 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23234 }
23235 arg2 = static_cast< wxLayoutDirection >(val2);
23236 {
23237 PyThreadState* __tstate = wxPyBeginAllowThreads();
23238 (arg1)->SetLayoutDirection(arg2);
23239 wxPyEndAllowThreads(__tstate);
23240 if (PyErr_Occurred()) SWIG_fail;
23241 }
23242 resultobj = SWIG_Py_Void();
23243 return resultobj;
23244 fail:
23245 return NULL;
23246 }
23247
23248
23249 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23250 PyObject *resultobj = 0;
23251 wxDC *arg1 = (wxDC *) 0 ;
23252 PyObject *arg2 = (PyObject *) 0 ;
23253 PyObject *arg3 = (PyObject *) 0 ;
23254 PyObject *arg4 = (PyObject *) 0 ;
23255 PyObject *result = 0 ;
23256 void *argp1 = 0 ;
23257 int res1 = 0 ;
23258 PyObject * obj0 = 0 ;
23259 PyObject * obj1 = 0 ;
23260 PyObject * obj2 = 0 ;
23261 PyObject * obj3 = 0 ;
23262 char * kwnames[] = {
23263 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23264 };
23265
23266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23268 if (!SWIG_IsOK(res1)) {
23269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23270 }
23271 arg1 = reinterpret_cast< wxDC * >(argp1);
23272 arg2 = obj1;
23273 arg3 = obj2;
23274 arg4 = obj3;
23275 {
23276 PyThreadState* __tstate = wxPyBeginAllowThreads();
23277 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23278 wxPyEndAllowThreads(__tstate);
23279 if (PyErr_Occurred()) SWIG_fail;
23280 }
23281 resultobj = result;
23282 return resultobj;
23283 fail:
23284 return NULL;
23285 }
23286
23287
23288 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23289 PyObject *resultobj = 0;
23290 wxDC *arg1 = (wxDC *) 0 ;
23291 PyObject *arg2 = (PyObject *) 0 ;
23292 PyObject *arg3 = (PyObject *) 0 ;
23293 PyObject *arg4 = (PyObject *) 0 ;
23294 PyObject *result = 0 ;
23295 void *argp1 = 0 ;
23296 int res1 = 0 ;
23297 PyObject * obj0 = 0 ;
23298 PyObject * obj1 = 0 ;
23299 PyObject * obj2 = 0 ;
23300 PyObject * obj3 = 0 ;
23301 char * kwnames[] = {
23302 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23303 };
23304
23305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23307 if (!SWIG_IsOK(res1)) {
23308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23309 }
23310 arg1 = reinterpret_cast< wxDC * >(argp1);
23311 arg2 = obj1;
23312 arg3 = obj2;
23313 arg4 = obj3;
23314 {
23315 PyThreadState* __tstate = wxPyBeginAllowThreads();
23316 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23317 wxPyEndAllowThreads(__tstate);
23318 if (PyErr_Occurred()) SWIG_fail;
23319 }
23320 resultobj = result;
23321 return resultobj;
23322 fail:
23323 return NULL;
23324 }
23325
23326
23327 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23328 PyObject *resultobj = 0;
23329 wxDC *arg1 = (wxDC *) 0 ;
23330 PyObject *arg2 = (PyObject *) 0 ;
23331 PyObject *arg3 = (PyObject *) 0 ;
23332 PyObject *arg4 = (PyObject *) 0 ;
23333 PyObject *result = 0 ;
23334 void *argp1 = 0 ;
23335 int res1 = 0 ;
23336 PyObject * obj0 = 0 ;
23337 PyObject * obj1 = 0 ;
23338 PyObject * obj2 = 0 ;
23339 PyObject * obj3 = 0 ;
23340 char * kwnames[] = {
23341 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23342 };
23343
23344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23346 if (!SWIG_IsOK(res1)) {
23347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23348 }
23349 arg1 = reinterpret_cast< wxDC * >(argp1);
23350 arg2 = obj1;
23351 arg3 = obj2;
23352 arg4 = obj3;
23353 {
23354 PyThreadState* __tstate = wxPyBeginAllowThreads();
23355 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23356 wxPyEndAllowThreads(__tstate);
23357 if (PyErr_Occurred()) SWIG_fail;
23358 }
23359 resultobj = result;
23360 return resultobj;
23361 fail:
23362 return NULL;
23363 }
23364
23365
23366 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23367 PyObject *resultobj = 0;
23368 wxDC *arg1 = (wxDC *) 0 ;
23369 PyObject *arg2 = (PyObject *) 0 ;
23370 PyObject *arg3 = (PyObject *) 0 ;
23371 PyObject *arg4 = (PyObject *) 0 ;
23372 PyObject *result = 0 ;
23373 void *argp1 = 0 ;
23374 int res1 = 0 ;
23375 PyObject * obj0 = 0 ;
23376 PyObject * obj1 = 0 ;
23377 PyObject * obj2 = 0 ;
23378 PyObject * obj3 = 0 ;
23379 char * kwnames[] = {
23380 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23381 };
23382
23383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23385 if (!SWIG_IsOK(res1)) {
23386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23387 }
23388 arg1 = reinterpret_cast< wxDC * >(argp1);
23389 arg2 = obj1;
23390 arg3 = obj2;
23391 arg4 = obj3;
23392 {
23393 PyThreadState* __tstate = wxPyBeginAllowThreads();
23394 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23395 wxPyEndAllowThreads(__tstate);
23396 if (PyErr_Occurred()) SWIG_fail;
23397 }
23398 resultobj = result;
23399 return resultobj;
23400 fail:
23401 return NULL;
23402 }
23403
23404
23405 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23406 PyObject *resultobj = 0;
23407 wxDC *arg1 = (wxDC *) 0 ;
23408 PyObject *arg2 = (PyObject *) 0 ;
23409 PyObject *arg3 = (PyObject *) 0 ;
23410 PyObject *arg4 = (PyObject *) 0 ;
23411 PyObject *result = 0 ;
23412 void *argp1 = 0 ;
23413 int res1 = 0 ;
23414 PyObject * obj0 = 0 ;
23415 PyObject * obj1 = 0 ;
23416 PyObject * obj2 = 0 ;
23417 PyObject * obj3 = 0 ;
23418 char * kwnames[] = {
23419 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23420 };
23421
23422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23424 if (!SWIG_IsOK(res1)) {
23425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23426 }
23427 arg1 = reinterpret_cast< wxDC * >(argp1);
23428 arg2 = obj1;
23429 arg3 = obj2;
23430 arg4 = obj3;
23431 {
23432 PyThreadState* __tstate = wxPyBeginAllowThreads();
23433 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23434 wxPyEndAllowThreads(__tstate);
23435 if (PyErr_Occurred()) SWIG_fail;
23436 }
23437 resultobj = result;
23438 return resultobj;
23439 fail:
23440 return NULL;
23441 }
23442
23443
23444 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23445 PyObject *resultobj = 0;
23446 wxDC *arg1 = (wxDC *) 0 ;
23447 PyObject *arg2 = (PyObject *) 0 ;
23448 PyObject *arg3 = (PyObject *) 0 ;
23449 PyObject *arg4 = (PyObject *) 0 ;
23450 PyObject *arg5 = (PyObject *) 0 ;
23451 PyObject *result = 0 ;
23452 void *argp1 = 0 ;
23453 int res1 = 0 ;
23454 PyObject * obj0 = 0 ;
23455 PyObject * obj1 = 0 ;
23456 PyObject * obj2 = 0 ;
23457 PyObject * obj3 = 0 ;
23458 PyObject * obj4 = 0 ;
23459 char * kwnames[] = {
23460 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23461 };
23462
23463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23465 if (!SWIG_IsOK(res1)) {
23466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23467 }
23468 arg1 = reinterpret_cast< wxDC * >(argp1);
23469 arg2 = obj1;
23470 arg3 = obj2;
23471 arg4 = obj3;
23472 arg5 = obj4;
23473 {
23474 PyThreadState* __tstate = wxPyBeginAllowThreads();
23475 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23476 wxPyEndAllowThreads(__tstate);
23477 if (PyErr_Occurred()) SWIG_fail;
23478 }
23479 resultobj = result;
23480 return resultobj;
23481 fail:
23482 return NULL;
23483 }
23484
23485
23486 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23487 PyObject *obj;
23488 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23489 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23490 return SWIG_Py_Void();
23491 }
23492
23493 SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23494 PyObject *resultobj = 0;
23495 wxDC *arg1 = 0 ;
23496 wxColour *arg2 = 0 ;
23497 wxDCTextColourChanger *result = 0 ;
23498 void *argp1 = 0 ;
23499 int res1 = 0 ;
23500 wxColour temp2 ;
23501 PyObject * obj0 = 0 ;
23502 PyObject * obj1 = 0 ;
23503 char * kwnames[] = {
23504 (char *) "dc",(char *) "col", NULL
23505 };
23506
23507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23508 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23509 if (!SWIG_IsOK(res1)) {
23510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23511 }
23512 if (!argp1) {
23513 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23514 }
23515 arg1 = reinterpret_cast< wxDC * >(argp1);
23516 {
23517 arg2 = &temp2;
23518 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23519 }
23520 {
23521 PyThreadState* __tstate = wxPyBeginAllowThreads();
23522 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
23523 wxPyEndAllowThreads(__tstate);
23524 if (PyErr_Occurred()) SWIG_fail;
23525 }
23526 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
23527 return resultobj;
23528 fail:
23529 return NULL;
23530 }
23531
23532
23533 SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23534 PyObject *resultobj = 0;
23535 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
23536 void *argp1 = 0 ;
23537 int res1 = 0 ;
23538 PyObject *swig_obj[1] ;
23539
23540 if (!args) SWIG_fail;
23541 swig_obj[0] = args;
23542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
23543 if (!SWIG_IsOK(res1)) {
23544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
23545 }
23546 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
23547 {
23548 PyThreadState* __tstate = wxPyBeginAllowThreads();
23549 delete arg1;
23550
23551 wxPyEndAllowThreads(__tstate);
23552 if (PyErr_Occurred()) SWIG_fail;
23553 }
23554 resultobj = SWIG_Py_Void();
23555 return resultobj;
23556 fail:
23557 return NULL;
23558 }
23559
23560
23561 SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23562 PyObject *obj;
23563 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23564 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
23565 return SWIG_Py_Void();
23566 }
23567
23568 SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23569 return SWIG_Python_InitShadowInstance(args);
23570 }
23571
23572 SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23573 PyObject *resultobj = 0;
23574 wxDC *arg1 = 0 ;
23575 wxPen *arg2 = 0 ;
23576 wxDCPenChanger *result = 0 ;
23577 void *argp1 = 0 ;
23578 int res1 = 0 ;
23579 void *argp2 = 0 ;
23580 int res2 = 0 ;
23581 PyObject * obj0 = 0 ;
23582 PyObject * obj1 = 0 ;
23583 char * kwnames[] = {
23584 (char *) "dc",(char *) "pen", NULL
23585 };
23586
23587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23588 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23589 if (!SWIG_IsOK(res1)) {
23590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23591 }
23592 if (!argp1) {
23593 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23594 }
23595 arg1 = reinterpret_cast< wxDC * >(argp1);
23596 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
23597 if (!SWIG_IsOK(res2)) {
23598 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23599 }
23600 if (!argp2) {
23601 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23602 }
23603 arg2 = reinterpret_cast< wxPen * >(argp2);
23604 {
23605 PyThreadState* __tstate = wxPyBeginAllowThreads();
23606 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
23607 wxPyEndAllowThreads(__tstate);
23608 if (PyErr_Occurred()) SWIG_fail;
23609 }
23610 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
23611 return resultobj;
23612 fail:
23613 return NULL;
23614 }
23615
23616
23617 SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23618 PyObject *resultobj = 0;
23619 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
23620 void *argp1 = 0 ;
23621 int res1 = 0 ;
23622 PyObject *swig_obj[1] ;
23623
23624 if (!args) SWIG_fail;
23625 swig_obj[0] = args;
23626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
23627 if (!SWIG_IsOK(res1)) {
23628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
23629 }
23630 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
23631 {
23632 PyThreadState* __tstate = wxPyBeginAllowThreads();
23633 delete arg1;
23634
23635 wxPyEndAllowThreads(__tstate);
23636 if (PyErr_Occurred()) SWIG_fail;
23637 }
23638 resultobj = SWIG_Py_Void();
23639 return resultobj;
23640 fail:
23641 return NULL;
23642 }
23643
23644
23645 SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23646 PyObject *obj;
23647 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23648 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
23649 return SWIG_Py_Void();
23650 }
23651
23652 SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23653 return SWIG_Python_InitShadowInstance(args);
23654 }
23655
23656 SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23657 PyObject *resultobj = 0;
23658 wxDC *arg1 = 0 ;
23659 wxBrush *arg2 = 0 ;
23660 wxDCBrushChanger *result = 0 ;
23661 void *argp1 = 0 ;
23662 int res1 = 0 ;
23663 void *argp2 = 0 ;
23664 int res2 = 0 ;
23665 PyObject * obj0 = 0 ;
23666 PyObject * obj1 = 0 ;
23667 char * kwnames[] = {
23668 (char *) "dc",(char *) "brush", NULL
23669 };
23670
23671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23672 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23673 if (!SWIG_IsOK(res1)) {
23674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23675 }
23676 if (!argp1) {
23677 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23678 }
23679 arg1 = reinterpret_cast< wxDC * >(argp1);
23680 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
23681 if (!SWIG_IsOK(res2)) {
23682 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23683 }
23684 if (!argp2) {
23685 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23686 }
23687 arg2 = reinterpret_cast< wxBrush * >(argp2);
23688 {
23689 PyThreadState* __tstate = wxPyBeginAllowThreads();
23690 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
23691 wxPyEndAllowThreads(__tstate);
23692 if (PyErr_Occurred()) SWIG_fail;
23693 }
23694 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
23695 return resultobj;
23696 fail:
23697 return NULL;
23698 }
23699
23700
23701 SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23702 PyObject *resultobj = 0;
23703 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
23704 void *argp1 = 0 ;
23705 int res1 = 0 ;
23706 PyObject *swig_obj[1] ;
23707
23708 if (!args) SWIG_fail;
23709 swig_obj[0] = args;
23710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
23711 if (!SWIG_IsOK(res1)) {
23712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
23713 }
23714 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
23715 {
23716 PyThreadState* __tstate = wxPyBeginAllowThreads();
23717 delete arg1;
23718
23719 wxPyEndAllowThreads(__tstate);
23720 if (PyErr_Occurred()) SWIG_fail;
23721 }
23722 resultobj = SWIG_Py_Void();
23723 return resultobj;
23724 fail:
23725 return NULL;
23726 }
23727
23728
23729 SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23730 PyObject *obj;
23731 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23732 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
23733 return SWIG_Py_Void();
23734 }
23735
23736 SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23737 return SWIG_Python_InitShadowInstance(args);
23738 }
23739
23740 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23741 PyObject *resultobj = 0;
23742 wxDC *arg1 = 0 ;
23743 wxRegion *arg2 = 0 ;
23744 wxDCClipper *result = 0 ;
23745 void *argp1 = 0 ;
23746 int res1 = 0 ;
23747 void *argp2 = 0 ;
23748 int res2 = 0 ;
23749
23750 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23752 if (!SWIG_IsOK(res1)) {
23753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23754 }
23755 if (!argp1) {
23756 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23757 }
23758 arg1 = reinterpret_cast< wxDC * >(argp1);
23759 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
23760 if (!SWIG_IsOK(res2)) {
23761 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23762 }
23763 if (!argp2) {
23764 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23765 }
23766 arg2 = reinterpret_cast< wxRegion * >(argp2);
23767 {
23768 PyThreadState* __tstate = wxPyBeginAllowThreads();
23769 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
23770 wxPyEndAllowThreads(__tstate);
23771 if (PyErr_Occurred()) SWIG_fail;
23772 }
23773 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23774 return resultobj;
23775 fail:
23776 return NULL;
23777 }
23778
23779
23780 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23781 PyObject *resultobj = 0;
23782 wxDC *arg1 = 0 ;
23783 wxRect *arg2 = 0 ;
23784 wxDCClipper *result = 0 ;
23785 void *argp1 = 0 ;
23786 int res1 = 0 ;
23787 wxRect temp2 ;
23788
23789 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23791 if (!SWIG_IsOK(res1)) {
23792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23793 }
23794 if (!argp1) {
23795 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23796 }
23797 arg1 = reinterpret_cast< wxDC * >(argp1);
23798 {
23799 arg2 = &temp2;
23800 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
23801 }
23802 {
23803 PyThreadState* __tstate = wxPyBeginAllowThreads();
23804 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
23805 wxPyEndAllowThreads(__tstate);
23806 if (PyErr_Occurred()) SWIG_fail;
23807 }
23808 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23809 return resultobj;
23810 fail:
23811 return NULL;
23812 }
23813
23814
23815 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23816 PyObject *resultobj = 0;
23817 wxDC *arg1 = 0 ;
23818 int arg2 ;
23819 int arg3 ;
23820 int arg4 ;
23821 int arg5 ;
23822 wxDCClipper *result = 0 ;
23823 void *argp1 = 0 ;
23824 int res1 = 0 ;
23825 int val2 ;
23826 int ecode2 = 0 ;
23827 int val3 ;
23828 int ecode3 = 0 ;
23829 int val4 ;
23830 int ecode4 = 0 ;
23831 int val5 ;
23832 int ecode5 = 0 ;
23833
23834 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
23835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23836 if (!SWIG_IsOK(res1)) {
23837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23838 }
23839 if (!argp1) {
23840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23841 }
23842 arg1 = reinterpret_cast< wxDC * >(argp1);
23843 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
23844 if (!SWIG_IsOK(ecode2)) {
23845 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
23846 }
23847 arg2 = static_cast< int >(val2);
23848 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23849 if (!SWIG_IsOK(ecode3)) {
23850 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
23851 }
23852 arg3 = static_cast< int >(val3);
23853 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
23854 if (!SWIG_IsOK(ecode4)) {
23855 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
23856 }
23857 arg4 = static_cast< int >(val4);
23858 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
23859 if (!SWIG_IsOK(ecode5)) {
23860 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
23861 }
23862 arg5 = static_cast< int >(val5);
23863 {
23864 PyThreadState* __tstate = wxPyBeginAllowThreads();
23865 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
23866 wxPyEndAllowThreads(__tstate);
23867 if (PyErr_Occurred()) SWIG_fail;
23868 }
23869 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23870 return resultobj;
23871 fail:
23872 return NULL;
23873 }
23874
23875
23876 SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
23877 int argc;
23878 PyObject *argv[6];
23879
23880 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
23881 --argc;
23882 if (argc == 2) {
23883 int _v = 0;
23884 {
23885 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
23886 _v = SWIG_CheckState(res);
23887 }
23888 if (!_v) goto check_1;
23889 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
23890 }
23891 check_1:
23892
23893 if (argc == 2) {
23894 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
23895 }
23896 if (argc == 5) {
23897 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
23898 }
23899
23900 fail:
23901 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
23902 return NULL;
23903 }
23904
23905
23906 SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23907 PyObject *resultobj = 0;
23908 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
23909 void *argp1 = 0 ;
23910 int res1 = 0 ;
23911 PyObject *swig_obj[1] ;
23912
23913 if (!args) SWIG_fail;
23914 swig_obj[0] = args;
23915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
23916 if (!SWIG_IsOK(res1)) {
23917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
23918 }
23919 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
23920 {
23921 PyThreadState* __tstate = wxPyBeginAllowThreads();
23922 delete arg1;
23923
23924 wxPyEndAllowThreads(__tstate);
23925 if (PyErr_Occurred()) SWIG_fail;
23926 }
23927 resultobj = SWIG_Py_Void();
23928 return resultobj;
23929 fail:
23930 return NULL;
23931 }
23932
23933
23934 SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23935 PyObject *obj;
23936 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23937 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
23938 return SWIG_Py_Void();
23939 }
23940
23941 SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23942 return SWIG_Python_InitShadowInstance(args);
23943 }
23944
23945 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23946 PyObject *resultobj = 0;
23947 wxScreenDC *result = 0 ;
23948
23949 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23950 {
23951 if (!wxPyCheckForApp()) SWIG_fail;
23952 PyThreadState* __tstate = wxPyBeginAllowThreads();
23953 result = (wxScreenDC *)new wxScreenDC();
23954 wxPyEndAllowThreads(__tstate);
23955 if (PyErr_Occurred()) SWIG_fail;
23956 }
23957 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23958 return resultobj;
23959 fail:
23960 return NULL;
23961 }
23962
23963
23964 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23965 PyObject *resultobj = 0;
23966 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23967 wxWindow *arg2 = (wxWindow *) 0 ;
23968 bool result;
23969 void *argp1 = 0 ;
23970 int res1 = 0 ;
23971 void *argp2 = 0 ;
23972 int res2 = 0 ;
23973 PyObject * obj0 = 0 ;
23974 PyObject * obj1 = 0 ;
23975 char * kwnames[] = {
23976 (char *) "self",(char *) "window", NULL
23977 };
23978
23979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23981 if (!SWIG_IsOK(res1)) {
23982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23983 }
23984 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23985 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23986 if (!SWIG_IsOK(res2)) {
23987 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23988 }
23989 arg2 = reinterpret_cast< wxWindow * >(argp2);
23990 {
23991 PyThreadState* __tstate = wxPyBeginAllowThreads();
23992 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23993 wxPyEndAllowThreads(__tstate);
23994 if (PyErr_Occurred()) SWIG_fail;
23995 }
23996 {
23997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23998 }
23999 return resultobj;
24000 fail:
24001 return NULL;
24002 }
24003
24004
24005 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24006 PyObject *resultobj = 0;
24007 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24008 wxRect *arg2 = (wxRect *) NULL ;
24009 bool result;
24010 void *argp1 = 0 ;
24011 int res1 = 0 ;
24012 void *argp2 = 0 ;
24013 int res2 = 0 ;
24014 PyObject * obj0 = 0 ;
24015 PyObject * obj1 = 0 ;
24016 char * kwnames[] = {
24017 (char *) "self",(char *) "rect", NULL
24018 };
24019
24020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24022 if (!SWIG_IsOK(res1)) {
24023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24024 }
24025 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24026 if (obj1) {
24027 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24028 if (!SWIG_IsOK(res2)) {
24029 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24030 }
24031 arg2 = reinterpret_cast< wxRect * >(argp2);
24032 }
24033 {
24034 PyThreadState* __tstate = wxPyBeginAllowThreads();
24035 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24036 wxPyEndAllowThreads(__tstate);
24037 if (PyErr_Occurred()) SWIG_fail;
24038 }
24039 {
24040 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24041 }
24042 return resultobj;
24043 fail:
24044 return NULL;
24045 }
24046
24047
24048 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24049 PyObject *resultobj = 0;
24050 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24051 bool result;
24052 void *argp1 = 0 ;
24053 int res1 = 0 ;
24054 PyObject *swig_obj[1] ;
24055
24056 if (!args) SWIG_fail;
24057 swig_obj[0] = args;
24058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24059 if (!SWIG_IsOK(res1)) {
24060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24061 }
24062 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24063 {
24064 PyThreadState* __tstate = wxPyBeginAllowThreads();
24065 result = (bool)(arg1)->EndDrawingOnTop();
24066 wxPyEndAllowThreads(__tstate);
24067 if (PyErr_Occurred()) SWIG_fail;
24068 }
24069 {
24070 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24071 }
24072 return resultobj;
24073 fail:
24074 return NULL;
24075 }
24076
24077
24078 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24079 PyObject *obj;
24080 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24081 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24082 return SWIG_Py_Void();
24083 }
24084
24085 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24086 return SWIG_Python_InitShadowInstance(args);
24087 }
24088
24089 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24090 PyObject *resultobj = 0;
24091 wxWindow *arg1 = (wxWindow *) 0 ;
24092 wxWindowDC *result = 0 ;
24093 void *argp1 = 0 ;
24094 int res1 = 0 ;
24095 PyObject * obj0 = 0 ;
24096 char * kwnames[] = {
24097 (char *) "win", NULL
24098 };
24099
24100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24102 if (!SWIG_IsOK(res1)) {
24103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24104 }
24105 arg1 = reinterpret_cast< wxWindow * >(argp1);
24106 {
24107 if (!wxPyCheckForApp()) SWIG_fail;
24108 PyThreadState* __tstate = wxPyBeginAllowThreads();
24109 result = (wxWindowDC *)new wxWindowDC(arg1);
24110 wxPyEndAllowThreads(__tstate);
24111 if (PyErr_Occurred()) SWIG_fail;
24112 }
24113 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24114 return resultobj;
24115 fail:
24116 return NULL;
24117 }
24118
24119
24120 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24121 PyObject *obj;
24122 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24123 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24124 return SWIG_Py_Void();
24125 }
24126
24127 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24128 return SWIG_Python_InitShadowInstance(args);
24129 }
24130
24131 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24132 PyObject *resultobj = 0;
24133 wxWindow *arg1 = (wxWindow *) 0 ;
24134 wxClientDC *result = 0 ;
24135 void *argp1 = 0 ;
24136 int res1 = 0 ;
24137 PyObject * obj0 = 0 ;
24138 char * kwnames[] = {
24139 (char *) "win", NULL
24140 };
24141
24142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24144 if (!SWIG_IsOK(res1)) {
24145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24146 }
24147 arg1 = reinterpret_cast< wxWindow * >(argp1);
24148 {
24149 if (!wxPyCheckForApp()) SWIG_fail;
24150 PyThreadState* __tstate = wxPyBeginAllowThreads();
24151 result = (wxClientDC *)new wxClientDC(arg1);
24152 wxPyEndAllowThreads(__tstate);
24153 if (PyErr_Occurred()) SWIG_fail;
24154 }
24155 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24156 return resultobj;
24157 fail:
24158 return NULL;
24159 }
24160
24161
24162 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24163 PyObject *obj;
24164 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24165 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24166 return SWIG_Py_Void();
24167 }
24168
24169 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24170 return SWIG_Python_InitShadowInstance(args);
24171 }
24172
24173 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24174 PyObject *resultobj = 0;
24175 wxWindow *arg1 = (wxWindow *) 0 ;
24176 wxPaintDC *result = 0 ;
24177 void *argp1 = 0 ;
24178 int res1 = 0 ;
24179 PyObject * obj0 = 0 ;
24180 char * kwnames[] = {
24181 (char *) "win", NULL
24182 };
24183
24184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24186 if (!SWIG_IsOK(res1)) {
24187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24188 }
24189 arg1 = reinterpret_cast< wxWindow * >(argp1);
24190 {
24191 if (!wxPyCheckForApp()) SWIG_fail;
24192 PyThreadState* __tstate = wxPyBeginAllowThreads();
24193 result = (wxPaintDC *)new wxPaintDC(arg1);
24194 wxPyEndAllowThreads(__tstate);
24195 if (PyErr_Occurred()) SWIG_fail;
24196 }
24197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24198 return resultobj;
24199 fail:
24200 return NULL;
24201 }
24202
24203
24204 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24205 PyObject *obj;
24206 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24207 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24208 return SWIG_Py_Void();
24209 }
24210
24211 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24212 return SWIG_Python_InitShadowInstance(args);
24213 }
24214
24215 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24216 PyObject *resultobj = 0;
24217 wxBitmap &arg1_defvalue = wxNullBitmap ;
24218 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24219 wxMemoryDC *result = 0 ;
24220 void *argp1 = 0 ;
24221 int res1 = 0 ;
24222 PyObject * obj0 = 0 ;
24223 char * kwnames[] = {
24224 (char *) "bitmap", NULL
24225 };
24226
24227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
24228 if (obj0) {
24229 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
24230 if (!SWIG_IsOK(res1)) {
24231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24232 }
24233 if (!argp1) {
24234 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24235 }
24236 arg1 = reinterpret_cast< wxBitmap * >(argp1);
24237 }
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_NEW | 0 );
24246 return resultobj;
24247 fail:
24248 return NULL;
24249 }
24250
24251
24252 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24253 PyObject *resultobj = 0;
24254 wxDC *arg1 = (wxDC *) 0 ;
24255 wxMemoryDC *result = 0 ;
24256 void *argp1 = 0 ;
24257 int res1 = 0 ;
24258 PyObject * obj0 = 0 ;
24259 char * kwnames[] = {
24260 (char *) "oldDC", NULL
24261 };
24262
24263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
24264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24265 if (!SWIG_IsOK(res1)) {
24266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
24267 }
24268 arg1 = reinterpret_cast< wxDC * >(argp1);
24269 {
24270 if (!wxPyCheckForApp()) SWIG_fail;
24271 PyThreadState* __tstate = wxPyBeginAllowThreads();
24272 result = (wxMemoryDC *)new wxMemoryDC(arg1);
24273 wxPyEndAllowThreads(__tstate);
24274 if (PyErr_Occurred()) SWIG_fail;
24275 }
24276 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
24277 return resultobj;
24278 fail:
24279 return NULL;
24280 }
24281
24282
24283 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24284 PyObject *resultobj = 0;
24285 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24286 wxBitmap *arg2 = 0 ;
24287 void *argp1 = 0 ;
24288 int res1 = 0 ;
24289 void *argp2 = 0 ;
24290 int res2 = 0 ;
24291 PyObject * obj0 = 0 ;
24292 PyObject * obj1 = 0 ;
24293 char * kwnames[] = {
24294 (char *) "self",(char *) "bitmap", NULL
24295 };
24296
24297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
24298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24299 if (!SWIG_IsOK(res1)) {
24300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24301 }
24302 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24303 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24304 if (!SWIG_IsOK(res2)) {
24305 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24306 }
24307 if (!argp2) {
24308 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24309 }
24310 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24311 {
24312 PyThreadState* __tstate = wxPyBeginAllowThreads();
24313 (arg1)->SelectObject(*arg2);
24314 wxPyEndAllowThreads(__tstate);
24315 if (PyErr_Occurred()) SWIG_fail;
24316 }
24317 resultobj = SWIG_Py_Void();
24318 return resultobj;
24319 fail:
24320 return NULL;
24321 }
24322
24323
24324 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24325 PyObject *resultobj = 0;
24326 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24327 wxBitmap *arg2 = 0 ;
24328 void *argp1 = 0 ;
24329 int res1 = 0 ;
24330 void *argp2 = 0 ;
24331 int res2 = 0 ;
24332 PyObject * obj0 = 0 ;
24333 PyObject * obj1 = 0 ;
24334 char * kwnames[] = {
24335 (char *) "self",(char *) "bmp", NULL
24336 };
24337
24338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
24339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24340 if (!SWIG_IsOK(res1)) {
24341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24342 }
24343 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24344 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24345 if (!SWIG_IsOK(res2)) {
24346 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24347 }
24348 if (!argp2) {
24349 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24350 }
24351 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24352 {
24353 PyThreadState* __tstate = wxPyBeginAllowThreads();
24354 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
24355 wxPyEndAllowThreads(__tstate);
24356 if (PyErr_Occurred()) SWIG_fail;
24357 }
24358 resultobj = SWIG_Py_Void();
24359 return resultobj;
24360 fail:
24361 return NULL;
24362 }
24363
24364
24365 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24366 PyObject *obj;
24367 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24368 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
24369 return SWIG_Py_Void();
24370 }
24371
24372 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24373 return SWIG_Python_InitShadowInstance(args);
24374 }
24375
24376 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24377 PyObject *resultobj = 0;
24378 wxDC *arg1 = (wxDC *) 0 ;
24379 wxBitmap &arg2_defvalue = wxNullBitmap ;
24380 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24381 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24382 wxBufferedDC *result = 0 ;
24383 void *argp1 = 0 ;
24384 int res1 = 0 ;
24385 void *argp2 = 0 ;
24386 int res2 = 0 ;
24387 int val3 ;
24388 int ecode3 = 0 ;
24389
24390 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24392 if (!SWIG_IsOK(res1)) {
24393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24394 }
24395 arg1 = reinterpret_cast< wxDC * >(argp1);
24396 if (swig_obj[1]) {
24397 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 );
24398 if (!SWIG_IsOK(res2)) {
24399 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24400 }
24401 if (!argp2) {
24402 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24403 }
24404 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24405 }
24406 if (swig_obj[2]) {
24407 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24408 if (!SWIG_IsOK(ecode3)) {
24409 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24410 }
24411 arg3 = static_cast< int >(val3);
24412 }
24413 {
24414 if (!wxPyCheckForApp()) SWIG_fail;
24415 PyThreadState* __tstate = wxPyBeginAllowThreads();
24416 result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3);
24417 wxPyEndAllowThreads(__tstate);
24418 if (PyErr_Occurred()) SWIG_fail;
24419 }
24420 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24421 return resultobj;
24422 fail:
24423 return NULL;
24424 }
24425
24426
24427 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24428 PyObject *resultobj = 0;
24429 wxDC *arg1 = (wxDC *) 0 ;
24430 wxSize *arg2 = 0 ;
24431 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24432 wxBufferedDC *result = 0 ;
24433 void *argp1 = 0 ;
24434 int res1 = 0 ;
24435 wxSize temp2 ;
24436 int val3 ;
24437 int ecode3 = 0 ;
24438
24439 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24441 if (!SWIG_IsOK(res1)) {
24442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24443 }
24444 arg1 = reinterpret_cast< wxDC * >(argp1);
24445 {
24446 arg2 = &temp2;
24447 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24448 }
24449 if (swig_obj[2]) {
24450 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24451 if (!SWIG_IsOK(ecode3)) {
24452 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24453 }
24454 arg3 = static_cast< int >(val3);
24455 }
24456 {
24457 if (!wxPyCheckForApp()) SWIG_fail;
24458 PyThreadState* __tstate = wxPyBeginAllowThreads();
24459 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24460 wxPyEndAllowThreads(__tstate);
24461 if (PyErr_Occurred()) SWIG_fail;
24462 }
24463 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24464 return resultobj;
24465 fail:
24466 return NULL;
24467 }
24468
24469
24470 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24471 int argc;
24472 PyObject *argv[4];
24473
24474 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
24475 --argc;
24476 if ((argc >= 1) && (argc <= 3)) {
24477 int _v = 0;
24478 if (argc > 1) {
24479 {
24480 void *vptr = 0;
24481 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0);
24482 _v = SWIG_CheckState(res);
24483 }
24484 if (!_v) goto check_1;
24485 }
24486 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24487 }
24488 check_1:
24489
24490 if ((argc >= 2) && (argc <= 3)) {
24491 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24492 }
24493
24494 fail:
24495 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24496 return NULL;
24497 }
24498
24499
24500 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24501 PyObject *resultobj = 0;
24502 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24503 void *argp1 = 0 ;
24504 int res1 = 0 ;
24505 PyObject *swig_obj[1] ;
24506
24507 if (!args) SWIG_fail;
24508 swig_obj[0] = args;
24509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24510 if (!SWIG_IsOK(res1)) {
24511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24512 }
24513 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24514 {
24515 PyThreadState* __tstate = wxPyBeginAllowThreads();
24516 delete arg1;
24517
24518 wxPyEndAllowThreads(__tstate);
24519 if (PyErr_Occurred()) SWIG_fail;
24520 }
24521 resultobj = SWIG_Py_Void();
24522 return resultobj;
24523 fail:
24524 return NULL;
24525 }
24526
24527
24528 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24529 PyObject *resultobj = 0;
24530 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24531 void *argp1 = 0 ;
24532 int res1 = 0 ;
24533 PyObject *swig_obj[1] ;
24534
24535 if (!args) SWIG_fail;
24536 swig_obj[0] = args;
24537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24538 if (!SWIG_IsOK(res1)) {
24539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24540 }
24541 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24542 {
24543 PyThreadState* __tstate = wxPyBeginAllowThreads();
24544 (arg1)->UnMask();
24545 wxPyEndAllowThreads(__tstate);
24546 if (PyErr_Occurred()) SWIG_fail;
24547 }
24548 resultobj = SWIG_Py_Void();
24549 return resultobj;
24550 fail:
24551 return NULL;
24552 }
24553
24554
24555 SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24556 PyObject *resultobj = 0;
24557 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24558 int arg2 ;
24559 void *argp1 = 0 ;
24560 int res1 = 0 ;
24561 int val2 ;
24562 int ecode2 = 0 ;
24563 PyObject * obj0 = 0 ;
24564 PyObject * obj1 = 0 ;
24565 char * kwnames[] = {
24566 (char *) "self",(char *) "style", NULL
24567 };
24568
24569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
24570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24571 if (!SWIG_IsOK(res1)) {
24572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24573 }
24574 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24575 ecode2 = SWIG_AsVal_int(obj1, &val2);
24576 if (!SWIG_IsOK(ecode2)) {
24577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'");
24578 }
24579 arg2 = static_cast< int >(val2);
24580 {
24581 PyThreadState* __tstate = wxPyBeginAllowThreads();
24582 (arg1)->SetStyle(arg2);
24583 wxPyEndAllowThreads(__tstate);
24584 if (PyErr_Occurred()) SWIG_fail;
24585 }
24586 resultobj = SWIG_Py_Void();
24587 return resultobj;
24588 fail:
24589 return NULL;
24590 }
24591
24592
24593 SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24594 PyObject *resultobj = 0;
24595 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24596 int result;
24597 void *argp1 = 0 ;
24598 int res1 = 0 ;
24599 PyObject *swig_obj[1] ;
24600
24601 if (!args) SWIG_fail;
24602 swig_obj[0] = args;
24603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24604 if (!SWIG_IsOK(res1)) {
24605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'");
24606 }
24607 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24608 {
24609 PyThreadState* __tstate = wxPyBeginAllowThreads();
24610 result = (int)((wxBufferedDC const *)arg1)->GetStyle();
24611 wxPyEndAllowThreads(__tstate);
24612 if (PyErr_Occurred()) SWIG_fail;
24613 }
24614 resultobj = SWIG_From_int(static_cast< int >(result));
24615 return resultobj;
24616 fail:
24617 return NULL;
24618 }
24619
24620
24621 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24622 PyObject *obj;
24623 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24624 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
24625 return SWIG_Py_Void();
24626 }
24627
24628 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24629 return SWIG_Python_InitShadowInstance(args);
24630 }
24631
24632 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24633 PyObject *resultobj = 0;
24634 wxWindow *arg1 = (wxWindow *) 0 ;
24635 wxBitmap &arg2_defvalue = wxNullBitmap ;
24636 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24637 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24638 wxBufferedPaintDC *result = 0 ;
24639 void *argp1 = 0 ;
24640 int res1 = 0 ;
24641 void *argp2 = 0 ;
24642 int res2 = 0 ;
24643 int val3 ;
24644 int ecode3 = 0 ;
24645 PyObject * obj0 = 0 ;
24646 PyObject * obj1 = 0 ;
24647 PyObject * obj2 = 0 ;
24648 char * kwnames[] = {
24649 (char *) "window",(char *) "buffer",(char *) "style", NULL
24650 };
24651
24652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24654 if (!SWIG_IsOK(res1)) {
24655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24656 }
24657 arg1 = reinterpret_cast< wxWindow * >(argp1);
24658 if (obj1) {
24659 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24660 if (!SWIG_IsOK(res2)) {
24661 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24662 }
24663 if (!argp2) {
24664 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24665 }
24666 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24667 }
24668 if (obj2) {
24669 ecode3 = SWIG_AsVal_int(obj2, &val3);
24670 if (!SWIG_IsOK(ecode3)) {
24671 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
24672 }
24673 arg3 = static_cast< int >(val3);
24674 }
24675 {
24676 if (!wxPyCheckForApp()) SWIG_fail;
24677 PyThreadState* __tstate = wxPyBeginAllowThreads();
24678 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3);
24679 wxPyEndAllowThreads(__tstate);
24680 if (PyErr_Occurred()) SWIG_fail;
24681 }
24682 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24683 return resultobj;
24684 fail:
24685 return NULL;
24686 }
24687
24688
24689 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24690 PyObject *obj;
24691 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24692 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
24693 return SWIG_Py_Void();
24694 }
24695
24696 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24697 return SWIG_Python_InitShadowInstance(args);
24698 }
24699
24700 SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24701 PyObject *resultobj = 0;
24702 wxWindow *arg1 = (wxWindow *) 0 ;
24703 wxAutoBufferedPaintDC *result = 0 ;
24704 void *argp1 = 0 ;
24705 int res1 = 0 ;
24706 PyObject * obj0 = 0 ;
24707 char * kwnames[] = {
24708 (char *) "win", NULL
24709 };
24710
24711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
24712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24713 if (!SWIG_IsOK(res1)) {
24714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24715 }
24716 arg1 = reinterpret_cast< wxWindow * >(argp1);
24717 {
24718 PyThreadState* __tstate = wxPyBeginAllowThreads();
24719 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
24720 wxPyEndAllowThreads(__tstate);
24721 if (PyErr_Occurred()) SWIG_fail;
24722 }
24723 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24724 return resultobj;
24725 fail:
24726 return NULL;
24727 }
24728
24729
24730 SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24731 PyObject *obj;
24732 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24733 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
24734 return SWIG_Py_Void();
24735 }
24736
24737 SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24738 return SWIG_Python_InitShadowInstance(args);
24739 }
24740
24741 SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24742 PyObject *resultobj = 0;
24743 wxWindow *arg1 = (wxWindow *) 0 ;
24744 wxDC *result = 0 ;
24745 void *argp1 = 0 ;
24746 int res1 = 0 ;
24747 PyObject * obj0 = 0 ;
24748 char * kwnames[] = {
24749 (char *) "window", NULL
24750 };
24751
24752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
24753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24754 if (!SWIG_IsOK(res1)) {
24755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
24756 }
24757 arg1 = reinterpret_cast< wxWindow * >(argp1);
24758 {
24759 PyThreadState* __tstate = wxPyBeginAllowThreads();
24760 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
24761 wxPyEndAllowThreads(__tstate);
24762 if (PyErr_Occurred()) SWIG_fail;
24763 }
24764 {
24765 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
24766 }
24767 return resultobj;
24768 fail:
24769 return NULL;
24770 }
24771
24772
24773 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24774 PyObject *resultobj = 0;
24775 wxDC *arg1 = 0 ;
24776 bool arg2 ;
24777 wxMirrorDC *result = 0 ;
24778 void *argp1 = 0 ;
24779 int res1 = 0 ;
24780 bool val2 ;
24781 int ecode2 = 0 ;
24782 PyObject * obj0 = 0 ;
24783 PyObject * obj1 = 0 ;
24784 char * kwnames[] = {
24785 (char *) "dc",(char *) "mirror", NULL
24786 };
24787
24788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24789 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24790 if (!SWIG_IsOK(res1)) {
24791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24792 }
24793 if (!argp1) {
24794 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24795 }
24796 arg1 = reinterpret_cast< wxDC * >(argp1);
24797 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24798 if (!SWIG_IsOK(ecode2)) {
24799 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24800 }
24801 arg2 = static_cast< bool >(val2);
24802 {
24803 if (!wxPyCheckForApp()) SWIG_fail;
24804 PyThreadState* __tstate = wxPyBeginAllowThreads();
24805 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24806 wxPyEndAllowThreads(__tstate);
24807 if (PyErr_Occurred()) SWIG_fail;
24808 }
24809 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24810 return resultobj;
24811 fail:
24812 return NULL;
24813 }
24814
24815
24816 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24817 PyObject *obj;
24818 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24819 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
24820 return SWIG_Py_Void();
24821 }
24822
24823 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24824 return SWIG_Python_InitShadowInstance(args);
24825 }
24826
24827 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24828 PyObject *resultobj = 0;
24829 wxPrintData *arg1 = 0 ;
24830 wxPostScriptDC *result = 0 ;
24831 void *argp1 = 0 ;
24832 int res1 = 0 ;
24833 PyObject * obj0 = 0 ;
24834 char * kwnames[] = {
24835 (char *) "printData", NULL
24836 };
24837
24838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24839 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24840 if (!SWIG_IsOK(res1)) {
24841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24842 }
24843 if (!argp1) {
24844 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24845 }
24846 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24847 {
24848 if (!wxPyCheckForApp()) SWIG_fail;
24849 PyThreadState* __tstate = wxPyBeginAllowThreads();
24850 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24851 wxPyEndAllowThreads(__tstate);
24852 if (PyErr_Occurred()) SWIG_fail;
24853 }
24854 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24855 return resultobj;
24856 fail:
24857 return NULL;
24858 }
24859
24860
24861 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24862 PyObject *resultobj = 0;
24863 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24864 wxPrintData *result = 0 ;
24865 void *argp1 = 0 ;
24866 int res1 = 0 ;
24867 PyObject *swig_obj[1] ;
24868
24869 if (!args) SWIG_fail;
24870 swig_obj[0] = args;
24871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24872 if (!SWIG_IsOK(res1)) {
24873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24874 }
24875 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24876 {
24877 PyThreadState* __tstate = wxPyBeginAllowThreads();
24878 {
24879 wxPrintData &_result_ref = (arg1)->GetPrintData();
24880 result = (wxPrintData *) &_result_ref;
24881 }
24882 wxPyEndAllowThreads(__tstate);
24883 if (PyErr_Occurred()) SWIG_fail;
24884 }
24885 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24886 return resultobj;
24887 fail:
24888 return NULL;
24889 }
24890
24891
24892 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24893 PyObject *resultobj = 0;
24894 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24895 wxPrintData *arg2 = 0 ;
24896 void *argp1 = 0 ;
24897 int res1 = 0 ;
24898 void *argp2 = 0 ;
24899 int res2 = 0 ;
24900 PyObject * obj0 = 0 ;
24901 PyObject * obj1 = 0 ;
24902 char * kwnames[] = {
24903 (char *) "self",(char *) "data", NULL
24904 };
24905
24906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24908 if (!SWIG_IsOK(res1)) {
24909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24910 }
24911 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24912 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24913 if (!SWIG_IsOK(res2)) {
24914 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24915 }
24916 if (!argp2) {
24917 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24918 }
24919 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24920 {
24921 PyThreadState* __tstate = wxPyBeginAllowThreads();
24922 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24923 wxPyEndAllowThreads(__tstate);
24924 if (PyErr_Occurred()) SWIG_fail;
24925 }
24926 resultobj = SWIG_Py_Void();
24927 return resultobj;
24928 fail:
24929 return NULL;
24930 }
24931
24932
24933 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24934 PyObject *resultobj = 0;
24935 int arg1 ;
24936 int val1 ;
24937 int ecode1 = 0 ;
24938 PyObject * obj0 = 0 ;
24939 char * kwnames[] = {
24940 (char *) "ppi", NULL
24941 };
24942
24943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24944 ecode1 = SWIG_AsVal_int(obj0, &val1);
24945 if (!SWIG_IsOK(ecode1)) {
24946 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24947 }
24948 arg1 = static_cast< int >(val1);
24949 {
24950 PyThreadState* __tstate = wxPyBeginAllowThreads();
24951 wxPostScriptDC::SetResolution(arg1);
24952 wxPyEndAllowThreads(__tstate);
24953 if (PyErr_Occurred()) SWIG_fail;
24954 }
24955 resultobj = SWIG_Py_Void();
24956 return resultobj;
24957 fail:
24958 return NULL;
24959 }
24960
24961
24962 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24963 PyObject *resultobj = 0;
24964 int result;
24965
24966 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24967 {
24968 PyThreadState* __tstate = wxPyBeginAllowThreads();
24969 result = (int)wxPostScriptDC::GetResolution();
24970 wxPyEndAllowThreads(__tstate);
24971 if (PyErr_Occurred()) SWIG_fail;
24972 }
24973 resultobj = SWIG_From_int(static_cast< int >(result));
24974 return resultobj;
24975 fail:
24976 return NULL;
24977 }
24978
24979
24980 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24981 PyObject *obj;
24982 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24983 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24984 return SWIG_Py_Void();
24985 }
24986
24987 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24988 return SWIG_Python_InitShadowInstance(args);
24989 }
24990
24991 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24992 PyObject *resultobj = 0;
24993 wxString const &arg1_defvalue = wxPyEmptyString ;
24994 wxString *arg1 = (wxString *) &arg1_defvalue ;
24995 wxMetaFile *result = 0 ;
24996 bool temp1 = false ;
24997 PyObject * obj0 = 0 ;
24998 char * kwnames[] = {
24999 (char *) "filename", NULL
25000 };
25001
25002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
25003 if (obj0) {
25004 {
25005 arg1 = wxString_in_helper(obj0);
25006 if (arg1 == NULL) SWIG_fail;
25007 temp1 = true;
25008 }
25009 }
25010 {
25011 if (!wxPyCheckForApp()) SWIG_fail;
25012 PyThreadState* __tstate = wxPyBeginAllowThreads();
25013 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
25014 wxPyEndAllowThreads(__tstate);
25015 if (PyErr_Occurred()) SWIG_fail;
25016 }
25017 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
25018 {
25019 if (temp1)
25020 delete arg1;
25021 }
25022 return resultobj;
25023 fail:
25024 {
25025 if (temp1)
25026 delete arg1;
25027 }
25028 return NULL;
25029 }
25030
25031
25032 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25033 PyObject *resultobj = 0;
25034 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25035 void *argp1 = 0 ;
25036 int res1 = 0 ;
25037 PyObject *swig_obj[1] ;
25038
25039 if (!args) SWIG_fail;
25040 swig_obj[0] = args;
25041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
25042 if (!SWIG_IsOK(res1)) {
25043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25044 }
25045 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25046 {
25047 PyThreadState* __tstate = wxPyBeginAllowThreads();
25048 delete arg1;
25049
25050 wxPyEndAllowThreads(__tstate);
25051 if (PyErr_Occurred()) SWIG_fail;
25052 }
25053 resultobj = SWIG_Py_Void();
25054 return resultobj;
25055 fail:
25056 return NULL;
25057 }
25058
25059
25060 SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25061 PyObject *resultobj = 0;
25062 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25063 bool result;
25064 void *argp1 = 0 ;
25065 int res1 = 0 ;
25066 PyObject *swig_obj[1] ;
25067
25068 if (!args) SWIG_fail;
25069 swig_obj[0] = args;
25070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25071 if (!SWIG_IsOK(res1)) {
25072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25073 }
25074 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25075 {
25076 PyThreadState* __tstate = wxPyBeginAllowThreads();
25077 result = (bool)(arg1)->IsOk();
25078 wxPyEndAllowThreads(__tstate);
25079 if (PyErr_Occurred()) SWIG_fail;
25080 }
25081 {
25082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25083 }
25084 return resultobj;
25085 fail:
25086 return NULL;
25087 }
25088
25089
25090 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25091 PyObject *resultobj = 0;
25092 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25093 int arg2 = (int) 0 ;
25094 int arg3 = (int) 0 ;
25095 bool result;
25096 void *argp1 = 0 ;
25097 int res1 = 0 ;
25098 int val2 ;
25099 int ecode2 = 0 ;
25100 int val3 ;
25101 int ecode3 = 0 ;
25102 PyObject * obj0 = 0 ;
25103 PyObject * obj1 = 0 ;
25104 PyObject * obj2 = 0 ;
25105 char * kwnames[] = {
25106 (char *) "self",(char *) "width",(char *) "height", NULL
25107 };
25108
25109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25111 if (!SWIG_IsOK(res1)) {
25112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25113 }
25114 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25115 if (obj1) {
25116 ecode2 = SWIG_AsVal_int(obj1, &val2);
25117 if (!SWIG_IsOK(ecode2)) {
25118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
25119 }
25120 arg2 = static_cast< int >(val2);
25121 }
25122 if (obj2) {
25123 ecode3 = SWIG_AsVal_int(obj2, &val3);
25124 if (!SWIG_IsOK(ecode3)) {
25125 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
25126 }
25127 arg3 = static_cast< int >(val3);
25128 }
25129 {
25130 PyThreadState* __tstate = wxPyBeginAllowThreads();
25131 result = (bool)(arg1)->SetClipboard(arg2,arg3);
25132 wxPyEndAllowThreads(__tstate);
25133 if (PyErr_Occurred()) SWIG_fail;
25134 }
25135 {
25136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25137 }
25138 return resultobj;
25139 fail:
25140 return NULL;
25141 }
25142
25143
25144 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25145 PyObject *resultobj = 0;
25146 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25147 wxSize result;
25148 void *argp1 = 0 ;
25149 int res1 = 0 ;
25150 PyObject *swig_obj[1] ;
25151
25152 if (!args) SWIG_fail;
25153 swig_obj[0] = args;
25154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25155 if (!SWIG_IsOK(res1)) {
25156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25157 }
25158 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25159 {
25160 PyThreadState* __tstate = wxPyBeginAllowThreads();
25161 result = (arg1)->GetSize();
25162 wxPyEndAllowThreads(__tstate);
25163 if (PyErr_Occurred()) SWIG_fail;
25164 }
25165 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25166 return resultobj;
25167 fail:
25168 return NULL;
25169 }
25170
25171
25172 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25173 PyObject *resultobj = 0;
25174 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25175 int result;
25176 void *argp1 = 0 ;
25177 int res1 = 0 ;
25178 PyObject *swig_obj[1] ;
25179
25180 if (!args) SWIG_fail;
25181 swig_obj[0] = args;
25182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25183 if (!SWIG_IsOK(res1)) {
25184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25185 }
25186 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25187 {
25188 PyThreadState* __tstate = wxPyBeginAllowThreads();
25189 result = (int)(arg1)->GetWidth();
25190 wxPyEndAllowThreads(__tstate);
25191 if (PyErr_Occurred()) SWIG_fail;
25192 }
25193 resultobj = SWIG_From_int(static_cast< int >(result));
25194 return resultobj;
25195 fail:
25196 return NULL;
25197 }
25198
25199
25200 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25201 PyObject *resultobj = 0;
25202 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25203 int result;
25204 void *argp1 = 0 ;
25205 int res1 = 0 ;
25206 PyObject *swig_obj[1] ;
25207
25208 if (!args) SWIG_fail;
25209 swig_obj[0] = args;
25210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25211 if (!SWIG_IsOK(res1)) {
25212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25213 }
25214 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25215 {
25216 PyThreadState* __tstate = wxPyBeginAllowThreads();
25217 result = (int)(arg1)->GetHeight();
25218 wxPyEndAllowThreads(__tstate);
25219 if (PyErr_Occurred()) SWIG_fail;
25220 }
25221 resultobj = SWIG_From_int(static_cast< int >(result));
25222 return resultobj;
25223 fail:
25224 return NULL;
25225 }
25226
25227
25228 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25229 PyObject *obj;
25230 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25231 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25232 return SWIG_Py_Void();
25233 }
25234
25235 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25236 return SWIG_Python_InitShadowInstance(args);
25237 }
25238
25239 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25240 PyObject *resultobj = 0;
25241 wxString const &arg1_defvalue = wxPyEmptyString ;
25242 wxString *arg1 = (wxString *) &arg1_defvalue ;
25243 int arg2 = (int) 0 ;
25244 int arg3 = (int) 0 ;
25245 wxString const &arg4_defvalue = wxPyEmptyString ;
25246 wxString *arg4 = (wxString *) &arg4_defvalue ;
25247 wxMetaFileDC *result = 0 ;
25248 bool temp1 = false ;
25249 int val2 ;
25250 int ecode2 = 0 ;
25251 int val3 ;
25252 int ecode3 = 0 ;
25253 bool temp4 = false ;
25254 PyObject * obj0 = 0 ;
25255 PyObject * obj1 = 0 ;
25256 PyObject * obj2 = 0 ;
25257 PyObject * obj3 = 0 ;
25258 char * kwnames[] = {
25259 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25260 };
25261
25262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25263 if (obj0) {
25264 {
25265 arg1 = wxString_in_helper(obj0);
25266 if (arg1 == NULL) SWIG_fail;
25267 temp1 = true;
25268 }
25269 }
25270 if (obj1) {
25271 ecode2 = SWIG_AsVal_int(obj1, &val2);
25272 if (!SWIG_IsOK(ecode2)) {
25273 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25274 }
25275 arg2 = static_cast< int >(val2);
25276 }
25277 if (obj2) {
25278 ecode3 = SWIG_AsVal_int(obj2, &val3);
25279 if (!SWIG_IsOK(ecode3)) {
25280 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25281 }
25282 arg3 = static_cast< int >(val3);
25283 }
25284 if (obj3) {
25285 {
25286 arg4 = wxString_in_helper(obj3);
25287 if (arg4 == NULL) SWIG_fail;
25288 temp4 = true;
25289 }
25290 }
25291 {
25292 if (!wxPyCheckForApp()) SWIG_fail;
25293 PyThreadState* __tstate = wxPyBeginAllowThreads();
25294 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25295 wxPyEndAllowThreads(__tstate);
25296 if (PyErr_Occurred()) SWIG_fail;
25297 }
25298 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25299 {
25300 if (temp1)
25301 delete arg1;
25302 }
25303 {
25304 if (temp4)
25305 delete arg4;
25306 }
25307 return resultobj;
25308 fail:
25309 {
25310 if (temp1)
25311 delete arg1;
25312 }
25313 {
25314 if (temp4)
25315 delete arg4;
25316 }
25317 return NULL;
25318 }
25319
25320
25321 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25322 PyObject *resultobj = 0;
25323 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
25324 wxMetaFile *result = 0 ;
25325 void *argp1 = 0 ;
25326 int res1 = 0 ;
25327 PyObject *swig_obj[1] ;
25328
25329 if (!args) SWIG_fail;
25330 swig_obj[0] = args;
25331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
25332 if (!SWIG_IsOK(res1)) {
25333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
25334 }
25335 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
25336 {
25337 PyThreadState* __tstate = wxPyBeginAllowThreads();
25338 result = (wxMetaFile *)(arg1)->Close();
25339 wxPyEndAllowThreads(__tstate);
25340 if (PyErr_Occurred()) SWIG_fail;
25341 }
25342 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
25343 return resultobj;
25344 fail:
25345 return NULL;
25346 }
25347
25348
25349 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25350 PyObject *obj;
25351 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25352 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25353 return SWIG_Py_Void();
25354 }
25355
25356 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25357 return SWIG_Python_InitShadowInstance(args);
25358 }
25359
25360 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25361 PyObject *resultobj = 0;
25362 wxPrintData *arg1 = 0 ;
25363 wxPrinterDC *result = 0 ;
25364 void *argp1 = 0 ;
25365 int res1 = 0 ;
25366 PyObject * obj0 = 0 ;
25367 char * kwnames[] = {
25368 (char *) "printData", NULL
25369 };
25370
25371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25372 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25373 if (!SWIG_IsOK(res1)) {
25374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25375 }
25376 if (!argp1) {
25377 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25378 }
25379 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25380 {
25381 if (!wxPyCheckForApp()) SWIG_fail;
25382 PyThreadState* __tstate = wxPyBeginAllowThreads();
25383 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25384 wxPyEndAllowThreads(__tstate);
25385 if (PyErr_Occurred()) SWIG_fail;
25386 }
25387 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25388 return resultobj;
25389 fail:
25390 return NULL;
25391 }
25392
25393
25394 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25395 PyObject *obj;
25396 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25397 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25398 return SWIG_Py_Void();
25399 }
25400
25401 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25402 return SWIG_Python_InitShadowInstance(args);
25403 }
25404
25405 SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25406 PyObject *resultobj = 0;
25407 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
25408 wxGraphicsObject *result = 0 ;
25409 void *argp1 = 0 ;
25410 int res1 = 0 ;
25411 PyObject * obj0 = 0 ;
25412 char * kwnames[] = {
25413 (char *) "renderer", NULL
25414 };
25415
25416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
25417 if (obj0) {
25418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25419 if (!SWIG_IsOK(res1)) {
25420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
25421 }
25422 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
25423 }
25424 {
25425 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
25426 if (PyErr_Occurred()) SWIG_fail;
25427 }
25428 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
25429 return resultobj;
25430 fail:
25431 return NULL;
25432 }
25433
25434
25435 SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25436 PyObject *resultobj = 0;
25437 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25438 void *argp1 = 0 ;
25439 int res1 = 0 ;
25440 PyObject *swig_obj[1] ;
25441
25442 if (!args) SWIG_fail;
25443 swig_obj[0] = args;
25444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
25445 if (!SWIG_IsOK(res1)) {
25446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
25447 }
25448 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25449 {
25450 delete arg1;
25451
25452 if (PyErr_Occurred()) SWIG_fail;
25453 }
25454 resultobj = SWIG_Py_Void();
25455 return resultobj;
25456 fail:
25457 return NULL;
25458 }
25459
25460
25461 SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25462 PyObject *resultobj = 0;
25463 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25464 bool result;
25465 void *argp1 = 0 ;
25466 int res1 = 0 ;
25467 PyObject *swig_obj[1] ;
25468
25469 if (!args) SWIG_fail;
25470 swig_obj[0] = args;
25471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25472 if (!SWIG_IsOK(res1)) {
25473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25474 }
25475 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25476 {
25477 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
25478 if (PyErr_Occurred()) SWIG_fail;
25479 }
25480 {
25481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25482 }
25483 return resultobj;
25484 fail:
25485 return NULL;
25486 }
25487
25488
25489 SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25490 PyObject *resultobj = 0;
25491 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25492 wxGraphicsRenderer *result = 0 ;
25493 void *argp1 = 0 ;
25494 int res1 = 0 ;
25495 PyObject *swig_obj[1] ;
25496
25497 if (!args) SWIG_fail;
25498 swig_obj[0] = args;
25499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25500 if (!SWIG_IsOK(res1)) {
25501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25502 }
25503 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25504 {
25505 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
25506 if (PyErr_Occurred()) SWIG_fail;
25507 }
25508 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25509 return resultobj;
25510 fail:
25511 return NULL;
25512 }
25513
25514
25515 SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25516 PyObject *obj;
25517 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25518 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
25519 return SWIG_Py_Void();
25520 }
25521
25522 SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25523 return SWIG_Python_InitShadowInstance(args);
25524 }
25525
25526 SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25527 PyObject *resultobj = 0;
25528 wxGraphicsPen *result = 0 ;
25529
25530 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
25531 {
25532 result = (wxGraphicsPen *)new wxGraphicsPen();
25533 if (PyErr_Occurred()) SWIG_fail;
25534 }
25535 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
25536 return resultobj;
25537 fail:
25538 return NULL;
25539 }
25540
25541
25542 SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25543 PyObject *resultobj = 0;
25544 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
25545 void *argp1 = 0 ;
25546 int res1 = 0 ;
25547 PyObject *swig_obj[1] ;
25548
25549 if (!args) SWIG_fail;
25550 swig_obj[0] = args;
25551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
25552 if (!SWIG_IsOK(res1)) {
25553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
25554 }
25555 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
25556 {
25557 delete arg1;
25558
25559 if (PyErr_Occurred()) SWIG_fail;
25560 }
25561 resultobj = SWIG_Py_Void();
25562 return resultobj;
25563 fail:
25564 return NULL;
25565 }
25566
25567
25568 SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25569 PyObject *obj;
25570 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25571 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
25572 return SWIG_Py_Void();
25573 }
25574
25575 SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25576 return SWIG_Python_InitShadowInstance(args);
25577 }
25578
25579 SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25580 PyObject *resultobj = 0;
25581 wxGraphicsBrush *result = 0 ;
25582
25583 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
25584 {
25585 result = (wxGraphicsBrush *)new wxGraphicsBrush();
25586 if (PyErr_Occurred()) SWIG_fail;
25587 }
25588 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
25589 return resultobj;
25590 fail:
25591 return NULL;
25592 }
25593
25594
25595 SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25596 PyObject *resultobj = 0;
25597 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
25598 void *argp1 = 0 ;
25599 int res1 = 0 ;
25600 PyObject *swig_obj[1] ;
25601
25602 if (!args) SWIG_fail;
25603 swig_obj[0] = args;
25604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
25605 if (!SWIG_IsOK(res1)) {
25606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
25607 }
25608 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
25609 {
25610 delete arg1;
25611
25612 if (PyErr_Occurred()) SWIG_fail;
25613 }
25614 resultobj = SWIG_Py_Void();
25615 return resultobj;
25616 fail:
25617 return NULL;
25618 }
25619
25620
25621 SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25622 PyObject *obj;
25623 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25624 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
25625 return SWIG_Py_Void();
25626 }
25627
25628 SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25629 return SWIG_Python_InitShadowInstance(args);
25630 }
25631
25632 SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25633 PyObject *resultobj = 0;
25634 wxGraphicsFont *result = 0 ;
25635
25636 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
25637 {
25638 result = (wxGraphicsFont *)new wxGraphicsFont();
25639 if (PyErr_Occurred()) SWIG_fail;
25640 }
25641 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
25642 return resultobj;
25643 fail:
25644 return NULL;
25645 }
25646
25647
25648 SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25649 PyObject *resultobj = 0;
25650 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
25651 void *argp1 = 0 ;
25652 int res1 = 0 ;
25653 PyObject *swig_obj[1] ;
25654
25655 if (!args) SWIG_fail;
25656 swig_obj[0] = args;
25657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
25658 if (!SWIG_IsOK(res1)) {
25659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
25660 }
25661 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
25662 {
25663 delete arg1;
25664
25665 if (PyErr_Occurred()) SWIG_fail;
25666 }
25667 resultobj = SWIG_Py_Void();
25668 return resultobj;
25669 fail:
25670 return NULL;
25671 }
25672
25673
25674 SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25675 PyObject *obj;
25676 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25677 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
25678 return SWIG_Py_Void();
25679 }
25680
25681 SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25682 return SWIG_Python_InitShadowInstance(args);
25683 }
25684
25685 SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25686 PyObject *resultobj = 0;
25687 wxGraphicsMatrix *result = 0 ;
25688
25689 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail;
25690 {
25691 result = (wxGraphicsMatrix *)new wxGraphicsMatrix();
25692 if (PyErr_Occurred()) SWIG_fail;
25693 }
25694 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 );
25695 return resultobj;
25696 fail:
25697 return NULL;
25698 }
25699
25700
25701 SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25702 PyObject *resultobj = 0;
25703 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25704 void *argp1 = 0 ;
25705 int res1 = 0 ;
25706 PyObject *swig_obj[1] ;
25707
25708 if (!args) SWIG_fail;
25709 swig_obj[0] = args;
25710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
25711 if (!SWIG_IsOK(res1)) {
25712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25713 }
25714 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25715 {
25716 delete arg1;
25717
25718 if (PyErr_Occurred()) SWIG_fail;
25719 }
25720 resultobj = SWIG_Py_Void();
25721 return resultobj;
25722 fail:
25723 return NULL;
25724 }
25725
25726
25727 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25728 PyObject *resultobj = 0;
25729 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25730 wxGraphicsMatrix *arg2 = 0 ;
25731 void *argp1 = 0 ;
25732 int res1 = 0 ;
25733 void *argp2 = 0 ;
25734 int res2 = 0 ;
25735 PyObject * obj0 = 0 ;
25736 PyObject * obj1 = 0 ;
25737 char * kwnames[] = {
25738 (char *) "self",(char *) "t", NULL
25739 };
25740
25741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
25742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25743 if (!SWIG_IsOK(res1)) {
25744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25745 }
25746 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25747 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25748 if (!SWIG_IsOK(res2)) {
25749 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25750 }
25751 if (!argp2) {
25752 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25753 }
25754 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
25755 {
25756 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
25757 if (PyErr_Occurred()) SWIG_fail;
25758 }
25759 resultobj = SWIG_Py_Void();
25760 return resultobj;
25761 fail:
25762 return NULL;
25763 }
25764
25765
25766 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25767 PyObject *resultobj = 0;
25768 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25769 wxDouble arg2 = (wxDouble) 1.0 ;
25770 wxDouble arg3 = (wxDouble) 0.0 ;
25771 wxDouble arg4 = (wxDouble) 0.0 ;
25772 wxDouble arg5 = (wxDouble) 1.0 ;
25773 wxDouble arg6 = (wxDouble) 0.0 ;
25774 wxDouble arg7 = (wxDouble) 0.0 ;
25775 void *argp1 = 0 ;
25776 int res1 = 0 ;
25777 double val2 ;
25778 int ecode2 = 0 ;
25779 double val3 ;
25780 int ecode3 = 0 ;
25781 double val4 ;
25782 int ecode4 = 0 ;
25783 double val5 ;
25784 int ecode5 = 0 ;
25785 double val6 ;
25786 int ecode6 = 0 ;
25787 double val7 ;
25788 int ecode7 = 0 ;
25789 PyObject * obj0 = 0 ;
25790 PyObject * obj1 = 0 ;
25791 PyObject * obj2 = 0 ;
25792 PyObject * obj3 = 0 ;
25793 PyObject * obj4 = 0 ;
25794 PyObject * obj5 = 0 ;
25795 PyObject * obj6 = 0 ;
25796 char * kwnames[] = {
25797 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
25798 };
25799
25800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25802 if (!SWIG_IsOK(res1)) {
25803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25804 }
25805 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25806 if (obj1) {
25807 ecode2 = SWIG_AsVal_double(obj1, &val2);
25808 if (!SWIG_IsOK(ecode2)) {
25809 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
25810 }
25811 arg2 = static_cast< wxDouble >(val2);
25812 }
25813 if (obj2) {
25814 ecode3 = SWIG_AsVal_double(obj2, &val3);
25815 if (!SWIG_IsOK(ecode3)) {
25816 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
25817 }
25818 arg3 = static_cast< wxDouble >(val3);
25819 }
25820 if (obj3) {
25821 ecode4 = SWIG_AsVal_double(obj3, &val4);
25822 if (!SWIG_IsOK(ecode4)) {
25823 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
25824 }
25825 arg4 = static_cast< wxDouble >(val4);
25826 }
25827 if (obj4) {
25828 ecode5 = SWIG_AsVal_double(obj4, &val5);
25829 if (!SWIG_IsOK(ecode5)) {
25830 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
25831 }
25832 arg5 = static_cast< wxDouble >(val5);
25833 }
25834 if (obj5) {
25835 ecode6 = SWIG_AsVal_double(obj5, &val6);
25836 if (!SWIG_IsOK(ecode6)) {
25837 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
25838 }
25839 arg6 = static_cast< wxDouble >(val6);
25840 }
25841 if (obj6) {
25842 ecode7 = SWIG_AsVal_double(obj6, &val7);
25843 if (!SWIG_IsOK(ecode7)) {
25844 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
25845 }
25846 arg7 = static_cast< wxDouble >(val7);
25847 }
25848 {
25849 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
25850 if (PyErr_Occurred()) SWIG_fail;
25851 }
25852 resultobj = SWIG_Py_Void();
25853 return resultobj;
25854 fail:
25855 return NULL;
25856 }
25857
25858
25859 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25860 PyObject *resultobj = 0;
25861 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25862 wxDouble *arg2 = (wxDouble *) 0 ;
25863 wxDouble *arg3 = (wxDouble *) 0 ;
25864 wxDouble *arg4 = (wxDouble *) 0 ;
25865 wxDouble *arg5 = (wxDouble *) 0 ;
25866 wxDouble *arg6 = (wxDouble *) 0 ;
25867 wxDouble *arg7 = (wxDouble *) 0 ;
25868 void *argp1 = 0 ;
25869 int res1 = 0 ;
25870 wxDouble temp2 ;
25871 int res2 = SWIG_TMPOBJ ;
25872 wxDouble temp3 ;
25873 int res3 = SWIG_TMPOBJ ;
25874 wxDouble temp4 ;
25875 int res4 = SWIG_TMPOBJ ;
25876 wxDouble temp5 ;
25877 int res5 = SWIG_TMPOBJ ;
25878 wxDouble temp6 ;
25879 int res6 = SWIG_TMPOBJ ;
25880 wxDouble temp7 ;
25881 int res7 = SWIG_TMPOBJ ;
25882 PyObject *swig_obj[1] ;
25883
25884 arg2 = &temp2;
25885 arg3 = &temp3;
25886 arg4 = &temp4;
25887 arg5 = &temp5;
25888 arg6 = &temp6;
25889 arg7 = &temp7;
25890 if (!args) SWIG_fail;
25891 swig_obj[0] = args;
25892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25893 if (!SWIG_IsOK(res1)) {
25894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Get" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25895 }
25896 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25897 {
25898 (arg1)->Get(arg2,arg3,arg4,arg5,arg6,arg7);
25899 if (PyErr_Occurred()) SWIG_fail;
25900 }
25901 resultobj = SWIG_Py_Void();
25902 if (SWIG_IsTmpObj(res2)) {
25903 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
25904 } else {
25905 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25906 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
25907 }
25908 if (SWIG_IsTmpObj(res3)) {
25909 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
25910 } else {
25911 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25912 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
25913 }
25914 if (SWIG_IsTmpObj(res4)) {
25915 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
25916 } else {
25917 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25918 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
25919 }
25920 if (SWIG_IsTmpObj(res5)) {
25921 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
25922 } else {
25923 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25924 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
25925 }
25926 if (SWIG_IsTmpObj(res6)) {
25927 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
25928 } else {
25929 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25930 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
25931 }
25932 if (SWIG_IsTmpObj(res7)) {
25933 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg7)));
25934 } else {
25935 int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25936 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, new_flags));
25937 }
25938 return resultobj;
25939 fail:
25940 return NULL;
25941 }
25942
25943
25944 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25945 PyObject *resultobj = 0;
25946 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25947 void *argp1 = 0 ;
25948 int res1 = 0 ;
25949 PyObject *swig_obj[1] ;
25950
25951 if (!args) SWIG_fail;
25952 swig_obj[0] = args;
25953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25954 if (!SWIG_IsOK(res1)) {
25955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25956 }
25957 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25958 {
25959 (arg1)->Invert();
25960 if (PyErr_Occurred()) SWIG_fail;
25961 }
25962 resultobj = SWIG_Py_Void();
25963 return resultobj;
25964 fail:
25965 return NULL;
25966 }
25967
25968
25969 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25970 PyObject *resultobj = 0;
25971 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25972 wxGraphicsMatrix *arg2 = 0 ;
25973 bool result;
25974 void *argp1 = 0 ;
25975 int res1 = 0 ;
25976 void *argp2 = 0 ;
25977 int res2 = 0 ;
25978 PyObject * obj0 = 0 ;
25979 PyObject * obj1 = 0 ;
25980 char * kwnames[] = {
25981 (char *) "self",(char *) "t", NULL
25982 };
25983
25984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
25985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25986 if (!SWIG_IsOK(res1)) {
25987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
25988 }
25989 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25990 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25991 if (!SWIG_IsOK(res2)) {
25992 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25993 }
25994 if (!argp2) {
25995 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25996 }
25997 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
25998 {
25999 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
26000 if (PyErr_Occurred()) SWIG_fail;
26001 }
26002 {
26003 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26004 }
26005 return resultobj;
26006 fail:
26007 return NULL;
26008 }
26009
26010
26011 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26012 PyObject *resultobj = 0;
26013 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26014 bool result;
26015 void *argp1 = 0 ;
26016 int res1 = 0 ;
26017 PyObject *swig_obj[1] ;
26018
26019 if (!args) SWIG_fail;
26020 swig_obj[0] = args;
26021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26022 if (!SWIG_IsOK(res1)) {
26023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26024 }
26025 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26026 {
26027 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
26028 if (PyErr_Occurred()) SWIG_fail;
26029 }
26030 {
26031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26032 }
26033 return resultobj;
26034 fail:
26035 return NULL;
26036 }
26037
26038
26039 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26040 PyObject *resultobj = 0;
26041 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26042 wxDouble arg2 ;
26043 wxDouble arg3 ;
26044 void *argp1 = 0 ;
26045 int res1 = 0 ;
26046 double val2 ;
26047 int ecode2 = 0 ;
26048 double val3 ;
26049 int ecode3 = 0 ;
26050 PyObject * obj0 = 0 ;
26051 PyObject * obj1 = 0 ;
26052 PyObject * obj2 = 0 ;
26053 char * kwnames[] = {
26054 (char *) "self",(char *) "dx",(char *) "dy", NULL
26055 };
26056
26057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26059 if (!SWIG_IsOK(res1)) {
26060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26061 }
26062 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26063 ecode2 = SWIG_AsVal_double(obj1, &val2);
26064 if (!SWIG_IsOK(ecode2)) {
26065 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
26066 }
26067 arg2 = static_cast< wxDouble >(val2);
26068 ecode3 = SWIG_AsVal_double(obj2, &val3);
26069 if (!SWIG_IsOK(ecode3)) {
26070 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
26071 }
26072 arg3 = static_cast< wxDouble >(val3);
26073 {
26074 (arg1)->Translate(arg2,arg3);
26075 if (PyErr_Occurred()) SWIG_fail;
26076 }
26077 resultobj = SWIG_Py_Void();
26078 return resultobj;
26079 fail:
26080 return NULL;
26081 }
26082
26083
26084 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26085 PyObject *resultobj = 0;
26086 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26087 wxDouble arg2 ;
26088 wxDouble arg3 ;
26089 void *argp1 = 0 ;
26090 int res1 = 0 ;
26091 double val2 ;
26092 int ecode2 = 0 ;
26093 double val3 ;
26094 int ecode3 = 0 ;
26095 PyObject * obj0 = 0 ;
26096 PyObject * obj1 = 0 ;
26097 PyObject * obj2 = 0 ;
26098 char * kwnames[] = {
26099 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
26100 };
26101
26102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26104 if (!SWIG_IsOK(res1)) {
26105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26106 }
26107 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26108 ecode2 = SWIG_AsVal_double(obj1, &val2);
26109 if (!SWIG_IsOK(ecode2)) {
26110 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
26111 }
26112 arg2 = static_cast< wxDouble >(val2);
26113 ecode3 = SWIG_AsVal_double(obj2, &val3);
26114 if (!SWIG_IsOK(ecode3)) {
26115 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
26116 }
26117 arg3 = static_cast< wxDouble >(val3);
26118 {
26119 (arg1)->Scale(arg2,arg3);
26120 if (PyErr_Occurred()) SWIG_fail;
26121 }
26122 resultobj = SWIG_Py_Void();
26123 return resultobj;
26124 fail:
26125 return NULL;
26126 }
26127
26128
26129 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26130 PyObject *resultobj = 0;
26131 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26132 wxDouble arg2 ;
26133 void *argp1 = 0 ;
26134 int res1 = 0 ;
26135 double val2 ;
26136 int ecode2 = 0 ;
26137 PyObject * obj0 = 0 ;
26138 PyObject * obj1 = 0 ;
26139 char * kwnames[] = {
26140 (char *) "self",(char *) "angle", NULL
26141 };
26142
26143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
26144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26145 if (!SWIG_IsOK(res1)) {
26146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26147 }
26148 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26149 ecode2 = SWIG_AsVal_double(obj1, &val2);
26150 if (!SWIG_IsOK(ecode2)) {
26151 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
26152 }
26153 arg2 = static_cast< wxDouble >(val2);
26154 {
26155 (arg1)->Rotate(arg2);
26156 if (PyErr_Occurred()) SWIG_fail;
26157 }
26158 resultobj = SWIG_Py_Void();
26159 return resultobj;
26160 fail:
26161 return NULL;
26162 }
26163
26164
26165 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26166 PyObject *resultobj = 0;
26167 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26168 wxDouble *arg2 = (wxDouble *) 0 ;
26169 wxDouble *arg3 = (wxDouble *) 0 ;
26170 void *argp1 = 0 ;
26171 int res1 = 0 ;
26172 wxDouble temp2 ;
26173 int res2 = 0 ;
26174 wxDouble temp3 ;
26175 int res3 = 0 ;
26176 PyObject * obj0 = 0 ;
26177 PyObject * obj1 = 0 ;
26178 PyObject * obj2 = 0 ;
26179 char * kwnames[] = {
26180 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26181 };
26182
26183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26185 if (!SWIG_IsOK(res1)) {
26186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26187 }
26188 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26189 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26190 double val;
26191 int ecode = SWIG_AsVal_double(obj1, &val);
26192 if (!SWIG_IsOK(ecode)) {
26193 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26194 }
26195 temp2 = static_cast< wxDouble >(val);
26196 arg2 = &temp2;
26197 res2 = SWIG_AddTmpMask(ecode);
26198 }
26199 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26200 double val;
26201 int ecode = SWIG_AsVal_double(obj2, &val);
26202 if (!SWIG_IsOK(ecode)) {
26203 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26204 }
26205 temp3 = static_cast< wxDouble >(val);
26206 arg3 = &temp3;
26207 res3 = SWIG_AddTmpMask(ecode);
26208 }
26209 {
26210 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
26211 if (PyErr_Occurred()) SWIG_fail;
26212 }
26213 resultobj = SWIG_Py_Void();
26214 if (SWIG_IsTmpObj(res2)) {
26215 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26216 } else {
26217 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26218 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26219 }
26220 if (SWIG_IsTmpObj(res3)) {
26221 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26222 } else {
26223 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26224 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26225 }
26226 return resultobj;
26227 fail:
26228 return NULL;
26229 }
26230
26231
26232 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26233 PyObject *resultobj = 0;
26234 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26235 wxDouble *arg2 = (wxDouble *) 0 ;
26236 wxDouble *arg3 = (wxDouble *) 0 ;
26237 void *argp1 = 0 ;
26238 int res1 = 0 ;
26239 wxDouble temp2 ;
26240 int res2 = 0 ;
26241 wxDouble temp3 ;
26242 int res3 = 0 ;
26243 PyObject * obj0 = 0 ;
26244 PyObject * obj1 = 0 ;
26245 PyObject * obj2 = 0 ;
26246 char * kwnames[] = {
26247 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26248 };
26249
26250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26252 if (!SWIG_IsOK(res1)) {
26253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26254 }
26255 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26256 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26257 double val;
26258 int ecode = SWIG_AsVal_double(obj1, &val);
26259 if (!SWIG_IsOK(ecode)) {
26260 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
26261 }
26262 temp2 = static_cast< wxDouble >(val);
26263 arg2 = &temp2;
26264 res2 = SWIG_AddTmpMask(ecode);
26265 }
26266 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26267 double val;
26268 int ecode = SWIG_AsVal_double(obj2, &val);
26269 if (!SWIG_IsOK(ecode)) {
26270 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
26271 }
26272 temp3 = static_cast< wxDouble >(val);
26273 arg3 = &temp3;
26274 res3 = SWIG_AddTmpMask(ecode);
26275 }
26276 {
26277 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
26278 if (PyErr_Occurred()) SWIG_fail;
26279 }
26280 resultobj = SWIG_Py_Void();
26281 if (SWIG_IsTmpObj(res2)) {
26282 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26283 } else {
26284 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26285 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26286 }
26287 if (SWIG_IsTmpObj(res3)) {
26288 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26289 } else {
26290 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26291 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26292 }
26293 return resultobj;
26294 fail:
26295 return NULL;
26296 }
26297
26298
26299 SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26300 PyObject *resultobj = 0;
26301 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26302 void *result = 0 ;
26303 void *argp1 = 0 ;
26304 int res1 = 0 ;
26305 PyObject *swig_obj[1] ;
26306
26307 if (!args) SWIG_fail;
26308 swig_obj[0] = args;
26309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26310 if (!SWIG_IsOK(res1)) {
26311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26312 }
26313 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26314 {
26315 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
26316 if (PyErr_Occurred()) SWIG_fail;
26317 }
26318 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26319 return resultobj;
26320 fail:
26321 return NULL;
26322 }
26323
26324
26325 SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26326 PyObject *obj;
26327 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26328 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
26329 return SWIG_Py_Void();
26330 }
26331
26332 SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26333 return SWIG_Python_InitShadowInstance(args);
26334 }
26335
26336 SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26337 PyObject *resultobj = 0;
26338 wxGraphicsPath *result = 0 ;
26339
26340 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail;
26341 {
26342 if (!wxPyCheckForApp()) SWIG_fail;
26343 PyThreadState* __tstate = wxPyBeginAllowThreads();
26344 result = (wxGraphicsPath *)new wxGraphicsPath();
26345 wxPyEndAllowThreads(__tstate);
26346 if (PyErr_Occurred()) SWIG_fail;
26347 }
26348 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 );
26349 return resultobj;
26350 fail:
26351 return NULL;
26352 }
26353
26354
26355 SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26356 PyObject *resultobj = 0;
26357 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26358 void *argp1 = 0 ;
26359 int res1 = 0 ;
26360 PyObject *swig_obj[1] ;
26361
26362 if (!args) SWIG_fail;
26363 swig_obj[0] = args;
26364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
26365 if (!SWIG_IsOK(res1)) {
26366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26367 }
26368 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26369 {
26370 delete arg1;
26371
26372 if (PyErr_Occurred()) SWIG_fail;
26373 }
26374 resultobj = SWIG_Py_Void();
26375 return resultobj;
26376 fail:
26377 return NULL;
26378 }
26379
26380
26381 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26382 PyObject *resultobj = 0;
26383 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26384 wxDouble arg2 ;
26385 wxDouble arg3 ;
26386 void *argp1 = 0 ;
26387 int res1 = 0 ;
26388 double val2 ;
26389 int ecode2 = 0 ;
26390 double val3 ;
26391 int ecode3 = 0 ;
26392
26393 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
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_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26397 }
26398 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26399 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26400 if (!SWIG_IsOK(ecode2)) {
26401 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26402 }
26403 arg2 = static_cast< wxDouble >(val2);
26404 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26405 if (!SWIG_IsOK(ecode3)) {
26406 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26407 }
26408 arg3 = static_cast< wxDouble >(val3);
26409 {
26410 (arg1)->MoveToPoint(arg2,arg3);
26411 if (PyErr_Occurred()) SWIG_fail;
26412 }
26413 resultobj = SWIG_Py_Void();
26414 return resultobj;
26415 fail:
26416 return NULL;
26417 }
26418
26419
26420 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26421 PyObject *resultobj = 0;
26422 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26423 wxPoint2D *arg2 = 0 ;
26424 void *argp1 = 0 ;
26425 int res1 = 0 ;
26426 wxPoint2D temp2 ;
26427
26428 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26430 if (!SWIG_IsOK(res1)) {
26431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26432 }
26433 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26434 {
26435 arg2 = &temp2;
26436 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26437 }
26438 {
26439 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
26440 if (PyErr_Occurred()) SWIG_fail;
26441 }
26442 resultobj = SWIG_Py_Void();
26443 return resultobj;
26444 fail:
26445 return NULL;
26446 }
26447
26448
26449 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
26450 int argc;
26451 PyObject *argv[4];
26452
26453 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
26454 --argc;
26455 if (argc == 2) {
26456 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
26457 }
26458 if (argc == 3) {
26459 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
26460 }
26461
26462 fail:
26463 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
26464 return NULL;
26465 }
26466
26467
26468 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26469 PyObject *resultobj = 0;
26470 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26471 wxDouble arg2 ;
26472 wxDouble arg3 ;
26473 void *argp1 = 0 ;
26474 int res1 = 0 ;
26475 double val2 ;
26476 int ecode2 = 0 ;
26477 double val3 ;
26478 int ecode3 = 0 ;
26479
26480 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26482 if (!SWIG_IsOK(res1)) {
26483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26484 }
26485 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26486 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26487 if (!SWIG_IsOK(ecode2)) {
26488 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26489 }
26490 arg2 = static_cast< wxDouble >(val2);
26491 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26492 if (!SWIG_IsOK(ecode3)) {
26493 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26494 }
26495 arg3 = static_cast< wxDouble >(val3);
26496 {
26497 (arg1)->AddLineToPoint(arg2,arg3);
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_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26508 PyObject *resultobj = 0;
26509 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26510 wxPoint2D *arg2 = 0 ;
26511 void *argp1 = 0 ;
26512 int res1 = 0 ;
26513 wxPoint2D temp2 ;
26514
26515 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26517 if (!SWIG_IsOK(res1)) {
26518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26519 }
26520 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26521 {
26522 arg2 = &temp2;
26523 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26524 }
26525 {
26526 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
26527 if (PyErr_Occurred()) SWIG_fail;
26528 }
26529 resultobj = SWIG_Py_Void();
26530 return resultobj;
26531 fail:
26532 return NULL;
26533 }
26534
26535
26536 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
26537 int argc;
26538 PyObject *argv[4];
26539
26540 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
26541 --argc;
26542 if (argc == 2) {
26543 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
26544 }
26545 if (argc == 3) {
26546 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
26547 }
26548
26549 fail:
26550 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
26551 return NULL;
26552 }
26553
26554
26555 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26556 PyObject *resultobj = 0;
26557 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26558 wxDouble arg2 ;
26559 wxDouble arg3 ;
26560 wxDouble arg4 ;
26561 wxDouble arg5 ;
26562 wxDouble arg6 ;
26563 wxDouble arg7 ;
26564 void *argp1 = 0 ;
26565 int res1 = 0 ;
26566 double val2 ;
26567 int ecode2 = 0 ;
26568 double val3 ;
26569 int ecode3 = 0 ;
26570 double val4 ;
26571 int ecode4 = 0 ;
26572 double val5 ;
26573 int ecode5 = 0 ;
26574 double val6 ;
26575 int ecode6 = 0 ;
26576 double val7 ;
26577 int ecode7 = 0 ;
26578
26579 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
26580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26581 if (!SWIG_IsOK(res1)) {
26582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26583 }
26584 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26585 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26586 if (!SWIG_IsOK(ecode2)) {
26587 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26588 }
26589 arg2 = static_cast< wxDouble >(val2);
26590 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26591 if (!SWIG_IsOK(ecode3)) {
26592 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26593 }
26594 arg3 = static_cast< wxDouble >(val3);
26595 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26596 if (!SWIG_IsOK(ecode4)) {
26597 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26598 }
26599 arg4 = static_cast< wxDouble >(val4);
26600 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26601 if (!SWIG_IsOK(ecode5)) {
26602 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26603 }
26604 arg5 = static_cast< wxDouble >(val5);
26605 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
26606 if (!SWIG_IsOK(ecode6)) {
26607 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
26608 }
26609 arg6 = static_cast< wxDouble >(val6);
26610 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
26611 if (!SWIG_IsOK(ecode7)) {
26612 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
26613 }
26614 arg7 = static_cast< wxDouble >(val7);
26615 {
26616 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
26617 if (PyErr_Occurred()) SWIG_fail;
26618 }
26619 resultobj = SWIG_Py_Void();
26620 return resultobj;
26621 fail:
26622 return NULL;
26623 }
26624
26625
26626 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26627 PyObject *resultobj = 0;
26628 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26629 wxPoint2D *arg2 = 0 ;
26630 wxPoint2D *arg3 = 0 ;
26631 wxPoint2D *arg4 = 0 ;
26632 void *argp1 = 0 ;
26633 int res1 = 0 ;
26634 wxPoint2D temp2 ;
26635 wxPoint2D temp3 ;
26636 wxPoint2D temp4 ;
26637
26638 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
26639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26640 if (!SWIG_IsOK(res1)) {
26641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26642 }
26643 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26644 {
26645 arg2 = &temp2;
26646 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26647 }
26648 {
26649 arg3 = &temp3;
26650 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
26651 }
26652 {
26653 arg4 = &temp4;
26654 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
26655 }
26656 {
26657 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
26658 if (PyErr_Occurred()) SWIG_fail;
26659 }
26660 resultobj = SWIG_Py_Void();
26661 return resultobj;
26662 fail:
26663 return NULL;
26664 }
26665
26666
26667 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
26668 int argc;
26669 PyObject *argv[8];
26670
26671 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
26672 --argc;
26673 if (argc == 4) {
26674 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
26675 }
26676 if (argc == 7) {
26677 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
26678 }
26679
26680 fail:
26681 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
26682 return NULL;
26683 }
26684
26685
26686 SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26687 PyObject *resultobj = 0;
26688 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26689 wxGraphicsPath *arg2 = 0 ;
26690 void *argp1 = 0 ;
26691 int res1 = 0 ;
26692 void *argp2 = 0 ;
26693 int res2 = 0 ;
26694 PyObject * obj0 = 0 ;
26695 PyObject * obj1 = 0 ;
26696 char * kwnames[] = {
26697 (char *) "self",(char *) "path", NULL
26698 };
26699
26700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
26701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26702 if (!SWIG_IsOK(res1)) {
26703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26704 }
26705 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26706 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
26707 if (!SWIG_IsOK(res2)) {
26708 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
26709 }
26710 if (!argp2) {
26711 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
26712 }
26713 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
26714 {
26715 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
26716 if (PyErr_Occurred()) SWIG_fail;
26717 }
26718 resultobj = SWIG_Py_Void();
26719 return resultobj;
26720 fail:
26721 return NULL;
26722 }
26723
26724
26725 SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26726 PyObject *resultobj = 0;
26727 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26728 void *argp1 = 0 ;
26729 int res1 = 0 ;
26730 PyObject *swig_obj[1] ;
26731
26732 if (!args) SWIG_fail;
26733 swig_obj[0] = args;
26734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26735 if (!SWIG_IsOK(res1)) {
26736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26737 }
26738 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26739 {
26740 (arg1)->CloseSubpath();
26741 if (PyErr_Occurred()) SWIG_fail;
26742 }
26743 resultobj = SWIG_Py_Void();
26744 return resultobj;
26745 fail:
26746 return NULL;
26747 }
26748
26749
26750 SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26751 PyObject *resultobj = 0;
26752 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26753 wxPoint2D result;
26754 void *argp1 = 0 ;
26755 int res1 = 0 ;
26756 PyObject *swig_obj[1] ;
26757
26758 if (!args) SWIG_fail;
26759 swig_obj[0] = args;
26760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26761 if (!SWIG_IsOK(res1)) {
26762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
26763 }
26764 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26765 {
26766 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
26767 if (PyErr_Occurred()) SWIG_fail;
26768 }
26769 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
26770 return resultobj;
26771 fail:
26772 return NULL;
26773 }
26774
26775
26776 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26777 PyObject *resultobj = 0;
26778 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26779 wxDouble arg2 ;
26780 wxDouble arg3 ;
26781 wxDouble arg4 ;
26782 wxDouble arg5 ;
26783 wxDouble arg6 ;
26784 bool arg7 ;
26785 void *argp1 = 0 ;
26786 int res1 = 0 ;
26787 double val2 ;
26788 int ecode2 = 0 ;
26789 double val3 ;
26790 int ecode3 = 0 ;
26791 double val4 ;
26792 int ecode4 = 0 ;
26793 double val5 ;
26794 int ecode5 = 0 ;
26795 double val6 ;
26796 int ecode6 = 0 ;
26797 bool val7 ;
26798 int ecode7 = 0 ;
26799
26800 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
26801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26802 if (!SWIG_IsOK(res1)) {
26803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26804 }
26805 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26806 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26807 if (!SWIG_IsOK(ecode2)) {
26808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
26809 }
26810 arg2 = static_cast< wxDouble >(val2);
26811 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26812 if (!SWIG_IsOK(ecode3)) {
26813 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
26814 }
26815 arg3 = static_cast< wxDouble >(val3);
26816 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26817 if (!SWIG_IsOK(ecode4)) {
26818 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26819 }
26820 arg4 = static_cast< wxDouble >(val4);
26821 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26822 if (!SWIG_IsOK(ecode5)) {
26823 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26824 }
26825 arg5 = static_cast< wxDouble >(val5);
26826 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
26827 if (!SWIG_IsOK(ecode6)) {
26828 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
26829 }
26830 arg6 = static_cast< wxDouble >(val6);
26831 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
26832 if (!SWIG_IsOK(ecode7)) {
26833 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
26834 }
26835 arg7 = static_cast< bool >(val7);
26836 {
26837 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
26838 if (PyErr_Occurred()) SWIG_fail;
26839 }
26840 resultobj = SWIG_Py_Void();
26841 return resultobj;
26842 fail:
26843 return NULL;
26844 }
26845
26846
26847 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26848 PyObject *resultobj = 0;
26849 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26850 wxPoint2D *arg2 = 0 ;
26851 wxDouble arg3 ;
26852 wxDouble arg4 ;
26853 wxDouble arg5 ;
26854 bool arg6 ;
26855 void *argp1 = 0 ;
26856 int res1 = 0 ;
26857 wxPoint2D temp2 ;
26858 double val3 ;
26859 int ecode3 = 0 ;
26860 double val4 ;
26861 int ecode4 = 0 ;
26862 double val5 ;
26863 int ecode5 = 0 ;
26864 bool val6 ;
26865 int ecode6 = 0 ;
26866
26867 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
26868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26869 if (!SWIG_IsOK(res1)) {
26870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26871 }
26872 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26873 {
26874 arg2 = &temp2;
26875 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26876 }
26877 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26878 if (!SWIG_IsOK(ecode3)) {
26879 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
26880 }
26881 arg3 = static_cast< wxDouble >(val3);
26882 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26883 if (!SWIG_IsOK(ecode4)) {
26884 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26885 }
26886 arg4 = static_cast< wxDouble >(val4);
26887 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26888 if (!SWIG_IsOK(ecode5)) {
26889 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26890 }
26891 arg5 = static_cast< wxDouble >(val5);
26892 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
26893 if (!SWIG_IsOK(ecode6)) {
26894 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
26895 }
26896 arg6 = static_cast< bool >(val6);
26897 {
26898 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
26899 if (PyErr_Occurred()) SWIG_fail;
26900 }
26901 resultobj = SWIG_Py_Void();
26902 return resultobj;
26903 fail:
26904 return NULL;
26905 }
26906
26907
26908 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
26909 int argc;
26910 PyObject *argv[8];
26911
26912 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
26913 --argc;
26914 if (argc == 6) {
26915 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
26916 }
26917 if (argc == 7) {
26918 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
26919 }
26920
26921 fail:
26922 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
26923 return NULL;
26924 }
26925
26926
26927 SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26928 PyObject *resultobj = 0;
26929 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26930 wxDouble arg2 ;
26931 wxDouble arg3 ;
26932 wxDouble arg4 ;
26933 wxDouble arg5 ;
26934 void *argp1 = 0 ;
26935 int res1 = 0 ;
26936 double val2 ;
26937 int ecode2 = 0 ;
26938 double val3 ;
26939 int ecode3 = 0 ;
26940 double val4 ;
26941 int ecode4 = 0 ;
26942 double val5 ;
26943 int ecode5 = 0 ;
26944 PyObject * obj0 = 0 ;
26945 PyObject * obj1 = 0 ;
26946 PyObject * obj2 = 0 ;
26947 PyObject * obj3 = 0 ;
26948 PyObject * obj4 = 0 ;
26949 char * kwnames[] = {
26950 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
26951 };
26952
26953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26955 if (!SWIG_IsOK(res1)) {
26956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26957 }
26958 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26959 ecode2 = SWIG_AsVal_double(obj1, &val2);
26960 if (!SWIG_IsOK(ecode2)) {
26961 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26962 }
26963 arg2 = static_cast< wxDouble >(val2);
26964 ecode3 = SWIG_AsVal_double(obj2, &val3);
26965 if (!SWIG_IsOK(ecode3)) {
26966 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26967 }
26968 arg3 = static_cast< wxDouble >(val3);
26969 ecode4 = SWIG_AsVal_double(obj3, &val4);
26970 if (!SWIG_IsOK(ecode4)) {
26971 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26972 }
26973 arg4 = static_cast< wxDouble >(val4);
26974 ecode5 = SWIG_AsVal_double(obj4, &val5);
26975 if (!SWIG_IsOK(ecode5)) {
26976 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26977 }
26978 arg5 = static_cast< wxDouble >(val5);
26979 {
26980 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
26981 if (PyErr_Occurred()) SWIG_fail;
26982 }
26983 resultobj = SWIG_Py_Void();
26984 return resultobj;
26985 fail:
26986 return NULL;
26987 }
26988
26989
26990 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26991 PyObject *resultobj = 0;
26992 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26993 wxDouble arg2 ;
26994 wxDouble arg3 ;
26995 wxDouble arg4 ;
26996 wxDouble arg5 ;
26997 void *argp1 = 0 ;
26998 int res1 = 0 ;
26999 double val2 ;
27000 int ecode2 = 0 ;
27001 double val3 ;
27002 int ecode3 = 0 ;
27003 double val4 ;
27004 int ecode4 = 0 ;
27005 double val5 ;
27006 int ecode5 = 0 ;
27007 PyObject * obj0 = 0 ;
27008 PyObject * obj1 = 0 ;
27009 PyObject * obj2 = 0 ;
27010 PyObject * obj3 = 0 ;
27011 PyObject * obj4 = 0 ;
27012 char * kwnames[] = {
27013 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27014 };
27015
27016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27018 if (!SWIG_IsOK(res1)) {
27019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27020 }
27021 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27022 ecode2 = SWIG_AsVal_double(obj1, &val2);
27023 if (!SWIG_IsOK(ecode2)) {
27024 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27025 }
27026 arg2 = static_cast< wxDouble >(val2);
27027 ecode3 = SWIG_AsVal_double(obj2, &val3);
27028 if (!SWIG_IsOK(ecode3)) {
27029 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27030 }
27031 arg3 = static_cast< wxDouble >(val3);
27032 ecode4 = SWIG_AsVal_double(obj3, &val4);
27033 if (!SWIG_IsOK(ecode4)) {
27034 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27035 }
27036 arg4 = static_cast< wxDouble >(val4);
27037 ecode5 = SWIG_AsVal_double(obj4, &val5);
27038 if (!SWIG_IsOK(ecode5)) {
27039 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27040 }
27041 arg5 = static_cast< wxDouble >(val5);
27042 {
27043 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
27044 if (PyErr_Occurred()) SWIG_fail;
27045 }
27046 resultobj = SWIG_Py_Void();
27047 return resultobj;
27048 fail:
27049 return NULL;
27050 }
27051
27052
27053 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27054 PyObject *resultobj = 0;
27055 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27056 wxDouble arg2 ;
27057 wxDouble arg3 ;
27058 wxDouble arg4 ;
27059 void *argp1 = 0 ;
27060 int res1 = 0 ;
27061 double val2 ;
27062 int ecode2 = 0 ;
27063 double val3 ;
27064 int ecode3 = 0 ;
27065 double val4 ;
27066 int ecode4 = 0 ;
27067 PyObject * obj0 = 0 ;
27068 PyObject * obj1 = 0 ;
27069 PyObject * obj2 = 0 ;
27070 PyObject * obj3 = 0 ;
27071 char * kwnames[] = {
27072 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
27073 };
27074
27075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27077 if (!SWIG_IsOK(res1)) {
27078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27079 }
27080 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27081 ecode2 = SWIG_AsVal_double(obj1, &val2);
27082 if (!SWIG_IsOK(ecode2)) {
27083 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
27084 }
27085 arg2 = static_cast< wxDouble >(val2);
27086 ecode3 = SWIG_AsVal_double(obj2, &val3);
27087 if (!SWIG_IsOK(ecode3)) {
27088 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
27089 }
27090 arg3 = static_cast< wxDouble >(val3);
27091 ecode4 = SWIG_AsVal_double(obj3, &val4);
27092 if (!SWIG_IsOK(ecode4)) {
27093 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
27094 }
27095 arg4 = static_cast< wxDouble >(val4);
27096 {
27097 (arg1)->AddCircle(arg2,arg3,arg4);
27098 if (PyErr_Occurred()) SWIG_fail;
27099 }
27100 resultobj = SWIG_Py_Void();
27101 return resultobj;
27102 fail:
27103 return NULL;
27104 }
27105
27106
27107 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27108 PyObject *resultobj = 0;
27109 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27110 wxDouble arg2 ;
27111 wxDouble arg3 ;
27112 wxDouble arg4 ;
27113 wxDouble arg5 ;
27114 wxDouble arg6 ;
27115 void *argp1 = 0 ;
27116 int res1 = 0 ;
27117 double val2 ;
27118 int ecode2 = 0 ;
27119 double val3 ;
27120 int ecode3 = 0 ;
27121 double val4 ;
27122 int ecode4 = 0 ;
27123 double val5 ;
27124 int ecode5 = 0 ;
27125 double val6 ;
27126 int ecode6 = 0 ;
27127 PyObject * obj0 = 0 ;
27128 PyObject * obj1 = 0 ;
27129 PyObject * obj2 = 0 ;
27130 PyObject * obj3 = 0 ;
27131 PyObject * obj4 = 0 ;
27132 PyObject * obj5 = 0 ;
27133 char * kwnames[] = {
27134 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
27135 };
27136
27137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27139 if (!SWIG_IsOK(res1)) {
27140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27141 }
27142 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27143 ecode2 = SWIG_AsVal_double(obj1, &val2);
27144 if (!SWIG_IsOK(ecode2)) {
27145 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27146 }
27147 arg2 = static_cast< wxDouble >(val2);
27148 ecode3 = SWIG_AsVal_double(obj2, &val3);
27149 if (!SWIG_IsOK(ecode3)) {
27150 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27151 }
27152 arg3 = static_cast< wxDouble >(val3);
27153 ecode4 = SWIG_AsVal_double(obj3, &val4);
27154 if (!SWIG_IsOK(ecode4)) {
27155 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27156 }
27157 arg4 = static_cast< wxDouble >(val4);
27158 ecode5 = SWIG_AsVal_double(obj4, &val5);
27159 if (!SWIG_IsOK(ecode5)) {
27160 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27161 }
27162 arg5 = static_cast< wxDouble >(val5);
27163 ecode6 = SWIG_AsVal_double(obj5, &val6);
27164 if (!SWIG_IsOK(ecode6)) {
27165 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27166 }
27167 arg6 = static_cast< wxDouble >(val6);
27168 {
27169 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
27170 if (PyErr_Occurred()) SWIG_fail;
27171 }
27172 resultobj = SWIG_Py_Void();
27173 return resultobj;
27174 fail:
27175 return NULL;
27176 }
27177
27178
27179 SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27180 PyObject *resultobj = 0;
27181 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27182 wxDouble arg2 ;
27183 wxDouble arg3 ;
27184 wxDouble arg4 ;
27185 wxDouble arg5 ;
27186 void *argp1 = 0 ;
27187 int res1 = 0 ;
27188 double val2 ;
27189 int ecode2 = 0 ;
27190 double val3 ;
27191 int ecode3 = 0 ;
27192 double val4 ;
27193 int ecode4 = 0 ;
27194 double val5 ;
27195 int ecode5 = 0 ;
27196 PyObject * obj0 = 0 ;
27197 PyObject * obj1 = 0 ;
27198 PyObject * obj2 = 0 ;
27199 PyObject * obj3 = 0 ;
27200 PyObject * obj4 = 0 ;
27201 char * kwnames[] = {
27202 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27203 };
27204
27205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27207 if (!SWIG_IsOK(res1)) {
27208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27209 }
27210 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27211 ecode2 = SWIG_AsVal_double(obj1, &val2);
27212 if (!SWIG_IsOK(ecode2)) {
27213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27214 }
27215 arg2 = static_cast< wxDouble >(val2);
27216 ecode3 = SWIG_AsVal_double(obj2, &val3);
27217 if (!SWIG_IsOK(ecode3)) {
27218 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27219 }
27220 arg3 = static_cast< wxDouble >(val3);
27221 ecode4 = SWIG_AsVal_double(obj3, &val4);
27222 if (!SWIG_IsOK(ecode4)) {
27223 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27224 }
27225 arg4 = static_cast< wxDouble >(val4);
27226 ecode5 = SWIG_AsVal_double(obj4, &val5);
27227 if (!SWIG_IsOK(ecode5)) {
27228 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27229 }
27230 arg5 = static_cast< wxDouble >(val5);
27231 {
27232 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
27233 if (PyErr_Occurred()) SWIG_fail;
27234 }
27235 resultobj = SWIG_Py_Void();
27236 return resultobj;
27237 fail:
27238 return NULL;
27239 }
27240
27241
27242 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27243 PyObject *resultobj = 0;
27244 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27245 wxDouble arg2 ;
27246 wxDouble arg3 ;
27247 wxDouble arg4 ;
27248 wxDouble arg5 ;
27249 wxDouble arg6 ;
27250 void *argp1 = 0 ;
27251 int res1 = 0 ;
27252 double val2 ;
27253 int ecode2 = 0 ;
27254 double val3 ;
27255 int ecode3 = 0 ;
27256 double val4 ;
27257 int ecode4 = 0 ;
27258 double val5 ;
27259 int ecode5 = 0 ;
27260 double val6 ;
27261 int ecode6 = 0 ;
27262 PyObject * obj0 = 0 ;
27263 PyObject * obj1 = 0 ;
27264 PyObject * obj2 = 0 ;
27265 PyObject * obj3 = 0 ;
27266 PyObject * obj4 = 0 ;
27267 PyObject * obj5 = 0 ;
27268 char * kwnames[] = {
27269 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
27270 };
27271
27272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27274 if (!SWIG_IsOK(res1)) {
27275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27276 }
27277 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27278 ecode2 = SWIG_AsVal_double(obj1, &val2);
27279 if (!SWIG_IsOK(ecode2)) {
27280 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27281 }
27282 arg2 = static_cast< wxDouble >(val2);
27283 ecode3 = SWIG_AsVal_double(obj2, &val3);
27284 if (!SWIG_IsOK(ecode3)) {
27285 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27286 }
27287 arg3 = static_cast< wxDouble >(val3);
27288 ecode4 = SWIG_AsVal_double(obj3, &val4);
27289 if (!SWIG_IsOK(ecode4)) {
27290 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27291 }
27292 arg4 = static_cast< wxDouble >(val4);
27293 ecode5 = SWIG_AsVal_double(obj4, &val5);
27294 if (!SWIG_IsOK(ecode5)) {
27295 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27296 }
27297 arg5 = static_cast< wxDouble >(val5);
27298 ecode6 = SWIG_AsVal_double(obj5, &val6);
27299 if (!SWIG_IsOK(ecode6)) {
27300 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27301 }
27302 arg6 = static_cast< wxDouble >(val6);
27303 {
27304 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
27305 if (PyErr_Occurred()) SWIG_fail;
27306 }
27307 resultobj = SWIG_Py_Void();
27308 return resultobj;
27309 fail:
27310 return NULL;
27311 }
27312
27313
27314 SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27315 PyObject *resultobj = 0;
27316 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27317 void *result = 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_wxGraphicsPath, 0 | 0 );
27325 if (!SWIG_IsOK(res1)) {
27326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27327 }
27328 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27329 {
27330 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
27331 if (PyErr_Occurred()) SWIG_fail;
27332 }
27333 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
27334 return resultobj;
27335 fail:
27336 return NULL;
27337 }
27338
27339
27340 SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27341 PyObject *resultobj = 0;
27342 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27343 void *arg2 = (void *) 0 ;
27344 void *argp1 = 0 ;
27345 int res1 = 0 ;
27346 int res2 ;
27347 PyObject * obj0 = 0 ;
27348 PyObject * obj1 = 0 ;
27349 char * kwnames[] = {
27350 (char *) "self",(char *) "p", NULL
27351 };
27352
27353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
27354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27355 if (!SWIG_IsOK(res1)) {
27356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27357 }
27358 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27359 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
27360 if (!SWIG_IsOK(res2)) {
27361 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
27362 }
27363 {
27364 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
27365 if (PyErr_Occurred()) SWIG_fail;
27366 }
27367 resultobj = SWIG_Py_Void();
27368 return resultobj;
27369 fail:
27370 return NULL;
27371 }
27372
27373
27374 SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27375 PyObject *resultobj = 0;
27376 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27377 wxGraphicsMatrix *arg2 = 0 ;
27378 void *argp1 = 0 ;
27379 int res1 = 0 ;
27380 void *argp2 = 0 ;
27381 int res2 = 0 ;
27382 PyObject * obj0 = 0 ;
27383 PyObject * obj1 = 0 ;
27384 char * kwnames[] = {
27385 (char *) "self",(char *) "matrix", NULL
27386 };
27387
27388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
27389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27390 if (!SWIG_IsOK(res1)) {
27391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27392 }
27393 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27394 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
27395 if (!SWIG_IsOK(res2)) {
27396 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27397 }
27398 if (!argp2) {
27399 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27400 }
27401 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
27402 {
27403 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
27404 if (PyErr_Occurred()) SWIG_fail;
27405 }
27406 resultobj = SWIG_Py_Void();
27407 return resultobj;
27408 fail:
27409 return NULL;
27410 }
27411
27412
27413 SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27414 PyObject *resultobj = 0;
27415 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27416 wxRect2DDouble result;
27417 void *argp1 = 0 ;
27418 int res1 = 0 ;
27419 PyObject *swig_obj[1] ;
27420
27421 if (!args) SWIG_fail;
27422 swig_obj[0] = args;
27423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27424 if (!SWIG_IsOK(res1)) {
27425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27426 }
27427 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27428 {
27429 result = ((wxGraphicsPath const *)arg1)->GetBox();
27430 if (PyErr_Occurred()) SWIG_fail;
27431 }
27432 resultobj = SWIG_NewPointerObj((new wxRect2DDouble(static_cast< const wxRect2DDouble& >(result))), SWIGTYPE_p_wxRect2DDouble, SWIG_POINTER_OWN | 0 );
27433 return resultobj;
27434 fail:
27435 return NULL;
27436 }
27437
27438
27439 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27440 PyObject *resultobj = 0;
27441 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27442 wxDouble arg2 ;
27443 wxDouble arg3 ;
27444 int arg4 = (int) wxODDEVEN_RULE ;
27445 bool result;
27446 void *argp1 = 0 ;
27447 int res1 = 0 ;
27448 double val2 ;
27449 int ecode2 = 0 ;
27450 double val3 ;
27451 int ecode3 = 0 ;
27452 int val4 ;
27453 int ecode4 = 0 ;
27454
27455 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
27456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27457 if (!SWIG_IsOK(res1)) {
27458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27459 }
27460 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27461 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27462 if (!SWIG_IsOK(ecode2)) {
27463 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
27464 }
27465 arg2 = static_cast< wxDouble >(val2);
27466 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27467 if (!SWIG_IsOK(ecode3)) {
27468 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
27469 }
27470 arg3 = static_cast< wxDouble >(val3);
27471 if (swig_obj[3]) {
27472 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27473 if (!SWIG_IsOK(ecode4)) {
27474 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
27475 }
27476 arg4 = static_cast< int >(val4);
27477 }
27478 {
27479 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
27480 if (PyErr_Occurred()) SWIG_fail;
27481 }
27482 {
27483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27484 }
27485 return resultobj;
27486 fail:
27487 return NULL;
27488 }
27489
27490
27491 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27492 PyObject *resultobj = 0;
27493 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27494 wxPoint2DDouble *arg2 = 0 ;
27495 int arg3 = (int) wxODDEVEN_RULE ;
27496 bool result;
27497 void *argp1 = 0 ;
27498 int res1 = 0 ;
27499 void *argp2 = 0 ;
27500 int res2 = 0 ;
27501 int val3 ;
27502 int ecode3 = 0 ;
27503
27504 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
27505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27506 if (!SWIG_IsOK(res1)) {
27507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27508 }
27509 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27510 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPoint2DDouble, 0 | 0);
27511 if (!SWIG_IsOK(res2)) {
27512 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
27513 }
27514 if (!argp2) {
27515 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
27516 }
27517 arg2 = reinterpret_cast< wxPoint2DDouble * >(argp2);
27518 if (swig_obj[2]) {
27519 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27520 if (!SWIG_IsOK(ecode3)) {
27521 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
27522 }
27523 arg3 = static_cast< int >(val3);
27524 }
27525 {
27526 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2DDouble const &)*arg2,arg3);
27527 if (PyErr_Occurred()) SWIG_fail;
27528 }
27529 {
27530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27531 }
27532 return resultobj;
27533 fail:
27534 return NULL;
27535 }
27536
27537
27538 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
27539 int argc;
27540 PyObject *argv[5];
27541
27542 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
27543 --argc;
27544 if ((argc >= 2) && (argc <= 3)) {
27545 int _v = 0;
27546 {
27547 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxPoint2DDouble, 0);
27548 _v = SWIG_CheckState(res);
27549 }
27550 if (!_v) goto check_1;
27551 if (argc > 2) {
27552 {
27553 {
27554 int res = SWIG_AsVal_int(argv[2], NULL);
27555 _v = SWIG_CheckState(res);
27556 }
27557 }
27558 if (!_v) goto check_1;
27559 }
27560 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
27561 }
27562 check_1:
27563
27564 if ((argc >= 3) && (argc <= 4)) {
27565 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
27566 }
27567
27568 fail:
27569 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
27570 return NULL;
27571 }
27572
27573
27574 SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27575 PyObject *obj;
27576 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27577 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
27578 return SWIG_Py_Void();
27579 }
27580
27581 SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27582 return SWIG_Python_InitShadowInstance(args);
27583 }
27584
27585 SWIGINTERN int NullGraphicsPen_set(PyObject *) {
27586 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
27587 return 1;
27588 }
27589
27590
27591 SWIGINTERN PyObject *NullGraphicsPen_get(void) {
27592 PyObject *pyobj = 0;
27593
27594 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
27595 return pyobj;
27596 }
27597
27598
27599 SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
27600 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
27601 return 1;
27602 }
27603
27604
27605 SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
27606 PyObject *pyobj = 0;
27607
27608 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
27609 return pyobj;
27610 }
27611
27612
27613 SWIGINTERN int NullGraphicsFont_set(PyObject *) {
27614 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
27615 return 1;
27616 }
27617
27618
27619 SWIGINTERN PyObject *NullGraphicsFont_get(void) {
27620 PyObject *pyobj = 0;
27621
27622 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
27623 return pyobj;
27624 }
27625
27626
27627 SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
27628 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
27629 return 1;
27630 }
27631
27632
27633 SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
27634 PyObject *pyobj = 0;
27635
27636 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
27637 return pyobj;
27638 }
27639
27640
27641 SWIGINTERN int NullGraphicsPath_set(PyObject *) {
27642 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
27643 return 1;
27644 }
27645
27646
27647 SWIGINTERN PyObject *NullGraphicsPath_get(void) {
27648 PyObject *pyobj = 0;
27649
27650 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
27651 return pyobj;
27652 }
27653
27654
27655 SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27656 PyObject *resultobj = 0;
27657 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27658 void *argp1 = 0 ;
27659 int res1 = 0 ;
27660 PyObject *swig_obj[1] ;
27661
27662 if (!args) SWIG_fail;
27663 swig_obj[0] = args;
27664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
27665 if (!SWIG_IsOK(res1)) {
27666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27667 }
27668 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27669 {
27670 delete arg1;
27671
27672 if (PyErr_Occurred()) SWIG_fail;
27673 }
27674 resultobj = SWIG_Py_Void();
27675 return resultobj;
27676 fail:
27677 return NULL;
27678 }
27679
27680
27681 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27682 PyObject *resultobj = 0;
27683 wxWindowDC *arg1 = 0 ;
27684 wxGraphicsContext *result = 0 ;
27685 void *argp1 = 0 ;
27686 int res1 = 0 ;
27687
27688 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
27690 if (!SWIG_IsOK(res1)) {
27691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27692 }
27693 if (!argp1) {
27694 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27695 }
27696 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
27697 {
27698 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
27699 if (PyErr_Occurred()) SWIG_fail;
27700 }
27701 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27702 return resultobj;
27703 fail:
27704 return NULL;
27705 }
27706
27707
27708 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27709 PyObject *resultobj = 0;
27710 wxWindow *arg1 = (wxWindow *) 0 ;
27711 wxGraphicsContext *result = 0 ;
27712 void *argp1 = 0 ;
27713 int res1 = 0 ;
27714
27715 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
27717 if (!SWIG_IsOK(res1)) {
27718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
27719 }
27720 arg1 = reinterpret_cast< wxWindow * >(argp1);
27721 {
27722 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
27723 if (PyErr_Occurred()) SWIG_fail;
27724 }
27725 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27726 return resultobj;
27727 fail:
27728 return NULL;
27729 }
27730
27731
27732 SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
27733 int argc;
27734 PyObject *argv[2];
27735
27736 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
27737 --argc;
27738 if (argc == 1) {
27739 int _v = 0;
27740 {
27741 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
27742 _v = SWIG_CheckState(res);
27743 }
27744 if (!_v) goto check_1;
27745 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
27746 }
27747 check_1:
27748
27749 if (argc == 1) {
27750 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
27751 }
27752
27753 fail:
27754 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
27755 return NULL;
27756 }
27757
27758
27759 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27760 PyObject *resultobj = 0;
27761 wxGraphicsContext *result = 0 ;
27762
27763 if (!SWIG_Python_UnpackTuple(args,"GraphicsContext_CreateMeasuringContext",0,0,0)) SWIG_fail;
27764 {
27765 result = (wxGraphicsContext *)wxGraphicsContext::Create();
27766 if (PyErr_Occurred()) SWIG_fail;
27767 }
27768 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27769 return resultobj;
27770 fail:
27771 return NULL;
27772 }
27773
27774
27775 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27776 PyObject *resultobj = 0;
27777 void *arg1 = (void *) 0 ;
27778 wxGraphicsContext *result = 0 ;
27779 int res1 ;
27780 PyObject * obj0 = 0 ;
27781 char * kwnames[] = {
27782 (char *) "context", NULL
27783 };
27784
27785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
27786 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27787 if (!SWIG_IsOK(res1)) {
27788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
27789 }
27790 {
27791 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
27792 if (PyErr_Occurred()) SWIG_fail;
27793 }
27794 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27795 return resultobj;
27796 fail:
27797 return NULL;
27798 }
27799
27800
27801 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27802 PyObject *resultobj = 0;
27803 void *arg1 = (void *) 0 ;
27804 wxGraphicsContext *result = 0 ;
27805 int res1 ;
27806 PyObject * obj0 = 0 ;
27807 char * kwnames[] = {
27808 (char *) "window", NULL
27809 };
27810
27811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
27812 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27813 if (!SWIG_IsOK(res1)) {
27814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
27815 }
27816 {
27817 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
27818 if (PyErr_Occurred()) SWIG_fail;
27819 }
27820 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27821 return resultobj;
27822 fail:
27823 return NULL;
27824 }
27825
27826
27827 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27828 PyObject *resultobj = 0;
27829 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27830 wxGraphicsPath result;
27831 void *argp1 = 0 ;
27832 int res1 = 0 ;
27833 PyObject *swig_obj[1] ;
27834
27835 if (!args) SWIG_fail;
27836 swig_obj[0] = args;
27837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27838 if (!SWIG_IsOK(res1)) {
27839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27840 }
27841 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27842 {
27843 result = (arg1)->CreatePath();
27844 if (PyErr_Occurred()) SWIG_fail;
27845 }
27846 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
27847 return resultobj;
27848 fail:
27849 return NULL;
27850 }
27851
27852
27853 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27854 PyObject *resultobj = 0;
27855 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27856 wxPen *arg2 = 0 ;
27857 wxGraphicsPen result;
27858 void *argp1 = 0 ;
27859 int res1 = 0 ;
27860 void *argp2 = 0 ;
27861 int res2 = 0 ;
27862 PyObject * obj0 = 0 ;
27863 PyObject * obj1 = 0 ;
27864 char * kwnames[] = {
27865 (char *) "self",(char *) "pen", NULL
27866 };
27867
27868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
27869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27870 if (!SWIG_IsOK(res1)) {
27871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27872 }
27873 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27874 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
27875 if (!SWIG_IsOK(res2)) {
27876 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27877 }
27878 if (!argp2) {
27879 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27880 }
27881 arg2 = reinterpret_cast< wxPen * >(argp2);
27882 {
27883 result = (arg1)->CreatePen((wxPen const &)*arg2);
27884 if (PyErr_Occurred()) SWIG_fail;
27885 }
27886 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
27887 return resultobj;
27888 fail:
27889 return NULL;
27890 }
27891
27892
27893 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27894 PyObject *resultobj = 0;
27895 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27896 wxBrush *arg2 = 0 ;
27897 wxGraphicsBrush result;
27898 void *argp1 = 0 ;
27899 int res1 = 0 ;
27900 void *argp2 = 0 ;
27901 int res2 = 0 ;
27902 PyObject * obj0 = 0 ;
27903 PyObject * obj1 = 0 ;
27904 char * kwnames[] = {
27905 (char *) "self",(char *) "brush", NULL
27906 };
27907
27908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
27909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27910 if (!SWIG_IsOK(res1)) {
27911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27912 }
27913 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27914 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
27915 if (!SWIG_IsOK(res2)) {
27916 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27917 }
27918 if (!argp2) {
27919 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27920 }
27921 arg2 = reinterpret_cast< wxBrush * >(argp2);
27922 {
27923 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
27924 if (PyErr_Occurred()) SWIG_fail;
27925 }
27926 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
27927 return resultobj;
27928 fail:
27929 return NULL;
27930 }
27931
27932
27933 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27934 PyObject *resultobj = 0;
27935 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27936 wxDouble arg2 ;
27937 wxDouble arg3 ;
27938 wxDouble arg4 ;
27939 wxDouble arg5 ;
27940 wxColour *arg6 = 0 ;
27941 wxColour *arg7 = 0 ;
27942 wxGraphicsBrush result;
27943 void *argp1 = 0 ;
27944 int res1 = 0 ;
27945 double val2 ;
27946 int ecode2 = 0 ;
27947 double val3 ;
27948 int ecode3 = 0 ;
27949 double val4 ;
27950 int ecode4 = 0 ;
27951 double val5 ;
27952 int ecode5 = 0 ;
27953 wxColour temp6 ;
27954 wxColour temp7 ;
27955 PyObject * obj0 = 0 ;
27956 PyObject * obj1 = 0 ;
27957 PyObject * obj2 = 0 ;
27958 PyObject * obj3 = 0 ;
27959 PyObject * obj4 = 0 ;
27960 PyObject * obj5 = 0 ;
27961 PyObject * obj6 = 0 ;
27962 char * kwnames[] = {
27963 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
27964 };
27965
27966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27968 if (!SWIG_IsOK(res1)) {
27969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27970 }
27971 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27972 ecode2 = SWIG_AsVal_double(obj1, &val2);
27973 if (!SWIG_IsOK(ecode2)) {
27974 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
27975 }
27976 arg2 = static_cast< wxDouble >(val2);
27977 ecode3 = SWIG_AsVal_double(obj2, &val3);
27978 if (!SWIG_IsOK(ecode3)) {
27979 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
27980 }
27981 arg3 = static_cast< wxDouble >(val3);
27982 ecode4 = SWIG_AsVal_double(obj3, &val4);
27983 if (!SWIG_IsOK(ecode4)) {
27984 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
27985 }
27986 arg4 = static_cast< wxDouble >(val4);
27987 ecode5 = SWIG_AsVal_double(obj4, &val5);
27988 if (!SWIG_IsOK(ecode5)) {
27989 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
27990 }
27991 arg5 = static_cast< wxDouble >(val5);
27992 {
27993 arg6 = &temp6;
27994 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
27995 }
27996 {
27997 arg7 = &temp7;
27998 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
27999 }
28000 {
28001 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
28002 if (PyErr_Occurred()) SWIG_fail;
28003 }
28004 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
28005 return resultobj;
28006 fail:
28007 return NULL;
28008 }
28009
28010
28011 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28012 PyObject *resultobj = 0;
28013 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28014 wxDouble arg2 ;
28015 wxDouble arg3 ;
28016 wxDouble arg4 ;
28017 wxDouble arg5 ;
28018 wxDouble arg6 ;
28019 wxColour *arg7 = 0 ;
28020 wxColour *arg8 = 0 ;
28021 wxGraphicsBrush result;
28022 void *argp1 = 0 ;
28023 int res1 = 0 ;
28024 double val2 ;
28025 int ecode2 = 0 ;
28026 double val3 ;
28027 int ecode3 = 0 ;
28028 double val4 ;
28029 int ecode4 = 0 ;
28030 double val5 ;
28031 int ecode5 = 0 ;
28032 double val6 ;
28033 int ecode6 = 0 ;
28034 wxColour temp7 ;
28035 wxColour temp8 ;
28036 PyObject * obj0 = 0 ;
28037 PyObject * obj1 = 0 ;
28038 PyObject * obj2 = 0 ;
28039 PyObject * obj3 = 0 ;
28040 PyObject * obj4 = 0 ;
28041 PyObject * obj5 = 0 ;
28042 PyObject * obj6 = 0 ;
28043 PyObject * obj7 = 0 ;
28044 char * kwnames[] = {
28045 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
28046 };
28047
28048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28050 if (!SWIG_IsOK(res1)) {
28051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28052 }
28053 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28054 ecode2 = SWIG_AsVal_double(obj1, &val2);
28055 if (!SWIG_IsOK(ecode2)) {
28056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
28057 }
28058 arg2 = static_cast< wxDouble >(val2);
28059 ecode3 = SWIG_AsVal_double(obj2, &val3);
28060 if (!SWIG_IsOK(ecode3)) {
28061 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
28062 }
28063 arg3 = static_cast< wxDouble >(val3);
28064 ecode4 = SWIG_AsVal_double(obj3, &val4);
28065 if (!SWIG_IsOK(ecode4)) {
28066 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
28067 }
28068 arg4 = static_cast< wxDouble >(val4);
28069 ecode5 = SWIG_AsVal_double(obj4, &val5);
28070 if (!SWIG_IsOK(ecode5)) {
28071 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
28072 }
28073 arg5 = static_cast< wxDouble >(val5);
28074 ecode6 = SWIG_AsVal_double(obj5, &val6);
28075 if (!SWIG_IsOK(ecode6)) {
28076 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
28077 }
28078 arg6 = static_cast< wxDouble >(val6);
28079 {
28080 arg7 = &temp7;
28081 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
28082 }
28083 {
28084 arg8 = &temp8;
28085 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
28086 }
28087 {
28088 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
28089 if (PyErr_Occurred()) SWIG_fail;
28090 }
28091 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
28092 return resultobj;
28093 fail:
28094 return NULL;
28095 }
28096
28097
28098 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28099 PyObject *resultobj = 0;
28100 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28101 wxFont *arg2 = 0 ;
28102 wxColour const &arg3_defvalue = *wxBLACK ;
28103 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
28104 wxGraphicsFont result;
28105 void *argp1 = 0 ;
28106 int res1 = 0 ;
28107 void *argp2 = 0 ;
28108 int res2 = 0 ;
28109 wxColour temp3 ;
28110 PyObject * obj0 = 0 ;
28111 PyObject * obj1 = 0 ;
28112 PyObject * obj2 = 0 ;
28113 char * kwnames[] = {
28114 (char *) "self",(char *) "font",(char *) "col", NULL
28115 };
28116
28117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28119 if (!SWIG_IsOK(res1)) {
28120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28121 }
28122 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28123 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28124 if (!SWIG_IsOK(res2)) {
28125 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28126 }
28127 if (!argp2) {
28128 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28129 }
28130 arg2 = reinterpret_cast< wxFont * >(argp2);
28131 if (obj2) {
28132 {
28133 arg3 = &temp3;
28134 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28135 }
28136 }
28137 {
28138 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
28139 if (PyErr_Occurred()) SWIG_fail;
28140 }
28141 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
28142 return resultobj;
28143 fail:
28144 return NULL;
28145 }
28146
28147
28148 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28149 PyObject *resultobj = 0;
28150 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28151 wxDouble arg2 = (wxDouble) 1.0 ;
28152 wxDouble arg3 = (wxDouble) 0.0 ;
28153 wxDouble arg4 = (wxDouble) 0.0 ;
28154 wxDouble arg5 = (wxDouble) 1.0 ;
28155 wxDouble arg6 = (wxDouble) 0.0 ;
28156 wxDouble arg7 = (wxDouble) 0.0 ;
28157 wxGraphicsMatrix result;
28158 void *argp1 = 0 ;
28159 int res1 = 0 ;
28160 double val2 ;
28161 int ecode2 = 0 ;
28162 double val3 ;
28163 int ecode3 = 0 ;
28164 double val4 ;
28165 int ecode4 = 0 ;
28166 double val5 ;
28167 int ecode5 = 0 ;
28168 double val6 ;
28169 int ecode6 = 0 ;
28170 double val7 ;
28171 int ecode7 = 0 ;
28172 PyObject * obj0 = 0 ;
28173 PyObject * obj1 = 0 ;
28174 PyObject * obj2 = 0 ;
28175 PyObject * obj3 = 0 ;
28176 PyObject * obj4 = 0 ;
28177 PyObject * obj5 = 0 ;
28178 PyObject * obj6 = 0 ;
28179 char * kwnames[] = {
28180 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
28181 };
28182
28183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28185 if (!SWIG_IsOK(res1)) {
28186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28187 }
28188 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28189 if (obj1) {
28190 ecode2 = SWIG_AsVal_double(obj1, &val2);
28191 if (!SWIG_IsOK(ecode2)) {
28192 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
28193 }
28194 arg2 = static_cast< wxDouble >(val2);
28195 }
28196 if (obj2) {
28197 ecode3 = SWIG_AsVal_double(obj2, &val3);
28198 if (!SWIG_IsOK(ecode3)) {
28199 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
28200 }
28201 arg3 = static_cast< wxDouble >(val3);
28202 }
28203 if (obj3) {
28204 ecode4 = SWIG_AsVal_double(obj3, &val4);
28205 if (!SWIG_IsOK(ecode4)) {
28206 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
28207 }
28208 arg4 = static_cast< wxDouble >(val4);
28209 }
28210 if (obj4) {
28211 ecode5 = SWIG_AsVal_double(obj4, &val5);
28212 if (!SWIG_IsOK(ecode5)) {
28213 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
28214 }
28215 arg5 = static_cast< wxDouble >(val5);
28216 }
28217 if (obj5) {
28218 ecode6 = SWIG_AsVal_double(obj5, &val6);
28219 if (!SWIG_IsOK(ecode6)) {
28220 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
28221 }
28222 arg6 = static_cast< wxDouble >(val6);
28223 }
28224 if (obj6) {
28225 ecode7 = SWIG_AsVal_double(obj6, &val7);
28226 if (!SWIG_IsOK(ecode7)) {
28227 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
28228 }
28229 arg7 = static_cast< wxDouble >(val7);
28230 }
28231 {
28232 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
28233 if (PyErr_Occurred()) SWIG_fail;
28234 }
28235 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28236 return resultobj;
28237 fail:
28238 return NULL;
28239 }
28240
28241
28242 SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28243 PyObject *resultobj = 0;
28244 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28245 void *argp1 = 0 ;
28246 int res1 = 0 ;
28247 PyObject *swig_obj[1] ;
28248
28249 if (!args) SWIG_fail;
28250 swig_obj[0] = args;
28251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28252 if (!SWIG_IsOK(res1)) {
28253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28254 }
28255 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28256 {
28257 (arg1)->PushState();
28258 if (PyErr_Occurred()) SWIG_fail;
28259 }
28260 resultobj = SWIG_Py_Void();
28261 return resultobj;
28262 fail:
28263 return NULL;
28264 }
28265
28266
28267 SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28268 PyObject *resultobj = 0;
28269 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28270 void *argp1 = 0 ;
28271 int res1 = 0 ;
28272 PyObject *swig_obj[1] ;
28273
28274 if (!args) SWIG_fail;
28275 swig_obj[0] = args;
28276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28277 if (!SWIG_IsOK(res1)) {
28278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28279 }
28280 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28281 {
28282 (arg1)->PopState();
28283 if (PyErr_Occurred()) SWIG_fail;
28284 }
28285 resultobj = SWIG_Py_Void();
28286 return resultobj;
28287 fail:
28288 return NULL;
28289 }
28290
28291
28292 SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28293 PyObject *resultobj = 0;
28294 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28295 wxRegion *arg2 = 0 ;
28296 void *argp1 = 0 ;
28297 int res1 = 0 ;
28298 void *argp2 = 0 ;
28299 int res2 = 0 ;
28300 PyObject * obj0 = 0 ;
28301 PyObject * obj1 = 0 ;
28302 char * kwnames[] = {
28303 (char *) "self",(char *) "region", NULL
28304 };
28305
28306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
28307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28308 if (!SWIG_IsOK(res1)) {
28309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28310 }
28311 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28312 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
28313 if (!SWIG_IsOK(res2)) {
28314 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
28315 }
28316 if (!argp2) {
28317 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
28318 }
28319 arg2 = reinterpret_cast< wxRegion * >(argp2);
28320 {
28321 (arg1)->Clip((wxRegion const &)*arg2);
28322 if (PyErr_Occurred()) SWIG_fail;
28323 }
28324 resultobj = SWIG_Py_Void();
28325 return resultobj;
28326 fail:
28327 return NULL;
28328 }
28329
28330
28331 SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28332 PyObject *resultobj = 0;
28333 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28334 wxDouble arg2 ;
28335 wxDouble arg3 ;
28336 wxDouble arg4 ;
28337 wxDouble arg5 ;
28338 void *argp1 = 0 ;
28339 int res1 = 0 ;
28340 double val2 ;
28341 int ecode2 = 0 ;
28342 double val3 ;
28343 int ecode3 = 0 ;
28344 double val4 ;
28345 int ecode4 = 0 ;
28346 double val5 ;
28347 int ecode5 = 0 ;
28348 PyObject * obj0 = 0 ;
28349 PyObject * obj1 = 0 ;
28350 PyObject * obj2 = 0 ;
28351 PyObject * obj3 = 0 ;
28352 PyObject * obj4 = 0 ;
28353 char * kwnames[] = {
28354 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28355 };
28356
28357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28359 if (!SWIG_IsOK(res1)) {
28360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28361 }
28362 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28363 ecode2 = SWIG_AsVal_double(obj1, &val2);
28364 if (!SWIG_IsOK(ecode2)) {
28365 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
28366 }
28367 arg2 = static_cast< wxDouble >(val2);
28368 ecode3 = SWIG_AsVal_double(obj2, &val3);
28369 if (!SWIG_IsOK(ecode3)) {
28370 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
28371 }
28372 arg3 = static_cast< wxDouble >(val3);
28373 ecode4 = SWIG_AsVal_double(obj3, &val4);
28374 if (!SWIG_IsOK(ecode4)) {
28375 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
28376 }
28377 arg4 = static_cast< wxDouble >(val4);
28378 ecode5 = SWIG_AsVal_double(obj4, &val5);
28379 if (!SWIG_IsOK(ecode5)) {
28380 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
28381 }
28382 arg5 = static_cast< wxDouble >(val5);
28383 {
28384 (arg1)->Clip(arg2,arg3,arg4,arg5);
28385 if (PyErr_Occurred()) SWIG_fail;
28386 }
28387 resultobj = SWIG_Py_Void();
28388 return resultobj;
28389 fail:
28390 return NULL;
28391 }
28392
28393
28394 SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28395 PyObject *resultobj = 0;
28396 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28397 void *argp1 = 0 ;
28398 int res1 = 0 ;
28399 PyObject *swig_obj[1] ;
28400
28401 if (!args) SWIG_fail;
28402 swig_obj[0] = args;
28403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28404 if (!SWIG_IsOK(res1)) {
28405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28406 }
28407 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28408 {
28409 (arg1)->ResetClip();
28410 if (PyErr_Occurred()) SWIG_fail;
28411 }
28412 resultobj = SWIG_Py_Void();
28413 return resultobj;
28414 fail:
28415 return NULL;
28416 }
28417
28418
28419 SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28420 PyObject *resultobj = 0;
28421 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28422 void *result = 0 ;
28423 void *argp1 = 0 ;
28424 int res1 = 0 ;
28425 PyObject *swig_obj[1] ;
28426
28427 if (!args) SWIG_fail;
28428 swig_obj[0] = args;
28429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28430 if (!SWIG_IsOK(res1)) {
28431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28432 }
28433 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28434 {
28435 result = (void *)(arg1)->GetNativeContext();
28436 if (PyErr_Occurred()) SWIG_fail;
28437 }
28438 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
28439 return resultobj;
28440 fail:
28441 return NULL;
28442 }
28443
28444
28445 SWIGINTERN PyObject *_wrap_GraphicsContext_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28446 PyObject *resultobj = 0;
28447 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28448 int result;
28449 void *argp1 = 0 ;
28450 int res1 = 0 ;
28451 PyObject *swig_obj[1] ;
28452
28453 if (!args) SWIG_fail;
28454 swig_obj[0] = args;
28455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28456 if (!SWIG_IsOK(res1)) {
28457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28458 }
28459 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28460 {
28461 result = (int)((wxGraphicsContext const *)arg1)->GetLogicalFunction();
28462 if (PyErr_Occurred()) SWIG_fail;
28463 }
28464 resultobj = SWIG_From_int(static_cast< int >(result));
28465 return resultobj;
28466 fail:
28467 return NULL;
28468 }
28469
28470
28471 SWIGINTERN PyObject *_wrap_GraphicsContext_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28472 PyObject *resultobj = 0;
28473 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28474 int arg2 ;
28475 bool result;
28476 void *argp1 = 0 ;
28477 int res1 = 0 ;
28478 int val2 ;
28479 int ecode2 = 0 ;
28480 PyObject * obj0 = 0 ;
28481 PyObject * obj1 = 0 ;
28482 char * kwnames[] = {
28483 (char *) "self",(char *) "function", NULL
28484 };
28485
28486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
28487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28488 if (!SWIG_IsOK(res1)) {
28489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28490 }
28491 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28492 ecode2 = SWIG_AsVal_int(obj1, &val2);
28493 if (!SWIG_IsOK(ecode2)) {
28494 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
28495 }
28496 arg2 = static_cast< int >(val2);
28497 {
28498 result = (bool)(arg1)->SetLogicalFunction(arg2);
28499 if (PyErr_Occurred()) SWIG_fail;
28500 }
28501 {
28502 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28503 }
28504 return resultobj;
28505 fail:
28506 return NULL;
28507 }
28508
28509
28510 SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28511 PyObject *resultobj = 0;
28512 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28513 wxDouble arg2 ;
28514 wxDouble arg3 ;
28515 void *argp1 = 0 ;
28516 int res1 = 0 ;
28517 double val2 ;
28518 int ecode2 = 0 ;
28519 double val3 ;
28520 int ecode3 = 0 ;
28521 PyObject * obj0 = 0 ;
28522 PyObject * obj1 = 0 ;
28523 PyObject * obj2 = 0 ;
28524 char * kwnames[] = {
28525 (char *) "self",(char *) "dx",(char *) "dy", NULL
28526 };
28527
28528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28530 if (!SWIG_IsOK(res1)) {
28531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28532 }
28533 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28534 ecode2 = SWIG_AsVal_double(obj1, &val2);
28535 if (!SWIG_IsOK(ecode2)) {
28536 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
28537 }
28538 arg2 = static_cast< wxDouble >(val2);
28539 ecode3 = SWIG_AsVal_double(obj2, &val3);
28540 if (!SWIG_IsOK(ecode3)) {
28541 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
28542 }
28543 arg3 = static_cast< wxDouble >(val3);
28544 {
28545 (arg1)->Translate(arg2,arg3);
28546 if (PyErr_Occurred()) SWIG_fail;
28547 }
28548 resultobj = SWIG_Py_Void();
28549 return resultobj;
28550 fail:
28551 return NULL;
28552 }
28553
28554
28555 SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28556 PyObject *resultobj = 0;
28557 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28558 wxDouble arg2 ;
28559 wxDouble arg3 ;
28560 void *argp1 = 0 ;
28561 int res1 = 0 ;
28562 double val2 ;
28563 int ecode2 = 0 ;
28564 double val3 ;
28565 int ecode3 = 0 ;
28566 PyObject * obj0 = 0 ;
28567 PyObject * obj1 = 0 ;
28568 PyObject * obj2 = 0 ;
28569 char * kwnames[] = {
28570 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
28571 };
28572
28573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28575 if (!SWIG_IsOK(res1)) {
28576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28577 }
28578 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28579 ecode2 = SWIG_AsVal_double(obj1, &val2);
28580 if (!SWIG_IsOK(ecode2)) {
28581 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
28582 }
28583 arg2 = static_cast< wxDouble >(val2);
28584 ecode3 = SWIG_AsVal_double(obj2, &val3);
28585 if (!SWIG_IsOK(ecode3)) {
28586 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
28587 }
28588 arg3 = static_cast< wxDouble >(val3);
28589 {
28590 (arg1)->Scale(arg2,arg3);
28591 if (PyErr_Occurred()) SWIG_fail;
28592 }
28593 resultobj = SWIG_Py_Void();
28594 return resultobj;
28595 fail:
28596 return NULL;
28597 }
28598
28599
28600 SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28601 PyObject *resultobj = 0;
28602 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28603 wxDouble arg2 ;
28604 void *argp1 = 0 ;
28605 int res1 = 0 ;
28606 double val2 ;
28607 int ecode2 = 0 ;
28608 PyObject * obj0 = 0 ;
28609 PyObject * obj1 = 0 ;
28610 char * kwnames[] = {
28611 (char *) "self",(char *) "angle", NULL
28612 };
28613
28614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
28615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28616 if (!SWIG_IsOK(res1)) {
28617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28618 }
28619 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28620 ecode2 = SWIG_AsVal_double(obj1, &val2);
28621 if (!SWIG_IsOK(ecode2)) {
28622 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
28623 }
28624 arg2 = static_cast< wxDouble >(val2);
28625 {
28626 (arg1)->Rotate(arg2);
28627 if (PyErr_Occurred()) SWIG_fail;
28628 }
28629 resultobj = SWIG_Py_Void();
28630 return resultobj;
28631 fail:
28632 return NULL;
28633 }
28634
28635
28636 SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28637 PyObject *resultobj = 0;
28638 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28639 wxGraphicsMatrix *arg2 = 0 ;
28640 void *argp1 = 0 ;
28641 int res1 = 0 ;
28642 void *argp2 = 0 ;
28643 int res2 = 0 ;
28644 PyObject * obj0 = 0 ;
28645 PyObject * obj1 = 0 ;
28646 char * kwnames[] = {
28647 (char *) "self",(char *) "matrix", NULL
28648 };
28649
28650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28652 if (!SWIG_IsOK(res1)) {
28653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28654 }
28655 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28656 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28657 if (!SWIG_IsOK(res2)) {
28658 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28659 }
28660 if (!argp2) {
28661 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28662 }
28663 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28664 {
28665 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
28666 if (PyErr_Occurred()) SWIG_fail;
28667 }
28668 resultobj = SWIG_Py_Void();
28669 return resultobj;
28670 fail:
28671 return NULL;
28672 }
28673
28674
28675 SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28676 PyObject *resultobj = 0;
28677 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28678 wxGraphicsMatrix *arg2 = 0 ;
28679 void *argp1 = 0 ;
28680 int res1 = 0 ;
28681 void *argp2 = 0 ;
28682 int res2 = 0 ;
28683 PyObject * obj0 = 0 ;
28684 PyObject * obj1 = 0 ;
28685 char * kwnames[] = {
28686 (char *) "self",(char *) "matrix", NULL
28687 };
28688
28689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28691 if (!SWIG_IsOK(res1)) {
28692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28693 }
28694 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28695 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28696 if (!SWIG_IsOK(res2)) {
28697 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28698 }
28699 if (!argp2) {
28700 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28701 }
28702 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28703 {
28704 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
28705 if (PyErr_Occurred()) SWIG_fail;
28706 }
28707 resultobj = SWIG_Py_Void();
28708 return resultobj;
28709 fail:
28710 return NULL;
28711 }
28712
28713
28714 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28715 PyObject *resultobj = 0;
28716 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28717 wxGraphicsMatrix result;
28718 void *argp1 = 0 ;
28719 int res1 = 0 ;
28720 PyObject *swig_obj[1] ;
28721
28722 if (!args) SWIG_fail;
28723 swig_obj[0] = args;
28724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28725 if (!SWIG_IsOK(res1)) {
28726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28727 }
28728 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28729 {
28730 result = ((wxGraphicsContext const *)arg1)->GetTransform();
28731 if (PyErr_Occurred()) SWIG_fail;
28732 }
28733 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28734 return resultobj;
28735 fail:
28736 return NULL;
28737 }
28738
28739
28740 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28741 PyObject *resultobj = 0;
28742 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28743 wxGraphicsPen *arg2 = 0 ;
28744 void *argp1 = 0 ;
28745 int res1 = 0 ;
28746 void *argp2 = 0 ;
28747 int res2 = 0 ;
28748
28749 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28751 if (!SWIG_IsOK(res1)) {
28752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28753 }
28754 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28755 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
28756 if (!SWIG_IsOK(res2)) {
28757 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28758 }
28759 if (!argp2) {
28760 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28761 }
28762 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
28763 {
28764 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
28765 if (PyErr_Occurred()) SWIG_fail;
28766 }
28767 resultobj = SWIG_Py_Void();
28768 return resultobj;
28769 fail:
28770 return NULL;
28771 }
28772
28773
28774 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28775 PyObject *resultobj = 0;
28776 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28777 wxPen *arg2 = 0 ;
28778 void *argp1 = 0 ;
28779 int res1 = 0 ;
28780 void *argp2 = 0 ;
28781 int res2 = 0 ;
28782
28783 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28785 if (!SWIG_IsOK(res1)) {
28786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28787 }
28788 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28789 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
28790 if (!SWIG_IsOK(res2)) {
28791 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28792 }
28793 if (!argp2) {
28794 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28795 }
28796 arg2 = reinterpret_cast< wxPen * >(argp2);
28797 {
28798 (arg1)->SetPen((wxPen const &)*arg2);
28799 if (PyErr_Occurred()) SWIG_fail;
28800 }
28801 resultobj = SWIG_Py_Void();
28802 return resultobj;
28803 fail:
28804 return NULL;
28805 }
28806
28807
28808 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
28809 int argc;
28810 PyObject *argv[3];
28811
28812 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
28813 --argc;
28814 if (argc == 2) {
28815 int _v = 0;
28816 {
28817 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
28818 _v = SWIG_CheckState(res);
28819 }
28820 if (!_v) goto check_1;
28821 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
28822 }
28823 check_1:
28824
28825 if (argc == 2) {
28826 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
28827 }
28828
28829 fail:
28830 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
28831 return NULL;
28832 }
28833
28834
28835 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28836 PyObject *resultobj = 0;
28837 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28838 wxGraphicsBrush *arg2 = 0 ;
28839 void *argp1 = 0 ;
28840 int res1 = 0 ;
28841 void *argp2 = 0 ;
28842 int res2 = 0 ;
28843
28844 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28846 if (!SWIG_IsOK(res1)) {
28847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28848 }
28849 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28850 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
28851 if (!SWIG_IsOK(res2)) {
28852 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28853 }
28854 if (!argp2) {
28855 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28856 }
28857 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
28858 {
28859 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
28860 if (PyErr_Occurred()) SWIG_fail;
28861 }
28862 resultobj = SWIG_Py_Void();
28863 return resultobj;
28864 fail:
28865 return NULL;
28866 }
28867
28868
28869 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28870 PyObject *resultobj = 0;
28871 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28872 wxBrush *arg2 = 0 ;
28873 void *argp1 = 0 ;
28874 int res1 = 0 ;
28875 void *argp2 = 0 ;
28876 int res2 = 0 ;
28877
28878 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28880 if (!SWIG_IsOK(res1)) {
28881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28882 }
28883 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28884 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
28885 if (!SWIG_IsOK(res2)) {
28886 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28887 }
28888 if (!argp2) {
28889 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28890 }
28891 arg2 = reinterpret_cast< wxBrush * >(argp2);
28892 {
28893 (arg1)->SetBrush((wxBrush const &)*arg2);
28894 if (PyErr_Occurred()) SWIG_fail;
28895 }
28896 resultobj = SWIG_Py_Void();
28897 return resultobj;
28898 fail:
28899 return NULL;
28900 }
28901
28902
28903 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
28904 int argc;
28905 PyObject *argv[3];
28906
28907 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
28908 --argc;
28909 if (argc == 2) {
28910 int _v = 0;
28911 {
28912 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
28913 _v = SWIG_CheckState(res);
28914 }
28915 if (!_v) goto check_1;
28916 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
28917 }
28918 check_1:
28919
28920 if (argc == 2) {
28921 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
28922 }
28923
28924 fail:
28925 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
28926 return NULL;
28927 }
28928
28929
28930 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28931 PyObject *resultobj = 0;
28932 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28933 wxGraphicsFont *arg2 = 0 ;
28934 void *argp1 = 0 ;
28935 int res1 = 0 ;
28936 void *argp2 = 0 ;
28937 int res2 = 0 ;
28938
28939 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28941 if (!SWIG_IsOK(res1)) {
28942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28943 }
28944 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28945 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
28946 if (!SWIG_IsOK(res2)) {
28947 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
28948 }
28949 if (!argp2) {
28950 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
28951 }
28952 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
28953 {
28954 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
28955 if (PyErr_Occurred()) SWIG_fail;
28956 }
28957 resultobj = SWIG_Py_Void();
28958 return resultobj;
28959 fail:
28960 return NULL;
28961 }
28962
28963
28964 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28965 PyObject *resultobj = 0;
28966 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28967 wxFont *arg2 = 0 ;
28968 wxColour const &arg3_defvalue = *wxBLACK ;
28969 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
28970 void *argp1 = 0 ;
28971 int res1 = 0 ;
28972 void *argp2 = 0 ;
28973 int res2 = 0 ;
28974 wxColour temp3 ;
28975
28976 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28978 if (!SWIG_IsOK(res1)) {
28979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28980 }
28981 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28982 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28983 if (!SWIG_IsOK(res2)) {
28984 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28985 }
28986 if (!argp2) {
28987 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28988 }
28989 arg2 = reinterpret_cast< wxFont * >(argp2);
28990 if (swig_obj[2]) {
28991 {
28992 arg3 = &temp3;
28993 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
28994 }
28995 }
28996 {
28997 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
28998 if (PyErr_Occurred()) SWIG_fail;
28999 }
29000 resultobj = SWIG_Py_Void();
29001 return resultobj;
29002 fail:
29003 return NULL;
29004 }
29005
29006
29007 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
29008 int argc;
29009 PyObject *argv[4];
29010
29011 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
29012 --argc;
29013 if (argc == 2) {
29014 int _v = 0;
29015 {
29016 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
29017 _v = SWIG_CheckState(res);
29018 }
29019 if (!_v) goto check_1;
29020 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
29021 }
29022 check_1:
29023
29024 if ((argc >= 2) && (argc <= 3)) {
29025 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
29026 }
29027
29028 fail:
29029 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
29030 return NULL;
29031 }
29032
29033
29034 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29035 PyObject *resultobj = 0;
29036 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29037 wxGraphicsPath *arg2 = 0 ;
29038 void *argp1 = 0 ;
29039 int res1 = 0 ;
29040 void *argp2 = 0 ;
29041 int res2 = 0 ;
29042 PyObject * obj0 = 0 ;
29043 PyObject * obj1 = 0 ;
29044 char * kwnames[] = {
29045 (char *) "self",(char *) "path", NULL
29046 };
29047
29048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
29049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29050 if (!SWIG_IsOK(res1)) {
29051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29052 }
29053 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29054 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
29055 if (!SWIG_IsOK(res2)) {
29056 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29057 }
29058 if (!argp2) {
29059 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29060 }
29061 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29062 {
29063 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
29064 if (PyErr_Occurred()) SWIG_fail;
29065 }
29066 resultobj = SWIG_Py_Void();
29067 return resultobj;
29068 fail:
29069 return NULL;
29070 }
29071
29072
29073 SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29074 PyObject *resultobj = 0;
29075 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29076 wxGraphicsPath *arg2 = 0 ;
29077 int arg3 = (int) wxODDEVEN_RULE ;
29078 void *argp1 = 0 ;
29079 int res1 = 0 ;
29080 void *argp2 = 0 ;
29081 int res2 = 0 ;
29082 int val3 ;
29083 int ecode3 = 0 ;
29084 PyObject * obj0 = 0 ;
29085 PyObject * obj1 = 0 ;
29086 PyObject * obj2 = 0 ;
29087 char * kwnames[] = {
29088 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29089 };
29090
29091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29093 if (!SWIG_IsOK(res1)) {
29094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29095 }
29096 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29097 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
29098 if (!SWIG_IsOK(res2)) {
29099 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29100 }
29101 if (!argp2) {
29102 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29103 }
29104 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29105 if (obj2) {
29106 ecode3 = SWIG_AsVal_int(obj2, &val3);
29107 if (!SWIG_IsOK(ecode3)) {
29108 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
29109 }
29110 arg3 = static_cast< int >(val3);
29111 }
29112 {
29113 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
29114 if (PyErr_Occurred()) SWIG_fail;
29115 }
29116 resultobj = SWIG_Py_Void();
29117 return resultobj;
29118 fail:
29119 return NULL;
29120 }
29121
29122
29123 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29124 PyObject *resultobj = 0;
29125 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29126 wxGraphicsPath *arg2 = 0 ;
29127 int arg3 = (int) wxODDEVEN_RULE ;
29128 void *argp1 = 0 ;
29129 int res1 = 0 ;
29130 void *argp2 = 0 ;
29131 int res2 = 0 ;
29132 int val3 ;
29133 int ecode3 = 0 ;
29134 PyObject * obj0 = 0 ;
29135 PyObject * obj1 = 0 ;
29136 PyObject * obj2 = 0 ;
29137 char * kwnames[] = {
29138 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29139 };
29140
29141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29143 if (!SWIG_IsOK(res1)) {
29144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29145 }
29146 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29147 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
29148 if (!SWIG_IsOK(res2)) {
29149 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29150 }
29151 if (!argp2) {
29152 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29153 }
29154 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29155 if (obj2) {
29156 ecode3 = SWIG_AsVal_int(obj2, &val3);
29157 if (!SWIG_IsOK(ecode3)) {
29158 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
29159 }
29160 arg3 = static_cast< int >(val3);
29161 }
29162 {
29163 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
29164 if (PyErr_Occurred()) SWIG_fail;
29165 }
29166 resultobj = SWIG_Py_Void();
29167 return resultobj;
29168 fail:
29169 return NULL;
29170 }
29171
29172
29173 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29174 PyObject *resultobj = 0;
29175 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29176 wxString *arg2 = 0 ;
29177 wxDouble arg3 ;
29178 wxDouble arg4 ;
29179 wxGraphicsBrush const &arg5_defvalue = wxNullGraphicsBrush ;
29180 wxGraphicsBrush *arg5 = (wxGraphicsBrush *) &arg5_defvalue ;
29181 void *argp1 = 0 ;
29182 int res1 = 0 ;
29183 bool temp2 = false ;
29184 double val3 ;
29185 int ecode3 = 0 ;
29186 double val4 ;
29187 int ecode4 = 0 ;
29188 void *argp5 = 0 ;
29189 int res5 = 0 ;
29190 PyObject * obj0 = 0 ;
29191 PyObject * obj1 = 0 ;
29192 PyObject * obj2 = 0 ;
29193 PyObject * obj3 = 0 ;
29194 PyObject * obj4 = 0 ;
29195 char * kwnames[] = {
29196 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "backgroundBrush", NULL
29197 };
29198
29199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29201 if (!SWIG_IsOK(res1)) {
29202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29203 }
29204 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29205 {
29206 arg2 = wxString_in_helper(obj1);
29207 if (arg2 == NULL) SWIG_fail;
29208 temp2 = true;
29209 }
29210 ecode3 = SWIG_AsVal_double(obj2, &val3);
29211 if (!SWIG_IsOK(ecode3)) {
29212 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
29213 }
29214 arg3 = static_cast< wxDouble >(val3);
29215 ecode4 = SWIG_AsVal_double(obj3, &val4);
29216 if (!SWIG_IsOK(ecode4)) {
29217 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
29218 }
29219 arg4 = static_cast< wxDouble >(val4);
29220 if (obj4) {
29221 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29222 if (!SWIG_IsOK(res5)) {
29223 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29224 }
29225 if (!argp5) {
29226 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29227 }
29228 arg5 = reinterpret_cast< wxGraphicsBrush * >(argp5);
29229 }
29230 {
29231 wxGraphicsContext_DrawText(arg1,(wxString const &)*arg2,arg3,arg4,(wxGraphicsBrush const &)*arg5);
29232 if (PyErr_Occurred()) SWIG_fail;
29233 }
29234 resultobj = SWIG_Py_Void();
29235 {
29236 if (temp2)
29237 delete arg2;
29238 }
29239 return resultobj;
29240 fail:
29241 {
29242 if (temp2)
29243 delete arg2;
29244 }
29245 return NULL;
29246 }
29247
29248
29249 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29250 PyObject *resultobj = 0;
29251 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29252 wxString *arg2 = 0 ;
29253 wxDouble arg3 ;
29254 wxDouble arg4 ;
29255 wxDouble arg5 ;
29256 wxGraphicsBrush const &arg6_defvalue = wxNullGraphicsBrush ;
29257 wxGraphicsBrush *arg6 = (wxGraphicsBrush *) &arg6_defvalue ;
29258 void *argp1 = 0 ;
29259 int res1 = 0 ;
29260 bool temp2 = false ;
29261 double val3 ;
29262 int ecode3 = 0 ;
29263 double val4 ;
29264 int ecode4 = 0 ;
29265 double val5 ;
29266 int ecode5 = 0 ;
29267 void *argp6 = 0 ;
29268 int res6 = 0 ;
29269 PyObject * obj0 = 0 ;
29270 PyObject * obj1 = 0 ;
29271 PyObject * obj2 = 0 ;
29272 PyObject * obj3 = 0 ;
29273 PyObject * obj4 = 0 ;
29274 PyObject * obj5 = 0 ;
29275 char * kwnames[] = {
29276 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle",(char *) "backgroundBrush", NULL
29277 };
29278
29279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29281 if (!SWIG_IsOK(res1)) {
29282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29283 }
29284 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29285 {
29286 arg2 = wxString_in_helper(obj1);
29287 if (arg2 == NULL) SWIG_fail;
29288 temp2 = true;
29289 }
29290 ecode3 = SWIG_AsVal_double(obj2, &val3);
29291 if (!SWIG_IsOK(ecode3)) {
29292 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
29293 }
29294 arg3 = static_cast< wxDouble >(val3);
29295 ecode4 = SWIG_AsVal_double(obj3, &val4);
29296 if (!SWIG_IsOK(ecode4)) {
29297 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
29298 }
29299 arg4 = static_cast< wxDouble >(val4);
29300 ecode5 = SWIG_AsVal_double(obj4, &val5);
29301 if (!SWIG_IsOK(ecode5)) {
29302 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
29303 }
29304 arg5 = static_cast< wxDouble >(val5);
29305 if (obj5) {
29306 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29307 if (!SWIG_IsOK(res6)) {
29308 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
29309 }
29310 if (!argp6) {
29311 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
29312 }
29313 arg6 = reinterpret_cast< wxGraphicsBrush * >(argp6);
29314 }
29315 {
29316 wxGraphicsContext_DrawRotatedText(arg1,(wxString const &)*arg2,arg3,arg4,arg5,(wxGraphicsBrush const &)*arg6);
29317 if (PyErr_Occurred()) SWIG_fail;
29318 }
29319 resultobj = SWIG_Py_Void();
29320 {
29321 if (temp2)
29322 delete arg2;
29323 }
29324 return resultobj;
29325 fail:
29326 {
29327 if (temp2)
29328 delete arg2;
29329 }
29330 return NULL;
29331 }
29332
29333
29334 SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29335 PyObject *resultobj = 0;
29336 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29337 wxString *arg2 = 0 ;
29338 wxDouble *arg3 = (wxDouble *) 0 ;
29339 wxDouble *arg4 = (wxDouble *) 0 ;
29340 wxDouble *arg5 = (wxDouble *) 0 ;
29341 wxDouble *arg6 = (wxDouble *) 0 ;
29342 void *argp1 = 0 ;
29343 int res1 = 0 ;
29344 bool temp2 = false ;
29345 wxDouble temp3 ;
29346 int res3 = SWIG_TMPOBJ ;
29347 wxDouble temp4 ;
29348 int res4 = SWIG_TMPOBJ ;
29349 wxDouble temp5 ;
29350 int res5 = SWIG_TMPOBJ ;
29351 wxDouble temp6 ;
29352 int res6 = SWIG_TMPOBJ ;
29353 PyObject * obj0 = 0 ;
29354 PyObject * obj1 = 0 ;
29355 char * kwnames[] = {
29356 (char *) "self",(char *) "text", NULL
29357 };
29358
29359 arg3 = &temp3;
29360 arg4 = &temp4;
29361 arg5 = &temp5;
29362 arg6 = &temp6;
29363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29365 if (!SWIG_IsOK(res1)) {
29366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29367 }
29368 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29369 {
29370 arg2 = wxString_in_helper(obj1);
29371 if (arg2 == NULL) SWIG_fail;
29372 temp2 = true;
29373 }
29374 {
29375 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
29376 if (PyErr_Occurred()) SWIG_fail;
29377 }
29378 resultobj = SWIG_Py_Void();
29379 if (SWIG_IsTmpObj(res3)) {
29380 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
29381 } else {
29382 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29383 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
29384 }
29385 if (SWIG_IsTmpObj(res4)) {
29386 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
29387 } else {
29388 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29389 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
29390 }
29391 if (SWIG_IsTmpObj(res5)) {
29392 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
29393 } else {
29394 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29395 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
29396 }
29397 if (SWIG_IsTmpObj(res6)) {
29398 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
29399 } else {
29400 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29401 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
29402 }
29403 {
29404 if (temp2)
29405 delete arg2;
29406 }
29407 return resultobj;
29408 fail:
29409 {
29410 if (temp2)
29411 delete arg2;
29412 }
29413 return NULL;
29414 }
29415
29416
29417 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29418 PyObject *resultobj = 0;
29419 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29420 wxString *arg2 = 0 ;
29421 PyObject *result = 0 ;
29422 void *argp1 = 0 ;
29423 int res1 = 0 ;
29424 bool temp2 = false ;
29425 PyObject * obj0 = 0 ;
29426 PyObject * obj1 = 0 ;
29427 char * kwnames[] = {
29428 (char *) "self",(char *) "text", NULL
29429 };
29430
29431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29433 if (!SWIG_IsOK(res1)) {
29434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29435 }
29436 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29437 {
29438 arg2 = wxString_in_helper(obj1);
29439 if (arg2 == NULL) SWIG_fail;
29440 temp2 = true;
29441 }
29442 {
29443 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
29444 if (PyErr_Occurred()) SWIG_fail;
29445 }
29446 resultobj = result;
29447 {
29448 if (temp2)
29449 delete arg2;
29450 }
29451 return resultobj;
29452 fail:
29453 {
29454 if (temp2)
29455 delete arg2;
29456 }
29457 return NULL;
29458 }
29459
29460
29461 SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29462 PyObject *resultobj = 0;
29463 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29464 wxString *arg2 = 0 ;
29465 wxArrayDouble result;
29466 void *argp1 = 0 ;
29467 int res1 = 0 ;
29468 bool temp2 = false ;
29469 PyObject * obj0 = 0 ;
29470 PyObject * obj1 = 0 ;
29471 char * kwnames[] = {
29472 (char *) "self",(char *) "text", NULL
29473 };
29474
29475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
29476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29477 if (!SWIG_IsOK(res1)) {
29478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29479 }
29480 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29481 {
29482 arg2 = wxString_in_helper(obj1);
29483 if (arg2 == NULL) SWIG_fail;
29484 temp2 = true;
29485 }
29486 {
29487 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
29488 if (PyErr_Occurred()) SWIG_fail;
29489 }
29490 {
29491 resultobj = wxArrayDouble2PyList_helper(result);
29492 }
29493 {
29494 if (temp2)
29495 delete arg2;
29496 }
29497 return resultobj;
29498 fail:
29499 {
29500 if (temp2)
29501 delete arg2;
29502 }
29503 return NULL;
29504 }
29505
29506
29507 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29508 PyObject *resultobj = 0;
29509 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29510 wxBitmap *arg2 = 0 ;
29511 wxDouble arg3 ;
29512 wxDouble arg4 ;
29513 wxDouble arg5 ;
29514 wxDouble arg6 ;
29515 void *argp1 = 0 ;
29516 int res1 = 0 ;
29517 void *argp2 = 0 ;
29518 int res2 = 0 ;
29519 double val3 ;
29520 int ecode3 = 0 ;
29521 double val4 ;
29522 int ecode4 = 0 ;
29523 double val5 ;
29524 int ecode5 = 0 ;
29525 double val6 ;
29526 int ecode6 = 0 ;
29527 PyObject * obj0 = 0 ;
29528 PyObject * obj1 = 0 ;
29529 PyObject * obj2 = 0 ;
29530 PyObject * obj3 = 0 ;
29531 PyObject * obj4 = 0 ;
29532 PyObject * obj5 = 0 ;
29533 char * kwnames[] = {
29534 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29535 };
29536
29537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29539 if (!SWIG_IsOK(res1)) {
29540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29541 }
29542 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29543 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29544 if (!SWIG_IsOK(res2)) {
29545 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29546 }
29547 if (!argp2) {
29548 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29549 }
29550 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29551 ecode3 = SWIG_AsVal_double(obj2, &val3);
29552 if (!SWIG_IsOK(ecode3)) {
29553 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
29554 }
29555 arg3 = static_cast< wxDouble >(val3);
29556 ecode4 = SWIG_AsVal_double(obj3, &val4);
29557 if (!SWIG_IsOK(ecode4)) {
29558 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
29559 }
29560 arg4 = static_cast< wxDouble >(val4);
29561 ecode5 = SWIG_AsVal_double(obj4, &val5);
29562 if (!SWIG_IsOK(ecode5)) {
29563 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
29564 }
29565 arg5 = static_cast< wxDouble >(val5);
29566 ecode6 = SWIG_AsVal_double(obj5, &val6);
29567 if (!SWIG_IsOK(ecode6)) {
29568 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
29569 }
29570 arg6 = static_cast< wxDouble >(val6);
29571 {
29572 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
29573 if (PyErr_Occurred()) SWIG_fail;
29574 }
29575 resultobj = SWIG_Py_Void();
29576 return resultobj;
29577 fail:
29578 return NULL;
29579 }
29580
29581
29582 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29583 PyObject *resultobj = 0;
29584 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29585 wxIcon *arg2 = 0 ;
29586 wxDouble arg3 ;
29587 wxDouble arg4 ;
29588 wxDouble arg5 ;
29589 wxDouble arg6 ;
29590 void *argp1 = 0 ;
29591 int res1 = 0 ;
29592 void *argp2 = 0 ;
29593 int res2 = 0 ;
29594 double val3 ;
29595 int ecode3 = 0 ;
29596 double val4 ;
29597 int ecode4 = 0 ;
29598 double val5 ;
29599 int ecode5 = 0 ;
29600 double val6 ;
29601 int ecode6 = 0 ;
29602 PyObject * obj0 = 0 ;
29603 PyObject * obj1 = 0 ;
29604 PyObject * obj2 = 0 ;
29605 PyObject * obj3 = 0 ;
29606 PyObject * obj4 = 0 ;
29607 PyObject * obj5 = 0 ;
29608 char * kwnames[] = {
29609 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29610 };
29611
29612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29614 if (!SWIG_IsOK(res1)) {
29615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29616 }
29617 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29618 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29619 if (!SWIG_IsOK(res2)) {
29620 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29621 }
29622 if (!argp2) {
29623 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29624 }
29625 arg2 = reinterpret_cast< wxIcon * >(argp2);
29626 ecode3 = SWIG_AsVal_double(obj2, &val3);
29627 if (!SWIG_IsOK(ecode3)) {
29628 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
29629 }
29630 arg3 = static_cast< wxDouble >(val3);
29631 ecode4 = SWIG_AsVal_double(obj3, &val4);
29632 if (!SWIG_IsOK(ecode4)) {
29633 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
29634 }
29635 arg4 = static_cast< wxDouble >(val4);
29636 ecode5 = SWIG_AsVal_double(obj4, &val5);
29637 if (!SWIG_IsOK(ecode5)) {
29638 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
29639 }
29640 arg5 = static_cast< wxDouble >(val5);
29641 ecode6 = SWIG_AsVal_double(obj5, &val6);
29642 if (!SWIG_IsOK(ecode6)) {
29643 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
29644 }
29645 arg6 = static_cast< wxDouble >(val6);
29646 {
29647 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
29648 if (PyErr_Occurred()) SWIG_fail;
29649 }
29650 resultobj = SWIG_Py_Void();
29651 return resultobj;
29652 fail:
29653 return NULL;
29654 }
29655
29656
29657 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29658 PyObject *resultobj = 0;
29659 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29660 wxDouble arg2 ;
29661 wxDouble arg3 ;
29662 wxDouble arg4 ;
29663 wxDouble arg5 ;
29664 void *argp1 = 0 ;
29665 int res1 = 0 ;
29666 double val2 ;
29667 int ecode2 = 0 ;
29668 double val3 ;
29669 int ecode3 = 0 ;
29670 double val4 ;
29671 int ecode4 = 0 ;
29672 double val5 ;
29673 int ecode5 = 0 ;
29674 PyObject * obj0 = 0 ;
29675 PyObject * obj1 = 0 ;
29676 PyObject * obj2 = 0 ;
29677 PyObject * obj3 = 0 ;
29678 PyObject * obj4 = 0 ;
29679 char * kwnames[] = {
29680 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
29681 };
29682
29683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29685 if (!SWIG_IsOK(res1)) {
29686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29687 }
29688 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29689 ecode2 = SWIG_AsVal_double(obj1, &val2);
29690 if (!SWIG_IsOK(ecode2)) {
29691 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
29692 }
29693 arg2 = static_cast< wxDouble >(val2);
29694 ecode3 = SWIG_AsVal_double(obj2, &val3);
29695 if (!SWIG_IsOK(ecode3)) {
29696 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
29697 }
29698 arg3 = static_cast< wxDouble >(val3);
29699 ecode4 = SWIG_AsVal_double(obj3, &val4);
29700 if (!SWIG_IsOK(ecode4)) {
29701 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
29702 }
29703 arg4 = static_cast< wxDouble >(val4);
29704 ecode5 = SWIG_AsVal_double(obj4, &val5);
29705 if (!SWIG_IsOK(ecode5)) {
29706 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
29707 }
29708 arg5 = static_cast< wxDouble >(val5);
29709 {
29710 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
29711 if (PyErr_Occurred()) SWIG_fail;
29712 }
29713 resultobj = SWIG_Py_Void();
29714 return resultobj;
29715 fail:
29716 return NULL;
29717 }
29718
29719
29720 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29721 PyObject *resultobj = 0;
29722 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29723 size_t arg2 ;
29724 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29725 void *argp1 = 0 ;
29726 int res1 = 0 ;
29727 PyObject * obj0 = 0 ;
29728 PyObject * obj1 = 0 ;
29729 char * kwnames[] = {
29730 (char *) "self",(char *) "points", NULL
29731 };
29732
29733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
29734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29735 if (!SWIG_IsOK(res1)) {
29736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29737 }
29738 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29739 {
29740 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29741 if (arg3 == NULL) SWIG_fail;
29742 }
29743 {
29744 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
29745 if (PyErr_Occurred()) SWIG_fail;
29746 }
29747 resultobj = SWIG_Py_Void();
29748 {
29749 if (arg3) delete [] arg3;
29750 }
29751 return resultobj;
29752 fail:
29753 {
29754 if (arg3) delete [] arg3;
29755 }
29756 return NULL;
29757 }
29758
29759
29760 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29761 PyObject *resultobj = 0;
29762 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29763 PyObject *arg2 = (PyObject *) 0 ;
29764 PyObject *arg3 = (PyObject *) 0 ;
29765 void *argp1 = 0 ;
29766 int res1 = 0 ;
29767 PyObject * obj0 = 0 ;
29768 PyObject * obj1 = 0 ;
29769 PyObject * obj2 = 0 ;
29770 char * kwnames[] = {
29771 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
29772 };
29773
29774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29776 if (!SWIG_IsOK(res1)) {
29777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29778 }
29779 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29780 arg2 = obj1;
29781 arg3 = obj2;
29782 {
29783 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
29784 if (PyErr_Occurred()) SWIG_fail;
29785 }
29786 resultobj = SWIG_Py_Void();
29787 return resultobj;
29788 fail:
29789 return NULL;
29790 }
29791
29792
29793 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29794 PyObject *resultobj = 0;
29795 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29796 size_t arg2 ;
29797 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29798 int arg4 = (int) wxODDEVEN_RULE ;
29799 void *argp1 = 0 ;
29800 int res1 = 0 ;
29801 int val4 ;
29802 int ecode4 = 0 ;
29803 PyObject * obj0 = 0 ;
29804 PyObject * obj1 = 0 ;
29805 PyObject * obj2 = 0 ;
29806 char * kwnames[] = {
29807 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
29808 };
29809
29810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29812 if (!SWIG_IsOK(res1)) {
29813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29814 }
29815 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29816 {
29817 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29818 if (arg3 == NULL) SWIG_fail;
29819 }
29820 if (obj2) {
29821 ecode4 = SWIG_AsVal_int(obj2, &val4);
29822 if (!SWIG_IsOK(ecode4)) {
29823 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
29824 }
29825 arg4 = static_cast< int >(val4);
29826 }
29827 {
29828 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
29829 if (PyErr_Occurred()) SWIG_fail;
29830 }
29831 resultobj = SWIG_Py_Void();
29832 {
29833 if (arg3) delete [] arg3;
29834 }
29835 return resultobj;
29836 fail:
29837 {
29838 if (arg3) delete [] arg3;
29839 }
29840 return NULL;
29841 }
29842
29843
29844 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29845 PyObject *resultobj = 0;
29846 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29847 wxDouble arg2 ;
29848 wxDouble arg3 ;
29849 wxDouble arg4 ;
29850 wxDouble arg5 ;
29851 void *argp1 = 0 ;
29852 int res1 = 0 ;
29853 double val2 ;
29854 int ecode2 = 0 ;
29855 double val3 ;
29856 int ecode3 = 0 ;
29857 double val4 ;
29858 int ecode4 = 0 ;
29859 double val5 ;
29860 int ecode5 = 0 ;
29861 PyObject * obj0 = 0 ;
29862 PyObject * obj1 = 0 ;
29863 PyObject * obj2 = 0 ;
29864 PyObject * obj3 = 0 ;
29865 PyObject * obj4 = 0 ;
29866 char * kwnames[] = {
29867 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29868 };
29869
29870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29872 if (!SWIG_IsOK(res1)) {
29873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29874 }
29875 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29876 ecode2 = SWIG_AsVal_double(obj1, &val2);
29877 if (!SWIG_IsOK(ecode2)) {
29878 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
29879 }
29880 arg2 = static_cast< wxDouble >(val2);
29881 ecode3 = SWIG_AsVal_double(obj2, &val3);
29882 if (!SWIG_IsOK(ecode3)) {
29883 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
29884 }
29885 arg3 = static_cast< wxDouble >(val3);
29886 ecode4 = SWIG_AsVal_double(obj3, &val4);
29887 if (!SWIG_IsOK(ecode4)) {
29888 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
29889 }
29890 arg4 = static_cast< wxDouble >(val4);
29891 ecode5 = SWIG_AsVal_double(obj4, &val5);
29892 if (!SWIG_IsOK(ecode5)) {
29893 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
29894 }
29895 arg5 = static_cast< wxDouble >(val5);
29896 {
29897 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
29898 if (PyErr_Occurred()) SWIG_fail;
29899 }
29900 resultobj = SWIG_Py_Void();
29901 return resultobj;
29902 fail:
29903 return NULL;
29904 }
29905
29906
29907 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29908 PyObject *resultobj = 0;
29909 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29910 wxDouble arg2 ;
29911 wxDouble arg3 ;
29912 wxDouble arg4 ;
29913 wxDouble arg5 ;
29914 void *argp1 = 0 ;
29915 int res1 = 0 ;
29916 double val2 ;
29917 int ecode2 = 0 ;
29918 double val3 ;
29919 int ecode3 = 0 ;
29920 double val4 ;
29921 int ecode4 = 0 ;
29922 double val5 ;
29923 int ecode5 = 0 ;
29924 PyObject * obj0 = 0 ;
29925 PyObject * obj1 = 0 ;
29926 PyObject * obj2 = 0 ;
29927 PyObject * obj3 = 0 ;
29928 PyObject * obj4 = 0 ;
29929 char * kwnames[] = {
29930 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29931 };
29932
29933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29935 if (!SWIG_IsOK(res1)) {
29936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29937 }
29938 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29939 ecode2 = SWIG_AsVal_double(obj1, &val2);
29940 if (!SWIG_IsOK(ecode2)) {
29941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
29942 }
29943 arg2 = static_cast< wxDouble >(val2);
29944 ecode3 = SWIG_AsVal_double(obj2, &val3);
29945 if (!SWIG_IsOK(ecode3)) {
29946 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
29947 }
29948 arg3 = static_cast< wxDouble >(val3);
29949 ecode4 = SWIG_AsVal_double(obj3, &val4);
29950 if (!SWIG_IsOK(ecode4)) {
29951 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
29952 }
29953 arg4 = static_cast< wxDouble >(val4);
29954 ecode5 = SWIG_AsVal_double(obj4, &val5);
29955 if (!SWIG_IsOK(ecode5)) {
29956 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
29957 }
29958 arg5 = static_cast< wxDouble >(val5);
29959 {
29960 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
29961 if (PyErr_Occurred()) SWIG_fail;
29962 }
29963 resultobj = SWIG_Py_Void();
29964 return resultobj;
29965 fail:
29966 return NULL;
29967 }
29968
29969
29970 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29971 PyObject *resultobj = 0;
29972 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29973 wxDouble arg2 ;
29974 wxDouble arg3 ;
29975 wxDouble arg4 ;
29976 wxDouble arg5 ;
29977 wxDouble arg6 ;
29978 void *argp1 = 0 ;
29979 int res1 = 0 ;
29980 double val2 ;
29981 int ecode2 = 0 ;
29982 double val3 ;
29983 int ecode3 = 0 ;
29984 double val4 ;
29985 int ecode4 = 0 ;
29986 double val5 ;
29987 int ecode5 = 0 ;
29988 double val6 ;
29989 int ecode6 = 0 ;
29990 PyObject * obj0 = 0 ;
29991 PyObject * obj1 = 0 ;
29992 PyObject * obj2 = 0 ;
29993 PyObject * obj3 = 0 ;
29994 PyObject * obj4 = 0 ;
29995 PyObject * obj5 = 0 ;
29996 char * kwnames[] = {
29997 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
29998 };
29999
30000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30002 if (!SWIG_IsOK(res1)) {
30003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30004 }
30005 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30006 ecode2 = SWIG_AsVal_double(obj1, &val2);
30007 if (!SWIG_IsOK(ecode2)) {
30008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
30009 }
30010 arg2 = static_cast< wxDouble >(val2);
30011 ecode3 = SWIG_AsVal_double(obj2, &val3);
30012 if (!SWIG_IsOK(ecode3)) {
30013 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
30014 }
30015 arg3 = static_cast< wxDouble >(val3);
30016 ecode4 = SWIG_AsVal_double(obj3, &val4);
30017 if (!SWIG_IsOK(ecode4)) {
30018 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
30019 }
30020 arg4 = static_cast< wxDouble >(val4);
30021 ecode5 = SWIG_AsVal_double(obj4, &val5);
30022 if (!SWIG_IsOK(ecode5)) {
30023 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
30024 }
30025 arg5 = static_cast< wxDouble >(val5);
30026 ecode6 = SWIG_AsVal_double(obj5, &val6);
30027 if (!SWIG_IsOK(ecode6)) {
30028 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
30029 }
30030 arg6 = static_cast< wxDouble >(val6);
30031 {
30032 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
30033 if (PyErr_Occurred()) SWIG_fail;
30034 }
30035 resultobj = SWIG_Py_Void();
30036 return resultobj;
30037 fail:
30038 return NULL;
30039 }
30040
30041
30042 SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30043 PyObject *resultobj = 0;
30044 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30045 bool result;
30046 void *argp1 = 0 ;
30047 int res1 = 0 ;
30048 PyObject *swig_obj[1] ;
30049
30050 if (!args) SWIG_fail;
30051 swig_obj[0] = args;
30052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30053 if (!SWIG_IsOK(res1)) {
30054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
30055 }
30056 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30057 {
30058 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
30059 if (PyErr_Occurred()) SWIG_fail;
30060 }
30061 {
30062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30063 }
30064 return resultobj;
30065 fail:
30066 return NULL;
30067 }
30068
30069
30070 SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30071 PyObject *obj;
30072 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30073 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
30074 return SWIG_Py_Void();
30075 }
30076
30077 SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30078 PyObject *resultobj = 0;
30079 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30080 void *argp1 = 0 ;
30081 int res1 = 0 ;
30082 PyObject *swig_obj[1] ;
30083
30084 if (!args) SWIG_fail;
30085 swig_obj[0] = args;
30086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
30087 if (!SWIG_IsOK(res1)) {
30088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30089 }
30090 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30091 {
30092 delete arg1;
30093
30094 if (PyErr_Occurred()) SWIG_fail;
30095 }
30096 resultobj = SWIG_Py_Void();
30097 return resultobj;
30098 fail:
30099 return NULL;
30100 }
30101
30102
30103 SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30104 PyObject *resultobj = 0;
30105 wxGraphicsRenderer *result = 0 ;
30106
30107 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
30108 {
30109 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
30110 if (PyErr_Occurred()) SWIG_fail;
30111 }
30112 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30113 return resultobj;
30114 fail:
30115 return NULL;
30116 }
30117
30118
30119 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30120 PyObject *resultobj = 0;
30121 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30122 wxWindowDC *arg2 = 0 ;
30123 wxGraphicsContext *result = 0 ;
30124 void *argp1 = 0 ;
30125 int res1 = 0 ;
30126 void *argp2 = 0 ;
30127 int res2 = 0 ;
30128
30129 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30131 if (!SWIG_IsOK(res1)) {
30132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30133 }
30134 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30135 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
30136 if (!SWIG_IsOK(res2)) {
30137 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30138 }
30139 if (!argp2) {
30140 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30141 }
30142 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30143 {
30144 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
30145 if (PyErr_Occurred()) SWIG_fail;
30146 }
30147 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30148 return resultobj;
30149 fail:
30150 return NULL;
30151 }
30152
30153
30154 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30155 PyObject *resultobj = 0;
30156 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30157 wxWindow *arg2 = (wxWindow *) 0 ;
30158 wxGraphicsContext *result = 0 ;
30159 void *argp1 = 0 ;
30160 int res1 = 0 ;
30161 void *argp2 = 0 ;
30162 int res2 = 0 ;
30163
30164 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30166 if (!SWIG_IsOK(res1)) {
30167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30168 }
30169 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30170 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30171 if (!SWIG_IsOK(res2)) {
30172 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
30173 }
30174 arg2 = reinterpret_cast< wxWindow * >(argp2);
30175 {
30176 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
30177 if (PyErr_Occurred()) SWIG_fail;
30178 }
30179 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30180 return resultobj;
30181 fail:
30182 return NULL;
30183 }
30184
30185
30186 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
30187 int argc;
30188 PyObject *argv[3];
30189
30190 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
30191 --argc;
30192 if (argc == 2) {
30193 int _v = 0;
30194 {
30195 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
30196 _v = SWIG_CheckState(res);
30197 }
30198 if (!_v) goto check_1;
30199 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
30200 }
30201 check_1:
30202
30203 if (argc == 2) {
30204 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
30205 }
30206
30207 fail:
30208 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
30209 return NULL;
30210 }
30211
30212
30213 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30214 PyObject *resultobj = 0;
30215 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30216 wxGraphicsContext *result = 0 ;
30217 void *argp1 = 0 ;
30218 int res1 = 0 ;
30219 PyObject *swig_obj[1] ;
30220
30221 if (!args) SWIG_fail;
30222 swig_obj[0] = args;
30223 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30224 if (!SWIG_IsOK(res1)) {
30225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMeasuringContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30226 }
30227 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30228 {
30229 result = (wxGraphicsContext *)(arg1)->CreateMeasuringContext();
30230 if (PyErr_Occurred()) SWIG_fail;
30231 }
30232 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30233 return resultobj;
30234 fail:
30235 return NULL;
30236 }
30237
30238
30239 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30240 PyObject *resultobj = 0;
30241 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30242 void *arg2 = (void *) 0 ;
30243 wxGraphicsContext *result = 0 ;
30244 void *argp1 = 0 ;
30245 int res1 = 0 ;
30246 int res2 ;
30247 PyObject * obj0 = 0 ;
30248 PyObject * obj1 = 0 ;
30249 char * kwnames[] = {
30250 (char *) "self",(char *) "context", NULL
30251 };
30252
30253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
30254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30255 if (!SWIG_IsOK(res1)) {
30256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30257 }
30258 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30259 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30260 if (!SWIG_IsOK(res2)) {
30261 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
30262 }
30263 {
30264 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
30265 if (PyErr_Occurred()) SWIG_fail;
30266 }
30267 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30268 return resultobj;
30269 fail:
30270 return NULL;
30271 }
30272
30273
30274 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30275 PyObject *resultobj = 0;
30276 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30277 void *arg2 = (void *) 0 ;
30278 wxGraphicsContext *result = 0 ;
30279 void *argp1 = 0 ;
30280 int res1 = 0 ;
30281 int res2 ;
30282 PyObject * obj0 = 0 ;
30283 PyObject * obj1 = 0 ;
30284 char * kwnames[] = {
30285 (char *) "self",(char *) "window", NULL
30286 };
30287
30288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
30289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30290 if (!SWIG_IsOK(res1)) {
30291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30292 }
30293 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30294 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30295 if (!SWIG_IsOK(res2)) {
30296 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
30297 }
30298 {
30299 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
30300 if (PyErr_Occurred()) SWIG_fail;
30301 }
30302 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30303 return resultobj;
30304 fail:
30305 return NULL;
30306 }
30307
30308
30309 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30310 PyObject *resultobj = 0;
30311 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30312 wxGraphicsPath result;
30313 void *argp1 = 0 ;
30314 int res1 = 0 ;
30315 PyObject *swig_obj[1] ;
30316
30317 if (!args) SWIG_fail;
30318 swig_obj[0] = args;
30319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30320 if (!SWIG_IsOK(res1)) {
30321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30322 }
30323 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30324 {
30325 result = (arg1)->CreatePath();
30326 if (PyErr_Occurred()) SWIG_fail;
30327 }
30328 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
30329 return resultobj;
30330 fail:
30331 return NULL;
30332 }
30333
30334
30335 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30336 PyObject *resultobj = 0;
30337 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30338 wxDouble arg2 = (wxDouble) 1.0 ;
30339 wxDouble arg3 = (wxDouble) 0.0 ;
30340 wxDouble arg4 = (wxDouble) 0.0 ;
30341 wxDouble arg5 = (wxDouble) 1.0 ;
30342 wxDouble arg6 = (wxDouble) 0.0 ;
30343 wxDouble arg7 = (wxDouble) 0.0 ;
30344 wxGraphicsMatrix result;
30345 void *argp1 = 0 ;
30346 int res1 = 0 ;
30347 double val2 ;
30348 int ecode2 = 0 ;
30349 double val3 ;
30350 int ecode3 = 0 ;
30351 double val4 ;
30352 int ecode4 = 0 ;
30353 double val5 ;
30354 int ecode5 = 0 ;
30355 double val6 ;
30356 int ecode6 = 0 ;
30357 double val7 ;
30358 int ecode7 = 0 ;
30359 PyObject * obj0 = 0 ;
30360 PyObject * obj1 = 0 ;
30361 PyObject * obj2 = 0 ;
30362 PyObject * obj3 = 0 ;
30363 PyObject * obj4 = 0 ;
30364 PyObject * obj5 = 0 ;
30365 PyObject * obj6 = 0 ;
30366 char * kwnames[] = {
30367 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
30368 };
30369
30370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30372 if (!SWIG_IsOK(res1)) {
30373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30374 }
30375 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30376 if (obj1) {
30377 ecode2 = SWIG_AsVal_double(obj1, &val2);
30378 if (!SWIG_IsOK(ecode2)) {
30379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
30380 }
30381 arg2 = static_cast< wxDouble >(val2);
30382 }
30383 if (obj2) {
30384 ecode3 = SWIG_AsVal_double(obj2, &val3);
30385 if (!SWIG_IsOK(ecode3)) {
30386 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
30387 }
30388 arg3 = static_cast< wxDouble >(val3);
30389 }
30390 if (obj3) {
30391 ecode4 = SWIG_AsVal_double(obj3, &val4);
30392 if (!SWIG_IsOK(ecode4)) {
30393 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
30394 }
30395 arg4 = static_cast< wxDouble >(val4);
30396 }
30397 if (obj4) {
30398 ecode5 = SWIG_AsVal_double(obj4, &val5);
30399 if (!SWIG_IsOK(ecode5)) {
30400 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
30401 }
30402 arg5 = static_cast< wxDouble >(val5);
30403 }
30404 if (obj5) {
30405 ecode6 = SWIG_AsVal_double(obj5, &val6);
30406 if (!SWIG_IsOK(ecode6)) {
30407 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
30408 }
30409 arg6 = static_cast< wxDouble >(val6);
30410 }
30411 if (obj6) {
30412 ecode7 = SWIG_AsVal_double(obj6, &val7);
30413 if (!SWIG_IsOK(ecode7)) {
30414 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
30415 }
30416 arg7 = static_cast< wxDouble >(val7);
30417 }
30418 {
30419 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
30420 if (PyErr_Occurred()) SWIG_fail;
30421 }
30422 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
30423 return resultobj;
30424 fail:
30425 return NULL;
30426 }
30427
30428
30429 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30430 PyObject *resultobj = 0;
30431 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30432 wxPen *arg2 = 0 ;
30433 wxGraphicsPen result;
30434 void *argp1 = 0 ;
30435 int res1 = 0 ;
30436 void *argp2 = 0 ;
30437 int res2 = 0 ;
30438 PyObject * obj0 = 0 ;
30439 PyObject * obj1 = 0 ;
30440 char * kwnames[] = {
30441 (char *) "self",(char *) "pen", NULL
30442 };
30443
30444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
30445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30446 if (!SWIG_IsOK(res1)) {
30447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30448 }
30449 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30450 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
30451 if (!SWIG_IsOK(res2)) {
30452 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30453 }
30454 if (!argp2) {
30455 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30456 }
30457 arg2 = reinterpret_cast< wxPen * >(argp2);
30458 {
30459 result = (arg1)->CreatePen((wxPen const &)*arg2);
30460 if (PyErr_Occurred()) SWIG_fail;
30461 }
30462 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
30463 return resultobj;
30464 fail:
30465 return NULL;
30466 }
30467
30468
30469 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30470 PyObject *resultobj = 0;
30471 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30472 wxBrush *arg2 = 0 ;
30473 wxGraphicsBrush result;
30474 void *argp1 = 0 ;
30475 int res1 = 0 ;
30476 void *argp2 = 0 ;
30477 int res2 = 0 ;
30478 PyObject * obj0 = 0 ;
30479 PyObject * obj1 = 0 ;
30480 char * kwnames[] = {
30481 (char *) "self",(char *) "brush", NULL
30482 };
30483
30484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30486 if (!SWIG_IsOK(res1)) {
30487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30488 }
30489 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30490 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30491 if (!SWIG_IsOK(res2)) {
30492 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30493 }
30494 if (!argp2) {
30495 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30496 }
30497 arg2 = reinterpret_cast< wxBrush * >(argp2);
30498 {
30499 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
30500 if (PyErr_Occurred()) SWIG_fail;
30501 }
30502 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30503 return resultobj;
30504 fail:
30505 return NULL;
30506 }
30507
30508
30509 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30510 PyObject *resultobj = 0;
30511 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30512 wxDouble arg2 ;
30513 wxDouble arg3 ;
30514 wxDouble arg4 ;
30515 wxDouble arg5 ;
30516 wxColour *arg6 = 0 ;
30517 wxColour *arg7 = 0 ;
30518 wxGraphicsBrush result;
30519 void *argp1 = 0 ;
30520 int res1 = 0 ;
30521 double val2 ;
30522 int ecode2 = 0 ;
30523 double val3 ;
30524 int ecode3 = 0 ;
30525 double val4 ;
30526 int ecode4 = 0 ;
30527 double val5 ;
30528 int ecode5 = 0 ;
30529 wxColour temp6 ;
30530 wxColour temp7 ;
30531 PyObject * obj0 = 0 ;
30532 PyObject * obj1 = 0 ;
30533 PyObject * obj2 = 0 ;
30534 PyObject * obj3 = 0 ;
30535 PyObject * obj4 = 0 ;
30536 PyObject * obj5 = 0 ;
30537 PyObject * obj6 = 0 ;
30538 char * kwnames[] = {
30539 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
30540 };
30541
30542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30544 if (!SWIG_IsOK(res1)) {
30545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30546 }
30547 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30548 ecode2 = SWIG_AsVal_double(obj1, &val2);
30549 if (!SWIG_IsOK(ecode2)) {
30550 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
30551 }
30552 arg2 = static_cast< wxDouble >(val2);
30553 ecode3 = SWIG_AsVal_double(obj2, &val3);
30554 if (!SWIG_IsOK(ecode3)) {
30555 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
30556 }
30557 arg3 = static_cast< wxDouble >(val3);
30558 ecode4 = SWIG_AsVal_double(obj3, &val4);
30559 if (!SWIG_IsOK(ecode4)) {
30560 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
30561 }
30562 arg4 = static_cast< wxDouble >(val4);
30563 ecode5 = SWIG_AsVal_double(obj4, &val5);
30564 if (!SWIG_IsOK(ecode5)) {
30565 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
30566 }
30567 arg5 = static_cast< wxDouble >(val5);
30568 {
30569 arg6 = &temp6;
30570 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
30571 }
30572 {
30573 arg7 = &temp7;
30574 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30575 }
30576 {
30577 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
30578 if (PyErr_Occurred()) SWIG_fail;
30579 }
30580 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30581 return resultobj;
30582 fail:
30583 return NULL;
30584 }
30585
30586
30587 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30588 PyObject *resultobj = 0;
30589 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30590 wxDouble arg2 ;
30591 wxDouble arg3 ;
30592 wxDouble arg4 ;
30593 wxDouble arg5 ;
30594 wxDouble arg6 ;
30595 wxColour *arg7 = 0 ;
30596 wxColour *arg8 = 0 ;
30597 wxGraphicsBrush result;
30598 void *argp1 = 0 ;
30599 int res1 = 0 ;
30600 double val2 ;
30601 int ecode2 = 0 ;
30602 double val3 ;
30603 int ecode3 = 0 ;
30604 double val4 ;
30605 int ecode4 = 0 ;
30606 double val5 ;
30607 int ecode5 = 0 ;
30608 double val6 ;
30609 int ecode6 = 0 ;
30610 wxColour temp7 ;
30611 wxColour temp8 ;
30612 PyObject * obj0 = 0 ;
30613 PyObject * obj1 = 0 ;
30614 PyObject * obj2 = 0 ;
30615 PyObject * obj3 = 0 ;
30616 PyObject * obj4 = 0 ;
30617 PyObject * obj5 = 0 ;
30618 PyObject * obj6 = 0 ;
30619 PyObject * obj7 = 0 ;
30620 char * kwnames[] = {
30621 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
30622 };
30623
30624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
30625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30626 if (!SWIG_IsOK(res1)) {
30627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30628 }
30629 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30630 ecode2 = SWIG_AsVal_double(obj1, &val2);
30631 if (!SWIG_IsOK(ecode2)) {
30632 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
30633 }
30634 arg2 = static_cast< wxDouble >(val2);
30635 ecode3 = SWIG_AsVal_double(obj2, &val3);
30636 if (!SWIG_IsOK(ecode3)) {
30637 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
30638 }
30639 arg3 = static_cast< wxDouble >(val3);
30640 ecode4 = SWIG_AsVal_double(obj3, &val4);
30641 if (!SWIG_IsOK(ecode4)) {
30642 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
30643 }
30644 arg4 = static_cast< wxDouble >(val4);
30645 ecode5 = SWIG_AsVal_double(obj4, &val5);
30646 if (!SWIG_IsOK(ecode5)) {
30647 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
30648 }
30649 arg5 = static_cast< wxDouble >(val5);
30650 ecode6 = SWIG_AsVal_double(obj5, &val6);
30651 if (!SWIG_IsOK(ecode6)) {
30652 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
30653 }
30654 arg6 = static_cast< wxDouble >(val6);
30655 {
30656 arg7 = &temp7;
30657 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30658 }
30659 {
30660 arg8 = &temp8;
30661 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
30662 }
30663 {
30664 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
30665 if (PyErr_Occurred()) SWIG_fail;
30666 }
30667 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30668 return resultobj;
30669 fail:
30670 return NULL;
30671 }
30672
30673
30674 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30675 PyObject *resultobj = 0;
30676 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30677 wxFont *arg2 = 0 ;
30678 wxColour const &arg3_defvalue = *wxBLACK ;
30679 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
30680 wxGraphicsFont result;
30681 void *argp1 = 0 ;
30682 int res1 = 0 ;
30683 void *argp2 = 0 ;
30684 int res2 = 0 ;
30685 wxColour temp3 ;
30686 PyObject * obj0 = 0 ;
30687 PyObject * obj1 = 0 ;
30688 PyObject * obj2 = 0 ;
30689 char * kwnames[] = {
30690 (char *) "self",(char *) "font",(char *) "col", NULL
30691 };
30692
30693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30695 if (!SWIG_IsOK(res1)) {
30696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30697 }
30698 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30699 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
30700 if (!SWIG_IsOK(res2)) {
30701 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30702 }
30703 if (!argp2) {
30704 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30705 }
30706 arg2 = reinterpret_cast< wxFont * >(argp2);
30707 if (obj2) {
30708 {
30709 arg3 = &temp3;
30710 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30711 }
30712 }
30713 {
30714 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
30715 if (PyErr_Occurred()) SWIG_fail;
30716 }
30717 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
30718 return resultobj;
30719 fail:
30720 return NULL;
30721 }
30722
30723
30724 SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30725 PyObject *obj;
30726 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30727 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
30728 return SWIG_Py_Void();
30729 }
30730
30731 SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30732 PyObject *resultobj = 0;
30733 wxWindowDC *arg1 = 0 ;
30734 wxGCDC *result = 0 ;
30735 void *argp1 = 0 ;
30736 int res1 = 0 ;
30737
30738 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
30739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
30740 if (!SWIG_IsOK(res1)) {
30741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30742 }
30743 if (!argp1) {
30744 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30745 }
30746 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
30747 {
30748 if (!wxPyCheckForApp()) SWIG_fail;
30749 PyThreadState* __tstate = wxPyBeginAllowThreads();
30750 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
30751 wxPyEndAllowThreads(__tstate);
30752 if (PyErr_Occurred()) SWIG_fail;
30753 }
30754 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30755 return resultobj;
30756 fail:
30757 return NULL;
30758 }
30759
30760
30761 SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30762 PyObject *resultobj = 0;
30763 wxWindow *arg1 = (wxWindow *) 0 ;
30764 wxGCDC *result = 0 ;
30765 void *argp1 = 0 ;
30766 int res1 = 0 ;
30767
30768 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
30769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
30770 if (!SWIG_IsOK(res1)) {
30771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindow *""'");
30772 }
30773 arg1 = reinterpret_cast< wxWindow * >(argp1);
30774 {
30775 if (!wxPyCheckForApp()) SWIG_fail;
30776 PyThreadState* __tstate = wxPyBeginAllowThreads();
30777 result = (wxGCDC *)new wxGCDC(arg1);
30778 wxPyEndAllowThreads(__tstate);
30779 if (PyErr_Occurred()) SWIG_fail;
30780 }
30781 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30782 return resultobj;
30783 fail:
30784 return NULL;
30785 }
30786
30787
30788 SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *self, PyObject *args) {
30789 int argc;
30790 PyObject *argv[2];
30791
30792 if (!(argc = SWIG_Python_UnpackTuple(args,"new_GCDC",0,1,argv))) SWIG_fail;
30793 --argc;
30794 if (argc == 1) {
30795 int _v = 0;
30796 {
30797 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
30798 _v = SWIG_CheckState(res);
30799 }
30800 if (!_v) goto check_1;
30801 return _wrap_new_GCDC__SWIG_0(self, argc, argv);
30802 }
30803 check_1:
30804
30805 if (argc == 1) {
30806 return _wrap_new_GCDC__SWIG_1(self, argc, argv);
30807 }
30808
30809 fail:
30810 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_GCDC'");
30811 return NULL;
30812 }
30813
30814
30815 SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30816 PyObject *resultobj = 0;
30817 wxGCDC *arg1 = (wxGCDC *) 0 ;
30818 void *argp1 = 0 ;
30819 int res1 = 0 ;
30820 PyObject *swig_obj[1] ;
30821
30822 if (!args) SWIG_fail;
30823 swig_obj[0] = args;
30824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
30825 if (!SWIG_IsOK(res1)) {
30826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
30827 }
30828 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30829 {
30830 delete arg1;
30831
30832 if (PyErr_Occurred()) SWIG_fail;
30833 }
30834 resultobj = SWIG_Py_Void();
30835 return resultobj;
30836 fail:
30837 return NULL;
30838 }
30839
30840
30841 SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30842 PyObject *resultobj = 0;
30843 wxGCDC *arg1 = (wxGCDC *) 0 ;
30844 wxGraphicsContext *result = 0 ;
30845 void *argp1 = 0 ;
30846 int res1 = 0 ;
30847 PyObject *swig_obj[1] ;
30848
30849 if (!args) SWIG_fail;
30850 swig_obj[0] = args;
30851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30852 if (!SWIG_IsOK(res1)) {
30853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
30854 }
30855 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30856 {
30857 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
30858 if (PyErr_Occurred()) SWIG_fail;
30859 }
30860 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30861 return resultobj;
30862 fail:
30863 return NULL;
30864 }
30865
30866
30867 SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30868 PyObject *resultobj = 0;
30869 wxGCDC *arg1 = (wxGCDC *) 0 ;
30870 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
30871 void *argp1 = 0 ;
30872 int res1 = 0 ;
30873 void *argp2 = 0 ;
30874 int res2 = 0 ;
30875 PyObject * obj0 = 0 ;
30876 PyObject * obj1 = 0 ;
30877 char * kwnames[] = {
30878 (char *) "self",(char *) "ctx", NULL
30879 };
30880
30881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
30882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30883 if (!SWIG_IsOK(res1)) {
30884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
30885 }
30886 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30887 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30888 if (!SWIG_IsOK(res2)) {
30889 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
30890 }
30891 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
30892 {
30893 (arg1)->SetGraphicsContext(arg2);
30894 if (PyErr_Occurred()) SWIG_fail;
30895 }
30896 resultobj = SWIG_Py_Void();
30897 return resultobj;
30898 fail:
30899 return NULL;
30900 }
30901
30902
30903 SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30904 PyObject *obj;
30905 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30906 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
30907 return SWIG_Py_Void();
30908 }
30909
30910 SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30911 return SWIG_Python_InitShadowInstance(args);
30912 }
30913
30914 SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30915 PyObject *resultobj = 0;
30916 wxOverlay *result = 0 ;
30917
30918 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
30919 {
30920 PyThreadState* __tstate = wxPyBeginAllowThreads();
30921 result = (wxOverlay *)new wxOverlay();
30922 wxPyEndAllowThreads(__tstate);
30923 if (PyErr_Occurred()) SWIG_fail;
30924 }
30925 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
30926 return resultobj;
30927 fail:
30928 return NULL;
30929 }
30930
30931
30932 SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30933 PyObject *resultobj = 0;
30934 wxOverlay *arg1 = (wxOverlay *) 0 ;
30935 void *argp1 = 0 ;
30936 int res1 = 0 ;
30937 PyObject *swig_obj[1] ;
30938
30939 if (!args) SWIG_fail;
30940 swig_obj[0] = args;
30941 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
30942 if (!SWIG_IsOK(res1)) {
30943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
30944 }
30945 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30946 {
30947 PyThreadState* __tstate = wxPyBeginAllowThreads();
30948 delete arg1;
30949
30950 wxPyEndAllowThreads(__tstate);
30951 if (PyErr_Occurred()) SWIG_fail;
30952 }
30953 resultobj = SWIG_Py_Void();
30954 return resultobj;
30955 fail:
30956 return NULL;
30957 }
30958
30959
30960 SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30961 PyObject *resultobj = 0;
30962 wxOverlay *arg1 = (wxOverlay *) 0 ;
30963 void *argp1 = 0 ;
30964 int res1 = 0 ;
30965 PyObject *swig_obj[1] ;
30966
30967 if (!args) SWIG_fail;
30968 swig_obj[0] = args;
30969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
30970 if (!SWIG_IsOK(res1)) {
30971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
30972 }
30973 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30974 {
30975 PyThreadState* __tstate = wxPyBeginAllowThreads();
30976 (arg1)->Reset();
30977 wxPyEndAllowThreads(__tstate);
30978 if (PyErr_Occurred()) SWIG_fail;
30979 }
30980 resultobj = SWIG_Py_Void();
30981 return resultobj;
30982 fail:
30983 return NULL;
30984 }
30985
30986
30987 SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30988 PyObject *obj;
30989 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30990 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
30991 return SWIG_Py_Void();
30992 }
30993
30994 SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30995 return SWIG_Python_InitShadowInstance(args);
30996 }
30997
30998 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30999 PyObject *resultobj = 0;
31000 wxOverlay *arg1 = 0 ;
31001 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31002 int arg3 ;
31003 int arg4 ;
31004 int arg5 ;
31005 int arg6 ;
31006 wxDCOverlay *result = 0 ;
31007 void *argp1 = 0 ;
31008 int res1 = 0 ;
31009 void *argp2 = 0 ;
31010 int res2 = 0 ;
31011 int val3 ;
31012 int ecode3 = 0 ;
31013 int val4 ;
31014 int ecode4 = 0 ;
31015 int val5 ;
31016 int ecode5 = 0 ;
31017 int val6 ;
31018 int ecode6 = 0 ;
31019
31020 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
31021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31022 if (!SWIG_IsOK(res1)) {
31023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31024 }
31025 if (!argp1) {
31026 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31027 }
31028 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31029 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31030 if (!SWIG_IsOK(res2)) {
31031 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31032 }
31033 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31034 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
31035 if (!SWIG_IsOK(ecode3)) {
31036 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
31037 }
31038 arg3 = static_cast< int >(val3);
31039 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
31040 if (!SWIG_IsOK(ecode4)) {
31041 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
31042 }
31043 arg4 = static_cast< int >(val4);
31044 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
31045 if (!SWIG_IsOK(ecode5)) {
31046 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
31047 }
31048 arg5 = static_cast< int >(val5);
31049 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
31050 if (!SWIG_IsOK(ecode6)) {
31051 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
31052 }
31053 arg6 = static_cast< int >(val6);
31054 {
31055 PyThreadState* __tstate = wxPyBeginAllowThreads();
31056 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
31057 wxPyEndAllowThreads(__tstate);
31058 if (PyErr_Occurred()) SWIG_fail;
31059 }
31060 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31061 return resultobj;
31062 fail:
31063 return NULL;
31064 }
31065
31066
31067 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31068 PyObject *resultobj = 0;
31069 wxOverlay *arg1 = 0 ;
31070 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31071 wxDCOverlay *result = 0 ;
31072 void *argp1 = 0 ;
31073 int res1 = 0 ;
31074 void *argp2 = 0 ;
31075 int res2 = 0 ;
31076
31077 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31079 if (!SWIG_IsOK(res1)) {
31080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31081 }
31082 if (!argp1) {
31083 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31084 }
31085 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31086 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31087 if (!SWIG_IsOK(res2)) {
31088 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31089 }
31090 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31091 {
31092 PyThreadState* __tstate = wxPyBeginAllowThreads();
31093 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
31094 wxPyEndAllowThreads(__tstate);
31095 if (PyErr_Occurred()) SWIG_fail;
31096 }
31097 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31098 return resultobj;
31099 fail:
31100 return NULL;
31101 }
31102
31103
31104 SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
31105 int argc;
31106 PyObject *argv[7];
31107
31108 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
31109 --argc;
31110 if (argc == 2) {
31111 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
31112 }
31113 if (argc == 6) {
31114 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
31115 }
31116
31117 fail:
31118 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
31119 return NULL;
31120 }
31121
31122
31123 SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31124 PyObject *resultobj = 0;
31125 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31126 void *argp1 = 0 ;
31127 int res1 = 0 ;
31128 PyObject *swig_obj[1] ;
31129
31130 if (!args) SWIG_fail;
31131 swig_obj[0] = args;
31132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
31133 if (!SWIG_IsOK(res1)) {
31134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31135 }
31136 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31137 {
31138 PyThreadState* __tstate = wxPyBeginAllowThreads();
31139 delete arg1;
31140
31141 wxPyEndAllowThreads(__tstate);
31142 if (PyErr_Occurred()) SWIG_fail;
31143 }
31144 resultobj = SWIG_Py_Void();
31145 return resultobj;
31146 fail:
31147 return NULL;
31148 }
31149
31150
31151 SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31152 PyObject *resultobj = 0;
31153 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31154 void *argp1 = 0 ;
31155 int res1 = 0 ;
31156 PyObject *swig_obj[1] ;
31157
31158 if (!args) SWIG_fail;
31159 swig_obj[0] = args;
31160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
31161 if (!SWIG_IsOK(res1)) {
31162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31163 }
31164 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31165 {
31166 PyThreadState* __tstate = wxPyBeginAllowThreads();
31167 (arg1)->Clear();
31168 wxPyEndAllowThreads(__tstate);
31169 if (PyErr_Occurred()) SWIG_fail;
31170 }
31171 resultobj = SWIG_Py_Void();
31172 return resultobj;
31173 fail:
31174 return NULL;
31175 }
31176
31177
31178 SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31179 PyObject *obj;
31180 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31181 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
31182 return SWIG_Py_Void();
31183 }
31184
31185 SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31186 return SWIG_Python_InitShadowInstance(args);
31187 }
31188
31189 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31190 PyObject *resultobj = 0;
31191 int arg1 ;
31192 int arg2 ;
31193 int arg3 = (int) true ;
31194 int arg4 = (int) 1 ;
31195 wxImageList *result = 0 ;
31196 int val1 ;
31197 int ecode1 = 0 ;
31198 int val2 ;
31199 int ecode2 = 0 ;
31200 int val3 ;
31201 int ecode3 = 0 ;
31202 int val4 ;
31203 int ecode4 = 0 ;
31204 PyObject * obj0 = 0 ;
31205 PyObject * obj1 = 0 ;
31206 PyObject * obj2 = 0 ;
31207 PyObject * obj3 = 0 ;
31208 char * kwnames[] = {
31209 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
31210 };
31211
31212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31213 ecode1 = SWIG_AsVal_int(obj0, &val1);
31214 if (!SWIG_IsOK(ecode1)) {
31215 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
31216 }
31217 arg1 = static_cast< int >(val1);
31218 ecode2 = SWIG_AsVal_int(obj1, &val2);
31219 if (!SWIG_IsOK(ecode2)) {
31220 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
31221 }
31222 arg2 = static_cast< int >(val2);
31223 if (obj2) {
31224 ecode3 = SWIG_AsVal_int(obj2, &val3);
31225 if (!SWIG_IsOK(ecode3)) {
31226 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
31227 }
31228 arg3 = static_cast< int >(val3);
31229 }
31230 if (obj3) {
31231 ecode4 = SWIG_AsVal_int(obj3, &val4);
31232 if (!SWIG_IsOK(ecode4)) {
31233 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
31234 }
31235 arg4 = static_cast< int >(val4);
31236 }
31237 {
31238 if (!wxPyCheckForApp()) SWIG_fail;
31239 PyThreadState* __tstate = wxPyBeginAllowThreads();
31240 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
31241 wxPyEndAllowThreads(__tstate);
31242 if (PyErr_Occurred()) SWIG_fail;
31243 }
31244 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
31245 return resultobj;
31246 fail:
31247 return NULL;
31248 }
31249
31250
31251 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31252 PyObject *resultobj = 0;
31253 wxImageList *arg1 = (wxImageList *) 0 ;
31254 void *argp1 = 0 ;
31255 int res1 = 0 ;
31256 PyObject *swig_obj[1] ;
31257
31258 if (!args) SWIG_fail;
31259 swig_obj[0] = args;
31260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
31261 if (!SWIG_IsOK(res1)) {
31262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
31263 }
31264 arg1 = reinterpret_cast< wxImageList * >(argp1);
31265 {
31266 PyThreadState* __tstate = wxPyBeginAllowThreads();
31267 delete arg1;
31268
31269 wxPyEndAllowThreads(__tstate);
31270 if (PyErr_Occurred()) SWIG_fail;
31271 }
31272 resultobj = SWIG_Py_Void();
31273 return resultobj;
31274 fail:
31275 return NULL;
31276 }
31277
31278
31279 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31280 PyObject *resultobj = 0;
31281 wxImageList *arg1 = (wxImageList *) 0 ;
31282 wxBitmap *arg2 = 0 ;
31283 wxBitmap const &arg3_defvalue = wxNullBitmap ;
31284 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
31285 int result;
31286 void *argp1 = 0 ;
31287 int res1 = 0 ;
31288 void *argp2 = 0 ;
31289 int res2 = 0 ;
31290 void *argp3 = 0 ;
31291 int res3 = 0 ;
31292 PyObject * obj0 = 0 ;
31293 PyObject * obj1 = 0 ;
31294 PyObject * obj2 = 0 ;
31295 char * kwnames[] = {
31296 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
31297 };
31298
31299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31301 if (!SWIG_IsOK(res1)) {
31302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
31303 }
31304 arg1 = reinterpret_cast< wxImageList * >(argp1);
31305 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31306 if (!SWIG_IsOK(res2)) {
31307 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31308 }
31309 if (!argp2) {
31310 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31311 }
31312 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31313 if (obj2) {
31314 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31315 if (!SWIG_IsOK(res3)) {
31316 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31317 }
31318 if (!argp3) {
31319 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31320 }
31321 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31322 }
31323 {
31324 PyThreadState* __tstate = wxPyBeginAllowThreads();
31325 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
31326 wxPyEndAllowThreads(__tstate);
31327 if (PyErr_Occurred()) SWIG_fail;
31328 }
31329 resultobj = SWIG_From_int(static_cast< int >(result));
31330 return resultobj;
31331 fail:
31332 return NULL;
31333 }
31334
31335
31336 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31337 PyObject *resultobj = 0;
31338 wxImageList *arg1 = (wxImageList *) 0 ;
31339 wxBitmap *arg2 = 0 ;
31340 wxColour *arg3 = 0 ;
31341 int result;
31342 void *argp1 = 0 ;
31343 int res1 = 0 ;
31344 void *argp2 = 0 ;
31345 int res2 = 0 ;
31346 wxColour temp3 ;
31347 PyObject * obj0 = 0 ;
31348 PyObject * obj1 = 0 ;
31349 PyObject * obj2 = 0 ;
31350 char * kwnames[] = {
31351 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
31352 };
31353
31354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31356 if (!SWIG_IsOK(res1)) {
31357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
31358 }
31359 arg1 = reinterpret_cast< wxImageList * >(argp1);
31360 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31361 if (!SWIG_IsOK(res2)) {
31362 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31363 }
31364 if (!argp2) {
31365 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31366 }
31367 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31368 {
31369 arg3 = &temp3;
31370 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31371 }
31372 {
31373 PyThreadState* __tstate = wxPyBeginAllowThreads();
31374 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
31375 wxPyEndAllowThreads(__tstate);
31376 if (PyErr_Occurred()) SWIG_fail;
31377 }
31378 resultobj = SWIG_From_int(static_cast< int >(result));
31379 return resultobj;
31380 fail:
31381 return NULL;
31382 }
31383
31384
31385 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31386 PyObject *resultobj = 0;
31387 wxImageList *arg1 = (wxImageList *) 0 ;
31388 wxIcon *arg2 = 0 ;
31389 int result;
31390 void *argp1 = 0 ;
31391 int res1 = 0 ;
31392 void *argp2 = 0 ;
31393 int res2 = 0 ;
31394 PyObject * obj0 = 0 ;
31395 PyObject * obj1 = 0 ;
31396 char * kwnames[] = {
31397 (char *) "self",(char *) "icon", NULL
31398 };
31399
31400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31402 if (!SWIG_IsOK(res1)) {
31403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
31404 }
31405 arg1 = reinterpret_cast< wxImageList * >(argp1);
31406 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
31407 if (!SWIG_IsOK(res2)) {
31408 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31409 }
31410 if (!argp2) {
31411 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31412 }
31413 arg2 = reinterpret_cast< wxIcon * >(argp2);
31414 {
31415 PyThreadState* __tstate = wxPyBeginAllowThreads();
31416 result = (int)(arg1)->Add((wxIcon const &)*arg2);
31417 wxPyEndAllowThreads(__tstate);
31418 if (PyErr_Occurred()) SWIG_fail;
31419 }
31420 resultobj = SWIG_From_int(static_cast< int >(result));
31421 return resultobj;
31422 fail:
31423 return NULL;
31424 }
31425
31426
31427 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31428 PyObject *resultobj = 0;
31429 wxImageList *arg1 = (wxImageList *) 0 ;
31430 int arg2 ;
31431 SwigValueWrapper<wxBitmap > result;
31432 void *argp1 = 0 ;
31433 int res1 = 0 ;
31434 int val2 ;
31435 int ecode2 = 0 ;
31436 PyObject * obj0 = 0 ;
31437 PyObject * obj1 = 0 ;
31438 char * kwnames[] = {
31439 (char *) "self",(char *) "index", NULL
31440 };
31441
31442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
31443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31444 if (!SWIG_IsOK(res1)) {
31445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
31446 }
31447 arg1 = reinterpret_cast< wxImageList * >(argp1);
31448 ecode2 = SWIG_AsVal_int(obj1, &val2);
31449 if (!SWIG_IsOK(ecode2)) {
31450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
31451 }
31452 arg2 = static_cast< int >(val2);
31453 {
31454 PyThreadState* __tstate = wxPyBeginAllowThreads();
31455 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
31456 wxPyEndAllowThreads(__tstate);
31457 if (PyErr_Occurred()) SWIG_fail;
31458 }
31459 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
31460 return resultobj;
31461 fail:
31462 return NULL;
31463 }
31464
31465
31466 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31467 PyObject *resultobj = 0;
31468 wxImageList *arg1 = (wxImageList *) 0 ;
31469 int arg2 ;
31470 wxIcon result;
31471 void *argp1 = 0 ;
31472 int res1 = 0 ;
31473 int val2 ;
31474 int ecode2 = 0 ;
31475 PyObject * obj0 = 0 ;
31476 PyObject * obj1 = 0 ;
31477 char * kwnames[] = {
31478 (char *) "self",(char *) "index", NULL
31479 };
31480
31481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31483 if (!SWIG_IsOK(res1)) {
31484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
31485 }
31486 arg1 = reinterpret_cast< wxImageList * >(argp1);
31487 ecode2 = SWIG_AsVal_int(obj1, &val2);
31488 if (!SWIG_IsOK(ecode2)) {
31489 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
31490 }
31491 arg2 = static_cast< int >(val2);
31492 {
31493 PyThreadState* __tstate = wxPyBeginAllowThreads();
31494 result = ((wxImageList const *)arg1)->GetIcon(arg2);
31495 wxPyEndAllowThreads(__tstate);
31496 if (PyErr_Occurred()) SWIG_fail;
31497 }
31498 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
31499 return resultobj;
31500 fail:
31501 return NULL;
31502 }
31503
31504
31505 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31506 PyObject *resultobj = 0;
31507 wxImageList *arg1 = (wxImageList *) 0 ;
31508 int arg2 ;
31509 wxBitmap *arg3 = 0 ;
31510 wxBitmap const &arg4_defvalue = wxNullBitmap ;
31511 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
31512 bool result;
31513 void *argp1 = 0 ;
31514 int res1 = 0 ;
31515 int val2 ;
31516 int ecode2 = 0 ;
31517 void *argp3 = 0 ;
31518 int res3 = 0 ;
31519 void *argp4 = 0 ;
31520 int res4 = 0 ;
31521 PyObject * obj0 = 0 ;
31522 PyObject * obj1 = 0 ;
31523 PyObject * obj2 = 0 ;
31524 PyObject * obj3 = 0 ;
31525 char * kwnames[] = {
31526 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
31527 };
31528
31529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31531 if (!SWIG_IsOK(res1)) {
31532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
31533 }
31534 arg1 = reinterpret_cast< wxImageList * >(argp1);
31535 ecode2 = SWIG_AsVal_int(obj1, &val2);
31536 if (!SWIG_IsOK(ecode2)) {
31537 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
31538 }
31539 arg2 = static_cast< int >(val2);
31540 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31541 if (!SWIG_IsOK(res3)) {
31542 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31543 }
31544 if (!argp3) {
31545 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31546 }
31547 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31548 if (obj3) {
31549 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
31550 if (!SWIG_IsOK(res4)) {
31551 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31552 }
31553 if (!argp4) {
31554 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31555 }
31556 arg4 = reinterpret_cast< wxBitmap * >(argp4);
31557 }
31558 {
31559 PyThreadState* __tstate = wxPyBeginAllowThreads();
31560 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
31561 wxPyEndAllowThreads(__tstate);
31562 if (PyErr_Occurred()) SWIG_fail;
31563 }
31564 {
31565 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31566 }
31567 return resultobj;
31568 fail:
31569 return NULL;
31570 }
31571
31572
31573 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31574 PyObject *resultobj = 0;
31575 wxImageList *arg1 = (wxImageList *) 0 ;
31576 int arg2 ;
31577 wxDC *arg3 = 0 ;
31578 int arg4 ;
31579 int arg5 ;
31580 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
31581 bool arg7 = (bool) (bool)false ;
31582 bool result;
31583 void *argp1 = 0 ;
31584 int res1 = 0 ;
31585 int val2 ;
31586 int ecode2 = 0 ;
31587 void *argp3 = 0 ;
31588 int res3 = 0 ;
31589 int val4 ;
31590 int ecode4 = 0 ;
31591 int val5 ;
31592 int ecode5 = 0 ;
31593 int val6 ;
31594 int ecode6 = 0 ;
31595 bool val7 ;
31596 int ecode7 = 0 ;
31597 PyObject * obj0 = 0 ;
31598 PyObject * obj1 = 0 ;
31599 PyObject * obj2 = 0 ;
31600 PyObject * obj3 = 0 ;
31601 PyObject * obj4 = 0 ;
31602 PyObject * obj5 = 0 ;
31603 PyObject * obj6 = 0 ;
31604 char * kwnames[] = {
31605 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
31606 };
31607
31608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31610 if (!SWIG_IsOK(res1)) {
31611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
31612 }
31613 arg1 = reinterpret_cast< wxImageList * >(argp1);
31614 ecode2 = SWIG_AsVal_int(obj1, &val2);
31615 if (!SWIG_IsOK(ecode2)) {
31616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
31617 }
31618 arg2 = static_cast< int >(val2);
31619 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31620 if (!SWIG_IsOK(res3)) {
31621 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31622 }
31623 if (!argp3) {
31624 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31625 }
31626 arg3 = reinterpret_cast< wxDC * >(argp3);
31627 ecode4 = SWIG_AsVal_int(obj3, &val4);
31628 if (!SWIG_IsOK(ecode4)) {
31629 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
31630 }
31631 arg4 = static_cast< int >(val4);
31632 ecode5 = SWIG_AsVal_int(obj4, &val5);
31633 if (!SWIG_IsOK(ecode5)) {
31634 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
31635 }
31636 arg5 = static_cast< int >(val5);
31637 if (obj5) {
31638 ecode6 = SWIG_AsVal_int(obj5, &val6);
31639 if (!SWIG_IsOK(ecode6)) {
31640 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
31641 }
31642 arg6 = static_cast< int >(val6);
31643 }
31644 if (obj6) {
31645 ecode7 = SWIG_AsVal_bool(obj6, &val7);
31646 if (!SWIG_IsOK(ecode7)) {
31647 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
31648 }
31649 arg7 = static_cast< bool >(val7);
31650 }
31651 {
31652 PyThreadState* __tstate = wxPyBeginAllowThreads();
31653 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
31654 wxPyEndAllowThreads(__tstate);
31655 if (PyErr_Occurred()) SWIG_fail;
31656 }
31657 {
31658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31659 }
31660 return resultobj;
31661 fail:
31662 return NULL;
31663 }
31664
31665
31666 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31667 PyObject *resultobj = 0;
31668 wxImageList *arg1 = (wxImageList *) 0 ;
31669 int result;
31670 void *argp1 = 0 ;
31671 int res1 = 0 ;
31672 PyObject *swig_obj[1] ;
31673
31674 if (!args) SWIG_fail;
31675 swig_obj[0] = args;
31676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31677 if (!SWIG_IsOK(res1)) {
31678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
31679 }
31680 arg1 = reinterpret_cast< wxImageList * >(argp1);
31681 {
31682 PyThreadState* __tstate = wxPyBeginAllowThreads();
31683 result = (int)(arg1)->GetImageCount();
31684 wxPyEndAllowThreads(__tstate);
31685 if (PyErr_Occurred()) SWIG_fail;
31686 }
31687 resultobj = SWIG_From_int(static_cast< int >(result));
31688 return resultobj;
31689 fail:
31690 return NULL;
31691 }
31692
31693
31694 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31695 PyObject *resultobj = 0;
31696 wxImageList *arg1 = (wxImageList *) 0 ;
31697 int arg2 ;
31698 bool result;
31699 void *argp1 = 0 ;
31700 int res1 = 0 ;
31701 int val2 ;
31702 int ecode2 = 0 ;
31703 PyObject * obj0 = 0 ;
31704 PyObject * obj1 = 0 ;
31705 char * kwnames[] = {
31706 (char *) "self",(char *) "index", NULL
31707 };
31708
31709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
31710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31711 if (!SWIG_IsOK(res1)) {
31712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
31713 }
31714 arg1 = reinterpret_cast< wxImageList * >(argp1);
31715 ecode2 = SWIG_AsVal_int(obj1, &val2);
31716 if (!SWIG_IsOK(ecode2)) {
31717 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
31718 }
31719 arg2 = static_cast< int >(val2);
31720 {
31721 PyThreadState* __tstate = wxPyBeginAllowThreads();
31722 result = (bool)(arg1)->Remove(arg2);
31723 wxPyEndAllowThreads(__tstate);
31724 if (PyErr_Occurred()) SWIG_fail;
31725 }
31726 {
31727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31728 }
31729 return resultobj;
31730 fail:
31731 return NULL;
31732 }
31733
31734
31735 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31736 PyObject *resultobj = 0;
31737 wxImageList *arg1 = (wxImageList *) 0 ;
31738 bool result;
31739 void *argp1 = 0 ;
31740 int res1 = 0 ;
31741 PyObject *swig_obj[1] ;
31742
31743 if (!args) SWIG_fail;
31744 swig_obj[0] = args;
31745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31746 if (!SWIG_IsOK(res1)) {
31747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
31748 }
31749 arg1 = reinterpret_cast< wxImageList * >(argp1);
31750 {
31751 PyThreadState* __tstate = wxPyBeginAllowThreads();
31752 result = (bool)(arg1)->RemoveAll();
31753 wxPyEndAllowThreads(__tstate);
31754 if (PyErr_Occurred()) SWIG_fail;
31755 }
31756 {
31757 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31758 }
31759 return resultobj;
31760 fail:
31761 return NULL;
31762 }
31763
31764
31765 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31766 PyObject *resultobj = 0;
31767 wxImageList *arg1 = (wxImageList *) 0 ;
31768 int arg2 ;
31769 int *arg3 = 0 ;
31770 int *arg4 = 0 ;
31771 void *argp1 = 0 ;
31772 int res1 = 0 ;
31773 int val2 ;
31774 int ecode2 = 0 ;
31775 int temp3 ;
31776 int res3 = SWIG_TMPOBJ ;
31777 int temp4 ;
31778 int res4 = SWIG_TMPOBJ ;
31779 PyObject * obj0 = 0 ;
31780 PyObject * obj1 = 0 ;
31781 char * kwnames[] = {
31782 (char *) "self",(char *) "index", NULL
31783 };
31784
31785 arg3 = &temp3;
31786 arg4 = &temp4;
31787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
31788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31789 if (!SWIG_IsOK(res1)) {
31790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
31791 }
31792 arg1 = reinterpret_cast< wxImageList * >(argp1);
31793 ecode2 = SWIG_AsVal_int(obj1, &val2);
31794 if (!SWIG_IsOK(ecode2)) {
31795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
31796 }
31797 arg2 = static_cast< int >(val2);
31798 {
31799 PyThreadState* __tstate = wxPyBeginAllowThreads();
31800 (arg1)->GetSize(arg2,*arg3,*arg4);
31801 wxPyEndAllowThreads(__tstate);
31802 if (PyErr_Occurred()) SWIG_fail;
31803 }
31804 resultobj = SWIG_Py_Void();
31805 if (SWIG_IsTmpObj(res3)) {
31806 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31807 } else {
31808 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31809 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31810 }
31811 if (SWIG_IsTmpObj(res4)) {
31812 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
31813 } else {
31814 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31815 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
31816 }
31817 return resultobj;
31818 fail:
31819 return NULL;
31820 }
31821
31822
31823 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31824 PyObject *obj;
31825 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31826 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
31827 return SWIG_Py_Void();
31828 }
31829
31830 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31831 return SWIG_Python_InitShadowInstance(args);
31832 }
31833
31834 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31835 PyObject *resultobj = 0;
31836 wxStockGDI *result = 0 ;
31837
31838 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
31839 {
31840 PyThreadState* __tstate = wxPyBeginAllowThreads();
31841 result = (wxStockGDI *)new wxStockGDI();
31842 wxPyEndAllowThreads(__tstate);
31843 if (PyErr_Occurred()) SWIG_fail;
31844 }
31845 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
31846 return resultobj;
31847 fail:
31848 return NULL;
31849 }
31850
31851
31852 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31853 PyObject *resultobj = 0;
31854 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31855 void *argp1 = 0 ;
31856 int res1 = 0 ;
31857 PyObject *swig_obj[1] ;
31858
31859 if (!args) SWIG_fail;
31860 swig_obj[0] = args;
31861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
31862 if (!SWIG_IsOK(res1)) {
31863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31864 }
31865 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31866 {
31867 PyThreadState* __tstate = wxPyBeginAllowThreads();
31868 delete arg1;
31869
31870 wxPyEndAllowThreads(__tstate);
31871 if (PyErr_Occurred()) SWIG_fail;
31872 }
31873 resultobj = SWIG_Py_Void();
31874 return resultobj;
31875 fail:
31876 return NULL;
31877 }
31878
31879
31880 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31881 PyObject *resultobj = 0;
31882
31883 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
31884 {
31885 PyThreadState* __tstate = wxPyBeginAllowThreads();
31886 wxStockGDI::DeleteAll();
31887 wxPyEndAllowThreads(__tstate);
31888 if (PyErr_Occurred()) SWIG_fail;
31889 }
31890 resultobj = SWIG_Py_Void();
31891 return resultobj;
31892 fail:
31893 return NULL;
31894 }
31895
31896
31897 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31898 PyObject *resultobj = 0;
31899 wxStockGDI *result = 0 ;
31900
31901 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
31902 {
31903 PyThreadState* __tstate = wxPyBeginAllowThreads();
31904 {
31905 wxStockGDI &_result_ref = wxStockGDI::instance();
31906 result = (wxStockGDI *) &_result_ref;
31907 }
31908 wxPyEndAllowThreads(__tstate);
31909 if (PyErr_Occurred()) SWIG_fail;
31910 }
31911 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
31912 return resultobj;
31913 fail:
31914 return NULL;
31915 }
31916
31917
31918 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31919 PyObject *resultobj = 0;
31920 wxStockGDI::Item arg1 ;
31921 wxBrush *result = 0 ;
31922 int val1 ;
31923 int ecode1 = 0 ;
31924 PyObject * obj0 = 0 ;
31925 char * kwnames[] = {
31926 (char *) "item", NULL
31927 };
31928
31929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
31930 ecode1 = SWIG_AsVal_int(obj0, &val1);
31931 if (!SWIG_IsOK(ecode1)) {
31932 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31933 }
31934 arg1 = static_cast< wxStockGDI::Item >(val1);
31935 {
31936 PyThreadState* __tstate = wxPyBeginAllowThreads();
31937 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
31938 wxPyEndAllowThreads(__tstate);
31939 if (PyErr_Occurred()) SWIG_fail;
31940 }
31941 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
31942 return resultobj;
31943 fail:
31944 return NULL;
31945 }
31946
31947
31948 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31949 PyObject *resultobj = 0;
31950 wxStockGDI::Item arg1 ;
31951 wxColour *result = 0 ;
31952 int val1 ;
31953 int ecode1 = 0 ;
31954 PyObject * obj0 = 0 ;
31955 char * kwnames[] = {
31956 (char *) "item", NULL
31957 };
31958
31959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
31960 ecode1 = SWIG_AsVal_int(obj0, &val1);
31961 if (!SWIG_IsOK(ecode1)) {
31962 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31963 }
31964 arg1 = static_cast< wxStockGDI::Item >(val1);
31965 {
31966 PyThreadState* __tstate = wxPyBeginAllowThreads();
31967 result = (wxColour *)wxStockGDI::GetColour(arg1);
31968 wxPyEndAllowThreads(__tstate);
31969 if (PyErr_Occurred()) SWIG_fail;
31970 }
31971 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
31972 return resultobj;
31973 fail:
31974 return NULL;
31975 }
31976
31977
31978 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31979 PyObject *resultobj = 0;
31980 wxStockGDI::Item arg1 ;
31981 wxCursor *result = 0 ;
31982 int val1 ;
31983 int ecode1 = 0 ;
31984 PyObject * obj0 = 0 ;
31985 char * kwnames[] = {
31986 (char *) "item", NULL
31987 };
31988
31989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
31990 ecode1 = SWIG_AsVal_int(obj0, &val1);
31991 if (!SWIG_IsOK(ecode1)) {
31992 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31993 }
31994 arg1 = static_cast< wxStockGDI::Item >(val1);
31995 {
31996 PyThreadState* __tstate = wxPyBeginAllowThreads();
31997 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
31998 wxPyEndAllowThreads(__tstate);
31999 if (PyErr_Occurred()) SWIG_fail;
32000 }
32001 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
32002 return resultobj;
32003 fail:
32004 return NULL;
32005 }
32006
32007
32008 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32009 PyObject *resultobj = 0;
32010 wxStockGDI::Item arg1 ;
32011 wxPen *result = 0 ;
32012 int val1 ;
32013 int ecode1 = 0 ;
32014 PyObject * obj0 = 0 ;
32015 char * kwnames[] = {
32016 (char *) "item", NULL
32017 };
32018
32019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
32020 ecode1 = SWIG_AsVal_int(obj0, &val1);
32021 if (!SWIG_IsOK(ecode1)) {
32022 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32023 }
32024 arg1 = static_cast< wxStockGDI::Item >(val1);
32025 {
32026 PyThreadState* __tstate = wxPyBeginAllowThreads();
32027 result = (wxPen *)wxStockGDI::GetPen(arg1);
32028 wxPyEndAllowThreads(__tstate);
32029 if (PyErr_Occurred()) SWIG_fail;
32030 }
32031 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32032 return resultobj;
32033 fail:
32034 return NULL;
32035 }
32036
32037
32038 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32039 PyObject *resultobj = 0;
32040 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
32041 wxStockGDI::Item arg2 ;
32042 wxFont *result = 0 ;
32043 void *argp1 = 0 ;
32044 int res1 = 0 ;
32045 int val2 ;
32046 int ecode2 = 0 ;
32047 PyObject * obj0 = 0 ;
32048 PyObject * obj1 = 0 ;
32049 char * kwnames[] = {
32050 (char *) "self",(char *) "item", NULL
32051 };
32052
32053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
32054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
32055 if (!SWIG_IsOK(res1)) {
32056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32057 }
32058 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32059 ecode2 = SWIG_AsVal_int(obj1, &val2);
32060 if (!SWIG_IsOK(ecode2)) {
32061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
32062 }
32063 arg2 = static_cast< wxStockGDI::Item >(val2);
32064 {
32065 PyThreadState* __tstate = wxPyBeginAllowThreads();
32066 result = (wxFont *)(arg1)->GetFont(arg2);
32067 wxPyEndAllowThreads(__tstate);
32068 if (PyErr_Occurred()) SWIG_fail;
32069 }
32070 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32071 return resultobj;
32072 fail:
32073 return NULL;
32074 }
32075
32076
32077 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32078 PyObject *obj;
32079 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32080 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
32081 return SWIG_Py_Void();
32082 }
32083
32084 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32085 return SWIG_Python_InitShadowInstance(args);
32086 }
32087
32088 SWIGINTERN int NullBitmap_set(PyObject *) {
32089 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
32090 return 1;
32091 }
32092
32093
32094 SWIGINTERN PyObject *NullBitmap_get(void) {
32095 PyObject *pyobj = 0;
32096
32097 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
32098 return pyobj;
32099 }
32100
32101
32102 SWIGINTERN int NullIcon_set(PyObject *) {
32103 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
32104 return 1;
32105 }
32106
32107
32108 SWIGINTERN PyObject *NullIcon_get(void) {
32109 PyObject *pyobj = 0;
32110
32111 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
32112 return pyobj;
32113 }
32114
32115
32116 SWIGINTERN int NullCursor_set(PyObject *) {
32117 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
32118 return 1;
32119 }
32120
32121
32122 SWIGINTERN PyObject *NullCursor_get(void) {
32123 PyObject *pyobj = 0;
32124
32125 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
32126 return pyobj;
32127 }
32128
32129
32130 SWIGINTERN int NullPen_set(PyObject *) {
32131 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
32132 return 1;
32133 }
32134
32135
32136 SWIGINTERN PyObject *NullPen_get(void) {
32137 PyObject *pyobj = 0;
32138
32139 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
32140 return pyobj;
32141 }
32142
32143
32144 SWIGINTERN int NullBrush_set(PyObject *) {
32145 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
32146 return 1;
32147 }
32148
32149
32150 SWIGINTERN PyObject *NullBrush_get(void) {
32151 PyObject *pyobj = 0;
32152
32153 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
32154 return pyobj;
32155 }
32156
32157
32158 SWIGINTERN int NullPalette_set(PyObject *) {
32159 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
32160 return 1;
32161 }
32162
32163
32164 SWIGINTERN PyObject *NullPalette_get(void) {
32165 PyObject *pyobj = 0;
32166
32167 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
32168 return pyobj;
32169 }
32170
32171
32172 SWIGINTERN int NullFont_set(PyObject *) {
32173 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
32174 return 1;
32175 }
32176
32177
32178 SWIGINTERN PyObject *NullFont_get(void) {
32179 PyObject *pyobj = 0;
32180
32181 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
32182 return pyobj;
32183 }
32184
32185
32186 SWIGINTERN int NullColour_set(PyObject *) {
32187 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
32188 return 1;
32189 }
32190
32191
32192 SWIGINTERN PyObject *NullColour_get(void) {
32193 PyObject *pyobj = 0;
32194
32195 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
32196 return pyobj;
32197 }
32198
32199
32200 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32201 PyObject *resultobj = 0;
32202 wxGDIObjListBase *result = 0 ;
32203
32204 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
32205 {
32206 PyThreadState* __tstate = wxPyBeginAllowThreads();
32207 result = (wxGDIObjListBase *)new wxGDIObjListBase();
32208 wxPyEndAllowThreads(__tstate);
32209 if (PyErr_Occurred()) SWIG_fail;
32210 }
32211 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
32212 return resultobj;
32213 fail:
32214 return NULL;
32215 }
32216
32217
32218 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32219 PyObject *resultobj = 0;
32220 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
32221 void *argp1 = 0 ;
32222 int res1 = 0 ;
32223 PyObject *swig_obj[1] ;
32224
32225 if (!args) SWIG_fail;
32226 swig_obj[0] = args;
32227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
32228 if (!SWIG_IsOK(res1)) {
32229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
32230 }
32231 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
32232 {
32233 PyThreadState* __tstate = wxPyBeginAllowThreads();
32234 delete arg1;
32235
32236 wxPyEndAllowThreads(__tstate);
32237 if (PyErr_Occurred()) SWIG_fail;
32238 }
32239 resultobj = SWIG_Py_Void();
32240 return resultobj;
32241 fail:
32242 return NULL;
32243 }
32244
32245
32246 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32247 PyObject *obj;
32248 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32249 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
32250 return SWIG_Py_Void();
32251 }
32252
32253 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32254 return SWIG_Python_InitShadowInstance(args);
32255 }
32256
32257 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32258 PyObject *resultobj = 0;
32259 wxPenList *arg1 = (wxPenList *) 0 ;
32260 wxColour *arg2 = 0 ;
32261 int arg3 ;
32262 int arg4 ;
32263 wxPen *result = 0 ;
32264 void *argp1 = 0 ;
32265 int res1 = 0 ;
32266 wxColour temp2 ;
32267 int val3 ;
32268 int ecode3 = 0 ;
32269 int val4 ;
32270 int ecode4 = 0 ;
32271 PyObject * obj0 = 0 ;
32272 PyObject * obj1 = 0 ;
32273 PyObject * obj2 = 0 ;
32274 PyObject * obj3 = 0 ;
32275 char * kwnames[] = {
32276 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
32277 };
32278
32279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32281 if (!SWIG_IsOK(res1)) {
32282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
32283 }
32284 arg1 = reinterpret_cast< wxPenList * >(argp1);
32285 {
32286 arg2 = &temp2;
32287 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32288 }
32289 ecode3 = SWIG_AsVal_int(obj2, &val3);
32290 if (!SWIG_IsOK(ecode3)) {
32291 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
32292 }
32293 arg3 = static_cast< int >(val3);
32294 ecode4 = SWIG_AsVal_int(obj3, &val4);
32295 if (!SWIG_IsOK(ecode4)) {
32296 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
32297 }
32298 arg4 = static_cast< int >(val4);
32299 {
32300 PyThreadState* __tstate = wxPyBeginAllowThreads();
32301 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
32302 wxPyEndAllowThreads(__tstate);
32303 if (PyErr_Occurred()) SWIG_fail;
32304 }
32305 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32306 return resultobj;
32307 fail:
32308 return NULL;
32309 }
32310
32311
32312 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32313 PyObject *resultobj = 0;
32314 wxPenList *arg1 = (wxPenList *) 0 ;
32315 wxPen *arg2 = (wxPen *) 0 ;
32316 void *argp1 = 0 ;
32317 int res1 = 0 ;
32318 void *argp2 = 0 ;
32319 int res2 = 0 ;
32320 PyObject * obj0 = 0 ;
32321 PyObject * obj1 = 0 ;
32322 char * kwnames[] = {
32323 (char *) "self",(char *) "pen", NULL
32324 };
32325
32326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
32327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32328 if (!SWIG_IsOK(res1)) {
32329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
32330 }
32331 arg1 = reinterpret_cast< wxPenList * >(argp1);
32332 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32333 if (!SWIG_IsOK(res2)) {
32334 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
32335 }
32336 arg2 = reinterpret_cast< wxPen * >(argp2);
32337 {
32338 PyThreadState* __tstate = wxPyBeginAllowThreads();
32339 (arg1)->AddPen(arg2);
32340 wxPyEndAllowThreads(__tstate);
32341 if (PyErr_Occurred()) SWIG_fail;
32342 }
32343 resultobj = SWIG_Py_Void();
32344 return resultobj;
32345 fail:
32346 return NULL;
32347 }
32348
32349
32350 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32351 PyObject *resultobj = 0;
32352 wxPenList *arg1 = (wxPenList *) 0 ;
32353 wxPen *arg2 = (wxPen *) 0 ;
32354 void *argp1 = 0 ;
32355 int res1 = 0 ;
32356 void *argp2 = 0 ;
32357 int res2 = 0 ;
32358 PyObject * obj0 = 0 ;
32359 PyObject * obj1 = 0 ;
32360 char * kwnames[] = {
32361 (char *) "self",(char *) "pen", NULL
32362 };
32363
32364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
32365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32366 if (!SWIG_IsOK(res1)) {
32367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
32368 }
32369 arg1 = reinterpret_cast< wxPenList * >(argp1);
32370 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32371 if (!SWIG_IsOK(res2)) {
32372 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
32373 }
32374 arg2 = reinterpret_cast< wxPen * >(argp2);
32375 {
32376 PyThreadState* __tstate = wxPyBeginAllowThreads();
32377 (arg1)->RemovePen(arg2);
32378 wxPyEndAllowThreads(__tstate);
32379 if (PyErr_Occurred()) SWIG_fail;
32380 }
32381 resultobj = SWIG_Py_Void();
32382 return resultobj;
32383 fail:
32384 return NULL;
32385 }
32386
32387
32388 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32389 PyObject *obj;
32390 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32391 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
32392 return SWIG_Py_Void();
32393 }
32394
32395 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32396 PyObject *resultobj = 0;
32397 wxBrushList *arg1 = (wxBrushList *) 0 ;
32398 wxColour *arg2 = 0 ;
32399 int arg3 = (int) wxSOLID ;
32400 wxBrush *result = 0 ;
32401 void *argp1 = 0 ;
32402 int res1 = 0 ;
32403 wxColour temp2 ;
32404 int val3 ;
32405 int ecode3 = 0 ;
32406 PyObject * obj0 = 0 ;
32407 PyObject * obj1 = 0 ;
32408 PyObject * obj2 = 0 ;
32409 char * kwnames[] = {
32410 (char *) "self",(char *) "colour",(char *) "style", NULL
32411 };
32412
32413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32415 if (!SWIG_IsOK(res1)) {
32416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32417 }
32418 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32419 {
32420 arg2 = &temp2;
32421 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32422 }
32423 if (obj2) {
32424 ecode3 = SWIG_AsVal_int(obj2, &val3);
32425 if (!SWIG_IsOK(ecode3)) {
32426 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
32427 }
32428 arg3 = static_cast< int >(val3);
32429 }
32430 {
32431 PyThreadState* __tstate = wxPyBeginAllowThreads();
32432 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
32433 wxPyEndAllowThreads(__tstate);
32434 if (PyErr_Occurred()) SWIG_fail;
32435 }
32436 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32437 return resultobj;
32438 fail:
32439 return NULL;
32440 }
32441
32442
32443 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32444 PyObject *resultobj = 0;
32445 wxBrushList *arg1 = (wxBrushList *) 0 ;
32446 wxBrush *arg2 = (wxBrush *) 0 ;
32447 void *argp1 = 0 ;
32448 int res1 = 0 ;
32449 void *argp2 = 0 ;
32450 int res2 = 0 ;
32451 PyObject * obj0 = 0 ;
32452 PyObject * obj1 = 0 ;
32453 char * kwnames[] = {
32454 (char *) "self",(char *) "brush", NULL
32455 };
32456
32457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32459 if (!SWIG_IsOK(res1)) {
32460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32461 }
32462 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32463 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32464 if (!SWIG_IsOK(res2)) {
32465 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32466 }
32467 arg2 = reinterpret_cast< wxBrush * >(argp2);
32468 {
32469 PyThreadState* __tstate = wxPyBeginAllowThreads();
32470 (arg1)->AddBrush(arg2);
32471 wxPyEndAllowThreads(__tstate);
32472 if (PyErr_Occurred()) SWIG_fail;
32473 }
32474 resultobj = SWIG_Py_Void();
32475 return resultobj;
32476 fail:
32477 return NULL;
32478 }
32479
32480
32481 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32482 PyObject *resultobj = 0;
32483 wxBrushList *arg1 = (wxBrushList *) 0 ;
32484 wxBrush *arg2 = (wxBrush *) 0 ;
32485 void *argp1 = 0 ;
32486 int res1 = 0 ;
32487 void *argp2 = 0 ;
32488 int res2 = 0 ;
32489 PyObject * obj0 = 0 ;
32490 PyObject * obj1 = 0 ;
32491 char * kwnames[] = {
32492 (char *) "self",(char *) "brush", NULL
32493 };
32494
32495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32497 if (!SWIG_IsOK(res1)) {
32498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32499 }
32500 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32501 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32502 if (!SWIG_IsOK(res2)) {
32503 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32504 }
32505 arg2 = reinterpret_cast< wxBrush * >(argp2);
32506 {
32507 PyThreadState* __tstate = wxPyBeginAllowThreads();
32508 (arg1)->RemoveBrush(arg2);
32509 wxPyEndAllowThreads(__tstate);
32510 if (PyErr_Occurred()) SWIG_fail;
32511 }
32512 resultobj = SWIG_Py_Void();
32513 return resultobj;
32514 fail:
32515 return NULL;
32516 }
32517
32518
32519 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32520 PyObject *obj;
32521 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32522 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
32523 return SWIG_Py_Void();
32524 }
32525
32526 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32527 PyObject *resultobj = 0;
32528 wxFontList *arg1 = (wxFontList *) 0 ;
32529 int arg2 ;
32530 int arg3 ;
32531 int arg4 ;
32532 int arg5 ;
32533 bool arg6 = (bool) false ;
32534 wxString const &arg7_defvalue = wxPyEmptyString ;
32535 wxString *arg7 = (wxString *) &arg7_defvalue ;
32536 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
32537 wxFont *result = 0 ;
32538 void *argp1 = 0 ;
32539 int res1 = 0 ;
32540 int val2 ;
32541 int ecode2 = 0 ;
32542 int val3 ;
32543 int ecode3 = 0 ;
32544 int val4 ;
32545 int ecode4 = 0 ;
32546 int val5 ;
32547 int ecode5 = 0 ;
32548 bool val6 ;
32549 int ecode6 = 0 ;
32550 bool temp7 = false ;
32551 int val8 ;
32552 int ecode8 = 0 ;
32553 PyObject * obj0 = 0 ;
32554 PyObject * obj1 = 0 ;
32555 PyObject * obj2 = 0 ;
32556 PyObject * obj3 = 0 ;
32557 PyObject * obj4 = 0 ;
32558 PyObject * obj5 = 0 ;
32559 PyObject * obj6 = 0 ;
32560 PyObject * obj7 = 0 ;
32561 char * kwnames[] = {
32562 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
32563 };
32564
32565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
32567 if (!SWIG_IsOK(res1)) {
32568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
32569 }
32570 arg1 = reinterpret_cast< wxFontList * >(argp1);
32571 ecode2 = SWIG_AsVal_int(obj1, &val2);
32572 if (!SWIG_IsOK(ecode2)) {
32573 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
32574 }
32575 arg2 = static_cast< int >(val2);
32576 ecode3 = SWIG_AsVal_int(obj2, &val3);
32577 if (!SWIG_IsOK(ecode3)) {
32578 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
32579 }
32580 arg3 = static_cast< int >(val3);
32581 ecode4 = SWIG_AsVal_int(obj3, &val4);
32582 if (!SWIG_IsOK(ecode4)) {
32583 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
32584 }
32585 arg4 = static_cast< int >(val4);
32586 ecode5 = SWIG_AsVal_int(obj4, &val5);
32587 if (!SWIG_IsOK(ecode5)) {
32588 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
32589 }
32590 arg5 = static_cast< int >(val5);
32591 if (obj5) {
32592 ecode6 = SWIG_AsVal_bool(obj5, &val6);
32593 if (!SWIG_IsOK(ecode6)) {
32594 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
32595 }
32596 arg6 = static_cast< bool >(val6);
32597 }
32598 if (obj6) {
32599 {
32600 arg7 = wxString_in_helper(obj6);
32601 if (arg7 == NULL) SWIG_fail;
32602 temp7 = true;
32603 }
32604 }
32605 if (obj7) {
32606 ecode8 = SWIG_AsVal_int(obj7, &val8);
32607 if (!SWIG_IsOK(ecode8)) {
32608 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
32609 }
32610 arg8 = static_cast< wxFontEncoding >(val8);
32611 }
32612 {
32613 PyThreadState* __tstate = wxPyBeginAllowThreads();
32614 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
32615 wxPyEndAllowThreads(__tstate);
32616 if (PyErr_Occurred()) SWIG_fail;
32617 }
32618 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32619 {
32620 if (temp7)
32621 delete arg7;
32622 }
32623 return resultobj;
32624 fail:
32625 {
32626 if (temp7)
32627 delete arg7;
32628 }
32629 return NULL;
32630 }
32631
32632
32633 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32634 PyObject *resultobj = 0;
32635 wxFontList *arg1 = (wxFontList *) 0 ;
32636 wxFont *arg2 = (wxFont *) 0 ;
32637 void *argp1 = 0 ;
32638 int res1 = 0 ;
32639 void *argp2 = 0 ;
32640 int res2 = 0 ;
32641 PyObject * obj0 = 0 ;
32642 PyObject * obj1 = 0 ;
32643 char * kwnames[] = {
32644 (char *) "self",(char *) "font", NULL
32645 };
32646
32647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
32648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
32649 if (!SWIG_IsOK(res1)) {
32650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
32651 }
32652 arg1 = reinterpret_cast< wxFontList * >(argp1);
32653 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
32654 if (!SWIG_IsOK(res2)) {
32655 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
32656 }
32657 arg2 = reinterpret_cast< wxFont * >(argp2);
32658 {
32659 PyThreadState* __tstate = wxPyBeginAllowThreads();
32660 (arg1)->AddFont(arg2);
32661 wxPyEndAllowThreads(__tstate);
32662 if (PyErr_Occurred()) SWIG_fail;
32663 }
32664 resultobj = SWIG_Py_Void();
32665 return resultobj;
32666 fail:
32667 return NULL;
32668 }
32669
32670
32671 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32672 PyObject *resultobj = 0;
32673 wxFontList *arg1 = (wxFontList *) 0 ;
32674 wxFont *arg2 = (wxFont *) 0 ;
32675 void *argp1 = 0 ;
32676 int res1 = 0 ;
32677 void *argp2 = 0 ;
32678 int res2 = 0 ;
32679 PyObject * obj0 = 0 ;
32680 PyObject * obj1 = 0 ;
32681 char * kwnames[] = {
32682 (char *) "self",(char *) "font", NULL
32683 };
32684
32685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
32686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
32687 if (!SWIG_IsOK(res1)) {
32688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
32689 }
32690 arg1 = reinterpret_cast< wxFontList * >(argp1);
32691 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
32692 if (!SWIG_IsOK(res2)) {
32693 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
32694 }
32695 arg2 = reinterpret_cast< wxFont * >(argp2);
32696 {
32697 PyThreadState* __tstate = wxPyBeginAllowThreads();
32698 (arg1)->RemoveFont(arg2);
32699 wxPyEndAllowThreads(__tstate);
32700 if (PyErr_Occurred()) SWIG_fail;
32701 }
32702 resultobj = SWIG_Py_Void();
32703 return resultobj;
32704 fail:
32705 return NULL;
32706 }
32707
32708
32709 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32710 PyObject *obj;
32711 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32712 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
32713 return SWIG_Py_Void();
32714 }
32715
32716 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32717 PyObject *resultobj = 0;
32718 wxColourDatabase *result = 0 ;
32719
32720 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
32721 {
32722 if (!wxPyCheckForApp()) SWIG_fail;
32723 PyThreadState* __tstate = wxPyBeginAllowThreads();
32724 result = (wxColourDatabase *)new wxColourDatabase();
32725 wxPyEndAllowThreads(__tstate);
32726 if (PyErr_Occurred()) SWIG_fail;
32727 }
32728 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
32729 return resultobj;
32730 fail:
32731 return NULL;
32732 }
32733
32734
32735 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32736 PyObject *resultobj = 0;
32737 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32738 void *argp1 = 0 ;
32739 int res1 = 0 ;
32740 PyObject *swig_obj[1] ;
32741
32742 if (!args) SWIG_fail;
32743 swig_obj[0] = args;
32744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
32745 if (!SWIG_IsOK(res1)) {
32746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32747 }
32748 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32749 {
32750 PyThreadState* __tstate = wxPyBeginAllowThreads();
32751 delete arg1;
32752
32753 wxPyEndAllowThreads(__tstate);
32754 if (PyErr_Occurred()) SWIG_fail;
32755 }
32756 resultobj = SWIG_Py_Void();
32757 return resultobj;
32758 fail:
32759 return NULL;
32760 }
32761
32762
32763 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32764 PyObject *resultobj = 0;
32765 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32766 wxString *arg2 = 0 ;
32767 wxColour result;
32768 void *argp1 = 0 ;
32769 int res1 = 0 ;
32770 bool temp2 = false ;
32771 PyObject * obj0 = 0 ;
32772 PyObject * obj1 = 0 ;
32773 char * kwnames[] = {
32774 (char *) "self",(char *) "name", NULL
32775 };
32776
32777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
32778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32779 if (!SWIG_IsOK(res1)) {
32780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32781 }
32782 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32783 {
32784 arg2 = wxString_in_helper(obj1);
32785 if (arg2 == NULL) SWIG_fail;
32786 temp2 = true;
32787 }
32788 {
32789 PyThreadState* __tstate = wxPyBeginAllowThreads();
32790 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
32791 wxPyEndAllowThreads(__tstate);
32792 if (PyErr_Occurred()) SWIG_fail;
32793 }
32794 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32795 {
32796 if (temp2)
32797 delete arg2;
32798 }
32799 return resultobj;
32800 fail:
32801 {
32802 if (temp2)
32803 delete arg2;
32804 }
32805 return NULL;
32806 }
32807
32808
32809 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32810 PyObject *resultobj = 0;
32811 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32812 wxColour *arg2 = 0 ;
32813 wxString result;
32814 void *argp1 = 0 ;
32815 int res1 = 0 ;
32816 wxColour temp2 ;
32817 PyObject * obj0 = 0 ;
32818 PyObject * obj1 = 0 ;
32819 char * kwnames[] = {
32820 (char *) "self",(char *) "colour", NULL
32821 };
32822
32823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
32824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32825 if (!SWIG_IsOK(res1)) {
32826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32827 }
32828 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32829 {
32830 arg2 = &temp2;
32831 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32832 }
32833 {
32834 PyThreadState* __tstate = wxPyBeginAllowThreads();
32835 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
32836 wxPyEndAllowThreads(__tstate);
32837 if (PyErr_Occurred()) SWIG_fail;
32838 }
32839 {
32840 #if wxUSE_UNICODE
32841 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32842 #else
32843 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32844 #endif
32845 }
32846 return resultobj;
32847 fail:
32848 return NULL;
32849 }
32850
32851
32852 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32853 PyObject *resultobj = 0;
32854 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32855 wxString *arg2 = 0 ;
32856 wxColour *arg3 = 0 ;
32857 void *argp1 = 0 ;
32858 int res1 = 0 ;
32859 bool temp2 = false ;
32860 wxColour temp3 ;
32861 PyObject * obj0 = 0 ;
32862 PyObject * obj1 = 0 ;
32863 PyObject * obj2 = 0 ;
32864 char * kwnames[] = {
32865 (char *) "self",(char *) "name",(char *) "colour", NULL
32866 };
32867
32868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32870 if (!SWIG_IsOK(res1)) {
32871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32872 }
32873 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32874 {
32875 arg2 = wxString_in_helper(obj1);
32876 if (arg2 == NULL) SWIG_fail;
32877 temp2 = true;
32878 }
32879 {
32880 arg3 = &temp3;
32881 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32882 }
32883 {
32884 PyThreadState* __tstate = wxPyBeginAllowThreads();
32885 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
32886 wxPyEndAllowThreads(__tstate);
32887 if (PyErr_Occurred()) SWIG_fail;
32888 }
32889 resultobj = SWIG_Py_Void();
32890 {
32891 if (temp2)
32892 delete arg2;
32893 }
32894 return resultobj;
32895 fail:
32896 {
32897 if (temp2)
32898 delete arg2;
32899 }
32900 return NULL;
32901 }
32902
32903
32904 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32905 PyObject *resultobj = 0;
32906 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32907 wxString *arg2 = 0 ;
32908 int arg3 ;
32909 int arg4 ;
32910 int arg5 ;
32911 void *argp1 = 0 ;
32912 int res1 = 0 ;
32913 bool temp2 = false ;
32914 int val3 ;
32915 int ecode3 = 0 ;
32916 int val4 ;
32917 int ecode4 = 0 ;
32918 int val5 ;
32919 int ecode5 = 0 ;
32920 PyObject * obj0 = 0 ;
32921 PyObject * obj1 = 0 ;
32922 PyObject * obj2 = 0 ;
32923 PyObject * obj3 = 0 ;
32924 PyObject * obj4 = 0 ;
32925 char * kwnames[] = {
32926 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
32927 };
32928
32929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32931 if (!SWIG_IsOK(res1)) {
32932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32933 }
32934 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32935 {
32936 arg2 = wxString_in_helper(obj1);
32937 if (arg2 == NULL) SWIG_fail;
32938 temp2 = true;
32939 }
32940 ecode3 = SWIG_AsVal_int(obj2, &val3);
32941 if (!SWIG_IsOK(ecode3)) {
32942 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
32943 }
32944 arg3 = static_cast< int >(val3);
32945 ecode4 = SWIG_AsVal_int(obj3, &val4);
32946 if (!SWIG_IsOK(ecode4)) {
32947 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
32948 }
32949 arg4 = static_cast< int >(val4);
32950 ecode5 = SWIG_AsVal_int(obj4, &val5);
32951 if (!SWIG_IsOK(ecode5)) {
32952 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
32953 }
32954 arg5 = static_cast< int >(val5);
32955 {
32956 PyThreadState* __tstate = wxPyBeginAllowThreads();
32957 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
32958 wxPyEndAllowThreads(__tstate);
32959 if (PyErr_Occurred()) SWIG_fail;
32960 }
32961 resultobj = SWIG_Py_Void();
32962 {
32963 if (temp2)
32964 delete arg2;
32965 }
32966 return resultobj;
32967 fail:
32968 {
32969 if (temp2)
32970 delete arg2;
32971 }
32972 return NULL;
32973 }
32974
32975
32976 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32977 PyObject *obj;
32978 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32979 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
32980 return SWIG_Py_Void();
32981 }
32982
32983 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32984 return SWIG_Python_InitShadowInstance(args);
32985 }
32986
32987 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32988 PyObject *resultobj = 0;
32989 wxFontList *result = 0 ;
32990
32991 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
32992 {
32993 PyThreadState* __tstate = wxPyBeginAllowThreads();
32994 result = (wxFontList *)_wxPyInitTheFontList();
32995 wxPyEndAllowThreads(__tstate);
32996 if (PyErr_Occurred()) SWIG_fail;
32997 }
32998 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
32999 return resultobj;
33000 fail:
33001 return NULL;
33002 }
33003
33004
33005 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33006 PyObject *resultobj = 0;
33007 wxPenList *result = 0 ;
33008
33009 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
33010 {
33011 PyThreadState* __tstate = wxPyBeginAllowThreads();
33012 result = (wxPenList *)_wxPyInitThePenList();
33013 wxPyEndAllowThreads(__tstate);
33014 if (PyErr_Occurred()) SWIG_fail;
33015 }
33016 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
33017 return resultobj;
33018 fail:
33019 return NULL;
33020 }
33021
33022
33023 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33024 PyObject *resultobj = 0;
33025 wxBrushList *result = 0 ;
33026
33027 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
33028 {
33029 PyThreadState* __tstate = wxPyBeginAllowThreads();
33030 result = (wxBrushList *)_wxPyInitTheBrushList();
33031 wxPyEndAllowThreads(__tstate);
33032 if (PyErr_Occurred()) SWIG_fail;
33033 }
33034 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
33035 return resultobj;
33036 fail:
33037 return NULL;
33038 }
33039
33040
33041 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33042 PyObject *resultobj = 0;
33043 wxColourDatabase *result = 0 ;
33044
33045 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
33046 {
33047 PyThreadState* __tstate = wxPyBeginAllowThreads();
33048 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
33049 wxPyEndAllowThreads(__tstate);
33050 if (PyErr_Occurred()) SWIG_fail;
33051 }
33052 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33053 return resultobj;
33054 fail:
33055 return NULL;
33056 }
33057
33058
33059 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33060 PyObject *resultobj = 0;
33061 wxEffects *result = 0 ;
33062
33063 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
33064 {
33065 PyThreadState* __tstate = wxPyBeginAllowThreads();
33066 result = (wxEffects *)new wxEffects();
33067 wxPyEndAllowThreads(__tstate);
33068 if (PyErr_Occurred()) SWIG_fail;
33069 }
33070 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
33071 return resultobj;
33072 fail:
33073 return NULL;
33074 }
33075
33076
33077 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33078 PyObject *resultobj = 0;
33079 wxEffects *arg1 = (wxEffects *) 0 ;
33080 wxColour result;
33081 void *argp1 = 0 ;
33082 int res1 = 0 ;
33083 PyObject *swig_obj[1] ;
33084
33085 if (!args) SWIG_fail;
33086 swig_obj[0] = args;
33087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33088 if (!SWIG_IsOK(res1)) {
33089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33090 }
33091 arg1 = reinterpret_cast< wxEffects * >(argp1);
33092 {
33093 PyThreadState* __tstate = wxPyBeginAllowThreads();
33094 result = ((wxEffects const *)arg1)->GetHighlightColour();
33095 wxPyEndAllowThreads(__tstate);
33096 if (PyErr_Occurred()) SWIG_fail;
33097 }
33098 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33099 return resultobj;
33100 fail:
33101 return NULL;
33102 }
33103
33104
33105 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33106 PyObject *resultobj = 0;
33107 wxEffects *arg1 = (wxEffects *) 0 ;
33108 wxColour result;
33109 void *argp1 = 0 ;
33110 int res1 = 0 ;
33111 PyObject *swig_obj[1] ;
33112
33113 if (!args) SWIG_fail;
33114 swig_obj[0] = args;
33115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33116 if (!SWIG_IsOK(res1)) {
33117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33118 }
33119 arg1 = reinterpret_cast< wxEffects * >(argp1);
33120 {
33121 PyThreadState* __tstate = wxPyBeginAllowThreads();
33122 result = ((wxEffects const *)arg1)->GetLightShadow();
33123 wxPyEndAllowThreads(__tstate);
33124 if (PyErr_Occurred()) SWIG_fail;
33125 }
33126 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33127 return resultobj;
33128 fail:
33129 return NULL;
33130 }
33131
33132
33133 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33134 PyObject *resultobj = 0;
33135 wxEffects *arg1 = (wxEffects *) 0 ;
33136 wxColour result;
33137 void *argp1 = 0 ;
33138 int res1 = 0 ;
33139 PyObject *swig_obj[1] ;
33140
33141 if (!args) SWIG_fail;
33142 swig_obj[0] = args;
33143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33144 if (!SWIG_IsOK(res1)) {
33145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33146 }
33147 arg1 = reinterpret_cast< wxEffects * >(argp1);
33148 {
33149 PyThreadState* __tstate = wxPyBeginAllowThreads();
33150 result = ((wxEffects const *)arg1)->GetFaceColour();
33151 wxPyEndAllowThreads(__tstate);
33152 if (PyErr_Occurred()) SWIG_fail;
33153 }
33154 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33155 return resultobj;
33156 fail:
33157 return NULL;
33158 }
33159
33160
33161 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33162 PyObject *resultobj = 0;
33163 wxEffects *arg1 = (wxEffects *) 0 ;
33164 wxColour result;
33165 void *argp1 = 0 ;
33166 int res1 = 0 ;
33167 PyObject *swig_obj[1] ;
33168
33169 if (!args) SWIG_fail;
33170 swig_obj[0] = args;
33171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33172 if (!SWIG_IsOK(res1)) {
33173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33174 }
33175 arg1 = reinterpret_cast< wxEffects * >(argp1);
33176 {
33177 PyThreadState* __tstate = wxPyBeginAllowThreads();
33178 result = ((wxEffects const *)arg1)->GetMediumShadow();
33179 wxPyEndAllowThreads(__tstate);
33180 if (PyErr_Occurred()) SWIG_fail;
33181 }
33182 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33183 return resultobj;
33184 fail:
33185 return NULL;
33186 }
33187
33188
33189 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33190 PyObject *resultobj = 0;
33191 wxEffects *arg1 = (wxEffects *) 0 ;
33192 wxColour 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_wxEffects, 0 | 0 );
33200 if (!SWIG_IsOK(res1)) {
33201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33202 }
33203 arg1 = reinterpret_cast< wxEffects * >(argp1);
33204 {
33205 PyThreadState* __tstate = wxPyBeginAllowThreads();
33206 result = ((wxEffects const *)arg1)->GetDarkShadow();
33207 wxPyEndAllowThreads(__tstate);
33208 if (PyErr_Occurred()) SWIG_fail;
33209 }
33210 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33211 return resultobj;
33212 fail:
33213 return NULL;
33214 }
33215
33216
33217 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33218 PyObject *resultobj = 0;
33219 wxEffects *arg1 = (wxEffects *) 0 ;
33220 wxColour *arg2 = 0 ;
33221 void *argp1 = 0 ;
33222 int res1 = 0 ;
33223 wxColour temp2 ;
33224 PyObject * obj0 = 0 ;
33225 PyObject * obj1 = 0 ;
33226 char * kwnames[] = {
33227 (char *) "self",(char *) "c", NULL
33228 };
33229
33230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
33231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33232 if (!SWIG_IsOK(res1)) {
33233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33234 }
33235 arg1 = reinterpret_cast< wxEffects * >(argp1);
33236 {
33237 arg2 = &temp2;
33238 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33239 }
33240 {
33241 PyThreadState* __tstate = wxPyBeginAllowThreads();
33242 (arg1)->SetHighlightColour((wxColour const &)*arg2);
33243 wxPyEndAllowThreads(__tstate);
33244 if (PyErr_Occurred()) SWIG_fail;
33245 }
33246 resultobj = SWIG_Py_Void();
33247 return resultobj;
33248 fail:
33249 return NULL;
33250 }
33251
33252
33253 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33254 PyObject *resultobj = 0;
33255 wxEffects *arg1 = (wxEffects *) 0 ;
33256 wxColour *arg2 = 0 ;
33257 void *argp1 = 0 ;
33258 int res1 = 0 ;
33259 wxColour temp2 ;
33260 PyObject * obj0 = 0 ;
33261 PyObject * obj1 = 0 ;
33262 char * kwnames[] = {
33263 (char *) "self",(char *) "c", NULL
33264 };
33265
33266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33268 if (!SWIG_IsOK(res1)) {
33269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33270 }
33271 arg1 = reinterpret_cast< wxEffects * >(argp1);
33272 {
33273 arg2 = &temp2;
33274 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33275 }
33276 {
33277 PyThreadState* __tstate = wxPyBeginAllowThreads();
33278 (arg1)->SetLightShadow((wxColour const &)*arg2);
33279 wxPyEndAllowThreads(__tstate);
33280 if (PyErr_Occurred()) SWIG_fail;
33281 }
33282 resultobj = SWIG_Py_Void();
33283 return resultobj;
33284 fail:
33285 return NULL;
33286 }
33287
33288
33289 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33290 PyObject *resultobj = 0;
33291 wxEffects *arg1 = (wxEffects *) 0 ;
33292 wxColour *arg2 = 0 ;
33293 void *argp1 = 0 ;
33294 int res1 = 0 ;
33295 wxColour temp2 ;
33296 PyObject * obj0 = 0 ;
33297 PyObject * obj1 = 0 ;
33298 char * kwnames[] = {
33299 (char *) "self",(char *) "c", NULL
33300 };
33301
33302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
33303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33304 if (!SWIG_IsOK(res1)) {
33305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33306 }
33307 arg1 = reinterpret_cast< wxEffects * >(argp1);
33308 {
33309 arg2 = &temp2;
33310 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33311 }
33312 {
33313 PyThreadState* __tstate = wxPyBeginAllowThreads();
33314 (arg1)->SetFaceColour((wxColour const &)*arg2);
33315 wxPyEndAllowThreads(__tstate);
33316 if (PyErr_Occurred()) SWIG_fail;
33317 }
33318 resultobj = SWIG_Py_Void();
33319 return resultobj;
33320 fail:
33321 return NULL;
33322 }
33323
33324
33325 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33326 PyObject *resultobj = 0;
33327 wxEffects *arg1 = (wxEffects *) 0 ;
33328 wxColour *arg2 = 0 ;
33329 void *argp1 = 0 ;
33330 int res1 = 0 ;
33331 wxColour temp2 ;
33332 PyObject * obj0 = 0 ;
33333 PyObject * obj1 = 0 ;
33334 char * kwnames[] = {
33335 (char *) "self",(char *) "c", NULL
33336 };
33337
33338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33340 if (!SWIG_IsOK(res1)) {
33341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33342 }
33343 arg1 = reinterpret_cast< wxEffects * >(argp1);
33344 {
33345 arg2 = &temp2;
33346 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33347 }
33348 {
33349 PyThreadState* __tstate = wxPyBeginAllowThreads();
33350 (arg1)->SetMediumShadow((wxColour const &)*arg2);
33351 wxPyEndAllowThreads(__tstate);
33352 if (PyErr_Occurred()) SWIG_fail;
33353 }
33354 resultobj = SWIG_Py_Void();
33355 return resultobj;
33356 fail:
33357 return NULL;
33358 }
33359
33360
33361 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33362 PyObject *resultobj = 0;
33363 wxEffects *arg1 = (wxEffects *) 0 ;
33364 wxColour *arg2 = 0 ;
33365 void *argp1 = 0 ;
33366 int res1 = 0 ;
33367 wxColour temp2 ;
33368 PyObject * obj0 = 0 ;
33369 PyObject * obj1 = 0 ;
33370 char * kwnames[] = {
33371 (char *) "self",(char *) "c", NULL
33372 };
33373
33374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33376 if (!SWIG_IsOK(res1)) {
33377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33378 }
33379 arg1 = reinterpret_cast< wxEffects * >(argp1);
33380 {
33381 arg2 = &temp2;
33382 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33383 }
33384 {
33385 PyThreadState* __tstate = wxPyBeginAllowThreads();
33386 (arg1)->SetDarkShadow((wxColour const &)*arg2);
33387 wxPyEndAllowThreads(__tstate);
33388 if (PyErr_Occurred()) SWIG_fail;
33389 }
33390 resultobj = SWIG_Py_Void();
33391 return resultobj;
33392 fail:
33393 return NULL;
33394 }
33395
33396
33397 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33398 PyObject *resultobj = 0;
33399 wxEffects *arg1 = (wxEffects *) 0 ;
33400 wxColour *arg2 = 0 ;
33401 wxColour *arg3 = 0 ;
33402 wxColour *arg4 = 0 ;
33403 wxColour *arg5 = 0 ;
33404 wxColour *arg6 = 0 ;
33405 void *argp1 = 0 ;
33406 int res1 = 0 ;
33407 wxColour temp2 ;
33408 wxColour temp3 ;
33409 wxColour temp4 ;
33410 wxColour temp5 ;
33411 wxColour temp6 ;
33412 PyObject * obj0 = 0 ;
33413 PyObject * obj1 = 0 ;
33414 PyObject * obj2 = 0 ;
33415 PyObject * obj3 = 0 ;
33416 PyObject * obj4 = 0 ;
33417 PyObject * obj5 = 0 ;
33418 char * kwnames[] = {
33419 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
33420 };
33421
33422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33424 if (!SWIG_IsOK(res1)) {
33425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
33426 }
33427 arg1 = reinterpret_cast< wxEffects * >(argp1);
33428 {
33429 arg2 = &temp2;
33430 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33431 }
33432 {
33433 arg3 = &temp3;
33434 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33435 }
33436 {
33437 arg4 = &temp4;
33438 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
33439 }
33440 {
33441 arg5 = &temp5;
33442 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
33443 }
33444 {
33445 arg6 = &temp6;
33446 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
33447 }
33448 {
33449 PyThreadState* __tstate = wxPyBeginAllowThreads();
33450 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
33451 wxPyEndAllowThreads(__tstate);
33452 if (PyErr_Occurred()) SWIG_fail;
33453 }
33454 resultobj = SWIG_Py_Void();
33455 return resultobj;
33456 fail:
33457 return NULL;
33458 }
33459
33460
33461 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33462 PyObject *resultobj = 0;
33463 wxEffects *arg1 = (wxEffects *) 0 ;
33464 wxDC *arg2 = 0 ;
33465 wxRect *arg3 = 0 ;
33466 int arg4 = (int) 1 ;
33467 void *argp1 = 0 ;
33468 int res1 = 0 ;
33469 void *argp2 = 0 ;
33470 int res2 = 0 ;
33471 wxRect temp3 ;
33472 int val4 ;
33473 int ecode4 = 0 ;
33474 PyObject * obj0 = 0 ;
33475 PyObject * obj1 = 0 ;
33476 PyObject * obj2 = 0 ;
33477 PyObject * obj3 = 0 ;
33478 char * kwnames[] = {
33479 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
33480 };
33481
33482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33484 if (!SWIG_IsOK(res1)) {
33485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
33486 }
33487 arg1 = reinterpret_cast< wxEffects * >(argp1);
33488 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
33489 if (!SWIG_IsOK(res2)) {
33490 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33491 }
33492 if (!argp2) {
33493 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33494 }
33495 arg2 = reinterpret_cast< wxDC * >(argp2);
33496 {
33497 arg3 = &temp3;
33498 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33499 }
33500 if (obj3) {
33501 ecode4 = SWIG_AsVal_int(obj3, &val4);
33502 if (!SWIG_IsOK(ecode4)) {
33503 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
33504 }
33505 arg4 = static_cast< int >(val4);
33506 }
33507 {
33508 PyThreadState* __tstate = wxPyBeginAllowThreads();
33509 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
33510 wxPyEndAllowThreads(__tstate);
33511 if (PyErr_Occurred()) SWIG_fail;
33512 }
33513 resultobj = SWIG_Py_Void();
33514 return resultobj;
33515 fail:
33516 return NULL;
33517 }
33518
33519
33520 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33521 PyObject *resultobj = 0;
33522 wxEffects *arg1 = (wxEffects *) 0 ;
33523 wxRect *arg2 = 0 ;
33524 wxDC *arg3 = 0 ;
33525 wxBitmap *arg4 = 0 ;
33526 bool result;
33527 void *argp1 = 0 ;
33528 int res1 = 0 ;
33529 wxRect temp2 ;
33530 void *argp3 = 0 ;
33531 int res3 = 0 ;
33532 void *argp4 = 0 ;
33533 int res4 = 0 ;
33534 PyObject * obj0 = 0 ;
33535 PyObject * obj1 = 0 ;
33536 PyObject * obj2 = 0 ;
33537 PyObject * obj3 = 0 ;
33538 char * kwnames[] = {
33539 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
33540 };
33541
33542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33544 if (!SWIG_IsOK(res1)) {
33545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
33546 }
33547 arg1 = reinterpret_cast< wxEffects * >(argp1);
33548 {
33549 arg2 = &temp2;
33550 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33551 }
33552 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33553 if (!SWIG_IsOK(res3)) {
33554 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33555 }
33556 if (!argp3) {
33557 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33558 }
33559 arg3 = reinterpret_cast< wxDC * >(argp3);
33560 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
33561 if (!SWIG_IsOK(res4)) {
33562 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33563 }
33564 if (!argp4) {
33565 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33566 }
33567 arg4 = reinterpret_cast< wxBitmap * >(argp4);
33568 {
33569 PyThreadState* __tstate = wxPyBeginAllowThreads();
33570 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
33571 wxPyEndAllowThreads(__tstate);
33572 if (PyErr_Occurred()) SWIG_fail;
33573 }
33574 {
33575 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33576 }
33577 return resultobj;
33578 fail:
33579 return NULL;
33580 }
33581
33582
33583 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33584 PyObject *obj;
33585 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33586 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
33587 return SWIG_Py_Void();
33588 }
33589
33590 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33591 return SWIG_Python_InitShadowInstance(args);
33592 }
33593
33594 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33595 PyObject *resultobj = 0;
33596 int arg1 ;
33597 int arg2 ;
33598 bool arg3 ;
33599 wxSplitterRenderParams *result = 0 ;
33600 int val1 ;
33601 int ecode1 = 0 ;
33602 int val2 ;
33603 int ecode2 = 0 ;
33604 bool val3 ;
33605 int ecode3 = 0 ;
33606 PyObject * obj0 = 0 ;
33607 PyObject * obj1 = 0 ;
33608 PyObject * obj2 = 0 ;
33609 char * kwnames[] = {
33610 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
33611 };
33612
33613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33614 ecode1 = SWIG_AsVal_int(obj0, &val1);
33615 if (!SWIG_IsOK(ecode1)) {
33616 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
33617 }
33618 arg1 = static_cast< int >(val1);
33619 ecode2 = SWIG_AsVal_int(obj1, &val2);
33620 if (!SWIG_IsOK(ecode2)) {
33621 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
33622 }
33623 arg2 = static_cast< int >(val2);
33624 ecode3 = SWIG_AsVal_bool(obj2, &val3);
33625 if (!SWIG_IsOK(ecode3)) {
33626 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
33627 }
33628 arg3 = static_cast< bool >(val3);
33629 {
33630 PyThreadState* __tstate = wxPyBeginAllowThreads();
33631 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
33632 wxPyEndAllowThreads(__tstate);
33633 if (PyErr_Occurred()) SWIG_fail;
33634 }
33635 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
33636 return resultobj;
33637 fail:
33638 return NULL;
33639 }
33640
33641
33642 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33643 PyObject *resultobj = 0;
33644 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33645 void *argp1 = 0 ;
33646 int res1 = 0 ;
33647 PyObject *swig_obj[1] ;
33648
33649 if (!args) SWIG_fail;
33650 swig_obj[0] = args;
33651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
33652 if (!SWIG_IsOK(res1)) {
33653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33654 }
33655 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33656 {
33657 PyThreadState* __tstate = wxPyBeginAllowThreads();
33658 delete arg1;
33659
33660 wxPyEndAllowThreads(__tstate);
33661 if (PyErr_Occurred()) SWIG_fail;
33662 }
33663 resultobj = SWIG_Py_Void();
33664 return resultobj;
33665 fail:
33666 return NULL;
33667 }
33668
33669
33670 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33671 PyObject *resultobj = 0;
33672 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33673 int result;
33674 void *argp1 = 0 ;
33675 int res1 = 0 ;
33676 PyObject *swig_obj[1] ;
33677
33678 if (!args) SWIG_fail;
33679 swig_obj[0] = args;
33680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33681 if (!SWIG_IsOK(res1)) {
33682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33683 }
33684 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33685 result = (int)(int) ((arg1)->widthSash);
33686 resultobj = SWIG_From_int(static_cast< int >(result));
33687 return resultobj;
33688 fail:
33689 return NULL;
33690 }
33691
33692
33693 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33694 PyObject *resultobj = 0;
33695 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33696 int result;
33697 void *argp1 = 0 ;
33698 int res1 = 0 ;
33699 PyObject *swig_obj[1] ;
33700
33701 if (!args) SWIG_fail;
33702 swig_obj[0] = args;
33703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33704 if (!SWIG_IsOK(res1)) {
33705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33706 }
33707 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33708 result = (int)(int) ((arg1)->border);
33709 resultobj = SWIG_From_int(static_cast< int >(result));
33710 return resultobj;
33711 fail:
33712 return NULL;
33713 }
33714
33715
33716 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33717 PyObject *resultobj = 0;
33718 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33719 bool result;
33720 void *argp1 = 0 ;
33721 int res1 = 0 ;
33722 PyObject *swig_obj[1] ;
33723
33724 if (!args) SWIG_fail;
33725 swig_obj[0] = args;
33726 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33727 if (!SWIG_IsOK(res1)) {
33728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33729 }
33730 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33731 result = (bool)(bool) ((arg1)->isHotSensitive);
33732 resultobj = SWIG_From_bool(static_cast< bool >(result));
33733 return resultobj;
33734 fail:
33735 return NULL;
33736 }
33737
33738
33739 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33740 PyObject *obj;
33741 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33742 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
33743 return SWIG_Py_Void();
33744 }
33745
33746 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33747 return SWIG_Python_InitShadowInstance(args);
33748 }
33749
33750 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33751 PyObject *resultobj = 0;
33752 wxHeaderButtonParams *result = 0 ;
33753
33754 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
33755 {
33756 PyThreadState* __tstate = wxPyBeginAllowThreads();
33757 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
33758 wxPyEndAllowThreads(__tstate);
33759 if (PyErr_Occurred()) SWIG_fail;
33760 }
33761 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
33762 return resultobj;
33763 fail:
33764 return NULL;
33765 }
33766
33767
33768 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33769 PyObject *resultobj = 0;
33770 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33771 void *argp1 = 0 ;
33772 int res1 = 0 ;
33773 PyObject *swig_obj[1] ;
33774
33775 if (!args) SWIG_fail;
33776 swig_obj[0] = args;
33777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
33778 if (!SWIG_IsOK(res1)) {
33779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33780 }
33781 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33782 {
33783 PyThreadState* __tstate = wxPyBeginAllowThreads();
33784 delete arg1;
33785
33786 wxPyEndAllowThreads(__tstate);
33787 if (PyErr_Occurred()) SWIG_fail;
33788 }
33789 resultobj = SWIG_Py_Void();
33790 return resultobj;
33791 fail:
33792 return NULL;
33793 }
33794
33795
33796 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33797 PyObject *resultobj = 0;
33798 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33799 wxColour *arg2 = (wxColour *) 0 ;
33800 void *argp1 = 0 ;
33801 int res1 = 0 ;
33802 wxColour temp2 ;
33803 PyObject *swig_obj[2] ;
33804
33805 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
33806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33807 if (!SWIG_IsOK(res1)) {
33808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33809 }
33810 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33811 {
33812 arg2 = &temp2;
33813 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33814 }
33815 if (arg1) (arg1)->m_arrowColour = *arg2;
33816
33817 resultobj = SWIG_Py_Void();
33818 return resultobj;
33819 fail:
33820 return NULL;
33821 }
33822
33823
33824 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33825 PyObject *resultobj = 0;
33826 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33827 wxColour *result = 0 ;
33828 void *argp1 = 0 ;
33829 int res1 = 0 ;
33830 PyObject *swig_obj[1] ;
33831
33832 if (!args) SWIG_fail;
33833 swig_obj[0] = args;
33834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33835 if (!SWIG_IsOK(res1)) {
33836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33837 }
33838 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33839 result = (wxColour *)& ((arg1)->m_arrowColour);
33840 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33841 return resultobj;
33842 fail:
33843 return NULL;
33844 }
33845
33846
33847 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33848 PyObject *resultobj = 0;
33849 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33850 wxColour *arg2 = (wxColour *) 0 ;
33851 void *argp1 = 0 ;
33852 int res1 = 0 ;
33853 wxColour temp2 ;
33854 PyObject *swig_obj[2] ;
33855
33856 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
33857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33858 if (!SWIG_IsOK(res1)) {
33859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33860 }
33861 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33862 {
33863 arg2 = &temp2;
33864 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33865 }
33866 if (arg1) (arg1)->m_selectionColour = *arg2;
33867
33868 resultobj = SWIG_Py_Void();
33869 return resultobj;
33870 fail:
33871 return NULL;
33872 }
33873
33874
33875 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33876 PyObject *resultobj = 0;
33877 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33878 wxColour *result = 0 ;
33879 void *argp1 = 0 ;
33880 int res1 = 0 ;
33881 PyObject *swig_obj[1] ;
33882
33883 if (!args) SWIG_fail;
33884 swig_obj[0] = args;
33885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33886 if (!SWIG_IsOK(res1)) {
33887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33888 }
33889 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33890 result = (wxColour *)& ((arg1)->m_selectionColour);
33891 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33892 return resultobj;
33893 fail:
33894 return NULL;
33895 }
33896
33897
33898 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33899 PyObject *resultobj = 0;
33900 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33901 wxString *arg2 = (wxString *) 0 ;
33902 void *argp1 = 0 ;
33903 int res1 = 0 ;
33904 bool temp2 = false ;
33905 PyObject *swig_obj[2] ;
33906
33907 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
33908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33909 if (!SWIG_IsOK(res1)) {
33910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33911 }
33912 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33913 {
33914 arg2 = wxString_in_helper(swig_obj[1]);
33915 if (arg2 == NULL) SWIG_fail;
33916 temp2 = true;
33917 }
33918 if (arg1) (arg1)->m_labelText = *arg2;
33919
33920 resultobj = SWIG_Py_Void();
33921 {
33922 if (temp2)
33923 delete arg2;
33924 }
33925 return resultobj;
33926 fail:
33927 {
33928 if (temp2)
33929 delete arg2;
33930 }
33931 return NULL;
33932 }
33933
33934
33935 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33936 PyObject *resultobj = 0;
33937 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33938 wxString *result = 0 ;
33939 void *argp1 = 0 ;
33940 int res1 = 0 ;
33941 PyObject *swig_obj[1] ;
33942
33943 if (!args) SWIG_fail;
33944 swig_obj[0] = args;
33945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33946 if (!SWIG_IsOK(res1)) {
33947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33948 }
33949 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33950 result = (wxString *)& ((arg1)->m_labelText);
33951 {
33952 #if wxUSE_UNICODE
33953 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33954 #else
33955 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33956 #endif
33957 }
33958 return resultobj;
33959 fail:
33960 return NULL;
33961 }
33962
33963
33964 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33965 PyObject *resultobj = 0;
33966 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33967 wxFont *arg2 = (wxFont *) 0 ;
33968 void *argp1 = 0 ;
33969 int res1 = 0 ;
33970 void *argp2 = 0 ;
33971 int res2 = 0 ;
33972 PyObject *swig_obj[2] ;
33973
33974 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
33975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33976 if (!SWIG_IsOK(res1)) {
33977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33978 }
33979 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33980 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33981 if (!SWIG_IsOK(res2)) {
33982 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
33983 }
33984 arg2 = reinterpret_cast< wxFont * >(argp2);
33985 if (arg1) (arg1)->m_labelFont = *arg2;
33986
33987 resultobj = SWIG_Py_Void();
33988 return resultobj;
33989 fail:
33990 return NULL;
33991 }
33992
33993
33994 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33995 PyObject *resultobj = 0;
33996 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33997 wxFont *result = 0 ;
33998 void *argp1 = 0 ;
33999 int res1 = 0 ;
34000 PyObject *swig_obj[1] ;
34001
34002 if (!args) SWIG_fail;
34003 swig_obj[0] = args;
34004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34005 if (!SWIG_IsOK(res1)) {
34006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34007 }
34008 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34009 result = (wxFont *)& ((arg1)->m_labelFont);
34010 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
34011 return resultobj;
34012 fail:
34013 return NULL;
34014 }
34015
34016
34017 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34018 PyObject *resultobj = 0;
34019 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34020 wxColour *arg2 = (wxColour *) 0 ;
34021 void *argp1 = 0 ;
34022 int res1 = 0 ;
34023 wxColour temp2 ;
34024 PyObject *swig_obj[2] ;
34025
34026 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
34027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34028 if (!SWIG_IsOK(res1)) {
34029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34030 }
34031 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34032 {
34033 arg2 = &temp2;
34034 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34035 }
34036 if (arg1) (arg1)->m_labelColour = *arg2;
34037
34038 resultobj = SWIG_Py_Void();
34039 return resultobj;
34040 fail:
34041 return NULL;
34042 }
34043
34044
34045 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34046 PyObject *resultobj = 0;
34047 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34048 wxColour *result = 0 ;
34049 void *argp1 = 0 ;
34050 int res1 = 0 ;
34051 PyObject *swig_obj[1] ;
34052
34053 if (!args) SWIG_fail;
34054 swig_obj[0] = args;
34055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34056 if (!SWIG_IsOK(res1)) {
34057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34058 }
34059 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34060 result = (wxColour *)& ((arg1)->m_labelColour);
34061 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34062 return resultobj;
34063 fail:
34064 return NULL;
34065 }
34066
34067
34068 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34069 PyObject *resultobj = 0;
34070 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34071 wxBitmap *arg2 = (wxBitmap *) 0 ;
34072 void *argp1 = 0 ;
34073 int res1 = 0 ;
34074 void *argp2 = 0 ;
34075 int res2 = 0 ;
34076 PyObject *swig_obj[2] ;
34077
34078 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
34079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34080 if (!SWIG_IsOK(res1)) {
34081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34082 }
34083 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34084 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
34085 if (!SWIG_IsOK(res2)) {
34086 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
34087 }
34088 arg2 = reinterpret_cast< wxBitmap * >(argp2);
34089 if (arg1) (arg1)->m_labelBitmap = *arg2;
34090
34091 resultobj = SWIG_Py_Void();
34092 return resultobj;
34093 fail:
34094 return NULL;
34095 }
34096
34097
34098 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34099 PyObject *resultobj = 0;
34100 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34101 wxBitmap *result = 0 ;
34102 void *argp1 = 0 ;
34103 int res1 = 0 ;
34104 PyObject *swig_obj[1] ;
34105
34106 if (!args) SWIG_fail;
34107 swig_obj[0] = args;
34108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34109 if (!SWIG_IsOK(res1)) {
34110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34111 }
34112 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34113 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
34114 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
34115 return resultobj;
34116 fail:
34117 return NULL;
34118 }
34119
34120
34121 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34122 PyObject *resultobj = 0;
34123 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34124 int arg2 ;
34125 void *argp1 = 0 ;
34126 int res1 = 0 ;
34127 int val2 ;
34128 int ecode2 = 0 ;
34129 PyObject *swig_obj[2] ;
34130
34131 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
34132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34133 if (!SWIG_IsOK(res1)) {
34134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34135 }
34136 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34137 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
34138 if (!SWIG_IsOK(ecode2)) {
34139 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
34140 }
34141 arg2 = static_cast< int >(val2);
34142 if (arg1) (arg1)->m_labelAlignment = arg2;
34143
34144 resultobj = SWIG_Py_Void();
34145 return resultobj;
34146 fail:
34147 return NULL;
34148 }
34149
34150
34151 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34152 PyObject *resultobj = 0;
34153 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34154 int result;
34155 void *argp1 = 0 ;
34156 int res1 = 0 ;
34157 PyObject *swig_obj[1] ;
34158
34159 if (!args) SWIG_fail;
34160 swig_obj[0] = args;
34161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34162 if (!SWIG_IsOK(res1)) {
34163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34164 }
34165 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34166 result = (int) ((arg1)->m_labelAlignment);
34167 resultobj = SWIG_From_int(static_cast< int >(result));
34168 return resultobj;
34169 fail:
34170 return NULL;
34171 }
34172
34173
34174 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34175 PyObject *obj;
34176 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34177 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
34178 return SWIG_Py_Void();
34179 }
34180
34181 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34182 return SWIG_Python_InitShadowInstance(args);
34183 }
34184
34185 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34186 PyObject *resultobj = 0;
34187 int arg1 ;
34188 int arg2 ;
34189 wxRendererVersion *result = 0 ;
34190 int val1 ;
34191 int ecode1 = 0 ;
34192 int val2 ;
34193 int ecode2 = 0 ;
34194 PyObject * obj0 = 0 ;
34195 PyObject * obj1 = 0 ;
34196 char * kwnames[] = {
34197 (char *) "version_",(char *) "age_", NULL
34198 };
34199
34200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
34201 ecode1 = SWIG_AsVal_int(obj0, &val1);
34202 if (!SWIG_IsOK(ecode1)) {
34203 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
34204 }
34205 arg1 = static_cast< int >(val1);
34206 ecode2 = SWIG_AsVal_int(obj1, &val2);
34207 if (!SWIG_IsOK(ecode2)) {
34208 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
34209 }
34210 arg2 = static_cast< int >(val2);
34211 {
34212 PyThreadState* __tstate = wxPyBeginAllowThreads();
34213 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
34214 wxPyEndAllowThreads(__tstate);
34215 if (PyErr_Occurred()) SWIG_fail;
34216 }
34217 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
34218 return resultobj;
34219 fail:
34220 return NULL;
34221 }
34222
34223
34224 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34225 PyObject *resultobj = 0;
34226 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34227 void *argp1 = 0 ;
34228 int res1 = 0 ;
34229 PyObject *swig_obj[1] ;
34230
34231 if (!args) SWIG_fail;
34232 swig_obj[0] = args;
34233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
34234 if (!SWIG_IsOK(res1)) {
34235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34236 }
34237 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34238 {
34239 PyThreadState* __tstate = wxPyBeginAllowThreads();
34240 delete arg1;
34241
34242 wxPyEndAllowThreads(__tstate);
34243 if (PyErr_Occurred()) SWIG_fail;
34244 }
34245 resultobj = SWIG_Py_Void();
34246 return resultobj;
34247 fail:
34248 return NULL;
34249 }
34250
34251
34252 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34253 PyObject *resultobj = 0;
34254 wxRendererVersion *arg1 = 0 ;
34255 bool result;
34256 void *argp1 = 0 ;
34257 int res1 = 0 ;
34258 PyObject * obj0 = 0 ;
34259 char * kwnames[] = {
34260 (char *) "ver", NULL
34261 };
34262
34263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
34264 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
34265 if (!SWIG_IsOK(res1)) {
34266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34267 }
34268 if (!argp1) {
34269 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34270 }
34271 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34272 {
34273 PyThreadState* __tstate = wxPyBeginAllowThreads();
34274 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
34275 wxPyEndAllowThreads(__tstate);
34276 if (PyErr_Occurred()) SWIG_fail;
34277 }
34278 {
34279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34280 }
34281 return resultobj;
34282 fail:
34283 return NULL;
34284 }
34285
34286
34287 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34288 PyObject *resultobj = 0;
34289 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34290 int result;
34291 void *argp1 = 0 ;
34292 int res1 = 0 ;
34293 PyObject *swig_obj[1] ;
34294
34295 if (!args) SWIG_fail;
34296 swig_obj[0] = args;
34297 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34298 if (!SWIG_IsOK(res1)) {
34299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34300 }
34301 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34302 result = (int)(int) ((arg1)->version);
34303 resultobj = SWIG_From_int(static_cast< int >(result));
34304 return resultobj;
34305 fail:
34306 return NULL;
34307 }
34308
34309
34310 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34311 PyObject *resultobj = 0;
34312 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34313 int result;
34314 void *argp1 = 0 ;
34315 int res1 = 0 ;
34316 PyObject *swig_obj[1] ;
34317
34318 if (!args) SWIG_fail;
34319 swig_obj[0] = args;
34320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34321 if (!SWIG_IsOK(res1)) {
34322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34323 }
34324 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34325 result = (int)(int) ((arg1)->age);
34326 resultobj = SWIG_From_int(static_cast< int >(result));
34327 return resultobj;
34328 fail:
34329 return NULL;
34330 }
34331
34332
34333 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34334 PyObject *obj;
34335 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34336 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
34337 return SWIG_Py_Void();
34338 }
34339
34340 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34341 return SWIG_Python_InitShadowInstance(args);
34342 }
34343
34344 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34345 PyObject *resultobj = 0;
34346 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34347 wxWindow *arg2 = (wxWindow *) 0 ;
34348 wxDC *arg3 = 0 ;
34349 wxRect *arg4 = 0 ;
34350 int arg5 = (int) 0 ;
34351 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34352 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
34353 int result;
34354 void *argp1 = 0 ;
34355 int res1 = 0 ;
34356 void *argp2 = 0 ;
34357 int res2 = 0 ;
34358 void *argp3 = 0 ;
34359 int res3 = 0 ;
34360 wxRect temp4 ;
34361 int val5 ;
34362 int ecode5 = 0 ;
34363 int val6 ;
34364 int ecode6 = 0 ;
34365 void *argp7 = 0 ;
34366 int res7 = 0 ;
34367 PyObject * obj0 = 0 ;
34368 PyObject * obj1 = 0 ;
34369 PyObject * obj2 = 0 ;
34370 PyObject * obj3 = 0 ;
34371 PyObject * obj4 = 0 ;
34372 PyObject * obj5 = 0 ;
34373 PyObject * obj6 = 0 ;
34374 char * kwnames[] = {
34375 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34376 };
34377
34378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34380 if (!SWIG_IsOK(res1)) {
34381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34382 }
34383 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34384 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34385 if (!SWIG_IsOK(res2)) {
34386 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34387 }
34388 arg2 = reinterpret_cast< wxWindow * >(argp2);
34389 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34390 if (!SWIG_IsOK(res3)) {
34391 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34392 }
34393 if (!argp3) {
34394 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34395 }
34396 arg3 = reinterpret_cast< wxDC * >(argp3);
34397 {
34398 arg4 = &temp4;
34399 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34400 }
34401 if (obj4) {
34402 ecode5 = SWIG_AsVal_int(obj4, &val5);
34403 if (!SWIG_IsOK(ecode5)) {
34404 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
34405 }
34406 arg5 = static_cast< int >(val5);
34407 }
34408 if (obj5) {
34409 ecode6 = SWIG_AsVal_int(obj5, &val6);
34410 if (!SWIG_IsOK(ecode6)) {
34411 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34412 }
34413 arg6 = static_cast< wxHeaderSortIconType >(val6);
34414 }
34415 if (obj6) {
34416 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34417 if (!SWIG_IsOK(res7)) {
34418 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34419 }
34420 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34421 }
34422 {
34423 PyThreadState* __tstate = wxPyBeginAllowThreads();
34424 result = (int)(arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
34425 wxPyEndAllowThreads(__tstate);
34426 if (PyErr_Occurred()) SWIG_fail;
34427 }
34428 resultobj = SWIG_From_int(static_cast< int >(result));
34429 return resultobj;
34430 fail:
34431 return NULL;
34432 }
34433
34434
34435 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34436 PyObject *resultobj = 0;
34437 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34438 wxWindow *arg2 = (wxWindow *) 0 ;
34439 wxDC *arg3 = 0 ;
34440 wxRect *arg4 = 0 ;
34441 int arg5 = (int) 0 ;
34442 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34443 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
34444 int result;
34445 void *argp1 = 0 ;
34446 int res1 = 0 ;
34447 void *argp2 = 0 ;
34448 int res2 = 0 ;
34449 void *argp3 = 0 ;
34450 int res3 = 0 ;
34451 wxRect temp4 ;
34452 int val5 ;
34453 int ecode5 = 0 ;
34454 int val6 ;
34455 int ecode6 = 0 ;
34456 void *argp7 = 0 ;
34457 int res7 = 0 ;
34458 PyObject * obj0 = 0 ;
34459 PyObject * obj1 = 0 ;
34460 PyObject * obj2 = 0 ;
34461 PyObject * obj3 = 0 ;
34462 PyObject * obj4 = 0 ;
34463 PyObject * obj5 = 0 ;
34464 PyObject * obj6 = 0 ;
34465 char * kwnames[] = {
34466 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34467 };
34468
34469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34471 if (!SWIG_IsOK(res1)) {
34472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34473 }
34474 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34475 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34476 if (!SWIG_IsOK(res2)) {
34477 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
34478 }
34479 arg2 = reinterpret_cast< wxWindow * >(argp2);
34480 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34481 if (!SWIG_IsOK(res3)) {
34482 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34483 }
34484 if (!argp3) {
34485 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34486 }
34487 arg3 = reinterpret_cast< wxDC * >(argp3);
34488 {
34489 arg4 = &temp4;
34490 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34491 }
34492 if (obj4) {
34493 ecode5 = SWIG_AsVal_int(obj4, &val5);
34494 if (!SWIG_IsOK(ecode5)) {
34495 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
34496 }
34497 arg5 = static_cast< int >(val5);
34498 }
34499 if (obj5) {
34500 ecode6 = SWIG_AsVal_int(obj5, &val6);
34501 if (!SWIG_IsOK(ecode6)) {
34502 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34503 }
34504 arg6 = static_cast< wxHeaderSortIconType >(val6);
34505 }
34506 if (obj6) {
34507 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34508 if (!SWIG_IsOK(res7)) {
34509 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34510 }
34511 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34512 }
34513 {
34514 PyThreadState* __tstate = wxPyBeginAllowThreads();
34515 result = (int)(arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
34516 wxPyEndAllowThreads(__tstate);
34517 if (PyErr_Occurred()) SWIG_fail;
34518 }
34519 resultobj = SWIG_From_int(static_cast< int >(result));
34520 return resultobj;
34521 fail:
34522 return NULL;
34523 }
34524
34525
34526 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34527 PyObject *resultobj = 0;
34528 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34529 wxWindow *arg2 = (wxWindow *) 0 ;
34530 int result;
34531 void *argp1 = 0 ;
34532 int res1 = 0 ;
34533 void *argp2 = 0 ;
34534 int res2 = 0 ;
34535 PyObject * obj0 = 0 ;
34536 PyObject * obj1 = 0 ;
34537 char * kwnames[] = {
34538 (char *) "self",(char *) "win", NULL
34539 };
34540
34541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
34542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34543 if (!SWIG_IsOK(res1)) {
34544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34545 }
34546 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34547 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34548 if (!SWIG_IsOK(res2)) {
34549 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
34550 }
34551 arg2 = reinterpret_cast< wxWindow * >(argp2);
34552 {
34553 PyThreadState* __tstate = wxPyBeginAllowThreads();
34554 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
34555 wxPyEndAllowThreads(__tstate);
34556 if (PyErr_Occurred()) SWIG_fail;
34557 }
34558 resultobj = SWIG_From_int(static_cast< int >(result));
34559 return resultobj;
34560 fail:
34561 return NULL;
34562 }
34563
34564
34565 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34566 PyObject *resultobj = 0;
34567 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34568 wxWindow *arg2 = (wxWindow *) 0 ;
34569 wxDC *arg3 = 0 ;
34570 wxRect *arg4 = 0 ;
34571 int arg5 = (int) 0 ;
34572 void *argp1 = 0 ;
34573 int res1 = 0 ;
34574 void *argp2 = 0 ;
34575 int res2 = 0 ;
34576 void *argp3 = 0 ;
34577 int res3 = 0 ;
34578 wxRect temp4 ;
34579 int val5 ;
34580 int ecode5 = 0 ;
34581 PyObject * obj0 = 0 ;
34582 PyObject * obj1 = 0 ;
34583 PyObject * obj2 = 0 ;
34584 PyObject * obj3 = 0 ;
34585 PyObject * obj4 = 0 ;
34586 char * kwnames[] = {
34587 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34588 };
34589
34590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34592 if (!SWIG_IsOK(res1)) {
34593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34594 }
34595 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34596 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34597 if (!SWIG_IsOK(res2)) {
34598 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34599 }
34600 arg2 = reinterpret_cast< wxWindow * >(argp2);
34601 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34602 if (!SWIG_IsOK(res3)) {
34603 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34604 }
34605 if (!argp3) {
34606 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34607 }
34608 arg3 = reinterpret_cast< wxDC * >(argp3);
34609 {
34610 arg4 = &temp4;
34611 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34612 }
34613 if (obj4) {
34614 ecode5 = SWIG_AsVal_int(obj4, &val5);
34615 if (!SWIG_IsOK(ecode5)) {
34616 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
34617 }
34618 arg5 = static_cast< int >(val5);
34619 }
34620 {
34621 PyThreadState* __tstate = wxPyBeginAllowThreads();
34622 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34623 wxPyEndAllowThreads(__tstate);
34624 if (PyErr_Occurred()) SWIG_fail;
34625 }
34626 resultobj = SWIG_Py_Void();
34627 return resultobj;
34628 fail:
34629 return NULL;
34630 }
34631
34632
34633 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34634 PyObject *resultobj = 0;
34635 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34636 wxWindow *arg2 = (wxWindow *) 0 ;
34637 wxDC *arg3 = 0 ;
34638 wxRect *arg4 = 0 ;
34639 int arg5 = (int) 0 ;
34640 void *argp1 = 0 ;
34641 int res1 = 0 ;
34642 void *argp2 = 0 ;
34643 int res2 = 0 ;
34644 void *argp3 = 0 ;
34645 int res3 = 0 ;
34646 wxRect temp4 ;
34647 int val5 ;
34648 int ecode5 = 0 ;
34649 PyObject * obj0 = 0 ;
34650 PyObject * obj1 = 0 ;
34651 PyObject * obj2 = 0 ;
34652 PyObject * obj3 = 0 ;
34653 PyObject * obj4 = 0 ;
34654 char * kwnames[] = {
34655 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34656 };
34657
34658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34660 if (!SWIG_IsOK(res1)) {
34661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34662 }
34663 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34664 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34665 if (!SWIG_IsOK(res2)) {
34666 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
34667 }
34668 arg2 = reinterpret_cast< wxWindow * >(argp2);
34669 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34670 if (!SWIG_IsOK(res3)) {
34671 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34672 }
34673 if (!argp3) {
34674 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34675 }
34676 arg3 = reinterpret_cast< wxDC * >(argp3);
34677 {
34678 arg4 = &temp4;
34679 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34680 }
34681 if (obj4) {
34682 ecode5 = SWIG_AsVal_int(obj4, &val5);
34683 if (!SWIG_IsOK(ecode5)) {
34684 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
34685 }
34686 arg5 = static_cast< int >(val5);
34687 }
34688 {
34689 PyThreadState* __tstate = wxPyBeginAllowThreads();
34690 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
34691 wxPyEndAllowThreads(__tstate);
34692 if (PyErr_Occurred()) SWIG_fail;
34693 }
34694 resultobj = SWIG_Py_Void();
34695 return resultobj;
34696 fail:
34697 return NULL;
34698 }
34699
34700
34701 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34702 PyObject *resultobj = 0;
34703 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34704 wxWindow *arg2 = (wxWindow *) 0 ;
34705 wxDC *arg3 = 0 ;
34706 wxSize *arg4 = 0 ;
34707 int arg5 ;
34708 wxOrientation arg6 ;
34709 int arg7 = (int) 0 ;
34710 void *argp1 = 0 ;
34711 int res1 = 0 ;
34712 void *argp2 = 0 ;
34713 int res2 = 0 ;
34714 void *argp3 = 0 ;
34715 int res3 = 0 ;
34716 wxSize temp4 ;
34717 int val5 ;
34718 int ecode5 = 0 ;
34719 int val6 ;
34720 int ecode6 = 0 ;
34721 int val7 ;
34722 int ecode7 = 0 ;
34723 PyObject * obj0 = 0 ;
34724 PyObject * obj1 = 0 ;
34725 PyObject * obj2 = 0 ;
34726 PyObject * obj3 = 0 ;
34727 PyObject * obj4 = 0 ;
34728 PyObject * obj5 = 0 ;
34729 PyObject * obj6 = 0 ;
34730 char * kwnames[] = {
34731 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
34732 };
34733
34734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34736 if (!SWIG_IsOK(res1)) {
34737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34738 }
34739 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34740 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34741 if (!SWIG_IsOK(res2)) {
34742 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
34743 }
34744 arg2 = reinterpret_cast< wxWindow * >(argp2);
34745 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34746 if (!SWIG_IsOK(res3)) {
34747 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34748 }
34749 if (!argp3) {
34750 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34751 }
34752 arg3 = reinterpret_cast< wxDC * >(argp3);
34753 {
34754 arg4 = &temp4;
34755 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
34756 }
34757 ecode5 = SWIG_AsVal_int(obj4, &val5);
34758 if (!SWIG_IsOK(ecode5)) {
34759 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
34760 }
34761 arg5 = static_cast< int >(val5);
34762 ecode6 = SWIG_AsVal_int(obj5, &val6);
34763 if (!SWIG_IsOK(ecode6)) {
34764 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
34765 }
34766 arg6 = static_cast< wxOrientation >(val6);
34767 if (obj6) {
34768 ecode7 = SWIG_AsVal_int(obj6, &val7);
34769 if (!SWIG_IsOK(ecode7)) {
34770 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
34771 }
34772 arg7 = static_cast< int >(val7);
34773 }
34774 {
34775 PyThreadState* __tstate = wxPyBeginAllowThreads();
34776 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
34777 wxPyEndAllowThreads(__tstate);
34778 if (PyErr_Occurred()) SWIG_fail;
34779 }
34780 resultobj = SWIG_Py_Void();
34781 return resultobj;
34782 fail:
34783 return NULL;
34784 }
34785
34786
34787 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34788 PyObject *resultobj = 0;
34789 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34790 wxWindow *arg2 = (wxWindow *) 0 ;
34791 wxDC *arg3 = 0 ;
34792 wxRect *arg4 = 0 ;
34793 int arg5 = (int) 0 ;
34794 void *argp1 = 0 ;
34795 int res1 = 0 ;
34796 void *argp2 = 0 ;
34797 int res2 = 0 ;
34798 void *argp3 = 0 ;
34799 int res3 = 0 ;
34800 wxRect temp4 ;
34801 int val5 ;
34802 int ecode5 = 0 ;
34803 PyObject * obj0 = 0 ;
34804 PyObject * obj1 = 0 ;
34805 PyObject * obj2 = 0 ;
34806 PyObject * obj3 = 0 ;
34807 PyObject * obj4 = 0 ;
34808 char * kwnames[] = {
34809 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34810 };
34811
34812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34814 if (!SWIG_IsOK(res1)) {
34815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34816 }
34817 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34818 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34819 if (!SWIG_IsOK(res2)) {
34820 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34821 }
34822 arg2 = reinterpret_cast< wxWindow * >(argp2);
34823 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34824 if (!SWIG_IsOK(res3)) {
34825 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34826 }
34827 if (!argp3) {
34828 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34829 }
34830 arg3 = reinterpret_cast< wxDC * >(argp3);
34831 {
34832 arg4 = &temp4;
34833 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34834 }
34835 if (obj4) {
34836 ecode5 = SWIG_AsVal_int(obj4, &val5);
34837 if (!SWIG_IsOK(ecode5)) {
34838 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
34839 }
34840 arg5 = static_cast< int >(val5);
34841 }
34842 {
34843 PyThreadState* __tstate = wxPyBeginAllowThreads();
34844 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34845 wxPyEndAllowThreads(__tstate);
34846 if (PyErr_Occurred()) SWIG_fail;
34847 }
34848 resultobj = SWIG_Py_Void();
34849 return resultobj;
34850 fail:
34851 return NULL;
34852 }
34853
34854
34855 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34856 PyObject *resultobj = 0;
34857 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34858 wxWindow *arg2 = (wxWindow *) 0 ;
34859 wxDC *arg3 = 0 ;
34860 wxRect *arg4 = 0 ;
34861 int arg5 = (int) 0 ;
34862 void *argp1 = 0 ;
34863 int res1 = 0 ;
34864 void *argp2 = 0 ;
34865 int res2 = 0 ;
34866 void *argp3 = 0 ;
34867 int res3 = 0 ;
34868 wxRect temp4 ;
34869 int val5 ;
34870 int ecode5 = 0 ;
34871 PyObject * obj0 = 0 ;
34872 PyObject * obj1 = 0 ;
34873 PyObject * obj2 = 0 ;
34874 PyObject * obj3 = 0 ;
34875 PyObject * obj4 = 0 ;
34876 char * kwnames[] = {
34877 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34878 };
34879
34880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34882 if (!SWIG_IsOK(res1)) {
34883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34884 }
34885 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34886 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34887 if (!SWIG_IsOK(res2)) {
34888 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
34889 }
34890 arg2 = reinterpret_cast< wxWindow * >(argp2);
34891 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34892 if (!SWIG_IsOK(res3)) {
34893 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34894 }
34895 if (!argp3) {
34896 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34897 }
34898 arg3 = reinterpret_cast< wxDC * >(argp3);
34899 {
34900 arg4 = &temp4;
34901 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34902 }
34903 if (obj4) {
34904 ecode5 = SWIG_AsVal_int(obj4, &val5);
34905 if (!SWIG_IsOK(ecode5)) {
34906 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
34907 }
34908 arg5 = static_cast< int >(val5);
34909 }
34910 {
34911 PyThreadState* __tstate = wxPyBeginAllowThreads();
34912 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
34913 wxPyEndAllowThreads(__tstate);
34914 if (PyErr_Occurred()) SWIG_fail;
34915 }
34916 resultobj = SWIG_Py_Void();
34917 return resultobj;
34918 fail:
34919 return NULL;
34920 }
34921
34922
34923 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34924 PyObject *resultobj = 0;
34925 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34926 wxWindow *arg2 = (wxWindow *) 0 ;
34927 wxDC *arg3 = 0 ;
34928 wxRect *arg4 = 0 ;
34929 int arg5 = (int) 0 ;
34930 void *argp1 = 0 ;
34931 int res1 = 0 ;
34932 void *argp2 = 0 ;
34933 int res2 = 0 ;
34934 void *argp3 = 0 ;
34935 int res3 = 0 ;
34936 wxRect temp4 ;
34937 int val5 ;
34938 int ecode5 = 0 ;
34939 PyObject * obj0 = 0 ;
34940 PyObject * obj1 = 0 ;
34941 PyObject * obj2 = 0 ;
34942 PyObject * obj3 = 0 ;
34943 PyObject * obj4 = 0 ;
34944 char * kwnames[] = {
34945 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34946 };
34947
34948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34950 if (!SWIG_IsOK(res1)) {
34951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34952 }
34953 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34954 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34955 if (!SWIG_IsOK(res2)) {
34956 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
34957 }
34958 arg2 = reinterpret_cast< wxWindow * >(argp2);
34959 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34960 if (!SWIG_IsOK(res3)) {
34961 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
34962 }
34963 if (!argp3) {
34964 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
34965 }
34966 arg3 = reinterpret_cast< wxDC * >(argp3);
34967 {
34968 arg4 = &temp4;
34969 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34970 }
34971 if (obj4) {
34972 ecode5 = SWIG_AsVal_int(obj4, &val5);
34973 if (!SWIG_IsOK(ecode5)) {
34974 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
34975 }
34976 arg5 = static_cast< int >(val5);
34977 }
34978 {
34979 PyThreadState* __tstate = wxPyBeginAllowThreads();
34980 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
34981 wxPyEndAllowThreads(__tstate);
34982 if (PyErr_Occurred()) SWIG_fail;
34983 }
34984 resultobj = SWIG_Py_Void();
34985 return resultobj;
34986 fail:
34987 return NULL;
34988 }
34989
34990
34991 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34992 PyObject *resultobj = 0;
34993 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34994 wxWindow *arg2 = (wxWindow *) 0 ;
34995 wxDC *arg3 = 0 ;
34996 wxRect *arg4 = 0 ;
34997 int arg5 = (int) 0 ;
34998 void *argp1 = 0 ;
34999 int res1 = 0 ;
35000 void *argp2 = 0 ;
35001 int res2 = 0 ;
35002 void *argp3 = 0 ;
35003 int res3 = 0 ;
35004 wxRect temp4 ;
35005 int val5 ;
35006 int ecode5 = 0 ;
35007 PyObject * obj0 = 0 ;
35008 PyObject * obj1 = 0 ;
35009 PyObject * obj2 = 0 ;
35010 PyObject * obj3 = 0 ;
35011 PyObject * obj4 = 0 ;
35012 char * kwnames[] = {
35013 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35014 };
35015
35016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35018 if (!SWIG_IsOK(res1)) {
35019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35020 }
35021 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35022 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35023 if (!SWIG_IsOK(res2)) {
35024 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35025 }
35026 arg2 = reinterpret_cast< wxWindow * >(argp2);
35027 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35028 if (!SWIG_IsOK(res3)) {
35029 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35030 }
35031 if (!argp3) {
35032 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35033 }
35034 arg3 = reinterpret_cast< wxDC * >(argp3);
35035 {
35036 arg4 = &temp4;
35037 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35038 }
35039 if (obj4) {
35040 ecode5 = SWIG_AsVal_int(obj4, &val5);
35041 if (!SWIG_IsOK(ecode5)) {
35042 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
35043 }
35044 arg5 = static_cast< int >(val5);
35045 }
35046 {
35047 PyThreadState* __tstate = wxPyBeginAllowThreads();
35048 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35049 wxPyEndAllowThreads(__tstate);
35050 if (PyErr_Occurred()) SWIG_fail;
35051 }
35052 resultobj = SWIG_Py_Void();
35053 return resultobj;
35054 fail:
35055 return NULL;
35056 }
35057
35058
35059 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35060 PyObject *resultobj = 0;
35061 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35062 wxWindow *arg2 = (wxWindow *) 0 ;
35063 wxDC *arg3 = 0 ;
35064 wxRect *arg4 = 0 ;
35065 int arg5 = (int) 0 ;
35066 void *argp1 = 0 ;
35067 int res1 = 0 ;
35068 void *argp2 = 0 ;
35069 int res2 = 0 ;
35070 void *argp3 = 0 ;
35071 int res3 = 0 ;
35072 wxRect temp4 ;
35073 int val5 ;
35074 int ecode5 = 0 ;
35075 PyObject * obj0 = 0 ;
35076 PyObject * obj1 = 0 ;
35077 PyObject * obj2 = 0 ;
35078 PyObject * obj3 = 0 ;
35079 PyObject * obj4 = 0 ;
35080 char * kwnames[] = {
35081 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35082 };
35083
35084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35086 if (!SWIG_IsOK(res1)) {
35087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35088 }
35089 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35090 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35091 if (!SWIG_IsOK(res2)) {
35092 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
35093 }
35094 arg2 = reinterpret_cast< wxWindow * >(argp2);
35095 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35096 if (!SWIG_IsOK(res3)) {
35097 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
35098 }
35099 if (!argp3) {
35100 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
35101 }
35102 arg3 = reinterpret_cast< wxDC * >(argp3);
35103 {
35104 arg4 = &temp4;
35105 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35106 }
35107 if (obj4) {
35108 ecode5 = SWIG_AsVal_int(obj4, &val5);
35109 if (!SWIG_IsOK(ecode5)) {
35110 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
35111 }
35112 arg5 = static_cast< int >(val5);
35113 }
35114 {
35115 PyThreadState* __tstate = wxPyBeginAllowThreads();
35116 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
35117 wxPyEndAllowThreads(__tstate);
35118 if (PyErr_Occurred()) SWIG_fail;
35119 }
35120 resultobj = SWIG_Py_Void();
35121 return resultobj;
35122 fail:
35123 return NULL;
35124 }
35125
35126
35127 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35128 PyObject *resultobj = 0;
35129 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35130 wxWindow *arg2 = (wxWindow *) 0 ;
35131 SwigValueWrapper<wxSplitterRenderParams > result;
35132 void *argp1 = 0 ;
35133 int res1 = 0 ;
35134 void *argp2 = 0 ;
35135 int res2 = 0 ;
35136 PyObject * obj0 = 0 ;
35137 PyObject * obj1 = 0 ;
35138 char * kwnames[] = {
35139 (char *) "self",(char *) "win", NULL
35140 };
35141
35142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
35143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35144 if (!SWIG_IsOK(res1)) {
35145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35146 }
35147 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35148 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35149 if (!SWIG_IsOK(res2)) {
35150 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
35151 }
35152 arg2 = reinterpret_cast< wxWindow * >(argp2);
35153 {
35154 PyThreadState* __tstate = wxPyBeginAllowThreads();
35155 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
35156 wxPyEndAllowThreads(__tstate);
35157 if (PyErr_Occurred()) SWIG_fail;
35158 }
35159 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
35160 return resultobj;
35161 fail:
35162 return NULL;
35163 }
35164
35165
35166 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35167 PyObject *resultobj = 0;
35168 wxRendererNative *result = 0 ;
35169
35170 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
35171 {
35172 if (!wxPyCheckForApp()) SWIG_fail;
35173 PyThreadState* __tstate = wxPyBeginAllowThreads();
35174 {
35175 wxRendererNative &_result_ref = wxRendererNative::Get();
35176 result = (wxRendererNative *) &_result_ref;
35177 }
35178 wxPyEndAllowThreads(__tstate);
35179 if (PyErr_Occurred()) SWIG_fail;
35180 }
35181 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35182 return resultobj;
35183 fail:
35184 return NULL;
35185 }
35186
35187
35188 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35189 PyObject *resultobj = 0;
35190 wxRendererNative *result = 0 ;
35191
35192 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
35193 {
35194 if (!wxPyCheckForApp()) SWIG_fail;
35195 PyThreadState* __tstate = wxPyBeginAllowThreads();
35196 {
35197 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
35198 result = (wxRendererNative *) &_result_ref;
35199 }
35200 wxPyEndAllowThreads(__tstate);
35201 if (PyErr_Occurred()) SWIG_fail;
35202 }
35203 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35204 return resultobj;
35205 fail:
35206 return NULL;
35207 }
35208
35209
35210 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35211 PyObject *resultobj = 0;
35212 wxRendererNative *result = 0 ;
35213
35214 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
35215 {
35216 if (!wxPyCheckForApp()) SWIG_fail;
35217 PyThreadState* __tstate = wxPyBeginAllowThreads();
35218 {
35219 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
35220 result = (wxRendererNative *) &_result_ref;
35221 }
35222 wxPyEndAllowThreads(__tstate);
35223 if (PyErr_Occurred()) SWIG_fail;
35224 }
35225 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35226 return resultobj;
35227 fail:
35228 return NULL;
35229 }
35230
35231
35232 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35233 PyObject *resultobj = 0;
35234 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35235 wxRendererNative *result = 0 ;
35236 void *argp1 = 0 ;
35237 int res1 = 0 ;
35238 PyObject * obj0 = 0 ;
35239 char * kwnames[] = {
35240 (char *) "renderer", NULL
35241 };
35242
35243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
35244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35245 if (!SWIG_IsOK(res1)) {
35246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35247 }
35248 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35249 {
35250 if (!wxPyCheckForApp()) SWIG_fail;
35251 PyThreadState* __tstate = wxPyBeginAllowThreads();
35252 result = (wxRendererNative *)wxRendererNative::Set(arg1);
35253 wxPyEndAllowThreads(__tstate);
35254 if (PyErr_Occurred()) SWIG_fail;
35255 }
35256 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35257 return resultobj;
35258 fail:
35259 return NULL;
35260 }
35261
35262
35263 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35264 PyObject *resultobj = 0;
35265 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35266 SwigValueWrapper<wxRendererVersion > result;
35267 void *argp1 = 0 ;
35268 int res1 = 0 ;
35269 PyObject *swig_obj[1] ;
35270
35271 if (!args) SWIG_fail;
35272 swig_obj[0] = args;
35273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35274 if (!SWIG_IsOK(res1)) {
35275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
35276 }
35277 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35278 {
35279 PyThreadState* __tstate = wxPyBeginAllowThreads();
35280 result = ((wxRendererNative const *)arg1)->GetVersion();
35281 wxPyEndAllowThreads(__tstate);
35282 if (PyErr_Occurred()) SWIG_fail;
35283 }
35284 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
35285 return resultobj;
35286 fail:
35287 return NULL;
35288 }
35289
35290
35291 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35292 PyObject *obj;
35293 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35294 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
35295 return SWIG_Py_Void();
35296 }
35297
35298 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35299 PyObject *resultobj = 0;
35300 wxPseudoDC *result = 0 ;
35301
35302 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
35303 {
35304 PyThreadState* __tstate = wxPyBeginAllowThreads();
35305 result = (wxPseudoDC *)new wxPseudoDC();
35306 wxPyEndAllowThreads(__tstate);
35307 if (PyErr_Occurred()) SWIG_fail;
35308 }
35309 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
35310 return resultobj;
35311 fail:
35312 return NULL;
35313 }
35314
35315
35316 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35317 PyObject *resultobj = 0;
35318 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35319 void *argp1 = 0 ;
35320 int res1 = 0 ;
35321 PyObject *swig_obj[1] ;
35322
35323 if (!args) SWIG_fail;
35324 swig_obj[0] = args;
35325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35326 if (!SWIG_IsOK(res1)) {
35327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35328 }
35329 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35330 {
35331 PyThreadState* __tstate = wxPyBeginAllowThreads();
35332 (arg1)->BeginDrawing();
35333 wxPyEndAllowThreads(__tstate);
35334 if (PyErr_Occurred()) SWIG_fail;
35335 }
35336 resultobj = SWIG_Py_Void();
35337 return resultobj;
35338 fail:
35339 return NULL;
35340 }
35341
35342
35343 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35344 PyObject *resultobj = 0;
35345 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35346 void *argp1 = 0 ;
35347 int res1 = 0 ;
35348 PyObject *swig_obj[1] ;
35349
35350 if (!args) SWIG_fail;
35351 swig_obj[0] = args;
35352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35353 if (!SWIG_IsOK(res1)) {
35354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35355 }
35356 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35357 {
35358 PyThreadState* __tstate = wxPyBeginAllowThreads();
35359 (arg1)->EndDrawing();
35360 wxPyEndAllowThreads(__tstate);
35361 if (PyErr_Occurred()) SWIG_fail;
35362 }
35363 resultobj = SWIG_Py_Void();
35364 return resultobj;
35365 fail:
35366 return NULL;
35367 }
35368
35369
35370 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35371 PyObject *resultobj = 0;
35372 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35373 void *argp1 = 0 ;
35374 int res1 = 0 ;
35375 PyObject *swig_obj[1] ;
35376
35377 if (!args) SWIG_fail;
35378 swig_obj[0] = args;
35379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
35380 if (!SWIG_IsOK(res1)) {
35381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35382 }
35383 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35384 {
35385 PyThreadState* __tstate = wxPyBeginAllowThreads();
35386 delete arg1;
35387
35388 wxPyEndAllowThreads(__tstate);
35389 if (PyErr_Occurred()) SWIG_fail;
35390 }
35391 resultobj = SWIG_Py_Void();
35392 return resultobj;
35393 fail:
35394 return NULL;
35395 }
35396
35397
35398 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35399 PyObject *resultobj = 0;
35400 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35401 void *argp1 = 0 ;
35402 int res1 = 0 ;
35403 PyObject *swig_obj[1] ;
35404
35405 if (!args) SWIG_fail;
35406 swig_obj[0] = args;
35407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35408 if (!SWIG_IsOK(res1)) {
35409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35410 }
35411 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35412 {
35413 PyThreadState* __tstate = wxPyBeginAllowThreads();
35414 (arg1)->RemoveAll();
35415 wxPyEndAllowThreads(__tstate);
35416 if (PyErr_Occurred()) SWIG_fail;
35417 }
35418 resultobj = SWIG_Py_Void();
35419 return resultobj;
35420 fail:
35421 return NULL;
35422 }
35423
35424
35425 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35426 PyObject *resultobj = 0;
35427 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35428 int result;
35429 void *argp1 = 0 ;
35430 int res1 = 0 ;
35431 PyObject *swig_obj[1] ;
35432
35433 if (!args) SWIG_fail;
35434 swig_obj[0] = args;
35435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35436 if (!SWIG_IsOK(res1)) {
35437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35438 }
35439 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35440 {
35441 PyThreadState* __tstate = wxPyBeginAllowThreads();
35442 result = (int)(arg1)->GetLen();
35443 wxPyEndAllowThreads(__tstate);
35444 if (PyErr_Occurred()) SWIG_fail;
35445 }
35446 resultobj = SWIG_From_int(static_cast< int >(result));
35447 return resultobj;
35448 fail:
35449 return NULL;
35450 }
35451
35452
35453 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35454 PyObject *resultobj = 0;
35455 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35456 int arg2 ;
35457 void *argp1 = 0 ;
35458 int res1 = 0 ;
35459 int val2 ;
35460 int ecode2 = 0 ;
35461 PyObject * obj0 = 0 ;
35462 PyObject * obj1 = 0 ;
35463 char * kwnames[] = {
35464 (char *) "self",(char *) "id", NULL
35465 };
35466
35467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
35468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35469 if (!SWIG_IsOK(res1)) {
35470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35471 }
35472 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35473 ecode2 = SWIG_AsVal_int(obj1, &val2);
35474 if (!SWIG_IsOK(ecode2)) {
35475 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
35476 }
35477 arg2 = static_cast< int >(val2);
35478 {
35479 PyThreadState* __tstate = wxPyBeginAllowThreads();
35480 (arg1)->SetId(arg2);
35481 wxPyEndAllowThreads(__tstate);
35482 if (PyErr_Occurred()) SWIG_fail;
35483 }
35484 resultobj = SWIG_Py_Void();
35485 return resultobj;
35486 fail:
35487 return NULL;
35488 }
35489
35490
35491 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35492 PyObject *resultobj = 0;
35493 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35494 int arg2 ;
35495 void *argp1 = 0 ;
35496 int res1 = 0 ;
35497 int val2 ;
35498 int ecode2 = 0 ;
35499 PyObject * obj0 = 0 ;
35500 PyObject * obj1 = 0 ;
35501 char * kwnames[] = {
35502 (char *) "self",(char *) "id", NULL
35503 };
35504
35505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
35506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35507 if (!SWIG_IsOK(res1)) {
35508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35509 }
35510 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35511 ecode2 = SWIG_AsVal_int(obj1, &val2);
35512 if (!SWIG_IsOK(ecode2)) {
35513 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
35514 }
35515 arg2 = static_cast< int >(val2);
35516 {
35517 PyThreadState* __tstate = wxPyBeginAllowThreads();
35518 (arg1)->ClearId(arg2);
35519 wxPyEndAllowThreads(__tstate);
35520 if (PyErr_Occurred()) SWIG_fail;
35521 }
35522 resultobj = SWIG_Py_Void();
35523 return resultobj;
35524 fail:
35525 return NULL;
35526 }
35527
35528
35529 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35530 PyObject *resultobj = 0;
35531 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35532 int arg2 ;
35533 void *argp1 = 0 ;
35534 int res1 = 0 ;
35535 int val2 ;
35536 int ecode2 = 0 ;
35537 PyObject * obj0 = 0 ;
35538 PyObject * obj1 = 0 ;
35539 char * kwnames[] = {
35540 (char *) "self",(char *) "id", NULL
35541 };
35542
35543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
35544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35545 if (!SWIG_IsOK(res1)) {
35546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35547 }
35548 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35549 ecode2 = SWIG_AsVal_int(obj1, &val2);
35550 if (!SWIG_IsOK(ecode2)) {
35551 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
35552 }
35553 arg2 = static_cast< int >(val2);
35554 {
35555 PyThreadState* __tstate = wxPyBeginAllowThreads();
35556 (arg1)->RemoveId(arg2);
35557 wxPyEndAllowThreads(__tstate);
35558 if (PyErr_Occurred()) SWIG_fail;
35559 }
35560 resultobj = SWIG_Py_Void();
35561 return resultobj;
35562 fail:
35563 return NULL;
35564 }
35565
35566
35567 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35568 PyObject *resultobj = 0;
35569 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35570 int arg2 ;
35571 int arg3 ;
35572 int arg4 ;
35573 void *argp1 = 0 ;
35574 int res1 = 0 ;
35575 int val2 ;
35576 int ecode2 = 0 ;
35577 int val3 ;
35578 int ecode3 = 0 ;
35579 int val4 ;
35580 int ecode4 = 0 ;
35581 PyObject * obj0 = 0 ;
35582 PyObject * obj1 = 0 ;
35583 PyObject * obj2 = 0 ;
35584 PyObject * obj3 = 0 ;
35585 char * kwnames[] = {
35586 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
35587 };
35588
35589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35591 if (!SWIG_IsOK(res1)) {
35592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35593 }
35594 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35595 ecode2 = SWIG_AsVal_int(obj1, &val2);
35596 if (!SWIG_IsOK(ecode2)) {
35597 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
35598 }
35599 arg2 = static_cast< int >(val2);
35600 ecode3 = SWIG_AsVal_int(obj2, &val3);
35601 if (!SWIG_IsOK(ecode3)) {
35602 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
35603 }
35604 arg3 = static_cast< int >(val3);
35605 ecode4 = SWIG_AsVal_int(obj3, &val4);
35606 if (!SWIG_IsOK(ecode4)) {
35607 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
35608 }
35609 arg4 = static_cast< int >(val4);
35610 {
35611 PyThreadState* __tstate = wxPyBeginAllowThreads();
35612 (arg1)->TranslateId(arg2,arg3,arg4);
35613 wxPyEndAllowThreads(__tstate);
35614 if (PyErr_Occurred()) SWIG_fail;
35615 }
35616 resultobj = SWIG_Py_Void();
35617 return resultobj;
35618 fail:
35619 return NULL;
35620 }
35621
35622
35623 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35624 PyObject *resultobj = 0;
35625 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35626 int arg2 ;
35627 bool arg3 = (bool) true ;
35628 void *argp1 = 0 ;
35629 int res1 = 0 ;
35630 int val2 ;
35631 int ecode2 = 0 ;
35632 bool val3 ;
35633 int ecode3 = 0 ;
35634 PyObject * obj0 = 0 ;
35635 PyObject * obj1 = 0 ;
35636 PyObject * obj2 = 0 ;
35637 char * kwnames[] = {
35638 (char *) "self",(char *) "id",(char *) "greyout", NULL
35639 };
35640
35641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35643 if (!SWIG_IsOK(res1)) {
35644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35645 }
35646 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35647 ecode2 = SWIG_AsVal_int(obj1, &val2);
35648 if (!SWIG_IsOK(ecode2)) {
35649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35650 }
35651 arg2 = static_cast< int >(val2);
35652 if (obj2) {
35653 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35654 if (!SWIG_IsOK(ecode3)) {
35655 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
35656 }
35657 arg3 = static_cast< bool >(val3);
35658 }
35659 {
35660 PyThreadState* __tstate = wxPyBeginAllowThreads();
35661 (arg1)->SetIdGreyedOut(arg2,arg3);
35662 wxPyEndAllowThreads(__tstate);
35663 if (PyErr_Occurred()) SWIG_fail;
35664 }
35665 resultobj = SWIG_Py_Void();
35666 return resultobj;
35667 fail:
35668 return NULL;
35669 }
35670
35671
35672 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35673 PyObject *resultobj = 0;
35674 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35675 int arg2 ;
35676 bool result;
35677 void *argp1 = 0 ;
35678 int res1 = 0 ;
35679 int val2 ;
35680 int ecode2 = 0 ;
35681 PyObject * obj0 = 0 ;
35682 PyObject * obj1 = 0 ;
35683 char * kwnames[] = {
35684 (char *) "self",(char *) "id", NULL
35685 };
35686
35687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
35688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35689 if (!SWIG_IsOK(res1)) {
35690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35691 }
35692 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35693 ecode2 = SWIG_AsVal_int(obj1, &val2);
35694 if (!SWIG_IsOK(ecode2)) {
35695 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35696 }
35697 arg2 = static_cast< int >(val2);
35698 {
35699 PyThreadState* __tstate = wxPyBeginAllowThreads();
35700 result = (bool)(arg1)->GetIdGreyedOut(arg2);
35701 wxPyEndAllowThreads(__tstate);
35702 if (PyErr_Occurred()) SWIG_fail;
35703 }
35704 {
35705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35706 }
35707 return resultobj;
35708 fail:
35709 return NULL;
35710 }
35711
35712
35713 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35714 PyObject *resultobj = 0;
35715 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35716 int arg2 ;
35717 int arg3 ;
35718 int arg4 = (int) 1 ;
35719 wxColor const &arg5_defvalue = *wxWHITE ;
35720 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
35721 PyObject *result = 0 ;
35722 void *argp1 = 0 ;
35723 int res1 = 0 ;
35724 int val2 ;
35725 int ecode2 = 0 ;
35726 int val3 ;
35727 int ecode3 = 0 ;
35728 int val4 ;
35729 int ecode4 = 0 ;
35730 void *argp5 = 0 ;
35731 int res5 = 0 ;
35732 PyObject * obj0 = 0 ;
35733 PyObject * obj1 = 0 ;
35734 PyObject * obj2 = 0 ;
35735 PyObject * obj3 = 0 ;
35736 PyObject * obj4 = 0 ;
35737 char * kwnames[] = {
35738 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
35739 };
35740
35741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35743 if (!SWIG_IsOK(res1)) {
35744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35745 }
35746 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35747 ecode2 = SWIG_AsVal_int(obj1, &val2);
35748 if (!SWIG_IsOK(ecode2)) {
35749 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
35750 }
35751 arg2 = static_cast< int >(val2);
35752 ecode3 = SWIG_AsVal_int(obj2, &val3);
35753 if (!SWIG_IsOK(ecode3)) {
35754 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
35755 }
35756 arg3 = static_cast< int >(val3);
35757 if (obj3) {
35758 ecode4 = SWIG_AsVal_int(obj3, &val4);
35759 if (!SWIG_IsOK(ecode4)) {
35760 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
35761 }
35762 arg4 = static_cast< int >(val4);
35763 }
35764 if (obj4) {
35765 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
35766 if (!SWIG_IsOK(res5)) {
35767 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35768 }
35769 if (!argp5) {
35770 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35771 }
35772 arg5 = reinterpret_cast< wxColor * >(argp5);
35773 }
35774 {
35775 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
35776 if (PyErr_Occurred()) SWIG_fail;
35777 }
35778 resultobj = result;
35779 return resultobj;
35780 fail:
35781 return NULL;
35782 }
35783
35784
35785 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35786 PyObject *resultobj = 0;
35787 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35788 int arg2 ;
35789 int arg3 ;
35790 PyObject *result = 0 ;
35791 void *argp1 = 0 ;
35792 int res1 = 0 ;
35793 int val2 ;
35794 int ecode2 = 0 ;
35795 int val3 ;
35796 int ecode3 = 0 ;
35797 PyObject * obj0 = 0 ;
35798 PyObject * obj1 = 0 ;
35799 PyObject * obj2 = 0 ;
35800 char * kwnames[] = {
35801 (char *) "self",(char *) "x",(char *) "y", NULL
35802 };
35803
35804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35806 if (!SWIG_IsOK(res1)) {
35807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35808 }
35809 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35810 ecode2 = SWIG_AsVal_int(obj1, &val2);
35811 if (!SWIG_IsOK(ecode2)) {
35812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
35813 }
35814 arg2 = static_cast< int >(val2);
35815 ecode3 = SWIG_AsVal_int(obj2, &val3);
35816 if (!SWIG_IsOK(ecode3)) {
35817 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
35818 }
35819 arg3 = static_cast< int >(val3);
35820 {
35821 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
35822 if (PyErr_Occurred()) SWIG_fail;
35823 }
35824 resultobj = result;
35825 return resultobj;
35826 fail:
35827 return NULL;
35828 }
35829
35830
35831 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35832 PyObject *resultobj = 0;
35833 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35834 int arg2 ;
35835 wxDC *arg3 = (wxDC *) 0 ;
35836 void *argp1 = 0 ;
35837 int res1 = 0 ;
35838 int val2 ;
35839 int ecode2 = 0 ;
35840 void *argp3 = 0 ;
35841 int res3 = 0 ;
35842 PyObject * obj0 = 0 ;
35843 PyObject * obj1 = 0 ;
35844 PyObject * obj2 = 0 ;
35845 char * kwnames[] = {
35846 (char *) "self",(char *) "id",(char *) "dc", NULL
35847 };
35848
35849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35851 if (!SWIG_IsOK(res1)) {
35852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35853 }
35854 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35855 ecode2 = SWIG_AsVal_int(obj1, &val2);
35856 if (!SWIG_IsOK(ecode2)) {
35857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
35858 }
35859 arg2 = static_cast< int >(val2);
35860 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
35861 if (!SWIG_IsOK(res3)) {
35862 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
35863 }
35864 arg3 = reinterpret_cast< wxDC * >(argp3);
35865 {
35866 PyThreadState* __tstate = wxPyBeginAllowThreads();
35867 (arg1)->DrawIdToDC(arg2,arg3);
35868 wxPyEndAllowThreads(__tstate);
35869 if (PyErr_Occurred()) SWIG_fail;
35870 }
35871 resultobj = SWIG_Py_Void();
35872 return resultobj;
35873 fail:
35874 return NULL;
35875 }
35876
35877
35878 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35879 PyObject *resultobj = 0;
35880 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35881 int arg2 ;
35882 wxRect *arg3 = 0 ;
35883 void *argp1 = 0 ;
35884 int res1 = 0 ;
35885 int val2 ;
35886 int ecode2 = 0 ;
35887 wxRect temp3 ;
35888 PyObject * obj0 = 0 ;
35889 PyObject * obj1 = 0 ;
35890 PyObject * obj2 = 0 ;
35891 char * kwnames[] = {
35892 (char *) "self",(char *) "id",(char *) "rect", NULL
35893 };
35894
35895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35897 if (!SWIG_IsOK(res1)) {
35898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35899 }
35900 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35901 ecode2 = SWIG_AsVal_int(obj1, &val2);
35902 if (!SWIG_IsOK(ecode2)) {
35903 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
35904 }
35905 arg2 = static_cast< int >(val2);
35906 {
35907 arg3 = &temp3;
35908 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35909 }
35910 {
35911 PyThreadState* __tstate = wxPyBeginAllowThreads();
35912 (arg1)->SetIdBounds(arg2,*arg3);
35913 wxPyEndAllowThreads(__tstate);
35914 if (PyErr_Occurred()) SWIG_fail;
35915 }
35916 resultobj = SWIG_Py_Void();
35917 return resultobj;
35918 fail:
35919 return NULL;
35920 }
35921
35922
35923 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35924 PyObject *resultobj = 0;
35925 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35926 int arg2 ;
35927 wxRect result;
35928 void *argp1 = 0 ;
35929 int res1 = 0 ;
35930 int val2 ;
35931 int ecode2 = 0 ;
35932 PyObject * obj0 = 0 ;
35933 PyObject * obj1 = 0 ;
35934 char * kwnames[] = {
35935 (char *) "self",(char *) "id", NULL
35936 };
35937
35938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
35939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35940 if (!SWIG_IsOK(res1)) {
35941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35942 }
35943 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35944 ecode2 = SWIG_AsVal_int(obj1, &val2);
35945 if (!SWIG_IsOK(ecode2)) {
35946 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
35947 }
35948 arg2 = static_cast< int >(val2);
35949 {
35950 PyThreadState* __tstate = wxPyBeginAllowThreads();
35951 result = wxPseudoDC_GetIdBounds(arg1,arg2);
35952 wxPyEndAllowThreads(__tstate);
35953 if (PyErr_Occurred()) SWIG_fail;
35954 }
35955 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
35956 return resultobj;
35957 fail:
35958 return NULL;
35959 }
35960
35961
35962 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35963 PyObject *resultobj = 0;
35964 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35965 wxDC *arg2 = (wxDC *) 0 ;
35966 wxRect *arg3 = 0 ;
35967 void *argp1 = 0 ;
35968 int res1 = 0 ;
35969 void *argp2 = 0 ;
35970 int res2 = 0 ;
35971 wxRect temp3 ;
35972 PyObject * obj0 = 0 ;
35973 PyObject * obj1 = 0 ;
35974 PyObject * obj2 = 0 ;
35975 char * kwnames[] = {
35976 (char *) "self",(char *) "dc",(char *) "rect", NULL
35977 };
35978
35979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35981 if (!SWIG_IsOK(res1)) {
35982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35983 }
35984 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35985 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35986 if (!SWIG_IsOK(res2)) {
35987 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
35988 }
35989 arg2 = reinterpret_cast< wxDC * >(argp2);
35990 {
35991 arg3 = &temp3;
35992 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35993 }
35994 {
35995 PyThreadState* __tstate = wxPyBeginAllowThreads();
35996 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
35997 wxPyEndAllowThreads(__tstate);
35998 if (PyErr_Occurred()) SWIG_fail;
35999 }
36000 resultobj = SWIG_Py_Void();
36001 return resultobj;
36002 fail:
36003 return NULL;
36004 }
36005
36006
36007 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36008 PyObject *resultobj = 0;
36009 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36010 wxDC *arg2 = (wxDC *) 0 ;
36011 wxRegion *arg3 = 0 ;
36012 void *argp1 = 0 ;
36013 int res1 = 0 ;
36014 void *argp2 = 0 ;
36015 int res2 = 0 ;
36016 void *argp3 = 0 ;
36017 int res3 = 0 ;
36018 PyObject * obj0 = 0 ;
36019 PyObject * obj1 = 0 ;
36020 PyObject * obj2 = 0 ;
36021 char * kwnames[] = {
36022 (char *) "self",(char *) "dc",(char *) "region", NULL
36023 };
36024
36025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36027 if (!SWIG_IsOK(res1)) {
36028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36029 }
36030 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36031 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36032 if (!SWIG_IsOK(res2)) {
36033 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
36034 }
36035 arg2 = reinterpret_cast< wxDC * >(argp2);
36036 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
36037 if (!SWIG_IsOK(res3)) {
36038 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36039 }
36040 if (!argp3) {
36041 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36042 }
36043 arg3 = reinterpret_cast< wxRegion * >(argp3);
36044 {
36045 PyThreadState* __tstate = wxPyBeginAllowThreads();
36046 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
36047 wxPyEndAllowThreads(__tstate);
36048 if (PyErr_Occurred()) SWIG_fail;
36049 }
36050 resultobj = SWIG_Py_Void();
36051 return resultobj;
36052 fail:
36053 return NULL;
36054 }
36055
36056
36057 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36058 PyObject *resultobj = 0;
36059 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36060 wxDC *arg2 = (wxDC *) 0 ;
36061 void *argp1 = 0 ;
36062 int res1 = 0 ;
36063 void *argp2 = 0 ;
36064 int res2 = 0 ;
36065 PyObject * obj0 = 0 ;
36066 PyObject * obj1 = 0 ;
36067 char * kwnames[] = {
36068 (char *) "self",(char *) "dc", NULL
36069 };
36070
36071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
36072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36073 if (!SWIG_IsOK(res1)) {
36074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36075 }
36076 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36077 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36078 if (!SWIG_IsOK(res2)) {
36079 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
36080 }
36081 arg2 = reinterpret_cast< wxDC * >(argp2);
36082 {
36083 PyThreadState* __tstate = wxPyBeginAllowThreads();
36084 (arg1)->DrawToDC(arg2);
36085 wxPyEndAllowThreads(__tstate);
36086 if (PyErr_Occurred()) SWIG_fail;
36087 }
36088 resultobj = SWIG_Py_Void();
36089 return resultobj;
36090 fail:
36091 return NULL;
36092 }
36093
36094
36095 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36096 PyObject *resultobj = 0;
36097 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36098 int arg2 ;
36099 int arg3 ;
36100 wxColour *arg4 = 0 ;
36101 int arg5 = (int) wxFLOOD_SURFACE ;
36102 void *argp1 = 0 ;
36103 int res1 = 0 ;
36104 int val2 ;
36105 int ecode2 = 0 ;
36106 int val3 ;
36107 int ecode3 = 0 ;
36108 wxColour temp4 ;
36109 int val5 ;
36110 int ecode5 = 0 ;
36111 PyObject * obj0 = 0 ;
36112 PyObject * obj1 = 0 ;
36113 PyObject * obj2 = 0 ;
36114 PyObject * obj3 = 0 ;
36115 PyObject * obj4 = 0 ;
36116 char * kwnames[] = {
36117 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
36118 };
36119
36120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36122 if (!SWIG_IsOK(res1)) {
36123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36124 }
36125 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36126 ecode2 = SWIG_AsVal_int(obj1, &val2);
36127 if (!SWIG_IsOK(ecode2)) {
36128 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
36129 }
36130 arg2 = static_cast< int >(val2);
36131 ecode3 = SWIG_AsVal_int(obj2, &val3);
36132 if (!SWIG_IsOK(ecode3)) {
36133 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
36134 }
36135 arg3 = static_cast< int >(val3);
36136 {
36137 arg4 = &temp4;
36138 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
36139 }
36140 if (obj4) {
36141 ecode5 = SWIG_AsVal_int(obj4, &val5);
36142 if (!SWIG_IsOK(ecode5)) {
36143 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
36144 }
36145 arg5 = static_cast< int >(val5);
36146 }
36147 {
36148 PyThreadState* __tstate = wxPyBeginAllowThreads();
36149 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
36150 wxPyEndAllowThreads(__tstate);
36151 if (PyErr_Occurred()) SWIG_fail;
36152 }
36153 resultobj = SWIG_Py_Void();
36154 return resultobj;
36155 fail:
36156 return NULL;
36157 }
36158
36159
36160 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36161 PyObject *resultobj = 0;
36162 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36163 wxPoint *arg2 = 0 ;
36164 wxColour *arg3 = 0 ;
36165 int arg4 = (int) wxFLOOD_SURFACE ;
36166 void *argp1 = 0 ;
36167 int res1 = 0 ;
36168 wxPoint temp2 ;
36169 wxColour temp3 ;
36170 int val4 ;
36171 int ecode4 = 0 ;
36172 PyObject * obj0 = 0 ;
36173 PyObject * obj1 = 0 ;
36174 PyObject * obj2 = 0 ;
36175 PyObject * obj3 = 0 ;
36176 char * kwnames[] = {
36177 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
36178 };
36179
36180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36182 if (!SWIG_IsOK(res1)) {
36183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36184 }
36185 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36186 {
36187 arg2 = &temp2;
36188 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36189 }
36190 {
36191 arg3 = &temp3;
36192 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
36193 }
36194 if (obj3) {
36195 ecode4 = SWIG_AsVal_int(obj3, &val4);
36196 if (!SWIG_IsOK(ecode4)) {
36197 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
36198 }
36199 arg4 = static_cast< int >(val4);
36200 }
36201 {
36202 PyThreadState* __tstate = wxPyBeginAllowThreads();
36203 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
36204 wxPyEndAllowThreads(__tstate);
36205 if (PyErr_Occurred()) SWIG_fail;
36206 }
36207 resultobj = SWIG_Py_Void();
36208 return resultobj;
36209 fail:
36210 return NULL;
36211 }
36212
36213
36214 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36215 PyObject *resultobj = 0;
36216 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36217 int arg2 ;
36218 int arg3 ;
36219 int arg4 ;
36220 int arg5 ;
36221 void *argp1 = 0 ;
36222 int res1 = 0 ;
36223 int val2 ;
36224 int ecode2 = 0 ;
36225 int val3 ;
36226 int ecode3 = 0 ;
36227 int val4 ;
36228 int ecode4 = 0 ;
36229 int val5 ;
36230 int ecode5 = 0 ;
36231 PyObject * obj0 = 0 ;
36232 PyObject * obj1 = 0 ;
36233 PyObject * obj2 = 0 ;
36234 PyObject * obj3 = 0 ;
36235 PyObject * obj4 = 0 ;
36236 char * kwnames[] = {
36237 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
36238 };
36239
36240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36242 if (!SWIG_IsOK(res1)) {
36243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36244 }
36245 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36246 ecode2 = SWIG_AsVal_int(obj1, &val2);
36247 if (!SWIG_IsOK(ecode2)) {
36248 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
36249 }
36250 arg2 = static_cast< int >(val2);
36251 ecode3 = SWIG_AsVal_int(obj2, &val3);
36252 if (!SWIG_IsOK(ecode3)) {
36253 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
36254 }
36255 arg3 = static_cast< int >(val3);
36256 ecode4 = SWIG_AsVal_int(obj3, &val4);
36257 if (!SWIG_IsOK(ecode4)) {
36258 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
36259 }
36260 arg4 = static_cast< int >(val4);
36261 ecode5 = SWIG_AsVal_int(obj4, &val5);
36262 if (!SWIG_IsOK(ecode5)) {
36263 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
36264 }
36265 arg5 = static_cast< int >(val5);
36266 {
36267 PyThreadState* __tstate = wxPyBeginAllowThreads();
36268 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
36269 wxPyEndAllowThreads(__tstate);
36270 if (PyErr_Occurred()) SWIG_fail;
36271 }
36272 resultobj = SWIG_Py_Void();
36273 return resultobj;
36274 fail:
36275 return NULL;
36276 }
36277
36278
36279 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36280 PyObject *resultobj = 0;
36281 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36282 wxPoint *arg2 = 0 ;
36283 wxPoint *arg3 = 0 ;
36284 void *argp1 = 0 ;
36285 int res1 = 0 ;
36286 wxPoint temp2 ;
36287 wxPoint temp3 ;
36288 PyObject * obj0 = 0 ;
36289 PyObject * obj1 = 0 ;
36290 PyObject * obj2 = 0 ;
36291 char * kwnames[] = {
36292 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
36293 };
36294
36295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36297 if (!SWIG_IsOK(res1)) {
36298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36299 }
36300 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36301 {
36302 arg2 = &temp2;
36303 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36304 }
36305 {
36306 arg3 = &temp3;
36307 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36308 }
36309 {
36310 PyThreadState* __tstate = wxPyBeginAllowThreads();
36311 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
36312 wxPyEndAllowThreads(__tstate);
36313 if (PyErr_Occurred()) SWIG_fail;
36314 }
36315 resultobj = SWIG_Py_Void();
36316 return resultobj;
36317 fail:
36318 return NULL;
36319 }
36320
36321
36322 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36323 PyObject *resultobj = 0;
36324 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36325 int arg2 ;
36326 int arg3 ;
36327 void *argp1 = 0 ;
36328 int res1 = 0 ;
36329 int val2 ;
36330 int ecode2 = 0 ;
36331 int val3 ;
36332 int ecode3 = 0 ;
36333 PyObject * obj0 = 0 ;
36334 PyObject * obj1 = 0 ;
36335 PyObject * obj2 = 0 ;
36336 char * kwnames[] = {
36337 (char *) "self",(char *) "x",(char *) "y", NULL
36338 };
36339
36340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36342 if (!SWIG_IsOK(res1)) {
36343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36344 }
36345 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36346 ecode2 = SWIG_AsVal_int(obj1, &val2);
36347 if (!SWIG_IsOK(ecode2)) {
36348 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
36349 }
36350 arg2 = static_cast< int >(val2);
36351 ecode3 = SWIG_AsVal_int(obj2, &val3);
36352 if (!SWIG_IsOK(ecode3)) {
36353 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
36354 }
36355 arg3 = static_cast< int >(val3);
36356 {
36357 PyThreadState* __tstate = wxPyBeginAllowThreads();
36358 (arg1)->CrossHair(arg2,arg3);
36359 wxPyEndAllowThreads(__tstate);
36360 if (PyErr_Occurred()) SWIG_fail;
36361 }
36362 resultobj = SWIG_Py_Void();
36363 return resultobj;
36364 fail:
36365 return NULL;
36366 }
36367
36368
36369 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36370 PyObject *resultobj = 0;
36371 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36372 wxPoint *arg2 = 0 ;
36373 void *argp1 = 0 ;
36374 int res1 = 0 ;
36375 wxPoint temp2 ;
36376 PyObject * obj0 = 0 ;
36377 PyObject * obj1 = 0 ;
36378 char * kwnames[] = {
36379 (char *) "self",(char *) "pt", NULL
36380 };
36381
36382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36384 if (!SWIG_IsOK(res1)) {
36385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36386 }
36387 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36388 {
36389 arg2 = &temp2;
36390 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36391 }
36392 {
36393 PyThreadState* __tstate = wxPyBeginAllowThreads();
36394 (arg1)->CrossHair((wxPoint const &)*arg2);
36395 wxPyEndAllowThreads(__tstate);
36396 if (PyErr_Occurred()) SWIG_fail;
36397 }
36398 resultobj = SWIG_Py_Void();
36399 return resultobj;
36400 fail:
36401 return NULL;
36402 }
36403
36404
36405 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36406 PyObject *resultobj = 0;
36407 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36408 int arg2 ;
36409 int arg3 ;
36410 int arg4 ;
36411 int arg5 ;
36412 int arg6 ;
36413 int arg7 ;
36414 void *argp1 = 0 ;
36415 int res1 = 0 ;
36416 int val2 ;
36417 int ecode2 = 0 ;
36418 int val3 ;
36419 int ecode3 = 0 ;
36420 int val4 ;
36421 int ecode4 = 0 ;
36422 int val5 ;
36423 int ecode5 = 0 ;
36424 int val6 ;
36425 int ecode6 = 0 ;
36426 int val7 ;
36427 int ecode7 = 0 ;
36428 PyObject * obj0 = 0 ;
36429 PyObject * obj1 = 0 ;
36430 PyObject * obj2 = 0 ;
36431 PyObject * obj3 = 0 ;
36432 PyObject * obj4 = 0 ;
36433 PyObject * obj5 = 0 ;
36434 PyObject * obj6 = 0 ;
36435 char * kwnames[] = {
36436 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
36437 };
36438
36439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36441 if (!SWIG_IsOK(res1)) {
36442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36443 }
36444 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36445 ecode2 = SWIG_AsVal_int(obj1, &val2);
36446 if (!SWIG_IsOK(ecode2)) {
36447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
36448 }
36449 arg2 = static_cast< int >(val2);
36450 ecode3 = SWIG_AsVal_int(obj2, &val3);
36451 if (!SWIG_IsOK(ecode3)) {
36452 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
36453 }
36454 arg3 = static_cast< int >(val3);
36455 ecode4 = SWIG_AsVal_int(obj3, &val4);
36456 if (!SWIG_IsOK(ecode4)) {
36457 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
36458 }
36459 arg4 = static_cast< int >(val4);
36460 ecode5 = SWIG_AsVal_int(obj4, &val5);
36461 if (!SWIG_IsOK(ecode5)) {
36462 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
36463 }
36464 arg5 = static_cast< int >(val5);
36465 ecode6 = SWIG_AsVal_int(obj5, &val6);
36466 if (!SWIG_IsOK(ecode6)) {
36467 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
36468 }
36469 arg6 = static_cast< int >(val6);
36470 ecode7 = SWIG_AsVal_int(obj6, &val7);
36471 if (!SWIG_IsOK(ecode7)) {
36472 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
36473 }
36474 arg7 = static_cast< int >(val7);
36475 {
36476 PyThreadState* __tstate = wxPyBeginAllowThreads();
36477 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
36478 wxPyEndAllowThreads(__tstate);
36479 if (PyErr_Occurred()) SWIG_fail;
36480 }
36481 resultobj = SWIG_Py_Void();
36482 return resultobj;
36483 fail:
36484 return NULL;
36485 }
36486
36487
36488 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36489 PyObject *resultobj = 0;
36490 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36491 wxPoint *arg2 = 0 ;
36492 wxPoint *arg3 = 0 ;
36493 wxPoint *arg4 = 0 ;
36494 void *argp1 = 0 ;
36495 int res1 = 0 ;
36496 wxPoint temp2 ;
36497 wxPoint temp3 ;
36498 wxPoint temp4 ;
36499 PyObject * obj0 = 0 ;
36500 PyObject * obj1 = 0 ;
36501 PyObject * obj2 = 0 ;
36502 PyObject * obj3 = 0 ;
36503 char * kwnames[] = {
36504 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
36505 };
36506
36507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36509 if (!SWIG_IsOK(res1)) {
36510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36511 }
36512 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36513 {
36514 arg2 = &temp2;
36515 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36516 }
36517 {
36518 arg3 = &temp3;
36519 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36520 }
36521 {
36522 arg4 = &temp4;
36523 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36524 }
36525 {
36526 PyThreadState* __tstate = wxPyBeginAllowThreads();
36527 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
36528 wxPyEndAllowThreads(__tstate);
36529 if (PyErr_Occurred()) SWIG_fail;
36530 }
36531 resultobj = SWIG_Py_Void();
36532 return resultobj;
36533 fail:
36534 return NULL;
36535 }
36536
36537
36538 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36539 PyObject *resultobj = 0;
36540 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36541 int arg2 ;
36542 int arg3 ;
36543 int arg4 ;
36544 int arg5 ;
36545 void *argp1 = 0 ;
36546 int res1 = 0 ;
36547 int val2 ;
36548 int ecode2 = 0 ;
36549 int val3 ;
36550 int ecode3 = 0 ;
36551 int val4 ;
36552 int ecode4 = 0 ;
36553 int val5 ;
36554 int ecode5 = 0 ;
36555 PyObject * obj0 = 0 ;
36556 PyObject * obj1 = 0 ;
36557 PyObject * obj2 = 0 ;
36558 PyObject * obj3 = 0 ;
36559 PyObject * obj4 = 0 ;
36560 char * kwnames[] = {
36561 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36562 };
36563
36564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36566 if (!SWIG_IsOK(res1)) {
36567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36568 }
36569 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36570 ecode2 = SWIG_AsVal_int(obj1, &val2);
36571 if (!SWIG_IsOK(ecode2)) {
36572 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
36573 }
36574 arg2 = static_cast< int >(val2);
36575 ecode3 = SWIG_AsVal_int(obj2, &val3);
36576 if (!SWIG_IsOK(ecode3)) {
36577 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
36578 }
36579 arg3 = static_cast< int >(val3);
36580 ecode4 = SWIG_AsVal_int(obj3, &val4);
36581 if (!SWIG_IsOK(ecode4)) {
36582 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
36583 }
36584 arg4 = static_cast< int >(val4);
36585 ecode5 = SWIG_AsVal_int(obj4, &val5);
36586 if (!SWIG_IsOK(ecode5)) {
36587 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
36588 }
36589 arg5 = static_cast< int >(val5);
36590 {
36591 PyThreadState* __tstate = wxPyBeginAllowThreads();
36592 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
36593 wxPyEndAllowThreads(__tstate);
36594 if (PyErr_Occurred()) SWIG_fail;
36595 }
36596 resultobj = SWIG_Py_Void();
36597 return resultobj;
36598 fail:
36599 return NULL;
36600 }
36601
36602
36603 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36604 PyObject *resultobj = 0;
36605 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36606 wxRect *arg2 = 0 ;
36607 void *argp1 = 0 ;
36608 int res1 = 0 ;
36609 wxRect temp2 ;
36610 PyObject * obj0 = 0 ;
36611 PyObject * obj1 = 0 ;
36612 char * kwnames[] = {
36613 (char *) "self",(char *) "rect", NULL
36614 };
36615
36616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
36617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36618 if (!SWIG_IsOK(res1)) {
36619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36620 }
36621 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36622 {
36623 arg2 = &temp2;
36624 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36625 }
36626 {
36627 PyThreadState* __tstate = wxPyBeginAllowThreads();
36628 (arg1)->DrawCheckMark((wxRect const &)*arg2);
36629 wxPyEndAllowThreads(__tstate);
36630 if (PyErr_Occurred()) SWIG_fail;
36631 }
36632 resultobj = SWIG_Py_Void();
36633 return resultobj;
36634 fail:
36635 return NULL;
36636 }
36637
36638
36639 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36640 PyObject *resultobj = 0;
36641 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36642 int arg2 ;
36643 int arg3 ;
36644 int arg4 ;
36645 int arg5 ;
36646 double arg6 ;
36647 double arg7 ;
36648 void *argp1 = 0 ;
36649 int res1 = 0 ;
36650 int val2 ;
36651 int ecode2 = 0 ;
36652 int val3 ;
36653 int ecode3 = 0 ;
36654 int val4 ;
36655 int ecode4 = 0 ;
36656 int val5 ;
36657 int ecode5 = 0 ;
36658 double val6 ;
36659 int ecode6 = 0 ;
36660 double val7 ;
36661 int ecode7 = 0 ;
36662 PyObject * obj0 = 0 ;
36663 PyObject * obj1 = 0 ;
36664 PyObject * obj2 = 0 ;
36665 PyObject * obj3 = 0 ;
36666 PyObject * obj4 = 0 ;
36667 PyObject * obj5 = 0 ;
36668 PyObject * obj6 = 0 ;
36669 char * kwnames[] = {
36670 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
36671 };
36672
36673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36675 if (!SWIG_IsOK(res1)) {
36676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36677 }
36678 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36679 ecode2 = SWIG_AsVal_int(obj1, &val2);
36680 if (!SWIG_IsOK(ecode2)) {
36681 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
36682 }
36683 arg2 = static_cast< int >(val2);
36684 ecode3 = SWIG_AsVal_int(obj2, &val3);
36685 if (!SWIG_IsOK(ecode3)) {
36686 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
36687 }
36688 arg3 = static_cast< int >(val3);
36689 ecode4 = SWIG_AsVal_int(obj3, &val4);
36690 if (!SWIG_IsOK(ecode4)) {
36691 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
36692 }
36693 arg4 = static_cast< int >(val4);
36694 ecode5 = SWIG_AsVal_int(obj4, &val5);
36695 if (!SWIG_IsOK(ecode5)) {
36696 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
36697 }
36698 arg5 = static_cast< int >(val5);
36699 ecode6 = SWIG_AsVal_double(obj5, &val6);
36700 if (!SWIG_IsOK(ecode6)) {
36701 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
36702 }
36703 arg6 = static_cast< double >(val6);
36704 ecode7 = SWIG_AsVal_double(obj6, &val7);
36705 if (!SWIG_IsOK(ecode7)) {
36706 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
36707 }
36708 arg7 = static_cast< double >(val7);
36709 {
36710 PyThreadState* __tstate = wxPyBeginAllowThreads();
36711 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
36712 wxPyEndAllowThreads(__tstate);
36713 if (PyErr_Occurred()) SWIG_fail;
36714 }
36715 resultobj = SWIG_Py_Void();
36716 return resultobj;
36717 fail:
36718 return NULL;
36719 }
36720
36721
36722 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36723 PyObject *resultobj = 0;
36724 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36725 wxPoint *arg2 = 0 ;
36726 wxSize *arg3 = 0 ;
36727 double arg4 ;
36728 double arg5 ;
36729 void *argp1 = 0 ;
36730 int res1 = 0 ;
36731 wxPoint temp2 ;
36732 wxSize temp3 ;
36733 double val4 ;
36734 int ecode4 = 0 ;
36735 double val5 ;
36736 int ecode5 = 0 ;
36737 PyObject * obj0 = 0 ;
36738 PyObject * obj1 = 0 ;
36739 PyObject * obj2 = 0 ;
36740 PyObject * obj3 = 0 ;
36741 PyObject * obj4 = 0 ;
36742 char * kwnames[] = {
36743 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
36744 };
36745
36746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36748 if (!SWIG_IsOK(res1)) {
36749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36750 }
36751 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36752 {
36753 arg2 = &temp2;
36754 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36755 }
36756 {
36757 arg3 = &temp3;
36758 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36759 }
36760 ecode4 = SWIG_AsVal_double(obj3, &val4);
36761 if (!SWIG_IsOK(ecode4)) {
36762 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
36763 }
36764 arg4 = static_cast< double >(val4);
36765 ecode5 = SWIG_AsVal_double(obj4, &val5);
36766 if (!SWIG_IsOK(ecode5)) {
36767 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
36768 }
36769 arg5 = static_cast< double >(val5);
36770 {
36771 PyThreadState* __tstate = wxPyBeginAllowThreads();
36772 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
36773 wxPyEndAllowThreads(__tstate);
36774 if (PyErr_Occurred()) SWIG_fail;
36775 }
36776 resultobj = SWIG_Py_Void();
36777 return resultobj;
36778 fail:
36779 return NULL;
36780 }
36781
36782
36783 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36784 PyObject *resultobj = 0;
36785 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36786 int arg2 ;
36787 int arg3 ;
36788 void *argp1 = 0 ;
36789 int res1 = 0 ;
36790 int val2 ;
36791 int ecode2 = 0 ;
36792 int val3 ;
36793 int ecode3 = 0 ;
36794 PyObject * obj0 = 0 ;
36795 PyObject * obj1 = 0 ;
36796 PyObject * obj2 = 0 ;
36797 char * kwnames[] = {
36798 (char *) "self",(char *) "x",(char *) "y", NULL
36799 };
36800
36801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36803 if (!SWIG_IsOK(res1)) {
36804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36805 }
36806 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36807 ecode2 = SWIG_AsVal_int(obj1, &val2);
36808 if (!SWIG_IsOK(ecode2)) {
36809 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
36810 }
36811 arg2 = static_cast< int >(val2);
36812 ecode3 = SWIG_AsVal_int(obj2, &val3);
36813 if (!SWIG_IsOK(ecode3)) {
36814 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
36815 }
36816 arg3 = static_cast< int >(val3);
36817 {
36818 PyThreadState* __tstate = wxPyBeginAllowThreads();
36819 (arg1)->DrawPoint(arg2,arg3);
36820 wxPyEndAllowThreads(__tstate);
36821 if (PyErr_Occurred()) SWIG_fail;
36822 }
36823 resultobj = SWIG_Py_Void();
36824 return resultobj;
36825 fail:
36826 return NULL;
36827 }
36828
36829
36830 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36831 PyObject *resultobj = 0;
36832 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36833 wxPoint *arg2 = 0 ;
36834 void *argp1 = 0 ;
36835 int res1 = 0 ;
36836 wxPoint temp2 ;
36837 PyObject * obj0 = 0 ;
36838 PyObject * obj1 = 0 ;
36839 char * kwnames[] = {
36840 (char *) "self",(char *) "pt", NULL
36841 };
36842
36843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36845 if (!SWIG_IsOK(res1)) {
36846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36847 }
36848 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36849 {
36850 arg2 = &temp2;
36851 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36852 }
36853 {
36854 PyThreadState* __tstate = wxPyBeginAllowThreads();
36855 (arg1)->DrawPoint((wxPoint const &)*arg2);
36856 wxPyEndAllowThreads(__tstate);
36857 if (PyErr_Occurred()) SWIG_fail;
36858 }
36859 resultobj = SWIG_Py_Void();
36860 return resultobj;
36861 fail:
36862 return NULL;
36863 }
36864
36865
36866 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36867 PyObject *resultobj = 0;
36868 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36869 int arg2 ;
36870 int arg3 ;
36871 int arg4 ;
36872 int arg5 ;
36873 void *argp1 = 0 ;
36874 int res1 = 0 ;
36875 int val2 ;
36876 int ecode2 = 0 ;
36877 int val3 ;
36878 int ecode3 = 0 ;
36879 int val4 ;
36880 int ecode4 = 0 ;
36881 int val5 ;
36882 int ecode5 = 0 ;
36883 PyObject * obj0 = 0 ;
36884 PyObject * obj1 = 0 ;
36885 PyObject * obj2 = 0 ;
36886 PyObject * obj3 = 0 ;
36887 PyObject * obj4 = 0 ;
36888 char * kwnames[] = {
36889 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36890 };
36891
36892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36894 if (!SWIG_IsOK(res1)) {
36895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36896 }
36897 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36898 ecode2 = SWIG_AsVal_int(obj1, &val2);
36899 if (!SWIG_IsOK(ecode2)) {
36900 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
36901 }
36902 arg2 = static_cast< int >(val2);
36903 ecode3 = SWIG_AsVal_int(obj2, &val3);
36904 if (!SWIG_IsOK(ecode3)) {
36905 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
36906 }
36907 arg3 = static_cast< int >(val3);
36908 ecode4 = SWIG_AsVal_int(obj3, &val4);
36909 if (!SWIG_IsOK(ecode4)) {
36910 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
36911 }
36912 arg4 = static_cast< int >(val4);
36913 ecode5 = SWIG_AsVal_int(obj4, &val5);
36914 if (!SWIG_IsOK(ecode5)) {
36915 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
36916 }
36917 arg5 = static_cast< int >(val5);
36918 {
36919 PyThreadState* __tstate = wxPyBeginAllowThreads();
36920 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
36921 wxPyEndAllowThreads(__tstate);
36922 if (PyErr_Occurred()) SWIG_fail;
36923 }
36924 resultobj = SWIG_Py_Void();
36925 return resultobj;
36926 fail:
36927 return NULL;
36928 }
36929
36930
36931 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36932 PyObject *resultobj = 0;
36933 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36934 wxRect *arg2 = 0 ;
36935 void *argp1 = 0 ;
36936 int res1 = 0 ;
36937 wxRect temp2 ;
36938 PyObject * obj0 = 0 ;
36939 PyObject * obj1 = 0 ;
36940 char * kwnames[] = {
36941 (char *) "self",(char *) "rect", NULL
36942 };
36943
36944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
36945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36946 if (!SWIG_IsOK(res1)) {
36947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36948 }
36949 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36950 {
36951 arg2 = &temp2;
36952 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36953 }
36954 {
36955 PyThreadState* __tstate = wxPyBeginAllowThreads();
36956 (arg1)->DrawRectangle((wxRect const &)*arg2);
36957 wxPyEndAllowThreads(__tstate);
36958 if (PyErr_Occurred()) SWIG_fail;
36959 }
36960 resultobj = SWIG_Py_Void();
36961 return resultobj;
36962 fail:
36963 return NULL;
36964 }
36965
36966
36967 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36968 PyObject *resultobj = 0;
36969 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36970 wxPoint *arg2 = 0 ;
36971 wxSize *arg3 = 0 ;
36972 void *argp1 = 0 ;
36973 int res1 = 0 ;
36974 wxPoint temp2 ;
36975 wxSize temp3 ;
36976 PyObject * obj0 = 0 ;
36977 PyObject * obj1 = 0 ;
36978 PyObject * obj2 = 0 ;
36979 char * kwnames[] = {
36980 (char *) "self",(char *) "pt",(char *) "sz", NULL
36981 };
36982
36983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36985 if (!SWIG_IsOK(res1)) {
36986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36987 }
36988 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36989 {
36990 arg2 = &temp2;
36991 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36992 }
36993 {
36994 arg3 = &temp3;
36995 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36996 }
36997 {
36998 PyThreadState* __tstate = wxPyBeginAllowThreads();
36999 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
37000 wxPyEndAllowThreads(__tstate);
37001 if (PyErr_Occurred()) SWIG_fail;
37002 }
37003 resultobj = SWIG_Py_Void();
37004 return resultobj;
37005 fail:
37006 return NULL;
37007 }
37008
37009
37010 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37011 PyObject *resultobj = 0;
37012 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37013 int arg2 ;
37014 int arg3 ;
37015 int arg4 ;
37016 int arg5 ;
37017 double arg6 ;
37018 void *argp1 = 0 ;
37019 int res1 = 0 ;
37020 int val2 ;
37021 int ecode2 = 0 ;
37022 int val3 ;
37023 int ecode3 = 0 ;
37024 int val4 ;
37025 int ecode4 = 0 ;
37026 int val5 ;
37027 int ecode5 = 0 ;
37028 double val6 ;
37029 int ecode6 = 0 ;
37030 PyObject * obj0 = 0 ;
37031 PyObject * obj1 = 0 ;
37032 PyObject * obj2 = 0 ;
37033 PyObject * obj3 = 0 ;
37034 PyObject * obj4 = 0 ;
37035 PyObject * obj5 = 0 ;
37036 char * kwnames[] = {
37037 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
37038 };
37039
37040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37042 if (!SWIG_IsOK(res1)) {
37043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37044 }
37045 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37046 ecode2 = SWIG_AsVal_int(obj1, &val2);
37047 if (!SWIG_IsOK(ecode2)) {
37048 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
37049 }
37050 arg2 = static_cast< int >(val2);
37051 ecode3 = SWIG_AsVal_int(obj2, &val3);
37052 if (!SWIG_IsOK(ecode3)) {
37053 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
37054 }
37055 arg3 = static_cast< int >(val3);
37056 ecode4 = SWIG_AsVal_int(obj3, &val4);
37057 if (!SWIG_IsOK(ecode4)) {
37058 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
37059 }
37060 arg4 = static_cast< int >(val4);
37061 ecode5 = SWIG_AsVal_int(obj4, &val5);
37062 if (!SWIG_IsOK(ecode5)) {
37063 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
37064 }
37065 arg5 = static_cast< int >(val5);
37066 ecode6 = SWIG_AsVal_double(obj5, &val6);
37067 if (!SWIG_IsOK(ecode6)) {
37068 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
37069 }
37070 arg6 = static_cast< double >(val6);
37071 {
37072 PyThreadState* __tstate = wxPyBeginAllowThreads();
37073 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
37074 wxPyEndAllowThreads(__tstate);
37075 if (PyErr_Occurred()) SWIG_fail;
37076 }
37077 resultobj = SWIG_Py_Void();
37078 return resultobj;
37079 fail:
37080 return NULL;
37081 }
37082
37083
37084 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37085 PyObject *resultobj = 0;
37086 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37087 wxRect *arg2 = 0 ;
37088 double arg3 ;
37089 void *argp1 = 0 ;
37090 int res1 = 0 ;
37091 wxRect temp2 ;
37092 double val3 ;
37093 int ecode3 = 0 ;
37094 PyObject * obj0 = 0 ;
37095 PyObject * obj1 = 0 ;
37096 PyObject * obj2 = 0 ;
37097 char * kwnames[] = {
37098 (char *) "self",(char *) "r",(char *) "radius", NULL
37099 };
37100
37101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37103 if (!SWIG_IsOK(res1)) {
37104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37105 }
37106 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37107 {
37108 arg2 = &temp2;
37109 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37110 }
37111 ecode3 = SWIG_AsVal_double(obj2, &val3);
37112 if (!SWIG_IsOK(ecode3)) {
37113 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
37114 }
37115 arg3 = static_cast< double >(val3);
37116 {
37117 PyThreadState* __tstate = wxPyBeginAllowThreads();
37118 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
37119 wxPyEndAllowThreads(__tstate);
37120 if (PyErr_Occurred()) SWIG_fail;
37121 }
37122 resultobj = SWIG_Py_Void();
37123 return resultobj;
37124 fail:
37125 return NULL;
37126 }
37127
37128
37129 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37130 PyObject *resultobj = 0;
37131 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37132 wxPoint *arg2 = 0 ;
37133 wxSize *arg3 = 0 ;
37134 double arg4 ;
37135 void *argp1 = 0 ;
37136 int res1 = 0 ;
37137 wxPoint temp2 ;
37138 wxSize temp3 ;
37139 double val4 ;
37140 int ecode4 = 0 ;
37141 PyObject * obj0 = 0 ;
37142 PyObject * obj1 = 0 ;
37143 PyObject * obj2 = 0 ;
37144 PyObject * obj3 = 0 ;
37145 char * kwnames[] = {
37146 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
37147 };
37148
37149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37151 if (!SWIG_IsOK(res1)) {
37152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37153 }
37154 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37155 {
37156 arg2 = &temp2;
37157 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37158 }
37159 {
37160 arg3 = &temp3;
37161 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37162 }
37163 ecode4 = SWIG_AsVal_double(obj3, &val4);
37164 if (!SWIG_IsOK(ecode4)) {
37165 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
37166 }
37167 arg4 = static_cast< double >(val4);
37168 {
37169 PyThreadState* __tstate = wxPyBeginAllowThreads();
37170 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
37171 wxPyEndAllowThreads(__tstate);
37172 if (PyErr_Occurred()) SWIG_fail;
37173 }
37174 resultobj = SWIG_Py_Void();
37175 return resultobj;
37176 fail:
37177 return NULL;
37178 }
37179
37180
37181 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37182 PyObject *resultobj = 0;
37183 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37184 int arg2 ;
37185 int arg3 ;
37186 int arg4 ;
37187 void *argp1 = 0 ;
37188 int res1 = 0 ;
37189 int val2 ;
37190 int ecode2 = 0 ;
37191 int val3 ;
37192 int ecode3 = 0 ;
37193 int val4 ;
37194 int ecode4 = 0 ;
37195 PyObject * obj0 = 0 ;
37196 PyObject * obj1 = 0 ;
37197 PyObject * obj2 = 0 ;
37198 PyObject * obj3 = 0 ;
37199 char * kwnames[] = {
37200 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
37201 };
37202
37203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37205 if (!SWIG_IsOK(res1)) {
37206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37207 }
37208 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37209 ecode2 = SWIG_AsVal_int(obj1, &val2);
37210 if (!SWIG_IsOK(ecode2)) {
37211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
37212 }
37213 arg2 = static_cast< int >(val2);
37214 ecode3 = SWIG_AsVal_int(obj2, &val3);
37215 if (!SWIG_IsOK(ecode3)) {
37216 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
37217 }
37218 arg3 = static_cast< int >(val3);
37219 ecode4 = SWIG_AsVal_int(obj3, &val4);
37220 if (!SWIG_IsOK(ecode4)) {
37221 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
37222 }
37223 arg4 = static_cast< int >(val4);
37224 {
37225 PyThreadState* __tstate = wxPyBeginAllowThreads();
37226 (arg1)->DrawCircle(arg2,arg3,arg4);
37227 wxPyEndAllowThreads(__tstate);
37228 if (PyErr_Occurred()) SWIG_fail;
37229 }
37230 resultobj = SWIG_Py_Void();
37231 return resultobj;
37232 fail:
37233 return NULL;
37234 }
37235
37236
37237 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37238 PyObject *resultobj = 0;
37239 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37240 wxPoint *arg2 = 0 ;
37241 int arg3 ;
37242 void *argp1 = 0 ;
37243 int res1 = 0 ;
37244 wxPoint temp2 ;
37245 int val3 ;
37246 int ecode3 = 0 ;
37247 PyObject * obj0 = 0 ;
37248 PyObject * obj1 = 0 ;
37249 PyObject * obj2 = 0 ;
37250 char * kwnames[] = {
37251 (char *) "self",(char *) "pt",(char *) "radius", NULL
37252 };
37253
37254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37256 if (!SWIG_IsOK(res1)) {
37257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37258 }
37259 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37260 {
37261 arg2 = &temp2;
37262 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37263 }
37264 ecode3 = SWIG_AsVal_int(obj2, &val3);
37265 if (!SWIG_IsOK(ecode3)) {
37266 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
37267 }
37268 arg3 = static_cast< int >(val3);
37269 {
37270 PyThreadState* __tstate = wxPyBeginAllowThreads();
37271 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
37272 wxPyEndAllowThreads(__tstate);
37273 if (PyErr_Occurred()) SWIG_fail;
37274 }
37275 resultobj = SWIG_Py_Void();
37276 return resultobj;
37277 fail:
37278 return NULL;
37279 }
37280
37281
37282 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37283 PyObject *resultobj = 0;
37284 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37285 int arg2 ;
37286 int arg3 ;
37287 int arg4 ;
37288 int arg5 ;
37289 void *argp1 = 0 ;
37290 int res1 = 0 ;
37291 int val2 ;
37292 int ecode2 = 0 ;
37293 int val3 ;
37294 int ecode3 = 0 ;
37295 int val4 ;
37296 int ecode4 = 0 ;
37297 int val5 ;
37298 int ecode5 = 0 ;
37299 PyObject * obj0 = 0 ;
37300 PyObject * obj1 = 0 ;
37301 PyObject * obj2 = 0 ;
37302 PyObject * obj3 = 0 ;
37303 PyObject * obj4 = 0 ;
37304 char * kwnames[] = {
37305 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37306 };
37307
37308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37310 if (!SWIG_IsOK(res1)) {
37311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37312 }
37313 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37314 ecode2 = SWIG_AsVal_int(obj1, &val2);
37315 if (!SWIG_IsOK(ecode2)) {
37316 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
37317 }
37318 arg2 = static_cast< int >(val2);
37319 ecode3 = SWIG_AsVal_int(obj2, &val3);
37320 if (!SWIG_IsOK(ecode3)) {
37321 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
37322 }
37323 arg3 = static_cast< int >(val3);
37324 ecode4 = SWIG_AsVal_int(obj3, &val4);
37325 if (!SWIG_IsOK(ecode4)) {
37326 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
37327 }
37328 arg4 = static_cast< int >(val4);
37329 ecode5 = SWIG_AsVal_int(obj4, &val5);
37330 if (!SWIG_IsOK(ecode5)) {
37331 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
37332 }
37333 arg5 = static_cast< int >(val5);
37334 {
37335 PyThreadState* __tstate = wxPyBeginAllowThreads();
37336 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
37337 wxPyEndAllowThreads(__tstate);
37338 if (PyErr_Occurred()) SWIG_fail;
37339 }
37340 resultobj = SWIG_Py_Void();
37341 return resultobj;
37342 fail:
37343 return NULL;
37344 }
37345
37346
37347 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37348 PyObject *resultobj = 0;
37349 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37350 wxRect *arg2 = 0 ;
37351 void *argp1 = 0 ;
37352 int res1 = 0 ;
37353 wxRect temp2 ;
37354 PyObject * obj0 = 0 ;
37355 PyObject * obj1 = 0 ;
37356 char * kwnames[] = {
37357 (char *) "self",(char *) "rect", NULL
37358 };
37359
37360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
37361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37362 if (!SWIG_IsOK(res1)) {
37363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37364 }
37365 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37366 {
37367 arg2 = &temp2;
37368 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37369 }
37370 {
37371 PyThreadState* __tstate = wxPyBeginAllowThreads();
37372 (arg1)->DrawEllipse((wxRect const &)*arg2);
37373 wxPyEndAllowThreads(__tstate);
37374 if (PyErr_Occurred()) SWIG_fail;
37375 }
37376 resultobj = SWIG_Py_Void();
37377 return resultobj;
37378 fail:
37379 return NULL;
37380 }
37381
37382
37383 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37384 PyObject *resultobj = 0;
37385 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37386 wxPoint *arg2 = 0 ;
37387 wxSize *arg3 = 0 ;
37388 void *argp1 = 0 ;
37389 int res1 = 0 ;
37390 wxPoint temp2 ;
37391 wxSize temp3 ;
37392 PyObject * obj0 = 0 ;
37393 PyObject * obj1 = 0 ;
37394 PyObject * obj2 = 0 ;
37395 char * kwnames[] = {
37396 (char *) "self",(char *) "pt",(char *) "sz", NULL
37397 };
37398
37399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37401 if (!SWIG_IsOK(res1)) {
37402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37403 }
37404 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37405 {
37406 arg2 = &temp2;
37407 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37408 }
37409 {
37410 arg3 = &temp3;
37411 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37412 }
37413 {
37414 PyThreadState* __tstate = wxPyBeginAllowThreads();
37415 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
37416 wxPyEndAllowThreads(__tstate);
37417 if (PyErr_Occurred()) SWIG_fail;
37418 }
37419 resultobj = SWIG_Py_Void();
37420 return resultobj;
37421 fail:
37422 return NULL;
37423 }
37424
37425
37426 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37427 PyObject *resultobj = 0;
37428 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37429 wxIcon *arg2 = 0 ;
37430 int arg3 ;
37431 int arg4 ;
37432 void *argp1 = 0 ;
37433 int res1 = 0 ;
37434 void *argp2 = 0 ;
37435 int res2 = 0 ;
37436 int val3 ;
37437 int ecode3 = 0 ;
37438 int val4 ;
37439 int ecode4 = 0 ;
37440 PyObject * obj0 = 0 ;
37441 PyObject * obj1 = 0 ;
37442 PyObject * obj2 = 0 ;
37443 PyObject * obj3 = 0 ;
37444 char * kwnames[] = {
37445 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
37446 };
37447
37448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37450 if (!SWIG_IsOK(res1)) {
37451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37452 }
37453 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37454 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37455 if (!SWIG_IsOK(res2)) {
37456 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37457 }
37458 if (!argp2) {
37459 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37460 }
37461 arg2 = reinterpret_cast< wxIcon * >(argp2);
37462 ecode3 = SWIG_AsVal_int(obj2, &val3);
37463 if (!SWIG_IsOK(ecode3)) {
37464 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
37465 }
37466 arg3 = static_cast< int >(val3);
37467 ecode4 = SWIG_AsVal_int(obj3, &val4);
37468 if (!SWIG_IsOK(ecode4)) {
37469 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
37470 }
37471 arg4 = static_cast< int >(val4);
37472 {
37473 PyThreadState* __tstate = wxPyBeginAllowThreads();
37474 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
37475 wxPyEndAllowThreads(__tstate);
37476 if (PyErr_Occurred()) SWIG_fail;
37477 }
37478 resultobj = SWIG_Py_Void();
37479 return resultobj;
37480 fail:
37481 return NULL;
37482 }
37483
37484
37485 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37486 PyObject *resultobj = 0;
37487 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37488 wxIcon *arg2 = 0 ;
37489 wxPoint *arg3 = 0 ;
37490 void *argp1 = 0 ;
37491 int res1 = 0 ;
37492 void *argp2 = 0 ;
37493 int res2 = 0 ;
37494 wxPoint temp3 ;
37495 PyObject * obj0 = 0 ;
37496 PyObject * obj1 = 0 ;
37497 PyObject * obj2 = 0 ;
37498 char * kwnames[] = {
37499 (char *) "self",(char *) "icon",(char *) "pt", NULL
37500 };
37501
37502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37504 if (!SWIG_IsOK(res1)) {
37505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37506 }
37507 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37508 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37509 if (!SWIG_IsOK(res2)) {
37510 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37511 }
37512 if (!argp2) {
37513 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37514 }
37515 arg2 = reinterpret_cast< wxIcon * >(argp2);
37516 {
37517 arg3 = &temp3;
37518 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37519 }
37520 {
37521 PyThreadState* __tstate = wxPyBeginAllowThreads();
37522 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
37523 wxPyEndAllowThreads(__tstate);
37524 if (PyErr_Occurred()) SWIG_fail;
37525 }
37526 resultobj = SWIG_Py_Void();
37527 return resultobj;
37528 fail:
37529 return NULL;
37530 }
37531
37532
37533 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37534 PyObject *resultobj = 0;
37535 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37536 wxBitmap *arg2 = 0 ;
37537 int arg3 ;
37538 int arg4 ;
37539 bool arg5 = (bool) false ;
37540 void *argp1 = 0 ;
37541 int res1 = 0 ;
37542 void *argp2 = 0 ;
37543 int res2 = 0 ;
37544 int val3 ;
37545 int ecode3 = 0 ;
37546 int val4 ;
37547 int ecode4 = 0 ;
37548 bool val5 ;
37549 int ecode5 = 0 ;
37550 PyObject * obj0 = 0 ;
37551 PyObject * obj1 = 0 ;
37552 PyObject * obj2 = 0 ;
37553 PyObject * obj3 = 0 ;
37554 PyObject * obj4 = 0 ;
37555 char * kwnames[] = {
37556 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
37557 };
37558
37559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37561 if (!SWIG_IsOK(res1)) {
37562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37563 }
37564 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37565 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37566 if (!SWIG_IsOK(res2)) {
37567 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37568 }
37569 if (!argp2) {
37570 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37571 }
37572 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37573 ecode3 = SWIG_AsVal_int(obj2, &val3);
37574 if (!SWIG_IsOK(ecode3)) {
37575 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
37576 }
37577 arg3 = static_cast< int >(val3);
37578 ecode4 = SWIG_AsVal_int(obj3, &val4);
37579 if (!SWIG_IsOK(ecode4)) {
37580 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
37581 }
37582 arg4 = static_cast< int >(val4);
37583 if (obj4) {
37584 ecode5 = SWIG_AsVal_bool(obj4, &val5);
37585 if (!SWIG_IsOK(ecode5)) {
37586 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
37587 }
37588 arg5 = static_cast< bool >(val5);
37589 }
37590 {
37591 PyThreadState* __tstate = wxPyBeginAllowThreads();
37592 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
37593 wxPyEndAllowThreads(__tstate);
37594 if (PyErr_Occurred()) SWIG_fail;
37595 }
37596 resultobj = SWIG_Py_Void();
37597 return resultobj;
37598 fail:
37599 return NULL;
37600 }
37601
37602
37603 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37604 PyObject *resultobj = 0;
37605 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37606 wxBitmap *arg2 = 0 ;
37607 wxPoint *arg3 = 0 ;
37608 bool arg4 = (bool) false ;
37609 void *argp1 = 0 ;
37610 int res1 = 0 ;
37611 void *argp2 = 0 ;
37612 int res2 = 0 ;
37613 wxPoint temp3 ;
37614 bool val4 ;
37615 int ecode4 = 0 ;
37616 PyObject * obj0 = 0 ;
37617 PyObject * obj1 = 0 ;
37618 PyObject * obj2 = 0 ;
37619 PyObject * obj3 = 0 ;
37620 char * kwnames[] = {
37621 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
37622 };
37623
37624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37626 if (!SWIG_IsOK(res1)) {
37627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37628 }
37629 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37630 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37631 if (!SWIG_IsOK(res2)) {
37632 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37633 }
37634 if (!argp2) {
37635 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37636 }
37637 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37638 {
37639 arg3 = &temp3;
37640 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37641 }
37642 if (obj3) {
37643 ecode4 = SWIG_AsVal_bool(obj3, &val4);
37644 if (!SWIG_IsOK(ecode4)) {
37645 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
37646 }
37647 arg4 = static_cast< bool >(val4);
37648 }
37649 {
37650 PyThreadState* __tstate = wxPyBeginAllowThreads();
37651 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
37652 wxPyEndAllowThreads(__tstate);
37653 if (PyErr_Occurred()) SWIG_fail;
37654 }
37655 resultobj = SWIG_Py_Void();
37656 return resultobj;
37657 fail:
37658 return NULL;
37659 }
37660
37661
37662 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37663 PyObject *resultobj = 0;
37664 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37665 wxString *arg2 = 0 ;
37666 int arg3 ;
37667 int arg4 ;
37668 void *argp1 = 0 ;
37669 int res1 = 0 ;
37670 bool temp2 = false ;
37671 int val3 ;
37672 int ecode3 = 0 ;
37673 int val4 ;
37674 int ecode4 = 0 ;
37675 PyObject * obj0 = 0 ;
37676 PyObject * obj1 = 0 ;
37677 PyObject * obj2 = 0 ;
37678 PyObject * obj3 = 0 ;
37679 char * kwnames[] = {
37680 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
37681 };
37682
37683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37685 if (!SWIG_IsOK(res1)) {
37686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37687 }
37688 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37689 {
37690 arg2 = wxString_in_helper(obj1);
37691 if (arg2 == NULL) SWIG_fail;
37692 temp2 = true;
37693 }
37694 ecode3 = SWIG_AsVal_int(obj2, &val3);
37695 if (!SWIG_IsOK(ecode3)) {
37696 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
37697 }
37698 arg3 = static_cast< int >(val3);
37699 ecode4 = SWIG_AsVal_int(obj3, &val4);
37700 if (!SWIG_IsOK(ecode4)) {
37701 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
37702 }
37703 arg4 = static_cast< int >(val4);
37704 {
37705 PyThreadState* __tstate = wxPyBeginAllowThreads();
37706 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
37707 wxPyEndAllowThreads(__tstate);
37708 if (PyErr_Occurred()) SWIG_fail;
37709 }
37710 resultobj = SWIG_Py_Void();
37711 {
37712 if (temp2)
37713 delete arg2;
37714 }
37715 return resultobj;
37716 fail:
37717 {
37718 if (temp2)
37719 delete arg2;
37720 }
37721 return NULL;
37722 }
37723
37724
37725 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37726 PyObject *resultobj = 0;
37727 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37728 wxString *arg2 = 0 ;
37729 wxPoint *arg3 = 0 ;
37730 void *argp1 = 0 ;
37731 int res1 = 0 ;
37732 bool temp2 = false ;
37733 wxPoint temp3 ;
37734 PyObject * obj0 = 0 ;
37735 PyObject * obj1 = 0 ;
37736 PyObject * obj2 = 0 ;
37737 char * kwnames[] = {
37738 (char *) "self",(char *) "text",(char *) "pt", NULL
37739 };
37740
37741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37743 if (!SWIG_IsOK(res1)) {
37744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37745 }
37746 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37747 {
37748 arg2 = wxString_in_helper(obj1);
37749 if (arg2 == NULL) SWIG_fail;
37750 temp2 = true;
37751 }
37752 {
37753 arg3 = &temp3;
37754 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37755 }
37756 {
37757 PyThreadState* __tstate = wxPyBeginAllowThreads();
37758 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
37759 wxPyEndAllowThreads(__tstate);
37760 if (PyErr_Occurred()) SWIG_fail;
37761 }
37762 resultobj = SWIG_Py_Void();
37763 {
37764 if (temp2)
37765 delete arg2;
37766 }
37767 return resultobj;
37768 fail:
37769 {
37770 if (temp2)
37771 delete arg2;
37772 }
37773 return NULL;
37774 }
37775
37776
37777 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37778 PyObject *resultobj = 0;
37779 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37780 wxString *arg2 = 0 ;
37781 int arg3 ;
37782 int arg4 ;
37783 double arg5 ;
37784 void *argp1 = 0 ;
37785 int res1 = 0 ;
37786 bool temp2 = false ;
37787 int val3 ;
37788 int ecode3 = 0 ;
37789 int val4 ;
37790 int ecode4 = 0 ;
37791 double val5 ;
37792 int ecode5 = 0 ;
37793 PyObject * obj0 = 0 ;
37794 PyObject * obj1 = 0 ;
37795 PyObject * obj2 = 0 ;
37796 PyObject * obj3 = 0 ;
37797 PyObject * obj4 = 0 ;
37798 char * kwnames[] = {
37799 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
37800 };
37801
37802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37804 if (!SWIG_IsOK(res1)) {
37805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37806 }
37807 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37808 {
37809 arg2 = wxString_in_helper(obj1);
37810 if (arg2 == NULL) SWIG_fail;
37811 temp2 = true;
37812 }
37813 ecode3 = SWIG_AsVal_int(obj2, &val3);
37814 if (!SWIG_IsOK(ecode3)) {
37815 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
37816 }
37817 arg3 = static_cast< int >(val3);
37818 ecode4 = SWIG_AsVal_int(obj3, &val4);
37819 if (!SWIG_IsOK(ecode4)) {
37820 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
37821 }
37822 arg4 = static_cast< int >(val4);
37823 ecode5 = SWIG_AsVal_double(obj4, &val5);
37824 if (!SWIG_IsOK(ecode5)) {
37825 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
37826 }
37827 arg5 = static_cast< double >(val5);
37828 {
37829 PyThreadState* __tstate = wxPyBeginAllowThreads();
37830 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
37831 wxPyEndAllowThreads(__tstate);
37832 if (PyErr_Occurred()) SWIG_fail;
37833 }
37834 resultobj = SWIG_Py_Void();
37835 {
37836 if (temp2)
37837 delete arg2;
37838 }
37839 return resultobj;
37840 fail:
37841 {
37842 if (temp2)
37843 delete arg2;
37844 }
37845 return NULL;
37846 }
37847
37848
37849 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37850 PyObject *resultobj = 0;
37851 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37852 wxString *arg2 = 0 ;
37853 wxPoint *arg3 = 0 ;
37854 double arg4 ;
37855 void *argp1 = 0 ;
37856 int res1 = 0 ;
37857 bool temp2 = false ;
37858 wxPoint temp3 ;
37859 double val4 ;
37860 int ecode4 = 0 ;
37861 PyObject * obj0 = 0 ;
37862 PyObject * obj1 = 0 ;
37863 PyObject * obj2 = 0 ;
37864 PyObject * obj3 = 0 ;
37865 char * kwnames[] = {
37866 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
37867 };
37868
37869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37871 if (!SWIG_IsOK(res1)) {
37872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37873 }
37874 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37875 {
37876 arg2 = wxString_in_helper(obj1);
37877 if (arg2 == NULL) SWIG_fail;
37878 temp2 = true;
37879 }
37880 {
37881 arg3 = &temp3;
37882 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37883 }
37884 ecode4 = SWIG_AsVal_double(obj3, &val4);
37885 if (!SWIG_IsOK(ecode4)) {
37886 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
37887 }
37888 arg4 = static_cast< double >(val4);
37889 {
37890 PyThreadState* __tstate = wxPyBeginAllowThreads();
37891 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
37892 wxPyEndAllowThreads(__tstate);
37893 if (PyErr_Occurred()) SWIG_fail;
37894 }
37895 resultobj = SWIG_Py_Void();
37896 {
37897 if (temp2)
37898 delete arg2;
37899 }
37900 return resultobj;
37901 fail:
37902 {
37903 if (temp2)
37904 delete arg2;
37905 }
37906 return NULL;
37907 }
37908
37909
37910 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37911 PyObject *resultobj = 0;
37912 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37913 int arg2 ;
37914 wxPoint *arg3 = (wxPoint *) 0 ;
37915 int arg4 = (int) 0 ;
37916 int arg5 = (int) 0 ;
37917 void *argp1 = 0 ;
37918 int res1 = 0 ;
37919 int val4 ;
37920 int ecode4 = 0 ;
37921 int val5 ;
37922 int ecode5 = 0 ;
37923 PyObject * obj0 = 0 ;
37924 PyObject * obj1 = 0 ;
37925 PyObject * obj2 = 0 ;
37926 PyObject * obj3 = 0 ;
37927 char * kwnames[] = {
37928 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
37929 };
37930
37931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37933 if (!SWIG_IsOK(res1)) {
37934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37935 }
37936 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37937 {
37938 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37939 if (arg3 == NULL) SWIG_fail;
37940 }
37941 if (obj2) {
37942 ecode4 = SWIG_AsVal_int(obj2, &val4);
37943 if (!SWIG_IsOK(ecode4)) {
37944 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
37945 }
37946 arg4 = static_cast< int >(val4);
37947 }
37948 if (obj3) {
37949 ecode5 = SWIG_AsVal_int(obj3, &val5);
37950 if (!SWIG_IsOK(ecode5)) {
37951 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
37952 }
37953 arg5 = static_cast< int >(val5);
37954 }
37955 {
37956 PyThreadState* __tstate = wxPyBeginAllowThreads();
37957 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
37958 wxPyEndAllowThreads(__tstate);
37959 if (PyErr_Occurred()) SWIG_fail;
37960 }
37961 resultobj = SWIG_Py_Void();
37962 {
37963 if (arg3) delete [] arg3;
37964 }
37965 return resultobj;
37966 fail:
37967 {
37968 if (arg3) delete [] arg3;
37969 }
37970 return NULL;
37971 }
37972
37973
37974 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37975 PyObject *resultobj = 0;
37976 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37977 int arg2 ;
37978 wxPoint *arg3 = (wxPoint *) 0 ;
37979 int arg4 = (int) 0 ;
37980 int arg5 = (int) 0 ;
37981 int arg6 = (int) wxODDEVEN_RULE ;
37982 void *argp1 = 0 ;
37983 int res1 = 0 ;
37984 int val4 ;
37985 int ecode4 = 0 ;
37986 int val5 ;
37987 int ecode5 = 0 ;
37988 int val6 ;
37989 int ecode6 = 0 ;
37990 PyObject * obj0 = 0 ;
37991 PyObject * obj1 = 0 ;
37992 PyObject * obj2 = 0 ;
37993 PyObject * obj3 = 0 ;
37994 PyObject * obj4 = 0 ;
37995 char * kwnames[] = {
37996 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
37997 };
37998
37999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38001 if (!SWIG_IsOK(res1)) {
38002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38003 }
38004 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38005 {
38006 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38007 if (arg3 == NULL) SWIG_fail;
38008 }
38009 if (obj2) {
38010 ecode4 = SWIG_AsVal_int(obj2, &val4);
38011 if (!SWIG_IsOK(ecode4)) {
38012 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
38013 }
38014 arg4 = static_cast< int >(val4);
38015 }
38016 if (obj3) {
38017 ecode5 = SWIG_AsVal_int(obj3, &val5);
38018 if (!SWIG_IsOK(ecode5)) {
38019 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
38020 }
38021 arg5 = static_cast< int >(val5);
38022 }
38023 if (obj4) {
38024 ecode6 = SWIG_AsVal_int(obj4, &val6);
38025 if (!SWIG_IsOK(ecode6)) {
38026 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
38027 }
38028 arg6 = static_cast< int >(val6);
38029 }
38030 {
38031 PyThreadState* __tstate = wxPyBeginAllowThreads();
38032 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
38033 wxPyEndAllowThreads(__tstate);
38034 if (PyErr_Occurred()) SWIG_fail;
38035 }
38036 resultobj = SWIG_Py_Void();
38037 {
38038 if (arg3) delete [] arg3;
38039 }
38040 return resultobj;
38041 fail:
38042 {
38043 if (arg3) delete [] arg3;
38044 }
38045 return NULL;
38046 }
38047
38048
38049 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38050 PyObject *resultobj = 0;
38051 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38052 wxString *arg2 = 0 ;
38053 wxRect *arg3 = 0 ;
38054 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38055 int arg5 = (int) -1 ;
38056 void *argp1 = 0 ;
38057 int res1 = 0 ;
38058 bool temp2 = false ;
38059 wxRect temp3 ;
38060 int val4 ;
38061 int ecode4 = 0 ;
38062 int val5 ;
38063 int ecode5 = 0 ;
38064 PyObject * obj0 = 0 ;
38065 PyObject * obj1 = 0 ;
38066 PyObject * obj2 = 0 ;
38067 PyObject * obj3 = 0 ;
38068 PyObject * obj4 = 0 ;
38069 char * kwnames[] = {
38070 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38071 };
38072
38073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38075 if (!SWIG_IsOK(res1)) {
38076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38077 }
38078 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38079 {
38080 arg2 = wxString_in_helper(obj1);
38081 if (arg2 == NULL) SWIG_fail;
38082 temp2 = true;
38083 }
38084 {
38085 arg3 = &temp3;
38086 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
38087 }
38088 if (obj3) {
38089 ecode4 = SWIG_AsVal_int(obj3, &val4);
38090 if (!SWIG_IsOK(ecode4)) {
38091 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
38092 }
38093 arg4 = static_cast< int >(val4);
38094 }
38095 if (obj4) {
38096 ecode5 = SWIG_AsVal_int(obj4, &val5);
38097 if (!SWIG_IsOK(ecode5)) {
38098 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
38099 }
38100 arg5 = static_cast< int >(val5);
38101 }
38102 {
38103 PyThreadState* __tstate = wxPyBeginAllowThreads();
38104 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
38105 wxPyEndAllowThreads(__tstate);
38106 if (PyErr_Occurred()) SWIG_fail;
38107 }
38108 resultobj = SWIG_Py_Void();
38109 {
38110 if (temp2)
38111 delete arg2;
38112 }
38113 return resultobj;
38114 fail:
38115 {
38116 if (temp2)
38117 delete arg2;
38118 }
38119 return NULL;
38120 }
38121
38122
38123 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38124 PyObject *resultobj = 0;
38125 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38126 wxString *arg2 = 0 ;
38127 wxBitmap *arg3 = 0 ;
38128 wxRect *arg4 = 0 ;
38129 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38130 int arg6 = (int) -1 ;
38131 void *argp1 = 0 ;
38132 int res1 = 0 ;
38133 bool temp2 = false ;
38134 void *argp3 = 0 ;
38135 int res3 = 0 ;
38136 wxRect temp4 ;
38137 int val5 ;
38138 int ecode5 = 0 ;
38139 int val6 ;
38140 int ecode6 = 0 ;
38141 PyObject * obj0 = 0 ;
38142 PyObject * obj1 = 0 ;
38143 PyObject * obj2 = 0 ;
38144 PyObject * obj3 = 0 ;
38145 PyObject * obj4 = 0 ;
38146 PyObject * obj5 = 0 ;
38147 char * kwnames[] = {
38148 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38149 };
38150
38151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38153 if (!SWIG_IsOK(res1)) {
38154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38155 }
38156 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38157 {
38158 arg2 = wxString_in_helper(obj1);
38159 if (arg2 == NULL) SWIG_fail;
38160 temp2 = true;
38161 }
38162 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
38163 if (!SWIG_IsOK(res3)) {
38164 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38165 }
38166 if (!argp3) {
38167 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38168 }
38169 arg3 = reinterpret_cast< wxBitmap * >(argp3);
38170 {
38171 arg4 = &temp4;
38172 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
38173 }
38174 if (obj4) {
38175 ecode5 = SWIG_AsVal_int(obj4, &val5);
38176 if (!SWIG_IsOK(ecode5)) {
38177 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
38178 }
38179 arg5 = static_cast< int >(val5);
38180 }
38181 if (obj5) {
38182 ecode6 = SWIG_AsVal_int(obj5, &val6);
38183 if (!SWIG_IsOK(ecode6)) {
38184 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
38185 }
38186 arg6 = static_cast< int >(val6);
38187 }
38188 {
38189 PyThreadState* __tstate = wxPyBeginAllowThreads();
38190 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
38191 wxPyEndAllowThreads(__tstate);
38192 if (PyErr_Occurred()) SWIG_fail;
38193 }
38194 resultobj = SWIG_Py_Void();
38195 {
38196 if (temp2)
38197 delete arg2;
38198 }
38199 return resultobj;
38200 fail:
38201 {
38202 if (temp2)
38203 delete arg2;
38204 }
38205 return NULL;
38206 }
38207
38208
38209 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38210 PyObject *resultobj = 0;
38211 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38212 int arg2 ;
38213 wxPoint *arg3 = (wxPoint *) 0 ;
38214 void *argp1 = 0 ;
38215 int res1 = 0 ;
38216 PyObject * obj0 = 0 ;
38217 PyObject * obj1 = 0 ;
38218 char * kwnames[] = {
38219 (char *) "self",(char *) "points", NULL
38220 };
38221
38222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
38223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38224 if (!SWIG_IsOK(res1)) {
38225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38226 }
38227 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38228 {
38229 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38230 if (arg3 == NULL) SWIG_fail;
38231 }
38232 {
38233 PyThreadState* __tstate = wxPyBeginAllowThreads();
38234 (arg1)->DrawSpline(arg2,arg3);
38235 wxPyEndAllowThreads(__tstate);
38236 if (PyErr_Occurred()) SWIG_fail;
38237 }
38238 resultobj = SWIG_Py_Void();
38239 {
38240 if (arg3) delete [] arg3;
38241 }
38242 return resultobj;
38243 fail:
38244 {
38245 if (arg3) delete [] arg3;
38246 }
38247 return NULL;
38248 }
38249
38250
38251 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38252 PyObject *resultobj = 0;
38253 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38254 void *argp1 = 0 ;
38255 int res1 = 0 ;
38256 PyObject *swig_obj[1] ;
38257
38258 if (!args) SWIG_fail;
38259 swig_obj[0] = args;
38260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38261 if (!SWIG_IsOK(res1)) {
38262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38263 }
38264 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38265 {
38266 PyThreadState* __tstate = wxPyBeginAllowThreads();
38267 (arg1)->Clear();
38268 wxPyEndAllowThreads(__tstate);
38269 if (PyErr_Occurred()) SWIG_fail;
38270 }
38271 resultobj = SWIG_Py_Void();
38272 return resultobj;
38273 fail:
38274 return NULL;
38275 }
38276
38277
38278 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38279 PyObject *resultobj = 0;
38280 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38281 wxFont *arg2 = 0 ;
38282 void *argp1 = 0 ;
38283 int res1 = 0 ;
38284 void *argp2 = 0 ;
38285 int res2 = 0 ;
38286 PyObject * obj0 = 0 ;
38287 PyObject * obj1 = 0 ;
38288 char * kwnames[] = {
38289 (char *) "self",(char *) "font", NULL
38290 };
38291
38292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
38293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38294 if (!SWIG_IsOK(res1)) {
38295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38296 }
38297 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38298 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
38299 if (!SWIG_IsOK(res2)) {
38300 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38301 }
38302 if (!argp2) {
38303 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38304 }
38305 arg2 = reinterpret_cast< wxFont * >(argp2);
38306 {
38307 PyThreadState* __tstate = wxPyBeginAllowThreads();
38308 (arg1)->SetFont((wxFont const &)*arg2);
38309 wxPyEndAllowThreads(__tstate);
38310 if (PyErr_Occurred()) SWIG_fail;
38311 }
38312 resultobj = SWIG_Py_Void();
38313 return resultobj;
38314 fail:
38315 return NULL;
38316 }
38317
38318
38319 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38320 PyObject *resultobj = 0;
38321 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38322 wxPen *arg2 = 0 ;
38323 void *argp1 = 0 ;
38324 int res1 = 0 ;
38325 void *argp2 = 0 ;
38326 int res2 = 0 ;
38327 PyObject * obj0 = 0 ;
38328 PyObject * obj1 = 0 ;
38329 char * kwnames[] = {
38330 (char *) "self",(char *) "pen", NULL
38331 };
38332
38333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
38334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38335 if (!SWIG_IsOK(res1)) {
38336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38337 }
38338 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38339 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
38340 if (!SWIG_IsOK(res2)) {
38341 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38342 }
38343 if (!argp2) {
38344 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38345 }
38346 arg2 = reinterpret_cast< wxPen * >(argp2);
38347 {
38348 PyThreadState* __tstate = wxPyBeginAllowThreads();
38349 (arg1)->SetPen((wxPen const &)*arg2);
38350 wxPyEndAllowThreads(__tstate);
38351 if (PyErr_Occurred()) SWIG_fail;
38352 }
38353 resultobj = SWIG_Py_Void();
38354 return resultobj;
38355 fail:
38356 return NULL;
38357 }
38358
38359
38360 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38361 PyObject *resultobj = 0;
38362 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38363 wxBrush *arg2 = 0 ;
38364 void *argp1 = 0 ;
38365 int res1 = 0 ;
38366 void *argp2 = 0 ;
38367 int res2 = 0 ;
38368 PyObject * obj0 = 0 ;
38369 PyObject * obj1 = 0 ;
38370 char * kwnames[] = {
38371 (char *) "self",(char *) "brush", NULL
38372 };
38373
38374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
38375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38376 if (!SWIG_IsOK(res1)) {
38377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38378 }
38379 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38380 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38381 if (!SWIG_IsOK(res2)) {
38382 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38383 }
38384 if (!argp2) {
38385 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38386 }
38387 arg2 = reinterpret_cast< wxBrush * >(argp2);
38388 {
38389 PyThreadState* __tstate = wxPyBeginAllowThreads();
38390 (arg1)->SetBrush((wxBrush const &)*arg2);
38391 wxPyEndAllowThreads(__tstate);
38392 if (PyErr_Occurred()) SWIG_fail;
38393 }
38394 resultobj = SWIG_Py_Void();
38395 return resultobj;
38396 fail:
38397 return NULL;
38398 }
38399
38400
38401 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38402 PyObject *resultobj = 0;
38403 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38404 wxBrush *arg2 = 0 ;
38405 void *argp1 = 0 ;
38406 int res1 = 0 ;
38407 void *argp2 = 0 ;
38408 int res2 = 0 ;
38409 PyObject * obj0 = 0 ;
38410 PyObject * obj1 = 0 ;
38411 char * kwnames[] = {
38412 (char *) "self",(char *) "brush", NULL
38413 };
38414
38415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38417 if (!SWIG_IsOK(res1)) {
38418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38419 }
38420 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38421 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38422 if (!SWIG_IsOK(res2)) {
38423 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38424 }
38425 if (!argp2) {
38426 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38427 }
38428 arg2 = reinterpret_cast< wxBrush * >(argp2);
38429 {
38430 PyThreadState* __tstate = wxPyBeginAllowThreads();
38431 (arg1)->SetBackground((wxBrush const &)*arg2);
38432 wxPyEndAllowThreads(__tstate);
38433 if (PyErr_Occurred()) SWIG_fail;
38434 }
38435 resultobj = SWIG_Py_Void();
38436 return resultobj;
38437 fail:
38438 return NULL;
38439 }
38440
38441
38442 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38443 PyObject *resultobj = 0;
38444 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38445 int arg2 ;
38446 void *argp1 = 0 ;
38447 int res1 = 0 ;
38448 int val2 ;
38449 int ecode2 = 0 ;
38450 PyObject * obj0 = 0 ;
38451 PyObject * obj1 = 0 ;
38452 char * kwnames[] = {
38453 (char *) "self",(char *) "mode", NULL
38454 };
38455
38456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
38457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38458 if (!SWIG_IsOK(res1)) {
38459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38460 }
38461 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38462 ecode2 = SWIG_AsVal_int(obj1, &val2);
38463 if (!SWIG_IsOK(ecode2)) {
38464 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
38465 }
38466 arg2 = static_cast< int >(val2);
38467 {
38468 PyThreadState* __tstate = wxPyBeginAllowThreads();
38469 (arg1)->SetBackgroundMode(arg2);
38470 wxPyEndAllowThreads(__tstate);
38471 if (PyErr_Occurred()) SWIG_fail;
38472 }
38473 resultobj = SWIG_Py_Void();
38474 return resultobj;
38475 fail:
38476 return NULL;
38477 }
38478
38479
38480 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38481 PyObject *resultobj = 0;
38482 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38483 wxPalette *arg2 = 0 ;
38484 void *argp1 = 0 ;
38485 int res1 = 0 ;
38486 void *argp2 = 0 ;
38487 int res2 = 0 ;
38488 PyObject * obj0 = 0 ;
38489 PyObject * obj1 = 0 ;
38490 char * kwnames[] = {
38491 (char *) "self",(char *) "palette", NULL
38492 };
38493
38494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
38495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38496 if (!SWIG_IsOK(res1)) {
38497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38498 }
38499 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38500 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
38501 if (!SWIG_IsOK(res2)) {
38502 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38503 }
38504 if (!argp2) {
38505 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38506 }
38507 arg2 = reinterpret_cast< wxPalette * >(argp2);
38508 {
38509 PyThreadState* __tstate = wxPyBeginAllowThreads();
38510 (arg1)->SetPalette((wxPalette const &)*arg2);
38511 wxPyEndAllowThreads(__tstate);
38512 if (PyErr_Occurred()) SWIG_fail;
38513 }
38514 resultobj = SWIG_Py_Void();
38515 return resultobj;
38516 fail:
38517 return NULL;
38518 }
38519
38520
38521 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38522 PyObject *resultobj = 0;
38523 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38524 wxColour *arg2 = 0 ;
38525 void *argp1 = 0 ;
38526 int res1 = 0 ;
38527 wxColour temp2 ;
38528 PyObject * obj0 = 0 ;
38529 PyObject * obj1 = 0 ;
38530 char * kwnames[] = {
38531 (char *) "self",(char *) "colour", NULL
38532 };
38533
38534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
38535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38536 if (!SWIG_IsOK(res1)) {
38537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38538 }
38539 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38540 {
38541 arg2 = &temp2;
38542 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38543 }
38544 {
38545 PyThreadState* __tstate = wxPyBeginAllowThreads();
38546 (arg1)->SetTextForeground((wxColour const &)*arg2);
38547 wxPyEndAllowThreads(__tstate);
38548 if (PyErr_Occurred()) SWIG_fail;
38549 }
38550 resultobj = SWIG_Py_Void();
38551 return resultobj;
38552 fail:
38553 return NULL;
38554 }
38555
38556
38557 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38558 PyObject *resultobj = 0;
38559 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38560 wxColour *arg2 = 0 ;
38561 void *argp1 = 0 ;
38562 int res1 = 0 ;
38563 wxColour temp2 ;
38564 PyObject * obj0 = 0 ;
38565 PyObject * obj1 = 0 ;
38566 char * kwnames[] = {
38567 (char *) "self",(char *) "colour", NULL
38568 };
38569
38570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38572 if (!SWIG_IsOK(res1)) {
38573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38574 }
38575 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38576 {
38577 arg2 = &temp2;
38578 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38579 }
38580 {
38581 PyThreadState* __tstate = wxPyBeginAllowThreads();
38582 (arg1)->SetTextBackground((wxColour const &)*arg2);
38583 wxPyEndAllowThreads(__tstate);
38584 if (PyErr_Occurred()) SWIG_fail;
38585 }
38586 resultobj = SWIG_Py_Void();
38587 return resultobj;
38588 fail:
38589 return NULL;
38590 }
38591
38592
38593 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38594 PyObject *resultobj = 0;
38595 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38596 int arg2 ;
38597 void *argp1 = 0 ;
38598 int res1 = 0 ;
38599 int val2 ;
38600 int ecode2 = 0 ;
38601 PyObject * obj0 = 0 ;
38602 PyObject * obj1 = 0 ;
38603 char * kwnames[] = {
38604 (char *) "self",(char *) "function", NULL
38605 };
38606
38607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
38608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38609 if (!SWIG_IsOK(res1)) {
38610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38611 }
38612 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38613 ecode2 = SWIG_AsVal_int(obj1, &val2);
38614 if (!SWIG_IsOK(ecode2)) {
38615 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
38616 }
38617 arg2 = static_cast< int >(val2);
38618 {
38619 PyThreadState* __tstate = wxPyBeginAllowThreads();
38620 (arg1)->SetLogicalFunction(arg2);
38621 wxPyEndAllowThreads(__tstate);
38622 if (PyErr_Occurred()) SWIG_fail;
38623 }
38624 resultobj = SWIG_Py_Void();
38625 return resultobj;
38626 fail:
38627 return NULL;
38628 }
38629
38630
38631 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38632 PyObject *obj;
38633 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38634 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
38635 return SWIG_Py_Void();
38636 }
38637
38638 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38639 return SWIG_Python_InitShadowInstance(args);
38640 }
38641
38642 static PyMethodDef SwigMethods[] = {
38643 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
38644 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
38645 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
38646 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
38647 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
38648 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
38649 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
38650 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38651 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
38652 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
38653 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
38654 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
38655 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
38656 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
38657 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38658 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38659 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38660 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
38661 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
38662 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38663 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38664 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
38665 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
38666 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
38667 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
38668 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
38669 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
38670 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38671 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38672 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
38673 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
38674 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
38675 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
38676 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
38677 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
38678 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
38679 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
38680 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
38681 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
38682 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
38683 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
38684 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
38685 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38686 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
38687 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38688 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38689 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38690 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
38691 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38692 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38693 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38694 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
38695 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
38696 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
38697 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38698 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
38699 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38700 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38701 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
38702 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
38703 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
38704 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
38705 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
38706 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
38707 { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL},
38708 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
38709 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
38710 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
38711 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38712 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
38713 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38714 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38715 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38716 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38717 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
38718 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
38719 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
38720 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
38721 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
38722 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
38723 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
38724 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
38725 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
38726 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
38727 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38728 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
38729 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38730 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
38731 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38732 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38733 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38734 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38735 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
38736 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38737 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38738 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38739 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38740 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
38741 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
38742 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
38743 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38744 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38745 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
38746 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
38747 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
38748 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
38749 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
38750 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
38751 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
38752 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
38753 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
38754 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
38755 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
38756 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
38757 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
38758 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
38759 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
38760 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38761 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
38762 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
38763 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38764 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38765 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38766 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38767 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38768 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
38769 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
38770 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
38771 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
38772 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
38773 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
38774 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
38775 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
38776 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
38777 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
38778 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
38779 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
38780 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38781 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
38782 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
38783 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38784 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38785 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38786 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38787 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38788 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
38789 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
38790 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
38791 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
38792 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
38793 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
38794 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
38795 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
38796 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
38797 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
38798 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38799 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38800 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38801 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
38802 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
38803 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
38804 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
38805 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38806 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38807 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38808 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38809 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
38810 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
38811 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38812 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
38813 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
38814 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
38815 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
38816 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
38817 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
38818 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
38819 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
38820 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
38821 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38822 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38823 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
38824 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38825 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38826 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38827 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
38828 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
38829 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
38830 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
38831 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38832 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38833 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
38834 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
38835 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
38836 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
38837 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38838 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38839 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
38840 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
38841 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
38842 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38843 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
38844 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38845 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
38846 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
38847 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
38848 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
38849 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
38850 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38851 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
38852 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
38853 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
38854 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
38855 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38856 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
38857 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
38858 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38859 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
38860 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
38861 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38862 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
38863 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38864 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38865 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
38866 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
38867 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
38868 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
38869 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
38870 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
38871 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
38872 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
38873 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
38874 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
38875 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
38876 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
38877 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
38878 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
38879 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
38880 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
38881 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
38882 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
38883 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
38884 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
38885 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
38886 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
38887 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
38888 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
38889 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
38890 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
38891 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
38892 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
38893 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38894 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38895 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38896 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38897 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38898 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38899 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38900 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38901 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
38902 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
38903 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
38904 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
38905 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
38906 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
38907 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
38908 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
38909 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
38910 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
38911 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
38912 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
38913 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38914 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
38915 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
38916 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
38917 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38918 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38919 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
38920 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
38921 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
38922 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38923 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38924 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
38925 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38926 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
38927 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
38928 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38929 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
38930 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
38931 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38932 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38933 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
38934 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
38935 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
38936 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
38937 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
38938 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
38939 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38940 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
38941 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
38942 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38943 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38944 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
38945 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38946 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38947 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
38948 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
38949 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
38950 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
38951 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
38952 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
38953 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
38954 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
38955 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
38956 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
38957 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
38958 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
38959 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
38960 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38961 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38962 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38963 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38964 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38965 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38966 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38967 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38968 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38969 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
38970 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
38971 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
38972 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
38973 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
38974 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
38975 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
38976 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
38977 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38978 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
38979 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
38980 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
38981 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
38982 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38983 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
38984 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
38985 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
38986 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
38987 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
38988 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
38989 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
38990 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
38991 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
38992 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
38993 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
38994 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
38995 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
38996 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
38997 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
38998 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
38999 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
39000 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
39001 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
39002 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
39003 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
39004 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
39005 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
39006 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
39007 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
39008 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
39009 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
39010 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
39011 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
39012 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
39013 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39014 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
39015 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39016 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
39017 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
39018 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
39019 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
39020 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
39021 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
39022 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
39023 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39024 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
39025 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
39026 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
39027 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
39028 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
39029 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
39030 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
39031 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
39032 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
39033 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
39034 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39035 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39036 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
39037 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
39038 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
39039 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
39040 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39041 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39042 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
39043 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
39044 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
39045 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39046 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39047 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39048 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39049 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39050 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39051 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39052 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39053 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39054 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39055 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39056 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39057 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39058 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39059 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39060 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39061 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39062 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39063 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39064 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39065 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39066 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39067 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39068 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39069 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39070 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39071 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39072 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39073 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39074 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39075 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39076 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39077 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
39078 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39079 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39080 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39081 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39082 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39083 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
39084 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39085 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39086 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39087 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39088 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39089 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
39090 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
39091 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
39092 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
39093 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
39094 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39095 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39096 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39097 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39098 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39099 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39100 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
39101 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
39102 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
39103 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
39104 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
39105 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39106 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39107 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39108 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39109 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
39110 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
39111 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
39112 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
39113 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
39114 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
39115 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39116 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39117 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
39118 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
39119 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39120 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39121 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
39122 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
39123 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
39124 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
39125 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
39126 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
39127 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
39128 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
39129 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
39130 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
39131 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
39132 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
39133 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39134 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39135 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
39136 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
39137 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
39138 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
39139 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
39140 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
39141 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
39142 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
39143 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39144 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39145 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
39146 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
39147 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39148 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39149 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
39150 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
39151 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39152 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
39153 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
39154 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39155 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
39156 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
39157 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
39158 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
39159 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
39160 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
39161 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
39162 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
39163 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
39164 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
39165 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
39166 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
39167 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
39168 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
39169 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
39170 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39171 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
39172 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
39173 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
39174 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39175 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
39176 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
39177 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
39178 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39179 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
39180 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
39181 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
39182 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
39183 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
39184 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
39185 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
39186 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
39187 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
39188 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
39189 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
39190 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
39191 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
39192 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
39193 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
39194 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
39195 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
39196 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
39197 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
39198 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39199 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
39200 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
39201 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
39202 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
39203 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
39204 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
39205 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
39206 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
39207 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
39208 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
39209 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
39210 { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39211 { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL},
39212 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
39213 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
39214 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39215 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
39216 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
39217 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39218 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
39219 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
39220 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
39221 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
39222 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
39223 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
39224 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
39225 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
39226 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
39227 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
39228 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
39229 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
39230 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
39231 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
39232 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
39233 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
39234 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
39235 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
39236 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
39237 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
39238 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
39239 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
39240 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
39241 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
39242 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
39243 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
39244 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
39245 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
39246 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
39247 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
39248 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
39249 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
39250 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
39251 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
39252 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
39253 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
39254 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
39255 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
39256 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
39257 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
39258 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
39259 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
39260 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
39261 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
39262 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
39263 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
39264 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
39265 { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL},
39266 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
39267 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
39268 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39269 { (char *)"GraphicsMatrix_Get", (PyCFunction)_wrap_GraphicsMatrix_Get, METH_O, NULL},
39270 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
39271 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
39272 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
39273 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39274 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39275 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
39276 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39277 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
39278 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
39279 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
39280 { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL},
39281 { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL},
39282 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
39283 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
39284 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
39285 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
39286 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
39287 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
39288 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
39289 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
39290 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39291 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39292 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39293 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39294 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39295 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39296 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
39297 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
39298 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
39299 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
39300 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
39301 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
39302 { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL},
39303 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
39304 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
39305 { (char *)"GraphicsContext_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsContext_CreateMeasuringContext, METH_NOARGS, NULL},
39306 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
39307 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39308 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
39309 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39310 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39311 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39312 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39313 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39314 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39315 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
39316 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
39317 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39318 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
39319 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
39320 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
39321 { (char *)"GraphicsContext_GetLogicalFunction", (PyCFunction)_wrap_GraphicsContext_GetLogicalFunction, METH_O, NULL},
39322 { (char *)"GraphicsContext_SetLogicalFunction", (PyCFunction) _wrap_GraphicsContext_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39323 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39324 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39325 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
39326 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39327 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39328 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
39329 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
39330 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
39331 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
39332 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
39333 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
39334 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
39335 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39336 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39337 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39338 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39339 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39340 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39341 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39342 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
39343 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
39344 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
39345 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39346 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39347 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39348 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39349 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
39350 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
39351 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
39352 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
39353 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
39354 { (char *)"GraphicsRenderer_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsRenderer_CreateMeasuringContext, METH_O, NULL},
39355 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
39356 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39357 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
39358 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39359 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39360 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39361 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39362 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39363 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39364 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
39365 { (char *)"new_GCDC", _wrap_new_GCDC, METH_VARARGS, NULL},
39366 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
39367 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
39368 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
39369 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
39370 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
39371 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
39372 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
39373 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
39374 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
39375 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
39376 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
39377 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
39378 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
39379 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
39380 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
39381 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
39382 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
39383 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
39384 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
39385 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39386 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39387 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39388 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
39389 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
39390 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
39391 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
39392 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
39393 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39394 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
39395 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
39396 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
39397 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
39398 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
39399 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
39400 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39401 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39402 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39403 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39404 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39405 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
39406 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
39407 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
39408 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
39409 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
39410 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
39411 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39412 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
39413 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
39414 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
39415 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39416 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39417 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39418 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
39419 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39420 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
39421 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
39422 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
39423 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
39424 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
39425 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
39426 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
39427 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
39428 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
39429 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
39430 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
39431 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
39432 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
39433 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
39434 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
39435 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
39436 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
39437 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
39438 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
39439 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
39440 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
39441 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
39442 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39443 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
39444 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39445 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39446 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39447 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
39448 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39449 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
39450 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
39451 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
39452 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
39453 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
39454 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
39455 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
39456 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
39457 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
39458 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
39459 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
39460 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
39461 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
39462 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
39463 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
39464 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
39465 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
39466 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
39467 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
39468 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
39469 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
39470 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
39471 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
39472 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
39473 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
39474 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
39475 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
39476 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
39477 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
39478 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
39479 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
39480 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
39481 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
39482 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
39483 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
39484 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
39485 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39486 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
39487 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
39488 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
39489 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
39490 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
39491 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
39492 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
39493 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
39494 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
39495 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
39496 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
39497 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
39498 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39499 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
39500 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
39501 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
39502 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
39503 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
39504 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
39505 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
39506 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
39507 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
39508 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
39509 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
39510 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
39511 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39512 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39513 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
39514 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
39515 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39516 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39517 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39518 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
39519 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
39520 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39521 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39522 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39523 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39524 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39525 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39526 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39527 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39528 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39529 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39530 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39531 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39532 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39533 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39534 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39535 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39536 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39537 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39538 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39539 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39540 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39541 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39542 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39543 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39544 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39545 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39546 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39547 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39548 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39549 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39550 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39551 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39552 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39553 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39554 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39555 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39556 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39557 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39558 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39559 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
39560 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39561 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39562 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39563 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39564 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39565 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39566 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39567 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39568 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39569 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
39570 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
39571 { NULL, NULL, 0, NULL }
39572 };
39573
39574
39575 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
39576
39577 static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
39578 return (void *)((wxClientDC *) ((wxPaintDC *) x));
39579 }
39580 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
39581 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
39582 }
39583 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
39584 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
39585 }
39586 static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) {
39587 return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
39588 }
39589 static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) {
39590 return (void *)((wxWindowDC *) ((wxMemoryDC *) x));
39591 }
39592 static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
39593 return (void *)((wxWindowDC *) ((wxClientDC *) x));
39594 }
39595 static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
39596 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
39597 }
39598 static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) {
39599 return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39600 }
39601 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
39602 return (void *)((wxLocale *) ((wxPyLocale *) x));
39603 }
39604 static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
39605 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
39606 }
39607 static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
39608 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
39609 }
39610 static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
39611 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39612 }
39613 static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
39614 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
39615 }
39616 static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
39617 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
39618 }
39619 static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
39620 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
39621 }
39622 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
39623 return (void *)((wxGDIObject *) ((wxIcon *) x));
39624 }
39625 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
39626 return (void *)((wxGDIObject *) ((wxPalette *) x));
39627 }
39628 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
39629 return (void *)((wxGDIObject *) ((wxPen *) x));
39630 }
39631 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
39632 return (void *)((wxGDIObject *) ((wxFont *) x));
39633 }
39634 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
39635 return (void *)((wxGDIObject *) ((wxCursor *) x));
39636 }
39637 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
39638 return (void *)((wxGDIObject *) ((wxBitmap *) x));
39639 }
39640 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
39641 return (void *)((wxGDIObject *) ((wxRegion *) x));
39642 }
39643 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
39644 return (void *)((wxGDIObject *) ((wxBrush *) x));
39645 }
39646 static void *_p_wxGCDCTo_p_wxDC(void *x) {
39647 return (void *)((wxDC *) ((wxGCDC *) x));
39648 }
39649 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
39650 return (void *)((wxDC *) ((wxScreenDC *) x));
39651 }
39652 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
39653 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
39654 }
39655 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
39656 return (void *)((wxDC *) ((wxMirrorDC *) x));
39657 }
39658 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
39659 return (void *)((wxDC *) ((wxWindowDC *) x));
39660 }
39661 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
39662 return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x));
39663 }
39664 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
39665 return (void *)((wxDC *) ((wxMetaFileDC *) x));
39666 }
39667 static void *_p_wxClientDCTo_p_wxDC(void *x) {
39668 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
39669 }
39670 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
39671 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39672 }
39673 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
39674 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39675 }
39676 static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
39677 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
39678 }
39679 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
39680 return (void *)((wxDC *) ((wxPostScriptDC *) x));
39681 }
39682 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
39683 return (void *)((wxDC *) ((wxPrinterDC *) x));
39684 }
39685 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
39686 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
39687 }
39688 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
39689 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
39690 }
39691 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
39692 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
39693 }
39694 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
39695 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
39696 }
39697 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
39698 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
39699 }
39700 static void *_p_wxPenTo_p_wxObject(void *x) {
39701 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
39702 }
39703 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
39704 return (void *)((wxObject *) ((wxRegionIterator *) x));
39705 }
39706 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
39707 return (void *)((wxObject *) ((wxSizerItem *) x));
39708 }
39709 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
39710 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
39711 }
39712 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
39713 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
39714 }
39715 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
39716 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
39717 }
39718 static void *_p_wxIconTo_p_wxObject(void *x) {
39719 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
39720 }
39721 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
39722 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
39723 }
39724 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
39725 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
39726 }
39727 static void *_p_wxSizerTo_p_wxObject(void *x) {
39728 return (void *)((wxObject *) ((wxSizer *) x));
39729 }
39730 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
39731 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
39732 }
39733 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
39734 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
39735 }
39736 static void *_p_wxEventTo_p_wxObject(void *x) {
39737 return (void *)((wxObject *) ((wxEvent *) x));
39738 }
39739 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
39740 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
39741 }
39742 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
39743 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
39744 }
39745 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
39746 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
39747 }
39748 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
39749 return (void *)((wxObject *) ((wxPseudoDC *) x));
39750 }
39751 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
39752 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
39753 }
39754 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
39755 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
39756 }
39757 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
39758 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
39759 }
39760 static void *_p_wxDCTo_p_wxObject(void *x) {
39761 return (void *)((wxObject *) ((wxDC *) x));
39762 }
39763 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
39764 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
39765 }
39766 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
39767 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
39768 }
39769 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
39770 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
39771 }
39772 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
39773 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
39774 }
39775 static void *_p_wxControlTo_p_wxObject(void *x) {
39776 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
39777 }
39778 static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
39779 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
39780 }
39781 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
39782 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
39783 }
39784 static void *_p_wxClientDCTo_p_wxObject(void *x) {
39785 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
39786 }
39787 static void *_p_wxFSFileTo_p_wxObject(void *x) {
39788 return (void *)((wxObject *) ((wxFSFile *) x));
39789 }
39790 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
39791 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x));
39792 }
39793 static void *_p_wxRegionTo_p_wxObject(void *x) {
39794 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
39795 }
39796 static void *_p_wxPySizerTo_p_wxObject(void *x) {
39797 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
39798 }
39799 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
39800 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
39801 }
39802 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
39803 return (void *)((wxObject *) ((wxGDIObject *) x));
39804 }
39805 static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
39806 return (void *)((wxObject *) ((wxGraphicsObject *) x));
39807 }
39808 static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
39809 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
39810 }
39811 static void *_p_wxEffectsTo_p_wxObject(void *x) {
39812 return (void *)((wxObject *) ((wxEffects *) x));
39813 }
39814 static void *_p_wxPyEventTo_p_wxObject(void *x) {
39815 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
39816 }
39817 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
39818 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
39819 }
39820 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
39821 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
39822 }
39823 static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
39824 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
39825 }
39826 static void *_p_wxShowEventTo_p_wxObject(void *x) {
39827 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
39828 }
39829 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
39830 return (void *)((wxObject *) ((wxMenuItem *) x));
39831 }
39832 static void *_p_wxDateEventTo_p_wxObject(void *x) {
39833 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
39834 }
39835 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
39836 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
39837 }
39838 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
39839 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
39840 }
39841 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
39842 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
39843 }
39844 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
39845 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
39846 }
39847 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
39848 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
39849 }
39850 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
39851 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
39852 }
39853 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
39854 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
39855 }
39856 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
39857 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
39858 }
39859 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
39860 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
39861 }
39862 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
39863 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
39864 }
39865 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
39866 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
39867 }
39868 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
39869 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
39870 }
39871 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
39872 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
39873 }
39874 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
39875 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
39876 }
39877 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
39878 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
39879 }
39880 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
39881 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
39882 }
39883 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
39884 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
39885 }
39886 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
39887 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
39888 }
39889 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
39890 return (void *)((wxObject *) ((wxImageHandler *) x));
39891 }
39892 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
39893 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
39894 }
39895 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
39896 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
39897 }
39898 static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
39899 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
39900 }
39901 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
39902 return (void *)((wxObject *) ((wxEvtHandler *) x));
39903 }
39904 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
39905 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
39906 }
39907 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
39908 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39909 }
39910 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
39911 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39912 }
39913 static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
39914 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
39915 }
39916 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
39917 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
39918 }
39919 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
39920 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
39921 }
39922 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
39923 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
39924 }
39925 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
39926 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
39927 }
39928 static void *_p_wxImageTo_p_wxObject(void *x) {
39929 return (void *)((wxObject *) ((wxImage *) x));
39930 }
39931 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
39932 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
39933 }
39934 static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
39935 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
39936 }
39937 static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
39938 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
39939 }
39940 static void *_p_wxPaletteTo_p_wxObject(void *x) {
39941 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
39942 }
39943 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
39944 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
39945 }
39946 static void *_p_wxImageListTo_p_wxObject(void *x) {
39947 return (void *)((wxObject *) ((wxImageList *) x));
39948 }
39949 static void *_p_wxGCDCTo_p_wxObject(void *x) {
39950 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
39951 }
39952 static void *_p_wxCursorTo_p_wxObject(void *x) {
39953 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
39954 }
39955 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
39956 return (void *)((wxObject *) ((wxEncodingConverter *) x));
39957 }
39958 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
39959 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
39960 }
39961 static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
39962 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
39963 }
39964 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
39965 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
39966 }
39967 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
39968 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
39969 }
39970 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
39971 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
39972 }
39973 static void *_p_wxWindowTo_p_wxObject(void *x) {
39974 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
39975 }
39976 static void *_p_wxMenuTo_p_wxObject(void *x) {
39977 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
39978 }
39979 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
39980 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
39981 }
39982 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
39983 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
39984 }
39985 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
39986 return (void *)((wxObject *) ((wxFileSystem *) x));
39987 }
39988 static void *_p_wxBitmapTo_p_wxObject(void *x) {
39989 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
39990 }
39991 static void *_p_wxMaskTo_p_wxObject(void *x) {
39992 return (void *)((wxObject *) ((wxMask *) x));
39993 }
39994 static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
39995 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39996 }
39997 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
39998 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
39999 }
40000 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
40001 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
40002 }
40003 static void *_p_wxPyAppTo_p_wxObject(void *x) {
40004 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
40005 }
40006 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
40007 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
40008 }
40009 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
40010 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
40011 }
40012 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
40013 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
40014 }
40015 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
40016 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
40017 }
40018 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
40019 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
40020 }
40021 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
40022 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
40023 }
40024 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
40025 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
40026 }
40027 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
40028 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
40029 }
40030 static void *_p_wxFontTo_p_wxObject(void *x) {
40031 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
40032 }
40033 static void *_p_wxBrushTo_p_wxObject(void *x) {
40034 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
40035 }
40036 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
40037 return (void *)((wxObject *) ((wxMetaFile *) x));
40038 }
40039 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
40040 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
40041 }
40042 static void *_p_wxColourTo_p_wxObject(void *x) {
40043 return (void *)((wxObject *) ((wxColour *) x));
40044 }
40045 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
40046 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
40047 }
40048 static void *_p_wxValidatorTo_p_wxObject(void *x) {
40049 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
40050 }
40051 static void *_p_wxControlTo_p_wxWindow(void *x) {
40052 return (void *)((wxWindow *) ((wxControl *) x));
40053 }
40054 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
40055 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
40056 }
40057 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
40058 return (void *)((wxWindow *) ((wxMenuBar *) x));
40059 }
40060 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
40061 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
40062 }
40063 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
40064 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
40065 }
40066 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
40067 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
40068 static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
40069 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};
40070 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
40071 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
40072 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
40073 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
40074 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
40075 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
40076 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
40077 static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
40078 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
40079 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
40080 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
40081 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
40082 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
40083 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
40084 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
40085 static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
40086 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
40087 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
40088 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
40089 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
40090 static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
40091 static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
40092 static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
40093 static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
40094 static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
40095 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
40096 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
40097 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
40098 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
40099 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
40100 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
40101 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
40102 static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
40103 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
40104 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
40105 static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
40106 static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
40107 static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
40108 static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
40109 static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
40110 static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
40111 static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
40112 static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
40113 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
40114 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
40115 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
40116 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
40117 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
40118 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
40119 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
40120 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
40121 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
40122 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
40123 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
40124 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
40125 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
40126 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
40127 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
40128 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
40129 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
40130 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
40131 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
40132 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
40133 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
40134 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
40135 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
40136 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
40137 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
40138 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
40139 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
40140 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
40141 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
40142 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
40143 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
40144 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
40145 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
40146 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
40147 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
40148 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
40149 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
40150 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
40151 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
40152 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
40153 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
40154 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
40155 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
40156 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
40157 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
40158 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
40159 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
40160 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
40161 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
40162 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
40163 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
40164 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
40165 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
40166 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
40167 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
40168 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
40169 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
40170 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
40171 static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
40172 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
40173 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
40174 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
40175 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
40176 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
40177 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
40178 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
40179 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
40180 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
40181 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
40182 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
40183 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
40184 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
40185 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
40186 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
40187 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
40188 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
40189 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
40190 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
40191 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
40192 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
40193 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
40194 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
40195 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
40196 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
40197 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
40198 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
40199 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
40200 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
40201 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
40202 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
40203 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
40204 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
40205 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
40206 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
40207 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
40208 static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
40209 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
40210 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
40211 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
40212 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
40213 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
40214 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
40215 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
40216 static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
40217 static swig_type_info _swigt__p_wxPoint2DDouble = {"_p_wxPoint2DDouble", "wxPoint2DDouble *", 0, 0, (void*)0, 0};
40218 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
40219 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
40220 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
40221 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
40222 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
40223 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
40224 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
40225 static swig_type_info _swigt__p_wxRect2DDouble = {"_p_wxRect2DDouble", "wxRect2DDouble *", 0, 0, (void*)0, 0};
40226 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
40227 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
40228 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
40229 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
40230 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
40231 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
40232 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
40233 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
40234 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
40235 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
40236 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
40237
40238 static swig_type_info *swig_type_initial[] = {
40239 &_swigt__p_buffer,
40240 &_swigt__p_char,
40241 &_swigt__p_double,
40242 &_swigt__p_form_ops_t,
40243 &_swigt__p_int,
40244 &_swigt__p_unsigned_char,
40245 &_swigt__p_unsigned_int,
40246 &_swigt__p_unsigned_long,
40247 &_swigt__p_void,
40248 &_swigt__p_wxANIHandler,
40249 &_swigt__p_wxAcceleratorTable,
40250 &_swigt__p_wxActivateEvent,
40251 &_swigt__p_wxAlphaPixelData,
40252 &_swigt__p_wxAlphaPixelData_Accessor,
40253 &_swigt__p_wxAutoBufferedPaintDC,
40254 &_swigt__p_wxBMPHandler,
40255 &_swigt__p_wxBitmap,
40256 &_swigt__p_wxBoxSizer,
40257 &_swigt__p_wxBrush,
40258 &_swigt__p_wxBrushList,
40259 &_swigt__p_wxBufferedDC,
40260 &_swigt__p_wxBufferedPaintDC,
40261 &_swigt__p_wxCURHandler,
40262 &_swigt__p_wxChar,
40263 &_swigt__p_wxChildFocusEvent,
40264 &_swigt__p_wxClientDC,
40265 &_swigt__p_wxClipboardTextEvent,
40266 &_swigt__p_wxCloseEvent,
40267 &_swigt__p_wxColor,
40268 &_swigt__p_wxColour,
40269 &_swigt__p_wxColourDatabase,
40270 &_swigt__p_wxCommandEvent,
40271 &_swigt__p_wxContextMenuEvent,
40272 &_swigt__p_wxControl,
40273 &_swigt__p_wxControlWithItems,
40274 &_swigt__p_wxCursor,
40275 &_swigt__p_wxDC,
40276 &_swigt__p_wxDCBrushChanger,
40277 &_swigt__p_wxDCClipper,
40278 &_swigt__p_wxDCOverlay,
40279 &_swigt__p_wxDCPenChanger,
40280 &_swigt__p_wxDCTextColourChanger,
40281 &_swigt__p_wxDash,
40282 &_swigt__p_wxDateEvent,
40283 &_swigt__p_wxDisplayChangedEvent,
40284 &_swigt__p_wxDropFilesEvent,
40285 &_swigt__p_wxDuplexMode,
40286 &_swigt__p_wxEffects,
40287 &_swigt__p_wxEncodingConverter,
40288 &_swigt__p_wxEraseEvent,
40289 &_swigt__p_wxEvent,
40290 &_swigt__p_wxEvtHandler,
40291 &_swigt__p_wxFSFile,
40292 &_swigt__p_wxFileSystem,
40293 &_swigt__p_wxFlexGridSizer,
40294 &_swigt__p_wxFocusEvent,
40295 &_swigt__p_wxFont,
40296 &_swigt__p_wxFontList,
40297 &_swigt__p_wxFontMapper,
40298 &_swigt__p_wxGBSizerItem,
40299 &_swigt__p_wxGCDC,
40300 &_swigt__p_wxGDIObjListBase,
40301 &_swigt__p_wxGDIObject,
40302 &_swigt__p_wxGIFHandler,
40303 &_swigt__p_wxGraphicsBrush,
40304 &_swigt__p_wxGraphicsContext,
40305 &_swigt__p_wxGraphicsFont,
40306 &_swigt__p_wxGraphicsMatrix,
40307 &_swigt__p_wxGraphicsObject,
40308 &_swigt__p_wxGraphicsPath,
40309 &_swigt__p_wxGraphicsPen,
40310 &_swigt__p_wxGraphicsRenderer,
40311 &_swigt__p_wxGridBagSizer,
40312 &_swigt__p_wxGridSizer,
40313 &_swigt__p_wxHeaderButtonParams,
40314 &_swigt__p_wxICOHandler,
40315 &_swigt__p_wxIcon,
40316 &_swigt__p_wxIconBundle,
40317 &_swigt__p_wxIconLocation,
40318 &_swigt__p_wxIconizeEvent,
40319 &_swigt__p_wxIdleEvent,
40320 &_swigt__p_wxImage,
40321 &_swigt__p_wxImageHandler,
40322 &_swigt__p_wxImageList,
40323 &_swigt__p_wxIndividualLayoutConstraint,
40324 &_swigt__p_wxInitDialogEvent,
40325 &_swigt__p_wxJPEGHandler,
40326 &_swigt__p_wxKeyEvent,
40327 &_swigt__p_wxLanguageInfo,
40328 &_swigt__p_wxLayoutConstraints,
40329 &_swigt__p_wxLocale,
40330 &_swigt__p_wxMask,
40331 &_swigt__p_wxMaximizeEvent,
40332 &_swigt__p_wxMemoryDC,
40333 &_swigt__p_wxMenu,
40334 &_swigt__p_wxMenuBar,
40335 &_swigt__p_wxMenuEvent,
40336 &_swigt__p_wxMenuItem,
40337 &_swigt__p_wxMetaFile,
40338 &_swigt__p_wxMetaFileDC,
40339 &_swigt__p_wxMirrorDC,
40340 &_swigt__p_wxMouseCaptureChangedEvent,
40341 &_swigt__p_wxMouseCaptureLostEvent,
40342 &_swigt__p_wxMouseEvent,
40343 &_swigt__p_wxMoveEvent,
40344 &_swigt__p_wxNativeEncodingInfo,
40345 &_swigt__p_wxNativeFontInfo,
40346 &_swigt__p_wxNativePixelData,
40347 &_swigt__p_wxNativePixelData_Accessor,
40348 &_swigt__p_wxNavigationKeyEvent,
40349 &_swigt__p_wxNcPaintEvent,
40350 &_swigt__p_wxNotifyEvent,
40351 &_swigt__p_wxObject,
40352 &_swigt__p_wxOverlay,
40353 &_swigt__p_wxPCXHandler,
40354 &_swigt__p_wxPNGHandler,
40355 &_swigt__p_wxPNMHandler,
40356 &_swigt__p_wxPaintDC,
40357 &_swigt__p_wxPaintEvent,
40358 &_swigt__p_wxPalette,
40359 &_swigt__p_wxPaletteChangedEvent,
40360 &_swigt__p_wxPaperSize,
40361 &_swigt__p_wxPen,
40362 &_swigt__p_wxPenList,
40363 &_swigt__p_wxPixelDataBase,
40364 &_swigt__p_wxPoint,
40365 &_swigt__p_wxPoint2D,
40366 &_swigt__p_wxPoint2DDouble,
40367 &_swigt__p_wxPostScriptDC,
40368 &_swigt__p_wxPrintData,
40369 &_swigt__p_wxPrinterDC,
40370 &_swigt__p_wxPseudoDC,
40371 &_swigt__p_wxPyApp,
40372 &_swigt__p_wxPyCommandEvent,
40373 &_swigt__p_wxPyEvent,
40374 &_swigt__p_wxPyFontEnumerator,
40375 &_swigt__p_wxPyImageHandler,
40376 &_swigt__p_wxPyLocale,
40377 &_swigt__p_wxPySizer,
40378 &_swigt__p_wxPyValidator,
40379 &_swigt__p_wxQueryNewPaletteEvent,
40380 &_swigt__p_wxRect,
40381 &_swigt__p_wxRect2DDouble,
40382 &_swigt__p_wxRegion,
40383 &_swigt__p_wxRegionIterator,
40384 &_swigt__p_wxRendererNative,
40385 &_swigt__p_wxRendererVersion,
40386 &_swigt__p_wxScreenDC,
40387 &_swigt__p_wxScrollEvent,
40388 &_swigt__p_wxScrollWinEvent,
40389 &_swigt__p_wxSetCursorEvent,
40390 &_swigt__p_wxShowEvent,
40391 &_swigt__p_wxSize,
40392 &_swigt__p_wxSizeEvent,
40393 &_swigt__p_wxSizer,
40394 &_swigt__p_wxSizerItem,
40395 &_swigt__p_wxSplitterRenderParams,
40396 &_swigt__p_wxStaticBoxSizer,
40397 &_swigt__p_wxStdDialogButtonSizer,
40398 &_swigt__p_wxStockGDI,
40399 &_swigt__p_wxString,
40400 &_swigt__p_wxSysColourChangedEvent,
40401 &_swigt__p_wxTGAHandler,
40402 &_swigt__p_wxTIFFHandler,
40403 &_swigt__p_wxUpdateUIEvent,
40404 &_swigt__p_wxValidator,
40405 &_swigt__p_wxWindow,
40406 &_swigt__p_wxWindowCreateEvent,
40407 &_swigt__p_wxWindowDC,
40408 &_swigt__p_wxWindowDestroyEvent,
40409 &_swigt__p_wxXPMHandler,
40410 };
40411
40412 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
40413 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
40414 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
40415 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
40416 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
40417 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
40418 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
40419 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
40420 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
40421 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
40422 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
40423 static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40424 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
40425 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
40426 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
40427 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}};
40428 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40429 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
40430 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}};
40431 static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
40432 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
40433 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
40434 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
40435 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}};
40436 static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
40437 static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
40438 static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
40439 static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
40440 static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
40441 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
40442 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
40443 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
40444 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
40445 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
40446 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
40447 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
40448 static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
40449 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}};
40450 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}};
40451 static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
40452 static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
40453 static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
40454 static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
40455 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}};
40456 static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
40457 static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
40458 static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
40459 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
40460 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
40461 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
40462 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
40463 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
40464 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
40465 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
40466 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}};
40467 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
40468 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}};
40469 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
40470 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
40471 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
40472 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
40473 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
40474 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
40475 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
40476 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
40477 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
40478 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
40479 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
40480 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
40481 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40482 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40483 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
40484 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
40485 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
40486 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
40487 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
40488 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40489 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40490 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
40491 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
40492 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40493 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40494 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40495 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40496 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40497 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40498 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
40499 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
40500 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
40501 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
40502 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
40503 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
40504 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
40505 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
40506 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
40507 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
40508 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
40509 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
40510 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40511 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40512 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40513 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
40514 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
40515 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
40516 static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
40517 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
40518 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
40519 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40520 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40521 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
40522 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
40523 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
40524 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
40525 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
40526 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
40527 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
40528 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
40529 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
40530 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
40531 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
40532 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
40533 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
40534 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
40535 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40536 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40537 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
40538 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
40539 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40540 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40541 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
40542 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
40543 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
40544 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
40545 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40546 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40547 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
40548 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40549 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40550 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
40551 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
40552 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
40553 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}};
40554 static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
40555 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40556 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
40557 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
40558 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
40559 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
40560 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}};
40561 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
40562 static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
40563 static swig_cast_info _swigc__p_wxPoint2DDouble[] = { {&_swigt__p_wxPoint2DDouble, 0, 0, 0},{0, 0, 0, 0}};
40564 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
40565 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
40566 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
40567 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
40568 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
40569 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
40570 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
40571 static swig_cast_info _swigc__p_wxRect2DDouble[] = { {&_swigt__p_wxRect2DDouble, 0, 0, 0},{0, 0, 0, 0}};
40572 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
40573 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
40574 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
40575 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
40576 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
40577 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
40578 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
40579 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
40580 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
40581 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}};
40582 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}};
40583
40584 static swig_cast_info *swig_cast_initial[] = {
40585 _swigc__p_buffer,
40586 _swigc__p_char,
40587 _swigc__p_double,
40588 _swigc__p_form_ops_t,
40589 _swigc__p_int,
40590 _swigc__p_unsigned_char,
40591 _swigc__p_unsigned_int,
40592 _swigc__p_unsigned_long,
40593 _swigc__p_void,
40594 _swigc__p_wxANIHandler,
40595 _swigc__p_wxAcceleratorTable,
40596 _swigc__p_wxActivateEvent,
40597 _swigc__p_wxAlphaPixelData,
40598 _swigc__p_wxAlphaPixelData_Accessor,
40599 _swigc__p_wxAutoBufferedPaintDC,
40600 _swigc__p_wxBMPHandler,
40601 _swigc__p_wxBitmap,
40602 _swigc__p_wxBoxSizer,
40603 _swigc__p_wxBrush,
40604 _swigc__p_wxBrushList,
40605 _swigc__p_wxBufferedDC,
40606 _swigc__p_wxBufferedPaintDC,
40607 _swigc__p_wxCURHandler,
40608 _swigc__p_wxChar,
40609 _swigc__p_wxChildFocusEvent,
40610 _swigc__p_wxClientDC,
40611 _swigc__p_wxClipboardTextEvent,
40612 _swigc__p_wxCloseEvent,
40613 _swigc__p_wxColor,
40614 _swigc__p_wxColour,
40615 _swigc__p_wxColourDatabase,
40616 _swigc__p_wxCommandEvent,
40617 _swigc__p_wxContextMenuEvent,
40618 _swigc__p_wxControl,
40619 _swigc__p_wxControlWithItems,
40620 _swigc__p_wxCursor,
40621 _swigc__p_wxDC,
40622 _swigc__p_wxDCBrushChanger,
40623 _swigc__p_wxDCClipper,
40624 _swigc__p_wxDCOverlay,
40625 _swigc__p_wxDCPenChanger,
40626 _swigc__p_wxDCTextColourChanger,
40627 _swigc__p_wxDash,
40628 _swigc__p_wxDateEvent,
40629 _swigc__p_wxDisplayChangedEvent,
40630 _swigc__p_wxDropFilesEvent,
40631 _swigc__p_wxDuplexMode,
40632 _swigc__p_wxEffects,
40633 _swigc__p_wxEncodingConverter,
40634 _swigc__p_wxEraseEvent,
40635 _swigc__p_wxEvent,
40636 _swigc__p_wxEvtHandler,
40637 _swigc__p_wxFSFile,
40638 _swigc__p_wxFileSystem,
40639 _swigc__p_wxFlexGridSizer,
40640 _swigc__p_wxFocusEvent,
40641 _swigc__p_wxFont,
40642 _swigc__p_wxFontList,
40643 _swigc__p_wxFontMapper,
40644 _swigc__p_wxGBSizerItem,
40645 _swigc__p_wxGCDC,
40646 _swigc__p_wxGDIObjListBase,
40647 _swigc__p_wxGDIObject,
40648 _swigc__p_wxGIFHandler,
40649 _swigc__p_wxGraphicsBrush,
40650 _swigc__p_wxGraphicsContext,
40651 _swigc__p_wxGraphicsFont,
40652 _swigc__p_wxGraphicsMatrix,
40653 _swigc__p_wxGraphicsObject,
40654 _swigc__p_wxGraphicsPath,
40655 _swigc__p_wxGraphicsPen,
40656 _swigc__p_wxGraphicsRenderer,
40657 _swigc__p_wxGridBagSizer,
40658 _swigc__p_wxGridSizer,
40659 _swigc__p_wxHeaderButtonParams,
40660 _swigc__p_wxICOHandler,
40661 _swigc__p_wxIcon,
40662 _swigc__p_wxIconBundle,
40663 _swigc__p_wxIconLocation,
40664 _swigc__p_wxIconizeEvent,
40665 _swigc__p_wxIdleEvent,
40666 _swigc__p_wxImage,
40667 _swigc__p_wxImageHandler,
40668 _swigc__p_wxImageList,
40669 _swigc__p_wxIndividualLayoutConstraint,
40670 _swigc__p_wxInitDialogEvent,
40671 _swigc__p_wxJPEGHandler,
40672 _swigc__p_wxKeyEvent,
40673 _swigc__p_wxLanguageInfo,
40674 _swigc__p_wxLayoutConstraints,
40675 _swigc__p_wxLocale,
40676 _swigc__p_wxMask,
40677 _swigc__p_wxMaximizeEvent,
40678 _swigc__p_wxMemoryDC,
40679 _swigc__p_wxMenu,
40680 _swigc__p_wxMenuBar,
40681 _swigc__p_wxMenuEvent,
40682 _swigc__p_wxMenuItem,
40683 _swigc__p_wxMetaFile,
40684 _swigc__p_wxMetaFileDC,
40685 _swigc__p_wxMirrorDC,
40686 _swigc__p_wxMouseCaptureChangedEvent,
40687 _swigc__p_wxMouseCaptureLostEvent,
40688 _swigc__p_wxMouseEvent,
40689 _swigc__p_wxMoveEvent,
40690 _swigc__p_wxNativeEncodingInfo,
40691 _swigc__p_wxNativeFontInfo,
40692 _swigc__p_wxNativePixelData,
40693 _swigc__p_wxNativePixelData_Accessor,
40694 _swigc__p_wxNavigationKeyEvent,
40695 _swigc__p_wxNcPaintEvent,
40696 _swigc__p_wxNotifyEvent,
40697 _swigc__p_wxObject,
40698 _swigc__p_wxOverlay,
40699 _swigc__p_wxPCXHandler,
40700 _swigc__p_wxPNGHandler,
40701 _swigc__p_wxPNMHandler,
40702 _swigc__p_wxPaintDC,
40703 _swigc__p_wxPaintEvent,
40704 _swigc__p_wxPalette,
40705 _swigc__p_wxPaletteChangedEvent,
40706 _swigc__p_wxPaperSize,
40707 _swigc__p_wxPen,
40708 _swigc__p_wxPenList,
40709 _swigc__p_wxPixelDataBase,
40710 _swigc__p_wxPoint,
40711 _swigc__p_wxPoint2D,
40712 _swigc__p_wxPoint2DDouble,
40713 _swigc__p_wxPostScriptDC,
40714 _swigc__p_wxPrintData,
40715 _swigc__p_wxPrinterDC,
40716 _swigc__p_wxPseudoDC,
40717 _swigc__p_wxPyApp,
40718 _swigc__p_wxPyCommandEvent,
40719 _swigc__p_wxPyEvent,
40720 _swigc__p_wxPyFontEnumerator,
40721 _swigc__p_wxPyImageHandler,
40722 _swigc__p_wxPyLocale,
40723 _swigc__p_wxPySizer,
40724 _swigc__p_wxPyValidator,
40725 _swigc__p_wxQueryNewPaletteEvent,
40726 _swigc__p_wxRect,
40727 _swigc__p_wxRect2DDouble,
40728 _swigc__p_wxRegion,
40729 _swigc__p_wxRegionIterator,
40730 _swigc__p_wxRendererNative,
40731 _swigc__p_wxRendererVersion,
40732 _swigc__p_wxScreenDC,
40733 _swigc__p_wxScrollEvent,
40734 _swigc__p_wxScrollWinEvent,
40735 _swigc__p_wxSetCursorEvent,
40736 _swigc__p_wxShowEvent,
40737 _swigc__p_wxSize,
40738 _swigc__p_wxSizeEvent,
40739 _swigc__p_wxSizer,
40740 _swigc__p_wxSizerItem,
40741 _swigc__p_wxSplitterRenderParams,
40742 _swigc__p_wxStaticBoxSizer,
40743 _swigc__p_wxStdDialogButtonSizer,
40744 _swigc__p_wxStockGDI,
40745 _swigc__p_wxString,
40746 _swigc__p_wxSysColourChangedEvent,
40747 _swigc__p_wxTGAHandler,
40748 _swigc__p_wxTIFFHandler,
40749 _swigc__p_wxUpdateUIEvent,
40750 _swigc__p_wxValidator,
40751 _swigc__p_wxWindow,
40752 _swigc__p_wxWindowCreateEvent,
40753 _swigc__p_wxWindowDC,
40754 _swigc__p_wxWindowDestroyEvent,
40755 _swigc__p_wxXPMHandler,
40756 };
40757
40758
40759 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
40760
40761 static swig_const_info swig_const_table[] = {
40762 {0, 0, 0, 0.0, 0, 0}};
40763
40764 #ifdef __cplusplus
40765 }
40766 #endif
40767 /* -----------------------------------------------------------------------------
40768 * Type initialization:
40769 * This problem is tough by the requirement that no dynamic
40770 * memory is used. Also, since swig_type_info structures store pointers to
40771 * swig_cast_info structures and swig_cast_info structures store pointers back
40772 * to swig_type_info structures, we need some lookup code at initialization.
40773 * The idea is that swig generates all the structures that are needed.
40774 * The runtime then collects these partially filled structures.
40775 * The SWIG_InitializeModule function takes these initial arrays out of
40776 * swig_module, and does all the lookup, filling in the swig_module.types
40777 * array with the correct data and linking the correct swig_cast_info
40778 * structures together.
40779 *
40780 * The generated swig_type_info structures are assigned staticly to an initial
40781 * array. We just loop though that array, and handle each type individually.
40782 * First we lookup if this type has been already loaded, and if so, use the
40783 * loaded structure instead of the generated one. Then we have to fill in the
40784 * cast linked list. The cast data is initially stored in something like a
40785 * two-dimensional array. Each row corresponds to a type (there are the same
40786 * number of rows as there are in the swig_type_initial array). Each entry in
40787 * a column is one of the swig_cast_info structures for that type.
40788 * The cast_initial array is actually an array of arrays, because each row has
40789 * a variable number of columns. So to actually build the cast linked list,
40790 * we find the array of casts associated with the type, and loop through it
40791 * adding the casts to the list. The one last trick we need to do is making
40792 * sure the type pointer in the swig_cast_info struct is correct.
40793 *
40794 * First off, we lookup the cast->type name to see if it is already loaded.
40795 * There are three cases to handle:
40796 * 1) If the cast->type has already been loaded AND the type we are adding
40797 * casting info to has not been loaded (it is in this module), THEN we
40798 * replace the cast->type pointer with the type pointer that has already
40799 * been loaded.
40800 * 2) If BOTH types (the one we are adding casting info to, and the
40801 * cast->type) are loaded, THEN the cast info has already been loaded by
40802 * the previous module so we just ignore it.
40803 * 3) Finally, if cast->type has not already been loaded, then we add that
40804 * swig_cast_info to the linked list (because the cast->type) pointer will
40805 * be correct.
40806 * ----------------------------------------------------------------------------- */
40807
40808 #ifdef __cplusplus
40809 extern "C" {
40810 #if 0
40811 } /* c-mode */
40812 #endif
40813 #endif
40814
40815 #if 0
40816 #define SWIGRUNTIME_DEBUG
40817 #endif
40818
40819 SWIGRUNTIME void
40820 SWIG_InitializeModule(void *clientdata) {
40821 size_t i;
40822 swig_module_info *module_head;
40823 static int init_run = 0;
40824
40825 clientdata = clientdata;
40826
40827 if (init_run) return;
40828 init_run = 1;
40829
40830 /* Initialize the swig_module */
40831 swig_module.type_initial = swig_type_initial;
40832 swig_module.cast_initial = swig_cast_initial;
40833
40834 /* Try and load any already created modules */
40835 module_head = SWIG_GetModule(clientdata);
40836 if (module_head) {
40837 swig_module.next = module_head->next;
40838 module_head->next = &swig_module;
40839 } else {
40840 /* This is the first module loaded */
40841 swig_module.next = &swig_module;
40842 SWIG_SetModule(clientdata, &swig_module);
40843 }
40844
40845 /* Now work on filling in swig_module.types */
40846 #ifdef SWIGRUNTIME_DEBUG
40847 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
40848 #endif
40849 for (i = 0; i < swig_module.size; ++i) {
40850 swig_type_info *type = 0;
40851 swig_type_info *ret;
40852 swig_cast_info *cast;
40853
40854 #ifdef SWIGRUNTIME_DEBUG
40855 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40856 #endif
40857
40858 /* if there is another module already loaded */
40859 if (swig_module.next != &swig_module) {
40860 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
40861 }
40862 if (type) {
40863 /* Overwrite clientdata field */
40864 #ifdef SWIGRUNTIME_DEBUG
40865 printf("SWIG_InitializeModule: found type %s\n", type->name);
40866 #endif
40867 if (swig_module.type_initial[i]->clientdata) {
40868 type->clientdata = swig_module.type_initial[i]->clientdata;
40869 #ifdef SWIGRUNTIME_DEBUG
40870 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
40871 #endif
40872 }
40873 } else {
40874 type = swig_module.type_initial[i];
40875 }
40876
40877 /* Insert casting types */
40878 cast = swig_module.cast_initial[i];
40879 while (cast->type) {
40880 /* Don't need to add information already in the list */
40881 ret = 0;
40882 #ifdef SWIGRUNTIME_DEBUG
40883 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
40884 #endif
40885 if (swig_module.next != &swig_module) {
40886 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
40887 #ifdef SWIGRUNTIME_DEBUG
40888 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
40889 #endif
40890 }
40891 if (ret) {
40892 if (type == swig_module.type_initial[i]) {
40893 #ifdef SWIGRUNTIME_DEBUG
40894 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
40895 #endif
40896 cast->type = ret;
40897 ret = 0;
40898 } else {
40899 /* Check for casting already in the list */
40900 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
40901 #ifdef SWIGRUNTIME_DEBUG
40902 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
40903 #endif
40904 if (!ocast) ret = 0;
40905 }
40906 }
40907
40908 if (!ret) {
40909 #ifdef SWIGRUNTIME_DEBUG
40910 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
40911 #endif
40912 if (type->cast) {
40913 type->cast->prev = cast;
40914 cast->next = type->cast;
40915 }
40916 type->cast = cast;
40917 }
40918 cast++;
40919 }
40920 /* Set entry in modules->types array equal to the type */
40921 swig_module.types[i] = type;
40922 }
40923 swig_module.types[i] = 0;
40924
40925 #ifdef SWIGRUNTIME_DEBUG
40926 printf("**** SWIG_InitializeModule: Cast List ******\n");
40927 for (i = 0; i < swig_module.size; ++i) {
40928 int j = 0;
40929 swig_cast_info *cast = swig_module.cast_initial[i];
40930 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40931 while (cast->type) {
40932 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
40933 cast++;
40934 ++j;
40935 }
40936 printf("---- Total casts: %d\n",j);
40937 }
40938 printf("**** SWIG_InitializeModule: Cast List ******\n");
40939 #endif
40940 }
40941
40942 /* This function will propagate the clientdata field of type to
40943 * any new swig_type_info structures that have been added into the list
40944 * of equivalent types. It is like calling
40945 * SWIG_TypeClientData(type, clientdata) a second time.
40946 */
40947 SWIGRUNTIME void
40948 SWIG_PropagateClientData(void) {
40949 size_t i;
40950 swig_cast_info *equiv;
40951 static int init_run = 0;
40952
40953 if (init_run) return;
40954 init_run = 1;
40955
40956 for (i = 0; i < swig_module.size; i++) {
40957 if (swig_module.types[i]->clientdata) {
40958 equiv = swig_module.types[i]->cast;
40959 while (equiv) {
40960 if (!equiv->converter) {
40961 if (equiv->type && !equiv->type->clientdata)
40962 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
40963 }
40964 equiv = equiv->next;
40965 }
40966 }
40967 }
40968 }
40969
40970 #ifdef __cplusplus
40971 #if 0
40972 {
40973 /* c-mode */
40974 #endif
40975 }
40976 #endif
40977
40978
40979
40980 #ifdef __cplusplus
40981 extern "C" {
40982 #endif
40983
40984 /* Python-specific SWIG API */
40985 #define SWIG_newvarlink() SWIG_Python_newvarlink()
40986 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
40987 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
40988
40989 /* -----------------------------------------------------------------------------
40990 * global variable support code.
40991 * ----------------------------------------------------------------------------- */
40992
40993 typedef struct swig_globalvar {
40994 char *name; /* Name of global variable */
40995 PyObject *(*get_attr)(void); /* Return the current value */
40996 int (*set_attr)(PyObject *); /* Set the value */
40997 struct swig_globalvar *next;
40998 } swig_globalvar;
40999
41000 typedef struct swig_varlinkobject {
41001 PyObject_HEAD
41002 swig_globalvar *vars;
41003 } swig_varlinkobject;
41004
41005 SWIGINTERN PyObject *
41006 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
41007 return PyString_FromString("<Swig global variables>");
41008 }
41009
41010 SWIGINTERN PyObject *
41011 swig_varlink_str(swig_varlinkobject *v) {
41012 PyObject *str = PyString_FromString("(");
41013 swig_globalvar *var;
41014 for (var = v->vars; var; var=var->next) {
41015 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
41016 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
41017 }
41018 PyString_ConcatAndDel(&str,PyString_FromString(")"));
41019 return str;
41020 }
41021
41022 SWIGINTERN int
41023 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
41024 PyObject *str = swig_varlink_str(v);
41025 fprintf(fp,"Swig global variables ");
41026 fprintf(fp,"%s\n", PyString_AsString(str));
41027 Py_DECREF(str);
41028 return 0;
41029 }
41030
41031 SWIGINTERN void
41032 swig_varlink_dealloc(swig_varlinkobject *v) {
41033 swig_globalvar *var = v->vars;
41034 while (var) {
41035 swig_globalvar *n = var->next;
41036 free(var->name);
41037 free(var);
41038 var = n;
41039 }
41040 }
41041
41042 SWIGINTERN PyObject *
41043 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
41044 PyObject *res = NULL;
41045 swig_globalvar *var = v->vars;
41046 while (var) {
41047 if (strcmp(var->name,n) == 0) {
41048 res = (*var->get_attr)();
41049 break;
41050 }
41051 var = var->next;
41052 }
41053 if (res == NULL && !PyErr_Occurred()) {
41054 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
41055 }
41056 return res;
41057 }
41058
41059 SWIGINTERN int
41060 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
41061 int res = 1;
41062 swig_globalvar *var = v->vars;
41063 while (var) {
41064 if (strcmp(var->name,n) == 0) {
41065 res = (*var->set_attr)(p);
41066 break;
41067 }
41068 var = var->next;
41069 }
41070 if (res == 1 && !PyErr_Occurred()) {
41071 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
41072 }
41073 return res;
41074 }
41075
41076 SWIGINTERN PyTypeObject*
41077 swig_varlink_type(void) {
41078 static char varlink__doc__[] = "Swig var link object";
41079 static PyTypeObject varlink_type;
41080 static int type_init = 0;
41081 if (!type_init) {
41082 const PyTypeObject tmp
41083 = {
41084 PyObject_HEAD_INIT(NULL)
41085 0, /* Number of items in variable part (ob_size) */
41086 (char *)"swigvarlink", /* Type name (tp_name) */
41087 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
41088 0, /* Itemsize (tp_itemsize) */
41089 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
41090 (printfunc) swig_varlink_print, /* Print (tp_print) */
41091 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
41092 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
41093 0, /* tp_compare */
41094 (reprfunc) swig_varlink_repr, /* tp_repr */
41095 0, /* tp_as_number */
41096 0, /* tp_as_sequence */
41097 0, /* tp_as_mapping */
41098 0, /* tp_hash */
41099 0, /* tp_call */
41100 (reprfunc)swig_varlink_str, /* tp_str */
41101 0, /* tp_getattro */
41102 0, /* tp_setattro */
41103 0, /* tp_as_buffer */
41104 0, /* tp_flags */
41105 varlink__doc__, /* tp_doc */
41106 0, /* tp_traverse */
41107 0, /* tp_clear */
41108 0, /* tp_richcompare */
41109 0, /* tp_weaklistoffset */
41110 #if PY_VERSION_HEX >= 0x02020000
41111 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
41112 #endif
41113 #if PY_VERSION_HEX >= 0x02030000
41114 0, /* tp_del */
41115 #endif
41116 #ifdef COUNT_ALLOCS
41117 0,0,0,0 /* tp_alloc -> tp_next */
41118 #endif
41119 };
41120 varlink_type = tmp;
41121 varlink_type.ob_type = &PyType_Type;
41122 type_init = 1;
41123 }
41124 return &varlink_type;
41125 }
41126
41127 /* Create a variable linking object for use later */
41128 SWIGINTERN PyObject *
41129 SWIG_Python_newvarlink(void) {
41130 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
41131 if (result) {
41132 result->vars = 0;
41133 }
41134 return ((PyObject*) result);
41135 }
41136
41137 SWIGINTERN void
41138 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
41139 swig_varlinkobject *v = (swig_varlinkobject *) p;
41140 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
41141 if (gv) {
41142 size_t size = strlen(name)+1;
41143 gv->name = (char *)malloc(size);
41144 if (gv->name) {
41145 strncpy(gv->name,name,size);
41146 gv->get_attr = get_attr;
41147 gv->set_attr = set_attr;
41148 gv->next = v->vars;
41149 }
41150 }
41151 v->vars = gv;
41152 }
41153
41154 SWIGINTERN PyObject *
41155 SWIG_globals() {
41156 static PyObject *_SWIG_globals = 0;
41157 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
41158 return _SWIG_globals;
41159 }
41160
41161 /* -----------------------------------------------------------------------------
41162 * constants/methods manipulation
41163 * ----------------------------------------------------------------------------- */
41164
41165 /* Install Constants */
41166 SWIGINTERN void
41167 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
41168 PyObject *obj = 0;
41169 size_t i;
41170 for (i = 0; constants[i].type; ++i) {
41171 switch(constants[i].type) {
41172 case SWIG_PY_POINTER:
41173 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
41174 break;
41175 case SWIG_PY_BINARY:
41176 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
41177 break;
41178 default:
41179 obj = 0;
41180 break;
41181 }
41182 if (obj) {
41183 PyDict_SetItemString(d, constants[i].name, obj);
41184 Py_DECREF(obj);
41185 }
41186 }
41187 }
41188
41189 /* -----------------------------------------------------------------------------*/
41190 /* Fix SwigMethods to carry the callback ptrs when needed */
41191 /* -----------------------------------------------------------------------------*/
41192
41193 SWIGINTERN void
41194 SWIG_Python_FixMethods(PyMethodDef *methods,
41195 swig_const_info *const_table,
41196 swig_type_info **types,
41197 swig_type_info **types_initial) {
41198 size_t i;
41199 for (i = 0; methods[i].ml_name; ++i) {
41200 const char *c = methods[i].ml_doc;
41201 if (c && (c = strstr(c, "swig_ptr: "))) {
41202 int j;
41203 swig_const_info *ci = 0;
41204 const char *name = c + 10;
41205 for (j = 0; const_table[j].type; ++j) {
41206 if (strncmp(const_table[j].name, name,
41207 strlen(const_table[j].name)) == 0) {
41208 ci = &(const_table[j]);
41209 break;
41210 }
41211 }
41212 if (ci) {
41213 size_t shift = (ci->ptype) - types;
41214 swig_type_info *ty = types_initial[shift];
41215 size_t ldoc = (c - methods[i].ml_doc);
41216 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
41217 char *ndoc = (char*)malloc(ldoc + lptr + 10);
41218 if (ndoc) {
41219 char *buff = ndoc;
41220 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
41221 if (ptr) {
41222 strncpy(buff, methods[i].ml_doc, ldoc);
41223 buff += ldoc;
41224 strncpy(buff, "swig_ptr: ", 10);
41225 buff += 10;
41226 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
41227 methods[i].ml_doc = ndoc;
41228 }
41229 }
41230 }
41231 }
41232 }
41233 }
41234
41235 #ifdef __cplusplus
41236 }
41237 #endif
41238
41239 /* -----------------------------------------------------------------------------*
41240 * Partial Init method
41241 * -----------------------------------------------------------------------------*/
41242
41243 #ifdef __cplusplus
41244 extern "C"
41245 #endif
41246 SWIGEXPORT void SWIG_init(void) {
41247 PyObject *m, *d;
41248
41249 /* Fix SwigMethods to carry the callback ptrs when needed */
41250 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
41251
41252 m = Py_InitModule((char *) SWIG_name, SwigMethods);
41253 d = PyModule_GetDict(m);
41254
41255 SWIG_InitializeModule(0);
41256 SWIG_InstallConstants(d,swig_const_table);
41257
41258
41259 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
41260 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
41261 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
41262 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
41263 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
41264 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
41265 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
41266 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
41267 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
41268 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
41269 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
41270 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
41271 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
41272 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
41273 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
41274 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
41275 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
41276 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
41277 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
41278 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
41279 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
41280 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
41281 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
41282 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
41283 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
41284 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
41285 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
41286 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
41287 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
41288 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
41289 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
41290 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
41291 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
41292 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
41293 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
41294 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
41295 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
41296 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
41297 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
41298 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
41299 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
41300 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
41301 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
41302 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
41303 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
41304 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
41305 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
41306 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
41307 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
41308 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
41309 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
41310 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
41311 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
41312 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
41313 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
41314 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
41315 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
41316 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
41317 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
41318 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
41319 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
41320 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
41321 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
41322 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
41323 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
41324 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
41325 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
41326 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
41327 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
41328 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
41329 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
41330 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
41331 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
41332 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
41333 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
41334 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
41335 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
41336 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
41337 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
41338 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
41339 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
41340 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
41341 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
41342 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
41343 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
41344 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
41345 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
41346 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
41347 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
41348 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
41349 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
41350 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
41351 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
41352 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
41353 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
41354 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
41355 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
41356 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
41357 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
41358 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
41359 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
41360 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
41361 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
41362 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
41363 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
41364 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
41365 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
41366 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
41367 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
41368 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
41369 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
41370 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
41371 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
41372 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
41373 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
41374 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
41375 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
41376 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
41377 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
41378 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
41379 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
41380 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
41381 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
41382 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
41383 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
41384 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
41385 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
41386 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
41387 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
41388 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
41389 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
41390 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
41391
41392 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
41393
41394 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
41395 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
41396 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
41397 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
41398 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
41399 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
41400 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
41401 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
41402 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
41403 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
41404 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
41405 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
41406 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
41407 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
41408 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
41409 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
41410 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
41411 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
41412 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
41413 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
41414 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
41415 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
41416 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
41417 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
41418 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
41419 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
41420 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
41421 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
41422 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
41423 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
41424 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
41425 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
41426 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
41427 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
41428 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
41429 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
41430 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
41431 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
41432 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
41433 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
41434 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
41435 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
41436 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
41437 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
41438 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
41439 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
41440 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
41441 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
41442 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
41443 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
41444 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
41445 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
41446 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
41447 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
41448 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
41449 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
41450 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
41451 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
41452 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
41453 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
41454 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
41455 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
41456 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
41457 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
41458 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
41459 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
41460 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
41461 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
41462 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
41463 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
41464 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
41465 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
41466 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
41467 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
41468 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
41469 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
41470 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
41471 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
41472 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
41473 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
41474 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
41475 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
41476 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
41477 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
41478 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
41479 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
41480 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
41481 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
41482 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
41483 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
41484 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
41485 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
41486 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
41487 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
41488 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
41489 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
41490 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
41491 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
41492 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
41493 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
41494 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
41495 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
41496 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
41497 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
41498 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
41499 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
41500 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
41501 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
41502 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
41503 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
41504 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
41505 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
41506 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
41507 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
41508 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
41509 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
41510 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
41511 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
41512 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
41513 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
41514 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
41515 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
41516 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
41517 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
41518 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
41519 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
41520 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
41521 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
41522 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
41523 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
41524 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
41525 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
41526 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
41527 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
41528 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
41529 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
41530 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
41531 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
41532 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
41533 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
41534 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
41535 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
41536 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
41537 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
41538 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
41539 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
41540 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
41541 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
41542 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
41543 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
41544 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
41545 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
41546 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
41547 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
41548 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
41549 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
41550 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
41551 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
41552 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
41553 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
41554 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
41555 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
41556 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
41557 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
41558 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
41559 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
41560 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
41561 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
41562 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
41563 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
41564 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
41565 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
41566 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
41567 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
41568 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
41569 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
41570 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
41571 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
41572 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
41573 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
41574 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
41575 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
41576 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
41577 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
41578 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
41579 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
41580 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
41581 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
41582 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
41583 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
41584 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
41585 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
41586 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
41587 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
41588 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
41589 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
41590 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
41591 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
41592 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
41593 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
41594 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
41595 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
41596 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
41597 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
41598 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
41599 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
41600 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
41601 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
41602 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
41603 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
41604 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
41605 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
41606 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
41607 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
41608 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
41609 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
41610 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
41611 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
41612 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
41613 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
41614 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
41615 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
41616 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
41617 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
41618 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
41619 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
41620 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
41621 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
41622 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
41623 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
41624 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
41625 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
41626 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
41627 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
41628 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
41629 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
41630 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
41631 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
41632 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
41633 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
41634 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
41635 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
41636 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
41637 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
41638 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
41639 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
41640 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
41641 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
41642 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
41643 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
41644 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
41645 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
41646 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
41647 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
41648 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
41649 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
41650 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
41651 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
41652 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
41653 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
41654 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
41655 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
41656 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
41657 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
41658 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
41659 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
41660 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
41661 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
41662 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
41663 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
41664 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
41665 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
41666 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
41667 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
41668 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
41669 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
41670 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
41671 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
41672 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
41673 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
41674 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
41675 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
41676 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
41677 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
41678 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
41679 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
41680 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
41681 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
41682 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
41683 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
41684 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
41685 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
41686 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
41687 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
41688 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
41689 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
41690 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
41691 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
41692 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
41693 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
41694 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
41695 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
41696 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
41697 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
41698 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
41699 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
41700 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
41701 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
41702 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
41703 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
41704 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
41705 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
41706 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
41707 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
41708 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
41709 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
41710 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
41711 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
41712 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
41713 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
41714 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
41715 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
41716 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
41717 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
41718
41719 // Work around a chicken/egg problem in drawlist.cpp
41720 wxPyDrawList_SetAPIPtr();
41721
41722 }
41723