]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_gdi_wrap.cpp
some more updates about changes
[wxWidgets.git] / wxPython / src / mac / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_buffer swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_double swig_types[2]
2469 #define SWIGTYPE_p_form_ops_t swig_types[3]
2470 #define SWIGTYPE_p_int swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_void swig_types[8]
2475 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2476 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478 #define SWIGTYPE_p_wxAlphaPixelData swig_types[12]
2479 #define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13]
2480 #define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14]
2481 #define SWIGTYPE_p_wxBMPHandler swig_types[15]
2482 #define SWIGTYPE_p_wxBitmap swig_types[16]
2483 #define SWIGTYPE_p_wxBoxSizer swig_types[17]
2484 #define SWIGTYPE_p_wxBrush swig_types[18]
2485 #define SWIGTYPE_p_wxBrushList swig_types[19]
2486 #define SWIGTYPE_p_wxBufferedDC swig_types[20]
2487 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[21]
2488 #define SWIGTYPE_p_wxCURHandler swig_types[22]
2489 #define SWIGTYPE_p_wxChar swig_types[23]
2490 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491 #define SWIGTYPE_p_wxClientDC swig_types[25]
2492 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[26]
2493 #define SWIGTYPE_p_wxCloseEvent swig_types[27]
2494 #define SWIGTYPE_p_wxColor swig_types[28]
2495 #define SWIGTYPE_p_wxColour swig_types[29]
2496 #define SWIGTYPE_p_wxColourDatabase swig_types[30]
2497 #define SWIGTYPE_p_wxCommandEvent swig_types[31]
2498 #define SWIGTYPE_p_wxContextMenuEvent swig_types[32]
2499 #define SWIGTYPE_p_wxControl swig_types[33]
2500 #define SWIGTYPE_p_wxControlWithItems swig_types[34]
2501 #define SWIGTYPE_p_wxCursor swig_types[35]
2502 #define SWIGTYPE_p_wxDC swig_types[36]
2503 #define SWIGTYPE_p_wxDCBrushChanger swig_types[37]
2504 #define SWIGTYPE_p_wxDCClipper swig_types[38]
2505 #define SWIGTYPE_p_wxDCOverlay swig_types[39]
2506 #define SWIGTYPE_p_wxDCPenChanger swig_types[40]
2507 #define SWIGTYPE_p_wxDCTextColourChanger swig_types[41]
2508 #define SWIGTYPE_p_wxDash swig_types[42]
2509 #define SWIGTYPE_p_wxDateEvent swig_types[43]
2510 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44]
2511 #define SWIGTYPE_p_wxDropFilesEvent swig_types[45]
2512 #define SWIGTYPE_p_wxDuplexMode swig_types[46]
2513 #define SWIGTYPE_p_wxEffects swig_types[47]
2514 #define SWIGTYPE_p_wxEncodingConverter swig_types[48]
2515 #define SWIGTYPE_p_wxEraseEvent swig_types[49]
2516 #define SWIGTYPE_p_wxEvent swig_types[50]
2517 #define SWIGTYPE_p_wxEvtHandler swig_types[51]
2518 #define SWIGTYPE_p_wxFSFile swig_types[52]
2519 #define SWIGTYPE_p_wxFileSystem swig_types[53]
2520 #define SWIGTYPE_p_wxFlexGridSizer swig_types[54]
2521 #define SWIGTYPE_p_wxFocusEvent swig_types[55]
2522 #define SWIGTYPE_p_wxFont swig_types[56]
2523 #define SWIGTYPE_p_wxFontList swig_types[57]
2524 #define SWIGTYPE_p_wxFontMapper swig_types[58]
2525 #define SWIGTYPE_p_wxGBSizerItem swig_types[59]
2526 #define SWIGTYPE_p_wxGCDC swig_types[60]
2527 #define SWIGTYPE_p_wxGDIObjListBase swig_types[61]
2528 #define SWIGTYPE_p_wxGDIObject swig_types[62]
2529 #define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530 #define SWIGTYPE_p_wxGraphicsBrush swig_types[64]
2531 #define SWIGTYPE_p_wxGraphicsContext swig_types[65]
2532 #define SWIGTYPE_p_wxGraphicsFont swig_types[66]
2533 #define SWIGTYPE_p_wxGraphicsMatrix swig_types[67]
2534 #define SWIGTYPE_p_wxGraphicsObject swig_types[68]
2535 #define SWIGTYPE_p_wxGraphicsPath swig_types[69]
2536 #define SWIGTYPE_p_wxGraphicsPen swig_types[70]
2537 #define SWIGTYPE_p_wxGraphicsRenderer swig_types[71]
2538 #define SWIGTYPE_p_wxGridBagSizer swig_types[72]
2539 #define SWIGTYPE_p_wxGridSizer swig_types[73]
2540 #define SWIGTYPE_p_wxHeaderButtonParams swig_types[74]
2541 #define SWIGTYPE_p_wxICOHandler swig_types[75]
2542 #define SWIGTYPE_p_wxIcon swig_types[76]
2543 #define SWIGTYPE_p_wxIconBundle swig_types[77]
2544 #define SWIGTYPE_p_wxIconLocation swig_types[78]
2545 #define SWIGTYPE_p_wxIconizeEvent swig_types[79]
2546 #define SWIGTYPE_p_wxIdleEvent swig_types[80]
2547 #define SWIGTYPE_p_wxImage swig_types[81]
2548 #define SWIGTYPE_p_wxImageHandler swig_types[82]
2549 #define SWIGTYPE_p_wxImageList swig_types[83]
2550 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[84]
2551 #define SWIGTYPE_p_wxInitDialogEvent swig_types[85]
2552 #define SWIGTYPE_p_wxJPEGHandler swig_types[86]
2553 #define SWIGTYPE_p_wxKeyEvent swig_types[87]
2554 #define SWIGTYPE_p_wxLanguageInfo swig_types[88]
2555 #define SWIGTYPE_p_wxLayoutConstraints swig_types[89]
2556 #define SWIGTYPE_p_wxLocale swig_types[90]
2557 #define SWIGTYPE_p_wxMask swig_types[91]
2558 #define SWIGTYPE_p_wxMaximizeEvent swig_types[92]
2559 #define SWIGTYPE_p_wxMemoryDC swig_types[93]
2560 #define SWIGTYPE_p_wxMenu swig_types[94]
2561 #define SWIGTYPE_p_wxMenuBar swig_types[95]
2562 #define SWIGTYPE_p_wxMenuEvent swig_types[96]
2563 #define SWIGTYPE_p_wxMenuItem swig_types[97]
2564 #define SWIGTYPE_p_wxMetaFile swig_types[98]
2565 #define SWIGTYPE_p_wxMetaFileDC swig_types[99]
2566 #define SWIGTYPE_p_wxMirrorDC swig_types[100]
2567 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569 #define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570 #define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[105]
2572 #define SWIGTYPE_p_wxNativeFontInfo swig_types[106]
2573 #define SWIGTYPE_p_wxNativePixelData swig_types[107]
2574 #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[108]
2575 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[109]
2576 #define SWIGTYPE_p_wxNcPaintEvent swig_types[110]
2577 #define SWIGTYPE_p_wxNotifyEvent swig_types[111]
2578 #define SWIGTYPE_p_wxObject swig_types[112]
2579 #define SWIGTYPE_p_wxOverlay swig_types[113]
2580 #define SWIGTYPE_p_wxPCXHandler swig_types[114]
2581 #define SWIGTYPE_p_wxPNGHandler swig_types[115]
2582 #define SWIGTYPE_p_wxPNMHandler swig_types[116]
2583 #define SWIGTYPE_p_wxPaintDC swig_types[117]
2584 #define SWIGTYPE_p_wxPaintEvent swig_types[118]
2585 #define SWIGTYPE_p_wxPalette swig_types[119]
2586 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[120]
2587 #define SWIGTYPE_p_wxPaperSize swig_types[121]
2588 #define SWIGTYPE_p_wxPen swig_types[122]
2589 #define SWIGTYPE_p_wxPenList swig_types[123]
2590 #define SWIGTYPE_p_wxPixelDataBase swig_types[124]
2591 #define SWIGTYPE_p_wxPoint swig_types[125]
2592 #define SWIGTYPE_p_wxPoint2D swig_types[126]
2593 #define SWIGTYPE_p_wxPoint2DDouble swig_types[127]
2594 #define SWIGTYPE_p_wxPostScriptDC swig_types[128]
2595 #define SWIGTYPE_p_wxPrintData swig_types[129]
2596 #define SWIGTYPE_p_wxPrinterDC swig_types[130]
2597 #define SWIGTYPE_p_wxPseudoDC swig_types[131]
2598 #define SWIGTYPE_p_wxPyApp swig_types[132]
2599 #define SWIGTYPE_p_wxPyCommandEvent swig_types[133]
2600 #define SWIGTYPE_p_wxPyEvent swig_types[134]
2601 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[135]
2602 #define SWIGTYPE_p_wxPyImageHandler swig_types[136]
2603 #define SWIGTYPE_p_wxPyLocale swig_types[137]
2604 #define SWIGTYPE_p_wxPySizer swig_types[138]
2605 #define SWIGTYPE_p_wxPyValidator swig_types[139]
2606 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[140]
2607 #define SWIGTYPE_p_wxRect swig_types[141]
2608 #define SWIGTYPE_p_wxRect2DDouble swig_types[142]
2609 #define SWIGTYPE_p_wxRegion swig_types[143]
2610 #define SWIGTYPE_p_wxRegionIterator swig_types[144]
2611 #define SWIGTYPE_p_wxRendererNative swig_types[145]
2612 #define SWIGTYPE_p_wxRendererVersion swig_types[146]
2613 #define SWIGTYPE_p_wxScreenDC swig_types[147]
2614 #define SWIGTYPE_p_wxScrollEvent swig_types[148]
2615 #define SWIGTYPE_p_wxScrollWinEvent swig_types[149]
2616 #define SWIGTYPE_p_wxSetCursorEvent swig_types[150]
2617 #define SWIGTYPE_p_wxShowEvent swig_types[151]
2618 #define SWIGTYPE_p_wxSize swig_types[152]
2619 #define SWIGTYPE_p_wxSizeEvent swig_types[153]
2620 #define SWIGTYPE_p_wxSizer swig_types[154]
2621 #define SWIGTYPE_p_wxSizerItem swig_types[155]
2622 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[156]
2623 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[157]
2624 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[158]
2625 #define SWIGTYPE_p_wxStockGDI swig_types[159]
2626 #define SWIGTYPE_p_wxString swig_types[160]
2627 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[161]
2628 #define SWIGTYPE_p_wxTGAHandler swig_types[162]
2629 #define SWIGTYPE_p_wxTIFFHandler swig_types[163]
2630 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[164]
2631 #define SWIGTYPE_p_wxValidator swig_types[165]
2632 #define SWIGTYPE_p_wxWindow swig_types[166]
2633 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[167]
2634 #define SWIGTYPE_p_wxWindowDC swig_types[168]
2635 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[169]
2636 #define SWIGTYPE_p_wxXPMHandler swig_types[170]
2637 static swig_type_info *swig_types[172];
2638 static swig_module_info swig_module = {swig_types, 171, 0, 0, 0, 0};
2639 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2640 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2641
2642 /* -------- TYPES TABLE (END) -------- */
2643
2644 #if (PY_VERSION_HEX <= 0x02000000)
2645 # if !defined(SWIG_PYTHON_CLASSIC)
2646 # error "This python version requires to use swig with the '-classic' option"
2647 # endif
2648 #endif
2649 #if (PY_VERSION_HEX <= 0x02020000)
2650 # error "This python version requires to use swig with the '-nomodern' option"
2651 #endif
2652 #if (PY_VERSION_HEX <= 0x02020000)
2653 # error "This python version requires to use swig with the '-nomodernargs' option"
2654 #endif
2655 #ifndef METH_O
2656 # error "This python version requires to use swig with the '-nofastunpack' option"
2657 #endif
2658
2659 /*-----------------------------------------------
2660 @(target):= _gdi_.so
2661 ------------------------------------------------*/
2662 #define SWIG_init init_gdi_
2663
2664 #define SWIG_name "_gdi_"
2665
2666 #define SWIGVERSION 0x010329
2667
2668
2669 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2670 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2671
2672
2673 #include <stdexcept>
2674
2675
2676 namespace swig {
2677 class PyObject_ptr {
2678 protected:
2679 PyObject *_obj;
2680
2681 public:
2682 PyObject_ptr() :_obj(0)
2683 {
2684 }
2685
2686 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2687 {
2688 Py_XINCREF(_obj);
2689 }
2690
2691 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2692 {
2693 if (initial_ref) Py_XINCREF(_obj);
2694 }
2695
2696 PyObject_ptr & operator=(const PyObject_ptr& item)
2697 {
2698 Py_XINCREF(item._obj);
2699 Py_XDECREF(_obj);
2700 _obj = item._obj;
2701 return *this;
2702 }
2703
2704 ~PyObject_ptr()
2705 {
2706 Py_XDECREF(_obj);
2707 }
2708
2709 operator PyObject *() const
2710 {
2711 return _obj;
2712 }
2713
2714 PyObject *operator->() const
2715 {
2716 return _obj;
2717 }
2718 };
2719 }
2720
2721
2722 namespace swig {
2723 struct PyObject_var : PyObject_ptr {
2724 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2725
2726 PyObject_var & operator = (PyObject* obj)
2727 {
2728 Py_XDECREF(_obj);
2729 _obj = obj;
2730 return *this;
2731 }
2732 };
2733 }
2734
2735
2736 #include "wx/wxPython/wxPython.h"
2737 #include "wx/wxPython/pyclasses.h"
2738
2739
2740 static const wxString wxPyEmptyString(wxEmptyString);
2741
2742 #define SWIG_From_long PyInt_FromLong
2743
2744
2745 SWIGINTERNINLINE PyObject *
2746 SWIG_From_int (int value)
2747 {
2748 return SWIG_From_long (value);
2749 }
2750
2751
2752 #include <limits.h>
2753 #ifndef LLONG_MIN
2754 # define LLONG_MIN LONG_LONG_MIN
2755 #endif
2756 #ifndef LLONG_MAX
2757 # define LLONG_MAX LONG_LONG_MAX
2758 #endif
2759 #ifndef ULLONG_MAX
2760 # define ULLONG_MAX ULONG_LONG_MAX
2761 #endif
2762
2763
2764 SWIGINTERN int
2765 SWIG_AsVal_long (PyObject* obj, long* val)
2766 {
2767 if (PyNumber_Check(obj)) {
2768 if (val) *val = PyInt_AsLong(obj);
2769 return SWIG_OK;
2770 }
2771 return SWIG_TypeError;
2772 }
2773
2774
2775 SWIGINTERN int
2776 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2777 {
2778 long v = 0;
2779 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2780 return SWIG_TypeError;
2781 }
2782 else if (val)
2783 *val = (unsigned long)v;
2784 return SWIG_OK;
2785 }
2786
2787
2788 SWIGINTERN int
2789 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2790 {
2791 unsigned long v;
2792 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2793 if (SWIG_IsOK(res)) {
2794 if ((v > UCHAR_MAX)) {
2795 return SWIG_OverflowError;
2796 } else {
2797 if (val) *val = static_cast< unsigned char >(v);
2798 }
2799 }
2800 return res;
2801 }
2802
2803
2804 SWIGINTERNINLINE PyObject*
2805 SWIG_From_unsigned_SS_long (unsigned long value)
2806 {
2807 return (value > LONG_MAX) ?
2808 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2809 }
2810
2811
2812 SWIGINTERNINLINE PyObject *
2813 SWIG_From_unsigned_SS_char (unsigned char value)
2814 {
2815 return SWIG_From_unsigned_SS_long (value);
2816 }
2817
2818 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2819 wxColour temp, *obj = &temp;
2820 if ( other == Py_None ) return false;
2821 if ( ! wxColour_helper(other, &obj) ) {
2822 PyErr_Clear();
2823 return false;
2824 }
2825 return self->operator==(*obj);
2826 }
2827 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2828 wxColour temp, *obj = &temp;
2829 if ( other == Py_None ) return true;
2830 if ( ! wxColour_helper(other, &obj)) {
2831 PyErr_Clear();
2832 return true;
2833 }
2834 return self->operator!=(*obj);
2835 }
2836
2837 SWIGINTERN int
2838 SWIG_AsVal_bool (PyObject *obj, bool *val)
2839 {
2840 if (obj == Py_True) {
2841 if (val) *val = true;
2842 return SWIG_OK;
2843 } else if (obj == Py_False) {
2844 if (val) *val = false;
2845 return SWIG_OK;
2846 } else {
2847 long v = 0;
2848 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2849 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2850 return res;
2851 }
2852 }
2853
2854 SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2855 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
2856 int red = -1;
2857 int green = -1;
2858 int blue = -1;
2859 int alpha = wxALPHA_OPAQUE;
2860 if (self->IsOk()) {
2861 red = self->Red();
2862 green = self->Green();
2863 blue = self->Blue();
2864 alpha = self->Alpha();
2865 }
2866 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2867 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2868 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2869 if (includeAlpha)
2870 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
2871 return rv;
2872 }
2873 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2874 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2875 }
2876
2877 SWIGINTERN int
2878 SWIG_AsVal_int (PyObject * obj, int *val)
2879 {
2880 long v;
2881 int res = SWIG_AsVal_long (obj, &v);
2882 if (SWIG_IsOK(res)) {
2883 if ((v < INT_MIN || v > INT_MAX)) {
2884 return SWIG_OverflowError;
2885 } else {
2886 if (val) *val = static_cast< int >(v);
2887 }
2888 }
2889 return res;
2890 }
2891
2892 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2893 wxDash* dashes;
2894 int count = self->GetDashes(&dashes);
2895 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2896 PyObject* retval = PyList_New(0);
2897 for (int x=0; x<count; x++) {
2898 PyObject* pyint = PyInt_FromLong(dashes[x]);
2899 PyList_Append(retval, pyint);
2900 Py_DECREF(pyint);
2901 }
2902 wxPyEndBlockThreads(blocked);
2903 return retval;
2904 }
2905 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2906 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2907 int size = PyList_Size(pyDashes);
2908 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2909
2910 // black magic warning! The array of wxDashes needs to exist as
2911 // long as the pen does because wxPen does not copy the array. So
2912 // stick a copy in a Python string object and attach it to _self,
2913 // and then call SetDashes with a pointer to that array. Then
2914 // when the Python pen object is destroyed the array will be
2915 // cleaned up too.
2916 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2917 PyObject_SetAttrString(_self, "_dashes", strDashes);
2918
2919 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2920 delete [] dashes;
2921 Py_DECREF(strDashes);
2922 wxPyEndBlockThreads(blocked);
2923 }
2924 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2925 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2926
2927 SWIGINTERNINLINE PyObject *
2928 SWIG_From_short (short value)
2929 {
2930 return SWIG_From_long (value);
2931 }
2932
2933
2934 SWIGINTERN int
2935 SWIG_AsVal_short (PyObject * obj, short *val)
2936 {
2937 long v;
2938 int res = SWIG_AsVal_long (obj, &v);
2939 if (SWIG_IsOK(res)) {
2940 if ((v < SHRT_MIN || v > SHRT_MAX)) {
2941 return SWIG_OverflowError;
2942 } else {
2943 if (val) *val = static_cast< short >(v);
2944 }
2945 }
2946 return res;
2947 }
2948
2949
2950 #include <wx/rawbmp.h>
2951
2952
2953 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2954 // appears to me that the other platforms are already doing it, so I'll just
2955 // automatically do it for wxMSW here.
2956 #ifdef __WXMSW__
2957 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2958 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2959 #else
2960 #define wxPy_premultiply(p, a) (p)
2961 #define wxPy_unpremultiply(p, a) (p)
2962 #endif
2963
2964
2965 #include <wx/image.h>
2966
2967 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2968 char** cArray = NULL;
2969 int count;
2970
2971 if (!PyList_Check(listOfStrings)) {
2972 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2973 return NULL;
2974 }
2975 count = PyList_Size(listOfStrings);
2976 cArray = new char*[count];
2977
2978 for(int x=0; x<count; x++) {
2979 // TODO: Need some validation and error checking here
2980 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2981 }
2982 return cArray;
2983 }
2984
2985
2986 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2987 char** cArray = NULL;
2988 wxBitmap* bmp;
2989
2990 cArray = ConvertListOfStrings(listOfStrings);
2991 if (! cArray)
2992 return NULL;
2993 bmp = new wxBitmap(cArray);
2994 delete [] cArray;
2995 return bmp;
2996 }
2997 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2998 char* buf;
2999 Py_ssize_t length;
3000 PyString_AsStringAndSize(bits, &buf, &length);
3001 return new wxBitmap(buf, width, height, depth);
3002 }
3003 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
3004 wxSize size(self->GetWidth(), self->GetHeight());
3005 return size;
3006 }
3007 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
3008 wxMask *mask = new wxMask(*self, colour);
3009 self->SetMask(mask);
3010 }
3011 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
3012 self->SetWidth(size.x);
3013 self->SetHeight(size.y);
3014 }
3015 SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){
3016 int height=self->GetHeight();
3017 int width=self->GetWidth();
3018
3019 if (DATASIZE != width * height * 3) {
3020 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3021 }
3022 wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3023 if (! pixData) {
3024 // raise an exception...
3025 wxPyErr_SetString(PyExc_RuntimeError,
3026 "Failed to gain raw access to bitmap data.");
3027 return;
3028 }
3029
3030 wxNativePixelData::Iterator p(pixData);
3031 for (int y=0; y<height; y++) {
3032 wxNativePixelData::Iterator rowStart = p;
3033 for (int x=0; x<width; x++) {
3034 p.Red() = *(data++);
3035 p.Green() = *(data++);
3036 p.Blue() = *(data++);
3037 ++p;
3038 }
3039 p = rowStart;
3040 p.OffsetY(pixData, 1);
3041 }
3042 }
3043 SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){
3044 int height=self->GetHeight();
3045 int width=self->GetWidth();
3046
3047 if (DATASIZE != width * height * 4) {
3048 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3049 }
3050 wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3051 if (! pixData) {
3052 // raise an exception...
3053 wxPyErr_SetString(PyExc_RuntimeError,
3054 "Failed to gain raw access to bitmap data.");
3055 return;
3056 }
3057
3058 pixData.UseAlpha();
3059 wxAlphaPixelData::Iterator p(pixData);
3060 for (int y=0; y<height; y++) {
3061 wxAlphaPixelData::Iterator rowStart = p;
3062 for (int x=0; x<width; x++) {
3063 byte a = data[3];
3064 p.Red() = wxPy_premultiply(*(data++), a);
3065 p.Green() = wxPy_premultiply(*(data++), a);
3066 p.Blue() = wxPy_premultiply(*(data++), a);
3067 p.Alpha() = a; data++;
3068 ++p;
3069 }
3070 p = rowStart;
3071 p.OffsetY(pixData, 1);
3072 }
3073 }
3074 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; }
3075 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; }
3076
3077 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3078 buffer data, int DATASIZE,
3079 buffer alpha, int ALPHASIZE)
3080 {
3081 if (DATASIZE != width*height*3) {
3082 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3083 return NULL;
3084 }
3085
3086 if (ALPHASIZE != width*height) {
3087 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3088 return NULL;
3089 }
3090
3091 wxBitmap* bmp = new wxBitmap(width, height, 32);
3092 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3093 if (! pixData) {
3094 // raise an exception...
3095 wxPyErr_SetString(PyExc_RuntimeError,
3096 "Failed to gain raw access to bitmap data.");
3097 return NULL;
3098 }
3099
3100 pixData.UseAlpha();
3101 wxAlphaPixelData::Iterator p(pixData);
3102 for (int y=0; y<height; y++) {
3103 wxAlphaPixelData::Iterator rowStart = p;
3104 for (int x=0; x<width; x++) {
3105 byte a = *(alpha++);
3106 p.Red() = wxPy_premultiply(*(data++), a);
3107 p.Green() = wxPy_premultiply(*(data++), a);
3108 p.Blue() = wxPy_premultiply(*(data++), a);
3109 p.Alpha() = a;
3110 ++p;
3111 }
3112 p = rowStart;
3113 p.OffsetY(pixData, 1);
3114 }
3115 return bmp;
3116 }
3117
3118 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3119 {
3120 if (DATASIZE != width*height*3) {
3121 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3122 return NULL;
3123 }
3124
3125 wxBitmap* bmp = new wxBitmap(width, height, 24);
3126 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3127 if (! pixData) {
3128 // raise an exception...
3129 wxPyErr_SetString(PyExc_RuntimeError,
3130 "Failed to gain raw access to bitmap data.");
3131 return NULL;
3132 }
3133
3134 wxNativePixelData::Iterator p(pixData);
3135 for (int y=0; y<height; y++) {
3136 wxNativePixelData::Iterator rowStart = p;
3137 for (int x=0; x<width; x++) {
3138 p.Red() = *(data++);
3139 p.Green() = *(data++);
3140 p.Blue() = *(data++);
3141 ++p;
3142 }
3143 p = rowStart;
3144 p.OffsetY(pixData, 1);
3145 }
3146 return bmp;
3147 }
3148
3149
3150 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3151 {
3152 if (DATASIZE != width*height*4) {
3153 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3154 return NULL;
3155 }
3156
3157 wxBitmap* bmp = new wxBitmap(width, height, 32);
3158 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3159 if (! pixData) {
3160 // raise an exception...
3161 wxPyErr_SetString(PyExc_RuntimeError,
3162 "Failed to gain raw access to bitmap data.");
3163 return NULL;
3164 }
3165
3166 pixData.UseAlpha();
3167 wxAlphaPixelData::Iterator p(pixData);
3168 for (int y=0; y<height; y++) {
3169 wxAlphaPixelData::Iterator rowStart = p;
3170 for (int x=0; x<width; x++) {
3171 byte a = data[3];
3172 p.Red() = wxPy_premultiply(*(data++), a);
3173 p.Green() = wxPy_premultiply(*(data++), a);
3174 p.Blue() = wxPy_premultiply(*(data++), a);
3175 p.Alpha() = a; data++;
3176 ++p;
3177 }
3178 p = rowStart;
3179 p.OffsetY(pixData, 1);
3180 }
3181 return bmp;
3182 }
3183
3184
3185 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3186
3187 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3188 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3189 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3190 self->Red() = red;
3191 self->Green() = green;
3192 self->Blue() = blue;
3193 }
3194 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3195 PyObject* rv = PyTuple_New(3);
3196 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3197 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3198 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3199 return rv;
3200 }
3201
3202 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3203
3204 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3205 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3206 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3207 self->Red() = wxPy_premultiply(red, alpha);
3208 self->Green() = wxPy_premultiply(green, alpha);
3209 self->Blue() = wxPy_premultiply(blue, alpha);
3210 self->Alpha() = alpha;
3211 }
3212 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3213 PyObject* rv = PyTuple_New(4);
3214 int red = self->Red();
3215 int green = self->Green();
3216 int blue = self->Blue();
3217 int alpha = self->Alpha();
3218
3219 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3220 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3221 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3222 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3223 return rv;
3224 }
3225 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3226 if ( !colour.IsOk() )
3227 return new wxMask(bitmap, *wxBLACK);
3228 else
3229 return new wxMask(bitmap, colour);
3230 }
3231
3232 #include <wx/iconbndl.h>
3233
3234 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3235 wxIcon* icon = new wxIcon();
3236 icon->CopyFromBitmap(bmp);
3237 return icon;
3238 }
3239 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3240 char** cArray = NULL;
3241 wxIcon* icon;
3242
3243 cArray = ConvertListOfStrings(listOfStrings);
3244 if (! cArray)
3245 return NULL;
3246 icon = new wxIcon(cArray);
3247 delete [] cArray;
3248 return icon;
3249 }
3250 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3251
3252
3253
3254 return new wxIconLocation(*filename);
3255
3256 }
3257 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3258
3259
3260
3261 // do nothing
3262
3263 }
3264 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3265
3266
3267
3268 return -1;
3269
3270 }
3271 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3272 #ifdef __WXGTK__
3273 wxImage img(cursorName, type);
3274 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3275 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3276 return new wxCursor(img);
3277 #else
3278 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3279 #endif
3280 }
3281
3282
3283 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3284 (*self) ++;
3285 }
3286 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3287 return self->operator bool();
3288 }
3289
3290 #include <wx/fontutil.h>
3291 #include <wx/fontmap.h>
3292 #include <wx/fontenum.h>
3293
3294 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3295 return self->ToString();
3296 }
3297
3298 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3299 static wxNativeEncodingInfo info;
3300 if ( wxGetNativeFontEncoding(encoding, &info) )
3301 return &info;
3302 else
3303 return NULL;
3304 }
3305
3306
3307 SWIGINTERNINLINE PyObject *
3308 SWIG_From_size_t (size_t value)
3309 {
3310 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3311 }
3312
3313
3314 SWIGINTERNINLINE int
3315 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3316 {
3317 unsigned long v;
3318 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3319 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3320 return res;
3321 }
3322
3323 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3324 wxFontEncoding alt_enc;
3325 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3326 return PyInt_FromLong(alt_enc);
3327 else {
3328 Py_INCREF(Py_None);
3329 return Py_None;
3330 }
3331 }
3332 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3333 wxNativeFontInfo nfi;
3334 nfi.FromString(info);
3335 return new wxFont(nfi);
3336 }
3337 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3338 return wxFont::New(pointSize, family, flags, face, encoding);
3339 }
3340 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3341 return wxFontBase::New(pixelSize, family,
3342 style, weight, underlined,
3343 face, encoding);
3344 }
3345 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3346 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3347 }
3348 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3349 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3350
3351 class wxPyFontEnumerator : public wxFontEnumerator {
3352 public:
3353 wxPyFontEnumerator() {}
3354 ~wxPyFontEnumerator() {}
3355
3356 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3357 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3358
3359 PYPRIVATE;
3360 };
3361
3362 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3363 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3364
3365
3366 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3367 PyObject* ret;
3368 wxArrayString arr = wxFontEnumerator::GetEncodings();
3369 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3370 ret = wxArrayString2PyList_helper(arr);
3371 wxPyEndBlockThreads(blocked);
3372 return ret;
3373 }
3374 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3375 PyObject* ret;
3376 wxArrayString arr = wxFontEnumerator::GetFacenames();
3377 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3378 ret = wxArrayString2PyList_helper(arr);
3379 wxPyEndBlockThreads(blocked);
3380 return ret;
3381 }
3382
3383 #include <locale.h>
3384
3385 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3386 wxLocale* loc;
3387 if (language == -1)
3388 loc = new wxLocale();
3389 else
3390 loc = new wxLocale(language, flags);
3391 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3392 // for the floating point conversions and such to work right.
3393 #if PY_VERSION_HEX < 0x02040000
3394 setlocale(LC_NUMERIC, "C");
3395 #endif
3396 return loc;
3397 }
3398 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3399 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3400 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3401 // for the floating point conversions and such to work right.
3402 #if PY_VERSION_HEX < 0x02040000
3403 setlocale(LC_NUMERIC, "C");
3404 #endif
3405 return rc;
3406 }
3407 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3408 bool rc = self->Init(language, flags);
3409 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3410 // for the floating point conversions and such to work right.
3411 #if PY_VERSION_HEX < 0x02040000
3412 setlocale(LC_NUMERIC, "C");
3413 #endif
3414 return rc;
3415 }
3416
3417 class wxPyLocale : public wxLocale
3418 {
3419 public:
3420 wxPyLocale();
3421
3422 wxPyLocale(const wxChar *szName, // name (for messages)
3423 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3424 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3425 bool bLoadDefault = true, // preload wxstd.mo?
3426 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3427
3428 wxPyLocale(int language, // wxLanguage id or custom language
3429 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3430
3431 ~wxPyLocale();
3432
3433 virtual const wxChar *GetString(const wxChar *szOrigString,
3434 const wxChar *szDomain = NULL) const;
3435 virtual const wxChar *GetString(const wxChar *szOrigString,
3436 const wxChar *szOrigString2, size_t n,
3437 const wxChar *szDomain = NULL) const;
3438
3439 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3440 const wxChar *szDomain = NULL) const;
3441 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3442 const wxChar *szOrigString2, size_t n,
3443 const wxChar *szDomain = NULL) const;
3444
3445 PYPRIVATE;
3446 private:
3447 DECLARE_NO_COPY_CLASS(wxPyLocale)
3448 };
3449
3450 wxPyLocale::wxPyLocale() : wxLocale()
3451 {
3452 }
3453
3454 wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3455 const wxChar *szShort, // dir prefix (for msg files)
3456 const wxChar *szLocale, // locale (for setlocale)
3457 bool bLoadDefault, // preload wxstd.mo?
3458 bool bConvertEncoding) // convert Win<->Unix if necessary?
3459 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3460 {
3461 }
3462
3463 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3464 int flags) : wxLocale(language, flags)
3465 {
3466 }
3467
3468 wxPyLocale::~wxPyLocale()
3469 {
3470 }
3471
3472 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3473 const wxChar *szDomain) const
3474 {
3475 wxChar *str = GetSingularString(szOrigString, szDomain);
3476 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3477 }
3478
3479 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3480 const wxChar *szOrigString2, size_t n,
3481 const wxChar *szDomain) const
3482 {
3483 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3484 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3485 }
3486
3487 wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3488 const wxChar *szDomain) const
3489 {
3490 bool found;
3491 static wxString str;
3492 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3493 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3494 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3495 PyObject* param1 = wx2PyString(szOrigString);
3496 PyObject* param2 = wx2PyString(szDomain);
3497 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3498 Py_DECREF(param1);
3499 Py_DECREF(param2);
3500 if (ret) {
3501 str = Py2wxString(ret);
3502 Py_DECREF(ret);
3503 }
3504 }
3505 wxPyEndBlockThreads(blocked);
3506 return (found ? (wxChar*)str.c_str() : NULL);
3507 }
3508
3509 wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3510 const wxChar *szOrigString2, size_t n,
3511 const wxChar *szDomain) const
3512 {
3513 bool found;
3514 static wxString str;
3515 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3516 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3517 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3518 PyObject* param1 = wx2PyString(szOrigString);
3519 PyObject* param2 = wx2PyString(szOrigString2);
3520 PyObject* param4 = wx2PyString(szDomain);
3521 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3522 Py_DECREF(param1);
3523 Py_DECREF(param2);
3524 Py_DECREF(param4);
3525 if( ret) {
3526 str = Py2wxString(ret);
3527 Py_DECREF(ret);
3528 }
3529 }
3530 wxPyEndBlockThreads(blocked);
3531 return (found ? (wxChar*)str.c_str() : NULL);
3532 }
3533
3534 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3535 wxPyLocale* loc;
3536 if (language == -1)
3537 loc = new wxPyLocale();
3538 else
3539 loc = new wxPyLocale(language, flags);
3540 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3541 // for the floating point conversions and such to work right.
3542 #if PY_VERSION_HEX < 0x02040000
3543 setlocale(LC_NUMERIC, "C");
3544 #endif
3545 return loc;
3546 }
3547
3548 #include "wx/wxPython/pydrawxxx.h"
3549
3550 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3551 wxColour col;
3552 self->GetPixel(x, y, &col);
3553 return col;
3554 }
3555 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3556 wxColour col;
3557 self->GetPixel(pt, &col);
3558 return col;
3559 }
3560
3561 SWIGINTERN int
3562 SWIG_AsVal_double (PyObject *obj, double* val)
3563 {
3564 if (PyNumber_Check(obj)) {
3565 if (val) *val = PyFloat_AsDouble(obj);
3566 return SWIG_OK;
3567 }
3568 return SWIG_TypeError;
3569 }
3570
3571 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3572 wxRect rv;
3573 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3574 return rv;
3575 }
3576 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3577 wxRect rect;
3578 self->GetClippingBox(rect);
3579 return rect;
3580 }
3581 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3582 wxArrayInt widths;
3583 self->GetPartialTextExtents(text, widths);
3584 return widths;
3585 }
3586
3587 #define SWIG_From_double PyFloat_FromDouble
3588
3589 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3590 self->SetLogicalOrigin(point.x, point.y);
3591 }
3592 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3593 self->SetDeviceOrigin(point.x, point.y);
3594 }
3595 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3596 self->CalcBoundingBox(point.x, point.y);
3597 }
3598 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3599 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3600 }
3601 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3602 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3603 }
3604 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3605 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3606 }
3607 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3608 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3609 }
3610 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3611 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3612 }
3613 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3614 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3615 }
3616
3617 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3618 *x1 = dc->MinX();
3619 *y1 = dc->MinY();
3620 *x2 = dc->MaxX();
3621 *y2 = dc->MaxY();
3622 }
3623
3624
3625 #include <wx/dcbuffer.h>
3626
3627
3628 #include <wx/dcps.h>
3629
3630
3631 #include <wx/metafile.h>
3632
3633
3634 #include <wx/graphics.h>
3635
3636
3637 #if !wxUSE_GRAPHICS_CONTEXT
3638 // C++ stub classes for platforms or build configurations that don't have
3639 // wxGraphicsContext yet.
3640
3641
3642 class wxGraphicsObject : public wxObject
3643 {
3644 public :
3645 wxGraphicsObject( wxGraphicsRenderer* ) {
3646 PyErr_SetString(PyExc_NotImplementedError,
3647 "wx.GraphicsObject is not available on this platform.");
3648 }
3649 wxGraphicsObject( const wxGraphicsObject& ) {}
3650 virtual ~wxGraphicsObject() {}
3651 bool IsNull() const { return false; }
3652 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3653 } ;
3654
3655
3656
3657 class wxGraphicsPen : public wxGraphicsObject
3658 {
3659 wxGraphicsPen() {}
3660 virtual ~wxGraphicsPen() {}
3661 } ;
3662 wxGraphicsPen wxNullGraphicsPen;
3663
3664
3665
3666 class wxGraphicsBrush : public wxGraphicsObject
3667 {
3668 public :
3669 wxGraphicsBrush() {}
3670 virtual ~wxGraphicsBrush() {}
3671 } ;
3672 wxGraphicsBrush wxNullGraphicsBrush;
3673
3674
3675
3676 class wxGraphicsFont : public wxGraphicsObject
3677 {
3678 public :
3679 wxGraphicsFont() {}
3680 virtual ~wxGraphicsFont() {}
3681 } ;
3682 wxGraphicsFont wxNullGraphicsFont;
3683
3684
3685
3686 class wxGraphicsPath : public wxGraphicsObject
3687 {
3688 public :
3689 wxGraphicsPath(wxGraphicsRenderer* ) {
3690 PyErr_SetString(PyExc_NotImplementedError,
3691 "wx.GraphicsPath is not available on this platform.");
3692 }
3693 virtual ~wxGraphicsPath() {}
3694
3695 void MoveToPoint( wxDouble, wxDouble ) {}
3696 void MoveToPoint( const wxPoint2DDouble& ) {}
3697 void AddLineToPoint( wxDouble, wxDouble ) {}
3698 void AddLineToPoint( const wxPoint2DDouble& ) {}
3699 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3700 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3701 void AddPath( const wxGraphicsPath* ) {}
3702 void CloseSubpath() {}
3703 void GetCurrentPoint( wxDouble&, wxDouble&) {}
3704 wxPoint2DDouble GetCurrentPoint() { reutrn wxPoint2D(0,0); }
3705 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3706 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
3707
3708 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3709 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3710 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3711 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3712
3713 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3714 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3715 void * GetNativePath() const { return NULL; }
3716 void UnGetNativePath(void *) {}
3717 void Transform( wxGraphicsMatrix* ) {}
3718 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) {}
3719 wxRect2D GetBox() { return wxRect2D(0,0,0,0); }
3720
3721 bool Contains( wxDouble , wxDouble , int ) { return false; }
3722 bool Contains( const wxPoint2DDouble& , int ) { return false; }
3723 };
3724 wxGraphicsPath wxNullGraphicsPath;
3725
3726
3727 class wxGraphicsMatrix : public wxGraphicsObject
3728 {
3729 public :
3730 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3731 PyErr_SetString(PyExc_NotImplementedError,
3732 "wx.GraphicsMatrix is not available on this platform.");
3733 }
3734 virtual ~wxGraphicsMatrix() {}
3735 virtual void Concat( const wxGraphicsMatrix * ) {}
3736 virtual void Copy( const wxGraphicsMatrix * ) {}
3737 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3738 wxDouble , wxDouble ) {}
3739 virtual void Invert() {}
3740 virtual bool IsEqual( const wxGraphicsMatrix* t) const {}
3741 virtual bool IsIdentity() { return false; }
3742 virtual void Translate( wxDouble , wxDouble ) {}
3743 virtual void Scale( wxDouble , wxDouble ) {}
3744 virtual void Rotate( wxDouble ) {}
3745 virtual void TransformPoint( wxDouble *, wxDouble * ) {}
3746 virtual void TransformDistance( wxDouble *, wxDouble * ) {}
3747 virtual void * GetNativeMatrix() const { return NULL; }
3748 };
3749 wxGraphicsMatrix wxNullGraphicsMatrix;
3750
3751
3752 class wxGraphicsContext : public wxGraphicsObject
3753 {
3754 public:
3755
3756 wxGraphicsContext(wxGraphicsRenderer* ) {
3757 PyErr_SetString(PyExc_NotImplementedError,
3758 "wx.GraphicsContext is not available on this platform.");
3759 }
3760
3761 virtual ~wxGraphicsContext() {}
3762
3763 static wxGraphicsContext* Create( const wxWindowDC& ) {
3764 PyErr_SetString(PyExc_NotImplementedError,
3765 "wx.GraphicsContext is not available on this platform.");
3766 }
3767
3768 static wxGraphicsContext* CreateFromNative( void * ) {
3769 PyErr_SetString(PyExc_NotImplementedError,
3770 "wx.GraphicsContext is not available on this platform.");
3771 }
3772
3773 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3774 PyErr_SetString(PyExc_NotImplementedError,
3775 "wx.GraphicsContext is not available on this platform.");
3776 }
3777
3778 static wxGraphicsContext* Create( wxWindow* ) {
3779 PyErr_SetString(PyExc_NotImplementedError,
3780 "wx.GraphicsContext is not available on this platform.");
3781 }
3782
3783 wxGraphicsPath * CreatePath() { return NULL; }
3784
3785 virtual wxGraphicsPen CreatePen(const wxPen& ) { return NULL; }
3786
3787 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return NULL; }
3788
3789 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3790 const wxColour&, const wxColour&) { return NULL; }
3791
3792 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3793 wxDouble xc, wxDouble yc, wxDouble radius,
3794 const wxColour &oColor, const wxColour &cColor) { return NULL; }
3795
3796 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return NULL; }
3797
3798 virtual wxGraphicsMatrix* CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3799 wxDouble, wxDouble) { return NULL; }
3800
3801 virtual void PushState() {}
3802 virtual void PopState() {}
3803 virtual void Clip( const wxRegion & ) {}
3804 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3805 virtual void ResetClip() {}
3806 virtual void * GetNativeContext() { return NULL; }
3807 virtual void Translate( wxDouble , wxDouble ) {}
3808 virtual void Scale( wxDouble , wxDouble ) {}
3809 virtual void Rotate( wxDouble ) {}
3810 virtual void ConcatTransform( const wxGraphicsMatrix* ) {}
3811 virtual void SetTransform( const wxGraphicsMatrix* ) {}
3812 virtual void GetTransform( wxGraphicsMatrix* ) {}
3813
3814 virtual void SetPen( const wxGraphicsPen& ) {}
3815 void SetPen( const wxPen& ) {}
3816
3817 virtual void SetBrush( const wxGraphicsBrush& ) {}
3818 void SetBrush( const wxBrush& ) {}
3819
3820 virtual void SetFont( const wxGraphicsFont& ) {}
3821 void SetFont( const wxFont&, const wxColour& ) {}
3822
3823 virtual void StrokePath( const wxGraphicsPath * ) {}
3824 virtual void FillPath( const wxGraphicsPath *, int ) {}
3825 virtual void DrawPath( const wxGraphicsPath *, int ) {}
3826
3827 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3828 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3829 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3830 wxDouble *, wxDouble * ) const {}
3831 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3832
3833 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3834 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3835
3836 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3837 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3838 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3839 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3840 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3841 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3842 virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {}
3843 virtual bool ShouldOffset() const { return false; }
3844 };
3845
3846
3847 class wxGraphicsRenderer : public wxObject
3848 {
3849 public :
3850 wxGraphicsRenderer() {
3851 PyErr_SetString(PyExc_NotImplementedError,
3852 "wx.GraphicsRenderer is not available on this platform.");
3853 }
3854
3855 virtual ~wxGraphicsRenderer() {}
3856
3857 static wxGraphicsRenderer* GetDefaultRenderer(
3858 PyErr_SetString(PyExc_NotImplementedError,
3859 "wx.GraphicsRenderer is not available on this platform.");
3860 );
3861
3862 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3863 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3864 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3865 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
3866
3867 virtual wxGraphicsPath * CreatePath() { return NULL; }
3868
3869 virtual wxGraphicsMatrix * CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3870 wxDouble , wxDouble ) { return NULL; }
3871
3872 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGaphicsPen; }
3873 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGaphicsBrush; }
3874 virtual wxGraphicsBrush CreateLinearGradientBrush(xDouble , wxDouble , wxDouble , wxDouble ,
3875 const wxColour&, const wxColour&) { return wxNullGaphicsBrush; }
3876 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3877 const wxColour &, const wxColour &) { return wxNullGaphicsBrush; }
3878 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGaphicsFont; }
3879 };
3880
3881
3882
3883 class wxGCDC: public wxWindowDC
3884 {
3885 public:
3886 wxGCDC(const wxWindowDC&) {
3887 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3888 PyErr_SetString(PyExc_NotImplementedError,
3889 "wxGCDC is not available on this platform.");
3890 wxPyEndBlockThreads(blocked);
3891 }
3892
3893 wxGCDC() {
3894 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3895 PyErr_SetString(PyExc_NotImplementedError,
3896 "wxGCDC is not available on this platform.");
3897 wxPyEndBlockThreads(blocked);
3898 }
3899
3900 virtual ~wxGCDC() {}
3901
3902 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3903 void SetGraphicsContext( wxGraphicsContext* ) {}
3904 };
3905
3906 #endif
3907
3908 SWIGINTERN void wxGraphicsContext_DrawText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3909 if ( !backgroundBrush.IsNull() )
3910 self->DrawText(str, x, y, backgroundBrush);
3911 else
3912 self->DrawText(str, x, y);
3913 }
3914 SWIGINTERN void wxGraphicsContext_DrawRotatedText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxDouble angle,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3915 if ( !backgroundBrush.IsNull() )
3916 self->DrawText(str, x, y, angle, backgroundBrush);
3917 else
3918 self->DrawText(str, x, y, angle);
3919 }
3920 SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3921 wxDouble width = 0.0,
3922 height = 0.0;
3923 self->GetTextExtent(text, &width, &height, NULL, NULL);
3924 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3925 PyObject* rv = PyTuple_New(2);
3926 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3927 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3928 return rv;
3929 }
3930 SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3931 wxArrayDouble widths;
3932 self->GetPartialTextExtents(text, widths);
3933 return widths;
3934 }
3935 SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
3936 size_t c1, c2, count;
3937 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3938 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3939
3940 if ( beginP != NULL && endP != NULL )
3941 {
3942 count = wxMin(c1, c2);
3943 self->StrokeLines(count, beginP, endP);
3944 }
3945 delete [] beginP;
3946 delete [] endP;
3947 }
3948
3949 #include "wx/dcgraph.h"
3950
3951
3952 #include <wx/overlay.h>
3953
3954
3955
3956 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3957 self->AddColour(name, wxColour(red, green, blue));
3958 }
3959
3960 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3961 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3962 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3963 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3964
3965
3966 #include <wx/effects.h>
3967
3968
3969 #include "wx/renderer.h"
3970
3971
3972 SWIGINTERNINLINE PyObject*
3973 SWIG_From_bool (bool value)
3974 {
3975 return PyBool_FromLong(value ? 1 : 0);
3976 }
3977
3978
3979 #include "wx/wxPython/pseudodc.h"
3980
3981 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3982 wxRect rect;
3983 self->GetIdBounds(id, rect);
3984 return rect;
3985 }
3986 #ifdef __cplusplus
3987 extern "C" {
3988 #endif
3989 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3990 PyObject *resultobj = 0;
3991 wxGDIObject *result = 0 ;
3992
3993 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3994 {
3995 if (!wxPyCheckForApp()) SWIG_fail;
3996 PyThreadState* __tstate = wxPyBeginAllowThreads();
3997 result = (wxGDIObject *)new wxGDIObject();
3998 wxPyEndAllowThreads(__tstate);
3999 if (PyErr_Occurred()) SWIG_fail;
4000 }
4001 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
4002 return resultobj;
4003 fail:
4004 return NULL;
4005 }
4006
4007
4008 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4009 PyObject *resultobj = 0;
4010 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4011 void *argp1 = 0 ;
4012 int res1 = 0 ;
4013 PyObject *swig_obj[1] ;
4014
4015 if (!args) SWIG_fail;
4016 swig_obj[0] = args;
4017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
4018 if (!SWIG_IsOK(res1)) {
4019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4020 }
4021 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4022 {
4023 PyThreadState* __tstate = wxPyBeginAllowThreads();
4024 delete arg1;
4025
4026 wxPyEndAllowThreads(__tstate);
4027 if (PyErr_Occurred()) SWIG_fail;
4028 }
4029 resultobj = SWIG_Py_Void();
4030 return resultobj;
4031 fail:
4032 return NULL;
4033 }
4034
4035
4036 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4037 PyObject *resultobj = 0;
4038 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4039 bool result;
4040 void *argp1 = 0 ;
4041 int res1 = 0 ;
4042 PyObject *swig_obj[1] ;
4043
4044 if (!args) SWIG_fail;
4045 swig_obj[0] = args;
4046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4047 if (!SWIG_IsOK(res1)) {
4048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4049 }
4050 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4051 {
4052 PyThreadState* __tstate = wxPyBeginAllowThreads();
4053 result = (bool)(arg1)->IsNull();
4054 wxPyEndAllowThreads(__tstate);
4055 if (PyErr_Occurred()) SWIG_fail;
4056 }
4057 {
4058 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4059 }
4060 return resultobj;
4061 fail:
4062 return NULL;
4063 }
4064
4065
4066 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4067 PyObject *obj;
4068 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4069 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4070 return SWIG_Py_Void();
4071 }
4072
4073 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4074 return SWIG_Python_InitShadowInstance(args);
4075 }
4076
4077 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4078 PyObject *resultobj = 0;
4079 byte arg1 = (byte) 0 ;
4080 byte arg2 = (byte) 0 ;
4081 byte arg3 = (byte) 0 ;
4082 byte arg4 = (byte) wxALPHA_OPAQUE ;
4083 wxColour *result = 0 ;
4084 unsigned char val1 ;
4085 int ecode1 = 0 ;
4086 unsigned char val2 ;
4087 int ecode2 = 0 ;
4088 unsigned char val3 ;
4089 int ecode3 = 0 ;
4090 unsigned char val4 ;
4091 int ecode4 = 0 ;
4092 PyObject * obj0 = 0 ;
4093 PyObject * obj1 = 0 ;
4094 PyObject * obj2 = 0 ;
4095 PyObject * obj3 = 0 ;
4096 char * kwnames[] = {
4097 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4098 };
4099
4100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4101 if (obj0) {
4102 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4103 if (!SWIG_IsOK(ecode1)) {
4104 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4105 }
4106 arg1 = static_cast< byte >(val1);
4107 }
4108 if (obj1) {
4109 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4110 if (!SWIG_IsOK(ecode2)) {
4111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4112 }
4113 arg2 = static_cast< byte >(val2);
4114 }
4115 if (obj2) {
4116 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4117 if (!SWIG_IsOK(ecode3)) {
4118 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4119 }
4120 arg3 = static_cast< byte >(val3);
4121 }
4122 if (obj3) {
4123 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4124 if (!SWIG_IsOK(ecode4)) {
4125 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4126 }
4127 arg4 = static_cast< byte >(val4);
4128 }
4129 {
4130 PyThreadState* __tstate = wxPyBeginAllowThreads();
4131 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
4132 wxPyEndAllowThreads(__tstate);
4133 if (PyErr_Occurred()) SWIG_fail;
4134 }
4135 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4136 return resultobj;
4137 fail:
4138 return NULL;
4139 }
4140
4141
4142 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4143 PyObject *resultobj = 0;
4144 wxString *arg1 = 0 ;
4145 wxColour *result = 0 ;
4146 bool temp1 = false ;
4147 PyObject * obj0 = 0 ;
4148 char * kwnames[] = {
4149 (char *) "colorName", NULL
4150 };
4151
4152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4153 {
4154 arg1 = wxString_in_helper(obj0);
4155 if (arg1 == NULL) SWIG_fail;
4156 temp1 = true;
4157 }
4158 {
4159 if (!wxPyCheckForApp()) SWIG_fail;
4160 PyThreadState* __tstate = wxPyBeginAllowThreads();
4161 result = (wxColour *)new wxColour((wxString const &)*arg1);
4162 wxPyEndAllowThreads(__tstate);
4163 if (PyErr_Occurred()) SWIG_fail;
4164 }
4165 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4166 {
4167 if (temp1)
4168 delete arg1;
4169 }
4170 return resultobj;
4171 fail:
4172 {
4173 if (temp1)
4174 delete arg1;
4175 }
4176 return NULL;
4177 }
4178
4179
4180 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4181 PyObject *resultobj = 0;
4182 unsigned long arg1 ;
4183 wxColour *result = 0 ;
4184 unsigned long val1 ;
4185 int ecode1 = 0 ;
4186 PyObject * obj0 = 0 ;
4187 char * kwnames[] = {
4188 (char *) "colRGB", NULL
4189 };
4190
4191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4192 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4193 if (!SWIG_IsOK(ecode1)) {
4194 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4195 }
4196 arg1 = static_cast< unsigned long >(val1);
4197 {
4198 PyThreadState* __tstate = wxPyBeginAllowThreads();
4199 result = (wxColour *)new wxColour(arg1);
4200 wxPyEndAllowThreads(__tstate);
4201 if (PyErr_Occurred()) SWIG_fail;
4202 }
4203 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4204 return resultobj;
4205 fail:
4206 return NULL;
4207 }
4208
4209
4210 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4211 PyObject *resultobj = 0;
4212 wxColour *arg1 = (wxColour *) 0 ;
4213 void *argp1 = 0 ;
4214 int res1 = 0 ;
4215 PyObject *swig_obj[1] ;
4216
4217 if (!args) SWIG_fail;
4218 swig_obj[0] = args;
4219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4220 if (!SWIG_IsOK(res1)) {
4221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4222 }
4223 arg1 = reinterpret_cast< wxColour * >(argp1);
4224 {
4225 PyThreadState* __tstate = wxPyBeginAllowThreads();
4226 delete arg1;
4227
4228 wxPyEndAllowThreads(__tstate);
4229 if (PyErr_Occurred()) SWIG_fail;
4230 }
4231 resultobj = SWIG_Py_Void();
4232 return resultobj;
4233 fail:
4234 return NULL;
4235 }
4236
4237
4238 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4239 PyObject *resultobj = 0;
4240 wxColour *arg1 = (wxColour *) 0 ;
4241 byte result;
4242 void *argp1 = 0 ;
4243 int res1 = 0 ;
4244 PyObject *swig_obj[1] ;
4245
4246 if (!args) SWIG_fail;
4247 swig_obj[0] = args;
4248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4249 if (!SWIG_IsOK(res1)) {
4250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4251 }
4252 arg1 = reinterpret_cast< wxColour * >(argp1);
4253 {
4254 PyThreadState* __tstate = wxPyBeginAllowThreads();
4255 result = (byte)(arg1)->Red();
4256 wxPyEndAllowThreads(__tstate);
4257 if (PyErr_Occurred()) SWIG_fail;
4258 }
4259 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4260 return resultobj;
4261 fail:
4262 return NULL;
4263 }
4264
4265
4266 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4267 PyObject *resultobj = 0;
4268 wxColour *arg1 = (wxColour *) 0 ;
4269 byte result;
4270 void *argp1 = 0 ;
4271 int res1 = 0 ;
4272 PyObject *swig_obj[1] ;
4273
4274 if (!args) SWIG_fail;
4275 swig_obj[0] = args;
4276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4277 if (!SWIG_IsOK(res1)) {
4278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4279 }
4280 arg1 = reinterpret_cast< wxColour * >(argp1);
4281 {
4282 PyThreadState* __tstate = wxPyBeginAllowThreads();
4283 result = (byte)(arg1)->Green();
4284 wxPyEndAllowThreads(__tstate);
4285 if (PyErr_Occurred()) SWIG_fail;
4286 }
4287 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4288 return resultobj;
4289 fail:
4290 return NULL;
4291 }
4292
4293
4294 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4295 PyObject *resultobj = 0;
4296 wxColour *arg1 = (wxColour *) 0 ;
4297 byte result;
4298 void *argp1 = 0 ;
4299 int res1 = 0 ;
4300 PyObject *swig_obj[1] ;
4301
4302 if (!args) SWIG_fail;
4303 swig_obj[0] = args;
4304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4305 if (!SWIG_IsOK(res1)) {
4306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4307 }
4308 arg1 = reinterpret_cast< wxColour * >(argp1);
4309 {
4310 PyThreadState* __tstate = wxPyBeginAllowThreads();
4311 result = (byte)(arg1)->Blue();
4312 wxPyEndAllowThreads(__tstate);
4313 if (PyErr_Occurred()) SWIG_fail;
4314 }
4315 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4316 return resultobj;
4317 fail:
4318 return NULL;
4319 }
4320
4321
4322 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4323 PyObject *resultobj = 0;
4324 wxColour *arg1 = (wxColour *) 0 ;
4325 byte result;
4326 void *argp1 = 0 ;
4327 int res1 = 0 ;
4328 PyObject *swig_obj[1] ;
4329
4330 if (!args) SWIG_fail;
4331 swig_obj[0] = args;
4332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4333 if (!SWIG_IsOK(res1)) {
4334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4335 }
4336 arg1 = reinterpret_cast< wxColour * >(argp1);
4337 {
4338 PyThreadState* __tstate = wxPyBeginAllowThreads();
4339 result = (byte)(arg1)->Alpha();
4340 wxPyEndAllowThreads(__tstate);
4341 if (PyErr_Occurred()) SWIG_fail;
4342 }
4343 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4344 return resultobj;
4345 fail:
4346 return NULL;
4347 }
4348
4349
4350 SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4351 PyObject *resultobj = 0;
4352 wxColour *arg1 = (wxColour *) 0 ;
4353 bool result;
4354 void *argp1 = 0 ;
4355 int res1 = 0 ;
4356 PyObject *swig_obj[1] ;
4357
4358 if (!args) SWIG_fail;
4359 swig_obj[0] = args;
4360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4361 if (!SWIG_IsOK(res1)) {
4362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
4363 }
4364 arg1 = reinterpret_cast< wxColour * >(argp1);
4365 {
4366 PyThreadState* __tstate = wxPyBeginAllowThreads();
4367 result = (bool)(arg1)->IsOk();
4368 wxPyEndAllowThreads(__tstate);
4369 if (PyErr_Occurred()) SWIG_fail;
4370 }
4371 {
4372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4373 }
4374 return resultobj;
4375 fail:
4376 return NULL;
4377 }
4378
4379
4380 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4381 PyObject *resultobj = 0;
4382 wxColour *arg1 = (wxColour *) 0 ;
4383 byte arg2 ;
4384 byte arg3 ;
4385 byte arg4 ;
4386 byte arg5 = (byte) wxALPHA_OPAQUE ;
4387 void *argp1 = 0 ;
4388 int res1 = 0 ;
4389 unsigned char val2 ;
4390 int ecode2 = 0 ;
4391 unsigned char val3 ;
4392 int ecode3 = 0 ;
4393 unsigned char val4 ;
4394 int ecode4 = 0 ;
4395 unsigned char val5 ;
4396 int ecode5 = 0 ;
4397 PyObject * obj0 = 0 ;
4398 PyObject * obj1 = 0 ;
4399 PyObject * obj2 = 0 ;
4400 PyObject * obj3 = 0 ;
4401 PyObject * obj4 = 0 ;
4402 char * kwnames[] = {
4403 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4404 };
4405
4406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4408 if (!SWIG_IsOK(res1)) {
4409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4410 }
4411 arg1 = reinterpret_cast< wxColour * >(argp1);
4412 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4413 if (!SWIG_IsOK(ecode2)) {
4414 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4415 }
4416 arg2 = static_cast< byte >(val2);
4417 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4418 if (!SWIG_IsOK(ecode3)) {
4419 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4420 }
4421 arg3 = static_cast< byte >(val3);
4422 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4423 if (!SWIG_IsOK(ecode4)) {
4424 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4425 }
4426 arg4 = static_cast< byte >(val4);
4427 if (obj4) {
4428 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4429 if (!SWIG_IsOK(ecode5)) {
4430 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4431 }
4432 arg5 = static_cast< byte >(val5);
4433 }
4434 {
4435 PyThreadState* __tstate = wxPyBeginAllowThreads();
4436 (arg1)->Set(arg2,arg3,arg4,arg5);
4437 wxPyEndAllowThreads(__tstate);
4438 if (PyErr_Occurred()) SWIG_fail;
4439 }
4440 resultobj = SWIG_Py_Void();
4441 return resultobj;
4442 fail:
4443 return NULL;
4444 }
4445
4446
4447 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4448 PyObject *resultobj = 0;
4449 wxColour *arg1 = (wxColour *) 0 ;
4450 unsigned long arg2 ;
4451 void *argp1 = 0 ;
4452 int res1 = 0 ;
4453 unsigned long val2 ;
4454 int ecode2 = 0 ;
4455 PyObject * obj0 = 0 ;
4456 PyObject * obj1 = 0 ;
4457 char * kwnames[] = {
4458 (char *) "self",(char *) "colRGB", NULL
4459 };
4460
4461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4463 if (!SWIG_IsOK(res1)) {
4464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4465 }
4466 arg1 = reinterpret_cast< wxColour * >(argp1);
4467 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4468 if (!SWIG_IsOK(ecode2)) {
4469 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4470 }
4471 arg2 = static_cast< unsigned long >(val2);
4472 {
4473 PyThreadState* __tstate = wxPyBeginAllowThreads();
4474 (arg1)->Set(arg2);
4475 wxPyEndAllowThreads(__tstate);
4476 if (PyErr_Occurred()) SWIG_fail;
4477 }
4478 resultobj = SWIG_Py_Void();
4479 return resultobj;
4480 fail:
4481 return NULL;
4482 }
4483
4484
4485 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4486 PyObject *resultobj = 0;
4487 wxColour *arg1 = (wxColour *) 0 ;
4488 wxString *arg2 = 0 ;
4489 void *argp1 = 0 ;
4490 int res1 = 0 ;
4491 bool temp2 = false ;
4492 PyObject * obj0 = 0 ;
4493 PyObject * obj1 = 0 ;
4494 char * kwnames[] = {
4495 (char *) "self",(char *) "colourName", NULL
4496 };
4497
4498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4500 if (!SWIG_IsOK(res1)) {
4501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4502 }
4503 arg1 = reinterpret_cast< wxColour * >(argp1);
4504 {
4505 arg2 = wxString_in_helper(obj1);
4506 if (arg2 == NULL) SWIG_fail;
4507 temp2 = true;
4508 }
4509 {
4510 PyThreadState* __tstate = wxPyBeginAllowThreads();
4511 (arg1)->Set((wxString const &)*arg2);
4512 wxPyEndAllowThreads(__tstate);
4513 if (PyErr_Occurred()) SWIG_fail;
4514 }
4515 resultobj = SWIG_Py_Void();
4516 {
4517 if (temp2)
4518 delete arg2;
4519 }
4520 return resultobj;
4521 fail:
4522 {
4523 if (temp2)
4524 delete arg2;
4525 }
4526 return NULL;
4527 }
4528
4529
4530 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4531 PyObject *resultobj = 0;
4532 wxColour *arg1 = (wxColour *) 0 ;
4533 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4534 wxString result;
4535 void *argp1 = 0 ;
4536 int res1 = 0 ;
4537 long val2 ;
4538 int ecode2 = 0 ;
4539 PyObject * obj0 = 0 ;
4540 PyObject * obj1 = 0 ;
4541 char * kwnames[] = {
4542 (char *) "self",(char *) "flags", NULL
4543 };
4544
4545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4547 if (!SWIG_IsOK(res1)) {
4548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4549 }
4550 arg1 = reinterpret_cast< wxColour * >(argp1);
4551 if (obj1) {
4552 ecode2 = SWIG_AsVal_long(obj1, &val2);
4553 if (!SWIG_IsOK(ecode2)) {
4554 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4555 }
4556 arg2 = static_cast< long >(val2);
4557 }
4558 {
4559 PyThreadState* __tstate = wxPyBeginAllowThreads();
4560 result = ((wxColour const *)arg1)->GetAsString(arg2);
4561 wxPyEndAllowThreads(__tstate);
4562 if (PyErr_Occurred()) SWIG_fail;
4563 }
4564 {
4565 #if wxUSE_UNICODE
4566 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4567 #else
4568 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4569 #endif
4570 }
4571 return resultobj;
4572 fail:
4573 return NULL;
4574 }
4575
4576
4577 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4578 PyObject *resultobj = 0;
4579 wxColour *arg1 = (wxColour *) 0 ;
4580 long result;
4581 void *argp1 = 0 ;
4582 int res1 = 0 ;
4583 PyObject *swig_obj[1] ;
4584
4585 if (!args) SWIG_fail;
4586 swig_obj[0] = args;
4587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4588 if (!SWIG_IsOK(res1)) {
4589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4590 }
4591 arg1 = reinterpret_cast< wxColour * >(argp1);
4592 {
4593 PyThreadState* __tstate = wxPyBeginAllowThreads();
4594 result = (long)((wxColour const *)arg1)->GetPixel();
4595 wxPyEndAllowThreads(__tstate);
4596 if (PyErr_Occurred()) SWIG_fail;
4597 }
4598 resultobj = SWIG_From_long(static_cast< long >(result));
4599 return resultobj;
4600 fail:
4601 return NULL;
4602 }
4603
4604
4605 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4606 PyObject *resultobj = 0;
4607 wxColour *arg1 = (wxColour *) 0 ;
4608 PyObject *arg2 = (PyObject *) 0 ;
4609 bool result;
4610 void *argp1 = 0 ;
4611 int res1 = 0 ;
4612 PyObject * obj0 = 0 ;
4613 PyObject * obj1 = 0 ;
4614 char * kwnames[] = {
4615 (char *) "self",(char *) "other", NULL
4616 };
4617
4618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4620 if (!SWIG_IsOK(res1)) {
4621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4622 }
4623 arg1 = reinterpret_cast< wxColour * >(argp1);
4624 arg2 = obj1;
4625 {
4626 result = (bool)wxColour___eq__(arg1,arg2);
4627 if (PyErr_Occurred()) SWIG_fail;
4628 }
4629 {
4630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4631 }
4632 return resultobj;
4633 fail:
4634 return NULL;
4635 }
4636
4637
4638 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4639 PyObject *resultobj = 0;
4640 wxColour *arg1 = (wxColour *) 0 ;
4641 PyObject *arg2 = (PyObject *) 0 ;
4642 bool result;
4643 void *argp1 = 0 ;
4644 int res1 = 0 ;
4645 PyObject * obj0 = 0 ;
4646 PyObject * obj1 = 0 ;
4647 char * kwnames[] = {
4648 (char *) "self",(char *) "other", NULL
4649 };
4650
4651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4653 if (!SWIG_IsOK(res1)) {
4654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4655 }
4656 arg1 = reinterpret_cast< wxColour * >(argp1);
4657 arg2 = obj1;
4658 {
4659 result = (bool)wxColour___ne__(arg1,arg2);
4660 if (PyErr_Occurred()) SWIG_fail;
4661 }
4662 {
4663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4664 }
4665 return resultobj;
4666 fail:
4667 return NULL;
4668 }
4669
4670
4671 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4672 PyObject *resultobj = 0;
4673 wxColour *arg1 = (wxColour *) 0 ;
4674 bool arg2 = (bool) false ;
4675 PyObject *result = 0 ;
4676 void *argp1 = 0 ;
4677 int res1 = 0 ;
4678 bool val2 ;
4679 int ecode2 = 0 ;
4680 PyObject * obj0 = 0 ;
4681 PyObject * obj1 = 0 ;
4682 char * kwnames[] = {
4683 (char *) "self",(char *) "includeAlpha", NULL
4684 };
4685
4686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4688 if (!SWIG_IsOK(res1)) {
4689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4690 }
4691 arg1 = reinterpret_cast< wxColour * >(argp1);
4692 if (obj1) {
4693 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4694 if (!SWIG_IsOK(ecode2)) {
4695 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4696 }
4697 arg2 = static_cast< bool >(val2);
4698 }
4699 {
4700 result = (PyObject *)wxColour_Get(arg1,arg2);
4701 if (PyErr_Occurred()) SWIG_fail;
4702 }
4703 resultobj = result;
4704 return resultobj;
4705 fail:
4706 return NULL;
4707 }
4708
4709
4710 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4711 PyObject *resultobj = 0;
4712 wxColour *arg1 = (wxColour *) 0 ;
4713 unsigned long result;
4714 void *argp1 = 0 ;
4715 int res1 = 0 ;
4716 PyObject *swig_obj[1] ;
4717
4718 if (!args) SWIG_fail;
4719 swig_obj[0] = args;
4720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4721 if (!SWIG_IsOK(res1)) {
4722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4723 }
4724 arg1 = reinterpret_cast< wxColour * >(argp1);
4725 {
4726 result = (unsigned long)wxColour_GetRGB(arg1);
4727 if (PyErr_Occurred()) SWIG_fail;
4728 }
4729 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4730 return resultobj;
4731 fail:
4732 return NULL;
4733 }
4734
4735
4736 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4737 PyObject *obj;
4738 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4739 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4740 return SWIG_Py_Void();
4741 }
4742
4743 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4744 return SWIG_Python_InitShadowInstance(args);
4745 }
4746
4747 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4748 PyObject *resultobj = 0;
4749 int arg1 ;
4750 unsigned char *arg2 = (unsigned char *) 0 ;
4751 unsigned char *arg3 = (unsigned char *) 0 ;
4752 unsigned char *arg4 = (unsigned char *) 0 ;
4753 wxPalette *result = 0 ;
4754 int val1 ;
4755 int ecode1 = 0 ;
4756 void *argp2 = 0 ;
4757 int res2 = 0 ;
4758 void *argp3 = 0 ;
4759 int res3 = 0 ;
4760 void *argp4 = 0 ;
4761 int res4 = 0 ;
4762 PyObject * obj0 = 0 ;
4763 PyObject * obj1 = 0 ;
4764 PyObject * obj2 = 0 ;
4765 PyObject * obj3 = 0 ;
4766 char * kwnames[] = {
4767 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4768 };
4769
4770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4771 ecode1 = SWIG_AsVal_int(obj0, &val1);
4772 if (!SWIG_IsOK(ecode1)) {
4773 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4774 }
4775 arg1 = static_cast< int >(val1);
4776 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4777 if (!SWIG_IsOK(res2)) {
4778 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4779 }
4780 arg2 = reinterpret_cast< unsigned char * >(argp2);
4781 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4782 if (!SWIG_IsOK(res3)) {
4783 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4784 }
4785 arg3 = reinterpret_cast< unsigned char * >(argp3);
4786 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4787 if (!SWIG_IsOK(res4)) {
4788 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4789 }
4790 arg4 = reinterpret_cast< unsigned char * >(argp4);
4791 {
4792 if (!wxPyCheckForApp()) SWIG_fail;
4793 PyThreadState* __tstate = wxPyBeginAllowThreads();
4794 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4795 wxPyEndAllowThreads(__tstate);
4796 if (PyErr_Occurred()) SWIG_fail;
4797 }
4798 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4799 return resultobj;
4800 fail:
4801 return NULL;
4802 }
4803
4804
4805 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4806 PyObject *resultobj = 0;
4807 wxPalette *arg1 = (wxPalette *) 0 ;
4808 void *argp1 = 0 ;
4809 int res1 = 0 ;
4810 PyObject *swig_obj[1] ;
4811
4812 if (!args) SWIG_fail;
4813 swig_obj[0] = args;
4814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4815 if (!SWIG_IsOK(res1)) {
4816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4817 }
4818 arg1 = reinterpret_cast< wxPalette * >(argp1);
4819 {
4820 PyThreadState* __tstate = wxPyBeginAllowThreads();
4821 delete arg1;
4822
4823 wxPyEndAllowThreads(__tstate);
4824 if (PyErr_Occurred()) SWIG_fail;
4825 }
4826 resultobj = SWIG_Py_Void();
4827 return resultobj;
4828 fail:
4829 return NULL;
4830 }
4831
4832
4833 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4834 PyObject *resultobj = 0;
4835 wxPalette *arg1 = (wxPalette *) 0 ;
4836 byte arg2 ;
4837 byte arg3 ;
4838 byte arg4 ;
4839 int result;
4840 void *argp1 = 0 ;
4841 int res1 = 0 ;
4842 unsigned char val2 ;
4843 int ecode2 = 0 ;
4844 unsigned char val3 ;
4845 int ecode3 = 0 ;
4846 unsigned char val4 ;
4847 int ecode4 = 0 ;
4848 PyObject * obj0 = 0 ;
4849 PyObject * obj1 = 0 ;
4850 PyObject * obj2 = 0 ;
4851 PyObject * obj3 = 0 ;
4852 char * kwnames[] = {
4853 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4854 };
4855
4856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4858 if (!SWIG_IsOK(res1)) {
4859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4860 }
4861 arg1 = reinterpret_cast< wxPalette * >(argp1);
4862 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4863 if (!SWIG_IsOK(ecode2)) {
4864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4865 }
4866 arg2 = static_cast< byte >(val2);
4867 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4868 if (!SWIG_IsOK(ecode3)) {
4869 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4870 }
4871 arg3 = static_cast< byte >(val3);
4872 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4873 if (!SWIG_IsOK(ecode4)) {
4874 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4875 }
4876 arg4 = static_cast< byte >(val4);
4877 {
4878 PyThreadState* __tstate = wxPyBeginAllowThreads();
4879 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4880 wxPyEndAllowThreads(__tstate);
4881 if (PyErr_Occurred()) SWIG_fail;
4882 }
4883 resultobj = SWIG_From_int(static_cast< int >(result));
4884 return resultobj;
4885 fail:
4886 return NULL;
4887 }
4888
4889
4890 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4891 PyObject *resultobj = 0;
4892 wxPalette *arg1 = (wxPalette *) 0 ;
4893 int arg2 ;
4894 byte *arg3 = (byte *) 0 ;
4895 byte *arg4 = (byte *) 0 ;
4896 byte *arg5 = (byte *) 0 ;
4897 bool result;
4898 void *argp1 = 0 ;
4899 int res1 = 0 ;
4900 int val2 ;
4901 int ecode2 = 0 ;
4902 byte temp3 ;
4903 int res3 = SWIG_TMPOBJ ;
4904 byte temp4 ;
4905 int res4 = SWIG_TMPOBJ ;
4906 byte temp5 ;
4907 int res5 = SWIG_TMPOBJ ;
4908 PyObject * obj0 = 0 ;
4909 PyObject * obj1 = 0 ;
4910 char * kwnames[] = {
4911 (char *) "self",(char *) "pixel", NULL
4912 };
4913
4914 arg3 = &temp3;
4915 arg4 = &temp4;
4916 arg5 = &temp5;
4917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4919 if (!SWIG_IsOK(res1)) {
4920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4921 }
4922 arg1 = reinterpret_cast< wxPalette * >(argp1);
4923 ecode2 = SWIG_AsVal_int(obj1, &val2);
4924 if (!SWIG_IsOK(ecode2)) {
4925 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4926 }
4927 arg2 = static_cast< int >(val2);
4928 {
4929 PyThreadState* __tstate = wxPyBeginAllowThreads();
4930 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4931 wxPyEndAllowThreads(__tstate);
4932 if (PyErr_Occurred()) SWIG_fail;
4933 }
4934 {
4935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4936 }
4937 if (SWIG_IsTmpObj(res3)) {
4938 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4939 } else {
4940 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4941 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4942 }
4943 if (SWIG_IsTmpObj(res4)) {
4944 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4945 } else {
4946 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4947 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4948 }
4949 if (SWIG_IsTmpObj(res5)) {
4950 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4951 } else {
4952 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4953 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4954 }
4955 return resultobj;
4956 fail:
4957 return NULL;
4958 }
4959
4960
4961 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4962 PyObject *resultobj = 0;
4963 wxPalette *arg1 = (wxPalette *) 0 ;
4964 int result;
4965 void *argp1 = 0 ;
4966 int res1 = 0 ;
4967 PyObject *swig_obj[1] ;
4968
4969 if (!args) SWIG_fail;
4970 swig_obj[0] = args;
4971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4972 if (!SWIG_IsOK(res1)) {
4973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4974 }
4975 arg1 = reinterpret_cast< wxPalette * >(argp1);
4976 {
4977 PyThreadState* __tstate = wxPyBeginAllowThreads();
4978 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4979 wxPyEndAllowThreads(__tstate);
4980 if (PyErr_Occurred()) SWIG_fail;
4981 }
4982 resultobj = SWIG_From_int(static_cast< int >(result));
4983 return resultobj;
4984 fail:
4985 return NULL;
4986 }
4987
4988
4989 SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4990 PyObject *resultobj = 0;
4991 wxPalette *arg1 = (wxPalette *) 0 ;
4992 bool result;
4993 void *argp1 = 0 ;
4994 int res1 = 0 ;
4995 PyObject *swig_obj[1] ;
4996
4997 if (!args) SWIG_fail;
4998 swig_obj[0] = args;
4999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
5000 if (!SWIG_IsOK(res1)) {
5001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
5002 }
5003 arg1 = reinterpret_cast< wxPalette * >(argp1);
5004 {
5005 PyThreadState* __tstate = wxPyBeginAllowThreads();
5006 result = (bool)(arg1)->IsOk();
5007 wxPyEndAllowThreads(__tstate);
5008 if (PyErr_Occurred()) SWIG_fail;
5009 }
5010 {
5011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5012 }
5013 return resultobj;
5014 fail:
5015 return NULL;
5016 }
5017
5018
5019 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5020 PyObject *obj;
5021 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5022 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
5023 return SWIG_Py_Void();
5024 }
5025
5026 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5027 return SWIG_Python_InitShadowInstance(args);
5028 }
5029
5030 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5031 PyObject *resultobj = 0;
5032 wxColour *arg1 = 0 ;
5033 int arg2 = (int) 1 ;
5034 int arg3 = (int) wxSOLID ;
5035 wxPen *result = 0 ;
5036 wxColour temp1 ;
5037 int val2 ;
5038 int ecode2 = 0 ;
5039 int val3 ;
5040 int ecode3 = 0 ;
5041 PyObject * obj0 = 0 ;
5042 PyObject * obj1 = 0 ;
5043 PyObject * obj2 = 0 ;
5044 char * kwnames[] = {
5045 (char *) "colour",(char *) "width",(char *) "style", NULL
5046 };
5047
5048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5049 {
5050 arg1 = &temp1;
5051 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5052 }
5053 if (obj1) {
5054 ecode2 = SWIG_AsVal_int(obj1, &val2);
5055 if (!SWIG_IsOK(ecode2)) {
5056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5057 }
5058 arg2 = static_cast< int >(val2);
5059 }
5060 if (obj2) {
5061 ecode3 = SWIG_AsVal_int(obj2, &val3);
5062 if (!SWIG_IsOK(ecode3)) {
5063 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5064 }
5065 arg3 = static_cast< int >(val3);
5066 }
5067 {
5068 if (!wxPyCheckForApp()) SWIG_fail;
5069 PyThreadState* __tstate = wxPyBeginAllowThreads();
5070 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5071 wxPyEndAllowThreads(__tstate);
5072 if (PyErr_Occurred()) SWIG_fail;
5073 }
5074 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5075 return resultobj;
5076 fail:
5077 return NULL;
5078 }
5079
5080
5081 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5082 PyObject *resultobj = 0;
5083 wxPen *arg1 = (wxPen *) 0 ;
5084 void *argp1 = 0 ;
5085 int res1 = 0 ;
5086 PyObject *swig_obj[1] ;
5087
5088 if (!args) SWIG_fail;
5089 swig_obj[0] = args;
5090 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5091 if (!SWIG_IsOK(res1)) {
5092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5093 }
5094 arg1 = reinterpret_cast< wxPen * >(argp1);
5095 {
5096 PyThreadState* __tstate = wxPyBeginAllowThreads();
5097 delete arg1;
5098
5099 wxPyEndAllowThreads(__tstate);
5100 if (PyErr_Occurred()) SWIG_fail;
5101 }
5102 resultobj = SWIG_Py_Void();
5103 return resultobj;
5104 fail:
5105 return NULL;
5106 }
5107
5108
5109 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5110 PyObject *resultobj = 0;
5111 wxPen *arg1 = (wxPen *) 0 ;
5112 int result;
5113 void *argp1 = 0 ;
5114 int res1 = 0 ;
5115 PyObject *swig_obj[1] ;
5116
5117 if (!args) SWIG_fail;
5118 swig_obj[0] = args;
5119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5120 if (!SWIG_IsOK(res1)) {
5121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5122 }
5123 arg1 = reinterpret_cast< wxPen * >(argp1);
5124 {
5125 PyThreadState* __tstate = wxPyBeginAllowThreads();
5126 result = (int)(arg1)->GetCap();
5127 wxPyEndAllowThreads(__tstate);
5128 if (PyErr_Occurred()) SWIG_fail;
5129 }
5130 resultobj = SWIG_From_int(static_cast< int >(result));
5131 return resultobj;
5132 fail:
5133 return NULL;
5134 }
5135
5136
5137 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5138 PyObject *resultobj = 0;
5139 wxPen *arg1 = (wxPen *) 0 ;
5140 wxColour result;
5141 void *argp1 = 0 ;
5142 int res1 = 0 ;
5143 PyObject *swig_obj[1] ;
5144
5145 if (!args) SWIG_fail;
5146 swig_obj[0] = args;
5147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5148 if (!SWIG_IsOK(res1)) {
5149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5150 }
5151 arg1 = reinterpret_cast< wxPen * >(argp1);
5152 {
5153 PyThreadState* __tstate = wxPyBeginAllowThreads();
5154 result = (arg1)->GetColour();
5155 wxPyEndAllowThreads(__tstate);
5156 if (PyErr_Occurred()) SWIG_fail;
5157 }
5158 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5159 return resultobj;
5160 fail:
5161 return NULL;
5162 }
5163
5164
5165 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5166 PyObject *resultobj = 0;
5167 wxPen *arg1 = (wxPen *) 0 ;
5168 int result;
5169 void *argp1 = 0 ;
5170 int res1 = 0 ;
5171 PyObject *swig_obj[1] ;
5172
5173 if (!args) SWIG_fail;
5174 swig_obj[0] = args;
5175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5176 if (!SWIG_IsOK(res1)) {
5177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5178 }
5179 arg1 = reinterpret_cast< wxPen * >(argp1);
5180 {
5181 PyThreadState* __tstate = wxPyBeginAllowThreads();
5182 result = (int)(arg1)->GetJoin();
5183 wxPyEndAllowThreads(__tstate);
5184 if (PyErr_Occurred()) SWIG_fail;
5185 }
5186 resultobj = SWIG_From_int(static_cast< int >(result));
5187 return resultobj;
5188 fail:
5189 return NULL;
5190 }
5191
5192
5193 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5194 PyObject *resultobj = 0;
5195 wxPen *arg1 = (wxPen *) 0 ;
5196 int result;
5197 void *argp1 = 0 ;
5198 int res1 = 0 ;
5199 PyObject *swig_obj[1] ;
5200
5201 if (!args) SWIG_fail;
5202 swig_obj[0] = args;
5203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5204 if (!SWIG_IsOK(res1)) {
5205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5206 }
5207 arg1 = reinterpret_cast< wxPen * >(argp1);
5208 {
5209 PyThreadState* __tstate = wxPyBeginAllowThreads();
5210 result = (int)(arg1)->GetStyle();
5211 wxPyEndAllowThreads(__tstate);
5212 if (PyErr_Occurred()) SWIG_fail;
5213 }
5214 resultobj = SWIG_From_int(static_cast< int >(result));
5215 return resultobj;
5216 fail:
5217 return NULL;
5218 }
5219
5220
5221 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5222 PyObject *resultobj = 0;
5223 wxPen *arg1 = (wxPen *) 0 ;
5224 int result;
5225 void *argp1 = 0 ;
5226 int res1 = 0 ;
5227 PyObject *swig_obj[1] ;
5228
5229 if (!args) SWIG_fail;
5230 swig_obj[0] = args;
5231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5232 if (!SWIG_IsOK(res1)) {
5233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5234 }
5235 arg1 = reinterpret_cast< wxPen * >(argp1);
5236 {
5237 PyThreadState* __tstate = wxPyBeginAllowThreads();
5238 result = (int)(arg1)->GetWidth();
5239 wxPyEndAllowThreads(__tstate);
5240 if (PyErr_Occurred()) SWIG_fail;
5241 }
5242 resultobj = SWIG_From_int(static_cast< int >(result));
5243 return resultobj;
5244 fail:
5245 return NULL;
5246 }
5247
5248
5249 SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5250 PyObject *resultobj = 0;
5251 wxPen *arg1 = (wxPen *) 0 ;
5252 bool result;
5253 void *argp1 = 0 ;
5254 int res1 = 0 ;
5255 PyObject *swig_obj[1] ;
5256
5257 if (!args) SWIG_fail;
5258 swig_obj[0] = args;
5259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5260 if (!SWIG_IsOK(res1)) {
5261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
5262 }
5263 arg1 = reinterpret_cast< wxPen * >(argp1);
5264 {
5265 PyThreadState* __tstate = wxPyBeginAllowThreads();
5266 result = (bool)(arg1)->IsOk();
5267 wxPyEndAllowThreads(__tstate);
5268 if (PyErr_Occurred()) SWIG_fail;
5269 }
5270 {
5271 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5272 }
5273 return resultobj;
5274 fail:
5275 return NULL;
5276 }
5277
5278
5279 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5280 PyObject *resultobj = 0;
5281 wxPen *arg1 = (wxPen *) 0 ;
5282 int arg2 ;
5283 void *argp1 = 0 ;
5284 int res1 = 0 ;
5285 int val2 ;
5286 int ecode2 = 0 ;
5287 PyObject * obj0 = 0 ;
5288 PyObject * obj1 = 0 ;
5289 char * kwnames[] = {
5290 (char *) "self",(char *) "cap_style", NULL
5291 };
5292
5293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5295 if (!SWIG_IsOK(res1)) {
5296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5297 }
5298 arg1 = reinterpret_cast< wxPen * >(argp1);
5299 ecode2 = SWIG_AsVal_int(obj1, &val2);
5300 if (!SWIG_IsOK(ecode2)) {
5301 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5302 }
5303 arg2 = static_cast< int >(val2);
5304 {
5305 PyThreadState* __tstate = wxPyBeginAllowThreads();
5306 (arg1)->SetCap(arg2);
5307 wxPyEndAllowThreads(__tstate);
5308 if (PyErr_Occurred()) SWIG_fail;
5309 }
5310 resultobj = SWIG_Py_Void();
5311 return resultobj;
5312 fail:
5313 return NULL;
5314 }
5315
5316
5317 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5318 PyObject *resultobj = 0;
5319 wxPen *arg1 = (wxPen *) 0 ;
5320 wxColour *arg2 = 0 ;
5321 void *argp1 = 0 ;
5322 int res1 = 0 ;
5323 wxColour temp2 ;
5324 PyObject * obj0 = 0 ;
5325 PyObject * obj1 = 0 ;
5326 char * kwnames[] = {
5327 (char *) "self",(char *) "colour", NULL
5328 };
5329
5330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5332 if (!SWIG_IsOK(res1)) {
5333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5334 }
5335 arg1 = reinterpret_cast< wxPen * >(argp1);
5336 {
5337 arg2 = &temp2;
5338 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5339 }
5340 {
5341 PyThreadState* __tstate = wxPyBeginAllowThreads();
5342 (arg1)->SetColour(*arg2);
5343 wxPyEndAllowThreads(__tstate);
5344 if (PyErr_Occurred()) SWIG_fail;
5345 }
5346 resultobj = SWIG_Py_Void();
5347 return resultobj;
5348 fail:
5349 return NULL;
5350 }
5351
5352
5353 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5354 PyObject *resultobj = 0;
5355 wxPen *arg1 = (wxPen *) 0 ;
5356 int arg2 ;
5357 void *argp1 = 0 ;
5358 int res1 = 0 ;
5359 int val2 ;
5360 int ecode2 = 0 ;
5361 PyObject * obj0 = 0 ;
5362 PyObject * obj1 = 0 ;
5363 char * kwnames[] = {
5364 (char *) "self",(char *) "join_style", NULL
5365 };
5366
5367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5369 if (!SWIG_IsOK(res1)) {
5370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5371 }
5372 arg1 = reinterpret_cast< wxPen * >(argp1);
5373 ecode2 = SWIG_AsVal_int(obj1, &val2);
5374 if (!SWIG_IsOK(ecode2)) {
5375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5376 }
5377 arg2 = static_cast< int >(val2);
5378 {
5379 PyThreadState* __tstate = wxPyBeginAllowThreads();
5380 (arg1)->SetJoin(arg2);
5381 wxPyEndAllowThreads(__tstate);
5382 if (PyErr_Occurred()) SWIG_fail;
5383 }
5384 resultobj = SWIG_Py_Void();
5385 return resultobj;
5386 fail:
5387 return NULL;
5388 }
5389
5390
5391 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5392 PyObject *resultobj = 0;
5393 wxPen *arg1 = (wxPen *) 0 ;
5394 int arg2 ;
5395 void *argp1 = 0 ;
5396 int res1 = 0 ;
5397 int val2 ;
5398 int ecode2 = 0 ;
5399 PyObject * obj0 = 0 ;
5400 PyObject * obj1 = 0 ;
5401 char * kwnames[] = {
5402 (char *) "self",(char *) "style", NULL
5403 };
5404
5405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5407 if (!SWIG_IsOK(res1)) {
5408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5409 }
5410 arg1 = reinterpret_cast< wxPen * >(argp1);
5411 ecode2 = SWIG_AsVal_int(obj1, &val2);
5412 if (!SWIG_IsOK(ecode2)) {
5413 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5414 }
5415 arg2 = static_cast< int >(val2);
5416 {
5417 PyThreadState* __tstate = wxPyBeginAllowThreads();
5418 (arg1)->SetStyle(arg2);
5419 wxPyEndAllowThreads(__tstate);
5420 if (PyErr_Occurred()) SWIG_fail;
5421 }
5422 resultobj = SWIG_Py_Void();
5423 return resultobj;
5424 fail:
5425 return NULL;
5426 }
5427
5428
5429 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5430 PyObject *resultobj = 0;
5431 wxPen *arg1 = (wxPen *) 0 ;
5432 int arg2 ;
5433 void *argp1 = 0 ;
5434 int res1 = 0 ;
5435 int val2 ;
5436 int ecode2 = 0 ;
5437 PyObject * obj0 = 0 ;
5438 PyObject * obj1 = 0 ;
5439 char * kwnames[] = {
5440 (char *) "self",(char *) "width", NULL
5441 };
5442
5443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5445 if (!SWIG_IsOK(res1)) {
5446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5447 }
5448 arg1 = reinterpret_cast< wxPen * >(argp1);
5449 ecode2 = SWIG_AsVal_int(obj1, &val2);
5450 if (!SWIG_IsOK(ecode2)) {
5451 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5452 }
5453 arg2 = static_cast< int >(val2);
5454 {
5455 PyThreadState* __tstate = wxPyBeginAllowThreads();
5456 (arg1)->SetWidth(arg2);
5457 wxPyEndAllowThreads(__tstate);
5458 if (PyErr_Occurred()) SWIG_fail;
5459 }
5460 resultobj = SWIG_Py_Void();
5461 return resultobj;
5462 fail:
5463 return NULL;
5464 }
5465
5466
5467 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5468 PyObject *resultobj = 0;
5469 wxPen *arg1 = (wxPen *) 0 ;
5470 int arg2 ;
5471 wxDash *arg3 = (wxDash *) 0 ;
5472 void *argp1 = 0 ;
5473 int res1 = 0 ;
5474 PyObject * obj0 = 0 ;
5475 PyObject * obj1 = 0 ;
5476 char * kwnames[] = {
5477 (char *) "self",(char *) "dashes", NULL
5478 };
5479
5480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5482 if (!SWIG_IsOK(res1)) {
5483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5484 }
5485 arg1 = reinterpret_cast< wxPen * >(argp1);
5486 {
5487 arg2 = PyList_Size(obj1);
5488 arg3 = (wxDash*)byte_LIST_helper(obj1);
5489 if (arg3 == NULL) SWIG_fail;
5490 }
5491 {
5492 PyThreadState* __tstate = wxPyBeginAllowThreads();
5493 (arg1)->SetDashes(arg2,arg3);
5494 wxPyEndAllowThreads(__tstate);
5495 if (PyErr_Occurred()) SWIG_fail;
5496 }
5497 resultobj = SWIG_Py_Void();
5498 {
5499 if (arg3) delete [] arg3;
5500 }
5501 return resultobj;
5502 fail:
5503 {
5504 if (arg3) delete [] arg3;
5505 }
5506 return NULL;
5507 }
5508
5509
5510 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5511 PyObject *resultobj = 0;
5512 wxPen *arg1 = (wxPen *) 0 ;
5513 PyObject *result = 0 ;
5514 void *argp1 = 0 ;
5515 int res1 = 0 ;
5516 PyObject *swig_obj[1] ;
5517
5518 if (!args) SWIG_fail;
5519 swig_obj[0] = args;
5520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5521 if (!SWIG_IsOK(res1)) {
5522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5523 }
5524 arg1 = reinterpret_cast< wxPen * >(argp1);
5525 {
5526 PyThreadState* __tstate = wxPyBeginAllowThreads();
5527 result = (PyObject *)wxPen_GetDashes(arg1);
5528 wxPyEndAllowThreads(__tstate);
5529 if (PyErr_Occurred()) SWIG_fail;
5530 }
5531 resultobj = result;
5532 return resultobj;
5533 fail:
5534 return NULL;
5535 }
5536
5537
5538 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5539 PyObject *resultobj = 0;
5540 wxPen *arg1 = (wxPen *) 0 ;
5541 PyObject *arg2 = (PyObject *) 0 ;
5542 PyObject *arg3 = (PyObject *) 0 ;
5543 void *argp1 = 0 ;
5544 int res1 = 0 ;
5545 PyObject * obj0 = 0 ;
5546 PyObject * obj1 = 0 ;
5547 PyObject * obj2 = 0 ;
5548 char * kwnames[] = {
5549 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5550 };
5551
5552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5554 if (!SWIG_IsOK(res1)) {
5555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5556 }
5557 arg1 = reinterpret_cast< wxPen * >(argp1);
5558 arg2 = obj1;
5559 arg3 = obj2;
5560 {
5561 PyThreadState* __tstate = wxPyBeginAllowThreads();
5562 wxPen__SetDashes(arg1,arg2,arg3);
5563 wxPyEndAllowThreads(__tstate);
5564 if (PyErr_Occurred()) SWIG_fail;
5565 }
5566 resultobj = SWIG_Py_Void();
5567 return resultobj;
5568 fail:
5569 return NULL;
5570 }
5571
5572
5573 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5574 PyObject *resultobj = 0;
5575 wxPen *arg1 = (wxPen *) 0 ;
5576 wxPen *arg2 = (wxPen *) 0 ;
5577 bool result;
5578 void *argp1 = 0 ;
5579 int res1 = 0 ;
5580 void *argp2 = 0 ;
5581 int res2 = 0 ;
5582 PyObject * obj0 = 0 ;
5583 PyObject * obj1 = 0 ;
5584 char * kwnames[] = {
5585 (char *) "self",(char *) "other", NULL
5586 };
5587
5588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5590 if (!SWIG_IsOK(res1)) {
5591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5592 }
5593 arg1 = reinterpret_cast< wxPen * >(argp1);
5594 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5595 if (!SWIG_IsOK(res2)) {
5596 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5597 }
5598 arg2 = reinterpret_cast< wxPen * >(argp2);
5599 {
5600 PyThreadState* __tstate = wxPyBeginAllowThreads();
5601 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5602 wxPyEndAllowThreads(__tstate);
5603 if (PyErr_Occurred()) SWIG_fail;
5604 }
5605 {
5606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5607 }
5608 return resultobj;
5609 fail:
5610 return NULL;
5611 }
5612
5613
5614 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5615 PyObject *resultobj = 0;
5616 wxPen *arg1 = (wxPen *) 0 ;
5617 wxPen *arg2 = (wxPen *) 0 ;
5618 bool result;
5619 void *argp1 = 0 ;
5620 int res1 = 0 ;
5621 void *argp2 = 0 ;
5622 int res2 = 0 ;
5623 PyObject * obj0 = 0 ;
5624 PyObject * obj1 = 0 ;
5625 char * kwnames[] = {
5626 (char *) "self",(char *) "other", NULL
5627 };
5628
5629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5631 if (!SWIG_IsOK(res1)) {
5632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5633 }
5634 arg1 = reinterpret_cast< wxPen * >(argp1);
5635 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5636 if (!SWIG_IsOK(res2)) {
5637 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5638 }
5639 arg2 = reinterpret_cast< wxPen * >(argp2);
5640 {
5641 PyThreadState* __tstate = wxPyBeginAllowThreads();
5642 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5643 wxPyEndAllowThreads(__tstate);
5644 if (PyErr_Occurred()) SWIG_fail;
5645 }
5646 {
5647 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5648 }
5649 return resultobj;
5650 fail:
5651 return NULL;
5652 }
5653
5654
5655 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5656 PyObject *obj;
5657 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5658 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5659 return SWIG_Py_Void();
5660 }
5661
5662 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5663 return SWIG_Python_InitShadowInstance(args);
5664 }
5665
5666 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5667 PyObject *resultobj = 0;
5668 wxColour *arg1 = 0 ;
5669 int arg2 = (int) wxSOLID ;
5670 wxBrush *result = 0 ;
5671 wxColour temp1 ;
5672 int val2 ;
5673 int ecode2 = 0 ;
5674 PyObject * obj0 = 0 ;
5675 PyObject * obj1 = 0 ;
5676 char * kwnames[] = {
5677 (char *) "colour",(char *) "style", NULL
5678 };
5679
5680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5681 {
5682 arg1 = &temp1;
5683 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5684 }
5685 if (obj1) {
5686 ecode2 = SWIG_AsVal_int(obj1, &val2);
5687 if (!SWIG_IsOK(ecode2)) {
5688 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5689 }
5690 arg2 = static_cast< int >(val2);
5691 }
5692 {
5693 if (!wxPyCheckForApp()) SWIG_fail;
5694 PyThreadState* __tstate = wxPyBeginAllowThreads();
5695 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5696 wxPyEndAllowThreads(__tstate);
5697 if (PyErr_Occurred()) SWIG_fail;
5698 }
5699 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5700 return resultobj;
5701 fail:
5702 return NULL;
5703 }
5704
5705
5706 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5707 PyObject *resultobj = 0;
5708 wxBitmap *arg1 = 0 ;
5709 wxBrush *result = 0 ;
5710 void *argp1 = 0 ;
5711 int res1 = 0 ;
5712 PyObject * obj0 = 0 ;
5713 char * kwnames[] = {
5714 (char *) "stippleBitmap", NULL
5715 };
5716
5717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5718 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5719 if (!SWIG_IsOK(res1)) {
5720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5721 }
5722 if (!argp1) {
5723 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5724 }
5725 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5726 {
5727 if (!wxPyCheckForApp()) SWIG_fail;
5728 PyThreadState* __tstate = wxPyBeginAllowThreads();
5729 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5730 wxPyEndAllowThreads(__tstate);
5731 if (PyErr_Occurred()) SWIG_fail;
5732 }
5733 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5734 return resultobj;
5735 fail:
5736 return NULL;
5737 }
5738
5739
5740 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5741 PyObject *resultobj = 0;
5742 wxBrush *arg1 = (wxBrush *) 0 ;
5743 void *argp1 = 0 ;
5744 int res1 = 0 ;
5745 PyObject *swig_obj[1] ;
5746
5747 if (!args) SWIG_fail;
5748 swig_obj[0] = args;
5749 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5750 if (!SWIG_IsOK(res1)) {
5751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5752 }
5753 arg1 = reinterpret_cast< wxBrush * >(argp1);
5754 {
5755 PyThreadState* __tstate = wxPyBeginAllowThreads();
5756 delete arg1;
5757
5758 wxPyEndAllowThreads(__tstate);
5759 if (PyErr_Occurred()) SWIG_fail;
5760 }
5761 resultobj = SWIG_Py_Void();
5762 return resultobj;
5763 fail:
5764 return NULL;
5765 }
5766
5767
5768 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5769 PyObject *resultobj = 0;
5770 wxBrush *arg1 = (wxBrush *) 0 ;
5771 wxColour *arg2 = 0 ;
5772 void *argp1 = 0 ;
5773 int res1 = 0 ;
5774 wxColour temp2 ;
5775 PyObject * obj0 = 0 ;
5776 PyObject * obj1 = 0 ;
5777 char * kwnames[] = {
5778 (char *) "self",(char *) "col", NULL
5779 };
5780
5781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5783 if (!SWIG_IsOK(res1)) {
5784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5785 }
5786 arg1 = reinterpret_cast< wxBrush * >(argp1);
5787 {
5788 arg2 = &temp2;
5789 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5790 }
5791 {
5792 PyThreadState* __tstate = wxPyBeginAllowThreads();
5793 (arg1)->SetColour((wxColour const &)*arg2);
5794 wxPyEndAllowThreads(__tstate);
5795 if (PyErr_Occurred()) SWIG_fail;
5796 }
5797 resultobj = SWIG_Py_Void();
5798 return resultobj;
5799 fail:
5800 return NULL;
5801 }
5802
5803
5804 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5805 PyObject *resultobj = 0;
5806 wxBrush *arg1 = (wxBrush *) 0 ;
5807 int arg2 ;
5808 void *argp1 = 0 ;
5809 int res1 = 0 ;
5810 int val2 ;
5811 int ecode2 = 0 ;
5812 PyObject * obj0 = 0 ;
5813 PyObject * obj1 = 0 ;
5814 char * kwnames[] = {
5815 (char *) "self",(char *) "style", NULL
5816 };
5817
5818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5820 if (!SWIG_IsOK(res1)) {
5821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5822 }
5823 arg1 = reinterpret_cast< wxBrush * >(argp1);
5824 ecode2 = SWIG_AsVal_int(obj1, &val2);
5825 if (!SWIG_IsOK(ecode2)) {
5826 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5827 }
5828 arg2 = static_cast< int >(val2);
5829 {
5830 PyThreadState* __tstate = wxPyBeginAllowThreads();
5831 (arg1)->SetStyle(arg2);
5832 wxPyEndAllowThreads(__tstate);
5833 if (PyErr_Occurred()) SWIG_fail;
5834 }
5835 resultobj = SWIG_Py_Void();
5836 return resultobj;
5837 fail:
5838 return NULL;
5839 }
5840
5841
5842 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5843 PyObject *resultobj = 0;
5844 wxBrush *arg1 = (wxBrush *) 0 ;
5845 wxBitmap *arg2 = 0 ;
5846 void *argp1 = 0 ;
5847 int res1 = 0 ;
5848 void *argp2 = 0 ;
5849 int res2 = 0 ;
5850 PyObject * obj0 = 0 ;
5851 PyObject * obj1 = 0 ;
5852 char * kwnames[] = {
5853 (char *) "self",(char *) "stipple", NULL
5854 };
5855
5856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5858 if (!SWIG_IsOK(res1)) {
5859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5860 }
5861 arg1 = reinterpret_cast< wxBrush * >(argp1);
5862 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5863 if (!SWIG_IsOK(res2)) {
5864 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5865 }
5866 if (!argp2) {
5867 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5868 }
5869 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5870 {
5871 PyThreadState* __tstate = wxPyBeginAllowThreads();
5872 (arg1)->SetStipple((wxBitmap const &)*arg2);
5873 wxPyEndAllowThreads(__tstate);
5874 if (PyErr_Occurred()) SWIG_fail;
5875 }
5876 resultobj = SWIG_Py_Void();
5877 return resultobj;
5878 fail:
5879 return NULL;
5880 }
5881
5882
5883 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5884 PyObject *resultobj = 0;
5885 wxBrush *arg1 = (wxBrush *) 0 ;
5886 wxColour result;
5887 void *argp1 = 0 ;
5888 int res1 = 0 ;
5889 PyObject *swig_obj[1] ;
5890
5891 if (!args) SWIG_fail;
5892 swig_obj[0] = args;
5893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5894 if (!SWIG_IsOK(res1)) {
5895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5896 }
5897 arg1 = reinterpret_cast< wxBrush * >(argp1);
5898 {
5899 PyThreadState* __tstate = wxPyBeginAllowThreads();
5900 result = ((wxBrush const *)arg1)->GetColour();
5901 wxPyEndAllowThreads(__tstate);
5902 if (PyErr_Occurred()) SWIG_fail;
5903 }
5904 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5905 return resultobj;
5906 fail:
5907 return NULL;
5908 }
5909
5910
5911 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5912 PyObject *resultobj = 0;
5913 wxBrush *arg1 = (wxBrush *) 0 ;
5914 int result;
5915 void *argp1 = 0 ;
5916 int res1 = 0 ;
5917 PyObject *swig_obj[1] ;
5918
5919 if (!args) SWIG_fail;
5920 swig_obj[0] = args;
5921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5922 if (!SWIG_IsOK(res1)) {
5923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5924 }
5925 arg1 = reinterpret_cast< wxBrush * >(argp1);
5926 {
5927 PyThreadState* __tstate = wxPyBeginAllowThreads();
5928 result = (int)((wxBrush const *)arg1)->GetStyle();
5929 wxPyEndAllowThreads(__tstate);
5930 if (PyErr_Occurred()) SWIG_fail;
5931 }
5932 resultobj = SWIG_From_int(static_cast< int >(result));
5933 return resultobj;
5934 fail:
5935 return NULL;
5936 }
5937
5938
5939 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5940 PyObject *resultobj = 0;
5941 wxBrush *arg1 = (wxBrush *) 0 ;
5942 wxBitmap *result = 0 ;
5943 void *argp1 = 0 ;
5944 int res1 = 0 ;
5945 PyObject *swig_obj[1] ;
5946
5947 if (!args) SWIG_fail;
5948 swig_obj[0] = args;
5949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5950 if (!SWIG_IsOK(res1)) {
5951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5952 }
5953 arg1 = reinterpret_cast< wxBrush * >(argp1);
5954 {
5955 PyThreadState* __tstate = wxPyBeginAllowThreads();
5956 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5957 wxPyEndAllowThreads(__tstate);
5958 if (PyErr_Occurred()) SWIG_fail;
5959 }
5960 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5961 return resultobj;
5962 fail:
5963 return NULL;
5964 }
5965
5966
5967 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5968 PyObject *resultobj = 0;
5969 wxBrush *arg1 = (wxBrush *) 0 ;
5970 bool result;
5971 void *argp1 = 0 ;
5972 int res1 = 0 ;
5973 PyObject *swig_obj[1] ;
5974
5975 if (!args) SWIG_fail;
5976 swig_obj[0] = args;
5977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5978 if (!SWIG_IsOK(res1)) {
5979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5980 }
5981 arg1 = reinterpret_cast< wxBrush * >(argp1);
5982 {
5983 PyThreadState* __tstate = wxPyBeginAllowThreads();
5984 result = (bool)((wxBrush const *)arg1)->IsHatch();
5985 wxPyEndAllowThreads(__tstate);
5986 if (PyErr_Occurred()) SWIG_fail;
5987 }
5988 {
5989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5990 }
5991 return resultobj;
5992 fail:
5993 return NULL;
5994 }
5995
5996
5997 SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5998 PyObject *resultobj = 0;
5999 wxBrush *arg1 = (wxBrush *) 0 ;
6000 bool result;
6001 void *argp1 = 0 ;
6002 int res1 = 0 ;
6003 PyObject *swig_obj[1] ;
6004
6005 if (!args) SWIG_fail;
6006 swig_obj[0] = args;
6007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6008 if (!SWIG_IsOK(res1)) {
6009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
6010 }
6011 arg1 = reinterpret_cast< wxBrush * >(argp1);
6012 {
6013 PyThreadState* __tstate = wxPyBeginAllowThreads();
6014 result = (bool)(arg1)->IsOk();
6015 wxPyEndAllowThreads(__tstate);
6016 if (PyErr_Occurred()) SWIG_fail;
6017 }
6018 {
6019 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6020 }
6021 return resultobj;
6022 fail:
6023 return NULL;
6024 }
6025
6026
6027 SWIGINTERN PyObject *_wrap_Brush_MacGetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6028 PyObject *resultobj = 0;
6029 wxBrush *arg1 = (wxBrush *) 0 ;
6030 short result;
6031 void *argp1 = 0 ;
6032 int res1 = 0 ;
6033 PyObject *swig_obj[1] ;
6034
6035 if (!args) SWIG_fail;
6036 swig_obj[0] = args;
6037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6038 if (!SWIG_IsOK(res1)) {
6039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacGetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
6040 }
6041 arg1 = reinterpret_cast< wxBrush * >(argp1);
6042 {
6043 PyThreadState* __tstate = wxPyBeginAllowThreads();
6044 result = (short)(arg1)->MacGetTheme();
6045 wxPyEndAllowThreads(__tstate);
6046 if (PyErr_Occurred()) SWIG_fail;
6047 }
6048 resultobj = SWIG_From_short(static_cast< short >(result));
6049 return resultobj;
6050 fail:
6051 return NULL;
6052 }
6053
6054
6055 SWIGINTERN PyObject *_wrap_Brush_MacSetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6056 PyObject *resultobj = 0;
6057 wxBrush *arg1 = (wxBrush *) 0 ;
6058 short arg2 ;
6059 void *argp1 = 0 ;
6060 int res1 = 0 ;
6061 short val2 ;
6062 int ecode2 = 0 ;
6063 PyObject * obj0 = 0 ;
6064 PyObject * obj1 = 0 ;
6065 char * kwnames[] = {
6066 (char *) "self",(char *) "macThemeBrush", NULL
6067 };
6068
6069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) SWIG_fail;
6070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6071 if (!SWIG_IsOK(res1)) {
6072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacSetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
6073 }
6074 arg1 = reinterpret_cast< wxBrush * >(argp1);
6075 ecode2 = SWIG_AsVal_short(obj1, &val2);
6076 if (!SWIG_IsOK(ecode2)) {
6077 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_MacSetTheme" "', expected argument " "2"" of type '" "short""'");
6078 }
6079 arg2 = static_cast< short >(val2);
6080 {
6081 PyThreadState* __tstate = wxPyBeginAllowThreads();
6082 (arg1)->MacSetTheme(arg2);
6083 wxPyEndAllowThreads(__tstate);
6084 if (PyErr_Occurred()) SWIG_fail;
6085 }
6086 resultobj = SWIG_Py_Void();
6087 return resultobj;
6088 fail:
6089 return NULL;
6090 }
6091
6092
6093 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6094 PyObject *obj;
6095 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6096 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6097 return SWIG_Py_Void();
6098 }
6099
6100 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6101 return SWIG_Python_InitShadowInstance(args);
6102 }
6103
6104 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6105 PyObject *resultobj = 0;
6106 wxString *arg1 = 0 ;
6107 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6108 wxBitmap *result = 0 ;
6109 bool temp1 = false ;
6110 int val2 ;
6111 int ecode2 = 0 ;
6112 PyObject * obj0 = 0 ;
6113 PyObject * obj1 = 0 ;
6114 char * kwnames[] = {
6115 (char *) "name",(char *) "type", NULL
6116 };
6117
6118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6119 {
6120 arg1 = wxString_in_helper(obj0);
6121 if (arg1 == NULL) SWIG_fail;
6122 temp1 = true;
6123 }
6124 if (obj1) {
6125 ecode2 = SWIG_AsVal_int(obj1, &val2);
6126 if (!SWIG_IsOK(ecode2)) {
6127 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6128 }
6129 arg2 = static_cast< wxBitmapType >(val2);
6130 }
6131 {
6132 if (!wxPyCheckForApp()) SWIG_fail;
6133 PyThreadState* __tstate = wxPyBeginAllowThreads();
6134 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6135 wxPyEndAllowThreads(__tstate);
6136 if (PyErr_Occurred()) SWIG_fail;
6137 }
6138 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6139 {
6140 if (temp1)
6141 delete arg1;
6142 }
6143 return resultobj;
6144 fail:
6145 {
6146 if (temp1)
6147 delete arg1;
6148 }
6149 return NULL;
6150 }
6151
6152
6153 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6154 PyObject *resultobj = 0;
6155 wxBitmap *arg1 = (wxBitmap *) 0 ;
6156 void *argp1 = 0 ;
6157 int res1 = 0 ;
6158 PyObject *swig_obj[1] ;
6159
6160 if (!args) SWIG_fail;
6161 swig_obj[0] = args;
6162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6163 if (!SWIG_IsOK(res1)) {
6164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6165 }
6166 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6167 {
6168 delete arg1;
6169
6170 if (PyErr_Occurred()) SWIG_fail;
6171 }
6172 resultobj = SWIG_Py_Void();
6173 return resultobj;
6174 fail:
6175 return NULL;
6176 }
6177
6178
6179 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6180 PyObject *resultobj = 0;
6181 int arg1 ;
6182 int arg2 ;
6183 int arg3 = (int) -1 ;
6184 wxBitmap *result = 0 ;
6185 int val1 ;
6186 int ecode1 = 0 ;
6187 int val2 ;
6188 int ecode2 = 0 ;
6189 int val3 ;
6190 int ecode3 = 0 ;
6191 PyObject * obj0 = 0 ;
6192 PyObject * obj1 = 0 ;
6193 PyObject * obj2 = 0 ;
6194 char * kwnames[] = {
6195 (char *) "width",(char *) "height",(char *) "depth", NULL
6196 };
6197
6198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6199 ecode1 = SWIG_AsVal_int(obj0, &val1);
6200 if (!SWIG_IsOK(ecode1)) {
6201 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6202 }
6203 arg1 = static_cast< int >(val1);
6204 ecode2 = SWIG_AsVal_int(obj1, &val2);
6205 if (!SWIG_IsOK(ecode2)) {
6206 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6207 }
6208 arg2 = static_cast< int >(val2);
6209 if (obj2) {
6210 ecode3 = SWIG_AsVal_int(obj2, &val3);
6211 if (!SWIG_IsOK(ecode3)) {
6212 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6213 }
6214 arg3 = static_cast< int >(val3);
6215 }
6216 {
6217 if (!wxPyCheckForApp()) SWIG_fail;
6218 PyThreadState* __tstate = wxPyBeginAllowThreads();
6219 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6220 wxPyEndAllowThreads(__tstate);
6221 if (PyErr_Occurred()) SWIG_fail;
6222 }
6223 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6224 return resultobj;
6225 fail:
6226 return NULL;
6227 }
6228
6229
6230 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6231 PyObject *resultobj = 0;
6232 wxIcon *arg1 = 0 ;
6233 wxBitmap *result = 0 ;
6234 void *argp1 = 0 ;
6235 int res1 = 0 ;
6236 PyObject * obj0 = 0 ;
6237 char * kwnames[] = {
6238 (char *) "icon", NULL
6239 };
6240
6241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6242 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6243 if (!SWIG_IsOK(res1)) {
6244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6245 }
6246 if (!argp1) {
6247 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6248 }
6249 arg1 = reinterpret_cast< wxIcon * >(argp1);
6250 {
6251 if (!wxPyCheckForApp()) SWIG_fail;
6252 PyThreadState* __tstate = wxPyBeginAllowThreads();
6253 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6254 wxPyEndAllowThreads(__tstate);
6255 if (PyErr_Occurred()) SWIG_fail;
6256 }
6257 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6258 return resultobj;
6259 fail:
6260 return NULL;
6261 }
6262
6263
6264 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6265 PyObject *resultobj = 0;
6266 wxImage *arg1 = 0 ;
6267 int arg2 = (int) -1 ;
6268 wxBitmap *result = 0 ;
6269 void *argp1 = 0 ;
6270 int res1 = 0 ;
6271 int val2 ;
6272 int ecode2 = 0 ;
6273 PyObject * obj0 = 0 ;
6274 PyObject * obj1 = 0 ;
6275 char * kwnames[] = {
6276 (char *) "image",(char *) "depth", NULL
6277 };
6278
6279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6280 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6281 if (!SWIG_IsOK(res1)) {
6282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6283 }
6284 if (!argp1) {
6285 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6286 }
6287 arg1 = reinterpret_cast< wxImage * >(argp1);
6288 if (obj1) {
6289 ecode2 = SWIG_AsVal_int(obj1, &val2);
6290 if (!SWIG_IsOK(ecode2)) {
6291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6292 }
6293 arg2 = static_cast< int >(val2);
6294 }
6295 {
6296 if (!wxPyCheckForApp()) SWIG_fail;
6297 PyThreadState* __tstate = wxPyBeginAllowThreads();
6298 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6299 wxPyEndAllowThreads(__tstate);
6300 if (PyErr_Occurred()) SWIG_fail;
6301 }
6302 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6303 return resultobj;
6304 fail:
6305 return NULL;
6306 }
6307
6308
6309 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6310 PyObject *resultobj = 0;
6311 PyObject *arg1 = (PyObject *) 0 ;
6312 wxBitmap *result = 0 ;
6313 PyObject * obj0 = 0 ;
6314 char * kwnames[] = {
6315 (char *) "listOfStrings", NULL
6316 };
6317
6318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6319 arg1 = obj0;
6320 {
6321 if (!wxPyCheckForApp()) SWIG_fail;
6322 PyThreadState* __tstate = wxPyBeginAllowThreads();
6323 result = (wxBitmap *)new_wxBitmap(arg1);
6324 wxPyEndAllowThreads(__tstate);
6325 if (PyErr_Occurred()) SWIG_fail;
6326 }
6327 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6328 return resultobj;
6329 fail:
6330 return NULL;
6331 }
6332
6333
6334 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6335 PyObject *resultobj = 0;
6336 PyObject *arg1 = (PyObject *) 0 ;
6337 int arg2 ;
6338 int arg3 ;
6339 int arg4 = (int) 1 ;
6340 wxBitmap *result = 0 ;
6341 int val2 ;
6342 int ecode2 = 0 ;
6343 int val3 ;
6344 int ecode3 = 0 ;
6345 int val4 ;
6346 int ecode4 = 0 ;
6347 PyObject * obj0 = 0 ;
6348 PyObject * obj1 = 0 ;
6349 PyObject * obj2 = 0 ;
6350 PyObject * obj3 = 0 ;
6351 char * kwnames[] = {
6352 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6353 };
6354
6355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6356 arg1 = obj0;
6357 ecode2 = SWIG_AsVal_int(obj1, &val2);
6358 if (!SWIG_IsOK(ecode2)) {
6359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6360 }
6361 arg2 = static_cast< int >(val2);
6362 ecode3 = SWIG_AsVal_int(obj2, &val3);
6363 if (!SWIG_IsOK(ecode3)) {
6364 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6365 }
6366 arg3 = static_cast< int >(val3);
6367 if (obj3) {
6368 ecode4 = SWIG_AsVal_int(obj3, &val4);
6369 if (!SWIG_IsOK(ecode4)) {
6370 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6371 }
6372 arg4 = static_cast< int >(val4);
6373 }
6374 {
6375 if (!wxPyCheckForApp()) SWIG_fail;
6376 PyThreadState* __tstate = wxPyBeginAllowThreads();
6377 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6378 wxPyEndAllowThreads(__tstate);
6379 if (PyErr_Occurred()) SWIG_fail;
6380 }
6381 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6382 return resultobj;
6383 fail:
6384 return NULL;
6385 }
6386
6387
6388 SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6389 PyObject *resultobj = 0;
6390 wxBitmap *arg1 = (wxBitmap *) 0 ;
6391 bool result;
6392 void *argp1 = 0 ;
6393 int res1 = 0 ;
6394 PyObject *swig_obj[1] ;
6395
6396 if (!args) SWIG_fail;
6397 swig_obj[0] = args;
6398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6399 if (!SWIG_IsOK(res1)) {
6400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
6401 }
6402 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6403 {
6404 result = (bool)(arg1)->IsOk();
6405 if (PyErr_Occurred()) SWIG_fail;
6406 }
6407 {
6408 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6409 }
6410 return resultobj;
6411 fail:
6412 return NULL;
6413 }
6414
6415
6416 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6417 PyObject *resultobj = 0;
6418 wxBitmap *arg1 = (wxBitmap *) 0 ;
6419 int result;
6420 void *argp1 = 0 ;
6421 int res1 = 0 ;
6422 PyObject *swig_obj[1] ;
6423
6424 if (!args) SWIG_fail;
6425 swig_obj[0] = args;
6426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6427 if (!SWIG_IsOK(res1)) {
6428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6429 }
6430 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6431 {
6432 result = (int)(arg1)->GetWidth();
6433 if (PyErr_Occurred()) SWIG_fail;
6434 }
6435 resultobj = SWIG_From_int(static_cast< int >(result));
6436 return resultobj;
6437 fail:
6438 return NULL;
6439 }
6440
6441
6442 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6443 PyObject *resultobj = 0;
6444 wxBitmap *arg1 = (wxBitmap *) 0 ;
6445 int result;
6446 void *argp1 = 0 ;
6447 int res1 = 0 ;
6448 PyObject *swig_obj[1] ;
6449
6450 if (!args) SWIG_fail;
6451 swig_obj[0] = args;
6452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6453 if (!SWIG_IsOK(res1)) {
6454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6455 }
6456 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6457 {
6458 result = (int)(arg1)->GetHeight();
6459 if (PyErr_Occurred()) SWIG_fail;
6460 }
6461 resultobj = SWIG_From_int(static_cast< int >(result));
6462 return resultobj;
6463 fail:
6464 return NULL;
6465 }
6466
6467
6468 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6469 PyObject *resultobj = 0;
6470 wxBitmap *arg1 = (wxBitmap *) 0 ;
6471 int result;
6472 void *argp1 = 0 ;
6473 int res1 = 0 ;
6474 PyObject *swig_obj[1] ;
6475
6476 if (!args) SWIG_fail;
6477 swig_obj[0] = args;
6478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6479 if (!SWIG_IsOK(res1)) {
6480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6481 }
6482 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6483 {
6484 result = (int)(arg1)->GetDepth();
6485 if (PyErr_Occurred()) SWIG_fail;
6486 }
6487 resultobj = SWIG_From_int(static_cast< int >(result));
6488 return resultobj;
6489 fail:
6490 return NULL;
6491 }
6492
6493
6494 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6495 PyObject *resultobj = 0;
6496 wxBitmap *arg1 = (wxBitmap *) 0 ;
6497 wxSize result;
6498 void *argp1 = 0 ;
6499 int res1 = 0 ;
6500 PyObject *swig_obj[1] ;
6501
6502 if (!args) SWIG_fail;
6503 swig_obj[0] = args;
6504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6505 if (!SWIG_IsOK(res1)) {
6506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6507 }
6508 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6509 {
6510 result = wxBitmap_GetSize(arg1);
6511 if (PyErr_Occurred()) SWIG_fail;
6512 }
6513 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6514 return resultobj;
6515 fail:
6516 return NULL;
6517 }
6518
6519
6520 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6521 PyObject *resultobj = 0;
6522 wxBitmap *arg1 = (wxBitmap *) 0 ;
6523 SwigValueWrapper<wxImage > result;
6524 void *argp1 = 0 ;
6525 int res1 = 0 ;
6526 PyObject *swig_obj[1] ;
6527
6528 if (!args) SWIG_fail;
6529 swig_obj[0] = args;
6530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6531 if (!SWIG_IsOK(res1)) {
6532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6533 }
6534 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6535 {
6536 result = ((wxBitmap const *)arg1)->ConvertToImage();
6537 if (PyErr_Occurred()) SWIG_fail;
6538 }
6539 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6540 return resultobj;
6541 fail:
6542 return NULL;
6543 }
6544
6545
6546 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6547 PyObject *resultobj = 0;
6548 wxBitmap *arg1 = (wxBitmap *) 0 ;
6549 wxMask *result = 0 ;
6550 void *argp1 = 0 ;
6551 int res1 = 0 ;
6552 PyObject *swig_obj[1] ;
6553
6554 if (!args) SWIG_fail;
6555 swig_obj[0] = args;
6556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6557 if (!SWIG_IsOK(res1)) {
6558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6559 }
6560 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6561 {
6562 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6563 if (PyErr_Occurred()) SWIG_fail;
6564 }
6565 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6566 return resultobj;
6567 fail:
6568 return NULL;
6569 }
6570
6571
6572 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6573 PyObject *resultobj = 0;
6574 wxBitmap *arg1 = (wxBitmap *) 0 ;
6575 wxMask *arg2 = (wxMask *) 0 ;
6576 void *argp1 = 0 ;
6577 int res1 = 0 ;
6578 int res2 = 0 ;
6579 PyObject * obj0 = 0 ;
6580 PyObject * obj1 = 0 ;
6581 char * kwnames[] = {
6582 (char *) "self",(char *) "mask", NULL
6583 };
6584
6585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6587 if (!SWIG_IsOK(res1)) {
6588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6589 }
6590 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6591 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6592 if (!SWIG_IsOK(res2)) {
6593 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6594 }
6595 {
6596 (arg1)->SetMask(arg2);
6597 if (PyErr_Occurred()) SWIG_fail;
6598 }
6599 resultobj = SWIG_Py_Void();
6600 return resultobj;
6601 fail:
6602 return NULL;
6603 }
6604
6605
6606 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6607 PyObject *resultobj = 0;
6608 wxBitmap *arg1 = (wxBitmap *) 0 ;
6609 wxColour *arg2 = 0 ;
6610 void *argp1 = 0 ;
6611 int res1 = 0 ;
6612 wxColour temp2 ;
6613 PyObject * obj0 = 0 ;
6614 PyObject * obj1 = 0 ;
6615 char * kwnames[] = {
6616 (char *) "self",(char *) "colour", NULL
6617 };
6618
6619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6621 if (!SWIG_IsOK(res1)) {
6622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6623 }
6624 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6625 {
6626 arg2 = &temp2;
6627 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6628 }
6629 {
6630 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6631 if (PyErr_Occurred()) SWIG_fail;
6632 }
6633 resultobj = SWIG_Py_Void();
6634 return resultobj;
6635 fail:
6636 return NULL;
6637 }
6638
6639
6640 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6641 PyObject *resultobj = 0;
6642 wxBitmap *arg1 = (wxBitmap *) 0 ;
6643 wxRect *arg2 = 0 ;
6644 SwigValueWrapper<wxBitmap > result;
6645 void *argp1 = 0 ;
6646 int res1 = 0 ;
6647 wxRect temp2 ;
6648 PyObject * obj0 = 0 ;
6649 PyObject * obj1 = 0 ;
6650 char * kwnames[] = {
6651 (char *) "self",(char *) "rect", NULL
6652 };
6653
6654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6656 if (!SWIG_IsOK(res1)) {
6657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6658 }
6659 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6660 {
6661 arg2 = &temp2;
6662 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6663 }
6664 {
6665 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6666 if (PyErr_Occurred()) SWIG_fail;
6667 }
6668 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6669 return resultobj;
6670 fail:
6671 return NULL;
6672 }
6673
6674
6675 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6676 PyObject *resultobj = 0;
6677 wxBitmap *arg1 = (wxBitmap *) 0 ;
6678 wxString *arg2 = 0 ;
6679 wxBitmapType arg3 ;
6680 wxPalette *arg4 = (wxPalette *) NULL ;
6681 bool result;
6682 void *argp1 = 0 ;
6683 int res1 = 0 ;
6684 bool temp2 = false ;
6685 int val3 ;
6686 int ecode3 = 0 ;
6687 void *argp4 = 0 ;
6688 int res4 = 0 ;
6689 PyObject * obj0 = 0 ;
6690 PyObject * obj1 = 0 ;
6691 PyObject * obj2 = 0 ;
6692 PyObject * obj3 = 0 ;
6693 char * kwnames[] = {
6694 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6695 };
6696
6697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6699 if (!SWIG_IsOK(res1)) {
6700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6701 }
6702 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6703 {
6704 arg2 = wxString_in_helper(obj1);
6705 if (arg2 == NULL) SWIG_fail;
6706 temp2 = true;
6707 }
6708 ecode3 = SWIG_AsVal_int(obj2, &val3);
6709 if (!SWIG_IsOK(ecode3)) {
6710 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6711 }
6712 arg3 = static_cast< wxBitmapType >(val3);
6713 if (obj3) {
6714 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6715 if (!SWIG_IsOK(res4)) {
6716 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6717 }
6718 arg4 = reinterpret_cast< wxPalette * >(argp4);
6719 }
6720 {
6721 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6722 if (PyErr_Occurred()) SWIG_fail;
6723 }
6724 {
6725 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6726 }
6727 {
6728 if (temp2)
6729 delete arg2;
6730 }
6731 return resultobj;
6732 fail:
6733 {
6734 if (temp2)
6735 delete arg2;
6736 }
6737 return NULL;
6738 }
6739
6740
6741 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6742 PyObject *resultobj = 0;
6743 wxBitmap *arg1 = (wxBitmap *) 0 ;
6744 wxString *arg2 = 0 ;
6745 wxBitmapType arg3 ;
6746 bool result;
6747 void *argp1 = 0 ;
6748 int res1 = 0 ;
6749 bool temp2 = false ;
6750 int val3 ;
6751 int ecode3 = 0 ;
6752 PyObject * obj0 = 0 ;
6753 PyObject * obj1 = 0 ;
6754 PyObject * obj2 = 0 ;
6755 char * kwnames[] = {
6756 (char *) "self",(char *) "name",(char *) "type", NULL
6757 };
6758
6759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6761 if (!SWIG_IsOK(res1)) {
6762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6763 }
6764 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6765 {
6766 arg2 = wxString_in_helper(obj1);
6767 if (arg2 == NULL) SWIG_fail;
6768 temp2 = true;
6769 }
6770 ecode3 = SWIG_AsVal_int(obj2, &val3);
6771 if (!SWIG_IsOK(ecode3)) {
6772 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6773 }
6774 arg3 = static_cast< wxBitmapType >(val3);
6775 {
6776 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6777 if (PyErr_Occurred()) SWIG_fail;
6778 }
6779 {
6780 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6781 }
6782 {
6783 if (temp2)
6784 delete arg2;
6785 }
6786 return resultobj;
6787 fail:
6788 {
6789 if (temp2)
6790 delete arg2;
6791 }
6792 return NULL;
6793 }
6794
6795
6796 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6797 PyObject *resultobj = 0;
6798 wxBitmap *arg1 = (wxBitmap *) 0 ;
6799 wxPalette *result = 0 ;
6800 void *argp1 = 0 ;
6801 int res1 = 0 ;
6802 PyObject *swig_obj[1] ;
6803
6804 if (!args) SWIG_fail;
6805 swig_obj[0] = args;
6806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6807 if (!SWIG_IsOK(res1)) {
6808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6809 }
6810 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6811 {
6812 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6813 if (PyErr_Occurred()) SWIG_fail;
6814 }
6815 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6816 return resultobj;
6817 fail:
6818 return NULL;
6819 }
6820
6821
6822 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6823 PyObject *resultobj = 0;
6824 wxBitmap *arg1 = (wxBitmap *) 0 ;
6825 wxIcon *arg2 = 0 ;
6826 bool result;
6827 void *argp1 = 0 ;
6828 int res1 = 0 ;
6829 void *argp2 = 0 ;
6830 int res2 = 0 ;
6831 PyObject * obj0 = 0 ;
6832 PyObject * obj1 = 0 ;
6833 char * kwnames[] = {
6834 (char *) "self",(char *) "icon", NULL
6835 };
6836
6837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6839 if (!SWIG_IsOK(res1)) {
6840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6841 }
6842 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6843 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6844 if (!SWIG_IsOK(res2)) {
6845 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6846 }
6847 if (!argp2) {
6848 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6849 }
6850 arg2 = reinterpret_cast< wxIcon * >(argp2);
6851 {
6852 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6853 if (PyErr_Occurred()) SWIG_fail;
6854 }
6855 {
6856 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6857 }
6858 return resultobj;
6859 fail:
6860 return NULL;
6861 }
6862
6863
6864 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6865 PyObject *resultobj = 0;
6866 wxBitmap *arg1 = (wxBitmap *) 0 ;
6867 int arg2 ;
6868 void *argp1 = 0 ;
6869 int res1 = 0 ;
6870 int val2 ;
6871 int ecode2 = 0 ;
6872 PyObject * obj0 = 0 ;
6873 PyObject * obj1 = 0 ;
6874 char * kwnames[] = {
6875 (char *) "self",(char *) "height", NULL
6876 };
6877
6878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6880 if (!SWIG_IsOK(res1)) {
6881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6882 }
6883 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6884 ecode2 = SWIG_AsVal_int(obj1, &val2);
6885 if (!SWIG_IsOK(ecode2)) {
6886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6887 }
6888 arg2 = static_cast< int >(val2);
6889 {
6890 (arg1)->SetHeight(arg2);
6891 if (PyErr_Occurred()) SWIG_fail;
6892 }
6893 resultobj = SWIG_Py_Void();
6894 return resultobj;
6895 fail:
6896 return NULL;
6897 }
6898
6899
6900 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6901 PyObject *resultobj = 0;
6902 wxBitmap *arg1 = (wxBitmap *) 0 ;
6903 int arg2 ;
6904 void *argp1 = 0 ;
6905 int res1 = 0 ;
6906 int val2 ;
6907 int ecode2 = 0 ;
6908 PyObject * obj0 = 0 ;
6909 PyObject * obj1 = 0 ;
6910 char * kwnames[] = {
6911 (char *) "self",(char *) "width", NULL
6912 };
6913
6914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6916 if (!SWIG_IsOK(res1)) {
6917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6918 }
6919 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6920 ecode2 = SWIG_AsVal_int(obj1, &val2);
6921 if (!SWIG_IsOK(ecode2)) {
6922 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6923 }
6924 arg2 = static_cast< int >(val2);
6925 {
6926 (arg1)->SetWidth(arg2);
6927 if (PyErr_Occurred()) SWIG_fail;
6928 }
6929 resultobj = SWIG_Py_Void();
6930 return resultobj;
6931 fail:
6932 return NULL;
6933 }
6934
6935
6936 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6937 PyObject *resultobj = 0;
6938 wxBitmap *arg1 = (wxBitmap *) 0 ;
6939 int arg2 ;
6940 void *argp1 = 0 ;
6941 int res1 = 0 ;
6942 int val2 ;
6943 int ecode2 = 0 ;
6944 PyObject * obj0 = 0 ;
6945 PyObject * obj1 = 0 ;
6946 char * kwnames[] = {
6947 (char *) "self",(char *) "depth", NULL
6948 };
6949
6950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6952 if (!SWIG_IsOK(res1)) {
6953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6954 }
6955 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6956 ecode2 = SWIG_AsVal_int(obj1, &val2);
6957 if (!SWIG_IsOK(ecode2)) {
6958 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6959 }
6960 arg2 = static_cast< int >(val2);
6961 {
6962 (arg1)->SetDepth(arg2);
6963 if (PyErr_Occurred()) SWIG_fail;
6964 }
6965 resultobj = SWIG_Py_Void();
6966 return resultobj;
6967 fail:
6968 return NULL;
6969 }
6970
6971
6972 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6973 PyObject *resultobj = 0;
6974 wxBitmap *arg1 = (wxBitmap *) 0 ;
6975 wxSize *arg2 = 0 ;
6976 void *argp1 = 0 ;
6977 int res1 = 0 ;
6978 wxSize temp2 ;
6979 PyObject * obj0 = 0 ;
6980 PyObject * obj1 = 0 ;
6981 char * kwnames[] = {
6982 (char *) "self",(char *) "size", NULL
6983 };
6984
6985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6987 if (!SWIG_IsOK(res1)) {
6988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6989 }
6990 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6991 {
6992 arg2 = &temp2;
6993 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6994 }
6995 {
6996 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6997 if (PyErr_Occurred()) SWIG_fail;
6998 }
6999 resultobj = SWIG_Py_Void();
7000 return resultobj;
7001 fail:
7002 return NULL;
7003 }
7004
7005
7006 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7007 PyObject *resultobj = 0;
7008 wxBitmap *arg1 = (wxBitmap *) 0 ;
7009 buffer arg2 ;
7010 int arg3 ;
7011 void *argp1 = 0 ;
7012 int res1 = 0 ;
7013 Py_ssize_t temp2 ;
7014 PyObject * obj0 = 0 ;
7015 PyObject * obj1 = 0 ;
7016 char * kwnames[] = {
7017 (char *) "self",(char *) "data", NULL
7018 };
7019
7020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
7021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7022 if (!SWIG_IsOK(res1)) {
7023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
7024 }
7025 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7026 {
7027 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7028 arg3 = (int)temp2;
7029 }
7030 {
7031 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
7032 if (PyErr_Occurred()) SWIG_fail;
7033 }
7034 resultobj = SWIG_Py_Void();
7035 return resultobj;
7036 fail:
7037 return NULL;
7038 }
7039
7040
7041 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7042 PyObject *resultobj = 0;
7043 wxBitmap *arg1 = (wxBitmap *) 0 ;
7044 buffer arg2 ;
7045 int arg3 ;
7046 void *argp1 = 0 ;
7047 int res1 = 0 ;
7048 Py_ssize_t temp2 ;
7049 PyObject * obj0 = 0 ;
7050 PyObject * obj1 = 0 ;
7051 char * kwnames[] = {
7052 (char *) "self",(char *) "data", NULL
7053 };
7054
7055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7057 if (!SWIG_IsOK(res1)) {
7058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7059 }
7060 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7061 {
7062 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7063 arg3 = (int)temp2;
7064 }
7065 {
7066 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7067 if (PyErr_Occurred()) SWIG_fail;
7068 }
7069 resultobj = SWIG_Py_Void();
7070 return resultobj;
7071 fail:
7072 return NULL;
7073 }
7074
7075
7076 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7077 PyObject *resultobj = 0;
7078 wxBitmap *arg1 = (wxBitmap *) 0 ;
7079 wxBitmap *arg2 = (wxBitmap *) 0 ;
7080 bool result;
7081 void *argp1 = 0 ;
7082 int res1 = 0 ;
7083 void *argp2 = 0 ;
7084 int res2 = 0 ;
7085 PyObject * obj0 = 0 ;
7086 PyObject * obj1 = 0 ;
7087 char * kwnames[] = {
7088 (char *) "self",(char *) "other", NULL
7089 };
7090
7091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7093 if (!SWIG_IsOK(res1)) {
7094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7095 }
7096 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7097 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7098 if (!SWIG_IsOK(res2)) {
7099 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7100 }
7101 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7102 {
7103 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
7104 if (PyErr_Occurred()) SWIG_fail;
7105 }
7106 {
7107 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7108 }
7109 return resultobj;
7110 fail:
7111 return NULL;
7112 }
7113
7114
7115 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7116 PyObject *resultobj = 0;
7117 wxBitmap *arg1 = (wxBitmap *) 0 ;
7118 wxBitmap *arg2 = (wxBitmap *) 0 ;
7119 bool result;
7120 void *argp1 = 0 ;
7121 int res1 = 0 ;
7122 void *argp2 = 0 ;
7123 int res2 = 0 ;
7124 PyObject * obj0 = 0 ;
7125 PyObject * obj1 = 0 ;
7126 char * kwnames[] = {
7127 (char *) "self",(char *) "other", NULL
7128 };
7129
7130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7132 if (!SWIG_IsOK(res1)) {
7133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7134 }
7135 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7136 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7137 if (!SWIG_IsOK(res2)) {
7138 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7139 }
7140 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7141 {
7142 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7143 if (PyErr_Occurred()) SWIG_fail;
7144 }
7145 {
7146 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7147 }
7148 return resultobj;
7149 fail:
7150 return NULL;
7151 }
7152
7153
7154 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7155 PyObject *obj;
7156 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7157 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7158 return SWIG_Py_Void();
7159 }
7160
7161 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7162 return SWIG_Python_InitShadowInstance(args);
7163 }
7164
7165 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7166 PyObject *resultobj = 0;
7167 int arg1 ;
7168 int arg2 ;
7169 buffer arg3 ;
7170 int arg4 ;
7171 buffer arg5 ;
7172 int arg6 ;
7173 wxBitmap *result = 0 ;
7174 int val1 ;
7175 int ecode1 = 0 ;
7176 int val2 ;
7177 int ecode2 = 0 ;
7178 Py_ssize_t temp3 ;
7179 Py_ssize_t temp5 ;
7180 PyObject * obj0 = 0 ;
7181 PyObject * obj1 = 0 ;
7182 PyObject * obj2 = 0 ;
7183 PyObject * obj3 = 0 ;
7184 char * kwnames[] = {
7185 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7186 };
7187
7188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7189 ecode1 = SWIG_AsVal_int(obj0, &val1);
7190 if (!SWIG_IsOK(ecode1)) {
7191 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7192 }
7193 arg1 = static_cast< int >(val1);
7194 ecode2 = SWIG_AsVal_int(obj1, &val2);
7195 if (!SWIG_IsOK(ecode2)) {
7196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7197 }
7198 arg2 = static_cast< int >(val2);
7199 {
7200 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7201 arg4 = (int)temp3;
7202 }
7203 {
7204 if (obj3 != Py_None) {
7205 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7206 arg6 = (int)temp5;
7207 }
7208 }
7209 {
7210 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7211 if (PyErr_Occurred()) SWIG_fail;
7212 }
7213 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7214 return resultobj;
7215 fail:
7216 return NULL;
7217 }
7218
7219
7220 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7221 PyObject *resultobj = 0;
7222 int arg1 ;
7223 int arg2 ;
7224 buffer arg3 ;
7225 int arg4 ;
7226 wxBitmap *result = 0 ;
7227 int val1 ;
7228 int ecode1 = 0 ;
7229 int val2 ;
7230 int ecode2 = 0 ;
7231 Py_ssize_t temp3 ;
7232 PyObject * obj0 = 0 ;
7233 PyObject * obj1 = 0 ;
7234 PyObject * obj2 = 0 ;
7235 char * kwnames[] = {
7236 (char *) "width",(char *) "height",(char *) "data", NULL
7237 };
7238
7239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7240 ecode1 = SWIG_AsVal_int(obj0, &val1);
7241 if (!SWIG_IsOK(ecode1)) {
7242 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7243 }
7244 arg1 = static_cast< int >(val1);
7245 ecode2 = SWIG_AsVal_int(obj1, &val2);
7246 if (!SWIG_IsOK(ecode2)) {
7247 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7248 }
7249 arg2 = static_cast< int >(val2);
7250 {
7251 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7252 arg4 = (int)temp3;
7253 }
7254 {
7255 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7256 if (PyErr_Occurred()) SWIG_fail;
7257 }
7258 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7259 return resultobj;
7260 fail:
7261 return NULL;
7262 }
7263
7264
7265 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7266 PyObject *resultobj = 0;
7267 int arg1 ;
7268 int arg2 ;
7269 buffer arg3 ;
7270 int arg4 ;
7271 wxBitmap *result = 0 ;
7272 int val1 ;
7273 int ecode1 = 0 ;
7274 int val2 ;
7275 int ecode2 = 0 ;
7276 Py_ssize_t temp3 ;
7277 PyObject * obj0 = 0 ;
7278 PyObject * obj1 = 0 ;
7279 PyObject * obj2 = 0 ;
7280 char * kwnames[] = {
7281 (char *) "width",(char *) "height",(char *) "data", NULL
7282 };
7283
7284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7285 ecode1 = SWIG_AsVal_int(obj0, &val1);
7286 if (!SWIG_IsOK(ecode1)) {
7287 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7288 }
7289 arg1 = static_cast< int >(val1);
7290 ecode2 = SWIG_AsVal_int(obj1, &val2);
7291 if (!SWIG_IsOK(ecode2)) {
7292 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7293 }
7294 arg2 = static_cast< int >(val2);
7295 {
7296 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7297 arg4 = (int)temp3;
7298 }
7299 {
7300 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7301 if (PyErr_Occurred()) SWIG_fail;
7302 }
7303 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7304 return resultobj;
7305 fail:
7306 return NULL;
7307 }
7308
7309
7310 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7311 PyObject *resultobj = 0;
7312 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7313 wxPoint result;
7314 void *argp1 = 0 ;
7315 int res1 = 0 ;
7316 PyObject *swig_obj[1] ;
7317
7318 if (!args) SWIG_fail;
7319 swig_obj[0] = args;
7320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7321 if (!SWIG_IsOK(res1)) {
7322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7323 }
7324 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7325 {
7326 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7327 if (PyErr_Occurred()) SWIG_fail;
7328 }
7329 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7330 return resultobj;
7331 fail:
7332 return NULL;
7333 }
7334
7335
7336 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7337 PyObject *resultobj = 0;
7338 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7339 int result;
7340 void *argp1 = 0 ;
7341 int res1 = 0 ;
7342 PyObject *swig_obj[1] ;
7343
7344 if (!args) SWIG_fail;
7345 swig_obj[0] = args;
7346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7347 if (!SWIG_IsOK(res1)) {
7348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7349 }
7350 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7351 {
7352 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7353 if (PyErr_Occurred()) SWIG_fail;
7354 }
7355 resultobj = SWIG_From_int(static_cast< int >(result));
7356 return resultobj;
7357 fail:
7358 return NULL;
7359 }
7360
7361
7362 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7363 PyObject *resultobj = 0;
7364 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7365 int result;
7366 void *argp1 = 0 ;
7367 int res1 = 0 ;
7368 PyObject *swig_obj[1] ;
7369
7370 if (!args) SWIG_fail;
7371 swig_obj[0] = args;
7372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7373 if (!SWIG_IsOK(res1)) {
7374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7375 }
7376 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7377 {
7378 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7379 if (PyErr_Occurred()) SWIG_fail;
7380 }
7381 resultobj = SWIG_From_int(static_cast< int >(result));
7382 return resultobj;
7383 fail:
7384 return NULL;
7385 }
7386
7387
7388 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7389 PyObject *resultobj = 0;
7390 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7391 wxSize result;
7392 void *argp1 = 0 ;
7393 int res1 = 0 ;
7394 PyObject *swig_obj[1] ;
7395
7396 if (!args) SWIG_fail;
7397 swig_obj[0] = args;
7398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7399 if (!SWIG_IsOK(res1)) {
7400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7401 }
7402 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7403 {
7404 result = ((wxPixelDataBase const *)arg1)->GetSize();
7405 if (PyErr_Occurred()) SWIG_fail;
7406 }
7407 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7408 return resultobj;
7409 fail:
7410 return NULL;
7411 }
7412
7413
7414 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7415 PyObject *resultobj = 0;
7416 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7417 int result;
7418 void *argp1 = 0 ;
7419 int res1 = 0 ;
7420 PyObject *swig_obj[1] ;
7421
7422 if (!args) SWIG_fail;
7423 swig_obj[0] = args;
7424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7425 if (!SWIG_IsOK(res1)) {
7426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7427 }
7428 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7429 {
7430 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7431 if (PyErr_Occurred()) SWIG_fail;
7432 }
7433 resultobj = SWIG_From_int(static_cast< int >(result));
7434 return resultobj;
7435 fail:
7436 return NULL;
7437 }
7438
7439
7440 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7441 PyObject *obj;
7442 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7443 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7444 return SWIG_Py_Void();
7445 }
7446
7447 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7448 PyObject *resultobj = 0;
7449 wxBitmap *arg1 = 0 ;
7450 wxNativePixelData *result = 0 ;
7451 void *argp1 = 0 ;
7452 int res1 = 0 ;
7453
7454 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7456 if (!SWIG_IsOK(res1)) {
7457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7458 }
7459 if (!argp1) {
7460 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7461 }
7462 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7463 {
7464 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7465 if (PyErr_Occurred()) SWIG_fail;
7466 }
7467 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7468 return resultobj;
7469 fail:
7470 return NULL;
7471 }
7472
7473
7474 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7475 PyObject *resultobj = 0;
7476 wxBitmap *arg1 = 0 ;
7477 wxRect *arg2 = 0 ;
7478 wxNativePixelData *result = 0 ;
7479 void *argp1 = 0 ;
7480 int res1 = 0 ;
7481 wxRect temp2 ;
7482
7483 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7485 if (!SWIG_IsOK(res1)) {
7486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7487 }
7488 if (!argp1) {
7489 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7490 }
7491 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7492 {
7493 arg2 = &temp2;
7494 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7495 }
7496 {
7497 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7498 if (PyErr_Occurred()) SWIG_fail;
7499 }
7500 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7501 return resultobj;
7502 fail:
7503 return NULL;
7504 }
7505
7506
7507 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7508 PyObject *resultobj = 0;
7509 wxBitmap *arg1 = 0 ;
7510 wxPoint *arg2 = 0 ;
7511 wxSize *arg3 = 0 ;
7512 wxNativePixelData *result = 0 ;
7513 void *argp1 = 0 ;
7514 int res1 = 0 ;
7515 wxPoint temp2 ;
7516 wxSize temp3 ;
7517
7518 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7520 if (!SWIG_IsOK(res1)) {
7521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7522 }
7523 if (!argp1) {
7524 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7525 }
7526 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7527 {
7528 arg2 = &temp2;
7529 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7530 }
7531 {
7532 arg3 = &temp3;
7533 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7534 }
7535 {
7536 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7537 if (PyErr_Occurred()) SWIG_fail;
7538 }
7539 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7540 return resultobj;
7541 fail:
7542 return NULL;
7543 }
7544
7545
7546 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7547 int argc;
7548 PyObject *argv[4];
7549
7550 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7551 --argc;
7552 if (argc == 1) {
7553 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7554 }
7555 if (argc == 2) {
7556 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7557 }
7558 if (argc == 3) {
7559 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7560 }
7561
7562 fail:
7563 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7564 return NULL;
7565 }
7566
7567
7568 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7569 PyObject *resultobj = 0;
7570 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7571 void *argp1 = 0 ;
7572 int res1 = 0 ;
7573 PyObject *swig_obj[1] ;
7574
7575 if (!args) SWIG_fail;
7576 swig_obj[0] = args;
7577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7578 if (!SWIG_IsOK(res1)) {
7579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7580 }
7581 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7582 {
7583 delete arg1;
7584
7585 if (PyErr_Occurred()) SWIG_fail;
7586 }
7587 resultobj = SWIG_Py_Void();
7588 return resultobj;
7589 fail:
7590 return NULL;
7591 }
7592
7593
7594 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7595 PyObject *resultobj = 0;
7596 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7597 wxNativePixelData_Accessor result;
7598 void *argp1 = 0 ;
7599 int res1 = 0 ;
7600 PyObject *swig_obj[1] ;
7601
7602 if (!args) SWIG_fail;
7603 swig_obj[0] = args;
7604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7605 if (!SWIG_IsOK(res1)) {
7606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7607 }
7608 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7609 {
7610 result = ((wxNativePixelData const *)arg1)->GetPixels();
7611 if (PyErr_Occurred()) SWIG_fail;
7612 }
7613 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7614 return resultobj;
7615 fail:
7616 return NULL;
7617 }
7618
7619
7620 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7621 PyObject *resultobj = 0;
7622 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7623 void *argp1 = 0 ;
7624 int res1 = 0 ;
7625 PyObject *swig_obj[1] ;
7626
7627 if (!args) SWIG_fail;
7628 swig_obj[0] = args;
7629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7630 if (!SWIG_IsOK(res1)) {
7631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7632 }
7633 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7634 {
7635 (arg1)->UseAlpha();
7636 if (PyErr_Occurred()) SWIG_fail;
7637 }
7638 resultobj = SWIG_Py_Void();
7639 return resultobj;
7640 fail:
7641 return NULL;
7642 }
7643
7644
7645 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7646 PyObject *resultobj = 0;
7647 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7648 bool result;
7649 void *argp1 = 0 ;
7650 int res1 = 0 ;
7651 PyObject *swig_obj[1] ;
7652
7653 if (!args) SWIG_fail;
7654 swig_obj[0] = args;
7655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7656 if (!SWIG_IsOK(res1)) {
7657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7658 }
7659 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7660 {
7661 result = (bool)wxNativePixelData___nonzero__(arg1);
7662 if (PyErr_Occurred()) SWIG_fail;
7663 }
7664 {
7665 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7666 }
7667 return resultobj;
7668 fail:
7669 return NULL;
7670 }
7671
7672
7673 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7674 PyObject *obj;
7675 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7676 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7677 return SWIG_Py_Void();
7678 }
7679
7680 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7681 return SWIG_Python_InitShadowInstance(args);
7682 }
7683
7684 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7685 PyObject *resultobj = 0;
7686 wxNativePixelData *arg1 = 0 ;
7687 wxNativePixelData_Accessor *result = 0 ;
7688 void *argp1 = 0 ;
7689 int res1 = 0 ;
7690
7691 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7693 if (!SWIG_IsOK(res1)) {
7694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7695 }
7696 if (!argp1) {
7697 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7698 }
7699 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7700 {
7701 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7702 if (PyErr_Occurred()) SWIG_fail;
7703 }
7704 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7705 return resultobj;
7706 fail:
7707 return NULL;
7708 }
7709
7710
7711 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7712 PyObject *resultobj = 0;
7713 wxBitmap *arg1 = 0 ;
7714 wxNativePixelData *arg2 = 0 ;
7715 wxNativePixelData_Accessor *result = 0 ;
7716 void *argp1 = 0 ;
7717 int res1 = 0 ;
7718 void *argp2 = 0 ;
7719 int res2 = 0 ;
7720
7721 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7723 if (!SWIG_IsOK(res1)) {
7724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7725 }
7726 if (!argp1) {
7727 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7728 }
7729 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7730 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7731 if (!SWIG_IsOK(res2)) {
7732 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7733 }
7734 if (!argp2) {
7735 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7736 }
7737 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7738 {
7739 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7740 if (PyErr_Occurred()) SWIG_fail;
7741 }
7742 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7743 return resultobj;
7744 fail:
7745 return NULL;
7746 }
7747
7748
7749 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7750 PyObject *resultobj = 0;
7751 wxNativePixelData_Accessor *result = 0 ;
7752
7753 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7754 {
7755 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7756 if (PyErr_Occurred()) SWIG_fail;
7757 }
7758 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7759 return resultobj;
7760 fail:
7761 return NULL;
7762 }
7763
7764
7765 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7766 int argc;
7767 PyObject *argv[3];
7768
7769 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7770 --argc;
7771 if (argc == 0) {
7772 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7773 }
7774 if (argc == 1) {
7775 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7776 }
7777 if (argc == 2) {
7778 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7779 }
7780
7781 fail:
7782 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7783 return NULL;
7784 }
7785
7786
7787 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7788 PyObject *resultobj = 0;
7789 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7790 void *argp1 = 0 ;
7791 int res1 = 0 ;
7792 PyObject *swig_obj[1] ;
7793
7794 if (!args) SWIG_fail;
7795 swig_obj[0] = args;
7796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7797 if (!SWIG_IsOK(res1)) {
7798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7799 }
7800 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7801 {
7802 delete arg1;
7803
7804 if (PyErr_Occurred()) SWIG_fail;
7805 }
7806 resultobj = SWIG_Py_Void();
7807 return resultobj;
7808 fail:
7809 return NULL;
7810 }
7811
7812
7813 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7814 PyObject *resultobj = 0;
7815 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7816 wxNativePixelData *arg2 = 0 ;
7817 void *argp1 = 0 ;
7818 int res1 = 0 ;
7819 void *argp2 = 0 ;
7820 int res2 = 0 ;
7821 PyObject * obj0 = 0 ;
7822 PyObject * obj1 = 0 ;
7823 char * kwnames[] = {
7824 (char *) "self",(char *) "data", NULL
7825 };
7826
7827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7829 if (!SWIG_IsOK(res1)) {
7830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7831 }
7832 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7833 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7834 if (!SWIG_IsOK(res2)) {
7835 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7836 }
7837 if (!argp2) {
7838 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7839 }
7840 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7841 {
7842 (arg1)->Reset((wxNativePixelData const &)*arg2);
7843 if (PyErr_Occurred()) SWIG_fail;
7844 }
7845 resultobj = SWIG_Py_Void();
7846 return resultobj;
7847 fail:
7848 return NULL;
7849 }
7850
7851
7852 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7853 PyObject *resultobj = 0;
7854 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7855 bool result;
7856 void *argp1 = 0 ;
7857 int res1 = 0 ;
7858 PyObject *swig_obj[1] ;
7859
7860 if (!args) SWIG_fail;
7861 swig_obj[0] = args;
7862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7863 if (!SWIG_IsOK(res1)) {
7864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7865 }
7866 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7867 {
7868 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7869 if (PyErr_Occurred()) SWIG_fail;
7870 }
7871 {
7872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7873 }
7874 return resultobj;
7875 fail:
7876 return NULL;
7877 }
7878
7879
7880 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7881 PyObject *resultobj = 0;
7882 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7883 void *argp1 = 0 ;
7884 int res1 = 0 ;
7885 PyObject *swig_obj[1] ;
7886
7887 if (!args) SWIG_fail;
7888 swig_obj[0] = args;
7889 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7890 if (!SWIG_IsOK(res1)) {
7891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7892 }
7893 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7894 {
7895 wxNativePixelData_Accessor_nextPixel(arg1);
7896 if (PyErr_Occurred()) SWIG_fail;
7897 }
7898 resultobj = SWIG_Py_Void();
7899 return resultobj;
7900 fail:
7901 return NULL;
7902 }
7903
7904
7905 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7906 PyObject *resultobj = 0;
7907 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7908 wxNativePixelData *arg2 = 0 ;
7909 int arg3 ;
7910 int arg4 ;
7911 void *argp1 = 0 ;
7912 int res1 = 0 ;
7913 void *argp2 = 0 ;
7914 int res2 = 0 ;
7915 int val3 ;
7916 int ecode3 = 0 ;
7917 int val4 ;
7918 int ecode4 = 0 ;
7919 PyObject * obj0 = 0 ;
7920 PyObject * obj1 = 0 ;
7921 PyObject * obj2 = 0 ;
7922 PyObject * obj3 = 0 ;
7923 char * kwnames[] = {
7924 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7925 };
7926
7927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7929 if (!SWIG_IsOK(res1)) {
7930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7931 }
7932 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7933 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7934 if (!SWIG_IsOK(res2)) {
7935 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7936 }
7937 if (!argp2) {
7938 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7939 }
7940 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7941 ecode3 = SWIG_AsVal_int(obj2, &val3);
7942 if (!SWIG_IsOK(ecode3)) {
7943 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7944 }
7945 arg3 = static_cast< int >(val3);
7946 ecode4 = SWIG_AsVal_int(obj3, &val4);
7947 if (!SWIG_IsOK(ecode4)) {
7948 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7949 }
7950 arg4 = static_cast< int >(val4);
7951 {
7952 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7953 if (PyErr_Occurred()) SWIG_fail;
7954 }
7955 resultobj = SWIG_Py_Void();
7956 return resultobj;
7957 fail:
7958 return NULL;
7959 }
7960
7961
7962 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7963 PyObject *resultobj = 0;
7964 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7965 wxNativePixelData *arg2 = 0 ;
7966 int arg3 ;
7967 void *argp1 = 0 ;
7968 int res1 = 0 ;
7969 void *argp2 = 0 ;
7970 int res2 = 0 ;
7971 int val3 ;
7972 int ecode3 = 0 ;
7973 PyObject * obj0 = 0 ;
7974 PyObject * obj1 = 0 ;
7975 PyObject * obj2 = 0 ;
7976 char * kwnames[] = {
7977 (char *) "self",(char *) "data",(char *) "x", NULL
7978 };
7979
7980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7982 if (!SWIG_IsOK(res1)) {
7983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7984 }
7985 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7986 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7987 if (!SWIG_IsOK(res2)) {
7988 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7989 }
7990 if (!argp2) {
7991 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7992 }
7993 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7994 ecode3 = SWIG_AsVal_int(obj2, &val3);
7995 if (!SWIG_IsOK(ecode3)) {
7996 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7997 }
7998 arg3 = static_cast< int >(val3);
7999 {
8000 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
8001 if (PyErr_Occurred()) SWIG_fail;
8002 }
8003 resultobj = SWIG_Py_Void();
8004 return resultobj;
8005 fail:
8006 return NULL;
8007 }
8008
8009
8010 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8011 PyObject *resultobj = 0;
8012 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8013 wxNativePixelData *arg2 = 0 ;
8014 int arg3 ;
8015 void *argp1 = 0 ;
8016 int res1 = 0 ;
8017 void *argp2 = 0 ;
8018 int res2 = 0 ;
8019 int val3 ;
8020 int ecode3 = 0 ;
8021 PyObject * obj0 = 0 ;
8022 PyObject * obj1 = 0 ;
8023 PyObject * obj2 = 0 ;
8024 char * kwnames[] = {
8025 (char *) "self",(char *) "data",(char *) "y", NULL
8026 };
8027
8028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8030 if (!SWIG_IsOK(res1)) {
8031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8032 }
8033 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8034 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8035 if (!SWIG_IsOK(res2)) {
8036 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8037 }
8038 if (!argp2) {
8039 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8040 }
8041 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8042 ecode3 = SWIG_AsVal_int(obj2, &val3);
8043 if (!SWIG_IsOK(ecode3)) {
8044 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8045 }
8046 arg3 = static_cast< int >(val3);
8047 {
8048 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
8049 if (PyErr_Occurred()) SWIG_fail;
8050 }
8051 resultobj = SWIG_Py_Void();
8052 return resultobj;
8053 fail:
8054 return NULL;
8055 }
8056
8057
8058 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8059 PyObject *resultobj = 0;
8060 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8061 wxNativePixelData *arg2 = 0 ;
8062 int arg3 ;
8063 int arg4 ;
8064 void *argp1 = 0 ;
8065 int res1 = 0 ;
8066 void *argp2 = 0 ;
8067 int res2 = 0 ;
8068 int val3 ;
8069 int ecode3 = 0 ;
8070 int val4 ;
8071 int ecode4 = 0 ;
8072 PyObject * obj0 = 0 ;
8073 PyObject * obj1 = 0 ;
8074 PyObject * obj2 = 0 ;
8075 PyObject * obj3 = 0 ;
8076 char * kwnames[] = {
8077 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8078 };
8079
8080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8082 if (!SWIG_IsOK(res1)) {
8083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8084 }
8085 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8086 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8087 if (!SWIG_IsOK(res2)) {
8088 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8089 }
8090 if (!argp2) {
8091 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8092 }
8093 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8094 ecode3 = SWIG_AsVal_int(obj2, &val3);
8095 if (!SWIG_IsOK(ecode3)) {
8096 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8097 }
8098 arg3 = static_cast< int >(val3);
8099 ecode4 = SWIG_AsVal_int(obj3, &val4);
8100 if (!SWIG_IsOK(ecode4)) {
8101 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8102 }
8103 arg4 = static_cast< int >(val4);
8104 {
8105 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8106 if (PyErr_Occurred()) SWIG_fail;
8107 }
8108 resultobj = SWIG_Py_Void();
8109 return resultobj;
8110 fail:
8111 return NULL;
8112 }
8113
8114
8115 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8116 PyObject *resultobj = 0;
8117 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8118 byte arg2 ;
8119 byte arg3 ;
8120 byte arg4 ;
8121 void *argp1 = 0 ;
8122 int res1 = 0 ;
8123 unsigned char val2 ;
8124 int ecode2 = 0 ;
8125 unsigned char val3 ;
8126 int ecode3 = 0 ;
8127 unsigned char val4 ;
8128 int ecode4 = 0 ;
8129 PyObject * obj0 = 0 ;
8130 PyObject * obj1 = 0 ;
8131 PyObject * obj2 = 0 ;
8132 PyObject * obj3 = 0 ;
8133 char * kwnames[] = {
8134 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8135 };
8136
8137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8139 if (!SWIG_IsOK(res1)) {
8140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8141 }
8142 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8143 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8144 if (!SWIG_IsOK(ecode2)) {
8145 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8146 }
8147 arg2 = static_cast< byte >(val2);
8148 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8149 if (!SWIG_IsOK(ecode3)) {
8150 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8151 }
8152 arg3 = static_cast< byte >(val3);
8153 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8154 if (!SWIG_IsOK(ecode4)) {
8155 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8156 }
8157 arg4 = static_cast< byte >(val4);
8158 {
8159 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8160 if (PyErr_Occurred()) SWIG_fail;
8161 }
8162 resultobj = SWIG_Py_Void();
8163 return resultobj;
8164 fail:
8165 return NULL;
8166 }
8167
8168
8169 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8170 PyObject *resultobj = 0;
8171 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8172 PyObject *result = 0 ;
8173 void *argp1 = 0 ;
8174 int res1 = 0 ;
8175 PyObject *swig_obj[1] ;
8176
8177 if (!args) SWIG_fail;
8178 swig_obj[0] = args;
8179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8180 if (!SWIG_IsOK(res1)) {
8181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8182 }
8183 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8184 {
8185 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8186 if (PyErr_Occurred()) SWIG_fail;
8187 }
8188 resultobj = result;
8189 return resultobj;
8190 fail:
8191 return NULL;
8192 }
8193
8194
8195 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8196 PyObject *obj;
8197 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8198 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8199 return SWIG_Py_Void();
8200 }
8201
8202 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8203 return SWIG_Python_InitShadowInstance(args);
8204 }
8205
8206 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8207 PyObject *resultobj = 0;
8208 wxBitmap *arg1 = 0 ;
8209 wxAlphaPixelData *result = 0 ;
8210 void *argp1 = 0 ;
8211 int res1 = 0 ;
8212
8213 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8214 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8215 if (!SWIG_IsOK(res1)) {
8216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8217 }
8218 if (!argp1) {
8219 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8220 }
8221 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8222 {
8223 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8224 if (PyErr_Occurred()) SWIG_fail;
8225 }
8226 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8227 return resultobj;
8228 fail:
8229 return NULL;
8230 }
8231
8232
8233 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8234 PyObject *resultobj = 0;
8235 wxBitmap *arg1 = 0 ;
8236 wxRect *arg2 = 0 ;
8237 wxAlphaPixelData *result = 0 ;
8238 void *argp1 = 0 ;
8239 int res1 = 0 ;
8240 wxRect temp2 ;
8241
8242 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8244 if (!SWIG_IsOK(res1)) {
8245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8246 }
8247 if (!argp1) {
8248 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8249 }
8250 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8251 {
8252 arg2 = &temp2;
8253 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8254 }
8255 {
8256 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8257 if (PyErr_Occurred()) SWIG_fail;
8258 }
8259 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8260 return resultobj;
8261 fail:
8262 return NULL;
8263 }
8264
8265
8266 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8267 PyObject *resultobj = 0;
8268 wxBitmap *arg1 = 0 ;
8269 wxPoint *arg2 = 0 ;
8270 wxSize *arg3 = 0 ;
8271 wxAlphaPixelData *result = 0 ;
8272 void *argp1 = 0 ;
8273 int res1 = 0 ;
8274 wxPoint temp2 ;
8275 wxSize temp3 ;
8276
8277 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8279 if (!SWIG_IsOK(res1)) {
8280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8281 }
8282 if (!argp1) {
8283 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8284 }
8285 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8286 {
8287 arg2 = &temp2;
8288 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8289 }
8290 {
8291 arg3 = &temp3;
8292 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8293 }
8294 {
8295 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8296 if (PyErr_Occurred()) SWIG_fail;
8297 }
8298 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8299 return resultobj;
8300 fail:
8301 return NULL;
8302 }
8303
8304
8305 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8306 int argc;
8307 PyObject *argv[4];
8308
8309 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8310 --argc;
8311 if (argc == 1) {
8312 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8313 }
8314 if (argc == 2) {
8315 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8316 }
8317 if (argc == 3) {
8318 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8319 }
8320
8321 fail:
8322 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8323 return NULL;
8324 }
8325
8326
8327 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8328 PyObject *resultobj = 0;
8329 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8330 void *argp1 = 0 ;
8331 int res1 = 0 ;
8332 PyObject *swig_obj[1] ;
8333
8334 if (!args) SWIG_fail;
8335 swig_obj[0] = args;
8336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8337 if (!SWIG_IsOK(res1)) {
8338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8339 }
8340 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8341 {
8342 delete arg1;
8343
8344 if (PyErr_Occurred()) SWIG_fail;
8345 }
8346 resultobj = SWIG_Py_Void();
8347 return resultobj;
8348 fail:
8349 return NULL;
8350 }
8351
8352
8353 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8354 PyObject *resultobj = 0;
8355 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8356 wxAlphaPixelData_Accessor result;
8357 void *argp1 = 0 ;
8358 int res1 = 0 ;
8359 PyObject *swig_obj[1] ;
8360
8361 if (!args) SWIG_fail;
8362 swig_obj[0] = args;
8363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8364 if (!SWIG_IsOK(res1)) {
8365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8366 }
8367 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8368 {
8369 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8370 if (PyErr_Occurred()) SWIG_fail;
8371 }
8372 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8373 return resultobj;
8374 fail:
8375 return NULL;
8376 }
8377
8378
8379 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8380 PyObject *resultobj = 0;
8381 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8382 void *argp1 = 0 ;
8383 int res1 = 0 ;
8384 PyObject *swig_obj[1] ;
8385
8386 if (!args) SWIG_fail;
8387 swig_obj[0] = args;
8388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8389 if (!SWIG_IsOK(res1)) {
8390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8391 }
8392 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8393 {
8394 (arg1)->UseAlpha();
8395 if (PyErr_Occurred()) SWIG_fail;
8396 }
8397 resultobj = SWIG_Py_Void();
8398 return resultobj;
8399 fail:
8400 return NULL;
8401 }
8402
8403
8404 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8405 PyObject *resultobj = 0;
8406 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8407 bool result;
8408 void *argp1 = 0 ;
8409 int res1 = 0 ;
8410 PyObject *swig_obj[1] ;
8411
8412 if (!args) SWIG_fail;
8413 swig_obj[0] = args;
8414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8415 if (!SWIG_IsOK(res1)) {
8416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8417 }
8418 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8419 {
8420 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8421 if (PyErr_Occurred()) SWIG_fail;
8422 }
8423 {
8424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8425 }
8426 return resultobj;
8427 fail:
8428 return NULL;
8429 }
8430
8431
8432 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8433 PyObject *obj;
8434 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8435 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8436 return SWIG_Py_Void();
8437 }
8438
8439 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8440 return SWIG_Python_InitShadowInstance(args);
8441 }
8442
8443 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8444 PyObject *resultobj = 0;
8445 wxAlphaPixelData *arg1 = 0 ;
8446 wxAlphaPixelData_Accessor *result = 0 ;
8447 void *argp1 = 0 ;
8448 int res1 = 0 ;
8449
8450 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8452 if (!SWIG_IsOK(res1)) {
8453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8454 }
8455 if (!argp1) {
8456 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8457 }
8458 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8459 {
8460 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8461 if (PyErr_Occurred()) SWIG_fail;
8462 }
8463 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8464 return resultobj;
8465 fail:
8466 return NULL;
8467 }
8468
8469
8470 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8471 PyObject *resultobj = 0;
8472 wxBitmap *arg1 = 0 ;
8473 wxAlphaPixelData *arg2 = 0 ;
8474 wxAlphaPixelData_Accessor *result = 0 ;
8475 void *argp1 = 0 ;
8476 int res1 = 0 ;
8477 void *argp2 = 0 ;
8478 int res2 = 0 ;
8479
8480 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8482 if (!SWIG_IsOK(res1)) {
8483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8484 }
8485 if (!argp1) {
8486 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8487 }
8488 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8489 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8490 if (!SWIG_IsOK(res2)) {
8491 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8492 }
8493 if (!argp2) {
8494 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8495 }
8496 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8497 {
8498 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8499 if (PyErr_Occurred()) SWIG_fail;
8500 }
8501 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8502 return resultobj;
8503 fail:
8504 return NULL;
8505 }
8506
8507
8508 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8509 PyObject *resultobj = 0;
8510 wxAlphaPixelData_Accessor *result = 0 ;
8511
8512 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8513 {
8514 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8515 if (PyErr_Occurred()) SWIG_fail;
8516 }
8517 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8518 return resultobj;
8519 fail:
8520 return NULL;
8521 }
8522
8523
8524 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8525 int argc;
8526 PyObject *argv[3];
8527
8528 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8529 --argc;
8530 if (argc == 0) {
8531 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8532 }
8533 if (argc == 1) {
8534 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8535 }
8536 if (argc == 2) {
8537 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8538 }
8539
8540 fail:
8541 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8542 return NULL;
8543 }
8544
8545
8546 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8547 PyObject *resultobj = 0;
8548 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8549 void *argp1 = 0 ;
8550 int res1 = 0 ;
8551 PyObject *swig_obj[1] ;
8552
8553 if (!args) SWIG_fail;
8554 swig_obj[0] = args;
8555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8556 if (!SWIG_IsOK(res1)) {
8557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8558 }
8559 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8560 {
8561 delete arg1;
8562
8563 if (PyErr_Occurred()) SWIG_fail;
8564 }
8565 resultobj = SWIG_Py_Void();
8566 return resultobj;
8567 fail:
8568 return NULL;
8569 }
8570
8571
8572 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8573 PyObject *resultobj = 0;
8574 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8575 wxAlphaPixelData *arg2 = 0 ;
8576 void *argp1 = 0 ;
8577 int res1 = 0 ;
8578 void *argp2 = 0 ;
8579 int res2 = 0 ;
8580 PyObject * obj0 = 0 ;
8581 PyObject * obj1 = 0 ;
8582 char * kwnames[] = {
8583 (char *) "self",(char *) "data", NULL
8584 };
8585
8586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8588 if (!SWIG_IsOK(res1)) {
8589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8590 }
8591 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8592 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8593 if (!SWIG_IsOK(res2)) {
8594 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8595 }
8596 if (!argp2) {
8597 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8598 }
8599 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8600 {
8601 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8602 if (PyErr_Occurred()) SWIG_fail;
8603 }
8604 resultobj = SWIG_Py_Void();
8605 return resultobj;
8606 fail:
8607 return NULL;
8608 }
8609
8610
8611 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8612 PyObject *resultobj = 0;
8613 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8614 bool result;
8615 void *argp1 = 0 ;
8616 int res1 = 0 ;
8617 PyObject *swig_obj[1] ;
8618
8619 if (!args) SWIG_fail;
8620 swig_obj[0] = args;
8621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8622 if (!SWIG_IsOK(res1)) {
8623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8624 }
8625 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8626 {
8627 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8628 if (PyErr_Occurred()) SWIG_fail;
8629 }
8630 {
8631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8632 }
8633 return resultobj;
8634 fail:
8635 return NULL;
8636 }
8637
8638
8639 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8640 PyObject *resultobj = 0;
8641 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8642 void *argp1 = 0 ;
8643 int res1 = 0 ;
8644 PyObject *swig_obj[1] ;
8645
8646 if (!args) SWIG_fail;
8647 swig_obj[0] = args;
8648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8649 if (!SWIG_IsOK(res1)) {
8650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8651 }
8652 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8653 {
8654 wxAlphaPixelData_Accessor_nextPixel(arg1);
8655 if (PyErr_Occurred()) SWIG_fail;
8656 }
8657 resultobj = SWIG_Py_Void();
8658 return resultobj;
8659 fail:
8660 return NULL;
8661 }
8662
8663
8664 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8665 PyObject *resultobj = 0;
8666 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8667 wxAlphaPixelData *arg2 = 0 ;
8668 int arg3 ;
8669 int arg4 ;
8670 void *argp1 = 0 ;
8671 int res1 = 0 ;
8672 void *argp2 = 0 ;
8673 int res2 = 0 ;
8674 int val3 ;
8675 int ecode3 = 0 ;
8676 int val4 ;
8677 int ecode4 = 0 ;
8678 PyObject * obj0 = 0 ;
8679 PyObject * obj1 = 0 ;
8680 PyObject * obj2 = 0 ;
8681 PyObject * obj3 = 0 ;
8682 char * kwnames[] = {
8683 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8684 };
8685
8686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8688 if (!SWIG_IsOK(res1)) {
8689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8690 }
8691 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8692 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8693 if (!SWIG_IsOK(res2)) {
8694 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8695 }
8696 if (!argp2) {
8697 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8698 }
8699 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8700 ecode3 = SWIG_AsVal_int(obj2, &val3);
8701 if (!SWIG_IsOK(ecode3)) {
8702 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8703 }
8704 arg3 = static_cast< int >(val3);
8705 ecode4 = SWIG_AsVal_int(obj3, &val4);
8706 if (!SWIG_IsOK(ecode4)) {
8707 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8708 }
8709 arg4 = static_cast< int >(val4);
8710 {
8711 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8712 if (PyErr_Occurred()) SWIG_fail;
8713 }
8714 resultobj = SWIG_Py_Void();
8715 return resultobj;
8716 fail:
8717 return NULL;
8718 }
8719
8720
8721 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8722 PyObject *resultobj = 0;
8723 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8724 wxAlphaPixelData *arg2 = 0 ;
8725 int arg3 ;
8726 void *argp1 = 0 ;
8727 int res1 = 0 ;
8728 void *argp2 = 0 ;
8729 int res2 = 0 ;
8730 int val3 ;
8731 int ecode3 = 0 ;
8732 PyObject * obj0 = 0 ;
8733 PyObject * obj1 = 0 ;
8734 PyObject * obj2 = 0 ;
8735 char * kwnames[] = {
8736 (char *) "self",(char *) "data",(char *) "x", NULL
8737 };
8738
8739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8741 if (!SWIG_IsOK(res1)) {
8742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8743 }
8744 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8745 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8746 if (!SWIG_IsOK(res2)) {
8747 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8748 }
8749 if (!argp2) {
8750 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8751 }
8752 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8753 ecode3 = SWIG_AsVal_int(obj2, &val3);
8754 if (!SWIG_IsOK(ecode3)) {
8755 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8756 }
8757 arg3 = static_cast< int >(val3);
8758 {
8759 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8760 if (PyErr_Occurred()) SWIG_fail;
8761 }
8762 resultobj = SWIG_Py_Void();
8763 return resultobj;
8764 fail:
8765 return NULL;
8766 }
8767
8768
8769 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8770 PyObject *resultobj = 0;
8771 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8772 wxAlphaPixelData *arg2 = 0 ;
8773 int arg3 ;
8774 void *argp1 = 0 ;
8775 int res1 = 0 ;
8776 void *argp2 = 0 ;
8777 int res2 = 0 ;
8778 int val3 ;
8779 int ecode3 = 0 ;
8780 PyObject * obj0 = 0 ;
8781 PyObject * obj1 = 0 ;
8782 PyObject * obj2 = 0 ;
8783 char * kwnames[] = {
8784 (char *) "self",(char *) "data",(char *) "y", NULL
8785 };
8786
8787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8789 if (!SWIG_IsOK(res1)) {
8790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8791 }
8792 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8793 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8794 if (!SWIG_IsOK(res2)) {
8795 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8796 }
8797 if (!argp2) {
8798 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8799 }
8800 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8801 ecode3 = SWIG_AsVal_int(obj2, &val3);
8802 if (!SWIG_IsOK(ecode3)) {
8803 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8804 }
8805 arg3 = static_cast< int >(val3);
8806 {
8807 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8808 if (PyErr_Occurred()) SWIG_fail;
8809 }
8810 resultobj = SWIG_Py_Void();
8811 return resultobj;
8812 fail:
8813 return NULL;
8814 }
8815
8816
8817 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8818 PyObject *resultobj = 0;
8819 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8820 wxAlphaPixelData *arg2 = 0 ;
8821 int arg3 ;
8822 int arg4 ;
8823 void *argp1 = 0 ;
8824 int res1 = 0 ;
8825 void *argp2 = 0 ;
8826 int res2 = 0 ;
8827 int val3 ;
8828 int ecode3 = 0 ;
8829 int val4 ;
8830 int ecode4 = 0 ;
8831 PyObject * obj0 = 0 ;
8832 PyObject * obj1 = 0 ;
8833 PyObject * obj2 = 0 ;
8834 PyObject * obj3 = 0 ;
8835 char * kwnames[] = {
8836 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8837 };
8838
8839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8841 if (!SWIG_IsOK(res1)) {
8842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8843 }
8844 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8845 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8846 if (!SWIG_IsOK(res2)) {
8847 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8848 }
8849 if (!argp2) {
8850 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8851 }
8852 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8853 ecode3 = SWIG_AsVal_int(obj2, &val3);
8854 if (!SWIG_IsOK(ecode3)) {
8855 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8856 }
8857 arg3 = static_cast< int >(val3);
8858 ecode4 = SWIG_AsVal_int(obj3, &val4);
8859 if (!SWIG_IsOK(ecode4)) {
8860 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8861 }
8862 arg4 = static_cast< int >(val4);
8863 {
8864 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8865 if (PyErr_Occurred()) SWIG_fail;
8866 }
8867 resultobj = SWIG_Py_Void();
8868 return resultobj;
8869 fail:
8870 return NULL;
8871 }
8872
8873
8874 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8875 PyObject *resultobj = 0;
8876 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8877 byte arg2 ;
8878 byte arg3 ;
8879 byte arg4 ;
8880 byte arg5 ;
8881 void *argp1 = 0 ;
8882 int res1 = 0 ;
8883 unsigned char val2 ;
8884 int ecode2 = 0 ;
8885 unsigned char val3 ;
8886 int ecode3 = 0 ;
8887 unsigned char val4 ;
8888 int ecode4 = 0 ;
8889 unsigned char val5 ;
8890 int ecode5 = 0 ;
8891 PyObject * obj0 = 0 ;
8892 PyObject * obj1 = 0 ;
8893 PyObject * obj2 = 0 ;
8894 PyObject * obj3 = 0 ;
8895 PyObject * obj4 = 0 ;
8896 char * kwnames[] = {
8897 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8898 };
8899
8900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8902 if (!SWIG_IsOK(res1)) {
8903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8904 }
8905 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8906 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8907 if (!SWIG_IsOK(ecode2)) {
8908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8909 }
8910 arg2 = static_cast< byte >(val2);
8911 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8912 if (!SWIG_IsOK(ecode3)) {
8913 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8914 }
8915 arg3 = static_cast< byte >(val3);
8916 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8917 if (!SWIG_IsOK(ecode4)) {
8918 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8919 }
8920 arg4 = static_cast< byte >(val4);
8921 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8922 if (!SWIG_IsOK(ecode5)) {
8923 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8924 }
8925 arg5 = static_cast< byte >(val5);
8926 {
8927 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8928 if (PyErr_Occurred()) SWIG_fail;
8929 }
8930 resultobj = SWIG_Py_Void();
8931 return resultobj;
8932 fail:
8933 return NULL;
8934 }
8935
8936
8937 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8938 PyObject *resultobj = 0;
8939 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8940 PyObject *result = 0 ;
8941 void *argp1 = 0 ;
8942 int res1 = 0 ;
8943 PyObject *swig_obj[1] ;
8944
8945 if (!args) SWIG_fail;
8946 swig_obj[0] = args;
8947 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8948 if (!SWIG_IsOK(res1)) {
8949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8950 }
8951 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8952 {
8953 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
8954 if (PyErr_Occurred()) SWIG_fail;
8955 }
8956 resultobj = result;
8957 return resultobj;
8958 fail:
8959 return NULL;
8960 }
8961
8962
8963 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8964 PyObject *obj;
8965 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8966 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
8967 return SWIG_Py_Void();
8968 }
8969
8970 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8971 return SWIG_Python_InitShadowInstance(args);
8972 }
8973
8974 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8975 PyObject *resultobj = 0;
8976 wxBitmap *arg1 = 0 ;
8977 wxColour const &arg2_defvalue = wxNullColour ;
8978 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8979 wxMask *result = 0 ;
8980 void *argp1 = 0 ;
8981 int res1 = 0 ;
8982 wxColour temp2 ;
8983 PyObject * obj0 = 0 ;
8984 PyObject * obj1 = 0 ;
8985 char * kwnames[] = {
8986 (char *) "bitmap",(char *) "colour", NULL
8987 };
8988
8989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8990 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8991 if (!SWIG_IsOK(res1)) {
8992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8993 }
8994 if (!argp1) {
8995 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8996 }
8997 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8998 if (obj1) {
8999 {
9000 arg2 = &temp2;
9001 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
9002 }
9003 }
9004 {
9005 if (!wxPyCheckForApp()) SWIG_fail;
9006 PyThreadState* __tstate = wxPyBeginAllowThreads();
9007 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
9008 wxPyEndAllowThreads(__tstate);
9009 if (PyErr_Occurred()) SWIG_fail;
9010 }
9011 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
9012 return resultobj;
9013 fail:
9014 return NULL;
9015 }
9016
9017
9018 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9019 PyObject *resultobj = 0;
9020 wxMask *arg1 = (wxMask *) 0 ;
9021 void *argp1 = 0 ;
9022 int res1 = 0 ;
9023 PyObject *swig_obj[1] ;
9024
9025 if (!args) SWIG_fail;
9026 swig_obj[0] = args;
9027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
9028 if (!SWIG_IsOK(res1)) {
9029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
9030 }
9031 arg1 = reinterpret_cast< wxMask * >(argp1);
9032 {
9033 delete arg1;
9034
9035 if (PyErr_Occurred()) SWIG_fail;
9036 }
9037 resultobj = SWIG_Py_Void();
9038 return resultobj;
9039 fail:
9040 return NULL;
9041 }
9042
9043
9044 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9045 PyObject *obj;
9046 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9047 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9048 return SWIG_Py_Void();
9049 }
9050
9051 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9052 return SWIG_Python_InitShadowInstance(args);
9053 }
9054
9055 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9056 PyObject *resultobj = 0;
9057 wxString *arg1 = 0 ;
9058 wxBitmapType arg2 ;
9059 int arg3 = (int) -1 ;
9060 int arg4 = (int) -1 ;
9061 wxIcon *result = 0 ;
9062 bool temp1 = false ;
9063 int val2 ;
9064 int ecode2 = 0 ;
9065 int val3 ;
9066 int ecode3 = 0 ;
9067 int val4 ;
9068 int ecode4 = 0 ;
9069 PyObject * obj0 = 0 ;
9070 PyObject * obj1 = 0 ;
9071 PyObject * obj2 = 0 ;
9072 PyObject * obj3 = 0 ;
9073 char * kwnames[] = {
9074 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9075 };
9076
9077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9078 {
9079 arg1 = wxString_in_helper(obj0);
9080 if (arg1 == NULL) SWIG_fail;
9081 temp1 = true;
9082 }
9083 ecode2 = SWIG_AsVal_int(obj1, &val2);
9084 if (!SWIG_IsOK(ecode2)) {
9085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9086 }
9087 arg2 = static_cast< wxBitmapType >(val2);
9088 if (obj2) {
9089 ecode3 = SWIG_AsVal_int(obj2, &val3);
9090 if (!SWIG_IsOK(ecode3)) {
9091 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9092 }
9093 arg3 = static_cast< int >(val3);
9094 }
9095 if (obj3) {
9096 ecode4 = SWIG_AsVal_int(obj3, &val4);
9097 if (!SWIG_IsOK(ecode4)) {
9098 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9099 }
9100 arg4 = static_cast< int >(val4);
9101 }
9102 {
9103 if (!wxPyCheckForApp()) SWIG_fail;
9104 PyThreadState* __tstate = wxPyBeginAllowThreads();
9105 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9106 wxPyEndAllowThreads(__tstate);
9107 if (PyErr_Occurred()) SWIG_fail;
9108 }
9109 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9110 {
9111 if (temp1)
9112 delete arg1;
9113 }
9114 return resultobj;
9115 fail:
9116 {
9117 if (temp1)
9118 delete arg1;
9119 }
9120 return NULL;
9121 }
9122
9123
9124 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9125 PyObject *resultobj = 0;
9126 wxIcon *arg1 = (wxIcon *) 0 ;
9127 void *argp1 = 0 ;
9128 int res1 = 0 ;
9129 PyObject *swig_obj[1] ;
9130
9131 if (!args) SWIG_fail;
9132 swig_obj[0] = args;
9133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9134 if (!SWIG_IsOK(res1)) {
9135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9136 }
9137 arg1 = reinterpret_cast< wxIcon * >(argp1);
9138 {
9139 PyThreadState* __tstate = wxPyBeginAllowThreads();
9140 delete arg1;
9141
9142 wxPyEndAllowThreads(__tstate);
9143 if (PyErr_Occurred()) SWIG_fail;
9144 }
9145 resultobj = SWIG_Py_Void();
9146 return resultobj;
9147 fail:
9148 return NULL;
9149 }
9150
9151
9152 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9153 PyObject *resultobj = 0;
9154 wxIcon *result = 0 ;
9155
9156 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9157 {
9158 if (!wxPyCheckForApp()) SWIG_fail;
9159 PyThreadState* __tstate = wxPyBeginAllowThreads();
9160 result = (wxIcon *)new wxIcon();
9161 wxPyEndAllowThreads(__tstate);
9162 if (PyErr_Occurred()) SWIG_fail;
9163 }
9164 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9165 return resultobj;
9166 fail:
9167 return NULL;
9168 }
9169
9170
9171 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9172 PyObject *resultobj = 0;
9173 wxIconLocation *arg1 = 0 ;
9174 wxIcon *result = 0 ;
9175 void *argp1 = 0 ;
9176 int res1 = 0 ;
9177 PyObject * obj0 = 0 ;
9178 char * kwnames[] = {
9179 (char *) "loc", NULL
9180 };
9181
9182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9183 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9184 if (!SWIG_IsOK(res1)) {
9185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9186 }
9187 if (!argp1) {
9188 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9189 }
9190 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9191 {
9192 if (!wxPyCheckForApp()) SWIG_fail;
9193 PyThreadState* __tstate = wxPyBeginAllowThreads();
9194 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9195 wxPyEndAllowThreads(__tstate);
9196 if (PyErr_Occurred()) SWIG_fail;
9197 }
9198 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9199 return resultobj;
9200 fail:
9201 return NULL;
9202 }
9203
9204
9205 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9206 PyObject *resultobj = 0;
9207 wxBitmap *arg1 = 0 ;
9208 wxIcon *result = 0 ;
9209 void *argp1 = 0 ;
9210 int res1 = 0 ;
9211 PyObject * obj0 = 0 ;
9212 char * kwnames[] = {
9213 (char *) "bmp", NULL
9214 };
9215
9216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9217 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9218 if (!SWIG_IsOK(res1)) {
9219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9220 }
9221 if (!argp1) {
9222 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9223 }
9224 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9225 {
9226 if (!wxPyCheckForApp()) SWIG_fail;
9227 PyThreadState* __tstate = wxPyBeginAllowThreads();
9228 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9229 wxPyEndAllowThreads(__tstate);
9230 if (PyErr_Occurred()) SWIG_fail;
9231 }
9232 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9233 return resultobj;
9234 fail:
9235 return NULL;
9236 }
9237
9238
9239 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9240 PyObject *resultobj = 0;
9241 PyObject *arg1 = (PyObject *) 0 ;
9242 wxIcon *result = 0 ;
9243 PyObject * obj0 = 0 ;
9244 char * kwnames[] = {
9245 (char *) "listOfStrings", NULL
9246 };
9247
9248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9249 arg1 = obj0;
9250 {
9251 if (!wxPyCheckForApp()) SWIG_fail;
9252 PyThreadState* __tstate = wxPyBeginAllowThreads();
9253 result = (wxIcon *)new_wxIcon(arg1);
9254 wxPyEndAllowThreads(__tstate);
9255 if (PyErr_Occurred()) SWIG_fail;
9256 }
9257 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9258 return resultobj;
9259 fail:
9260 return NULL;
9261 }
9262
9263
9264 SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9265 PyObject *resultobj = 0;
9266 wxIcon *arg1 = (wxIcon *) 0 ;
9267 bool result;
9268 void *argp1 = 0 ;
9269 int res1 = 0 ;
9270 PyObject *swig_obj[1] ;
9271
9272 if (!args) SWIG_fail;
9273 swig_obj[0] = args;
9274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9275 if (!SWIG_IsOK(res1)) {
9276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
9277 }
9278 arg1 = reinterpret_cast< wxIcon * >(argp1);
9279 {
9280 PyThreadState* __tstate = wxPyBeginAllowThreads();
9281 result = (bool)(arg1)->IsOk();
9282 wxPyEndAllowThreads(__tstate);
9283 if (PyErr_Occurred()) SWIG_fail;
9284 }
9285 {
9286 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9287 }
9288 return resultobj;
9289 fail:
9290 return NULL;
9291 }
9292
9293
9294 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9295 PyObject *resultobj = 0;
9296 wxIcon *arg1 = (wxIcon *) 0 ;
9297 int result;
9298 void *argp1 = 0 ;
9299 int res1 = 0 ;
9300 PyObject *swig_obj[1] ;
9301
9302 if (!args) SWIG_fail;
9303 swig_obj[0] = args;
9304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9305 if (!SWIG_IsOK(res1)) {
9306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9307 }
9308 arg1 = reinterpret_cast< wxIcon * >(argp1);
9309 {
9310 PyThreadState* __tstate = wxPyBeginAllowThreads();
9311 result = (int)(arg1)->GetWidth();
9312 wxPyEndAllowThreads(__tstate);
9313 if (PyErr_Occurred()) SWIG_fail;
9314 }
9315 resultobj = SWIG_From_int(static_cast< int >(result));
9316 return resultobj;
9317 fail:
9318 return NULL;
9319 }
9320
9321
9322 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9323 PyObject *resultobj = 0;
9324 wxIcon *arg1 = (wxIcon *) 0 ;
9325 int result;
9326 void *argp1 = 0 ;
9327 int res1 = 0 ;
9328 PyObject *swig_obj[1] ;
9329
9330 if (!args) SWIG_fail;
9331 swig_obj[0] = args;
9332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9333 if (!SWIG_IsOK(res1)) {
9334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9335 }
9336 arg1 = reinterpret_cast< wxIcon * >(argp1);
9337 {
9338 PyThreadState* __tstate = wxPyBeginAllowThreads();
9339 result = (int)(arg1)->GetHeight();
9340 wxPyEndAllowThreads(__tstate);
9341 if (PyErr_Occurred()) SWIG_fail;
9342 }
9343 resultobj = SWIG_From_int(static_cast< int >(result));
9344 return resultobj;
9345 fail:
9346 return NULL;
9347 }
9348
9349
9350 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9351 PyObject *resultobj = 0;
9352 wxIcon *arg1 = (wxIcon *) 0 ;
9353 int result;
9354 void *argp1 = 0 ;
9355 int res1 = 0 ;
9356 PyObject *swig_obj[1] ;
9357
9358 if (!args) SWIG_fail;
9359 swig_obj[0] = args;
9360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9361 if (!SWIG_IsOK(res1)) {
9362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9363 }
9364 arg1 = reinterpret_cast< wxIcon * >(argp1);
9365 {
9366 PyThreadState* __tstate = wxPyBeginAllowThreads();
9367 result = (int)(arg1)->GetDepth();
9368 wxPyEndAllowThreads(__tstate);
9369 if (PyErr_Occurred()) SWIG_fail;
9370 }
9371 resultobj = SWIG_From_int(static_cast< int >(result));
9372 return resultobj;
9373 fail:
9374 return NULL;
9375 }
9376
9377
9378 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9379 PyObject *resultobj = 0;
9380 wxIcon *arg1 = (wxIcon *) 0 ;
9381 int arg2 ;
9382 void *argp1 = 0 ;
9383 int res1 = 0 ;
9384 int val2 ;
9385 int ecode2 = 0 ;
9386 PyObject * obj0 = 0 ;
9387 PyObject * obj1 = 0 ;
9388 char * kwnames[] = {
9389 (char *) "self",(char *) "w", NULL
9390 };
9391
9392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9394 if (!SWIG_IsOK(res1)) {
9395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9396 }
9397 arg1 = reinterpret_cast< wxIcon * >(argp1);
9398 ecode2 = SWIG_AsVal_int(obj1, &val2);
9399 if (!SWIG_IsOK(ecode2)) {
9400 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9401 }
9402 arg2 = static_cast< int >(val2);
9403 {
9404 PyThreadState* __tstate = wxPyBeginAllowThreads();
9405 (arg1)->SetWidth(arg2);
9406 wxPyEndAllowThreads(__tstate);
9407 if (PyErr_Occurred()) SWIG_fail;
9408 }
9409 resultobj = SWIG_Py_Void();
9410 return resultobj;
9411 fail:
9412 return NULL;
9413 }
9414
9415
9416 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9417 PyObject *resultobj = 0;
9418 wxIcon *arg1 = (wxIcon *) 0 ;
9419 int arg2 ;
9420 void *argp1 = 0 ;
9421 int res1 = 0 ;
9422 int val2 ;
9423 int ecode2 = 0 ;
9424 PyObject * obj0 = 0 ;
9425 PyObject * obj1 = 0 ;
9426 char * kwnames[] = {
9427 (char *) "self",(char *) "h", NULL
9428 };
9429
9430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9432 if (!SWIG_IsOK(res1)) {
9433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9434 }
9435 arg1 = reinterpret_cast< wxIcon * >(argp1);
9436 ecode2 = SWIG_AsVal_int(obj1, &val2);
9437 if (!SWIG_IsOK(ecode2)) {
9438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9439 }
9440 arg2 = static_cast< int >(val2);
9441 {
9442 PyThreadState* __tstate = wxPyBeginAllowThreads();
9443 (arg1)->SetHeight(arg2);
9444 wxPyEndAllowThreads(__tstate);
9445 if (PyErr_Occurred()) SWIG_fail;
9446 }
9447 resultobj = SWIG_Py_Void();
9448 return resultobj;
9449 fail:
9450 return NULL;
9451 }
9452
9453
9454 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9455 PyObject *resultobj = 0;
9456 wxIcon *arg1 = (wxIcon *) 0 ;
9457 int arg2 ;
9458 void *argp1 = 0 ;
9459 int res1 = 0 ;
9460 int val2 ;
9461 int ecode2 = 0 ;
9462 PyObject * obj0 = 0 ;
9463 PyObject * obj1 = 0 ;
9464 char * kwnames[] = {
9465 (char *) "self",(char *) "d", NULL
9466 };
9467
9468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9470 if (!SWIG_IsOK(res1)) {
9471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9472 }
9473 arg1 = reinterpret_cast< wxIcon * >(argp1);
9474 ecode2 = SWIG_AsVal_int(obj1, &val2);
9475 if (!SWIG_IsOK(ecode2)) {
9476 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9477 }
9478 arg2 = static_cast< int >(val2);
9479 {
9480 PyThreadState* __tstate = wxPyBeginAllowThreads();
9481 (arg1)->SetDepth(arg2);
9482 wxPyEndAllowThreads(__tstate);
9483 if (PyErr_Occurred()) SWIG_fail;
9484 }
9485 resultobj = SWIG_Py_Void();
9486 return resultobj;
9487 fail:
9488 return NULL;
9489 }
9490
9491
9492 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9493 PyObject *resultobj = 0;
9494 wxIcon *arg1 = (wxIcon *) 0 ;
9495 wxBitmap *arg2 = 0 ;
9496 void *argp1 = 0 ;
9497 int res1 = 0 ;
9498 void *argp2 = 0 ;
9499 int res2 = 0 ;
9500 PyObject * obj0 = 0 ;
9501 PyObject * obj1 = 0 ;
9502 char * kwnames[] = {
9503 (char *) "self",(char *) "bmp", NULL
9504 };
9505
9506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9508 if (!SWIG_IsOK(res1)) {
9509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9510 }
9511 arg1 = reinterpret_cast< wxIcon * >(argp1);
9512 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9513 if (!SWIG_IsOK(res2)) {
9514 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9515 }
9516 if (!argp2) {
9517 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9518 }
9519 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9520 {
9521 PyThreadState* __tstate = wxPyBeginAllowThreads();
9522 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9523 wxPyEndAllowThreads(__tstate);
9524 if (PyErr_Occurred()) SWIG_fail;
9525 }
9526 resultobj = SWIG_Py_Void();
9527 return resultobj;
9528 fail:
9529 return NULL;
9530 }
9531
9532
9533 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9534 PyObject *obj;
9535 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9536 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9537 return SWIG_Py_Void();
9538 }
9539
9540 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9541 return SWIG_Python_InitShadowInstance(args);
9542 }
9543
9544 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9545 PyObject *resultobj = 0;
9546 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9547 int arg2 = (int) 0 ;
9548 wxIconLocation *result = 0 ;
9549 bool temp1 = false ;
9550 int val2 ;
9551 int ecode2 = 0 ;
9552 PyObject * obj0 = 0 ;
9553 PyObject * obj1 = 0 ;
9554 char * kwnames[] = {
9555 (char *) "filename",(char *) "num", NULL
9556 };
9557
9558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9559 if (obj0) {
9560 {
9561 arg1 = wxString_in_helper(obj0);
9562 if (arg1 == NULL) SWIG_fail;
9563 temp1 = true;
9564 }
9565 }
9566 if (obj1) {
9567 ecode2 = SWIG_AsVal_int(obj1, &val2);
9568 if (!SWIG_IsOK(ecode2)) {
9569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9570 }
9571 arg2 = static_cast< int >(val2);
9572 }
9573 {
9574 PyThreadState* __tstate = wxPyBeginAllowThreads();
9575 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9576 wxPyEndAllowThreads(__tstate);
9577 if (PyErr_Occurred()) SWIG_fail;
9578 }
9579 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9580 {
9581 if (temp1)
9582 delete arg1;
9583 }
9584 return resultobj;
9585 fail:
9586 {
9587 if (temp1)
9588 delete arg1;
9589 }
9590 return NULL;
9591 }
9592
9593
9594 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9595 PyObject *resultobj = 0;
9596 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9597 void *argp1 = 0 ;
9598 int res1 = 0 ;
9599 PyObject *swig_obj[1] ;
9600
9601 if (!args) SWIG_fail;
9602 swig_obj[0] = args;
9603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9604 if (!SWIG_IsOK(res1)) {
9605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9606 }
9607 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9608 {
9609 PyThreadState* __tstate = wxPyBeginAllowThreads();
9610 delete arg1;
9611
9612 wxPyEndAllowThreads(__tstate);
9613 if (PyErr_Occurred()) SWIG_fail;
9614 }
9615 resultobj = SWIG_Py_Void();
9616 return resultobj;
9617 fail:
9618 return NULL;
9619 }
9620
9621
9622 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9623 PyObject *resultobj = 0;
9624 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9625 bool result;
9626 void *argp1 = 0 ;
9627 int res1 = 0 ;
9628 PyObject *swig_obj[1] ;
9629
9630 if (!args) SWIG_fail;
9631 swig_obj[0] = args;
9632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9633 if (!SWIG_IsOK(res1)) {
9634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9635 }
9636 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9637 {
9638 PyThreadState* __tstate = wxPyBeginAllowThreads();
9639 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9640 wxPyEndAllowThreads(__tstate);
9641 if (PyErr_Occurred()) SWIG_fail;
9642 }
9643 {
9644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9645 }
9646 return resultobj;
9647 fail:
9648 return NULL;
9649 }
9650
9651
9652 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9653 PyObject *resultobj = 0;
9654 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9655 wxString *arg2 = 0 ;
9656 void *argp1 = 0 ;
9657 int res1 = 0 ;
9658 bool temp2 = false ;
9659 PyObject * obj0 = 0 ;
9660 PyObject * obj1 = 0 ;
9661 char * kwnames[] = {
9662 (char *) "self",(char *) "filename", NULL
9663 };
9664
9665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9667 if (!SWIG_IsOK(res1)) {
9668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9669 }
9670 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9671 {
9672 arg2 = wxString_in_helper(obj1);
9673 if (arg2 == NULL) SWIG_fail;
9674 temp2 = true;
9675 }
9676 {
9677 PyThreadState* __tstate = wxPyBeginAllowThreads();
9678 (arg1)->SetFileName((wxString const &)*arg2);
9679 wxPyEndAllowThreads(__tstate);
9680 if (PyErr_Occurred()) SWIG_fail;
9681 }
9682 resultobj = SWIG_Py_Void();
9683 {
9684 if (temp2)
9685 delete arg2;
9686 }
9687 return resultobj;
9688 fail:
9689 {
9690 if (temp2)
9691 delete arg2;
9692 }
9693 return NULL;
9694 }
9695
9696
9697 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9698 PyObject *resultobj = 0;
9699 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9700 wxString *result = 0 ;
9701 void *argp1 = 0 ;
9702 int res1 = 0 ;
9703 PyObject *swig_obj[1] ;
9704
9705 if (!args) SWIG_fail;
9706 swig_obj[0] = args;
9707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9708 if (!SWIG_IsOK(res1)) {
9709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9710 }
9711 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9712 {
9713 PyThreadState* __tstate = wxPyBeginAllowThreads();
9714 {
9715 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9716 result = (wxString *) &_result_ref;
9717 }
9718 wxPyEndAllowThreads(__tstate);
9719 if (PyErr_Occurred()) SWIG_fail;
9720 }
9721 {
9722 #if wxUSE_UNICODE
9723 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9724 #else
9725 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9726 #endif
9727 }
9728 return resultobj;
9729 fail:
9730 return NULL;
9731 }
9732
9733
9734 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9735 PyObject *resultobj = 0;
9736 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9737 int arg2 ;
9738 void *argp1 = 0 ;
9739 int res1 = 0 ;
9740 int val2 ;
9741 int ecode2 = 0 ;
9742 PyObject * obj0 = 0 ;
9743 PyObject * obj1 = 0 ;
9744 char * kwnames[] = {
9745 (char *) "self",(char *) "num", NULL
9746 };
9747
9748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9750 if (!SWIG_IsOK(res1)) {
9751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9752 }
9753 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9754 ecode2 = SWIG_AsVal_int(obj1, &val2);
9755 if (!SWIG_IsOK(ecode2)) {
9756 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9757 }
9758 arg2 = static_cast< int >(val2);
9759 {
9760 PyThreadState* __tstate = wxPyBeginAllowThreads();
9761 wxIconLocation_SetIndex(arg1,arg2);
9762 wxPyEndAllowThreads(__tstate);
9763 if (PyErr_Occurred()) SWIG_fail;
9764 }
9765 resultobj = SWIG_Py_Void();
9766 return resultobj;
9767 fail:
9768 return NULL;
9769 }
9770
9771
9772 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9773 PyObject *resultobj = 0;
9774 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9775 int result;
9776 void *argp1 = 0 ;
9777 int res1 = 0 ;
9778 PyObject *swig_obj[1] ;
9779
9780 if (!args) SWIG_fail;
9781 swig_obj[0] = args;
9782 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9783 if (!SWIG_IsOK(res1)) {
9784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9785 }
9786 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9787 {
9788 PyThreadState* __tstate = wxPyBeginAllowThreads();
9789 result = (int)wxIconLocation_GetIndex(arg1);
9790 wxPyEndAllowThreads(__tstate);
9791 if (PyErr_Occurred()) SWIG_fail;
9792 }
9793 resultobj = SWIG_From_int(static_cast< int >(result));
9794 return resultobj;
9795 fail:
9796 return NULL;
9797 }
9798
9799
9800 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9801 PyObject *obj;
9802 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9803 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9804 return SWIG_Py_Void();
9805 }
9806
9807 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9808 return SWIG_Python_InitShadowInstance(args);
9809 }
9810
9811 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9812 PyObject *resultobj = 0;
9813 wxIconBundle *result = 0 ;
9814
9815 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9816 {
9817 PyThreadState* __tstate = wxPyBeginAllowThreads();
9818 result = (wxIconBundle *)new wxIconBundle();
9819 wxPyEndAllowThreads(__tstate);
9820 if (PyErr_Occurred()) SWIG_fail;
9821 }
9822 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9823 return resultobj;
9824 fail:
9825 return NULL;
9826 }
9827
9828
9829 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9830 PyObject *resultobj = 0;
9831 wxString *arg1 = 0 ;
9832 long arg2 ;
9833 wxIconBundle *result = 0 ;
9834 bool temp1 = false ;
9835 long val2 ;
9836 int ecode2 = 0 ;
9837 PyObject * obj0 = 0 ;
9838 PyObject * obj1 = 0 ;
9839 char * kwnames[] = {
9840 (char *) "file",(char *) "type", NULL
9841 };
9842
9843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9844 {
9845 arg1 = wxString_in_helper(obj0);
9846 if (arg1 == NULL) SWIG_fail;
9847 temp1 = true;
9848 }
9849 ecode2 = SWIG_AsVal_long(obj1, &val2);
9850 if (!SWIG_IsOK(ecode2)) {
9851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9852 }
9853 arg2 = static_cast< long >(val2);
9854 {
9855 PyThreadState* __tstate = wxPyBeginAllowThreads();
9856 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9857 wxPyEndAllowThreads(__tstate);
9858 if (PyErr_Occurred()) SWIG_fail;
9859 }
9860 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9861 {
9862 if (temp1)
9863 delete arg1;
9864 }
9865 return resultobj;
9866 fail:
9867 {
9868 if (temp1)
9869 delete arg1;
9870 }
9871 return NULL;
9872 }
9873
9874
9875 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9876 PyObject *resultobj = 0;
9877 wxIcon *arg1 = 0 ;
9878 wxIconBundle *result = 0 ;
9879 void *argp1 = 0 ;
9880 int res1 = 0 ;
9881 PyObject * obj0 = 0 ;
9882 char * kwnames[] = {
9883 (char *) "icon", NULL
9884 };
9885
9886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9887 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9888 if (!SWIG_IsOK(res1)) {
9889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9890 }
9891 if (!argp1) {
9892 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9893 }
9894 arg1 = reinterpret_cast< wxIcon * >(argp1);
9895 {
9896 PyThreadState* __tstate = wxPyBeginAllowThreads();
9897 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9898 wxPyEndAllowThreads(__tstate);
9899 if (PyErr_Occurred()) SWIG_fail;
9900 }
9901 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9902 return resultobj;
9903 fail:
9904 return NULL;
9905 }
9906
9907
9908 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9909 PyObject *resultobj = 0;
9910 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9911 void *argp1 = 0 ;
9912 int res1 = 0 ;
9913 PyObject *swig_obj[1] ;
9914
9915 if (!args) SWIG_fail;
9916 swig_obj[0] = args;
9917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9918 if (!SWIG_IsOK(res1)) {
9919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9920 }
9921 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9922 {
9923 PyThreadState* __tstate = wxPyBeginAllowThreads();
9924 delete arg1;
9925
9926 wxPyEndAllowThreads(__tstate);
9927 if (PyErr_Occurred()) SWIG_fail;
9928 }
9929 resultobj = SWIG_Py_Void();
9930 return resultobj;
9931 fail:
9932 return NULL;
9933 }
9934
9935
9936 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9937 PyObject *resultobj = 0;
9938 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9939 wxIcon *arg2 = 0 ;
9940 void *argp1 = 0 ;
9941 int res1 = 0 ;
9942 void *argp2 = 0 ;
9943 int res2 = 0 ;
9944 PyObject * obj0 = 0 ;
9945 PyObject * obj1 = 0 ;
9946 char * kwnames[] = {
9947 (char *) "self",(char *) "icon", NULL
9948 };
9949
9950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9952 if (!SWIG_IsOK(res1)) {
9953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9954 }
9955 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9956 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9957 if (!SWIG_IsOK(res2)) {
9958 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9959 }
9960 if (!argp2) {
9961 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9962 }
9963 arg2 = reinterpret_cast< wxIcon * >(argp2);
9964 {
9965 PyThreadState* __tstate = wxPyBeginAllowThreads();
9966 (arg1)->AddIcon((wxIcon const &)*arg2);
9967 wxPyEndAllowThreads(__tstate);
9968 if (PyErr_Occurred()) SWIG_fail;
9969 }
9970 resultobj = SWIG_Py_Void();
9971 return resultobj;
9972 fail:
9973 return NULL;
9974 }
9975
9976
9977 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9978 PyObject *resultobj = 0;
9979 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9980 wxString *arg2 = 0 ;
9981 long arg3 ;
9982 void *argp1 = 0 ;
9983 int res1 = 0 ;
9984 bool temp2 = false ;
9985 long val3 ;
9986 int ecode3 = 0 ;
9987 PyObject * obj0 = 0 ;
9988 PyObject * obj1 = 0 ;
9989 PyObject * obj2 = 0 ;
9990 char * kwnames[] = {
9991 (char *) "self",(char *) "file",(char *) "type", NULL
9992 };
9993
9994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9996 if (!SWIG_IsOK(res1)) {
9997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9998 }
9999 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10000 {
10001 arg2 = wxString_in_helper(obj1);
10002 if (arg2 == NULL) SWIG_fail;
10003 temp2 = true;
10004 }
10005 ecode3 = SWIG_AsVal_long(obj2, &val3);
10006 if (!SWIG_IsOK(ecode3)) {
10007 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10008 }
10009 arg3 = static_cast< long >(val3);
10010 {
10011 PyThreadState* __tstate = wxPyBeginAllowThreads();
10012 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10013 wxPyEndAllowThreads(__tstate);
10014 if (PyErr_Occurred()) SWIG_fail;
10015 }
10016 resultobj = SWIG_Py_Void();
10017 {
10018 if (temp2)
10019 delete arg2;
10020 }
10021 return resultobj;
10022 fail:
10023 {
10024 if (temp2)
10025 delete arg2;
10026 }
10027 return NULL;
10028 }
10029
10030
10031 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10032 PyObject *resultobj = 0;
10033 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10034 wxSize *arg2 = 0 ;
10035 wxIcon *result = 0 ;
10036 void *argp1 = 0 ;
10037 int res1 = 0 ;
10038 wxSize temp2 ;
10039 PyObject * obj0 = 0 ;
10040 PyObject * obj1 = 0 ;
10041 char * kwnames[] = {
10042 (char *) "self",(char *) "size", NULL
10043 };
10044
10045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10047 if (!SWIG_IsOK(res1)) {
10048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10049 }
10050 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10051 {
10052 arg2 = &temp2;
10053 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10054 }
10055 {
10056 PyThreadState* __tstate = wxPyBeginAllowThreads();
10057 {
10058 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10059 result = (wxIcon *) &_result_ref;
10060 }
10061 wxPyEndAllowThreads(__tstate);
10062 if (PyErr_Occurred()) SWIG_fail;
10063 }
10064 {
10065 wxIcon* resultptr = new wxIcon(*result);
10066 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10067 }
10068 return resultobj;
10069 fail:
10070 return NULL;
10071 }
10072
10073
10074 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10075 PyObject *obj;
10076 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10077 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10078 return SWIG_Py_Void();
10079 }
10080
10081 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10082 return SWIG_Python_InitShadowInstance(args);
10083 }
10084
10085 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10086 PyObject *resultobj = 0;
10087 wxString *arg1 = 0 ;
10088 long arg2 ;
10089 int arg3 = (int) 0 ;
10090 int arg4 = (int) 0 ;
10091 wxCursor *result = 0 ;
10092 bool temp1 = false ;
10093 long val2 ;
10094 int ecode2 = 0 ;
10095 int val3 ;
10096 int ecode3 = 0 ;
10097 int val4 ;
10098 int ecode4 = 0 ;
10099 PyObject * obj0 = 0 ;
10100 PyObject * obj1 = 0 ;
10101 PyObject * obj2 = 0 ;
10102 PyObject * obj3 = 0 ;
10103 char * kwnames[] = {
10104 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10105 };
10106
10107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10108 {
10109 arg1 = wxString_in_helper(obj0);
10110 if (arg1 == NULL) SWIG_fail;
10111 temp1 = true;
10112 }
10113 ecode2 = SWIG_AsVal_long(obj1, &val2);
10114 if (!SWIG_IsOK(ecode2)) {
10115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10116 }
10117 arg2 = static_cast< long >(val2);
10118 if (obj2) {
10119 ecode3 = SWIG_AsVal_int(obj2, &val3);
10120 if (!SWIG_IsOK(ecode3)) {
10121 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10122 }
10123 arg3 = static_cast< int >(val3);
10124 }
10125 if (obj3) {
10126 ecode4 = SWIG_AsVal_int(obj3, &val4);
10127 if (!SWIG_IsOK(ecode4)) {
10128 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10129 }
10130 arg4 = static_cast< int >(val4);
10131 }
10132 {
10133 if (!wxPyCheckForApp()) SWIG_fail;
10134 PyThreadState* __tstate = wxPyBeginAllowThreads();
10135 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10136 wxPyEndAllowThreads(__tstate);
10137 if (PyErr_Occurred()) SWIG_fail;
10138 }
10139 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10140 {
10141 if (temp1)
10142 delete arg1;
10143 }
10144 return resultobj;
10145 fail:
10146 {
10147 if (temp1)
10148 delete arg1;
10149 }
10150 return NULL;
10151 }
10152
10153
10154 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10155 PyObject *resultobj = 0;
10156 wxCursor *arg1 = (wxCursor *) 0 ;
10157 void *argp1 = 0 ;
10158 int res1 = 0 ;
10159 PyObject *swig_obj[1] ;
10160
10161 if (!args) SWIG_fail;
10162 swig_obj[0] = args;
10163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10164 if (!SWIG_IsOK(res1)) {
10165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10166 }
10167 arg1 = reinterpret_cast< wxCursor * >(argp1);
10168 {
10169 PyThreadState* __tstate = wxPyBeginAllowThreads();
10170 delete arg1;
10171
10172 wxPyEndAllowThreads(__tstate);
10173 if (PyErr_Occurred()) SWIG_fail;
10174 }
10175 resultobj = SWIG_Py_Void();
10176 return resultobj;
10177 fail:
10178 return NULL;
10179 }
10180
10181
10182 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10183 PyObject *resultobj = 0;
10184 int arg1 ;
10185 wxCursor *result = 0 ;
10186 int val1 ;
10187 int ecode1 = 0 ;
10188 PyObject * obj0 = 0 ;
10189 char * kwnames[] = {
10190 (char *) "id", NULL
10191 };
10192
10193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10194 ecode1 = SWIG_AsVal_int(obj0, &val1);
10195 if (!SWIG_IsOK(ecode1)) {
10196 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10197 }
10198 arg1 = static_cast< int >(val1);
10199 {
10200 if (!wxPyCheckForApp()) SWIG_fail;
10201 PyThreadState* __tstate = wxPyBeginAllowThreads();
10202 result = (wxCursor *)new wxCursor(arg1);
10203 wxPyEndAllowThreads(__tstate);
10204 if (PyErr_Occurred()) SWIG_fail;
10205 }
10206 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10207 return resultobj;
10208 fail:
10209 return NULL;
10210 }
10211
10212
10213 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10214 PyObject *resultobj = 0;
10215 wxImage *arg1 = 0 ;
10216 wxCursor *result = 0 ;
10217 void *argp1 = 0 ;
10218 int res1 = 0 ;
10219 PyObject * obj0 = 0 ;
10220 char * kwnames[] = {
10221 (char *) "image", NULL
10222 };
10223
10224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10225 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10226 if (!SWIG_IsOK(res1)) {
10227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10228 }
10229 if (!argp1) {
10230 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10231 }
10232 arg1 = reinterpret_cast< wxImage * >(argp1);
10233 {
10234 if (!wxPyCheckForApp()) SWIG_fail;
10235 PyThreadState* __tstate = wxPyBeginAllowThreads();
10236 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10237 wxPyEndAllowThreads(__tstate);
10238 if (PyErr_Occurred()) SWIG_fail;
10239 }
10240 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10241 return resultobj;
10242 fail:
10243 return NULL;
10244 }
10245
10246
10247 SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10248 PyObject *resultobj = 0;
10249 wxCursor *arg1 = (wxCursor *) 0 ;
10250 bool result;
10251 void *argp1 = 0 ;
10252 int res1 = 0 ;
10253 PyObject *swig_obj[1] ;
10254
10255 if (!args) SWIG_fail;
10256 swig_obj[0] = args;
10257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10258 if (!SWIG_IsOK(res1)) {
10259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
10260 }
10261 arg1 = reinterpret_cast< wxCursor * >(argp1);
10262 {
10263 PyThreadState* __tstate = wxPyBeginAllowThreads();
10264 result = (bool)(arg1)->IsOk();
10265 wxPyEndAllowThreads(__tstate);
10266 if (PyErr_Occurred()) SWIG_fail;
10267 }
10268 {
10269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10270 }
10271 return resultobj;
10272 fail:
10273 return NULL;
10274 }
10275
10276
10277 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10278 PyObject *obj;
10279 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10280 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10281 return SWIG_Py_Void();
10282 }
10283
10284 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10285 return SWIG_Python_InitShadowInstance(args);
10286 }
10287
10288 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10289 PyObject *resultobj = 0;
10290 int arg1 = (int) 0 ;
10291 int arg2 = (int) 0 ;
10292 int arg3 = (int) 0 ;
10293 int arg4 = (int) 0 ;
10294 wxRegion *result = 0 ;
10295 int val1 ;
10296 int ecode1 = 0 ;
10297 int val2 ;
10298 int ecode2 = 0 ;
10299 int val3 ;
10300 int ecode3 = 0 ;
10301 int val4 ;
10302 int ecode4 = 0 ;
10303 PyObject * obj0 = 0 ;
10304 PyObject * obj1 = 0 ;
10305 PyObject * obj2 = 0 ;
10306 PyObject * obj3 = 0 ;
10307 char * kwnames[] = {
10308 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10309 };
10310
10311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10312 if (obj0) {
10313 ecode1 = SWIG_AsVal_int(obj0, &val1);
10314 if (!SWIG_IsOK(ecode1)) {
10315 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10316 }
10317 arg1 = static_cast< int >(val1);
10318 }
10319 if (obj1) {
10320 ecode2 = SWIG_AsVal_int(obj1, &val2);
10321 if (!SWIG_IsOK(ecode2)) {
10322 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10323 }
10324 arg2 = static_cast< int >(val2);
10325 }
10326 if (obj2) {
10327 ecode3 = SWIG_AsVal_int(obj2, &val3);
10328 if (!SWIG_IsOK(ecode3)) {
10329 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10330 }
10331 arg3 = static_cast< int >(val3);
10332 }
10333 if (obj3) {
10334 ecode4 = SWIG_AsVal_int(obj3, &val4);
10335 if (!SWIG_IsOK(ecode4)) {
10336 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10337 }
10338 arg4 = static_cast< int >(val4);
10339 }
10340 {
10341 if (!wxPyCheckForApp()) SWIG_fail;
10342 PyThreadState* __tstate = wxPyBeginAllowThreads();
10343 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10344 wxPyEndAllowThreads(__tstate);
10345 if (PyErr_Occurred()) SWIG_fail;
10346 }
10347 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10348 return resultobj;
10349 fail:
10350 return NULL;
10351 }
10352
10353
10354 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10355 PyObject *resultobj = 0;
10356 wxBitmap *arg1 = 0 ;
10357 wxRegion *result = 0 ;
10358 void *argp1 = 0 ;
10359 int res1 = 0 ;
10360 PyObject * obj0 = 0 ;
10361 char * kwnames[] = {
10362 (char *) "bmp", NULL
10363 };
10364
10365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10366 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10367 if (!SWIG_IsOK(res1)) {
10368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10369 }
10370 if (!argp1) {
10371 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10372 }
10373 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10374 {
10375 if (!wxPyCheckForApp()) SWIG_fail;
10376 PyThreadState* __tstate = wxPyBeginAllowThreads();
10377 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10378 wxPyEndAllowThreads(__tstate);
10379 if (PyErr_Occurred()) SWIG_fail;
10380 }
10381 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10382 return resultobj;
10383 fail:
10384 return NULL;
10385 }
10386
10387
10388 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10389 PyObject *resultobj = 0;
10390 wxBitmap *arg1 = 0 ;
10391 wxColour *arg2 = 0 ;
10392 int arg3 = (int) 0 ;
10393 wxRegion *result = 0 ;
10394 void *argp1 = 0 ;
10395 int res1 = 0 ;
10396 wxColour temp2 ;
10397 int val3 ;
10398 int ecode3 = 0 ;
10399 PyObject * obj0 = 0 ;
10400 PyObject * obj1 = 0 ;
10401 PyObject * obj2 = 0 ;
10402 char * kwnames[] = {
10403 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10404 };
10405
10406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10407 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10408 if (!SWIG_IsOK(res1)) {
10409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10410 }
10411 if (!argp1) {
10412 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10413 }
10414 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10415 {
10416 arg2 = &temp2;
10417 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10418 }
10419 if (obj2) {
10420 ecode3 = SWIG_AsVal_int(obj2, &val3);
10421 if (!SWIG_IsOK(ecode3)) {
10422 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10423 }
10424 arg3 = static_cast< int >(val3);
10425 }
10426 {
10427 if (!wxPyCheckForApp()) SWIG_fail;
10428 PyThreadState* __tstate = wxPyBeginAllowThreads();
10429 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10430 wxPyEndAllowThreads(__tstate);
10431 if (PyErr_Occurred()) SWIG_fail;
10432 }
10433 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10434 return resultobj;
10435 fail:
10436 return NULL;
10437 }
10438
10439
10440 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10441 PyObject *resultobj = 0;
10442 int arg1 ;
10443 wxPoint *arg2 = (wxPoint *) 0 ;
10444 int arg3 = (int) wxWINDING_RULE ;
10445 wxRegion *result = 0 ;
10446 int val3 ;
10447 int ecode3 = 0 ;
10448 PyObject * obj0 = 0 ;
10449 PyObject * obj1 = 0 ;
10450 char * kwnames[] = {
10451 (char *) "points",(char *) "fillStyle", NULL
10452 };
10453
10454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10455 {
10456 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10457 if (arg2 == NULL) SWIG_fail;
10458 }
10459 if (obj1) {
10460 ecode3 = SWIG_AsVal_int(obj1, &val3);
10461 if (!SWIG_IsOK(ecode3)) {
10462 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10463 }
10464 arg3 = static_cast< int >(val3);
10465 }
10466 {
10467 if (!wxPyCheckForApp()) SWIG_fail;
10468 PyThreadState* __tstate = wxPyBeginAllowThreads();
10469 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10470 wxPyEndAllowThreads(__tstate);
10471 if (PyErr_Occurred()) SWIG_fail;
10472 }
10473 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10474 {
10475 if (arg2) delete [] arg2;
10476 }
10477 return resultobj;
10478 fail:
10479 {
10480 if (arg2) delete [] arg2;
10481 }
10482 return NULL;
10483 }
10484
10485
10486 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10487 PyObject *resultobj = 0;
10488 wxRegion *arg1 = (wxRegion *) 0 ;
10489 void *argp1 = 0 ;
10490 int res1 = 0 ;
10491 PyObject *swig_obj[1] ;
10492
10493 if (!args) SWIG_fail;
10494 swig_obj[0] = args;
10495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10496 if (!SWIG_IsOK(res1)) {
10497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10498 }
10499 arg1 = reinterpret_cast< wxRegion * >(argp1);
10500 {
10501 PyThreadState* __tstate = wxPyBeginAllowThreads();
10502 delete arg1;
10503
10504 wxPyEndAllowThreads(__tstate);
10505 if (PyErr_Occurred()) SWIG_fail;
10506 }
10507 resultobj = SWIG_Py_Void();
10508 return resultobj;
10509 fail:
10510 return NULL;
10511 }
10512
10513
10514 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10515 PyObject *resultobj = 0;
10516 wxRegion *arg1 = (wxRegion *) 0 ;
10517 void *argp1 = 0 ;
10518 int res1 = 0 ;
10519 PyObject *swig_obj[1] ;
10520
10521 if (!args) SWIG_fail;
10522 swig_obj[0] = args;
10523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10524 if (!SWIG_IsOK(res1)) {
10525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10526 }
10527 arg1 = reinterpret_cast< wxRegion * >(argp1);
10528 {
10529 PyThreadState* __tstate = wxPyBeginAllowThreads();
10530 (arg1)->Clear();
10531 wxPyEndAllowThreads(__tstate);
10532 if (PyErr_Occurred()) SWIG_fail;
10533 }
10534 resultobj = SWIG_Py_Void();
10535 return resultobj;
10536 fail:
10537 return NULL;
10538 }
10539
10540
10541 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10542 PyObject *resultobj = 0;
10543 wxRegion *arg1 = (wxRegion *) 0 ;
10544 int arg2 ;
10545 int arg3 ;
10546 bool result;
10547 void *argp1 = 0 ;
10548 int res1 = 0 ;
10549 int val2 ;
10550 int ecode2 = 0 ;
10551 int val3 ;
10552 int ecode3 = 0 ;
10553 PyObject * obj0 = 0 ;
10554 PyObject * obj1 = 0 ;
10555 PyObject * obj2 = 0 ;
10556 char * kwnames[] = {
10557 (char *) "self",(char *) "x",(char *) "y", NULL
10558 };
10559
10560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10562 if (!SWIG_IsOK(res1)) {
10563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10564 }
10565 arg1 = reinterpret_cast< wxRegion * >(argp1);
10566 ecode2 = SWIG_AsVal_int(obj1, &val2);
10567 if (!SWIG_IsOK(ecode2)) {
10568 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10569 }
10570 arg2 = static_cast< int >(val2);
10571 ecode3 = SWIG_AsVal_int(obj2, &val3);
10572 if (!SWIG_IsOK(ecode3)) {
10573 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10574 }
10575 arg3 = static_cast< int >(val3);
10576 {
10577 PyThreadState* __tstate = wxPyBeginAllowThreads();
10578 result = (bool)(arg1)->Offset(arg2,arg3);
10579 wxPyEndAllowThreads(__tstate);
10580 if (PyErr_Occurred()) SWIG_fail;
10581 }
10582 {
10583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10584 }
10585 return resultobj;
10586 fail:
10587 return NULL;
10588 }
10589
10590
10591 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10592 PyObject *resultobj = 0;
10593 wxRegion *arg1 = (wxRegion *) 0 ;
10594 int arg2 ;
10595 int arg3 ;
10596 wxRegionContain result;
10597 void *argp1 = 0 ;
10598 int res1 = 0 ;
10599 int val2 ;
10600 int ecode2 = 0 ;
10601 int val3 ;
10602 int ecode3 = 0 ;
10603 PyObject * obj0 = 0 ;
10604 PyObject * obj1 = 0 ;
10605 PyObject * obj2 = 0 ;
10606 char * kwnames[] = {
10607 (char *) "self",(char *) "x",(char *) "y", NULL
10608 };
10609
10610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10612 if (!SWIG_IsOK(res1)) {
10613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10614 }
10615 arg1 = reinterpret_cast< wxRegion * >(argp1);
10616 ecode2 = SWIG_AsVal_int(obj1, &val2);
10617 if (!SWIG_IsOK(ecode2)) {
10618 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10619 }
10620 arg2 = static_cast< int >(val2);
10621 ecode3 = SWIG_AsVal_int(obj2, &val3);
10622 if (!SWIG_IsOK(ecode3)) {
10623 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10624 }
10625 arg3 = static_cast< int >(val3);
10626 {
10627 PyThreadState* __tstate = wxPyBeginAllowThreads();
10628 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10629 wxPyEndAllowThreads(__tstate);
10630 if (PyErr_Occurred()) SWIG_fail;
10631 }
10632 resultobj = SWIG_From_int(static_cast< int >(result));
10633 return resultobj;
10634 fail:
10635 return NULL;
10636 }
10637
10638
10639 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10640 PyObject *resultobj = 0;
10641 wxRegion *arg1 = (wxRegion *) 0 ;
10642 wxPoint *arg2 = 0 ;
10643 wxRegionContain result;
10644 void *argp1 = 0 ;
10645 int res1 = 0 ;
10646 wxPoint temp2 ;
10647 PyObject * obj0 = 0 ;
10648 PyObject * obj1 = 0 ;
10649 char * kwnames[] = {
10650 (char *) "self",(char *) "pt", NULL
10651 };
10652
10653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10655 if (!SWIG_IsOK(res1)) {
10656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10657 }
10658 arg1 = reinterpret_cast< wxRegion * >(argp1);
10659 {
10660 arg2 = &temp2;
10661 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10662 }
10663 {
10664 PyThreadState* __tstate = wxPyBeginAllowThreads();
10665 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10666 wxPyEndAllowThreads(__tstate);
10667 if (PyErr_Occurred()) SWIG_fail;
10668 }
10669 resultobj = SWIG_From_int(static_cast< int >(result));
10670 return resultobj;
10671 fail:
10672 return NULL;
10673 }
10674
10675
10676 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10677 PyObject *resultobj = 0;
10678 wxRegion *arg1 = (wxRegion *) 0 ;
10679 wxRect *arg2 = 0 ;
10680 wxRegionContain result;
10681 void *argp1 = 0 ;
10682 int res1 = 0 ;
10683 wxRect temp2 ;
10684 PyObject * obj0 = 0 ;
10685 PyObject * obj1 = 0 ;
10686 char * kwnames[] = {
10687 (char *) "self",(char *) "rect", NULL
10688 };
10689
10690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10692 if (!SWIG_IsOK(res1)) {
10693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10694 }
10695 arg1 = reinterpret_cast< wxRegion * >(argp1);
10696 {
10697 arg2 = &temp2;
10698 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10699 }
10700 {
10701 PyThreadState* __tstate = wxPyBeginAllowThreads();
10702 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10703 wxPyEndAllowThreads(__tstate);
10704 if (PyErr_Occurred()) SWIG_fail;
10705 }
10706 resultobj = SWIG_From_int(static_cast< int >(result));
10707 return resultobj;
10708 fail:
10709 return NULL;
10710 }
10711
10712
10713 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10714 PyObject *resultobj = 0;
10715 wxRegion *arg1 = (wxRegion *) 0 ;
10716 int arg2 ;
10717 int arg3 ;
10718 int arg4 ;
10719 int arg5 ;
10720 wxRegionContain result;
10721 void *argp1 = 0 ;
10722 int res1 = 0 ;
10723 int val2 ;
10724 int ecode2 = 0 ;
10725 int val3 ;
10726 int ecode3 = 0 ;
10727 int val4 ;
10728 int ecode4 = 0 ;
10729 int val5 ;
10730 int ecode5 = 0 ;
10731 PyObject * obj0 = 0 ;
10732 PyObject * obj1 = 0 ;
10733 PyObject * obj2 = 0 ;
10734 PyObject * obj3 = 0 ;
10735 PyObject * obj4 = 0 ;
10736 char * kwnames[] = {
10737 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10738 };
10739
10740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10742 if (!SWIG_IsOK(res1)) {
10743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10744 }
10745 arg1 = reinterpret_cast< wxRegion * >(argp1);
10746 ecode2 = SWIG_AsVal_int(obj1, &val2);
10747 if (!SWIG_IsOK(ecode2)) {
10748 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10749 }
10750 arg2 = static_cast< int >(val2);
10751 ecode3 = SWIG_AsVal_int(obj2, &val3);
10752 if (!SWIG_IsOK(ecode3)) {
10753 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10754 }
10755 arg3 = static_cast< int >(val3);
10756 ecode4 = SWIG_AsVal_int(obj3, &val4);
10757 if (!SWIG_IsOK(ecode4)) {
10758 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10759 }
10760 arg4 = static_cast< int >(val4);
10761 ecode5 = SWIG_AsVal_int(obj4, &val5);
10762 if (!SWIG_IsOK(ecode5)) {
10763 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10764 }
10765 arg5 = static_cast< int >(val5);
10766 {
10767 PyThreadState* __tstate = wxPyBeginAllowThreads();
10768 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10769 wxPyEndAllowThreads(__tstate);
10770 if (PyErr_Occurred()) SWIG_fail;
10771 }
10772 resultobj = SWIG_From_int(static_cast< int >(result));
10773 return resultobj;
10774 fail:
10775 return NULL;
10776 }
10777
10778
10779 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10780 PyObject *resultobj = 0;
10781 wxRegion *arg1 = (wxRegion *) 0 ;
10782 wxRect result;
10783 void *argp1 = 0 ;
10784 int res1 = 0 ;
10785 PyObject *swig_obj[1] ;
10786
10787 if (!args) SWIG_fail;
10788 swig_obj[0] = args;
10789 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10790 if (!SWIG_IsOK(res1)) {
10791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10792 }
10793 arg1 = reinterpret_cast< wxRegion * >(argp1);
10794 {
10795 PyThreadState* __tstate = wxPyBeginAllowThreads();
10796 result = (arg1)->GetBox();
10797 wxPyEndAllowThreads(__tstate);
10798 if (PyErr_Occurred()) SWIG_fail;
10799 }
10800 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10801 return resultobj;
10802 fail:
10803 return NULL;
10804 }
10805
10806
10807 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10808 PyObject *resultobj = 0;
10809 wxRegion *arg1 = (wxRegion *) 0 ;
10810 int arg2 ;
10811 int arg3 ;
10812 int arg4 ;
10813 int arg5 ;
10814 bool result;
10815 void *argp1 = 0 ;
10816 int res1 = 0 ;
10817 int val2 ;
10818 int ecode2 = 0 ;
10819 int val3 ;
10820 int ecode3 = 0 ;
10821 int val4 ;
10822 int ecode4 = 0 ;
10823 int val5 ;
10824 int ecode5 = 0 ;
10825 PyObject * obj0 = 0 ;
10826 PyObject * obj1 = 0 ;
10827 PyObject * obj2 = 0 ;
10828 PyObject * obj3 = 0 ;
10829 PyObject * obj4 = 0 ;
10830 char * kwnames[] = {
10831 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10832 };
10833
10834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10836 if (!SWIG_IsOK(res1)) {
10837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10838 }
10839 arg1 = reinterpret_cast< wxRegion * >(argp1);
10840 ecode2 = SWIG_AsVal_int(obj1, &val2);
10841 if (!SWIG_IsOK(ecode2)) {
10842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10843 }
10844 arg2 = static_cast< int >(val2);
10845 ecode3 = SWIG_AsVal_int(obj2, &val3);
10846 if (!SWIG_IsOK(ecode3)) {
10847 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10848 }
10849 arg3 = static_cast< int >(val3);
10850 ecode4 = SWIG_AsVal_int(obj3, &val4);
10851 if (!SWIG_IsOK(ecode4)) {
10852 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10853 }
10854 arg4 = static_cast< int >(val4);
10855 ecode5 = SWIG_AsVal_int(obj4, &val5);
10856 if (!SWIG_IsOK(ecode5)) {
10857 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10858 }
10859 arg5 = static_cast< int >(val5);
10860 {
10861 PyThreadState* __tstate = wxPyBeginAllowThreads();
10862 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10863 wxPyEndAllowThreads(__tstate);
10864 if (PyErr_Occurred()) SWIG_fail;
10865 }
10866 {
10867 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10868 }
10869 return resultobj;
10870 fail:
10871 return NULL;
10872 }
10873
10874
10875 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10876 PyObject *resultobj = 0;
10877 wxRegion *arg1 = (wxRegion *) 0 ;
10878 wxRect *arg2 = 0 ;
10879 bool result;
10880 void *argp1 = 0 ;
10881 int res1 = 0 ;
10882 wxRect temp2 ;
10883 PyObject * obj0 = 0 ;
10884 PyObject * obj1 = 0 ;
10885 char * kwnames[] = {
10886 (char *) "self",(char *) "rect", NULL
10887 };
10888
10889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10891 if (!SWIG_IsOK(res1)) {
10892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10893 }
10894 arg1 = reinterpret_cast< wxRegion * >(argp1);
10895 {
10896 arg2 = &temp2;
10897 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10898 }
10899 {
10900 PyThreadState* __tstate = wxPyBeginAllowThreads();
10901 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10902 wxPyEndAllowThreads(__tstate);
10903 if (PyErr_Occurred()) SWIG_fail;
10904 }
10905 {
10906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10907 }
10908 return resultobj;
10909 fail:
10910 return NULL;
10911 }
10912
10913
10914 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10915 PyObject *resultobj = 0;
10916 wxRegion *arg1 = (wxRegion *) 0 ;
10917 wxRegion *arg2 = 0 ;
10918 bool result;
10919 void *argp1 = 0 ;
10920 int res1 = 0 ;
10921 void *argp2 = 0 ;
10922 int res2 = 0 ;
10923 PyObject * obj0 = 0 ;
10924 PyObject * obj1 = 0 ;
10925 char * kwnames[] = {
10926 (char *) "self",(char *) "region", NULL
10927 };
10928
10929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10931 if (!SWIG_IsOK(res1)) {
10932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10933 }
10934 arg1 = reinterpret_cast< wxRegion * >(argp1);
10935 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10936 if (!SWIG_IsOK(res2)) {
10937 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10938 }
10939 if (!argp2) {
10940 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10941 }
10942 arg2 = reinterpret_cast< wxRegion * >(argp2);
10943 {
10944 PyThreadState* __tstate = wxPyBeginAllowThreads();
10945 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10946 wxPyEndAllowThreads(__tstate);
10947 if (PyErr_Occurred()) SWIG_fail;
10948 }
10949 {
10950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10951 }
10952 return resultobj;
10953 fail:
10954 return NULL;
10955 }
10956
10957
10958 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10959 PyObject *resultobj = 0;
10960 wxRegion *arg1 = (wxRegion *) 0 ;
10961 bool result;
10962 void *argp1 = 0 ;
10963 int res1 = 0 ;
10964 PyObject *swig_obj[1] ;
10965
10966 if (!args) SWIG_fail;
10967 swig_obj[0] = args;
10968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10969 if (!SWIG_IsOK(res1)) {
10970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10971 }
10972 arg1 = reinterpret_cast< wxRegion * >(argp1);
10973 {
10974 PyThreadState* __tstate = wxPyBeginAllowThreads();
10975 result = (bool)(arg1)->IsEmpty();
10976 wxPyEndAllowThreads(__tstate);
10977 if (PyErr_Occurred()) SWIG_fail;
10978 }
10979 {
10980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10981 }
10982 return resultobj;
10983 fail:
10984 return NULL;
10985 }
10986
10987
10988 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10989 PyObject *resultobj = 0;
10990 wxRegion *arg1 = (wxRegion *) 0 ;
10991 wxRegion *arg2 = 0 ;
10992 bool result;
10993 void *argp1 = 0 ;
10994 int res1 = 0 ;
10995 void *argp2 = 0 ;
10996 int res2 = 0 ;
10997 PyObject * obj0 = 0 ;
10998 PyObject * obj1 = 0 ;
10999 char * kwnames[] = {
11000 (char *) "self",(char *) "region", NULL
11001 };
11002
11003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11005 if (!SWIG_IsOK(res1)) {
11006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11007 }
11008 arg1 = reinterpret_cast< wxRegion * >(argp1);
11009 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11010 if (!SWIG_IsOK(res2)) {
11011 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11012 }
11013 if (!argp2) {
11014 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11015 }
11016 arg2 = reinterpret_cast< wxRegion * >(argp2);
11017 {
11018 PyThreadState* __tstate = wxPyBeginAllowThreads();
11019 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11020 wxPyEndAllowThreads(__tstate);
11021 if (PyErr_Occurred()) SWIG_fail;
11022 }
11023 {
11024 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11025 }
11026 return resultobj;
11027 fail:
11028 return NULL;
11029 }
11030
11031
11032 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11033 PyObject *resultobj = 0;
11034 wxRegion *arg1 = (wxRegion *) 0 ;
11035 int arg2 ;
11036 int arg3 ;
11037 int arg4 ;
11038 int arg5 ;
11039 bool result;
11040 void *argp1 = 0 ;
11041 int res1 = 0 ;
11042 int val2 ;
11043 int ecode2 = 0 ;
11044 int val3 ;
11045 int ecode3 = 0 ;
11046 int val4 ;
11047 int ecode4 = 0 ;
11048 int val5 ;
11049 int ecode5 = 0 ;
11050 PyObject * obj0 = 0 ;
11051 PyObject * obj1 = 0 ;
11052 PyObject * obj2 = 0 ;
11053 PyObject * obj3 = 0 ;
11054 PyObject * obj4 = 0 ;
11055 char * kwnames[] = {
11056 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11057 };
11058
11059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11061 if (!SWIG_IsOK(res1)) {
11062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11063 }
11064 arg1 = reinterpret_cast< wxRegion * >(argp1);
11065 ecode2 = SWIG_AsVal_int(obj1, &val2);
11066 if (!SWIG_IsOK(ecode2)) {
11067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11068 }
11069 arg2 = static_cast< int >(val2);
11070 ecode3 = SWIG_AsVal_int(obj2, &val3);
11071 if (!SWIG_IsOK(ecode3)) {
11072 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11073 }
11074 arg3 = static_cast< int >(val3);
11075 ecode4 = SWIG_AsVal_int(obj3, &val4);
11076 if (!SWIG_IsOK(ecode4)) {
11077 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11078 }
11079 arg4 = static_cast< int >(val4);
11080 ecode5 = SWIG_AsVal_int(obj4, &val5);
11081 if (!SWIG_IsOK(ecode5)) {
11082 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11083 }
11084 arg5 = static_cast< int >(val5);
11085 {
11086 PyThreadState* __tstate = wxPyBeginAllowThreads();
11087 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11088 wxPyEndAllowThreads(__tstate);
11089 if (PyErr_Occurred()) SWIG_fail;
11090 }
11091 {
11092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11093 }
11094 return resultobj;
11095 fail:
11096 return NULL;
11097 }
11098
11099
11100 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11101 PyObject *resultobj = 0;
11102 wxRegion *arg1 = (wxRegion *) 0 ;
11103 wxRect *arg2 = 0 ;
11104 bool result;
11105 void *argp1 = 0 ;
11106 int res1 = 0 ;
11107 wxRect temp2 ;
11108 PyObject * obj0 = 0 ;
11109 PyObject * obj1 = 0 ;
11110 char * kwnames[] = {
11111 (char *) "self",(char *) "rect", NULL
11112 };
11113
11114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11116 if (!SWIG_IsOK(res1)) {
11117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11118 }
11119 arg1 = reinterpret_cast< wxRegion * >(argp1);
11120 {
11121 arg2 = &temp2;
11122 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11123 }
11124 {
11125 PyThreadState* __tstate = wxPyBeginAllowThreads();
11126 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11127 wxPyEndAllowThreads(__tstate);
11128 if (PyErr_Occurred()) SWIG_fail;
11129 }
11130 {
11131 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11132 }
11133 return resultobj;
11134 fail:
11135 return NULL;
11136 }
11137
11138
11139 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11140 PyObject *resultobj = 0;
11141 wxRegion *arg1 = (wxRegion *) 0 ;
11142 wxRegion *arg2 = 0 ;
11143 bool result;
11144 void *argp1 = 0 ;
11145 int res1 = 0 ;
11146 void *argp2 = 0 ;
11147 int res2 = 0 ;
11148 PyObject * obj0 = 0 ;
11149 PyObject * obj1 = 0 ;
11150 char * kwnames[] = {
11151 (char *) "self",(char *) "region", NULL
11152 };
11153
11154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11156 if (!SWIG_IsOK(res1)) {
11157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11158 }
11159 arg1 = reinterpret_cast< wxRegion * >(argp1);
11160 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11161 if (!SWIG_IsOK(res2)) {
11162 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11163 }
11164 if (!argp2) {
11165 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11166 }
11167 arg2 = reinterpret_cast< wxRegion * >(argp2);
11168 {
11169 PyThreadState* __tstate = wxPyBeginAllowThreads();
11170 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11171 wxPyEndAllowThreads(__tstate);
11172 if (PyErr_Occurred()) SWIG_fail;
11173 }
11174 {
11175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11176 }
11177 return resultobj;
11178 fail:
11179 return NULL;
11180 }
11181
11182
11183 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11184 PyObject *resultobj = 0;
11185 wxRegion *arg1 = (wxRegion *) 0 ;
11186 int arg2 ;
11187 int arg3 ;
11188 int arg4 ;
11189 int arg5 ;
11190 bool result;
11191 void *argp1 = 0 ;
11192 int res1 = 0 ;
11193 int val2 ;
11194 int ecode2 = 0 ;
11195 int val3 ;
11196 int ecode3 = 0 ;
11197 int val4 ;
11198 int ecode4 = 0 ;
11199 int val5 ;
11200 int ecode5 = 0 ;
11201 PyObject * obj0 = 0 ;
11202 PyObject * obj1 = 0 ;
11203 PyObject * obj2 = 0 ;
11204 PyObject * obj3 = 0 ;
11205 PyObject * obj4 = 0 ;
11206 char * kwnames[] = {
11207 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11208 };
11209
11210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11212 if (!SWIG_IsOK(res1)) {
11213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11214 }
11215 arg1 = reinterpret_cast< wxRegion * >(argp1);
11216 ecode2 = SWIG_AsVal_int(obj1, &val2);
11217 if (!SWIG_IsOK(ecode2)) {
11218 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11219 }
11220 arg2 = static_cast< int >(val2);
11221 ecode3 = SWIG_AsVal_int(obj2, &val3);
11222 if (!SWIG_IsOK(ecode3)) {
11223 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11224 }
11225 arg3 = static_cast< int >(val3);
11226 ecode4 = SWIG_AsVal_int(obj3, &val4);
11227 if (!SWIG_IsOK(ecode4)) {
11228 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11229 }
11230 arg4 = static_cast< int >(val4);
11231 ecode5 = SWIG_AsVal_int(obj4, &val5);
11232 if (!SWIG_IsOK(ecode5)) {
11233 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11234 }
11235 arg5 = static_cast< int >(val5);
11236 {
11237 PyThreadState* __tstate = wxPyBeginAllowThreads();
11238 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11239 wxPyEndAllowThreads(__tstate);
11240 if (PyErr_Occurred()) SWIG_fail;
11241 }
11242 {
11243 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11244 }
11245 return resultobj;
11246 fail:
11247 return NULL;
11248 }
11249
11250
11251 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11252 PyObject *resultobj = 0;
11253 wxRegion *arg1 = (wxRegion *) 0 ;
11254 wxRect *arg2 = 0 ;
11255 bool result;
11256 void *argp1 = 0 ;
11257 int res1 = 0 ;
11258 wxRect temp2 ;
11259 PyObject * obj0 = 0 ;
11260 PyObject * obj1 = 0 ;
11261 char * kwnames[] = {
11262 (char *) "self",(char *) "rect", NULL
11263 };
11264
11265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11267 if (!SWIG_IsOK(res1)) {
11268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11269 }
11270 arg1 = reinterpret_cast< wxRegion * >(argp1);
11271 {
11272 arg2 = &temp2;
11273 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11274 }
11275 {
11276 PyThreadState* __tstate = wxPyBeginAllowThreads();
11277 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11278 wxPyEndAllowThreads(__tstate);
11279 if (PyErr_Occurred()) SWIG_fail;
11280 }
11281 {
11282 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11283 }
11284 return resultobj;
11285 fail:
11286 return NULL;
11287 }
11288
11289
11290 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11291 PyObject *resultobj = 0;
11292 wxRegion *arg1 = (wxRegion *) 0 ;
11293 wxRegion *arg2 = 0 ;
11294 bool result;
11295 void *argp1 = 0 ;
11296 int res1 = 0 ;
11297 void *argp2 = 0 ;
11298 int res2 = 0 ;
11299 PyObject * obj0 = 0 ;
11300 PyObject * obj1 = 0 ;
11301 char * kwnames[] = {
11302 (char *) "self",(char *) "region", NULL
11303 };
11304
11305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11307 if (!SWIG_IsOK(res1)) {
11308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11309 }
11310 arg1 = reinterpret_cast< wxRegion * >(argp1);
11311 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11312 if (!SWIG_IsOK(res2)) {
11313 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11314 }
11315 if (!argp2) {
11316 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11317 }
11318 arg2 = reinterpret_cast< wxRegion * >(argp2);
11319 {
11320 PyThreadState* __tstate = wxPyBeginAllowThreads();
11321 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11322 wxPyEndAllowThreads(__tstate);
11323 if (PyErr_Occurred()) SWIG_fail;
11324 }
11325 {
11326 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11327 }
11328 return resultobj;
11329 fail:
11330 return NULL;
11331 }
11332
11333
11334 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11335 PyObject *resultobj = 0;
11336 wxRegion *arg1 = (wxRegion *) 0 ;
11337 int arg2 ;
11338 int arg3 ;
11339 int arg4 ;
11340 int arg5 ;
11341 bool result;
11342 void *argp1 = 0 ;
11343 int res1 = 0 ;
11344 int val2 ;
11345 int ecode2 = 0 ;
11346 int val3 ;
11347 int ecode3 = 0 ;
11348 int val4 ;
11349 int ecode4 = 0 ;
11350 int val5 ;
11351 int ecode5 = 0 ;
11352 PyObject * obj0 = 0 ;
11353 PyObject * obj1 = 0 ;
11354 PyObject * obj2 = 0 ;
11355 PyObject * obj3 = 0 ;
11356 PyObject * obj4 = 0 ;
11357 char * kwnames[] = {
11358 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11359 };
11360
11361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11363 if (!SWIG_IsOK(res1)) {
11364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11365 }
11366 arg1 = reinterpret_cast< wxRegion * >(argp1);
11367 ecode2 = SWIG_AsVal_int(obj1, &val2);
11368 if (!SWIG_IsOK(ecode2)) {
11369 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11370 }
11371 arg2 = static_cast< int >(val2);
11372 ecode3 = SWIG_AsVal_int(obj2, &val3);
11373 if (!SWIG_IsOK(ecode3)) {
11374 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11375 }
11376 arg3 = static_cast< int >(val3);
11377 ecode4 = SWIG_AsVal_int(obj3, &val4);
11378 if (!SWIG_IsOK(ecode4)) {
11379 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11380 }
11381 arg4 = static_cast< int >(val4);
11382 ecode5 = SWIG_AsVal_int(obj4, &val5);
11383 if (!SWIG_IsOK(ecode5)) {
11384 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11385 }
11386 arg5 = static_cast< int >(val5);
11387 {
11388 PyThreadState* __tstate = wxPyBeginAllowThreads();
11389 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11390 wxPyEndAllowThreads(__tstate);
11391 if (PyErr_Occurred()) SWIG_fail;
11392 }
11393 {
11394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11395 }
11396 return resultobj;
11397 fail:
11398 return NULL;
11399 }
11400
11401
11402 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11403 PyObject *resultobj = 0;
11404 wxRegion *arg1 = (wxRegion *) 0 ;
11405 wxRect *arg2 = 0 ;
11406 bool result;
11407 void *argp1 = 0 ;
11408 int res1 = 0 ;
11409 wxRect temp2 ;
11410 PyObject * obj0 = 0 ;
11411 PyObject * obj1 = 0 ;
11412 char * kwnames[] = {
11413 (char *) "self",(char *) "rect", NULL
11414 };
11415
11416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11418 if (!SWIG_IsOK(res1)) {
11419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11420 }
11421 arg1 = reinterpret_cast< wxRegion * >(argp1);
11422 {
11423 arg2 = &temp2;
11424 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11425 }
11426 {
11427 PyThreadState* __tstate = wxPyBeginAllowThreads();
11428 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11429 wxPyEndAllowThreads(__tstate);
11430 if (PyErr_Occurred()) SWIG_fail;
11431 }
11432 {
11433 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11434 }
11435 return resultobj;
11436 fail:
11437 return NULL;
11438 }
11439
11440
11441 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11442 PyObject *resultobj = 0;
11443 wxRegion *arg1 = (wxRegion *) 0 ;
11444 wxRegion *arg2 = 0 ;
11445 bool result;
11446 void *argp1 = 0 ;
11447 int res1 = 0 ;
11448 void *argp2 = 0 ;
11449 int res2 = 0 ;
11450 PyObject * obj0 = 0 ;
11451 PyObject * obj1 = 0 ;
11452 char * kwnames[] = {
11453 (char *) "self",(char *) "region", NULL
11454 };
11455
11456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11458 if (!SWIG_IsOK(res1)) {
11459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11460 }
11461 arg1 = reinterpret_cast< wxRegion * >(argp1);
11462 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11463 if (!SWIG_IsOK(res2)) {
11464 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11465 }
11466 if (!argp2) {
11467 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11468 }
11469 arg2 = reinterpret_cast< wxRegion * >(argp2);
11470 {
11471 PyThreadState* __tstate = wxPyBeginAllowThreads();
11472 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11473 wxPyEndAllowThreads(__tstate);
11474 if (PyErr_Occurred()) SWIG_fail;
11475 }
11476 {
11477 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11478 }
11479 return resultobj;
11480 fail:
11481 return NULL;
11482 }
11483
11484
11485 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11486 PyObject *resultobj = 0;
11487 wxRegion *arg1 = (wxRegion *) 0 ;
11488 SwigValueWrapper<wxBitmap > result;
11489 void *argp1 = 0 ;
11490 int res1 = 0 ;
11491 PyObject *swig_obj[1] ;
11492
11493 if (!args) SWIG_fail;
11494 swig_obj[0] = args;
11495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11496 if (!SWIG_IsOK(res1)) {
11497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11498 }
11499 arg1 = reinterpret_cast< wxRegion * >(argp1);
11500 {
11501 PyThreadState* __tstate = wxPyBeginAllowThreads();
11502 result = (arg1)->ConvertToBitmap();
11503 wxPyEndAllowThreads(__tstate);
11504 if (PyErr_Occurred()) SWIG_fail;
11505 }
11506 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11507 return resultobj;
11508 fail:
11509 return NULL;
11510 }
11511
11512
11513 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11514 PyObject *resultobj = 0;
11515 wxRegion *arg1 = (wxRegion *) 0 ;
11516 wxBitmap *arg2 = 0 ;
11517 bool result;
11518 void *argp1 = 0 ;
11519 int res1 = 0 ;
11520 void *argp2 = 0 ;
11521 int res2 = 0 ;
11522 PyObject * obj0 = 0 ;
11523 PyObject * obj1 = 0 ;
11524 char * kwnames[] = {
11525 (char *) "self",(char *) "bmp", NULL
11526 };
11527
11528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11530 if (!SWIG_IsOK(res1)) {
11531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11532 }
11533 arg1 = reinterpret_cast< wxRegion * >(argp1);
11534 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11535 if (!SWIG_IsOK(res2)) {
11536 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11537 }
11538 if (!argp2) {
11539 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11540 }
11541 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11542 {
11543 PyThreadState* __tstate = wxPyBeginAllowThreads();
11544 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11545 wxPyEndAllowThreads(__tstate);
11546 if (PyErr_Occurred()) SWIG_fail;
11547 }
11548 {
11549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11550 }
11551 return resultobj;
11552 fail:
11553 return NULL;
11554 }
11555
11556
11557 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11558 PyObject *resultobj = 0;
11559 wxRegion *arg1 = (wxRegion *) 0 ;
11560 wxBitmap *arg2 = 0 ;
11561 wxColour *arg3 = 0 ;
11562 int arg4 = (int) 0 ;
11563 bool result;
11564 void *argp1 = 0 ;
11565 int res1 = 0 ;
11566 void *argp2 = 0 ;
11567 int res2 = 0 ;
11568 wxColour temp3 ;
11569 int val4 ;
11570 int ecode4 = 0 ;
11571 PyObject * obj0 = 0 ;
11572 PyObject * obj1 = 0 ;
11573 PyObject * obj2 = 0 ;
11574 PyObject * obj3 = 0 ;
11575 char * kwnames[] = {
11576 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11577 };
11578
11579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11581 if (!SWIG_IsOK(res1)) {
11582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11583 }
11584 arg1 = reinterpret_cast< wxRegion * >(argp1);
11585 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11586 if (!SWIG_IsOK(res2)) {
11587 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11588 }
11589 if (!argp2) {
11590 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11591 }
11592 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11593 {
11594 arg3 = &temp3;
11595 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11596 }
11597 if (obj3) {
11598 ecode4 = SWIG_AsVal_int(obj3, &val4);
11599 if (!SWIG_IsOK(ecode4)) {
11600 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11601 }
11602 arg4 = static_cast< int >(val4);
11603 }
11604 {
11605 PyThreadState* __tstate = wxPyBeginAllowThreads();
11606 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11607 wxPyEndAllowThreads(__tstate);
11608 if (PyErr_Occurred()) SWIG_fail;
11609 }
11610 {
11611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11612 }
11613 return resultobj;
11614 fail:
11615 return NULL;
11616 }
11617
11618
11619 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11620 PyObject *obj;
11621 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11622 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11623 return SWIG_Py_Void();
11624 }
11625
11626 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11627 return SWIG_Python_InitShadowInstance(args);
11628 }
11629
11630 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11631 PyObject *resultobj = 0;
11632 wxRegion *arg1 = 0 ;
11633 wxRegionIterator *result = 0 ;
11634 void *argp1 = 0 ;
11635 int res1 = 0 ;
11636 PyObject * obj0 = 0 ;
11637 char * kwnames[] = {
11638 (char *) "region", NULL
11639 };
11640
11641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11642 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11643 if (!SWIG_IsOK(res1)) {
11644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11645 }
11646 if (!argp1) {
11647 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11648 }
11649 arg1 = reinterpret_cast< wxRegion * >(argp1);
11650 {
11651 if (!wxPyCheckForApp()) SWIG_fail;
11652 PyThreadState* __tstate = wxPyBeginAllowThreads();
11653 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11654 wxPyEndAllowThreads(__tstate);
11655 if (PyErr_Occurred()) SWIG_fail;
11656 }
11657 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11658 return resultobj;
11659 fail:
11660 return NULL;
11661 }
11662
11663
11664 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11665 PyObject *resultobj = 0;
11666 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11667 void *argp1 = 0 ;
11668 int res1 = 0 ;
11669 PyObject *swig_obj[1] ;
11670
11671 if (!args) SWIG_fail;
11672 swig_obj[0] = args;
11673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11674 if (!SWIG_IsOK(res1)) {
11675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11676 }
11677 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11678 {
11679 PyThreadState* __tstate = wxPyBeginAllowThreads();
11680 delete arg1;
11681
11682 wxPyEndAllowThreads(__tstate);
11683 if (PyErr_Occurred()) SWIG_fail;
11684 }
11685 resultobj = SWIG_Py_Void();
11686 return resultobj;
11687 fail:
11688 return NULL;
11689 }
11690
11691
11692 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11693 PyObject *resultobj = 0;
11694 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11695 int result;
11696 void *argp1 = 0 ;
11697 int res1 = 0 ;
11698 PyObject *swig_obj[1] ;
11699
11700 if (!args) SWIG_fail;
11701 swig_obj[0] = args;
11702 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11703 if (!SWIG_IsOK(res1)) {
11704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11705 }
11706 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11707 {
11708 PyThreadState* __tstate = wxPyBeginAllowThreads();
11709 result = (int)(arg1)->GetX();
11710 wxPyEndAllowThreads(__tstate);
11711 if (PyErr_Occurred()) SWIG_fail;
11712 }
11713 resultobj = SWIG_From_int(static_cast< int >(result));
11714 return resultobj;
11715 fail:
11716 return NULL;
11717 }
11718
11719
11720 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11721 PyObject *resultobj = 0;
11722 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11723 int result;
11724 void *argp1 = 0 ;
11725 int res1 = 0 ;
11726 PyObject *swig_obj[1] ;
11727
11728 if (!args) SWIG_fail;
11729 swig_obj[0] = args;
11730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11731 if (!SWIG_IsOK(res1)) {
11732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11733 }
11734 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11735 {
11736 PyThreadState* __tstate = wxPyBeginAllowThreads();
11737 result = (int)(arg1)->GetY();
11738 wxPyEndAllowThreads(__tstate);
11739 if (PyErr_Occurred()) SWIG_fail;
11740 }
11741 resultobj = SWIG_From_int(static_cast< int >(result));
11742 return resultobj;
11743 fail:
11744 return NULL;
11745 }
11746
11747
11748 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11749 PyObject *resultobj = 0;
11750 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11751 int result;
11752 void *argp1 = 0 ;
11753 int res1 = 0 ;
11754 PyObject *swig_obj[1] ;
11755
11756 if (!args) SWIG_fail;
11757 swig_obj[0] = args;
11758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11759 if (!SWIG_IsOK(res1)) {
11760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11761 }
11762 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11763 {
11764 PyThreadState* __tstate = wxPyBeginAllowThreads();
11765 result = (int)(arg1)->GetW();
11766 wxPyEndAllowThreads(__tstate);
11767 if (PyErr_Occurred()) SWIG_fail;
11768 }
11769 resultobj = SWIG_From_int(static_cast< int >(result));
11770 return resultobj;
11771 fail:
11772 return NULL;
11773 }
11774
11775
11776 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11777 PyObject *resultobj = 0;
11778 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11779 int result;
11780 void *argp1 = 0 ;
11781 int res1 = 0 ;
11782 PyObject *swig_obj[1] ;
11783
11784 if (!args) SWIG_fail;
11785 swig_obj[0] = args;
11786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11787 if (!SWIG_IsOK(res1)) {
11788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11789 }
11790 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11791 {
11792 PyThreadState* __tstate = wxPyBeginAllowThreads();
11793 result = (int)(arg1)->GetWidth();
11794 wxPyEndAllowThreads(__tstate);
11795 if (PyErr_Occurred()) SWIG_fail;
11796 }
11797 resultobj = SWIG_From_int(static_cast< int >(result));
11798 return resultobj;
11799 fail:
11800 return NULL;
11801 }
11802
11803
11804 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11805 PyObject *resultobj = 0;
11806 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11807 int result;
11808 void *argp1 = 0 ;
11809 int res1 = 0 ;
11810 PyObject *swig_obj[1] ;
11811
11812 if (!args) SWIG_fail;
11813 swig_obj[0] = args;
11814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11815 if (!SWIG_IsOK(res1)) {
11816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11817 }
11818 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11819 {
11820 PyThreadState* __tstate = wxPyBeginAllowThreads();
11821 result = (int)(arg1)->GetH();
11822 wxPyEndAllowThreads(__tstate);
11823 if (PyErr_Occurred()) SWIG_fail;
11824 }
11825 resultobj = SWIG_From_int(static_cast< int >(result));
11826 return resultobj;
11827 fail:
11828 return NULL;
11829 }
11830
11831
11832 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11833 PyObject *resultobj = 0;
11834 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11835 int result;
11836 void *argp1 = 0 ;
11837 int res1 = 0 ;
11838 PyObject *swig_obj[1] ;
11839
11840 if (!args) SWIG_fail;
11841 swig_obj[0] = args;
11842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11843 if (!SWIG_IsOK(res1)) {
11844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11845 }
11846 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11847 {
11848 PyThreadState* __tstate = wxPyBeginAllowThreads();
11849 result = (int)(arg1)->GetHeight();
11850 wxPyEndAllowThreads(__tstate);
11851 if (PyErr_Occurred()) SWIG_fail;
11852 }
11853 resultobj = SWIG_From_int(static_cast< int >(result));
11854 return resultobj;
11855 fail:
11856 return NULL;
11857 }
11858
11859
11860 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11861 PyObject *resultobj = 0;
11862 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11863 wxRect result;
11864 void *argp1 = 0 ;
11865 int res1 = 0 ;
11866 PyObject *swig_obj[1] ;
11867
11868 if (!args) SWIG_fail;
11869 swig_obj[0] = args;
11870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11871 if (!SWIG_IsOK(res1)) {
11872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11873 }
11874 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11875 {
11876 PyThreadState* __tstate = wxPyBeginAllowThreads();
11877 result = (arg1)->GetRect();
11878 wxPyEndAllowThreads(__tstate);
11879 if (PyErr_Occurred()) SWIG_fail;
11880 }
11881 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11882 return resultobj;
11883 fail:
11884 return NULL;
11885 }
11886
11887
11888 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11889 PyObject *resultobj = 0;
11890 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11891 bool result;
11892 void *argp1 = 0 ;
11893 int res1 = 0 ;
11894 PyObject *swig_obj[1] ;
11895
11896 if (!args) SWIG_fail;
11897 swig_obj[0] = args;
11898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11899 if (!SWIG_IsOK(res1)) {
11900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11901 }
11902 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11903 {
11904 PyThreadState* __tstate = wxPyBeginAllowThreads();
11905 result = (bool)(arg1)->HaveRects();
11906 wxPyEndAllowThreads(__tstate);
11907 if (PyErr_Occurred()) SWIG_fail;
11908 }
11909 {
11910 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11911 }
11912 return resultobj;
11913 fail:
11914 return NULL;
11915 }
11916
11917
11918 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11919 PyObject *resultobj = 0;
11920 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11921 void *argp1 = 0 ;
11922 int res1 = 0 ;
11923 PyObject *swig_obj[1] ;
11924
11925 if (!args) SWIG_fail;
11926 swig_obj[0] = args;
11927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11928 if (!SWIG_IsOK(res1)) {
11929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11930 }
11931 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11932 {
11933 PyThreadState* __tstate = wxPyBeginAllowThreads();
11934 (arg1)->Reset();
11935 wxPyEndAllowThreads(__tstate);
11936 if (PyErr_Occurred()) SWIG_fail;
11937 }
11938 resultobj = SWIG_Py_Void();
11939 return resultobj;
11940 fail:
11941 return NULL;
11942 }
11943
11944
11945 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11946 PyObject *resultobj = 0;
11947 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11948 void *argp1 = 0 ;
11949 int res1 = 0 ;
11950 PyObject *swig_obj[1] ;
11951
11952 if (!args) SWIG_fail;
11953 swig_obj[0] = args;
11954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11955 if (!SWIG_IsOK(res1)) {
11956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11957 }
11958 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11959 {
11960 PyThreadState* __tstate = wxPyBeginAllowThreads();
11961 wxRegionIterator_Next(arg1);
11962 wxPyEndAllowThreads(__tstate);
11963 if (PyErr_Occurred()) SWIG_fail;
11964 }
11965 resultobj = SWIG_Py_Void();
11966 return resultobj;
11967 fail:
11968 return NULL;
11969 }
11970
11971
11972 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11973 PyObject *resultobj = 0;
11974 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11975 bool result;
11976 void *argp1 = 0 ;
11977 int res1 = 0 ;
11978 PyObject *swig_obj[1] ;
11979
11980 if (!args) SWIG_fail;
11981 swig_obj[0] = args;
11982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11983 if (!SWIG_IsOK(res1)) {
11984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11985 }
11986 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11987 {
11988 PyThreadState* __tstate = wxPyBeginAllowThreads();
11989 result = (bool)wxRegionIterator___nonzero__(arg1);
11990 wxPyEndAllowThreads(__tstate);
11991 if (PyErr_Occurred()) SWIG_fail;
11992 }
11993 {
11994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11995 }
11996 return resultobj;
11997 fail:
11998 return NULL;
11999 }
12000
12001
12002 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12003 PyObject *obj;
12004 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12005 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12006 return SWIG_Py_Void();
12007 }
12008
12009 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12010 return SWIG_Python_InitShadowInstance(args);
12011 }
12012
12013 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12014 PyObject *resultobj = 0;
12015 wxNativeFontInfo *result = 0 ;
12016
12017 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12018 {
12019 PyThreadState* __tstate = wxPyBeginAllowThreads();
12020 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12021 wxPyEndAllowThreads(__tstate);
12022 if (PyErr_Occurred()) SWIG_fail;
12023 }
12024 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12025 return resultobj;
12026 fail:
12027 return NULL;
12028 }
12029
12030
12031 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12032 PyObject *resultobj = 0;
12033 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12034 void *argp1 = 0 ;
12035 int res1 = 0 ;
12036 PyObject *swig_obj[1] ;
12037
12038 if (!args) SWIG_fail;
12039 swig_obj[0] = args;
12040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12041 if (!SWIG_IsOK(res1)) {
12042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12043 }
12044 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12045 {
12046 PyThreadState* __tstate = wxPyBeginAllowThreads();
12047 delete arg1;
12048
12049 wxPyEndAllowThreads(__tstate);
12050 if (PyErr_Occurred()) SWIG_fail;
12051 }
12052 resultobj = SWIG_Py_Void();
12053 return resultobj;
12054 fail:
12055 return NULL;
12056 }
12057
12058
12059 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12060 PyObject *resultobj = 0;
12061 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12062 void *argp1 = 0 ;
12063 int res1 = 0 ;
12064 PyObject *swig_obj[1] ;
12065
12066 if (!args) SWIG_fail;
12067 swig_obj[0] = args;
12068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12069 if (!SWIG_IsOK(res1)) {
12070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12071 }
12072 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12073 {
12074 PyThreadState* __tstate = wxPyBeginAllowThreads();
12075 (arg1)->Init();
12076 wxPyEndAllowThreads(__tstate);
12077 if (PyErr_Occurred()) SWIG_fail;
12078 }
12079 resultobj = SWIG_Py_Void();
12080 return resultobj;
12081 fail:
12082 return NULL;
12083 }
12084
12085
12086 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12087 PyObject *resultobj = 0;
12088 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12089 wxFont *arg2 = 0 ;
12090 void *argp1 = 0 ;
12091 int res1 = 0 ;
12092 void *argp2 = 0 ;
12093 int res2 = 0 ;
12094 PyObject * obj0 = 0 ;
12095 PyObject * obj1 = 0 ;
12096 char * kwnames[] = {
12097 (char *) "self",(char *) "font", NULL
12098 };
12099
12100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12102 if (!SWIG_IsOK(res1)) {
12103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12104 }
12105 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12106 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12107 if (!SWIG_IsOK(res2)) {
12108 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12109 }
12110 if (!argp2) {
12111 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12112 }
12113 arg2 = reinterpret_cast< wxFont * >(argp2);
12114 {
12115 PyThreadState* __tstate = wxPyBeginAllowThreads();
12116 (arg1)->InitFromFont((wxFont const &)*arg2);
12117 wxPyEndAllowThreads(__tstate);
12118 if (PyErr_Occurred()) SWIG_fail;
12119 }
12120 resultobj = SWIG_Py_Void();
12121 return resultobj;
12122 fail:
12123 return NULL;
12124 }
12125
12126
12127 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12128 PyObject *resultobj = 0;
12129 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12130 int result;
12131 void *argp1 = 0 ;
12132 int res1 = 0 ;
12133 PyObject *swig_obj[1] ;
12134
12135 if (!args) SWIG_fail;
12136 swig_obj[0] = args;
12137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12138 if (!SWIG_IsOK(res1)) {
12139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12140 }
12141 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12142 {
12143 PyThreadState* __tstate = wxPyBeginAllowThreads();
12144 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12145 wxPyEndAllowThreads(__tstate);
12146 if (PyErr_Occurred()) SWIG_fail;
12147 }
12148 resultobj = SWIG_From_int(static_cast< int >(result));
12149 return resultobj;
12150 fail:
12151 return NULL;
12152 }
12153
12154
12155 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12156 PyObject *resultobj = 0;
12157 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12158 wxFontStyle result;
12159 void *argp1 = 0 ;
12160 int res1 = 0 ;
12161 PyObject *swig_obj[1] ;
12162
12163 if (!args) SWIG_fail;
12164 swig_obj[0] = args;
12165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12166 if (!SWIG_IsOK(res1)) {
12167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12168 }
12169 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12170 {
12171 PyThreadState* __tstate = wxPyBeginAllowThreads();
12172 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12173 wxPyEndAllowThreads(__tstate);
12174 if (PyErr_Occurred()) SWIG_fail;
12175 }
12176 resultobj = SWIG_From_int(static_cast< int >(result));
12177 return resultobj;
12178 fail:
12179 return NULL;
12180 }
12181
12182
12183 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12184 PyObject *resultobj = 0;
12185 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12186 wxFontWeight result;
12187 void *argp1 = 0 ;
12188 int res1 = 0 ;
12189 PyObject *swig_obj[1] ;
12190
12191 if (!args) SWIG_fail;
12192 swig_obj[0] = args;
12193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12194 if (!SWIG_IsOK(res1)) {
12195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12196 }
12197 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12198 {
12199 PyThreadState* __tstate = wxPyBeginAllowThreads();
12200 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12201 wxPyEndAllowThreads(__tstate);
12202 if (PyErr_Occurred()) SWIG_fail;
12203 }
12204 resultobj = SWIG_From_int(static_cast< int >(result));
12205 return resultobj;
12206 fail:
12207 return NULL;
12208 }
12209
12210
12211 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12212 PyObject *resultobj = 0;
12213 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12214 bool result;
12215 void *argp1 = 0 ;
12216 int res1 = 0 ;
12217 PyObject *swig_obj[1] ;
12218
12219 if (!args) SWIG_fail;
12220 swig_obj[0] = args;
12221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12222 if (!SWIG_IsOK(res1)) {
12223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12224 }
12225 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12226 {
12227 PyThreadState* __tstate = wxPyBeginAllowThreads();
12228 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12229 wxPyEndAllowThreads(__tstate);
12230 if (PyErr_Occurred()) SWIG_fail;
12231 }
12232 {
12233 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12234 }
12235 return resultobj;
12236 fail:
12237 return NULL;
12238 }
12239
12240
12241 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12242 PyObject *resultobj = 0;
12243 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12244 wxString result;
12245 void *argp1 = 0 ;
12246 int res1 = 0 ;
12247 PyObject *swig_obj[1] ;
12248
12249 if (!args) SWIG_fail;
12250 swig_obj[0] = args;
12251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12252 if (!SWIG_IsOK(res1)) {
12253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12254 }
12255 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12256 {
12257 PyThreadState* __tstate = wxPyBeginAllowThreads();
12258 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12259 wxPyEndAllowThreads(__tstate);
12260 if (PyErr_Occurred()) SWIG_fail;
12261 }
12262 {
12263 #if wxUSE_UNICODE
12264 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12265 #else
12266 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12267 #endif
12268 }
12269 return resultobj;
12270 fail:
12271 return NULL;
12272 }
12273
12274
12275 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12276 PyObject *resultobj = 0;
12277 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12278 wxFontFamily result;
12279 void *argp1 = 0 ;
12280 int res1 = 0 ;
12281 PyObject *swig_obj[1] ;
12282
12283 if (!args) SWIG_fail;
12284 swig_obj[0] = args;
12285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12286 if (!SWIG_IsOK(res1)) {
12287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12288 }
12289 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12290 {
12291 PyThreadState* __tstate = wxPyBeginAllowThreads();
12292 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12293 wxPyEndAllowThreads(__tstate);
12294 if (PyErr_Occurred()) SWIG_fail;
12295 }
12296 resultobj = SWIG_From_int(static_cast< int >(result));
12297 return resultobj;
12298 fail:
12299 return NULL;
12300 }
12301
12302
12303 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12304 PyObject *resultobj = 0;
12305 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12306 wxFontEncoding result;
12307 void *argp1 = 0 ;
12308 int res1 = 0 ;
12309 PyObject *swig_obj[1] ;
12310
12311 if (!args) SWIG_fail;
12312 swig_obj[0] = args;
12313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12314 if (!SWIG_IsOK(res1)) {
12315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12316 }
12317 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12318 {
12319 PyThreadState* __tstate = wxPyBeginAllowThreads();
12320 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12321 wxPyEndAllowThreads(__tstate);
12322 if (PyErr_Occurred()) SWIG_fail;
12323 }
12324 resultobj = SWIG_From_int(static_cast< int >(result));
12325 return resultobj;
12326 fail:
12327 return NULL;
12328 }
12329
12330
12331 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12332 PyObject *resultobj = 0;
12333 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12334 int arg2 ;
12335 void *argp1 = 0 ;
12336 int res1 = 0 ;
12337 int val2 ;
12338 int ecode2 = 0 ;
12339 PyObject * obj0 = 0 ;
12340 PyObject * obj1 = 0 ;
12341 char * kwnames[] = {
12342 (char *) "self",(char *) "pointsize", NULL
12343 };
12344
12345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12347 if (!SWIG_IsOK(res1)) {
12348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12349 }
12350 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12351 ecode2 = SWIG_AsVal_int(obj1, &val2);
12352 if (!SWIG_IsOK(ecode2)) {
12353 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12354 }
12355 arg2 = static_cast< int >(val2);
12356 {
12357 PyThreadState* __tstate = wxPyBeginAllowThreads();
12358 (arg1)->SetPointSize(arg2);
12359 wxPyEndAllowThreads(__tstate);
12360 if (PyErr_Occurred()) SWIG_fail;
12361 }
12362 resultobj = SWIG_Py_Void();
12363 return resultobj;
12364 fail:
12365 return NULL;
12366 }
12367
12368
12369 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12370 PyObject *resultobj = 0;
12371 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12372 wxFontStyle arg2 ;
12373 void *argp1 = 0 ;
12374 int res1 = 0 ;
12375 int val2 ;
12376 int ecode2 = 0 ;
12377 PyObject * obj0 = 0 ;
12378 PyObject * obj1 = 0 ;
12379 char * kwnames[] = {
12380 (char *) "self",(char *) "style", NULL
12381 };
12382
12383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12385 if (!SWIG_IsOK(res1)) {
12386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12387 }
12388 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12389 ecode2 = SWIG_AsVal_int(obj1, &val2);
12390 if (!SWIG_IsOK(ecode2)) {
12391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12392 }
12393 arg2 = static_cast< wxFontStyle >(val2);
12394 {
12395 PyThreadState* __tstate = wxPyBeginAllowThreads();
12396 (arg1)->SetStyle(arg2);
12397 wxPyEndAllowThreads(__tstate);
12398 if (PyErr_Occurred()) SWIG_fail;
12399 }
12400 resultobj = SWIG_Py_Void();
12401 return resultobj;
12402 fail:
12403 return NULL;
12404 }
12405
12406
12407 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12408 PyObject *resultobj = 0;
12409 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12410 wxFontWeight arg2 ;
12411 void *argp1 = 0 ;
12412 int res1 = 0 ;
12413 int val2 ;
12414 int ecode2 = 0 ;
12415 PyObject * obj0 = 0 ;
12416 PyObject * obj1 = 0 ;
12417 char * kwnames[] = {
12418 (char *) "self",(char *) "weight", NULL
12419 };
12420
12421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12423 if (!SWIG_IsOK(res1)) {
12424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12425 }
12426 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12427 ecode2 = SWIG_AsVal_int(obj1, &val2);
12428 if (!SWIG_IsOK(ecode2)) {
12429 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12430 }
12431 arg2 = static_cast< wxFontWeight >(val2);
12432 {
12433 PyThreadState* __tstate = wxPyBeginAllowThreads();
12434 (arg1)->SetWeight(arg2);
12435 wxPyEndAllowThreads(__tstate);
12436 if (PyErr_Occurred()) SWIG_fail;
12437 }
12438 resultobj = SWIG_Py_Void();
12439 return resultobj;
12440 fail:
12441 return NULL;
12442 }
12443
12444
12445 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12446 PyObject *resultobj = 0;
12447 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12448 bool arg2 ;
12449 void *argp1 = 0 ;
12450 int res1 = 0 ;
12451 bool val2 ;
12452 int ecode2 = 0 ;
12453 PyObject * obj0 = 0 ;
12454 PyObject * obj1 = 0 ;
12455 char * kwnames[] = {
12456 (char *) "self",(char *) "underlined", NULL
12457 };
12458
12459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12461 if (!SWIG_IsOK(res1)) {
12462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12463 }
12464 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12465 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12466 if (!SWIG_IsOK(ecode2)) {
12467 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12468 }
12469 arg2 = static_cast< bool >(val2);
12470 {
12471 PyThreadState* __tstate = wxPyBeginAllowThreads();
12472 (arg1)->SetUnderlined(arg2);
12473 wxPyEndAllowThreads(__tstate);
12474 if (PyErr_Occurred()) SWIG_fail;
12475 }
12476 resultobj = SWIG_Py_Void();
12477 return resultobj;
12478 fail:
12479 return NULL;
12480 }
12481
12482
12483 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12484 PyObject *resultobj = 0;
12485 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12486 wxString arg2 ;
12487 bool result;
12488 void *argp1 = 0 ;
12489 int res1 = 0 ;
12490 PyObject * obj0 = 0 ;
12491 PyObject * obj1 = 0 ;
12492 char * kwnames[] = {
12493 (char *) "self",(char *) "facename", NULL
12494 };
12495
12496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12498 if (!SWIG_IsOK(res1)) {
12499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12500 }
12501 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12502 {
12503 wxString* sptr = wxString_in_helper(obj1);
12504 if (sptr == NULL) SWIG_fail;
12505 arg2 = *sptr;
12506 delete sptr;
12507 }
12508 {
12509 PyThreadState* __tstate = wxPyBeginAllowThreads();
12510 result = (bool)(arg1)->SetFaceName(arg2);
12511 wxPyEndAllowThreads(__tstate);
12512 if (PyErr_Occurred()) SWIG_fail;
12513 }
12514 {
12515 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12516 }
12517 return resultobj;
12518 fail:
12519 return NULL;
12520 }
12521
12522
12523 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12524 PyObject *resultobj = 0;
12525 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12526 wxFontFamily arg2 ;
12527 void *argp1 = 0 ;
12528 int res1 = 0 ;
12529 int val2 ;
12530 int ecode2 = 0 ;
12531 PyObject * obj0 = 0 ;
12532 PyObject * obj1 = 0 ;
12533 char * kwnames[] = {
12534 (char *) "self",(char *) "family", NULL
12535 };
12536
12537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12539 if (!SWIG_IsOK(res1)) {
12540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12541 }
12542 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12543 ecode2 = SWIG_AsVal_int(obj1, &val2);
12544 if (!SWIG_IsOK(ecode2)) {
12545 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12546 }
12547 arg2 = static_cast< wxFontFamily >(val2);
12548 {
12549 PyThreadState* __tstate = wxPyBeginAllowThreads();
12550 (arg1)->SetFamily(arg2);
12551 wxPyEndAllowThreads(__tstate);
12552 if (PyErr_Occurred()) SWIG_fail;
12553 }
12554 resultobj = SWIG_Py_Void();
12555 return resultobj;
12556 fail:
12557 return NULL;
12558 }
12559
12560
12561 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12562 PyObject *resultobj = 0;
12563 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12564 wxFontEncoding arg2 ;
12565 void *argp1 = 0 ;
12566 int res1 = 0 ;
12567 int val2 ;
12568 int ecode2 = 0 ;
12569 PyObject * obj0 = 0 ;
12570 PyObject * obj1 = 0 ;
12571 char * kwnames[] = {
12572 (char *) "self",(char *) "encoding", NULL
12573 };
12574
12575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12577 if (!SWIG_IsOK(res1)) {
12578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12579 }
12580 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12581 ecode2 = SWIG_AsVal_int(obj1, &val2);
12582 if (!SWIG_IsOK(ecode2)) {
12583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12584 }
12585 arg2 = static_cast< wxFontEncoding >(val2);
12586 {
12587 PyThreadState* __tstate = wxPyBeginAllowThreads();
12588 (arg1)->SetEncoding(arg2);
12589 wxPyEndAllowThreads(__tstate);
12590 if (PyErr_Occurred()) SWIG_fail;
12591 }
12592 resultobj = SWIG_Py_Void();
12593 return resultobj;
12594 fail:
12595 return NULL;
12596 }
12597
12598
12599 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12600 PyObject *resultobj = 0;
12601 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12602 wxString *arg2 = 0 ;
12603 bool result;
12604 void *argp1 = 0 ;
12605 int res1 = 0 ;
12606 bool temp2 = false ;
12607 PyObject * obj0 = 0 ;
12608 PyObject * obj1 = 0 ;
12609 char * kwnames[] = {
12610 (char *) "self",(char *) "s", NULL
12611 };
12612
12613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12615 if (!SWIG_IsOK(res1)) {
12616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12617 }
12618 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12619 {
12620 arg2 = wxString_in_helper(obj1);
12621 if (arg2 == NULL) SWIG_fail;
12622 temp2 = true;
12623 }
12624 {
12625 PyThreadState* __tstate = wxPyBeginAllowThreads();
12626 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12627 wxPyEndAllowThreads(__tstate);
12628 if (PyErr_Occurred()) SWIG_fail;
12629 }
12630 {
12631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12632 }
12633 {
12634 if (temp2)
12635 delete arg2;
12636 }
12637 return resultobj;
12638 fail:
12639 {
12640 if (temp2)
12641 delete arg2;
12642 }
12643 return NULL;
12644 }
12645
12646
12647 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12648 PyObject *resultobj = 0;
12649 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12650 wxString result;
12651 void *argp1 = 0 ;
12652 int res1 = 0 ;
12653 PyObject *swig_obj[1] ;
12654
12655 if (!args) SWIG_fail;
12656 swig_obj[0] = args;
12657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12658 if (!SWIG_IsOK(res1)) {
12659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12660 }
12661 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12662 {
12663 PyThreadState* __tstate = wxPyBeginAllowThreads();
12664 result = ((wxNativeFontInfo const *)arg1)->ToString();
12665 wxPyEndAllowThreads(__tstate);
12666 if (PyErr_Occurred()) SWIG_fail;
12667 }
12668 {
12669 #if wxUSE_UNICODE
12670 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12671 #else
12672 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12673 #endif
12674 }
12675 return resultobj;
12676 fail:
12677 return NULL;
12678 }
12679
12680
12681 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12682 PyObject *resultobj = 0;
12683 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12684 wxString result;
12685 void *argp1 = 0 ;
12686 int res1 = 0 ;
12687 PyObject *swig_obj[1] ;
12688
12689 if (!args) SWIG_fail;
12690 swig_obj[0] = args;
12691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12692 if (!SWIG_IsOK(res1)) {
12693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12694 }
12695 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12696 {
12697 PyThreadState* __tstate = wxPyBeginAllowThreads();
12698 result = wxNativeFontInfo___str__(arg1);
12699 wxPyEndAllowThreads(__tstate);
12700 if (PyErr_Occurred()) SWIG_fail;
12701 }
12702 {
12703 #if wxUSE_UNICODE
12704 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12705 #else
12706 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12707 #endif
12708 }
12709 return resultobj;
12710 fail:
12711 return NULL;
12712 }
12713
12714
12715 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12716 PyObject *resultobj = 0;
12717 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12718 wxString *arg2 = 0 ;
12719 bool result;
12720 void *argp1 = 0 ;
12721 int res1 = 0 ;
12722 bool temp2 = false ;
12723 PyObject * obj0 = 0 ;
12724 PyObject * obj1 = 0 ;
12725 char * kwnames[] = {
12726 (char *) "self",(char *) "s", NULL
12727 };
12728
12729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12731 if (!SWIG_IsOK(res1)) {
12732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12733 }
12734 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12735 {
12736 arg2 = wxString_in_helper(obj1);
12737 if (arg2 == NULL) SWIG_fail;
12738 temp2 = true;
12739 }
12740 {
12741 PyThreadState* __tstate = wxPyBeginAllowThreads();
12742 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12743 wxPyEndAllowThreads(__tstate);
12744 if (PyErr_Occurred()) SWIG_fail;
12745 }
12746 {
12747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12748 }
12749 {
12750 if (temp2)
12751 delete arg2;
12752 }
12753 return resultobj;
12754 fail:
12755 {
12756 if (temp2)
12757 delete arg2;
12758 }
12759 return NULL;
12760 }
12761
12762
12763 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12764 PyObject *resultobj = 0;
12765 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12766 wxString result;
12767 void *argp1 = 0 ;
12768 int res1 = 0 ;
12769 PyObject *swig_obj[1] ;
12770
12771 if (!args) SWIG_fail;
12772 swig_obj[0] = args;
12773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12774 if (!SWIG_IsOK(res1)) {
12775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12776 }
12777 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12778 {
12779 PyThreadState* __tstate = wxPyBeginAllowThreads();
12780 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12781 wxPyEndAllowThreads(__tstate);
12782 if (PyErr_Occurred()) SWIG_fail;
12783 }
12784 {
12785 #if wxUSE_UNICODE
12786 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12787 #else
12788 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12789 #endif
12790 }
12791 return resultobj;
12792 fail:
12793 return NULL;
12794 }
12795
12796
12797 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12798 PyObject *obj;
12799 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12800 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12801 return SWIG_Py_Void();
12802 }
12803
12804 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12805 return SWIG_Python_InitShadowInstance(args);
12806 }
12807
12808 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12809 PyObject *resultobj = 0;
12810 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12811 wxString *arg2 = (wxString *) 0 ;
12812 void *argp1 = 0 ;
12813 int res1 = 0 ;
12814 bool temp2 = false ;
12815 PyObject *swig_obj[2] ;
12816
12817 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12819 if (!SWIG_IsOK(res1)) {
12820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12821 }
12822 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12823 {
12824 arg2 = wxString_in_helper(swig_obj[1]);
12825 if (arg2 == NULL) SWIG_fail;
12826 temp2 = true;
12827 }
12828 if (arg1) (arg1)->facename = *arg2;
12829
12830 resultobj = SWIG_Py_Void();
12831 {
12832 if (temp2)
12833 delete arg2;
12834 }
12835 return resultobj;
12836 fail:
12837 {
12838 if (temp2)
12839 delete arg2;
12840 }
12841 return NULL;
12842 }
12843
12844
12845 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12846 PyObject *resultobj = 0;
12847 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12848 wxString *result = 0 ;
12849 void *argp1 = 0 ;
12850 int res1 = 0 ;
12851 PyObject *swig_obj[1] ;
12852
12853 if (!args) SWIG_fail;
12854 swig_obj[0] = args;
12855 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12856 if (!SWIG_IsOK(res1)) {
12857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12858 }
12859 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12860 result = (wxString *)& ((arg1)->facename);
12861 {
12862 #if wxUSE_UNICODE
12863 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12864 #else
12865 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12866 #endif
12867 }
12868 return resultobj;
12869 fail:
12870 return NULL;
12871 }
12872
12873
12874 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12875 PyObject *resultobj = 0;
12876 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12877 wxFontEncoding arg2 ;
12878 void *argp1 = 0 ;
12879 int res1 = 0 ;
12880 int val2 ;
12881 int ecode2 = 0 ;
12882 PyObject *swig_obj[2] ;
12883
12884 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12886 if (!SWIG_IsOK(res1)) {
12887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12888 }
12889 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12890 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12891 if (!SWIG_IsOK(ecode2)) {
12892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12893 }
12894 arg2 = static_cast< wxFontEncoding >(val2);
12895 if (arg1) (arg1)->encoding = arg2;
12896
12897 resultobj = SWIG_Py_Void();
12898 return resultobj;
12899 fail:
12900 return NULL;
12901 }
12902
12903
12904 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12905 PyObject *resultobj = 0;
12906 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12907 wxFontEncoding result;
12908 void *argp1 = 0 ;
12909 int res1 = 0 ;
12910 PyObject *swig_obj[1] ;
12911
12912 if (!args) SWIG_fail;
12913 swig_obj[0] = args;
12914 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12915 if (!SWIG_IsOK(res1)) {
12916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12917 }
12918 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12919 result = (wxFontEncoding) ((arg1)->encoding);
12920 resultobj = SWIG_From_int(static_cast< int >(result));
12921 return resultobj;
12922 fail:
12923 return NULL;
12924 }
12925
12926
12927 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12928 PyObject *resultobj = 0;
12929 wxNativeEncodingInfo *result = 0 ;
12930
12931 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12932 {
12933 PyThreadState* __tstate = wxPyBeginAllowThreads();
12934 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12935 wxPyEndAllowThreads(__tstate);
12936 if (PyErr_Occurred()) SWIG_fail;
12937 }
12938 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12939 return resultobj;
12940 fail:
12941 return NULL;
12942 }
12943
12944
12945 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12946 PyObject *resultobj = 0;
12947 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12948 void *argp1 = 0 ;
12949 int res1 = 0 ;
12950 PyObject *swig_obj[1] ;
12951
12952 if (!args) SWIG_fail;
12953 swig_obj[0] = args;
12954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12955 if (!SWIG_IsOK(res1)) {
12956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12957 }
12958 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12959 {
12960 PyThreadState* __tstate = wxPyBeginAllowThreads();
12961 delete arg1;
12962
12963 wxPyEndAllowThreads(__tstate);
12964 if (PyErr_Occurred()) SWIG_fail;
12965 }
12966 resultobj = SWIG_Py_Void();
12967 return resultobj;
12968 fail:
12969 return NULL;
12970 }
12971
12972
12973 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12974 PyObject *resultobj = 0;
12975 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12976 wxString *arg2 = 0 ;
12977 bool result;
12978 void *argp1 = 0 ;
12979 int res1 = 0 ;
12980 bool temp2 = false ;
12981 PyObject * obj0 = 0 ;
12982 PyObject * obj1 = 0 ;
12983 char * kwnames[] = {
12984 (char *) "self",(char *) "s", NULL
12985 };
12986
12987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12989 if (!SWIG_IsOK(res1)) {
12990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12991 }
12992 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12993 {
12994 arg2 = wxString_in_helper(obj1);
12995 if (arg2 == NULL) SWIG_fail;
12996 temp2 = true;
12997 }
12998 {
12999 PyThreadState* __tstate = wxPyBeginAllowThreads();
13000 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13001 wxPyEndAllowThreads(__tstate);
13002 if (PyErr_Occurred()) SWIG_fail;
13003 }
13004 {
13005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13006 }
13007 {
13008 if (temp2)
13009 delete arg2;
13010 }
13011 return resultobj;
13012 fail:
13013 {
13014 if (temp2)
13015 delete arg2;
13016 }
13017 return NULL;
13018 }
13019
13020
13021 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13022 PyObject *resultobj = 0;
13023 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13024 wxString result;
13025 void *argp1 = 0 ;
13026 int res1 = 0 ;
13027 PyObject *swig_obj[1] ;
13028
13029 if (!args) SWIG_fail;
13030 swig_obj[0] = args;
13031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13032 if (!SWIG_IsOK(res1)) {
13033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13034 }
13035 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13036 {
13037 PyThreadState* __tstate = wxPyBeginAllowThreads();
13038 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13039 wxPyEndAllowThreads(__tstate);
13040 if (PyErr_Occurred()) SWIG_fail;
13041 }
13042 {
13043 #if wxUSE_UNICODE
13044 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13045 #else
13046 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13047 #endif
13048 }
13049 return resultobj;
13050 fail:
13051 return NULL;
13052 }
13053
13054
13055 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13056 PyObject *obj;
13057 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13058 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13059 return SWIG_Py_Void();
13060 }
13061
13062 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13063 return SWIG_Python_InitShadowInstance(args);
13064 }
13065
13066 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13067 PyObject *resultobj = 0;
13068 wxFontEncoding arg1 ;
13069 wxNativeEncodingInfo *result = 0 ;
13070 int val1 ;
13071 int ecode1 = 0 ;
13072 PyObject * obj0 = 0 ;
13073 char * kwnames[] = {
13074 (char *) "encoding", NULL
13075 };
13076
13077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13078 ecode1 = SWIG_AsVal_int(obj0, &val1);
13079 if (!SWIG_IsOK(ecode1)) {
13080 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13081 }
13082 arg1 = static_cast< wxFontEncoding >(val1);
13083 {
13084 PyThreadState* __tstate = wxPyBeginAllowThreads();
13085 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13086 wxPyEndAllowThreads(__tstate);
13087 if (PyErr_Occurred()) SWIG_fail;
13088 }
13089 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13090 return resultobj;
13091 fail:
13092 return NULL;
13093 }
13094
13095
13096 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13097 PyObject *resultobj = 0;
13098 wxNativeEncodingInfo *arg1 = 0 ;
13099 bool result;
13100 void *argp1 = 0 ;
13101 int res1 = 0 ;
13102 PyObject * obj0 = 0 ;
13103 char * kwnames[] = {
13104 (char *) "info", NULL
13105 };
13106
13107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13108 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13109 if (!SWIG_IsOK(res1)) {
13110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13111 }
13112 if (!argp1) {
13113 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13114 }
13115 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13116 {
13117 PyThreadState* __tstate = wxPyBeginAllowThreads();
13118 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13119 wxPyEndAllowThreads(__tstate);
13120 if (PyErr_Occurred()) SWIG_fail;
13121 }
13122 {
13123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13124 }
13125 return resultobj;
13126 fail:
13127 return NULL;
13128 }
13129
13130
13131 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13132 PyObject *resultobj = 0;
13133 wxFontMapper *result = 0 ;
13134
13135 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13136 {
13137 PyThreadState* __tstate = wxPyBeginAllowThreads();
13138 result = (wxFontMapper *)new wxFontMapper();
13139 wxPyEndAllowThreads(__tstate);
13140 if (PyErr_Occurred()) SWIG_fail;
13141 }
13142 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13143 return resultobj;
13144 fail:
13145 return NULL;
13146 }
13147
13148
13149 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13150 PyObject *resultobj = 0;
13151 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13152 void *argp1 = 0 ;
13153 int res1 = 0 ;
13154 PyObject *swig_obj[1] ;
13155
13156 if (!args) SWIG_fail;
13157 swig_obj[0] = args;
13158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13159 if (!SWIG_IsOK(res1)) {
13160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13161 }
13162 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13163 {
13164 PyThreadState* __tstate = wxPyBeginAllowThreads();
13165 delete arg1;
13166
13167 wxPyEndAllowThreads(__tstate);
13168 if (PyErr_Occurred()) SWIG_fail;
13169 }
13170 resultobj = SWIG_Py_Void();
13171 return resultobj;
13172 fail:
13173 return NULL;
13174 }
13175
13176
13177 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13178 PyObject *resultobj = 0;
13179 wxFontMapper *result = 0 ;
13180
13181 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13182 {
13183 PyThreadState* __tstate = wxPyBeginAllowThreads();
13184 result = (wxFontMapper *)wxFontMapper::Get();
13185 wxPyEndAllowThreads(__tstate);
13186 if (PyErr_Occurred()) SWIG_fail;
13187 }
13188 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13189 return resultobj;
13190 fail:
13191 return NULL;
13192 }
13193
13194
13195 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13196 PyObject *resultobj = 0;
13197 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13198 wxFontMapper *result = 0 ;
13199 void *argp1 = 0 ;
13200 int res1 = 0 ;
13201 PyObject * obj0 = 0 ;
13202 char * kwnames[] = {
13203 (char *) "mapper", NULL
13204 };
13205
13206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13208 if (!SWIG_IsOK(res1)) {
13209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13210 }
13211 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13212 {
13213 PyThreadState* __tstate = wxPyBeginAllowThreads();
13214 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13215 wxPyEndAllowThreads(__tstate);
13216 if (PyErr_Occurred()) SWIG_fail;
13217 }
13218 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13219 return resultobj;
13220 fail:
13221 return NULL;
13222 }
13223
13224
13225 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13226 PyObject *resultobj = 0;
13227 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13228 wxString *arg2 = 0 ;
13229 bool arg3 = (bool) true ;
13230 wxFontEncoding result;
13231 void *argp1 = 0 ;
13232 int res1 = 0 ;
13233 bool temp2 = false ;
13234 bool val3 ;
13235 int ecode3 = 0 ;
13236 PyObject * obj0 = 0 ;
13237 PyObject * obj1 = 0 ;
13238 PyObject * obj2 = 0 ;
13239 char * kwnames[] = {
13240 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13241 };
13242
13243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13245 if (!SWIG_IsOK(res1)) {
13246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13247 }
13248 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13249 {
13250 arg2 = wxString_in_helper(obj1);
13251 if (arg2 == NULL) SWIG_fail;
13252 temp2 = true;
13253 }
13254 if (obj2) {
13255 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13256 if (!SWIG_IsOK(ecode3)) {
13257 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13258 }
13259 arg3 = static_cast< bool >(val3);
13260 }
13261 {
13262 PyThreadState* __tstate = wxPyBeginAllowThreads();
13263 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13264 wxPyEndAllowThreads(__tstate);
13265 if (PyErr_Occurred()) SWIG_fail;
13266 }
13267 resultobj = SWIG_From_int(static_cast< int >(result));
13268 {
13269 if (temp2)
13270 delete arg2;
13271 }
13272 return resultobj;
13273 fail:
13274 {
13275 if (temp2)
13276 delete arg2;
13277 }
13278 return NULL;
13279 }
13280
13281
13282 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13283 PyObject *resultobj = 0;
13284 size_t result;
13285
13286 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13287 {
13288 PyThreadState* __tstate = wxPyBeginAllowThreads();
13289 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13290 wxPyEndAllowThreads(__tstate);
13291 if (PyErr_Occurred()) SWIG_fail;
13292 }
13293 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13294 return resultobj;
13295 fail:
13296 return NULL;
13297 }
13298
13299
13300 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13301 PyObject *resultobj = 0;
13302 size_t arg1 ;
13303 wxFontEncoding result;
13304 size_t val1 ;
13305 int ecode1 = 0 ;
13306 PyObject * obj0 = 0 ;
13307 char * kwnames[] = {
13308 (char *) "n", NULL
13309 };
13310
13311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13312 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13313 if (!SWIG_IsOK(ecode1)) {
13314 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13315 }
13316 arg1 = static_cast< size_t >(val1);
13317 {
13318 PyThreadState* __tstate = wxPyBeginAllowThreads();
13319 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13320 wxPyEndAllowThreads(__tstate);
13321 if (PyErr_Occurred()) SWIG_fail;
13322 }
13323 resultobj = SWIG_From_int(static_cast< int >(result));
13324 return resultobj;
13325 fail:
13326 return NULL;
13327 }
13328
13329
13330 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13331 PyObject *resultobj = 0;
13332 wxFontEncoding arg1 ;
13333 wxString result;
13334 int val1 ;
13335 int ecode1 = 0 ;
13336 PyObject * obj0 = 0 ;
13337 char * kwnames[] = {
13338 (char *) "encoding", NULL
13339 };
13340
13341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13342 ecode1 = SWIG_AsVal_int(obj0, &val1);
13343 if (!SWIG_IsOK(ecode1)) {
13344 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13345 }
13346 arg1 = static_cast< wxFontEncoding >(val1);
13347 {
13348 PyThreadState* __tstate = wxPyBeginAllowThreads();
13349 result = wxFontMapper::GetEncodingName(arg1);
13350 wxPyEndAllowThreads(__tstate);
13351 if (PyErr_Occurred()) SWIG_fail;
13352 }
13353 {
13354 #if wxUSE_UNICODE
13355 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13356 #else
13357 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13358 #endif
13359 }
13360 return resultobj;
13361 fail:
13362 return NULL;
13363 }
13364
13365
13366 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13367 PyObject *resultobj = 0;
13368 wxFontEncoding arg1 ;
13369 wxString result;
13370 int val1 ;
13371 int ecode1 = 0 ;
13372 PyObject * obj0 = 0 ;
13373 char * kwnames[] = {
13374 (char *) "encoding", NULL
13375 };
13376
13377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13378 ecode1 = SWIG_AsVal_int(obj0, &val1);
13379 if (!SWIG_IsOK(ecode1)) {
13380 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13381 }
13382 arg1 = static_cast< wxFontEncoding >(val1);
13383 {
13384 PyThreadState* __tstate = wxPyBeginAllowThreads();
13385 result = wxFontMapper::GetEncodingDescription(arg1);
13386 wxPyEndAllowThreads(__tstate);
13387 if (PyErr_Occurred()) SWIG_fail;
13388 }
13389 {
13390 #if wxUSE_UNICODE
13391 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13392 #else
13393 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13394 #endif
13395 }
13396 return resultobj;
13397 fail:
13398 return NULL;
13399 }
13400
13401
13402 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13403 PyObject *resultobj = 0;
13404 wxString *arg1 = 0 ;
13405 wxFontEncoding result;
13406 bool temp1 = false ;
13407 PyObject * obj0 = 0 ;
13408 char * kwnames[] = {
13409 (char *) "name", NULL
13410 };
13411
13412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13413 {
13414 arg1 = wxString_in_helper(obj0);
13415 if (arg1 == NULL) SWIG_fail;
13416 temp1 = true;
13417 }
13418 {
13419 PyThreadState* __tstate = wxPyBeginAllowThreads();
13420 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13421 wxPyEndAllowThreads(__tstate);
13422 if (PyErr_Occurred()) SWIG_fail;
13423 }
13424 resultobj = SWIG_From_int(static_cast< int >(result));
13425 {
13426 if (temp1)
13427 delete arg1;
13428 }
13429 return resultobj;
13430 fail:
13431 {
13432 if (temp1)
13433 delete arg1;
13434 }
13435 return NULL;
13436 }
13437
13438
13439 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13440 PyObject *resultobj = 0;
13441 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13442 wxString *arg2 = 0 ;
13443 void *argp1 = 0 ;
13444 int res1 = 0 ;
13445 bool temp2 = false ;
13446 PyObject * obj0 = 0 ;
13447 PyObject * obj1 = 0 ;
13448 char * kwnames[] = {
13449 (char *) "self",(char *) "prefix", NULL
13450 };
13451
13452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13454 if (!SWIG_IsOK(res1)) {
13455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13456 }
13457 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13458 {
13459 arg2 = wxString_in_helper(obj1);
13460 if (arg2 == NULL) SWIG_fail;
13461 temp2 = true;
13462 }
13463 {
13464 PyThreadState* __tstate = wxPyBeginAllowThreads();
13465 (arg1)->SetConfigPath((wxString const &)*arg2);
13466 wxPyEndAllowThreads(__tstate);
13467 if (PyErr_Occurred()) SWIG_fail;
13468 }
13469 resultobj = SWIG_Py_Void();
13470 {
13471 if (temp2)
13472 delete arg2;
13473 }
13474 return resultobj;
13475 fail:
13476 {
13477 if (temp2)
13478 delete arg2;
13479 }
13480 return NULL;
13481 }
13482
13483
13484 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13485 PyObject *resultobj = 0;
13486 wxString result;
13487
13488 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13489 {
13490 PyThreadState* __tstate = wxPyBeginAllowThreads();
13491 result = wxFontMapper::GetDefaultConfigPath();
13492 wxPyEndAllowThreads(__tstate);
13493 if (PyErr_Occurred()) SWIG_fail;
13494 }
13495 {
13496 #if wxUSE_UNICODE
13497 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13498 #else
13499 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13500 #endif
13501 }
13502 return resultobj;
13503 fail:
13504 return NULL;
13505 }
13506
13507
13508 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13509 PyObject *resultobj = 0;
13510 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13511 wxFontEncoding arg2 ;
13512 wxString const &arg3_defvalue = wxPyEmptyString ;
13513 wxString *arg3 = (wxString *) &arg3_defvalue ;
13514 bool arg4 = (bool) true ;
13515 PyObject *result = 0 ;
13516 void *argp1 = 0 ;
13517 int res1 = 0 ;
13518 int val2 ;
13519 int ecode2 = 0 ;
13520 bool temp3 = false ;
13521 bool val4 ;
13522 int ecode4 = 0 ;
13523 PyObject * obj0 = 0 ;
13524 PyObject * obj1 = 0 ;
13525 PyObject * obj2 = 0 ;
13526 PyObject * obj3 = 0 ;
13527 char * kwnames[] = {
13528 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13529 };
13530
13531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13533 if (!SWIG_IsOK(res1)) {
13534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13535 }
13536 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13537 ecode2 = SWIG_AsVal_int(obj1, &val2);
13538 if (!SWIG_IsOK(ecode2)) {
13539 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13540 }
13541 arg2 = static_cast< wxFontEncoding >(val2);
13542 if (obj2) {
13543 {
13544 arg3 = wxString_in_helper(obj2);
13545 if (arg3 == NULL) SWIG_fail;
13546 temp3 = true;
13547 }
13548 }
13549 if (obj3) {
13550 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13551 if (!SWIG_IsOK(ecode4)) {
13552 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13553 }
13554 arg4 = static_cast< bool >(val4);
13555 }
13556 {
13557 PyThreadState* __tstate = wxPyBeginAllowThreads();
13558 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13559 wxPyEndAllowThreads(__tstate);
13560 if (PyErr_Occurred()) SWIG_fail;
13561 }
13562 resultobj = result;
13563 {
13564 if (temp3)
13565 delete arg3;
13566 }
13567 return resultobj;
13568 fail:
13569 {
13570 if (temp3)
13571 delete arg3;
13572 }
13573 return NULL;
13574 }
13575
13576
13577 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13578 PyObject *resultobj = 0;
13579 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13580 wxFontEncoding arg2 ;
13581 wxString const &arg3_defvalue = wxPyEmptyString ;
13582 wxString *arg3 = (wxString *) &arg3_defvalue ;
13583 bool result;
13584 void *argp1 = 0 ;
13585 int res1 = 0 ;
13586 int val2 ;
13587 int ecode2 = 0 ;
13588 bool temp3 = false ;
13589 PyObject * obj0 = 0 ;
13590 PyObject * obj1 = 0 ;
13591 PyObject * obj2 = 0 ;
13592 char * kwnames[] = {
13593 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13594 };
13595
13596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13598 if (!SWIG_IsOK(res1)) {
13599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13600 }
13601 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13602 ecode2 = SWIG_AsVal_int(obj1, &val2);
13603 if (!SWIG_IsOK(ecode2)) {
13604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13605 }
13606 arg2 = static_cast< wxFontEncoding >(val2);
13607 if (obj2) {
13608 {
13609 arg3 = wxString_in_helper(obj2);
13610 if (arg3 == NULL) SWIG_fail;
13611 temp3 = true;
13612 }
13613 }
13614 {
13615 PyThreadState* __tstate = wxPyBeginAllowThreads();
13616 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13617 wxPyEndAllowThreads(__tstate);
13618 if (PyErr_Occurred()) SWIG_fail;
13619 }
13620 {
13621 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13622 }
13623 {
13624 if (temp3)
13625 delete arg3;
13626 }
13627 return resultobj;
13628 fail:
13629 {
13630 if (temp3)
13631 delete arg3;
13632 }
13633 return NULL;
13634 }
13635
13636
13637 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13638 PyObject *resultobj = 0;
13639 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13640 wxWindow *arg2 = (wxWindow *) 0 ;
13641 void *argp1 = 0 ;
13642 int res1 = 0 ;
13643 void *argp2 = 0 ;
13644 int res2 = 0 ;
13645 PyObject * obj0 = 0 ;
13646 PyObject * obj1 = 0 ;
13647 char * kwnames[] = {
13648 (char *) "self",(char *) "parent", NULL
13649 };
13650
13651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13653 if (!SWIG_IsOK(res1)) {
13654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13655 }
13656 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13657 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13658 if (!SWIG_IsOK(res2)) {
13659 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13660 }
13661 arg2 = reinterpret_cast< wxWindow * >(argp2);
13662 {
13663 PyThreadState* __tstate = wxPyBeginAllowThreads();
13664 (arg1)->SetDialogParent(arg2);
13665 wxPyEndAllowThreads(__tstate);
13666 if (PyErr_Occurred()) SWIG_fail;
13667 }
13668 resultobj = SWIG_Py_Void();
13669 return resultobj;
13670 fail:
13671 return NULL;
13672 }
13673
13674
13675 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13676 PyObject *resultobj = 0;
13677 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13678 wxString *arg2 = 0 ;
13679 void *argp1 = 0 ;
13680 int res1 = 0 ;
13681 bool temp2 = false ;
13682 PyObject * obj0 = 0 ;
13683 PyObject * obj1 = 0 ;
13684 char * kwnames[] = {
13685 (char *) "self",(char *) "title", NULL
13686 };
13687
13688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13690 if (!SWIG_IsOK(res1)) {
13691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13692 }
13693 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13694 {
13695 arg2 = wxString_in_helper(obj1);
13696 if (arg2 == NULL) SWIG_fail;
13697 temp2 = true;
13698 }
13699 {
13700 PyThreadState* __tstate = wxPyBeginAllowThreads();
13701 (arg1)->SetDialogTitle((wxString const &)*arg2);
13702 wxPyEndAllowThreads(__tstate);
13703 if (PyErr_Occurred()) SWIG_fail;
13704 }
13705 resultobj = SWIG_Py_Void();
13706 {
13707 if (temp2)
13708 delete arg2;
13709 }
13710 return resultobj;
13711 fail:
13712 {
13713 if (temp2)
13714 delete arg2;
13715 }
13716 return NULL;
13717 }
13718
13719
13720 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13721 PyObject *obj;
13722 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13723 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13724 return SWIG_Py_Void();
13725 }
13726
13727 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13728 return SWIG_Python_InitShadowInstance(args);
13729 }
13730
13731 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13732 PyObject *resultobj = 0;
13733 int arg1 ;
13734 int arg2 ;
13735 int arg3 ;
13736 int arg4 ;
13737 bool arg5 = (bool) false ;
13738 wxString const &arg6_defvalue = wxPyEmptyString ;
13739 wxString *arg6 = (wxString *) &arg6_defvalue ;
13740 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13741 wxFont *result = 0 ;
13742 int val1 ;
13743 int ecode1 = 0 ;
13744 int val2 ;
13745 int ecode2 = 0 ;
13746 int val3 ;
13747 int ecode3 = 0 ;
13748 int val4 ;
13749 int ecode4 = 0 ;
13750 bool val5 ;
13751 int ecode5 = 0 ;
13752 bool temp6 = false ;
13753 int val7 ;
13754 int ecode7 = 0 ;
13755 PyObject * obj0 = 0 ;
13756 PyObject * obj1 = 0 ;
13757 PyObject * obj2 = 0 ;
13758 PyObject * obj3 = 0 ;
13759 PyObject * obj4 = 0 ;
13760 PyObject * obj5 = 0 ;
13761 PyObject * obj6 = 0 ;
13762 char * kwnames[] = {
13763 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13764 };
13765
13766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13767 ecode1 = SWIG_AsVal_int(obj0, &val1);
13768 if (!SWIG_IsOK(ecode1)) {
13769 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13770 }
13771 arg1 = static_cast< int >(val1);
13772 ecode2 = SWIG_AsVal_int(obj1, &val2);
13773 if (!SWIG_IsOK(ecode2)) {
13774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13775 }
13776 arg2 = static_cast< int >(val2);
13777 ecode3 = SWIG_AsVal_int(obj2, &val3);
13778 if (!SWIG_IsOK(ecode3)) {
13779 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13780 }
13781 arg3 = static_cast< int >(val3);
13782 ecode4 = SWIG_AsVal_int(obj3, &val4);
13783 if (!SWIG_IsOK(ecode4)) {
13784 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13785 }
13786 arg4 = static_cast< int >(val4);
13787 if (obj4) {
13788 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13789 if (!SWIG_IsOK(ecode5)) {
13790 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13791 }
13792 arg5 = static_cast< bool >(val5);
13793 }
13794 if (obj5) {
13795 {
13796 arg6 = wxString_in_helper(obj5);
13797 if (arg6 == NULL) SWIG_fail;
13798 temp6 = true;
13799 }
13800 }
13801 if (obj6) {
13802 ecode7 = SWIG_AsVal_int(obj6, &val7);
13803 if (!SWIG_IsOK(ecode7)) {
13804 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13805 }
13806 arg7 = static_cast< wxFontEncoding >(val7);
13807 }
13808 {
13809 if (!wxPyCheckForApp()) SWIG_fail;
13810 PyThreadState* __tstate = wxPyBeginAllowThreads();
13811 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13812 wxPyEndAllowThreads(__tstate);
13813 if (PyErr_Occurred()) SWIG_fail;
13814 }
13815 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13816 {
13817 if (temp6)
13818 delete arg6;
13819 }
13820 return resultobj;
13821 fail:
13822 {
13823 if (temp6)
13824 delete arg6;
13825 }
13826 return NULL;
13827 }
13828
13829
13830 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13831 PyObject *resultobj = 0;
13832 wxFont *arg1 = (wxFont *) 0 ;
13833 void *argp1 = 0 ;
13834 int res1 = 0 ;
13835 PyObject *swig_obj[1] ;
13836
13837 if (!args) SWIG_fail;
13838 swig_obj[0] = args;
13839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13840 if (!SWIG_IsOK(res1)) {
13841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13842 }
13843 arg1 = reinterpret_cast< wxFont * >(argp1);
13844 {
13845 PyThreadState* __tstate = wxPyBeginAllowThreads();
13846 delete arg1;
13847
13848 wxPyEndAllowThreads(__tstate);
13849 if (PyErr_Occurred()) SWIG_fail;
13850 }
13851 resultobj = SWIG_Py_Void();
13852 return resultobj;
13853 fail:
13854 return NULL;
13855 }
13856
13857
13858 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13859 PyObject *resultobj = 0;
13860 wxNativeFontInfo *arg1 = 0 ;
13861 wxFont *result = 0 ;
13862 void *argp1 = 0 ;
13863 int res1 = 0 ;
13864 PyObject * obj0 = 0 ;
13865 char * kwnames[] = {
13866 (char *) "info", NULL
13867 };
13868
13869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13870 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13871 if (!SWIG_IsOK(res1)) {
13872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13873 }
13874 if (!argp1) {
13875 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13876 }
13877 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13878 {
13879 if (!wxPyCheckForApp()) SWIG_fail;
13880 PyThreadState* __tstate = wxPyBeginAllowThreads();
13881 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13882 wxPyEndAllowThreads(__tstate);
13883 if (PyErr_Occurred()) SWIG_fail;
13884 }
13885 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13886 return resultobj;
13887 fail:
13888 return NULL;
13889 }
13890
13891
13892 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13893 PyObject *resultobj = 0;
13894 wxString *arg1 = 0 ;
13895 wxFont *result = 0 ;
13896 bool temp1 = false ;
13897 PyObject * obj0 = 0 ;
13898 char * kwnames[] = {
13899 (char *) "info", NULL
13900 };
13901
13902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13903 {
13904 arg1 = wxString_in_helper(obj0);
13905 if (arg1 == NULL) SWIG_fail;
13906 temp1 = true;
13907 }
13908 {
13909 if (!wxPyCheckForApp()) SWIG_fail;
13910 PyThreadState* __tstate = wxPyBeginAllowThreads();
13911 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13912 wxPyEndAllowThreads(__tstate);
13913 if (PyErr_Occurred()) SWIG_fail;
13914 }
13915 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13916 {
13917 if (temp1)
13918 delete arg1;
13919 }
13920 return resultobj;
13921 fail:
13922 {
13923 if (temp1)
13924 delete arg1;
13925 }
13926 return NULL;
13927 }
13928
13929
13930 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13931 PyObject *resultobj = 0;
13932 int arg1 ;
13933 wxFontFamily arg2 ;
13934 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13935 wxString const &arg4_defvalue = wxPyEmptyString ;
13936 wxString *arg4 = (wxString *) &arg4_defvalue ;
13937 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13938 wxFont *result = 0 ;
13939 int val1 ;
13940 int ecode1 = 0 ;
13941 int val2 ;
13942 int ecode2 = 0 ;
13943 int val3 ;
13944 int ecode3 = 0 ;
13945 bool temp4 = false ;
13946 int val5 ;
13947 int ecode5 = 0 ;
13948 PyObject * obj0 = 0 ;
13949 PyObject * obj1 = 0 ;
13950 PyObject * obj2 = 0 ;
13951 PyObject * obj3 = 0 ;
13952 PyObject * obj4 = 0 ;
13953 char * kwnames[] = {
13954 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13955 };
13956
13957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13958 ecode1 = SWIG_AsVal_int(obj0, &val1);
13959 if (!SWIG_IsOK(ecode1)) {
13960 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13961 }
13962 arg1 = static_cast< int >(val1);
13963 ecode2 = SWIG_AsVal_int(obj1, &val2);
13964 if (!SWIG_IsOK(ecode2)) {
13965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13966 }
13967 arg2 = static_cast< wxFontFamily >(val2);
13968 if (obj2) {
13969 ecode3 = SWIG_AsVal_int(obj2, &val3);
13970 if (!SWIG_IsOK(ecode3)) {
13971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13972 }
13973 arg3 = static_cast< int >(val3);
13974 }
13975 if (obj3) {
13976 {
13977 arg4 = wxString_in_helper(obj3);
13978 if (arg4 == NULL) SWIG_fail;
13979 temp4 = true;
13980 }
13981 }
13982 if (obj4) {
13983 ecode5 = SWIG_AsVal_int(obj4, &val5);
13984 if (!SWIG_IsOK(ecode5)) {
13985 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13986 }
13987 arg5 = static_cast< wxFontEncoding >(val5);
13988 }
13989 {
13990 if (!wxPyCheckForApp()) SWIG_fail;
13991 PyThreadState* __tstate = wxPyBeginAllowThreads();
13992 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13993 wxPyEndAllowThreads(__tstate);
13994 if (PyErr_Occurred()) SWIG_fail;
13995 }
13996 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13997 {
13998 if (temp4)
13999 delete arg4;
14000 }
14001 return resultobj;
14002 fail:
14003 {
14004 if (temp4)
14005 delete arg4;
14006 }
14007 return NULL;
14008 }
14009
14010
14011 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14012 PyObject *resultobj = 0;
14013 wxSize *arg1 = 0 ;
14014 int arg2 ;
14015 int arg3 ;
14016 int arg4 ;
14017 bool arg5 = (bool) false ;
14018 wxString const &arg6_defvalue = wxEmptyString ;
14019 wxString *arg6 = (wxString *) &arg6_defvalue ;
14020 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14021 wxFont *result = 0 ;
14022 wxSize temp1 ;
14023 int val2 ;
14024 int ecode2 = 0 ;
14025 int val3 ;
14026 int ecode3 = 0 ;
14027 int val4 ;
14028 int ecode4 = 0 ;
14029 bool val5 ;
14030 int ecode5 = 0 ;
14031 bool temp6 = false ;
14032 int val7 ;
14033 int ecode7 = 0 ;
14034 PyObject * obj0 = 0 ;
14035 PyObject * obj1 = 0 ;
14036 PyObject * obj2 = 0 ;
14037 PyObject * obj3 = 0 ;
14038 PyObject * obj4 = 0 ;
14039 PyObject * obj5 = 0 ;
14040 PyObject * obj6 = 0 ;
14041 char * kwnames[] = {
14042 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14043 };
14044
14045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14046 {
14047 arg1 = &temp1;
14048 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14049 }
14050 ecode2 = SWIG_AsVal_int(obj1, &val2);
14051 if (!SWIG_IsOK(ecode2)) {
14052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14053 }
14054 arg2 = static_cast< int >(val2);
14055 ecode3 = SWIG_AsVal_int(obj2, &val3);
14056 if (!SWIG_IsOK(ecode3)) {
14057 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14058 }
14059 arg3 = static_cast< int >(val3);
14060 ecode4 = SWIG_AsVal_int(obj3, &val4);
14061 if (!SWIG_IsOK(ecode4)) {
14062 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14063 }
14064 arg4 = static_cast< int >(val4);
14065 if (obj4) {
14066 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14067 if (!SWIG_IsOK(ecode5)) {
14068 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14069 }
14070 arg5 = static_cast< bool >(val5);
14071 }
14072 if (obj5) {
14073 {
14074 arg6 = wxString_in_helper(obj5);
14075 if (arg6 == NULL) SWIG_fail;
14076 temp6 = true;
14077 }
14078 }
14079 if (obj6) {
14080 ecode7 = SWIG_AsVal_int(obj6, &val7);
14081 if (!SWIG_IsOK(ecode7)) {
14082 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14083 }
14084 arg7 = static_cast< wxFontEncoding >(val7);
14085 }
14086 {
14087 if (!wxPyCheckForApp()) SWIG_fail;
14088 PyThreadState* __tstate = wxPyBeginAllowThreads();
14089 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14090 wxPyEndAllowThreads(__tstate);
14091 if (PyErr_Occurred()) SWIG_fail;
14092 }
14093 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14094 {
14095 if (temp6)
14096 delete arg6;
14097 }
14098 return resultobj;
14099 fail:
14100 {
14101 if (temp6)
14102 delete arg6;
14103 }
14104 return NULL;
14105 }
14106
14107
14108 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14109 PyObject *resultobj = 0;
14110 wxSize *arg1 = 0 ;
14111 wxFontFamily arg2 ;
14112 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14113 wxString const &arg4_defvalue = wxEmptyString ;
14114 wxString *arg4 = (wxString *) &arg4_defvalue ;
14115 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14116 wxFont *result = 0 ;
14117 wxSize temp1 ;
14118 int val2 ;
14119 int ecode2 = 0 ;
14120 int val3 ;
14121 int ecode3 = 0 ;
14122 bool temp4 = false ;
14123 int val5 ;
14124 int ecode5 = 0 ;
14125 PyObject * obj0 = 0 ;
14126 PyObject * obj1 = 0 ;
14127 PyObject * obj2 = 0 ;
14128 PyObject * obj3 = 0 ;
14129 PyObject * obj4 = 0 ;
14130 char * kwnames[] = {
14131 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14132 };
14133
14134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14135 {
14136 arg1 = &temp1;
14137 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14138 }
14139 ecode2 = SWIG_AsVal_int(obj1, &val2);
14140 if (!SWIG_IsOK(ecode2)) {
14141 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14142 }
14143 arg2 = static_cast< wxFontFamily >(val2);
14144 if (obj2) {
14145 ecode3 = SWIG_AsVal_int(obj2, &val3);
14146 if (!SWIG_IsOK(ecode3)) {
14147 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14148 }
14149 arg3 = static_cast< int >(val3);
14150 }
14151 if (obj3) {
14152 {
14153 arg4 = wxString_in_helper(obj3);
14154 if (arg4 == NULL) SWIG_fail;
14155 temp4 = true;
14156 }
14157 }
14158 if (obj4) {
14159 ecode5 = SWIG_AsVal_int(obj4, &val5);
14160 if (!SWIG_IsOK(ecode5)) {
14161 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14162 }
14163 arg5 = static_cast< wxFontEncoding >(val5);
14164 }
14165 {
14166 if (!wxPyCheckForApp()) SWIG_fail;
14167 PyThreadState* __tstate = wxPyBeginAllowThreads();
14168 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14169 wxPyEndAllowThreads(__tstate);
14170 if (PyErr_Occurred()) SWIG_fail;
14171 }
14172 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14173 {
14174 if (temp4)
14175 delete arg4;
14176 }
14177 return resultobj;
14178 fail:
14179 {
14180 if (temp4)
14181 delete arg4;
14182 }
14183 return NULL;
14184 }
14185
14186
14187 SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14188 PyObject *resultobj = 0;
14189 wxFont *arg1 = (wxFont *) 0 ;
14190 bool result;
14191 void *argp1 = 0 ;
14192 int res1 = 0 ;
14193 PyObject *swig_obj[1] ;
14194
14195 if (!args) SWIG_fail;
14196 swig_obj[0] = args;
14197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14198 if (!SWIG_IsOK(res1)) {
14199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
14200 }
14201 arg1 = reinterpret_cast< wxFont * >(argp1);
14202 {
14203 PyThreadState* __tstate = wxPyBeginAllowThreads();
14204 result = (bool)((wxFont const *)arg1)->IsOk();
14205 wxPyEndAllowThreads(__tstate);
14206 if (PyErr_Occurred()) SWIG_fail;
14207 }
14208 {
14209 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14210 }
14211 return resultobj;
14212 fail:
14213 return NULL;
14214 }
14215
14216
14217 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14218 PyObject *resultobj = 0;
14219 wxFont *arg1 = (wxFont *) 0 ;
14220 wxFont *arg2 = (wxFont *) 0 ;
14221 bool result;
14222 void *argp1 = 0 ;
14223 int res1 = 0 ;
14224 void *argp2 = 0 ;
14225 int res2 = 0 ;
14226 PyObject * obj0 = 0 ;
14227 PyObject * obj1 = 0 ;
14228 char * kwnames[] = {
14229 (char *) "self",(char *) "other", NULL
14230 };
14231
14232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14234 if (!SWIG_IsOK(res1)) {
14235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14236 }
14237 arg1 = reinterpret_cast< wxFont * >(argp1);
14238 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14239 if (!SWIG_IsOK(res2)) {
14240 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14241 }
14242 arg2 = reinterpret_cast< wxFont * >(argp2);
14243 {
14244 PyThreadState* __tstate = wxPyBeginAllowThreads();
14245 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14246 wxPyEndAllowThreads(__tstate);
14247 if (PyErr_Occurred()) SWIG_fail;
14248 }
14249 {
14250 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14251 }
14252 return resultobj;
14253 fail:
14254 return NULL;
14255 }
14256
14257
14258 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14259 PyObject *resultobj = 0;
14260 wxFont *arg1 = (wxFont *) 0 ;
14261 wxFont *arg2 = (wxFont *) 0 ;
14262 bool result;
14263 void *argp1 = 0 ;
14264 int res1 = 0 ;
14265 void *argp2 = 0 ;
14266 int res2 = 0 ;
14267 PyObject * obj0 = 0 ;
14268 PyObject * obj1 = 0 ;
14269 char * kwnames[] = {
14270 (char *) "self",(char *) "other", NULL
14271 };
14272
14273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14275 if (!SWIG_IsOK(res1)) {
14276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14277 }
14278 arg1 = reinterpret_cast< wxFont * >(argp1);
14279 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14280 if (!SWIG_IsOK(res2)) {
14281 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14282 }
14283 arg2 = reinterpret_cast< wxFont * >(argp2);
14284 {
14285 PyThreadState* __tstate = wxPyBeginAllowThreads();
14286 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14287 wxPyEndAllowThreads(__tstate);
14288 if (PyErr_Occurred()) SWIG_fail;
14289 }
14290 {
14291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14292 }
14293 return resultobj;
14294 fail:
14295 return NULL;
14296 }
14297
14298
14299 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14300 PyObject *resultobj = 0;
14301 wxFont *arg1 = (wxFont *) 0 ;
14302 int result;
14303 void *argp1 = 0 ;
14304 int res1 = 0 ;
14305 PyObject *swig_obj[1] ;
14306
14307 if (!args) SWIG_fail;
14308 swig_obj[0] = args;
14309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14310 if (!SWIG_IsOK(res1)) {
14311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14312 }
14313 arg1 = reinterpret_cast< wxFont * >(argp1);
14314 {
14315 PyThreadState* __tstate = wxPyBeginAllowThreads();
14316 result = (int)((wxFont const *)arg1)->GetPointSize();
14317 wxPyEndAllowThreads(__tstate);
14318 if (PyErr_Occurred()) SWIG_fail;
14319 }
14320 resultobj = SWIG_From_int(static_cast< int >(result));
14321 return resultobj;
14322 fail:
14323 return NULL;
14324 }
14325
14326
14327 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14328 PyObject *resultobj = 0;
14329 wxFont *arg1 = (wxFont *) 0 ;
14330 wxSize result;
14331 void *argp1 = 0 ;
14332 int res1 = 0 ;
14333 PyObject *swig_obj[1] ;
14334
14335 if (!args) SWIG_fail;
14336 swig_obj[0] = args;
14337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14338 if (!SWIG_IsOK(res1)) {
14339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14340 }
14341 arg1 = reinterpret_cast< wxFont * >(argp1);
14342 {
14343 PyThreadState* __tstate = wxPyBeginAllowThreads();
14344 result = ((wxFont const *)arg1)->GetPixelSize();
14345 wxPyEndAllowThreads(__tstate);
14346 if (PyErr_Occurred()) SWIG_fail;
14347 }
14348 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14349 return resultobj;
14350 fail:
14351 return NULL;
14352 }
14353
14354
14355 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14356 PyObject *resultobj = 0;
14357 wxFont *arg1 = (wxFont *) 0 ;
14358 bool result;
14359 void *argp1 = 0 ;
14360 int res1 = 0 ;
14361 PyObject *swig_obj[1] ;
14362
14363 if (!args) SWIG_fail;
14364 swig_obj[0] = args;
14365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14366 if (!SWIG_IsOK(res1)) {
14367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14368 }
14369 arg1 = reinterpret_cast< wxFont * >(argp1);
14370 {
14371 PyThreadState* __tstate = wxPyBeginAllowThreads();
14372 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14373 wxPyEndAllowThreads(__tstate);
14374 if (PyErr_Occurred()) SWIG_fail;
14375 }
14376 {
14377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14378 }
14379 return resultobj;
14380 fail:
14381 return NULL;
14382 }
14383
14384
14385 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14386 PyObject *resultobj = 0;
14387 wxFont *arg1 = (wxFont *) 0 ;
14388 int result;
14389 void *argp1 = 0 ;
14390 int res1 = 0 ;
14391 PyObject *swig_obj[1] ;
14392
14393 if (!args) SWIG_fail;
14394 swig_obj[0] = args;
14395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14396 if (!SWIG_IsOK(res1)) {
14397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14398 }
14399 arg1 = reinterpret_cast< wxFont * >(argp1);
14400 {
14401 PyThreadState* __tstate = wxPyBeginAllowThreads();
14402 result = (int)((wxFont const *)arg1)->GetFamily();
14403 wxPyEndAllowThreads(__tstate);
14404 if (PyErr_Occurred()) SWIG_fail;
14405 }
14406 resultobj = SWIG_From_int(static_cast< int >(result));
14407 return resultobj;
14408 fail:
14409 return NULL;
14410 }
14411
14412
14413 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14414 PyObject *resultobj = 0;
14415 wxFont *arg1 = (wxFont *) 0 ;
14416 int result;
14417 void *argp1 = 0 ;
14418 int res1 = 0 ;
14419 PyObject *swig_obj[1] ;
14420
14421 if (!args) SWIG_fail;
14422 swig_obj[0] = args;
14423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14424 if (!SWIG_IsOK(res1)) {
14425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14426 }
14427 arg1 = reinterpret_cast< wxFont * >(argp1);
14428 {
14429 PyThreadState* __tstate = wxPyBeginAllowThreads();
14430 result = (int)((wxFont const *)arg1)->GetStyle();
14431 wxPyEndAllowThreads(__tstate);
14432 if (PyErr_Occurred()) SWIG_fail;
14433 }
14434 resultobj = SWIG_From_int(static_cast< int >(result));
14435 return resultobj;
14436 fail:
14437 return NULL;
14438 }
14439
14440
14441 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14442 PyObject *resultobj = 0;
14443 wxFont *arg1 = (wxFont *) 0 ;
14444 int result;
14445 void *argp1 = 0 ;
14446 int res1 = 0 ;
14447 PyObject *swig_obj[1] ;
14448
14449 if (!args) SWIG_fail;
14450 swig_obj[0] = args;
14451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14452 if (!SWIG_IsOK(res1)) {
14453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14454 }
14455 arg1 = reinterpret_cast< wxFont * >(argp1);
14456 {
14457 PyThreadState* __tstate = wxPyBeginAllowThreads();
14458 result = (int)((wxFont const *)arg1)->GetWeight();
14459 wxPyEndAllowThreads(__tstate);
14460 if (PyErr_Occurred()) SWIG_fail;
14461 }
14462 resultobj = SWIG_From_int(static_cast< int >(result));
14463 return resultobj;
14464 fail:
14465 return NULL;
14466 }
14467
14468
14469 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14470 PyObject *resultobj = 0;
14471 wxFont *arg1 = (wxFont *) 0 ;
14472 bool result;
14473 void *argp1 = 0 ;
14474 int res1 = 0 ;
14475 PyObject *swig_obj[1] ;
14476
14477 if (!args) SWIG_fail;
14478 swig_obj[0] = args;
14479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14480 if (!SWIG_IsOK(res1)) {
14481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14482 }
14483 arg1 = reinterpret_cast< wxFont * >(argp1);
14484 {
14485 PyThreadState* __tstate = wxPyBeginAllowThreads();
14486 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14487 wxPyEndAllowThreads(__tstate);
14488 if (PyErr_Occurred()) SWIG_fail;
14489 }
14490 {
14491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14492 }
14493 return resultobj;
14494 fail:
14495 return NULL;
14496 }
14497
14498
14499 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14500 PyObject *resultobj = 0;
14501 wxFont *arg1 = (wxFont *) 0 ;
14502 wxString result;
14503 void *argp1 = 0 ;
14504 int res1 = 0 ;
14505 PyObject *swig_obj[1] ;
14506
14507 if (!args) SWIG_fail;
14508 swig_obj[0] = args;
14509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14510 if (!SWIG_IsOK(res1)) {
14511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14512 }
14513 arg1 = reinterpret_cast< wxFont * >(argp1);
14514 {
14515 PyThreadState* __tstate = wxPyBeginAllowThreads();
14516 result = ((wxFont const *)arg1)->GetFaceName();
14517 wxPyEndAllowThreads(__tstate);
14518 if (PyErr_Occurred()) SWIG_fail;
14519 }
14520 {
14521 #if wxUSE_UNICODE
14522 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14523 #else
14524 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14525 #endif
14526 }
14527 return resultobj;
14528 fail:
14529 return NULL;
14530 }
14531
14532
14533 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14534 PyObject *resultobj = 0;
14535 wxFont *arg1 = (wxFont *) 0 ;
14536 wxFontEncoding result;
14537 void *argp1 = 0 ;
14538 int res1 = 0 ;
14539 PyObject *swig_obj[1] ;
14540
14541 if (!args) SWIG_fail;
14542 swig_obj[0] = args;
14543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14544 if (!SWIG_IsOK(res1)) {
14545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14546 }
14547 arg1 = reinterpret_cast< wxFont * >(argp1);
14548 {
14549 PyThreadState* __tstate = wxPyBeginAllowThreads();
14550 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14551 wxPyEndAllowThreads(__tstate);
14552 if (PyErr_Occurred()) SWIG_fail;
14553 }
14554 resultobj = SWIG_From_int(static_cast< int >(result));
14555 return resultobj;
14556 fail:
14557 return NULL;
14558 }
14559
14560
14561 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14562 PyObject *resultobj = 0;
14563 wxFont *arg1 = (wxFont *) 0 ;
14564 wxNativeFontInfo *result = 0 ;
14565 void *argp1 = 0 ;
14566 int res1 = 0 ;
14567 PyObject *swig_obj[1] ;
14568
14569 if (!args) SWIG_fail;
14570 swig_obj[0] = args;
14571 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14572 if (!SWIG_IsOK(res1)) {
14573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14574 }
14575 arg1 = reinterpret_cast< wxFont * >(argp1);
14576 {
14577 PyThreadState* __tstate = wxPyBeginAllowThreads();
14578 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14579 wxPyEndAllowThreads(__tstate);
14580 if (PyErr_Occurred()) SWIG_fail;
14581 }
14582 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14583 return resultobj;
14584 fail:
14585 return NULL;
14586 }
14587
14588
14589 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14590 PyObject *resultobj = 0;
14591 wxFont *arg1 = (wxFont *) 0 ;
14592 bool result;
14593 void *argp1 = 0 ;
14594 int res1 = 0 ;
14595 PyObject *swig_obj[1] ;
14596
14597 if (!args) SWIG_fail;
14598 swig_obj[0] = args;
14599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14600 if (!SWIG_IsOK(res1)) {
14601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14602 }
14603 arg1 = reinterpret_cast< wxFont * >(argp1);
14604 {
14605 PyThreadState* __tstate = wxPyBeginAllowThreads();
14606 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14607 wxPyEndAllowThreads(__tstate);
14608 if (PyErr_Occurred()) SWIG_fail;
14609 }
14610 {
14611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14612 }
14613 return resultobj;
14614 fail:
14615 return NULL;
14616 }
14617
14618
14619 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14620 PyObject *resultobj = 0;
14621 wxFont *arg1 = (wxFont *) 0 ;
14622 wxString result;
14623 void *argp1 = 0 ;
14624 int res1 = 0 ;
14625 PyObject *swig_obj[1] ;
14626
14627 if (!args) SWIG_fail;
14628 swig_obj[0] = args;
14629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14630 if (!SWIG_IsOK(res1)) {
14631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14632 }
14633 arg1 = reinterpret_cast< wxFont * >(argp1);
14634 {
14635 PyThreadState* __tstate = wxPyBeginAllowThreads();
14636 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14637 wxPyEndAllowThreads(__tstate);
14638 if (PyErr_Occurred()) SWIG_fail;
14639 }
14640 {
14641 #if wxUSE_UNICODE
14642 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14643 #else
14644 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14645 #endif
14646 }
14647 return resultobj;
14648 fail:
14649 return NULL;
14650 }
14651
14652
14653 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14654 PyObject *resultobj = 0;
14655 wxFont *arg1 = (wxFont *) 0 ;
14656 wxString result;
14657 void *argp1 = 0 ;
14658 int res1 = 0 ;
14659 PyObject *swig_obj[1] ;
14660
14661 if (!args) SWIG_fail;
14662 swig_obj[0] = args;
14663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14664 if (!SWIG_IsOK(res1)) {
14665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14666 }
14667 arg1 = reinterpret_cast< wxFont * >(argp1);
14668 {
14669 PyThreadState* __tstate = wxPyBeginAllowThreads();
14670 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14671 wxPyEndAllowThreads(__tstate);
14672 if (PyErr_Occurred()) SWIG_fail;
14673 }
14674 {
14675 #if wxUSE_UNICODE
14676 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14677 #else
14678 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14679 #endif
14680 }
14681 return resultobj;
14682 fail:
14683 return NULL;
14684 }
14685
14686
14687 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14688 PyObject *resultobj = 0;
14689 wxFont *arg1 = (wxFont *) 0 ;
14690 int arg2 ;
14691 void *argp1 = 0 ;
14692 int res1 = 0 ;
14693 int val2 ;
14694 int ecode2 = 0 ;
14695 PyObject * obj0 = 0 ;
14696 PyObject * obj1 = 0 ;
14697 char * kwnames[] = {
14698 (char *) "self",(char *) "pointSize", NULL
14699 };
14700
14701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14703 if (!SWIG_IsOK(res1)) {
14704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14705 }
14706 arg1 = reinterpret_cast< wxFont * >(argp1);
14707 ecode2 = SWIG_AsVal_int(obj1, &val2);
14708 if (!SWIG_IsOK(ecode2)) {
14709 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14710 }
14711 arg2 = static_cast< int >(val2);
14712 {
14713 PyThreadState* __tstate = wxPyBeginAllowThreads();
14714 (arg1)->SetPointSize(arg2);
14715 wxPyEndAllowThreads(__tstate);
14716 if (PyErr_Occurred()) SWIG_fail;
14717 }
14718 resultobj = SWIG_Py_Void();
14719 return resultobj;
14720 fail:
14721 return NULL;
14722 }
14723
14724
14725 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14726 PyObject *resultobj = 0;
14727 wxFont *arg1 = (wxFont *) 0 ;
14728 wxSize *arg2 = 0 ;
14729 void *argp1 = 0 ;
14730 int res1 = 0 ;
14731 wxSize temp2 ;
14732 PyObject * obj0 = 0 ;
14733 PyObject * obj1 = 0 ;
14734 char * kwnames[] = {
14735 (char *) "self",(char *) "pixelSize", NULL
14736 };
14737
14738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14740 if (!SWIG_IsOK(res1)) {
14741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14742 }
14743 arg1 = reinterpret_cast< wxFont * >(argp1);
14744 {
14745 arg2 = &temp2;
14746 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14747 }
14748 {
14749 PyThreadState* __tstate = wxPyBeginAllowThreads();
14750 (arg1)->SetPixelSize((wxSize const &)*arg2);
14751 wxPyEndAllowThreads(__tstate);
14752 if (PyErr_Occurred()) SWIG_fail;
14753 }
14754 resultobj = SWIG_Py_Void();
14755 return resultobj;
14756 fail:
14757 return NULL;
14758 }
14759
14760
14761 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14762 PyObject *resultobj = 0;
14763 wxFont *arg1 = (wxFont *) 0 ;
14764 int arg2 ;
14765 void *argp1 = 0 ;
14766 int res1 = 0 ;
14767 int val2 ;
14768 int ecode2 = 0 ;
14769 PyObject * obj0 = 0 ;
14770 PyObject * obj1 = 0 ;
14771 char * kwnames[] = {
14772 (char *) "self",(char *) "family", NULL
14773 };
14774
14775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14777 if (!SWIG_IsOK(res1)) {
14778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14779 }
14780 arg1 = reinterpret_cast< wxFont * >(argp1);
14781 ecode2 = SWIG_AsVal_int(obj1, &val2);
14782 if (!SWIG_IsOK(ecode2)) {
14783 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14784 }
14785 arg2 = static_cast< int >(val2);
14786 {
14787 PyThreadState* __tstate = wxPyBeginAllowThreads();
14788 (arg1)->SetFamily(arg2);
14789 wxPyEndAllowThreads(__tstate);
14790 if (PyErr_Occurred()) SWIG_fail;
14791 }
14792 resultobj = SWIG_Py_Void();
14793 return resultobj;
14794 fail:
14795 return NULL;
14796 }
14797
14798
14799 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14800 PyObject *resultobj = 0;
14801 wxFont *arg1 = (wxFont *) 0 ;
14802 int arg2 ;
14803 void *argp1 = 0 ;
14804 int res1 = 0 ;
14805 int val2 ;
14806 int ecode2 = 0 ;
14807 PyObject * obj0 = 0 ;
14808 PyObject * obj1 = 0 ;
14809 char * kwnames[] = {
14810 (char *) "self",(char *) "style", NULL
14811 };
14812
14813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14815 if (!SWIG_IsOK(res1)) {
14816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14817 }
14818 arg1 = reinterpret_cast< wxFont * >(argp1);
14819 ecode2 = SWIG_AsVal_int(obj1, &val2);
14820 if (!SWIG_IsOK(ecode2)) {
14821 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14822 }
14823 arg2 = static_cast< int >(val2);
14824 {
14825 PyThreadState* __tstate = wxPyBeginAllowThreads();
14826 (arg1)->SetStyle(arg2);
14827 wxPyEndAllowThreads(__tstate);
14828 if (PyErr_Occurred()) SWIG_fail;
14829 }
14830 resultobj = SWIG_Py_Void();
14831 return resultobj;
14832 fail:
14833 return NULL;
14834 }
14835
14836
14837 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14838 PyObject *resultobj = 0;
14839 wxFont *arg1 = (wxFont *) 0 ;
14840 int arg2 ;
14841 void *argp1 = 0 ;
14842 int res1 = 0 ;
14843 int val2 ;
14844 int ecode2 = 0 ;
14845 PyObject * obj0 = 0 ;
14846 PyObject * obj1 = 0 ;
14847 char * kwnames[] = {
14848 (char *) "self",(char *) "weight", NULL
14849 };
14850
14851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14853 if (!SWIG_IsOK(res1)) {
14854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14855 }
14856 arg1 = reinterpret_cast< wxFont * >(argp1);
14857 ecode2 = SWIG_AsVal_int(obj1, &val2);
14858 if (!SWIG_IsOK(ecode2)) {
14859 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14860 }
14861 arg2 = static_cast< int >(val2);
14862 {
14863 PyThreadState* __tstate = wxPyBeginAllowThreads();
14864 (arg1)->SetWeight(arg2);
14865 wxPyEndAllowThreads(__tstate);
14866 if (PyErr_Occurred()) SWIG_fail;
14867 }
14868 resultobj = SWIG_Py_Void();
14869 return resultobj;
14870 fail:
14871 return NULL;
14872 }
14873
14874
14875 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14876 PyObject *resultobj = 0;
14877 wxFont *arg1 = (wxFont *) 0 ;
14878 wxString *arg2 = 0 ;
14879 bool result;
14880 void *argp1 = 0 ;
14881 int res1 = 0 ;
14882 bool temp2 = false ;
14883 PyObject * obj0 = 0 ;
14884 PyObject * obj1 = 0 ;
14885 char * kwnames[] = {
14886 (char *) "self",(char *) "faceName", NULL
14887 };
14888
14889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14891 if (!SWIG_IsOK(res1)) {
14892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14893 }
14894 arg1 = reinterpret_cast< wxFont * >(argp1);
14895 {
14896 arg2 = wxString_in_helper(obj1);
14897 if (arg2 == NULL) SWIG_fail;
14898 temp2 = true;
14899 }
14900 {
14901 PyThreadState* __tstate = wxPyBeginAllowThreads();
14902 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
14903 wxPyEndAllowThreads(__tstate);
14904 if (PyErr_Occurred()) SWIG_fail;
14905 }
14906 {
14907 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14908 }
14909 {
14910 if (temp2)
14911 delete arg2;
14912 }
14913 return resultobj;
14914 fail:
14915 {
14916 if (temp2)
14917 delete arg2;
14918 }
14919 return NULL;
14920 }
14921
14922
14923 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14924 PyObject *resultobj = 0;
14925 wxFont *arg1 = (wxFont *) 0 ;
14926 bool arg2 ;
14927 void *argp1 = 0 ;
14928 int res1 = 0 ;
14929 bool val2 ;
14930 int ecode2 = 0 ;
14931 PyObject * obj0 = 0 ;
14932 PyObject * obj1 = 0 ;
14933 char * kwnames[] = {
14934 (char *) "self",(char *) "underlined", NULL
14935 };
14936
14937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14939 if (!SWIG_IsOK(res1)) {
14940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14941 }
14942 arg1 = reinterpret_cast< wxFont * >(argp1);
14943 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14944 if (!SWIG_IsOK(ecode2)) {
14945 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14946 }
14947 arg2 = static_cast< bool >(val2);
14948 {
14949 PyThreadState* __tstate = wxPyBeginAllowThreads();
14950 (arg1)->SetUnderlined(arg2);
14951 wxPyEndAllowThreads(__tstate);
14952 if (PyErr_Occurred()) SWIG_fail;
14953 }
14954 resultobj = SWIG_Py_Void();
14955 return resultobj;
14956 fail:
14957 return NULL;
14958 }
14959
14960
14961 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14962 PyObject *resultobj = 0;
14963 wxFont *arg1 = (wxFont *) 0 ;
14964 wxFontEncoding arg2 ;
14965 void *argp1 = 0 ;
14966 int res1 = 0 ;
14967 int val2 ;
14968 int ecode2 = 0 ;
14969 PyObject * obj0 = 0 ;
14970 PyObject * obj1 = 0 ;
14971 char * kwnames[] = {
14972 (char *) "self",(char *) "encoding", NULL
14973 };
14974
14975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14977 if (!SWIG_IsOK(res1)) {
14978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
14979 }
14980 arg1 = reinterpret_cast< wxFont * >(argp1);
14981 ecode2 = SWIG_AsVal_int(obj1, &val2);
14982 if (!SWIG_IsOK(ecode2)) {
14983 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14984 }
14985 arg2 = static_cast< wxFontEncoding >(val2);
14986 {
14987 PyThreadState* __tstate = wxPyBeginAllowThreads();
14988 (arg1)->SetEncoding(arg2);
14989 wxPyEndAllowThreads(__tstate);
14990 if (PyErr_Occurred()) SWIG_fail;
14991 }
14992 resultobj = SWIG_Py_Void();
14993 return resultobj;
14994 fail:
14995 return NULL;
14996 }
14997
14998
14999 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15000 PyObject *resultobj = 0;
15001 wxFont *arg1 = (wxFont *) 0 ;
15002 wxNativeFontInfo *arg2 = 0 ;
15003 void *argp1 = 0 ;
15004 int res1 = 0 ;
15005 void *argp2 = 0 ;
15006 int res2 = 0 ;
15007 PyObject * obj0 = 0 ;
15008 PyObject * obj1 = 0 ;
15009 char * kwnames[] = {
15010 (char *) "self",(char *) "info", NULL
15011 };
15012
15013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15015 if (!SWIG_IsOK(res1)) {
15016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15017 }
15018 arg1 = reinterpret_cast< wxFont * >(argp1);
15019 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15020 if (!SWIG_IsOK(res2)) {
15021 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15022 }
15023 if (!argp2) {
15024 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15025 }
15026 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15027 {
15028 PyThreadState* __tstate = wxPyBeginAllowThreads();
15029 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15030 wxPyEndAllowThreads(__tstate);
15031 if (PyErr_Occurred()) SWIG_fail;
15032 }
15033 resultobj = SWIG_Py_Void();
15034 return resultobj;
15035 fail:
15036 return NULL;
15037 }
15038
15039
15040 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15041 PyObject *resultobj = 0;
15042 wxFont *arg1 = (wxFont *) 0 ;
15043 wxString *arg2 = 0 ;
15044 bool result;
15045 void *argp1 = 0 ;
15046 int res1 = 0 ;
15047 bool temp2 = false ;
15048 PyObject * obj0 = 0 ;
15049 PyObject * obj1 = 0 ;
15050 char * kwnames[] = {
15051 (char *) "self",(char *) "info", NULL
15052 };
15053
15054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15056 if (!SWIG_IsOK(res1)) {
15057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15058 }
15059 arg1 = reinterpret_cast< wxFont * >(argp1);
15060 {
15061 arg2 = wxString_in_helper(obj1);
15062 if (arg2 == NULL) SWIG_fail;
15063 temp2 = true;
15064 }
15065 {
15066 PyThreadState* __tstate = wxPyBeginAllowThreads();
15067 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
15068 wxPyEndAllowThreads(__tstate);
15069 if (PyErr_Occurred()) SWIG_fail;
15070 }
15071 {
15072 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15073 }
15074 {
15075 if (temp2)
15076 delete arg2;
15077 }
15078 return resultobj;
15079 fail:
15080 {
15081 if (temp2)
15082 delete arg2;
15083 }
15084 return NULL;
15085 }
15086
15087
15088 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15089 PyObject *resultobj = 0;
15090 wxFont *arg1 = (wxFont *) 0 ;
15091 wxString *arg2 = 0 ;
15092 bool result;
15093 void *argp1 = 0 ;
15094 int res1 = 0 ;
15095 bool temp2 = false ;
15096 PyObject * obj0 = 0 ;
15097 PyObject * obj1 = 0 ;
15098 char * kwnames[] = {
15099 (char *) "self",(char *) "info", NULL
15100 };
15101
15102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15104 if (!SWIG_IsOK(res1)) {
15105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15106 }
15107 arg1 = reinterpret_cast< wxFont * >(argp1);
15108 {
15109 arg2 = wxString_in_helper(obj1);
15110 if (arg2 == NULL) SWIG_fail;
15111 temp2 = true;
15112 }
15113 {
15114 PyThreadState* __tstate = wxPyBeginAllowThreads();
15115 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
15116 wxPyEndAllowThreads(__tstate);
15117 if (PyErr_Occurred()) SWIG_fail;
15118 }
15119 {
15120 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15121 }
15122 {
15123 if (temp2)
15124 delete arg2;
15125 }
15126 return resultobj;
15127 fail:
15128 {
15129 if (temp2)
15130 delete arg2;
15131 }
15132 return NULL;
15133 }
15134
15135
15136 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15137 PyObject *resultobj = 0;
15138 wxFont *arg1 = (wxFont *) 0 ;
15139 wxString result;
15140 void *argp1 = 0 ;
15141 int res1 = 0 ;
15142 PyObject *swig_obj[1] ;
15143
15144 if (!args) SWIG_fail;
15145 swig_obj[0] = args;
15146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15147 if (!SWIG_IsOK(res1)) {
15148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15149 }
15150 arg1 = reinterpret_cast< wxFont * >(argp1);
15151 {
15152 PyThreadState* __tstate = wxPyBeginAllowThreads();
15153 result = ((wxFont const *)arg1)->GetFamilyString();
15154 wxPyEndAllowThreads(__tstate);
15155 if (PyErr_Occurred()) SWIG_fail;
15156 }
15157 {
15158 #if wxUSE_UNICODE
15159 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15160 #else
15161 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15162 #endif
15163 }
15164 return resultobj;
15165 fail:
15166 return NULL;
15167 }
15168
15169
15170 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15171 PyObject *resultobj = 0;
15172 wxFont *arg1 = (wxFont *) 0 ;
15173 wxString result;
15174 void *argp1 = 0 ;
15175 int res1 = 0 ;
15176 PyObject *swig_obj[1] ;
15177
15178 if (!args) SWIG_fail;
15179 swig_obj[0] = args;
15180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15181 if (!SWIG_IsOK(res1)) {
15182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15183 }
15184 arg1 = reinterpret_cast< wxFont * >(argp1);
15185 {
15186 PyThreadState* __tstate = wxPyBeginAllowThreads();
15187 result = ((wxFont const *)arg1)->GetStyleString();
15188 wxPyEndAllowThreads(__tstate);
15189 if (PyErr_Occurred()) SWIG_fail;
15190 }
15191 {
15192 #if wxUSE_UNICODE
15193 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15194 #else
15195 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15196 #endif
15197 }
15198 return resultobj;
15199 fail:
15200 return NULL;
15201 }
15202
15203
15204 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15205 PyObject *resultobj = 0;
15206 wxFont *arg1 = (wxFont *) 0 ;
15207 wxString result;
15208 void *argp1 = 0 ;
15209 int res1 = 0 ;
15210 PyObject *swig_obj[1] ;
15211
15212 if (!args) SWIG_fail;
15213 swig_obj[0] = args;
15214 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15215 if (!SWIG_IsOK(res1)) {
15216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15217 }
15218 arg1 = reinterpret_cast< wxFont * >(argp1);
15219 {
15220 PyThreadState* __tstate = wxPyBeginAllowThreads();
15221 result = ((wxFont const *)arg1)->GetWeightString();
15222 wxPyEndAllowThreads(__tstate);
15223 if (PyErr_Occurred()) SWIG_fail;
15224 }
15225 {
15226 #if wxUSE_UNICODE
15227 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15228 #else
15229 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15230 #endif
15231 }
15232 return resultobj;
15233 fail:
15234 return NULL;
15235 }
15236
15237
15238 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15239 PyObject *resultobj = 0;
15240 wxFont *arg1 = (wxFont *) 0 ;
15241 bool arg2 = (bool) true ;
15242 void *argp1 = 0 ;
15243 int res1 = 0 ;
15244 bool val2 ;
15245 int ecode2 = 0 ;
15246 PyObject * obj0 = 0 ;
15247 PyObject * obj1 = 0 ;
15248 char * kwnames[] = {
15249 (char *) "self",(char *) "no", NULL
15250 };
15251
15252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15254 if (!SWIG_IsOK(res1)) {
15255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15256 }
15257 arg1 = reinterpret_cast< wxFont * >(argp1);
15258 if (obj1) {
15259 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15260 if (!SWIG_IsOK(ecode2)) {
15261 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15262 }
15263 arg2 = static_cast< bool >(val2);
15264 }
15265 {
15266 PyThreadState* __tstate = wxPyBeginAllowThreads();
15267 (arg1)->SetNoAntiAliasing(arg2);
15268 wxPyEndAllowThreads(__tstate);
15269 if (PyErr_Occurred()) SWIG_fail;
15270 }
15271 resultobj = SWIG_Py_Void();
15272 return resultobj;
15273 fail:
15274 return NULL;
15275 }
15276
15277
15278 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15279 PyObject *resultobj = 0;
15280 wxFont *arg1 = (wxFont *) 0 ;
15281 bool result;
15282 void *argp1 = 0 ;
15283 int res1 = 0 ;
15284 PyObject *swig_obj[1] ;
15285
15286 if (!args) SWIG_fail;
15287 swig_obj[0] = args;
15288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15289 if (!SWIG_IsOK(res1)) {
15290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15291 }
15292 arg1 = reinterpret_cast< wxFont * >(argp1);
15293 {
15294 PyThreadState* __tstate = wxPyBeginAllowThreads();
15295 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15296 wxPyEndAllowThreads(__tstate);
15297 if (PyErr_Occurred()) SWIG_fail;
15298 }
15299 {
15300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15301 }
15302 return resultobj;
15303 fail:
15304 return NULL;
15305 }
15306
15307
15308 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15309 PyObject *resultobj = 0;
15310 wxFontEncoding result;
15311
15312 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15313 {
15314 if (!wxPyCheckForApp()) SWIG_fail;
15315 PyThreadState* __tstate = wxPyBeginAllowThreads();
15316 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15317 wxPyEndAllowThreads(__tstate);
15318 if (PyErr_Occurred()) SWIG_fail;
15319 }
15320 resultobj = SWIG_From_int(static_cast< int >(result));
15321 return resultobj;
15322 fail:
15323 return NULL;
15324 }
15325
15326
15327 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15328 PyObject *resultobj = 0;
15329 wxFontEncoding arg1 ;
15330 int val1 ;
15331 int ecode1 = 0 ;
15332 PyObject * obj0 = 0 ;
15333 char * kwnames[] = {
15334 (char *) "encoding", NULL
15335 };
15336
15337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15338 ecode1 = SWIG_AsVal_int(obj0, &val1);
15339 if (!SWIG_IsOK(ecode1)) {
15340 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15341 }
15342 arg1 = static_cast< wxFontEncoding >(val1);
15343 {
15344 if (!wxPyCheckForApp()) SWIG_fail;
15345 PyThreadState* __tstate = wxPyBeginAllowThreads();
15346 wxFont::SetDefaultEncoding(arg1);
15347 wxPyEndAllowThreads(__tstate);
15348 if (PyErr_Occurred()) SWIG_fail;
15349 }
15350 resultobj = SWIG_Py_Void();
15351 return resultobj;
15352 fail:
15353 return NULL;
15354 }
15355
15356
15357 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15358 PyObject *obj;
15359 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15360 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15361 return SWIG_Py_Void();
15362 }
15363
15364 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15365 return SWIG_Python_InitShadowInstance(args);
15366 }
15367
15368 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15369 PyObject *resultobj = 0;
15370 wxPyFontEnumerator *result = 0 ;
15371
15372 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15373 {
15374 if (!wxPyCheckForApp()) SWIG_fail;
15375 PyThreadState* __tstate = wxPyBeginAllowThreads();
15376 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15377 wxPyEndAllowThreads(__tstate);
15378 if (PyErr_Occurred()) SWIG_fail;
15379 }
15380 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15381 return resultobj;
15382 fail:
15383 return NULL;
15384 }
15385
15386
15387 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15388 PyObject *resultobj = 0;
15389 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15390 void *argp1 = 0 ;
15391 int res1 = 0 ;
15392 PyObject *swig_obj[1] ;
15393
15394 if (!args) SWIG_fail;
15395 swig_obj[0] = args;
15396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15397 if (!SWIG_IsOK(res1)) {
15398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15399 }
15400 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15401 {
15402 PyThreadState* __tstate = wxPyBeginAllowThreads();
15403 delete arg1;
15404
15405 wxPyEndAllowThreads(__tstate);
15406 if (PyErr_Occurred()) SWIG_fail;
15407 }
15408 resultobj = SWIG_Py_Void();
15409 return resultobj;
15410 fail:
15411 return NULL;
15412 }
15413
15414
15415 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15416 PyObject *resultobj = 0;
15417 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15418 PyObject *arg2 = (PyObject *) 0 ;
15419 PyObject *arg3 = (PyObject *) 0 ;
15420 bool arg4 ;
15421 void *argp1 = 0 ;
15422 int res1 = 0 ;
15423 bool val4 ;
15424 int ecode4 = 0 ;
15425 PyObject * obj0 = 0 ;
15426 PyObject * obj1 = 0 ;
15427 PyObject * obj2 = 0 ;
15428 PyObject * obj3 = 0 ;
15429 char * kwnames[] = {
15430 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15431 };
15432
15433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15435 if (!SWIG_IsOK(res1)) {
15436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15437 }
15438 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15439 arg2 = obj1;
15440 arg3 = obj2;
15441 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15442 if (!SWIG_IsOK(ecode4)) {
15443 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15444 }
15445 arg4 = static_cast< bool >(val4);
15446 {
15447 PyThreadState* __tstate = wxPyBeginAllowThreads();
15448 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15449 wxPyEndAllowThreads(__tstate);
15450 if (PyErr_Occurred()) SWIG_fail;
15451 }
15452 resultobj = SWIG_Py_Void();
15453 return resultobj;
15454 fail:
15455 return NULL;
15456 }
15457
15458
15459 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15460 PyObject *resultobj = 0;
15461 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15462 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15463 bool arg3 = (bool) false ;
15464 bool result;
15465 void *argp1 = 0 ;
15466 int res1 = 0 ;
15467 int val2 ;
15468 int ecode2 = 0 ;
15469 bool val3 ;
15470 int ecode3 = 0 ;
15471 PyObject * obj0 = 0 ;
15472 PyObject * obj1 = 0 ;
15473 PyObject * obj2 = 0 ;
15474 char * kwnames[] = {
15475 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15476 };
15477
15478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15480 if (!SWIG_IsOK(res1)) {
15481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15482 }
15483 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15484 if (obj1) {
15485 ecode2 = SWIG_AsVal_int(obj1, &val2);
15486 if (!SWIG_IsOK(ecode2)) {
15487 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15488 }
15489 arg2 = static_cast< wxFontEncoding >(val2);
15490 }
15491 if (obj2) {
15492 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15493 if (!SWIG_IsOK(ecode3)) {
15494 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15495 }
15496 arg3 = static_cast< bool >(val3);
15497 }
15498 {
15499 PyThreadState* __tstate = wxPyBeginAllowThreads();
15500 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15501 wxPyEndAllowThreads(__tstate);
15502 if (PyErr_Occurred()) SWIG_fail;
15503 }
15504 {
15505 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15506 }
15507 return resultobj;
15508 fail:
15509 return NULL;
15510 }
15511
15512
15513 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15514 PyObject *resultobj = 0;
15515 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15516 wxString const &arg2_defvalue = wxPyEmptyString ;
15517 wxString *arg2 = (wxString *) &arg2_defvalue ;
15518 bool result;
15519 void *argp1 = 0 ;
15520 int res1 = 0 ;
15521 bool temp2 = false ;
15522 PyObject * obj0 = 0 ;
15523 PyObject * obj1 = 0 ;
15524 char * kwnames[] = {
15525 (char *) "self",(char *) "facename", NULL
15526 };
15527
15528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15530 if (!SWIG_IsOK(res1)) {
15531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15532 }
15533 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15534 if (obj1) {
15535 {
15536 arg2 = wxString_in_helper(obj1);
15537 if (arg2 == NULL) SWIG_fail;
15538 temp2 = true;
15539 }
15540 }
15541 {
15542 PyThreadState* __tstate = wxPyBeginAllowThreads();
15543 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15544 wxPyEndAllowThreads(__tstate);
15545 if (PyErr_Occurred()) SWIG_fail;
15546 }
15547 {
15548 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15549 }
15550 {
15551 if (temp2)
15552 delete arg2;
15553 }
15554 return resultobj;
15555 fail:
15556 {
15557 if (temp2)
15558 delete arg2;
15559 }
15560 return NULL;
15561 }
15562
15563
15564 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15565 PyObject *resultobj = 0;
15566 PyObject *result = 0 ;
15567
15568 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
15569 {
15570 PyThreadState* __tstate = wxPyBeginAllowThreads();
15571 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
15572 wxPyEndAllowThreads(__tstate);
15573 if (PyErr_Occurred()) SWIG_fail;
15574 }
15575 resultobj = result;
15576 return resultobj;
15577 fail:
15578 return NULL;
15579 }
15580
15581
15582 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15583 PyObject *resultobj = 0;
15584 PyObject *result = 0 ;
15585
15586 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
15587 {
15588 PyThreadState* __tstate = wxPyBeginAllowThreads();
15589 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
15590 wxPyEndAllowThreads(__tstate);
15591 if (PyErr_Occurred()) SWIG_fail;
15592 }
15593 resultobj = result;
15594 return resultobj;
15595 fail:
15596 return NULL;
15597 }
15598
15599
15600 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15601 PyObject *resultobj = 0;
15602 wxString *arg1 = 0 ;
15603 bool result;
15604 bool temp1 = false ;
15605 PyObject * obj0 = 0 ;
15606 char * kwnames[] = {
15607 (char *) "str", NULL
15608 };
15609
15610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15611 {
15612 arg1 = wxString_in_helper(obj0);
15613 if (arg1 == NULL) SWIG_fail;
15614 temp1 = true;
15615 }
15616 {
15617 PyThreadState* __tstate = wxPyBeginAllowThreads();
15618 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15619 wxPyEndAllowThreads(__tstate);
15620 if (PyErr_Occurred()) SWIG_fail;
15621 }
15622 {
15623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15624 }
15625 {
15626 if (temp1)
15627 delete arg1;
15628 }
15629 return resultobj;
15630 fail:
15631 {
15632 if (temp1)
15633 delete arg1;
15634 }
15635 return NULL;
15636 }
15637
15638
15639 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15640 PyObject *obj;
15641 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15642 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15643 return SWIG_Py_Void();
15644 }
15645
15646 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15647 return SWIG_Python_InitShadowInstance(args);
15648 }
15649
15650 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15651 PyObject *resultobj = 0;
15652 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15653 int arg2 ;
15654 void *argp1 = 0 ;
15655 int res1 = 0 ;
15656 int val2 ;
15657 int ecode2 = 0 ;
15658 PyObject *swig_obj[2] ;
15659
15660 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15662 if (!SWIG_IsOK(res1)) {
15663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15664 }
15665 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15666 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15667 if (!SWIG_IsOK(ecode2)) {
15668 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15669 }
15670 arg2 = static_cast< int >(val2);
15671 if (arg1) (arg1)->Language = arg2;
15672
15673 resultobj = SWIG_Py_Void();
15674 return resultobj;
15675 fail:
15676 return NULL;
15677 }
15678
15679
15680 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15681 PyObject *resultobj = 0;
15682 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15683 int result;
15684 void *argp1 = 0 ;
15685 int res1 = 0 ;
15686 PyObject *swig_obj[1] ;
15687
15688 if (!args) SWIG_fail;
15689 swig_obj[0] = args;
15690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15691 if (!SWIG_IsOK(res1)) {
15692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15693 }
15694 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15695 result = (int) ((arg1)->Language);
15696 resultobj = SWIG_From_int(static_cast< int >(result));
15697 return resultobj;
15698 fail:
15699 return NULL;
15700 }
15701
15702
15703 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15704 PyObject *resultobj = 0;
15705 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15706 wxString *arg2 = (wxString *) 0 ;
15707 void *argp1 = 0 ;
15708 int res1 = 0 ;
15709 bool temp2 = false ;
15710 PyObject *swig_obj[2] ;
15711
15712 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15713 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15714 if (!SWIG_IsOK(res1)) {
15715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15716 }
15717 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15718 {
15719 arg2 = wxString_in_helper(swig_obj[1]);
15720 if (arg2 == NULL) SWIG_fail;
15721 temp2 = true;
15722 }
15723 if (arg1) (arg1)->CanonicalName = *arg2;
15724
15725 resultobj = SWIG_Py_Void();
15726 {
15727 if (temp2)
15728 delete arg2;
15729 }
15730 return resultobj;
15731 fail:
15732 {
15733 if (temp2)
15734 delete arg2;
15735 }
15736 return NULL;
15737 }
15738
15739
15740 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15741 PyObject *resultobj = 0;
15742 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15743 wxString *result = 0 ;
15744 void *argp1 = 0 ;
15745 int res1 = 0 ;
15746 PyObject *swig_obj[1] ;
15747
15748 if (!args) SWIG_fail;
15749 swig_obj[0] = args;
15750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15751 if (!SWIG_IsOK(res1)) {
15752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15753 }
15754 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15755 result = (wxString *)& ((arg1)->CanonicalName);
15756 {
15757 #if wxUSE_UNICODE
15758 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15759 #else
15760 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15761 #endif
15762 }
15763 return resultobj;
15764 fail:
15765 return NULL;
15766 }
15767
15768
15769 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15770 PyObject *resultobj = 0;
15771 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15772 wxString *arg2 = (wxString *) 0 ;
15773 void *argp1 = 0 ;
15774 int res1 = 0 ;
15775 bool temp2 = false ;
15776 PyObject *swig_obj[2] ;
15777
15778 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15780 if (!SWIG_IsOK(res1)) {
15781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15782 }
15783 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15784 {
15785 arg2 = wxString_in_helper(swig_obj[1]);
15786 if (arg2 == NULL) SWIG_fail;
15787 temp2 = true;
15788 }
15789 if (arg1) (arg1)->Description = *arg2;
15790
15791 resultobj = SWIG_Py_Void();
15792 {
15793 if (temp2)
15794 delete arg2;
15795 }
15796 return resultobj;
15797 fail:
15798 {
15799 if (temp2)
15800 delete arg2;
15801 }
15802 return NULL;
15803 }
15804
15805
15806 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15807 PyObject *resultobj = 0;
15808 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15809 wxString *result = 0 ;
15810 void *argp1 = 0 ;
15811 int res1 = 0 ;
15812 PyObject *swig_obj[1] ;
15813
15814 if (!args) SWIG_fail;
15815 swig_obj[0] = args;
15816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15817 if (!SWIG_IsOK(res1)) {
15818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15819 }
15820 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15821 result = (wxString *)& ((arg1)->Description);
15822 {
15823 #if wxUSE_UNICODE
15824 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15825 #else
15826 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15827 #endif
15828 }
15829 return resultobj;
15830 fail:
15831 return NULL;
15832 }
15833
15834
15835 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15836 PyObject *obj;
15837 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15838 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15839 return SWIG_Py_Void();
15840 }
15841
15842 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15843 PyObject *resultobj = 0;
15844 int arg1 = (int) -1 ;
15845 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15846 wxLocale *result = 0 ;
15847 int val1 ;
15848 int ecode1 = 0 ;
15849 int val2 ;
15850 int ecode2 = 0 ;
15851 PyObject * obj0 = 0 ;
15852 PyObject * obj1 = 0 ;
15853 char * kwnames[] = {
15854 (char *) "language",(char *) "flags", NULL
15855 };
15856
15857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15858 if (obj0) {
15859 ecode1 = SWIG_AsVal_int(obj0, &val1);
15860 if (!SWIG_IsOK(ecode1)) {
15861 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15862 }
15863 arg1 = static_cast< int >(val1);
15864 }
15865 if (obj1) {
15866 ecode2 = SWIG_AsVal_int(obj1, &val2);
15867 if (!SWIG_IsOK(ecode2)) {
15868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15869 }
15870 arg2 = static_cast< int >(val2);
15871 }
15872 {
15873 PyThreadState* __tstate = wxPyBeginAllowThreads();
15874 result = (wxLocale *)new_wxLocale(arg1,arg2);
15875 wxPyEndAllowThreads(__tstate);
15876 if (PyErr_Occurred()) SWIG_fail;
15877 }
15878 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15879 return resultobj;
15880 fail:
15881 return NULL;
15882 }
15883
15884
15885 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15886 PyObject *resultobj = 0;
15887 wxLocale *arg1 = (wxLocale *) 0 ;
15888 void *argp1 = 0 ;
15889 int res1 = 0 ;
15890 PyObject *swig_obj[1] ;
15891
15892 if (!args) SWIG_fail;
15893 swig_obj[0] = args;
15894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15895 if (!SWIG_IsOK(res1)) {
15896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15897 }
15898 arg1 = reinterpret_cast< wxLocale * >(argp1);
15899 {
15900 PyThreadState* __tstate = wxPyBeginAllowThreads();
15901 delete arg1;
15902
15903 wxPyEndAllowThreads(__tstate);
15904 if (PyErr_Occurred()) SWIG_fail;
15905 }
15906 resultobj = SWIG_Py_Void();
15907 return resultobj;
15908 fail:
15909 return NULL;
15910 }
15911
15912
15913 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15914 PyObject *resultobj = 0;
15915 wxLocale *arg1 = (wxLocale *) 0 ;
15916 wxString *arg2 = 0 ;
15917 wxString const &arg3_defvalue = wxPyEmptyString ;
15918 wxString *arg3 = (wxString *) &arg3_defvalue ;
15919 wxString const &arg4_defvalue = wxPyEmptyString ;
15920 wxString *arg4 = (wxString *) &arg4_defvalue ;
15921 bool arg5 = (bool) true ;
15922 bool arg6 = (bool) false ;
15923 bool result;
15924 void *argp1 = 0 ;
15925 int res1 = 0 ;
15926 bool temp2 = false ;
15927 bool temp3 = false ;
15928 bool temp4 = false ;
15929 bool val5 ;
15930 int ecode5 = 0 ;
15931 bool val6 ;
15932 int ecode6 = 0 ;
15933 PyObject * obj0 = 0 ;
15934 PyObject * obj1 = 0 ;
15935 PyObject * obj2 = 0 ;
15936 PyObject * obj3 = 0 ;
15937 PyObject * obj4 = 0 ;
15938 PyObject * obj5 = 0 ;
15939 char * kwnames[] = {
15940 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15941 };
15942
15943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15945 if (!SWIG_IsOK(res1)) {
15946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15947 }
15948 arg1 = reinterpret_cast< wxLocale * >(argp1);
15949 {
15950 arg2 = wxString_in_helper(obj1);
15951 if (arg2 == NULL) SWIG_fail;
15952 temp2 = true;
15953 }
15954 if (obj2) {
15955 {
15956 arg3 = wxString_in_helper(obj2);
15957 if (arg3 == NULL) SWIG_fail;
15958 temp3 = true;
15959 }
15960 }
15961 if (obj3) {
15962 {
15963 arg4 = wxString_in_helper(obj3);
15964 if (arg4 == NULL) SWIG_fail;
15965 temp4 = true;
15966 }
15967 }
15968 if (obj4) {
15969 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15970 if (!SWIG_IsOK(ecode5)) {
15971 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15972 }
15973 arg5 = static_cast< bool >(val5);
15974 }
15975 if (obj5) {
15976 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15977 if (!SWIG_IsOK(ecode6)) {
15978 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
15979 }
15980 arg6 = static_cast< bool >(val6);
15981 }
15982 {
15983 PyThreadState* __tstate = wxPyBeginAllowThreads();
15984 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
15985 wxPyEndAllowThreads(__tstate);
15986 if (PyErr_Occurred()) SWIG_fail;
15987 }
15988 {
15989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15990 }
15991 {
15992 if (temp2)
15993 delete arg2;
15994 }
15995 {
15996 if (temp3)
15997 delete arg3;
15998 }
15999 {
16000 if (temp4)
16001 delete arg4;
16002 }
16003 return resultobj;
16004 fail:
16005 {
16006 if (temp2)
16007 delete arg2;
16008 }
16009 {
16010 if (temp3)
16011 delete arg3;
16012 }
16013 {
16014 if (temp4)
16015 delete arg4;
16016 }
16017 return NULL;
16018 }
16019
16020
16021 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16022 PyObject *resultobj = 0;
16023 wxLocale *arg1 = (wxLocale *) 0 ;
16024 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16025 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16026 bool result;
16027 void *argp1 = 0 ;
16028 int res1 = 0 ;
16029 int val2 ;
16030 int ecode2 = 0 ;
16031 int val3 ;
16032 int ecode3 = 0 ;
16033 PyObject * obj0 = 0 ;
16034 PyObject * obj1 = 0 ;
16035 PyObject * obj2 = 0 ;
16036 char * kwnames[] = {
16037 (char *) "self",(char *) "language",(char *) "flags", NULL
16038 };
16039
16040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16042 if (!SWIG_IsOK(res1)) {
16043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16044 }
16045 arg1 = reinterpret_cast< wxLocale * >(argp1);
16046 if (obj1) {
16047 ecode2 = SWIG_AsVal_int(obj1, &val2);
16048 if (!SWIG_IsOK(ecode2)) {
16049 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16050 }
16051 arg2 = static_cast< int >(val2);
16052 }
16053 if (obj2) {
16054 ecode3 = SWIG_AsVal_int(obj2, &val3);
16055 if (!SWIG_IsOK(ecode3)) {
16056 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16057 }
16058 arg3 = static_cast< int >(val3);
16059 }
16060 {
16061 PyThreadState* __tstate = wxPyBeginAllowThreads();
16062 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16063 wxPyEndAllowThreads(__tstate);
16064 if (PyErr_Occurred()) SWIG_fail;
16065 }
16066 {
16067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16068 }
16069 return resultobj;
16070 fail:
16071 return NULL;
16072 }
16073
16074
16075 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16076 PyObject *resultobj = 0;
16077 int result;
16078
16079 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16080 {
16081 PyThreadState* __tstate = wxPyBeginAllowThreads();
16082 result = (int)wxLocale::GetSystemLanguage();
16083 wxPyEndAllowThreads(__tstate);
16084 if (PyErr_Occurred()) SWIG_fail;
16085 }
16086 resultobj = SWIG_From_int(static_cast< int >(result));
16087 return resultobj;
16088 fail:
16089 return NULL;
16090 }
16091
16092
16093 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16094 PyObject *resultobj = 0;
16095 wxFontEncoding result;
16096
16097 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16098 {
16099 PyThreadState* __tstate = wxPyBeginAllowThreads();
16100 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16101 wxPyEndAllowThreads(__tstate);
16102 if (PyErr_Occurred()) SWIG_fail;
16103 }
16104 resultobj = SWIG_From_int(static_cast< int >(result));
16105 return resultobj;
16106 fail:
16107 return NULL;
16108 }
16109
16110
16111 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16112 PyObject *resultobj = 0;
16113 wxString result;
16114
16115 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16116 {
16117 PyThreadState* __tstate = wxPyBeginAllowThreads();
16118 result = wxLocale::GetSystemEncodingName();
16119 wxPyEndAllowThreads(__tstate);
16120 if (PyErr_Occurred()) SWIG_fail;
16121 }
16122 {
16123 #if wxUSE_UNICODE
16124 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16125 #else
16126 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16127 #endif
16128 }
16129 return resultobj;
16130 fail:
16131 return NULL;
16132 }
16133
16134
16135 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16136 PyObject *resultobj = 0;
16137 wxLocale *arg1 = (wxLocale *) 0 ;
16138 bool result;
16139 void *argp1 = 0 ;
16140 int res1 = 0 ;
16141 PyObject *swig_obj[1] ;
16142
16143 if (!args) SWIG_fail;
16144 swig_obj[0] = args;
16145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16146 if (!SWIG_IsOK(res1)) {
16147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16148 }
16149 arg1 = reinterpret_cast< wxLocale * >(argp1);
16150 {
16151 PyThreadState* __tstate = wxPyBeginAllowThreads();
16152 result = (bool)((wxLocale const *)arg1)->IsOk();
16153 wxPyEndAllowThreads(__tstate);
16154 if (PyErr_Occurred()) SWIG_fail;
16155 }
16156 {
16157 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16158 }
16159 return resultobj;
16160 fail:
16161 return NULL;
16162 }
16163
16164
16165 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16166 PyObject *resultobj = 0;
16167 wxLocale *arg1 = (wxLocale *) 0 ;
16168 wxString result;
16169 void *argp1 = 0 ;
16170 int res1 = 0 ;
16171 PyObject *swig_obj[1] ;
16172
16173 if (!args) SWIG_fail;
16174 swig_obj[0] = args;
16175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16176 if (!SWIG_IsOK(res1)) {
16177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16178 }
16179 arg1 = reinterpret_cast< wxLocale * >(argp1);
16180 {
16181 PyThreadState* __tstate = wxPyBeginAllowThreads();
16182 result = ((wxLocale const *)arg1)->GetLocale();
16183 wxPyEndAllowThreads(__tstate);
16184 if (PyErr_Occurred()) SWIG_fail;
16185 }
16186 {
16187 #if wxUSE_UNICODE
16188 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16189 #else
16190 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16191 #endif
16192 }
16193 return resultobj;
16194 fail:
16195 return NULL;
16196 }
16197
16198
16199 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16200 PyObject *resultobj = 0;
16201 wxLocale *arg1 = (wxLocale *) 0 ;
16202 int 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_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16212 }
16213 arg1 = reinterpret_cast< wxLocale * >(argp1);
16214 {
16215 PyThreadState* __tstate = wxPyBeginAllowThreads();
16216 result = (int)((wxLocale const *)arg1)->GetLanguage();
16217 wxPyEndAllowThreads(__tstate);
16218 if (PyErr_Occurred()) SWIG_fail;
16219 }
16220 resultobj = SWIG_From_int(static_cast< int >(result));
16221 return resultobj;
16222 fail:
16223 return NULL;
16224 }
16225
16226
16227 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16228 PyObject *resultobj = 0;
16229 wxLocale *arg1 = (wxLocale *) 0 ;
16230 wxString result;
16231 void *argp1 = 0 ;
16232 int res1 = 0 ;
16233 PyObject *swig_obj[1] ;
16234
16235 if (!args) SWIG_fail;
16236 swig_obj[0] = args;
16237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16238 if (!SWIG_IsOK(res1)) {
16239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16240 }
16241 arg1 = reinterpret_cast< wxLocale * >(argp1);
16242 {
16243 PyThreadState* __tstate = wxPyBeginAllowThreads();
16244 result = ((wxLocale const *)arg1)->GetSysName();
16245 wxPyEndAllowThreads(__tstate);
16246 if (PyErr_Occurred()) SWIG_fail;
16247 }
16248 {
16249 #if wxUSE_UNICODE
16250 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16251 #else
16252 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16253 #endif
16254 }
16255 return resultobj;
16256 fail:
16257 return NULL;
16258 }
16259
16260
16261 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(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_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16274 }
16275 arg1 = reinterpret_cast< wxLocale * >(argp1);
16276 {
16277 PyThreadState* __tstate = wxPyBeginAllowThreads();
16278 result = ((wxLocale const *)arg1)->GetCanonicalName();
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_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16296 PyObject *resultobj = 0;
16297 wxString *arg1 = 0 ;
16298 bool temp1 = false ;
16299 PyObject * obj0 = 0 ;
16300 char * kwnames[] = {
16301 (char *) "prefix", NULL
16302 };
16303
16304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16305 {
16306 arg1 = wxString_in_helper(obj0);
16307 if (arg1 == NULL) SWIG_fail;
16308 temp1 = true;
16309 }
16310 {
16311 PyThreadState* __tstate = wxPyBeginAllowThreads();
16312 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16313 wxPyEndAllowThreads(__tstate);
16314 if (PyErr_Occurred()) SWIG_fail;
16315 }
16316 resultobj = SWIG_Py_Void();
16317 {
16318 if (temp1)
16319 delete arg1;
16320 }
16321 return resultobj;
16322 fail:
16323 {
16324 if (temp1)
16325 delete arg1;
16326 }
16327 return NULL;
16328 }
16329
16330
16331 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16332 PyObject *resultobj = 0;
16333 wxLocale *arg1 = (wxLocale *) 0 ;
16334 wxString *arg2 = 0 ;
16335 bool result;
16336 void *argp1 = 0 ;
16337 int res1 = 0 ;
16338 bool temp2 = false ;
16339 PyObject * obj0 = 0 ;
16340 PyObject * obj1 = 0 ;
16341 char * kwnames[] = {
16342 (char *) "self",(char *) "szDomain", NULL
16343 };
16344
16345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16347 if (!SWIG_IsOK(res1)) {
16348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16349 }
16350 arg1 = reinterpret_cast< wxLocale * >(argp1);
16351 {
16352 arg2 = wxString_in_helper(obj1);
16353 if (arg2 == NULL) SWIG_fail;
16354 temp2 = true;
16355 }
16356 {
16357 PyThreadState* __tstate = wxPyBeginAllowThreads();
16358 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16359 wxPyEndAllowThreads(__tstate);
16360 if (PyErr_Occurred()) SWIG_fail;
16361 }
16362 {
16363 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16364 }
16365 {
16366 if (temp2)
16367 delete arg2;
16368 }
16369 return resultobj;
16370 fail:
16371 {
16372 if (temp2)
16373 delete arg2;
16374 }
16375 return NULL;
16376 }
16377
16378
16379 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16380 PyObject *resultobj = 0;
16381 int arg1 ;
16382 bool result;
16383 int val1 ;
16384 int ecode1 = 0 ;
16385 PyObject * obj0 = 0 ;
16386 char * kwnames[] = {
16387 (char *) "lang", NULL
16388 };
16389
16390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16391 ecode1 = SWIG_AsVal_int(obj0, &val1);
16392 if (!SWIG_IsOK(ecode1)) {
16393 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16394 }
16395 arg1 = static_cast< int >(val1);
16396 {
16397 PyThreadState* __tstate = wxPyBeginAllowThreads();
16398 result = (bool)wxLocale::IsAvailable(arg1);
16399 wxPyEndAllowThreads(__tstate);
16400 if (PyErr_Occurred()) SWIG_fail;
16401 }
16402 {
16403 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16404 }
16405 return resultobj;
16406 fail:
16407 return NULL;
16408 }
16409
16410
16411 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16412 PyObject *resultobj = 0;
16413 wxLocale *arg1 = (wxLocale *) 0 ;
16414 wxString *arg2 = 0 ;
16415 bool result;
16416 void *argp1 = 0 ;
16417 int res1 = 0 ;
16418 bool temp2 = false ;
16419 PyObject * obj0 = 0 ;
16420 PyObject * obj1 = 0 ;
16421 char * kwnames[] = {
16422 (char *) "self",(char *) "szDomain", NULL
16423 };
16424
16425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16427 if (!SWIG_IsOK(res1)) {
16428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16429 }
16430 arg1 = reinterpret_cast< wxLocale * >(argp1);
16431 {
16432 arg2 = wxString_in_helper(obj1);
16433 if (arg2 == NULL) SWIG_fail;
16434 temp2 = true;
16435 }
16436 {
16437 PyThreadState* __tstate = wxPyBeginAllowThreads();
16438 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16439 wxPyEndAllowThreads(__tstate);
16440 if (PyErr_Occurred()) SWIG_fail;
16441 }
16442 {
16443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16444 }
16445 {
16446 if (temp2)
16447 delete arg2;
16448 }
16449 return resultobj;
16450 fail:
16451 {
16452 if (temp2)
16453 delete arg2;
16454 }
16455 return NULL;
16456 }
16457
16458
16459 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16460 PyObject *resultobj = 0;
16461 int arg1 ;
16462 wxLanguageInfo *result = 0 ;
16463 int val1 ;
16464 int ecode1 = 0 ;
16465 PyObject * obj0 = 0 ;
16466 char * kwnames[] = {
16467 (char *) "lang", NULL
16468 };
16469
16470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16471 ecode1 = SWIG_AsVal_int(obj0, &val1);
16472 if (!SWIG_IsOK(ecode1)) {
16473 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16474 }
16475 arg1 = static_cast< int >(val1);
16476 {
16477 PyThreadState* __tstate = wxPyBeginAllowThreads();
16478 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16479 wxPyEndAllowThreads(__tstate);
16480 if (PyErr_Occurred()) SWIG_fail;
16481 }
16482 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16483 return resultobj;
16484 fail:
16485 return NULL;
16486 }
16487
16488
16489 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16490 PyObject *resultobj = 0;
16491 int arg1 ;
16492 wxString result;
16493 int val1 ;
16494 int ecode1 = 0 ;
16495 PyObject * obj0 = 0 ;
16496 char * kwnames[] = {
16497 (char *) "lang", NULL
16498 };
16499
16500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16501 ecode1 = SWIG_AsVal_int(obj0, &val1);
16502 if (!SWIG_IsOK(ecode1)) {
16503 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16504 }
16505 arg1 = static_cast< int >(val1);
16506 {
16507 PyThreadState* __tstate = wxPyBeginAllowThreads();
16508 result = wxLocale::GetLanguageName(arg1);
16509 wxPyEndAllowThreads(__tstate);
16510 if (PyErr_Occurred()) SWIG_fail;
16511 }
16512 {
16513 #if wxUSE_UNICODE
16514 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16515 #else
16516 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16517 #endif
16518 }
16519 return resultobj;
16520 fail:
16521 return NULL;
16522 }
16523
16524
16525 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16526 PyObject *resultobj = 0;
16527 wxString *arg1 = 0 ;
16528 wxLanguageInfo *result = 0 ;
16529 bool temp1 = false ;
16530 PyObject * obj0 = 0 ;
16531 char * kwnames[] = {
16532 (char *) "locale", NULL
16533 };
16534
16535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16536 {
16537 arg1 = wxString_in_helper(obj0);
16538 if (arg1 == NULL) SWIG_fail;
16539 temp1 = true;
16540 }
16541 {
16542 PyThreadState* __tstate = wxPyBeginAllowThreads();
16543 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16544 wxPyEndAllowThreads(__tstate);
16545 if (PyErr_Occurred()) SWIG_fail;
16546 }
16547 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16548 {
16549 if (temp1)
16550 delete arg1;
16551 }
16552 return resultobj;
16553 fail:
16554 {
16555 if (temp1)
16556 delete arg1;
16557 }
16558 return NULL;
16559 }
16560
16561
16562 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16563 PyObject *resultobj = 0;
16564 wxLanguageInfo *arg1 = 0 ;
16565 void *argp1 = 0 ;
16566 int res1 = 0 ;
16567 PyObject * obj0 = 0 ;
16568 char * kwnames[] = {
16569 (char *) "info", NULL
16570 };
16571
16572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16573 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16574 if (!SWIG_IsOK(res1)) {
16575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16576 }
16577 if (!argp1) {
16578 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16579 }
16580 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16581 {
16582 PyThreadState* __tstate = wxPyBeginAllowThreads();
16583 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16584 wxPyEndAllowThreads(__tstate);
16585 if (PyErr_Occurred()) SWIG_fail;
16586 }
16587 resultobj = SWIG_Py_Void();
16588 return resultobj;
16589 fail:
16590 return NULL;
16591 }
16592
16593
16594 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16595 PyObject *resultobj = 0;
16596 wxLocale *arg1 = (wxLocale *) 0 ;
16597 wxString *arg2 = 0 ;
16598 wxString const &arg3_defvalue = wxPyEmptyString ;
16599 wxString *arg3 = (wxString *) &arg3_defvalue ;
16600 wxString result;
16601 void *argp1 = 0 ;
16602 int res1 = 0 ;
16603 bool temp2 = false ;
16604 bool temp3 = false ;
16605 PyObject * obj0 = 0 ;
16606 PyObject * obj1 = 0 ;
16607 PyObject * obj2 = 0 ;
16608 char * kwnames[] = {
16609 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16610 };
16611
16612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16614 if (!SWIG_IsOK(res1)) {
16615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16616 }
16617 arg1 = reinterpret_cast< wxLocale * >(argp1);
16618 {
16619 arg2 = wxString_in_helper(obj1);
16620 if (arg2 == NULL) SWIG_fail;
16621 temp2 = true;
16622 }
16623 if (obj2) {
16624 {
16625 arg3 = wxString_in_helper(obj2);
16626 if (arg3 == NULL) SWIG_fail;
16627 temp3 = true;
16628 }
16629 }
16630 {
16631 PyThreadState* __tstate = wxPyBeginAllowThreads();
16632 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16633 wxPyEndAllowThreads(__tstate);
16634 if (PyErr_Occurred()) SWIG_fail;
16635 }
16636 {
16637 #if wxUSE_UNICODE
16638 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16639 #else
16640 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16641 #endif
16642 }
16643 {
16644 if (temp2)
16645 delete arg2;
16646 }
16647 {
16648 if (temp3)
16649 delete arg3;
16650 }
16651 return resultobj;
16652 fail:
16653 {
16654 if (temp2)
16655 delete arg2;
16656 }
16657 {
16658 if (temp3)
16659 delete arg3;
16660 }
16661 return NULL;
16662 }
16663
16664
16665 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16666 PyObject *resultobj = 0;
16667 wxLocale *arg1 = (wxLocale *) 0 ;
16668 wxString *result = 0 ;
16669 void *argp1 = 0 ;
16670 int res1 = 0 ;
16671 PyObject *swig_obj[1] ;
16672
16673 if (!args) SWIG_fail;
16674 swig_obj[0] = args;
16675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16676 if (!SWIG_IsOK(res1)) {
16677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16678 }
16679 arg1 = reinterpret_cast< wxLocale * >(argp1);
16680 {
16681 PyThreadState* __tstate = wxPyBeginAllowThreads();
16682 {
16683 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16684 result = (wxString *) &_result_ref;
16685 }
16686 wxPyEndAllowThreads(__tstate);
16687 if (PyErr_Occurred()) SWIG_fail;
16688 }
16689 {
16690 #if wxUSE_UNICODE
16691 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16692 #else
16693 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16694 #endif
16695 }
16696 return resultobj;
16697 fail:
16698 return NULL;
16699 }
16700
16701
16702 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16703 PyObject *obj;
16704 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16705 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16706 return SWIG_Py_Void();
16707 }
16708
16709 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16710 return SWIG_Python_InitShadowInstance(args);
16711 }
16712
16713 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16714 PyObject *resultobj = 0;
16715 int arg1 = (int) -1 ;
16716 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16717 wxPyLocale *result = 0 ;
16718 int val1 ;
16719 int ecode1 = 0 ;
16720 int val2 ;
16721 int ecode2 = 0 ;
16722 PyObject * obj0 = 0 ;
16723 PyObject * obj1 = 0 ;
16724 char * kwnames[] = {
16725 (char *) "language",(char *) "flags", NULL
16726 };
16727
16728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16729 if (obj0) {
16730 ecode1 = SWIG_AsVal_int(obj0, &val1);
16731 if (!SWIG_IsOK(ecode1)) {
16732 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16733 }
16734 arg1 = static_cast< int >(val1);
16735 }
16736 if (obj1) {
16737 ecode2 = SWIG_AsVal_int(obj1, &val2);
16738 if (!SWIG_IsOK(ecode2)) {
16739 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16740 }
16741 arg2 = static_cast< int >(val2);
16742 }
16743 {
16744 PyThreadState* __tstate = wxPyBeginAllowThreads();
16745 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16746 wxPyEndAllowThreads(__tstate);
16747 if (PyErr_Occurred()) SWIG_fail;
16748 }
16749 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16750 return resultobj;
16751 fail:
16752 return NULL;
16753 }
16754
16755
16756 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16757 PyObject *resultobj = 0;
16758 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16759 void *argp1 = 0 ;
16760 int res1 = 0 ;
16761 PyObject *swig_obj[1] ;
16762
16763 if (!args) SWIG_fail;
16764 swig_obj[0] = args;
16765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16766 if (!SWIG_IsOK(res1)) {
16767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16768 }
16769 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16770 {
16771 PyThreadState* __tstate = wxPyBeginAllowThreads();
16772 delete arg1;
16773
16774 wxPyEndAllowThreads(__tstate);
16775 if (PyErr_Occurred()) SWIG_fail;
16776 }
16777 resultobj = SWIG_Py_Void();
16778 return resultobj;
16779 fail:
16780 return NULL;
16781 }
16782
16783
16784 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16785 PyObject *resultobj = 0;
16786 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16787 PyObject *arg2 = (PyObject *) 0 ;
16788 PyObject *arg3 = (PyObject *) 0 ;
16789 void *argp1 = 0 ;
16790 int res1 = 0 ;
16791 PyObject * obj0 = 0 ;
16792 PyObject * obj1 = 0 ;
16793 PyObject * obj2 = 0 ;
16794 char * kwnames[] = {
16795 (char *) "self",(char *) "self",(char *) "_class", NULL
16796 };
16797
16798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16800 if (!SWIG_IsOK(res1)) {
16801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16802 }
16803 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16804 arg2 = obj1;
16805 arg3 = obj2;
16806 {
16807 PyThreadState* __tstate = wxPyBeginAllowThreads();
16808 (arg1)->_setCallbackInfo(arg2,arg3);
16809 wxPyEndAllowThreads(__tstate);
16810 if (PyErr_Occurred()) SWIG_fail;
16811 }
16812 resultobj = SWIG_Py_Void();
16813 return resultobj;
16814 fail:
16815 return NULL;
16816 }
16817
16818
16819 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16820 PyObject *resultobj = 0;
16821 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16822 wxChar *arg2 = (wxChar *) 0 ;
16823 wxChar *arg3 = (wxChar *) NULL ;
16824 wxChar *result = 0 ;
16825 void *argp1 = 0 ;
16826 int res1 = 0 ;
16827 void *argp2 = 0 ;
16828 int res2 = 0 ;
16829 void *argp3 = 0 ;
16830 int res3 = 0 ;
16831 PyObject * obj0 = 0 ;
16832 PyObject * obj1 = 0 ;
16833 PyObject * obj2 = 0 ;
16834 char * kwnames[] = {
16835 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16836 };
16837
16838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16840 if (!SWIG_IsOK(res1)) {
16841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16842 }
16843 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16844 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16845 if (!SWIG_IsOK(res2)) {
16846 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
16847 }
16848 arg2 = reinterpret_cast< wxChar * >(argp2);
16849 if (obj2) {
16850 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16851 if (!SWIG_IsOK(res3)) {
16852 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
16853 }
16854 arg3 = reinterpret_cast< wxChar * >(argp3);
16855 }
16856 {
16857 PyThreadState* __tstate = wxPyBeginAllowThreads();
16858 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
16859 wxPyEndAllowThreads(__tstate);
16860 if (PyErr_Occurred()) SWIG_fail;
16861 }
16862 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16863 return resultobj;
16864 fail:
16865 return NULL;
16866 }
16867
16868
16869 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16870 PyObject *resultobj = 0;
16871 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16872 wxChar *arg2 = (wxChar *) 0 ;
16873 wxChar *arg3 = (wxChar *) 0 ;
16874 size_t arg4 ;
16875 wxChar *arg5 = (wxChar *) NULL ;
16876 wxChar *result = 0 ;
16877 void *argp1 = 0 ;
16878 int res1 = 0 ;
16879 void *argp2 = 0 ;
16880 int res2 = 0 ;
16881 void *argp3 = 0 ;
16882 int res3 = 0 ;
16883 size_t val4 ;
16884 int ecode4 = 0 ;
16885 void *argp5 = 0 ;
16886 int res5 = 0 ;
16887 PyObject * obj0 = 0 ;
16888 PyObject * obj1 = 0 ;
16889 PyObject * obj2 = 0 ;
16890 PyObject * obj3 = 0 ;
16891 PyObject * obj4 = 0 ;
16892 char * kwnames[] = {
16893 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16894 };
16895
16896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16898 if (!SWIG_IsOK(res1)) {
16899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16900 }
16901 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16902 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16903 if (!SWIG_IsOK(res2)) {
16904 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16905 }
16906 arg2 = reinterpret_cast< wxChar * >(argp2);
16907 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16908 if (!SWIG_IsOK(res3)) {
16909 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16910 }
16911 arg3 = reinterpret_cast< wxChar * >(argp3);
16912 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16913 if (!SWIG_IsOK(ecode4)) {
16914 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16915 }
16916 arg4 = static_cast< size_t >(val4);
16917 if (obj4) {
16918 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16919 if (!SWIG_IsOK(res5)) {
16920 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16921 }
16922 arg5 = reinterpret_cast< wxChar * >(argp5);
16923 }
16924 {
16925 PyThreadState* __tstate = wxPyBeginAllowThreads();
16926 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
16927 wxPyEndAllowThreads(__tstate);
16928 if (PyErr_Occurred()) SWIG_fail;
16929 }
16930 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16931 return resultobj;
16932 fail:
16933 return NULL;
16934 }
16935
16936
16937 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16938 PyObject *obj;
16939 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16940 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
16941 return SWIG_Py_Void();
16942 }
16943
16944 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16945 return SWIG_Python_InitShadowInstance(args);
16946 }
16947
16948 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16949 PyObject *resultobj = 0;
16950 wxLocale *result = 0 ;
16951
16952 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16953 {
16954 PyThreadState* __tstate = wxPyBeginAllowThreads();
16955 result = (wxLocale *)wxGetLocale();
16956 wxPyEndAllowThreads(__tstate);
16957 if (PyErr_Occurred()) SWIG_fail;
16958 }
16959 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16960 return resultobj;
16961 fail:
16962 return NULL;
16963 }
16964
16965
16966 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16967 PyObject *resultobj = 0;
16968 wxString *arg1 = 0 ;
16969 wxString result;
16970 bool temp1 = false ;
16971
16972 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16973 {
16974 arg1 = wxString_in_helper(swig_obj[0]);
16975 if (arg1 == NULL) SWIG_fail;
16976 temp1 = true;
16977 }
16978 {
16979 PyThreadState* __tstate = wxPyBeginAllowThreads();
16980 result = wxGetTranslation((wxString const &)*arg1);
16981 wxPyEndAllowThreads(__tstate);
16982 if (PyErr_Occurred()) SWIG_fail;
16983 }
16984 {
16985 #if wxUSE_UNICODE
16986 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16987 #else
16988 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16989 #endif
16990 }
16991 {
16992 if (temp1)
16993 delete arg1;
16994 }
16995 return resultobj;
16996 fail:
16997 {
16998 if (temp1)
16999 delete arg1;
17000 }
17001 return NULL;
17002 }
17003
17004
17005 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17006 PyObject *resultobj = 0;
17007 wxString *arg1 = 0 ;
17008 wxString *arg2 = 0 ;
17009 wxString result;
17010 bool temp1 = false ;
17011 bool temp2 = false ;
17012
17013 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17014 {
17015 arg1 = wxString_in_helper(swig_obj[0]);
17016 if (arg1 == NULL) SWIG_fail;
17017 temp1 = true;
17018 }
17019 {
17020 arg2 = wxString_in_helper(swig_obj[1]);
17021 if (arg2 == NULL) SWIG_fail;
17022 temp2 = true;
17023 }
17024 {
17025 PyThreadState* __tstate = wxPyBeginAllowThreads();
17026 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17027 wxPyEndAllowThreads(__tstate);
17028 if (PyErr_Occurred()) SWIG_fail;
17029 }
17030 {
17031 #if wxUSE_UNICODE
17032 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17033 #else
17034 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17035 #endif
17036 }
17037 {
17038 if (temp1)
17039 delete arg1;
17040 }
17041 {
17042 if (temp2)
17043 delete arg2;
17044 }
17045 return resultobj;
17046 fail:
17047 {
17048 if (temp1)
17049 delete arg1;
17050 }
17051 {
17052 if (temp2)
17053 delete arg2;
17054 }
17055 return NULL;
17056 }
17057
17058
17059 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17060 PyObject *resultobj = 0;
17061 wxString *arg1 = 0 ;
17062 wxString *arg2 = 0 ;
17063 size_t arg3 ;
17064 wxString result;
17065 bool temp1 = false ;
17066 bool temp2 = false ;
17067 size_t val3 ;
17068 int ecode3 = 0 ;
17069
17070 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17071 {
17072 arg1 = wxString_in_helper(swig_obj[0]);
17073 if (arg1 == NULL) SWIG_fail;
17074 temp1 = true;
17075 }
17076 {
17077 arg2 = wxString_in_helper(swig_obj[1]);
17078 if (arg2 == NULL) SWIG_fail;
17079 temp2 = true;
17080 }
17081 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17082 if (!SWIG_IsOK(ecode3)) {
17083 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17084 }
17085 arg3 = static_cast< size_t >(val3);
17086 {
17087 PyThreadState* __tstate = wxPyBeginAllowThreads();
17088 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17089 wxPyEndAllowThreads(__tstate);
17090 if (PyErr_Occurred()) SWIG_fail;
17091 }
17092 {
17093 #if wxUSE_UNICODE
17094 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17095 #else
17096 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17097 #endif
17098 }
17099 {
17100 if (temp1)
17101 delete arg1;
17102 }
17103 {
17104 if (temp2)
17105 delete arg2;
17106 }
17107 return resultobj;
17108 fail:
17109 {
17110 if (temp1)
17111 delete arg1;
17112 }
17113 {
17114 if (temp2)
17115 delete arg2;
17116 }
17117 return NULL;
17118 }
17119
17120
17121 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17122 PyObject *resultobj = 0;
17123 wxString *arg1 = 0 ;
17124 wxString *arg2 = 0 ;
17125 size_t arg3 ;
17126 wxString *arg4 = 0 ;
17127 wxString result;
17128 bool temp1 = false ;
17129 bool temp2 = false ;
17130 size_t val3 ;
17131 int ecode3 = 0 ;
17132 bool temp4 = false ;
17133
17134 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17135 {
17136 arg1 = wxString_in_helper(swig_obj[0]);
17137 if (arg1 == NULL) SWIG_fail;
17138 temp1 = true;
17139 }
17140 {
17141 arg2 = wxString_in_helper(swig_obj[1]);
17142 if (arg2 == NULL) SWIG_fail;
17143 temp2 = true;
17144 }
17145 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17146 if (!SWIG_IsOK(ecode3)) {
17147 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17148 }
17149 arg3 = static_cast< size_t >(val3);
17150 {
17151 arg4 = wxString_in_helper(swig_obj[3]);
17152 if (arg4 == NULL) SWIG_fail;
17153 temp4 = true;
17154 }
17155 {
17156 PyThreadState* __tstate = wxPyBeginAllowThreads();
17157 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17158 wxPyEndAllowThreads(__tstate);
17159 if (PyErr_Occurred()) SWIG_fail;
17160 }
17161 {
17162 #if wxUSE_UNICODE
17163 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17164 #else
17165 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17166 #endif
17167 }
17168 {
17169 if (temp1)
17170 delete arg1;
17171 }
17172 {
17173 if (temp2)
17174 delete arg2;
17175 }
17176 {
17177 if (temp4)
17178 delete arg4;
17179 }
17180 return resultobj;
17181 fail:
17182 {
17183 if (temp1)
17184 delete arg1;
17185 }
17186 {
17187 if (temp2)
17188 delete arg2;
17189 }
17190 {
17191 if (temp4)
17192 delete arg4;
17193 }
17194 return NULL;
17195 }
17196
17197
17198 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17199 int argc;
17200 PyObject *argv[5];
17201
17202 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
17203 --argc;
17204 if (argc == 1) {
17205 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17206 }
17207 if (argc == 2) {
17208 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17209 }
17210 if (argc == 3) {
17211 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17212 }
17213 if (argc == 4) {
17214 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17215 }
17216
17217 fail:
17218 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17219 return NULL;
17220 }
17221
17222
17223 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17224 PyObject *resultobj = 0;
17225 wxEncodingConverter *result = 0 ;
17226
17227 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17228 {
17229 PyThreadState* __tstate = wxPyBeginAllowThreads();
17230 result = (wxEncodingConverter *)new wxEncodingConverter();
17231 wxPyEndAllowThreads(__tstate);
17232 if (PyErr_Occurred()) SWIG_fail;
17233 }
17234 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17235 return resultobj;
17236 fail:
17237 return NULL;
17238 }
17239
17240
17241 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17242 PyObject *resultobj = 0;
17243 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17244 void *argp1 = 0 ;
17245 int res1 = 0 ;
17246 PyObject *swig_obj[1] ;
17247
17248 if (!args) SWIG_fail;
17249 swig_obj[0] = args;
17250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17251 if (!SWIG_IsOK(res1)) {
17252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17253 }
17254 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17255 {
17256 PyThreadState* __tstate = wxPyBeginAllowThreads();
17257 delete arg1;
17258
17259 wxPyEndAllowThreads(__tstate);
17260 if (PyErr_Occurred()) SWIG_fail;
17261 }
17262 resultobj = SWIG_Py_Void();
17263 return resultobj;
17264 fail:
17265 return NULL;
17266 }
17267
17268
17269 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17270 PyObject *resultobj = 0;
17271 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17272 wxFontEncoding arg2 ;
17273 wxFontEncoding arg3 ;
17274 int arg4 = (int) wxCONVERT_STRICT ;
17275 bool result;
17276 void *argp1 = 0 ;
17277 int res1 = 0 ;
17278 int val2 ;
17279 int ecode2 = 0 ;
17280 int val3 ;
17281 int ecode3 = 0 ;
17282 int val4 ;
17283 int ecode4 = 0 ;
17284 PyObject * obj0 = 0 ;
17285 PyObject * obj1 = 0 ;
17286 PyObject * obj2 = 0 ;
17287 PyObject * obj3 = 0 ;
17288 char * kwnames[] = {
17289 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17290 };
17291
17292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17294 if (!SWIG_IsOK(res1)) {
17295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17296 }
17297 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17298 ecode2 = SWIG_AsVal_int(obj1, &val2);
17299 if (!SWIG_IsOK(ecode2)) {
17300 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17301 }
17302 arg2 = static_cast< wxFontEncoding >(val2);
17303 ecode3 = SWIG_AsVal_int(obj2, &val3);
17304 if (!SWIG_IsOK(ecode3)) {
17305 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17306 }
17307 arg3 = static_cast< wxFontEncoding >(val3);
17308 if (obj3) {
17309 ecode4 = SWIG_AsVal_int(obj3, &val4);
17310 if (!SWIG_IsOK(ecode4)) {
17311 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17312 }
17313 arg4 = static_cast< int >(val4);
17314 }
17315 {
17316 PyThreadState* __tstate = wxPyBeginAllowThreads();
17317 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17318 wxPyEndAllowThreads(__tstate);
17319 if (PyErr_Occurred()) SWIG_fail;
17320 }
17321 {
17322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17323 }
17324 return resultobj;
17325 fail:
17326 return NULL;
17327 }
17328
17329
17330 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17331 PyObject *resultobj = 0;
17332 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17333 wxString *arg2 = 0 ;
17334 wxString result;
17335 void *argp1 = 0 ;
17336 int res1 = 0 ;
17337 bool temp2 = false ;
17338 PyObject * obj0 = 0 ;
17339 PyObject * obj1 = 0 ;
17340 char * kwnames[] = {
17341 (char *) "self",(char *) "input", NULL
17342 };
17343
17344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17346 if (!SWIG_IsOK(res1)) {
17347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17348 }
17349 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17350 {
17351 arg2 = wxString_in_helper(obj1);
17352 if (arg2 == NULL) SWIG_fail;
17353 temp2 = true;
17354 }
17355 {
17356 PyThreadState* __tstate = wxPyBeginAllowThreads();
17357 result = (arg1)->Convert((wxString const &)*arg2);
17358 wxPyEndAllowThreads(__tstate);
17359 if (PyErr_Occurred()) SWIG_fail;
17360 }
17361 {
17362 #if wxUSE_UNICODE
17363 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17364 #else
17365 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17366 #endif
17367 }
17368 {
17369 if (temp2)
17370 delete arg2;
17371 }
17372 return resultobj;
17373 fail:
17374 {
17375 if (temp2)
17376 delete arg2;
17377 }
17378 return NULL;
17379 }
17380
17381
17382 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17383 PyObject *resultobj = 0;
17384 wxFontEncoding arg1 ;
17385 int arg2 = (int) wxPLATFORM_CURRENT ;
17386 wxFontEncodingArray result;
17387 int val1 ;
17388 int ecode1 = 0 ;
17389 int val2 ;
17390 int ecode2 = 0 ;
17391 PyObject * obj0 = 0 ;
17392 PyObject * obj1 = 0 ;
17393 char * kwnames[] = {
17394 (char *) "enc",(char *) "platform", NULL
17395 };
17396
17397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17398 ecode1 = SWIG_AsVal_int(obj0, &val1);
17399 if (!SWIG_IsOK(ecode1)) {
17400 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17401 }
17402 arg1 = static_cast< wxFontEncoding >(val1);
17403 if (obj1) {
17404 ecode2 = SWIG_AsVal_int(obj1, &val2);
17405 if (!SWIG_IsOK(ecode2)) {
17406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17407 }
17408 arg2 = static_cast< int >(val2);
17409 }
17410 {
17411 PyThreadState* __tstate = wxPyBeginAllowThreads();
17412 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17413 wxPyEndAllowThreads(__tstate);
17414 if (PyErr_Occurred()) SWIG_fail;
17415 }
17416 {
17417 resultobj = PyList_New(0);
17418 for (size_t i=0; i < (&result)->GetCount(); i++) {
17419 PyObject* number = PyInt_FromLong((&result)->Item(i));
17420 PyList_Append(resultobj, number);
17421 Py_DECREF(number);
17422 }
17423 }
17424 return resultobj;
17425 fail:
17426 return NULL;
17427 }
17428
17429
17430 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17431 PyObject *resultobj = 0;
17432 wxFontEncoding arg1 ;
17433 wxFontEncodingArray result;
17434 int val1 ;
17435 int ecode1 = 0 ;
17436 PyObject * obj0 = 0 ;
17437 char * kwnames[] = {
17438 (char *) "enc", NULL
17439 };
17440
17441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17442 ecode1 = SWIG_AsVal_int(obj0, &val1);
17443 if (!SWIG_IsOK(ecode1)) {
17444 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17445 }
17446 arg1 = static_cast< wxFontEncoding >(val1);
17447 {
17448 PyThreadState* __tstate = wxPyBeginAllowThreads();
17449 result = wxEncodingConverter::GetAllEquivalents(arg1);
17450 wxPyEndAllowThreads(__tstate);
17451 if (PyErr_Occurred()) SWIG_fail;
17452 }
17453 {
17454 resultobj = PyList_New(0);
17455 for (size_t i=0; i < (&result)->GetCount(); i++) {
17456 PyObject* number = PyInt_FromLong((&result)->Item(i));
17457 PyList_Append(resultobj, number);
17458 Py_DECREF(number);
17459 }
17460 }
17461 return resultobj;
17462 fail:
17463 return NULL;
17464 }
17465
17466
17467 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17468 PyObject *resultobj = 0;
17469 wxFontEncoding arg1 ;
17470 wxFontEncoding arg2 ;
17471 bool result;
17472 int val1 ;
17473 int ecode1 = 0 ;
17474 int val2 ;
17475 int ecode2 = 0 ;
17476 PyObject * obj0 = 0 ;
17477 PyObject * obj1 = 0 ;
17478 char * kwnames[] = {
17479 (char *) "encIn",(char *) "encOut", NULL
17480 };
17481
17482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17483 ecode1 = SWIG_AsVal_int(obj0, &val1);
17484 if (!SWIG_IsOK(ecode1)) {
17485 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17486 }
17487 arg1 = static_cast< wxFontEncoding >(val1);
17488 ecode2 = SWIG_AsVal_int(obj1, &val2);
17489 if (!SWIG_IsOK(ecode2)) {
17490 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17491 }
17492 arg2 = static_cast< wxFontEncoding >(val2);
17493 {
17494 PyThreadState* __tstate = wxPyBeginAllowThreads();
17495 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17496 wxPyEndAllowThreads(__tstate);
17497 if (PyErr_Occurred()) SWIG_fail;
17498 }
17499 {
17500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17501 }
17502 return resultobj;
17503 fail:
17504 return NULL;
17505 }
17506
17507
17508 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17509 PyObject *obj;
17510 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17511 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17512 return SWIG_Py_Void();
17513 }
17514
17515 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17516 return SWIG_Python_InitShadowInstance(args);
17517 }
17518
17519 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17520 PyObject *resultobj = 0;
17521 wxDC *arg1 = (wxDC *) 0 ;
17522 void *argp1 = 0 ;
17523 int res1 = 0 ;
17524 PyObject *swig_obj[1] ;
17525
17526 if (!args) SWIG_fail;
17527 swig_obj[0] = args;
17528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17529 if (!SWIG_IsOK(res1)) {
17530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17531 }
17532 arg1 = reinterpret_cast< wxDC * >(argp1);
17533 {
17534 PyThreadState* __tstate = wxPyBeginAllowThreads();
17535 delete arg1;
17536
17537 wxPyEndAllowThreads(__tstate);
17538 if (PyErr_Occurred()) SWIG_fail;
17539 }
17540 resultobj = SWIG_Py_Void();
17541 return resultobj;
17542 fail:
17543 return NULL;
17544 }
17545
17546
17547 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17548 PyObject *resultobj = 0;
17549 wxDC *arg1 = (wxDC *) 0 ;
17550 int arg2 ;
17551 int arg3 ;
17552 wxColour *arg4 = 0 ;
17553 int arg5 = (int) wxFLOOD_SURFACE ;
17554 bool result;
17555 void *argp1 = 0 ;
17556 int res1 = 0 ;
17557 int val2 ;
17558 int ecode2 = 0 ;
17559 int val3 ;
17560 int ecode3 = 0 ;
17561 wxColour temp4 ;
17562 int val5 ;
17563 int ecode5 = 0 ;
17564 PyObject * obj0 = 0 ;
17565 PyObject * obj1 = 0 ;
17566 PyObject * obj2 = 0 ;
17567 PyObject * obj3 = 0 ;
17568 PyObject * obj4 = 0 ;
17569 char * kwnames[] = {
17570 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17571 };
17572
17573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17575 if (!SWIG_IsOK(res1)) {
17576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17577 }
17578 arg1 = reinterpret_cast< wxDC * >(argp1);
17579 ecode2 = SWIG_AsVal_int(obj1, &val2);
17580 if (!SWIG_IsOK(ecode2)) {
17581 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17582 }
17583 arg2 = static_cast< int >(val2);
17584 ecode3 = SWIG_AsVal_int(obj2, &val3);
17585 if (!SWIG_IsOK(ecode3)) {
17586 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17587 }
17588 arg3 = static_cast< int >(val3);
17589 {
17590 arg4 = &temp4;
17591 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17592 }
17593 if (obj4) {
17594 ecode5 = SWIG_AsVal_int(obj4, &val5);
17595 if (!SWIG_IsOK(ecode5)) {
17596 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17597 }
17598 arg5 = static_cast< int >(val5);
17599 }
17600 {
17601 PyThreadState* __tstate = wxPyBeginAllowThreads();
17602 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17603 wxPyEndAllowThreads(__tstate);
17604 if (PyErr_Occurred()) SWIG_fail;
17605 }
17606 {
17607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17608 }
17609 return resultobj;
17610 fail:
17611 return NULL;
17612 }
17613
17614
17615 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17616 PyObject *resultobj = 0;
17617 wxDC *arg1 = (wxDC *) 0 ;
17618 wxPoint *arg2 = 0 ;
17619 wxColour *arg3 = 0 ;
17620 int arg4 = (int) wxFLOOD_SURFACE ;
17621 bool result;
17622 void *argp1 = 0 ;
17623 int res1 = 0 ;
17624 wxPoint temp2 ;
17625 wxColour temp3 ;
17626 int val4 ;
17627 int ecode4 = 0 ;
17628 PyObject * obj0 = 0 ;
17629 PyObject * obj1 = 0 ;
17630 PyObject * obj2 = 0 ;
17631 PyObject * obj3 = 0 ;
17632 char * kwnames[] = {
17633 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17634 };
17635
17636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17638 if (!SWIG_IsOK(res1)) {
17639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17640 }
17641 arg1 = reinterpret_cast< wxDC * >(argp1);
17642 {
17643 arg2 = &temp2;
17644 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17645 }
17646 {
17647 arg3 = &temp3;
17648 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17649 }
17650 if (obj3) {
17651 ecode4 = SWIG_AsVal_int(obj3, &val4);
17652 if (!SWIG_IsOK(ecode4)) {
17653 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17654 }
17655 arg4 = static_cast< int >(val4);
17656 }
17657 {
17658 PyThreadState* __tstate = wxPyBeginAllowThreads();
17659 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17660 wxPyEndAllowThreads(__tstate);
17661 if (PyErr_Occurred()) SWIG_fail;
17662 }
17663 {
17664 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17665 }
17666 return resultobj;
17667 fail:
17668 return NULL;
17669 }
17670
17671
17672 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17673 PyObject *resultobj = 0;
17674 wxDC *arg1 = (wxDC *) 0 ;
17675 wxRect *arg2 = 0 ;
17676 wxColour *arg3 = 0 ;
17677 wxColour *arg4 = 0 ;
17678 wxPoint *arg5 = 0 ;
17679 void *argp1 = 0 ;
17680 int res1 = 0 ;
17681 wxRect temp2 ;
17682 wxColour temp3 ;
17683 wxColour temp4 ;
17684 wxPoint temp5 ;
17685 PyObject * obj0 = 0 ;
17686 PyObject * obj1 = 0 ;
17687 PyObject * obj2 = 0 ;
17688 PyObject * obj3 = 0 ;
17689 PyObject * obj4 = 0 ;
17690 char * kwnames[] = {
17691 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17692 };
17693
17694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17696 if (!SWIG_IsOK(res1)) {
17697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17698 }
17699 arg1 = reinterpret_cast< wxDC * >(argp1);
17700 {
17701 arg2 = &temp2;
17702 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17703 }
17704 {
17705 arg3 = &temp3;
17706 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17707 }
17708 {
17709 arg4 = &temp4;
17710 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17711 }
17712 {
17713 arg5 = &temp5;
17714 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17715 }
17716 {
17717 PyThreadState* __tstate = wxPyBeginAllowThreads();
17718 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17719 wxPyEndAllowThreads(__tstate);
17720 if (PyErr_Occurred()) SWIG_fail;
17721 }
17722 resultobj = SWIG_Py_Void();
17723 return resultobj;
17724 fail:
17725 return NULL;
17726 }
17727
17728
17729 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17730 PyObject *resultobj = 0;
17731 wxDC *arg1 = (wxDC *) 0 ;
17732 wxRect *arg2 = 0 ;
17733 wxColour *arg3 = 0 ;
17734 wxColour *arg4 = 0 ;
17735 wxDirection arg5 = (wxDirection) wxEAST ;
17736 void *argp1 = 0 ;
17737 int res1 = 0 ;
17738 wxRect temp2 ;
17739 wxColour temp3 ;
17740 wxColour temp4 ;
17741 int val5 ;
17742 int ecode5 = 0 ;
17743 PyObject * obj0 = 0 ;
17744 PyObject * obj1 = 0 ;
17745 PyObject * obj2 = 0 ;
17746 PyObject * obj3 = 0 ;
17747 PyObject * obj4 = 0 ;
17748 char * kwnames[] = {
17749 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17750 };
17751
17752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17754 if (!SWIG_IsOK(res1)) {
17755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17756 }
17757 arg1 = reinterpret_cast< wxDC * >(argp1);
17758 {
17759 arg2 = &temp2;
17760 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17761 }
17762 {
17763 arg3 = &temp3;
17764 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17765 }
17766 {
17767 arg4 = &temp4;
17768 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17769 }
17770 if (obj4) {
17771 ecode5 = SWIG_AsVal_int(obj4, &val5);
17772 if (!SWIG_IsOK(ecode5)) {
17773 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17774 }
17775 arg5 = static_cast< wxDirection >(val5);
17776 }
17777 {
17778 PyThreadState* __tstate = wxPyBeginAllowThreads();
17779 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17780 wxPyEndAllowThreads(__tstate);
17781 if (PyErr_Occurred()) SWIG_fail;
17782 }
17783 resultobj = SWIG_Py_Void();
17784 return resultobj;
17785 fail:
17786 return NULL;
17787 }
17788
17789
17790 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17791 PyObject *resultobj = 0;
17792 wxDC *arg1 = (wxDC *) 0 ;
17793 int arg2 ;
17794 int arg3 ;
17795 wxColour result;
17796 void *argp1 = 0 ;
17797 int res1 = 0 ;
17798 int val2 ;
17799 int ecode2 = 0 ;
17800 int val3 ;
17801 int ecode3 = 0 ;
17802 PyObject * obj0 = 0 ;
17803 PyObject * obj1 = 0 ;
17804 PyObject * obj2 = 0 ;
17805 char * kwnames[] = {
17806 (char *) "self",(char *) "x",(char *) "y", NULL
17807 };
17808
17809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17811 if (!SWIG_IsOK(res1)) {
17812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17813 }
17814 arg1 = reinterpret_cast< wxDC * >(argp1);
17815 ecode2 = SWIG_AsVal_int(obj1, &val2);
17816 if (!SWIG_IsOK(ecode2)) {
17817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17818 }
17819 arg2 = static_cast< int >(val2);
17820 ecode3 = SWIG_AsVal_int(obj2, &val3);
17821 if (!SWIG_IsOK(ecode3)) {
17822 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17823 }
17824 arg3 = static_cast< int >(val3);
17825 {
17826 PyThreadState* __tstate = wxPyBeginAllowThreads();
17827 result = wxDC_GetPixel(arg1,arg2,arg3);
17828 wxPyEndAllowThreads(__tstate);
17829 if (PyErr_Occurred()) SWIG_fail;
17830 }
17831 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17832 return resultobj;
17833 fail:
17834 return NULL;
17835 }
17836
17837
17838 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17839 PyObject *resultobj = 0;
17840 wxDC *arg1 = (wxDC *) 0 ;
17841 wxPoint *arg2 = 0 ;
17842 wxColour result;
17843 void *argp1 = 0 ;
17844 int res1 = 0 ;
17845 wxPoint temp2 ;
17846 PyObject * obj0 = 0 ;
17847 PyObject * obj1 = 0 ;
17848 char * kwnames[] = {
17849 (char *) "self",(char *) "pt", NULL
17850 };
17851
17852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17854 if (!SWIG_IsOK(res1)) {
17855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17856 }
17857 arg1 = reinterpret_cast< wxDC * >(argp1);
17858 {
17859 arg2 = &temp2;
17860 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17861 }
17862 {
17863 PyThreadState* __tstate = wxPyBeginAllowThreads();
17864 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17865 wxPyEndAllowThreads(__tstate);
17866 if (PyErr_Occurred()) SWIG_fail;
17867 }
17868 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17869 return resultobj;
17870 fail:
17871 return NULL;
17872 }
17873
17874
17875 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17876 PyObject *resultobj = 0;
17877 wxDC *arg1 = (wxDC *) 0 ;
17878 int arg2 ;
17879 int arg3 ;
17880 int arg4 ;
17881 int arg5 ;
17882 void *argp1 = 0 ;
17883 int res1 = 0 ;
17884 int val2 ;
17885 int ecode2 = 0 ;
17886 int val3 ;
17887 int ecode3 = 0 ;
17888 int val4 ;
17889 int ecode4 = 0 ;
17890 int val5 ;
17891 int ecode5 = 0 ;
17892 PyObject * obj0 = 0 ;
17893 PyObject * obj1 = 0 ;
17894 PyObject * obj2 = 0 ;
17895 PyObject * obj3 = 0 ;
17896 PyObject * obj4 = 0 ;
17897 char * kwnames[] = {
17898 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17899 };
17900
17901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17903 if (!SWIG_IsOK(res1)) {
17904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17905 }
17906 arg1 = reinterpret_cast< wxDC * >(argp1);
17907 ecode2 = SWIG_AsVal_int(obj1, &val2);
17908 if (!SWIG_IsOK(ecode2)) {
17909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17910 }
17911 arg2 = static_cast< int >(val2);
17912 ecode3 = SWIG_AsVal_int(obj2, &val3);
17913 if (!SWIG_IsOK(ecode3)) {
17914 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17915 }
17916 arg3 = static_cast< int >(val3);
17917 ecode4 = SWIG_AsVal_int(obj3, &val4);
17918 if (!SWIG_IsOK(ecode4)) {
17919 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17920 }
17921 arg4 = static_cast< int >(val4);
17922 ecode5 = SWIG_AsVal_int(obj4, &val5);
17923 if (!SWIG_IsOK(ecode5)) {
17924 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17925 }
17926 arg5 = static_cast< int >(val5);
17927 {
17928 PyThreadState* __tstate = wxPyBeginAllowThreads();
17929 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17930 wxPyEndAllowThreads(__tstate);
17931 if (PyErr_Occurred()) SWIG_fail;
17932 }
17933 resultobj = SWIG_Py_Void();
17934 return resultobj;
17935 fail:
17936 return NULL;
17937 }
17938
17939
17940 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17941 PyObject *resultobj = 0;
17942 wxDC *arg1 = (wxDC *) 0 ;
17943 wxPoint *arg2 = 0 ;
17944 wxPoint *arg3 = 0 ;
17945 void *argp1 = 0 ;
17946 int res1 = 0 ;
17947 wxPoint temp2 ;
17948 wxPoint temp3 ;
17949 PyObject * obj0 = 0 ;
17950 PyObject * obj1 = 0 ;
17951 PyObject * obj2 = 0 ;
17952 char * kwnames[] = {
17953 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17954 };
17955
17956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17958 if (!SWIG_IsOK(res1)) {
17959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17960 }
17961 arg1 = reinterpret_cast< wxDC * >(argp1);
17962 {
17963 arg2 = &temp2;
17964 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17965 }
17966 {
17967 arg3 = &temp3;
17968 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17969 }
17970 {
17971 PyThreadState* __tstate = wxPyBeginAllowThreads();
17972 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17973 wxPyEndAllowThreads(__tstate);
17974 if (PyErr_Occurred()) SWIG_fail;
17975 }
17976 resultobj = SWIG_Py_Void();
17977 return resultobj;
17978 fail:
17979 return NULL;
17980 }
17981
17982
17983 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17984 PyObject *resultobj = 0;
17985 wxDC *arg1 = (wxDC *) 0 ;
17986 int arg2 ;
17987 int arg3 ;
17988 void *argp1 = 0 ;
17989 int res1 = 0 ;
17990 int val2 ;
17991 int ecode2 = 0 ;
17992 int val3 ;
17993 int ecode3 = 0 ;
17994 PyObject * obj0 = 0 ;
17995 PyObject * obj1 = 0 ;
17996 PyObject * obj2 = 0 ;
17997 char * kwnames[] = {
17998 (char *) "self",(char *) "x",(char *) "y", NULL
17999 };
18000
18001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18003 if (!SWIG_IsOK(res1)) {
18004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18005 }
18006 arg1 = reinterpret_cast< wxDC * >(argp1);
18007 ecode2 = SWIG_AsVal_int(obj1, &val2);
18008 if (!SWIG_IsOK(ecode2)) {
18009 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18010 }
18011 arg2 = static_cast< int >(val2);
18012 ecode3 = SWIG_AsVal_int(obj2, &val3);
18013 if (!SWIG_IsOK(ecode3)) {
18014 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18015 }
18016 arg3 = static_cast< int >(val3);
18017 {
18018 PyThreadState* __tstate = wxPyBeginAllowThreads();
18019 (arg1)->CrossHair(arg2,arg3);
18020 wxPyEndAllowThreads(__tstate);
18021 if (PyErr_Occurred()) SWIG_fail;
18022 }
18023 resultobj = SWIG_Py_Void();
18024 return resultobj;
18025 fail:
18026 return NULL;
18027 }
18028
18029
18030 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18031 PyObject *resultobj = 0;
18032 wxDC *arg1 = (wxDC *) 0 ;
18033 wxPoint *arg2 = 0 ;
18034 void *argp1 = 0 ;
18035 int res1 = 0 ;
18036 wxPoint temp2 ;
18037 PyObject * obj0 = 0 ;
18038 PyObject * obj1 = 0 ;
18039 char * kwnames[] = {
18040 (char *) "self",(char *) "pt", NULL
18041 };
18042
18043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18045 if (!SWIG_IsOK(res1)) {
18046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18047 }
18048 arg1 = reinterpret_cast< wxDC * >(argp1);
18049 {
18050 arg2 = &temp2;
18051 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18052 }
18053 {
18054 PyThreadState* __tstate = wxPyBeginAllowThreads();
18055 (arg1)->CrossHair((wxPoint const &)*arg2);
18056 wxPyEndAllowThreads(__tstate);
18057 if (PyErr_Occurred()) SWIG_fail;
18058 }
18059 resultobj = SWIG_Py_Void();
18060 return resultobj;
18061 fail:
18062 return NULL;
18063 }
18064
18065
18066 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18067 PyObject *resultobj = 0;
18068 wxDC *arg1 = (wxDC *) 0 ;
18069 int arg2 ;
18070 int arg3 ;
18071 int arg4 ;
18072 int arg5 ;
18073 int arg6 ;
18074 int arg7 ;
18075 void *argp1 = 0 ;
18076 int res1 = 0 ;
18077 int val2 ;
18078 int ecode2 = 0 ;
18079 int val3 ;
18080 int ecode3 = 0 ;
18081 int val4 ;
18082 int ecode4 = 0 ;
18083 int val5 ;
18084 int ecode5 = 0 ;
18085 int val6 ;
18086 int ecode6 = 0 ;
18087 int val7 ;
18088 int ecode7 = 0 ;
18089 PyObject * obj0 = 0 ;
18090 PyObject * obj1 = 0 ;
18091 PyObject * obj2 = 0 ;
18092 PyObject * obj3 = 0 ;
18093 PyObject * obj4 = 0 ;
18094 PyObject * obj5 = 0 ;
18095 PyObject * obj6 = 0 ;
18096 char * kwnames[] = {
18097 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18098 };
18099
18100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18102 if (!SWIG_IsOK(res1)) {
18103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18104 }
18105 arg1 = reinterpret_cast< wxDC * >(argp1);
18106 ecode2 = SWIG_AsVal_int(obj1, &val2);
18107 if (!SWIG_IsOK(ecode2)) {
18108 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18109 }
18110 arg2 = static_cast< int >(val2);
18111 ecode3 = SWIG_AsVal_int(obj2, &val3);
18112 if (!SWIG_IsOK(ecode3)) {
18113 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18114 }
18115 arg3 = static_cast< int >(val3);
18116 ecode4 = SWIG_AsVal_int(obj3, &val4);
18117 if (!SWIG_IsOK(ecode4)) {
18118 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18119 }
18120 arg4 = static_cast< int >(val4);
18121 ecode5 = SWIG_AsVal_int(obj4, &val5);
18122 if (!SWIG_IsOK(ecode5)) {
18123 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18124 }
18125 arg5 = static_cast< int >(val5);
18126 ecode6 = SWIG_AsVal_int(obj5, &val6);
18127 if (!SWIG_IsOK(ecode6)) {
18128 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18129 }
18130 arg6 = static_cast< int >(val6);
18131 ecode7 = SWIG_AsVal_int(obj6, &val7);
18132 if (!SWIG_IsOK(ecode7)) {
18133 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18134 }
18135 arg7 = static_cast< int >(val7);
18136 {
18137 PyThreadState* __tstate = wxPyBeginAllowThreads();
18138 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18139 wxPyEndAllowThreads(__tstate);
18140 if (PyErr_Occurred()) SWIG_fail;
18141 }
18142 resultobj = SWIG_Py_Void();
18143 return resultobj;
18144 fail:
18145 return NULL;
18146 }
18147
18148
18149 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18150 PyObject *resultobj = 0;
18151 wxDC *arg1 = (wxDC *) 0 ;
18152 wxPoint *arg2 = 0 ;
18153 wxPoint *arg3 = 0 ;
18154 wxPoint *arg4 = 0 ;
18155 void *argp1 = 0 ;
18156 int res1 = 0 ;
18157 wxPoint temp2 ;
18158 wxPoint temp3 ;
18159 wxPoint temp4 ;
18160 PyObject * obj0 = 0 ;
18161 PyObject * obj1 = 0 ;
18162 PyObject * obj2 = 0 ;
18163 PyObject * obj3 = 0 ;
18164 char * kwnames[] = {
18165 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18166 };
18167
18168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18170 if (!SWIG_IsOK(res1)) {
18171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18172 }
18173 arg1 = reinterpret_cast< wxDC * >(argp1);
18174 {
18175 arg2 = &temp2;
18176 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18177 }
18178 {
18179 arg3 = &temp3;
18180 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18181 }
18182 {
18183 arg4 = &temp4;
18184 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18185 }
18186 {
18187 PyThreadState* __tstate = wxPyBeginAllowThreads();
18188 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18189 wxPyEndAllowThreads(__tstate);
18190 if (PyErr_Occurred()) SWIG_fail;
18191 }
18192 resultobj = SWIG_Py_Void();
18193 return resultobj;
18194 fail:
18195 return NULL;
18196 }
18197
18198
18199 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18200 PyObject *resultobj = 0;
18201 wxDC *arg1 = (wxDC *) 0 ;
18202 int arg2 ;
18203 int arg3 ;
18204 int arg4 ;
18205 int arg5 ;
18206 void *argp1 = 0 ;
18207 int res1 = 0 ;
18208 int val2 ;
18209 int ecode2 = 0 ;
18210 int val3 ;
18211 int ecode3 = 0 ;
18212 int val4 ;
18213 int ecode4 = 0 ;
18214 int val5 ;
18215 int ecode5 = 0 ;
18216 PyObject * obj0 = 0 ;
18217 PyObject * obj1 = 0 ;
18218 PyObject * obj2 = 0 ;
18219 PyObject * obj3 = 0 ;
18220 PyObject * obj4 = 0 ;
18221 char * kwnames[] = {
18222 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18223 };
18224
18225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18227 if (!SWIG_IsOK(res1)) {
18228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18229 }
18230 arg1 = reinterpret_cast< wxDC * >(argp1);
18231 ecode2 = SWIG_AsVal_int(obj1, &val2);
18232 if (!SWIG_IsOK(ecode2)) {
18233 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18234 }
18235 arg2 = static_cast< int >(val2);
18236 ecode3 = SWIG_AsVal_int(obj2, &val3);
18237 if (!SWIG_IsOK(ecode3)) {
18238 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18239 }
18240 arg3 = static_cast< int >(val3);
18241 ecode4 = SWIG_AsVal_int(obj3, &val4);
18242 if (!SWIG_IsOK(ecode4)) {
18243 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18244 }
18245 arg4 = static_cast< int >(val4);
18246 ecode5 = SWIG_AsVal_int(obj4, &val5);
18247 if (!SWIG_IsOK(ecode5)) {
18248 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18249 }
18250 arg5 = static_cast< int >(val5);
18251 {
18252 PyThreadState* __tstate = wxPyBeginAllowThreads();
18253 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18254 wxPyEndAllowThreads(__tstate);
18255 if (PyErr_Occurred()) SWIG_fail;
18256 }
18257 resultobj = SWIG_Py_Void();
18258 return resultobj;
18259 fail:
18260 return NULL;
18261 }
18262
18263
18264 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18265 PyObject *resultobj = 0;
18266 wxDC *arg1 = (wxDC *) 0 ;
18267 wxRect *arg2 = 0 ;
18268 void *argp1 = 0 ;
18269 int res1 = 0 ;
18270 wxRect temp2 ;
18271 PyObject * obj0 = 0 ;
18272 PyObject * obj1 = 0 ;
18273 char * kwnames[] = {
18274 (char *) "self",(char *) "rect", NULL
18275 };
18276
18277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18279 if (!SWIG_IsOK(res1)) {
18280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18281 }
18282 arg1 = reinterpret_cast< wxDC * >(argp1);
18283 {
18284 arg2 = &temp2;
18285 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18286 }
18287 {
18288 PyThreadState* __tstate = wxPyBeginAllowThreads();
18289 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18290 wxPyEndAllowThreads(__tstate);
18291 if (PyErr_Occurred()) SWIG_fail;
18292 }
18293 resultobj = SWIG_Py_Void();
18294 return resultobj;
18295 fail:
18296 return NULL;
18297 }
18298
18299
18300 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18301 PyObject *resultobj = 0;
18302 wxDC *arg1 = (wxDC *) 0 ;
18303 int arg2 ;
18304 int arg3 ;
18305 int arg4 ;
18306 int arg5 ;
18307 double arg6 ;
18308 double arg7 ;
18309 void *argp1 = 0 ;
18310 int res1 = 0 ;
18311 int val2 ;
18312 int ecode2 = 0 ;
18313 int val3 ;
18314 int ecode3 = 0 ;
18315 int val4 ;
18316 int ecode4 = 0 ;
18317 int val5 ;
18318 int ecode5 = 0 ;
18319 double val6 ;
18320 int ecode6 = 0 ;
18321 double val7 ;
18322 int ecode7 = 0 ;
18323 PyObject * obj0 = 0 ;
18324 PyObject * obj1 = 0 ;
18325 PyObject * obj2 = 0 ;
18326 PyObject * obj3 = 0 ;
18327 PyObject * obj4 = 0 ;
18328 PyObject * obj5 = 0 ;
18329 PyObject * obj6 = 0 ;
18330 char * kwnames[] = {
18331 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18332 };
18333
18334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18336 if (!SWIG_IsOK(res1)) {
18337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18338 }
18339 arg1 = reinterpret_cast< wxDC * >(argp1);
18340 ecode2 = SWIG_AsVal_int(obj1, &val2);
18341 if (!SWIG_IsOK(ecode2)) {
18342 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18343 }
18344 arg2 = static_cast< int >(val2);
18345 ecode3 = SWIG_AsVal_int(obj2, &val3);
18346 if (!SWIG_IsOK(ecode3)) {
18347 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18348 }
18349 arg3 = static_cast< int >(val3);
18350 ecode4 = SWIG_AsVal_int(obj3, &val4);
18351 if (!SWIG_IsOK(ecode4)) {
18352 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18353 }
18354 arg4 = static_cast< int >(val4);
18355 ecode5 = SWIG_AsVal_int(obj4, &val5);
18356 if (!SWIG_IsOK(ecode5)) {
18357 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18358 }
18359 arg5 = static_cast< int >(val5);
18360 ecode6 = SWIG_AsVal_double(obj5, &val6);
18361 if (!SWIG_IsOK(ecode6)) {
18362 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18363 }
18364 arg6 = static_cast< double >(val6);
18365 ecode7 = SWIG_AsVal_double(obj6, &val7);
18366 if (!SWIG_IsOK(ecode7)) {
18367 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18368 }
18369 arg7 = static_cast< double >(val7);
18370 {
18371 PyThreadState* __tstate = wxPyBeginAllowThreads();
18372 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18373 wxPyEndAllowThreads(__tstate);
18374 if (PyErr_Occurred()) SWIG_fail;
18375 }
18376 resultobj = SWIG_Py_Void();
18377 return resultobj;
18378 fail:
18379 return NULL;
18380 }
18381
18382
18383 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18384 PyObject *resultobj = 0;
18385 wxDC *arg1 = (wxDC *) 0 ;
18386 wxPoint *arg2 = 0 ;
18387 wxSize *arg3 = 0 ;
18388 double arg4 ;
18389 double arg5 ;
18390 void *argp1 = 0 ;
18391 int res1 = 0 ;
18392 wxPoint temp2 ;
18393 wxSize temp3 ;
18394 double val4 ;
18395 int ecode4 = 0 ;
18396 double val5 ;
18397 int ecode5 = 0 ;
18398 PyObject * obj0 = 0 ;
18399 PyObject * obj1 = 0 ;
18400 PyObject * obj2 = 0 ;
18401 PyObject * obj3 = 0 ;
18402 PyObject * obj4 = 0 ;
18403 char * kwnames[] = {
18404 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18405 };
18406
18407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18409 if (!SWIG_IsOK(res1)) {
18410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18411 }
18412 arg1 = reinterpret_cast< wxDC * >(argp1);
18413 {
18414 arg2 = &temp2;
18415 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18416 }
18417 {
18418 arg3 = &temp3;
18419 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18420 }
18421 ecode4 = SWIG_AsVal_double(obj3, &val4);
18422 if (!SWIG_IsOK(ecode4)) {
18423 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18424 }
18425 arg4 = static_cast< double >(val4);
18426 ecode5 = SWIG_AsVal_double(obj4, &val5);
18427 if (!SWIG_IsOK(ecode5)) {
18428 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18429 }
18430 arg5 = static_cast< double >(val5);
18431 {
18432 PyThreadState* __tstate = wxPyBeginAllowThreads();
18433 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18434 wxPyEndAllowThreads(__tstate);
18435 if (PyErr_Occurred()) SWIG_fail;
18436 }
18437 resultobj = SWIG_Py_Void();
18438 return resultobj;
18439 fail:
18440 return NULL;
18441 }
18442
18443
18444 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18445 PyObject *resultobj = 0;
18446 wxDC *arg1 = (wxDC *) 0 ;
18447 int arg2 ;
18448 int arg3 ;
18449 void *argp1 = 0 ;
18450 int res1 = 0 ;
18451 int val2 ;
18452 int ecode2 = 0 ;
18453 int val3 ;
18454 int ecode3 = 0 ;
18455 PyObject * obj0 = 0 ;
18456 PyObject * obj1 = 0 ;
18457 PyObject * obj2 = 0 ;
18458 char * kwnames[] = {
18459 (char *) "self",(char *) "x",(char *) "y", NULL
18460 };
18461
18462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18464 if (!SWIG_IsOK(res1)) {
18465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18466 }
18467 arg1 = reinterpret_cast< wxDC * >(argp1);
18468 ecode2 = SWIG_AsVal_int(obj1, &val2);
18469 if (!SWIG_IsOK(ecode2)) {
18470 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18471 }
18472 arg2 = static_cast< int >(val2);
18473 ecode3 = SWIG_AsVal_int(obj2, &val3);
18474 if (!SWIG_IsOK(ecode3)) {
18475 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18476 }
18477 arg3 = static_cast< int >(val3);
18478 {
18479 PyThreadState* __tstate = wxPyBeginAllowThreads();
18480 (arg1)->DrawPoint(arg2,arg3);
18481 wxPyEndAllowThreads(__tstate);
18482 if (PyErr_Occurred()) SWIG_fail;
18483 }
18484 resultobj = SWIG_Py_Void();
18485 return resultobj;
18486 fail:
18487 return NULL;
18488 }
18489
18490
18491 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18492 PyObject *resultobj = 0;
18493 wxDC *arg1 = (wxDC *) 0 ;
18494 wxPoint *arg2 = 0 ;
18495 void *argp1 = 0 ;
18496 int res1 = 0 ;
18497 wxPoint temp2 ;
18498 PyObject * obj0 = 0 ;
18499 PyObject * obj1 = 0 ;
18500 char * kwnames[] = {
18501 (char *) "self",(char *) "pt", NULL
18502 };
18503
18504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18506 if (!SWIG_IsOK(res1)) {
18507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18508 }
18509 arg1 = reinterpret_cast< wxDC * >(argp1);
18510 {
18511 arg2 = &temp2;
18512 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18513 }
18514 {
18515 PyThreadState* __tstate = wxPyBeginAllowThreads();
18516 (arg1)->DrawPoint((wxPoint const &)*arg2);
18517 wxPyEndAllowThreads(__tstate);
18518 if (PyErr_Occurred()) SWIG_fail;
18519 }
18520 resultobj = SWIG_Py_Void();
18521 return resultobj;
18522 fail:
18523 return NULL;
18524 }
18525
18526
18527 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18528 PyObject *resultobj = 0;
18529 wxDC *arg1 = (wxDC *) 0 ;
18530 int arg2 ;
18531 int arg3 ;
18532 int arg4 ;
18533 int arg5 ;
18534 void *argp1 = 0 ;
18535 int res1 = 0 ;
18536 int val2 ;
18537 int ecode2 = 0 ;
18538 int val3 ;
18539 int ecode3 = 0 ;
18540 int val4 ;
18541 int ecode4 = 0 ;
18542 int val5 ;
18543 int ecode5 = 0 ;
18544 PyObject * obj0 = 0 ;
18545 PyObject * obj1 = 0 ;
18546 PyObject * obj2 = 0 ;
18547 PyObject * obj3 = 0 ;
18548 PyObject * obj4 = 0 ;
18549 char * kwnames[] = {
18550 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18551 };
18552
18553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18555 if (!SWIG_IsOK(res1)) {
18556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18557 }
18558 arg1 = reinterpret_cast< wxDC * >(argp1);
18559 ecode2 = SWIG_AsVal_int(obj1, &val2);
18560 if (!SWIG_IsOK(ecode2)) {
18561 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18562 }
18563 arg2 = static_cast< int >(val2);
18564 ecode3 = SWIG_AsVal_int(obj2, &val3);
18565 if (!SWIG_IsOK(ecode3)) {
18566 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18567 }
18568 arg3 = static_cast< int >(val3);
18569 ecode4 = SWIG_AsVal_int(obj3, &val4);
18570 if (!SWIG_IsOK(ecode4)) {
18571 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18572 }
18573 arg4 = static_cast< int >(val4);
18574 ecode5 = SWIG_AsVal_int(obj4, &val5);
18575 if (!SWIG_IsOK(ecode5)) {
18576 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18577 }
18578 arg5 = static_cast< int >(val5);
18579 {
18580 PyThreadState* __tstate = wxPyBeginAllowThreads();
18581 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18582 wxPyEndAllowThreads(__tstate);
18583 if (PyErr_Occurred()) SWIG_fail;
18584 }
18585 resultobj = SWIG_Py_Void();
18586 return resultobj;
18587 fail:
18588 return NULL;
18589 }
18590
18591
18592 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18593 PyObject *resultobj = 0;
18594 wxDC *arg1 = (wxDC *) 0 ;
18595 wxRect *arg2 = 0 ;
18596 void *argp1 = 0 ;
18597 int res1 = 0 ;
18598 wxRect temp2 ;
18599 PyObject * obj0 = 0 ;
18600 PyObject * obj1 = 0 ;
18601 char * kwnames[] = {
18602 (char *) "self",(char *) "rect", NULL
18603 };
18604
18605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18607 if (!SWIG_IsOK(res1)) {
18608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18609 }
18610 arg1 = reinterpret_cast< wxDC * >(argp1);
18611 {
18612 arg2 = &temp2;
18613 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18614 }
18615 {
18616 PyThreadState* __tstate = wxPyBeginAllowThreads();
18617 (arg1)->DrawRectangle((wxRect const &)*arg2);
18618 wxPyEndAllowThreads(__tstate);
18619 if (PyErr_Occurred()) SWIG_fail;
18620 }
18621 resultobj = SWIG_Py_Void();
18622 return resultobj;
18623 fail:
18624 return NULL;
18625 }
18626
18627
18628 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18629 PyObject *resultobj = 0;
18630 wxDC *arg1 = (wxDC *) 0 ;
18631 wxPoint *arg2 = 0 ;
18632 wxSize *arg3 = 0 ;
18633 void *argp1 = 0 ;
18634 int res1 = 0 ;
18635 wxPoint temp2 ;
18636 wxSize temp3 ;
18637 PyObject * obj0 = 0 ;
18638 PyObject * obj1 = 0 ;
18639 PyObject * obj2 = 0 ;
18640 char * kwnames[] = {
18641 (char *) "self",(char *) "pt",(char *) "sz", NULL
18642 };
18643
18644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18646 if (!SWIG_IsOK(res1)) {
18647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18648 }
18649 arg1 = reinterpret_cast< wxDC * >(argp1);
18650 {
18651 arg2 = &temp2;
18652 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18653 }
18654 {
18655 arg3 = &temp3;
18656 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18657 }
18658 {
18659 PyThreadState* __tstate = wxPyBeginAllowThreads();
18660 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18661 wxPyEndAllowThreads(__tstate);
18662 if (PyErr_Occurred()) SWIG_fail;
18663 }
18664 resultobj = SWIG_Py_Void();
18665 return resultobj;
18666 fail:
18667 return NULL;
18668 }
18669
18670
18671 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18672 PyObject *resultobj = 0;
18673 wxDC *arg1 = (wxDC *) 0 ;
18674 int arg2 ;
18675 int arg3 ;
18676 int arg4 ;
18677 int arg5 ;
18678 double arg6 ;
18679 void *argp1 = 0 ;
18680 int res1 = 0 ;
18681 int val2 ;
18682 int ecode2 = 0 ;
18683 int val3 ;
18684 int ecode3 = 0 ;
18685 int val4 ;
18686 int ecode4 = 0 ;
18687 int val5 ;
18688 int ecode5 = 0 ;
18689 double val6 ;
18690 int ecode6 = 0 ;
18691 PyObject * obj0 = 0 ;
18692 PyObject * obj1 = 0 ;
18693 PyObject * obj2 = 0 ;
18694 PyObject * obj3 = 0 ;
18695 PyObject * obj4 = 0 ;
18696 PyObject * obj5 = 0 ;
18697 char * kwnames[] = {
18698 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18699 };
18700
18701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18703 if (!SWIG_IsOK(res1)) {
18704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18705 }
18706 arg1 = reinterpret_cast< wxDC * >(argp1);
18707 ecode2 = SWIG_AsVal_int(obj1, &val2);
18708 if (!SWIG_IsOK(ecode2)) {
18709 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18710 }
18711 arg2 = static_cast< int >(val2);
18712 ecode3 = SWIG_AsVal_int(obj2, &val3);
18713 if (!SWIG_IsOK(ecode3)) {
18714 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18715 }
18716 arg3 = static_cast< int >(val3);
18717 ecode4 = SWIG_AsVal_int(obj3, &val4);
18718 if (!SWIG_IsOK(ecode4)) {
18719 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18720 }
18721 arg4 = static_cast< int >(val4);
18722 ecode5 = SWIG_AsVal_int(obj4, &val5);
18723 if (!SWIG_IsOK(ecode5)) {
18724 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18725 }
18726 arg5 = static_cast< int >(val5);
18727 ecode6 = SWIG_AsVal_double(obj5, &val6);
18728 if (!SWIG_IsOK(ecode6)) {
18729 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18730 }
18731 arg6 = static_cast< double >(val6);
18732 {
18733 PyThreadState* __tstate = wxPyBeginAllowThreads();
18734 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18735 wxPyEndAllowThreads(__tstate);
18736 if (PyErr_Occurred()) SWIG_fail;
18737 }
18738 resultobj = SWIG_Py_Void();
18739 return resultobj;
18740 fail:
18741 return NULL;
18742 }
18743
18744
18745 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18746 PyObject *resultobj = 0;
18747 wxDC *arg1 = (wxDC *) 0 ;
18748 wxRect *arg2 = 0 ;
18749 double arg3 ;
18750 void *argp1 = 0 ;
18751 int res1 = 0 ;
18752 wxRect temp2 ;
18753 double val3 ;
18754 int ecode3 = 0 ;
18755 PyObject * obj0 = 0 ;
18756 PyObject * obj1 = 0 ;
18757 PyObject * obj2 = 0 ;
18758 char * kwnames[] = {
18759 (char *) "self",(char *) "r",(char *) "radius", NULL
18760 };
18761
18762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18764 if (!SWIG_IsOK(res1)) {
18765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18766 }
18767 arg1 = reinterpret_cast< wxDC * >(argp1);
18768 {
18769 arg2 = &temp2;
18770 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18771 }
18772 ecode3 = SWIG_AsVal_double(obj2, &val3);
18773 if (!SWIG_IsOK(ecode3)) {
18774 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18775 }
18776 arg3 = static_cast< double >(val3);
18777 {
18778 PyThreadState* __tstate = wxPyBeginAllowThreads();
18779 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18780 wxPyEndAllowThreads(__tstate);
18781 if (PyErr_Occurred()) SWIG_fail;
18782 }
18783 resultobj = SWIG_Py_Void();
18784 return resultobj;
18785 fail:
18786 return NULL;
18787 }
18788
18789
18790 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18791 PyObject *resultobj = 0;
18792 wxDC *arg1 = (wxDC *) 0 ;
18793 wxPoint *arg2 = 0 ;
18794 wxSize *arg3 = 0 ;
18795 double arg4 ;
18796 void *argp1 = 0 ;
18797 int res1 = 0 ;
18798 wxPoint temp2 ;
18799 wxSize temp3 ;
18800 double val4 ;
18801 int ecode4 = 0 ;
18802 PyObject * obj0 = 0 ;
18803 PyObject * obj1 = 0 ;
18804 PyObject * obj2 = 0 ;
18805 PyObject * obj3 = 0 ;
18806 char * kwnames[] = {
18807 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18808 };
18809
18810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18812 if (!SWIG_IsOK(res1)) {
18813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18814 }
18815 arg1 = reinterpret_cast< wxDC * >(argp1);
18816 {
18817 arg2 = &temp2;
18818 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18819 }
18820 {
18821 arg3 = &temp3;
18822 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18823 }
18824 ecode4 = SWIG_AsVal_double(obj3, &val4);
18825 if (!SWIG_IsOK(ecode4)) {
18826 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18827 }
18828 arg4 = static_cast< double >(val4);
18829 {
18830 PyThreadState* __tstate = wxPyBeginAllowThreads();
18831 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18832 wxPyEndAllowThreads(__tstate);
18833 if (PyErr_Occurred()) SWIG_fail;
18834 }
18835 resultobj = SWIG_Py_Void();
18836 return resultobj;
18837 fail:
18838 return NULL;
18839 }
18840
18841
18842 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18843 PyObject *resultobj = 0;
18844 wxDC *arg1 = (wxDC *) 0 ;
18845 int arg2 ;
18846 int arg3 ;
18847 int arg4 ;
18848 void *argp1 = 0 ;
18849 int res1 = 0 ;
18850 int val2 ;
18851 int ecode2 = 0 ;
18852 int val3 ;
18853 int ecode3 = 0 ;
18854 int val4 ;
18855 int ecode4 = 0 ;
18856 PyObject * obj0 = 0 ;
18857 PyObject * obj1 = 0 ;
18858 PyObject * obj2 = 0 ;
18859 PyObject * obj3 = 0 ;
18860 char * kwnames[] = {
18861 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18862 };
18863
18864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18866 if (!SWIG_IsOK(res1)) {
18867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18868 }
18869 arg1 = reinterpret_cast< wxDC * >(argp1);
18870 ecode2 = SWIG_AsVal_int(obj1, &val2);
18871 if (!SWIG_IsOK(ecode2)) {
18872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18873 }
18874 arg2 = static_cast< int >(val2);
18875 ecode3 = SWIG_AsVal_int(obj2, &val3);
18876 if (!SWIG_IsOK(ecode3)) {
18877 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18878 }
18879 arg3 = static_cast< int >(val3);
18880 ecode4 = SWIG_AsVal_int(obj3, &val4);
18881 if (!SWIG_IsOK(ecode4)) {
18882 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18883 }
18884 arg4 = static_cast< int >(val4);
18885 {
18886 PyThreadState* __tstate = wxPyBeginAllowThreads();
18887 (arg1)->DrawCircle(arg2,arg3,arg4);
18888 wxPyEndAllowThreads(__tstate);
18889 if (PyErr_Occurred()) SWIG_fail;
18890 }
18891 resultobj = SWIG_Py_Void();
18892 return resultobj;
18893 fail:
18894 return NULL;
18895 }
18896
18897
18898 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18899 PyObject *resultobj = 0;
18900 wxDC *arg1 = (wxDC *) 0 ;
18901 wxPoint *arg2 = 0 ;
18902 int arg3 ;
18903 void *argp1 = 0 ;
18904 int res1 = 0 ;
18905 wxPoint temp2 ;
18906 int val3 ;
18907 int ecode3 = 0 ;
18908 PyObject * obj0 = 0 ;
18909 PyObject * obj1 = 0 ;
18910 PyObject * obj2 = 0 ;
18911 char * kwnames[] = {
18912 (char *) "self",(char *) "pt",(char *) "radius", NULL
18913 };
18914
18915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18917 if (!SWIG_IsOK(res1)) {
18918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18919 }
18920 arg1 = reinterpret_cast< wxDC * >(argp1);
18921 {
18922 arg2 = &temp2;
18923 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18924 }
18925 ecode3 = SWIG_AsVal_int(obj2, &val3);
18926 if (!SWIG_IsOK(ecode3)) {
18927 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18928 }
18929 arg3 = static_cast< int >(val3);
18930 {
18931 PyThreadState* __tstate = wxPyBeginAllowThreads();
18932 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18933 wxPyEndAllowThreads(__tstate);
18934 if (PyErr_Occurred()) SWIG_fail;
18935 }
18936 resultobj = SWIG_Py_Void();
18937 return resultobj;
18938 fail:
18939 return NULL;
18940 }
18941
18942
18943 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18944 PyObject *resultobj = 0;
18945 wxDC *arg1 = (wxDC *) 0 ;
18946 int arg2 ;
18947 int arg3 ;
18948 int arg4 ;
18949 int arg5 ;
18950 void *argp1 = 0 ;
18951 int res1 = 0 ;
18952 int val2 ;
18953 int ecode2 = 0 ;
18954 int val3 ;
18955 int ecode3 = 0 ;
18956 int val4 ;
18957 int ecode4 = 0 ;
18958 int val5 ;
18959 int ecode5 = 0 ;
18960 PyObject * obj0 = 0 ;
18961 PyObject * obj1 = 0 ;
18962 PyObject * obj2 = 0 ;
18963 PyObject * obj3 = 0 ;
18964 PyObject * obj4 = 0 ;
18965 char * kwnames[] = {
18966 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18967 };
18968
18969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18971 if (!SWIG_IsOK(res1)) {
18972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18973 }
18974 arg1 = reinterpret_cast< wxDC * >(argp1);
18975 ecode2 = SWIG_AsVal_int(obj1, &val2);
18976 if (!SWIG_IsOK(ecode2)) {
18977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
18978 }
18979 arg2 = static_cast< int >(val2);
18980 ecode3 = SWIG_AsVal_int(obj2, &val3);
18981 if (!SWIG_IsOK(ecode3)) {
18982 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
18983 }
18984 arg3 = static_cast< int >(val3);
18985 ecode4 = SWIG_AsVal_int(obj3, &val4);
18986 if (!SWIG_IsOK(ecode4)) {
18987 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
18988 }
18989 arg4 = static_cast< int >(val4);
18990 ecode5 = SWIG_AsVal_int(obj4, &val5);
18991 if (!SWIG_IsOK(ecode5)) {
18992 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
18993 }
18994 arg5 = static_cast< int >(val5);
18995 {
18996 PyThreadState* __tstate = wxPyBeginAllowThreads();
18997 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
18998 wxPyEndAllowThreads(__tstate);
18999 if (PyErr_Occurred()) SWIG_fail;
19000 }
19001 resultobj = SWIG_Py_Void();
19002 return resultobj;
19003 fail:
19004 return NULL;
19005 }
19006
19007
19008 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19009 PyObject *resultobj = 0;
19010 wxDC *arg1 = (wxDC *) 0 ;
19011 wxRect *arg2 = 0 ;
19012 void *argp1 = 0 ;
19013 int res1 = 0 ;
19014 wxRect temp2 ;
19015 PyObject * obj0 = 0 ;
19016 PyObject * obj1 = 0 ;
19017 char * kwnames[] = {
19018 (char *) "self",(char *) "rect", NULL
19019 };
19020
19021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19023 if (!SWIG_IsOK(res1)) {
19024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19025 }
19026 arg1 = reinterpret_cast< wxDC * >(argp1);
19027 {
19028 arg2 = &temp2;
19029 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19030 }
19031 {
19032 PyThreadState* __tstate = wxPyBeginAllowThreads();
19033 (arg1)->DrawEllipse((wxRect const &)*arg2);
19034 wxPyEndAllowThreads(__tstate);
19035 if (PyErr_Occurred()) SWIG_fail;
19036 }
19037 resultobj = SWIG_Py_Void();
19038 return resultobj;
19039 fail:
19040 return NULL;
19041 }
19042
19043
19044 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19045 PyObject *resultobj = 0;
19046 wxDC *arg1 = (wxDC *) 0 ;
19047 wxPoint *arg2 = 0 ;
19048 wxSize *arg3 = 0 ;
19049 void *argp1 = 0 ;
19050 int res1 = 0 ;
19051 wxPoint temp2 ;
19052 wxSize temp3 ;
19053 PyObject * obj0 = 0 ;
19054 PyObject * obj1 = 0 ;
19055 PyObject * obj2 = 0 ;
19056 char * kwnames[] = {
19057 (char *) "self",(char *) "pt",(char *) "sz", NULL
19058 };
19059
19060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19062 if (!SWIG_IsOK(res1)) {
19063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19064 }
19065 arg1 = reinterpret_cast< wxDC * >(argp1);
19066 {
19067 arg2 = &temp2;
19068 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19069 }
19070 {
19071 arg3 = &temp3;
19072 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19073 }
19074 {
19075 PyThreadState* __tstate = wxPyBeginAllowThreads();
19076 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19077 wxPyEndAllowThreads(__tstate);
19078 if (PyErr_Occurred()) SWIG_fail;
19079 }
19080 resultobj = SWIG_Py_Void();
19081 return resultobj;
19082 fail:
19083 return NULL;
19084 }
19085
19086
19087 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19088 PyObject *resultobj = 0;
19089 wxDC *arg1 = (wxDC *) 0 ;
19090 wxIcon *arg2 = 0 ;
19091 int arg3 ;
19092 int arg4 ;
19093 void *argp1 = 0 ;
19094 int res1 = 0 ;
19095 void *argp2 = 0 ;
19096 int res2 = 0 ;
19097 int val3 ;
19098 int ecode3 = 0 ;
19099 int val4 ;
19100 int ecode4 = 0 ;
19101 PyObject * obj0 = 0 ;
19102 PyObject * obj1 = 0 ;
19103 PyObject * obj2 = 0 ;
19104 PyObject * obj3 = 0 ;
19105 char * kwnames[] = {
19106 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19107 };
19108
19109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19111 if (!SWIG_IsOK(res1)) {
19112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19113 }
19114 arg1 = reinterpret_cast< wxDC * >(argp1);
19115 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19116 if (!SWIG_IsOK(res2)) {
19117 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19118 }
19119 if (!argp2) {
19120 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19121 }
19122 arg2 = reinterpret_cast< wxIcon * >(argp2);
19123 ecode3 = SWIG_AsVal_int(obj2, &val3);
19124 if (!SWIG_IsOK(ecode3)) {
19125 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19126 }
19127 arg3 = static_cast< int >(val3);
19128 ecode4 = SWIG_AsVal_int(obj3, &val4);
19129 if (!SWIG_IsOK(ecode4)) {
19130 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19131 }
19132 arg4 = static_cast< int >(val4);
19133 {
19134 PyThreadState* __tstate = wxPyBeginAllowThreads();
19135 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19136 wxPyEndAllowThreads(__tstate);
19137 if (PyErr_Occurred()) SWIG_fail;
19138 }
19139 resultobj = SWIG_Py_Void();
19140 return resultobj;
19141 fail:
19142 return NULL;
19143 }
19144
19145
19146 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19147 PyObject *resultobj = 0;
19148 wxDC *arg1 = (wxDC *) 0 ;
19149 wxIcon *arg2 = 0 ;
19150 wxPoint *arg3 = 0 ;
19151 void *argp1 = 0 ;
19152 int res1 = 0 ;
19153 void *argp2 = 0 ;
19154 int res2 = 0 ;
19155 wxPoint temp3 ;
19156 PyObject * obj0 = 0 ;
19157 PyObject * obj1 = 0 ;
19158 PyObject * obj2 = 0 ;
19159 char * kwnames[] = {
19160 (char *) "self",(char *) "icon",(char *) "pt", NULL
19161 };
19162
19163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19165 if (!SWIG_IsOK(res1)) {
19166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19167 }
19168 arg1 = reinterpret_cast< wxDC * >(argp1);
19169 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19170 if (!SWIG_IsOK(res2)) {
19171 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19172 }
19173 if (!argp2) {
19174 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19175 }
19176 arg2 = reinterpret_cast< wxIcon * >(argp2);
19177 {
19178 arg3 = &temp3;
19179 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19180 }
19181 {
19182 PyThreadState* __tstate = wxPyBeginAllowThreads();
19183 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19184 wxPyEndAllowThreads(__tstate);
19185 if (PyErr_Occurred()) SWIG_fail;
19186 }
19187 resultobj = SWIG_Py_Void();
19188 return resultobj;
19189 fail:
19190 return NULL;
19191 }
19192
19193
19194 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19195 PyObject *resultobj = 0;
19196 wxDC *arg1 = (wxDC *) 0 ;
19197 wxBitmap *arg2 = 0 ;
19198 int arg3 ;
19199 int arg4 ;
19200 bool arg5 = (bool) false ;
19201 void *argp1 = 0 ;
19202 int res1 = 0 ;
19203 void *argp2 = 0 ;
19204 int res2 = 0 ;
19205 int val3 ;
19206 int ecode3 = 0 ;
19207 int val4 ;
19208 int ecode4 = 0 ;
19209 bool val5 ;
19210 int ecode5 = 0 ;
19211 PyObject * obj0 = 0 ;
19212 PyObject * obj1 = 0 ;
19213 PyObject * obj2 = 0 ;
19214 PyObject * obj3 = 0 ;
19215 PyObject * obj4 = 0 ;
19216 char * kwnames[] = {
19217 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19218 };
19219
19220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19222 if (!SWIG_IsOK(res1)) {
19223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19224 }
19225 arg1 = reinterpret_cast< wxDC * >(argp1);
19226 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19227 if (!SWIG_IsOK(res2)) {
19228 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19229 }
19230 if (!argp2) {
19231 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19232 }
19233 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19234 ecode3 = SWIG_AsVal_int(obj2, &val3);
19235 if (!SWIG_IsOK(ecode3)) {
19236 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19237 }
19238 arg3 = static_cast< int >(val3);
19239 ecode4 = SWIG_AsVal_int(obj3, &val4);
19240 if (!SWIG_IsOK(ecode4)) {
19241 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19242 }
19243 arg4 = static_cast< int >(val4);
19244 if (obj4) {
19245 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19246 if (!SWIG_IsOK(ecode5)) {
19247 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19248 }
19249 arg5 = static_cast< bool >(val5);
19250 }
19251 {
19252 PyThreadState* __tstate = wxPyBeginAllowThreads();
19253 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19254 wxPyEndAllowThreads(__tstate);
19255 if (PyErr_Occurred()) SWIG_fail;
19256 }
19257 resultobj = SWIG_Py_Void();
19258 return resultobj;
19259 fail:
19260 return NULL;
19261 }
19262
19263
19264 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19265 PyObject *resultobj = 0;
19266 wxDC *arg1 = (wxDC *) 0 ;
19267 wxBitmap *arg2 = 0 ;
19268 wxPoint *arg3 = 0 ;
19269 bool arg4 = (bool) false ;
19270 void *argp1 = 0 ;
19271 int res1 = 0 ;
19272 void *argp2 = 0 ;
19273 int res2 = 0 ;
19274 wxPoint temp3 ;
19275 bool val4 ;
19276 int ecode4 = 0 ;
19277 PyObject * obj0 = 0 ;
19278 PyObject * obj1 = 0 ;
19279 PyObject * obj2 = 0 ;
19280 PyObject * obj3 = 0 ;
19281 char * kwnames[] = {
19282 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19283 };
19284
19285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19287 if (!SWIG_IsOK(res1)) {
19288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19289 }
19290 arg1 = reinterpret_cast< wxDC * >(argp1);
19291 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19292 if (!SWIG_IsOK(res2)) {
19293 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19294 }
19295 if (!argp2) {
19296 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19297 }
19298 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19299 {
19300 arg3 = &temp3;
19301 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19302 }
19303 if (obj3) {
19304 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19305 if (!SWIG_IsOK(ecode4)) {
19306 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19307 }
19308 arg4 = static_cast< bool >(val4);
19309 }
19310 {
19311 PyThreadState* __tstate = wxPyBeginAllowThreads();
19312 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19313 wxPyEndAllowThreads(__tstate);
19314 if (PyErr_Occurred()) SWIG_fail;
19315 }
19316 resultobj = SWIG_Py_Void();
19317 return resultobj;
19318 fail:
19319 return NULL;
19320 }
19321
19322
19323 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19324 PyObject *resultobj = 0;
19325 wxDC *arg1 = (wxDC *) 0 ;
19326 wxString *arg2 = 0 ;
19327 int arg3 ;
19328 int arg4 ;
19329 void *argp1 = 0 ;
19330 int res1 = 0 ;
19331 bool temp2 = false ;
19332 int val3 ;
19333 int ecode3 = 0 ;
19334 int val4 ;
19335 int ecode4 = 0 ;
19336 PyObject * obj0 = 0 ;
19337 PyObject * obj1 = 0 ;
19338 PyObject * obj2 = 0 ;
19339 PyObject * obj3 = 0 ;
19340 char * kwnames[] = {
19341 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19342 };
19343
19344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19346 if (!SWIG_IsOK(res1)) {
19347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19348 }
19349 arg1 = reinterpret_cast< wxDC * >(argp1);
19350 {
19351 arg2 = wxString_in_helper(obj1);
19352 if (arg2 == NULL) SWIG_fail;
19353 temp2 = true;
19354 }
19355 ecode3 = SWIG_AsVal_int(obj2, &val3);
19356 if (!SWIG_IsOK(ecode3)) {
19357 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19358 }
19359 arg3 = static_cast< int >(val3);
19360 ecode4 = SWIG_AsVal_int(obj3, &val4);
19361 if (!SWIG_IsOK(ecode4)) {
19362 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19363 }
19364 arg4 = static_cast< int >(val4);
19365 {
19366 PyThreadState* __tstate = wxPyBeginAllowThreads();
19367 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19368 wxPyEndAllowThreads(__tstate);
19369 if (PyErr_Occurred()) SWIG_fail;
19370 }
19371 resultobj = SWIG_Py_Void();
19372 {
19373 if (temp2)
19374 delete arg2;
19375 }
19376 return resultobj;
19377 fail:
19378 {
19379 if (temp2)
19380 delete arg2;
19381 }
19382 return NULL;
19383 }
19384
19385
19386 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19387 PyObject *resultobj = 0;
19388 wxDC *arg1 = (wxDC *) 0 ;
19389 wxString *arg2 = 0 ;
19390 wxPoint *arg3 = 0 ;
19391 void *argp1 = 0 ;
19392 int res1 = 0 ;
19393 bool temp2 = false ;
19394 wxPoint temp3 ;
19395 PyObject * obj0 = 0 ;
19396 PyObject * obj1 = 0 ;
19397 PyObject * obj2 = 0 ;
19398 char * kwnames[] = {
19399 (char *) "self",(char *) "text",(char *) "pt", NULL
19400 };
19401
19402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19404 if (!SWIG_IsOK(res1)) {
19405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19406 }
19407 arg1 = reinterpret_cast< wxDC * >(argp1);
19408 {
19409 arg2 = wxString_in_helper(obj1);
19410 if (arg2 == NULL) SWIG_fail;
19411 temp2 = true;
19412 }
19413 {
19414 arg3 = &temp3;
19415 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19416 }
19417 {
19418 PyThreadState* __tstate = wxPyBeginAllowThreads();
19419 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19420 wxPyEndAllowThreads(__tstate);
19421 if (PyErr_Occurred()) SWIG_fail;
19422 }
19423 resultobj = SWIG_Py_Void();
19424 {
19425 if (temp2)
19426 delete arg2;
19427 }
19428 return resultobj;
19429 fail:
19430 {
19431 if (temp2)
19432 delete arg2;
19433 }
19434 return NULL;
19435 }
19436
19437
19438 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19439 PyObject *resultobj = 0;
19440 wxDC *arg1 = (wxDC *) 0 ;
19441 wxString *arg2 = 0 ;
19442 int arg3 ;
19443 int arg4 ;
19444 double arg5 ;
19445 void *argp1 = 0 ;
19446 int res1 = 0 ;
19447 bool temp2 = false ;
19448 int val3 ;
19449 int ecode3 = 0 ;
19450 int val4 ;
19451 int ecode4 = 0 ;
19452 double val5 ;
19453 int ecode5 = 0 ;
19454 PyObject * obj0 = 0 ;
19455 PyObject * obj1 = 0 ;
19456 PyObject * obj2 = 0 ;
19457 PyObject * obj3 = 0 ;
19458 PyObject * obj4 = 0 ;
19459 char * kwnames[] = {
19460 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19461 };
19462
19463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19465 if (!SWIG_IsOK(res1)) {
19466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19467 }
19468 arg1 = reinterpret_cast< wxDC * >(argp1);
19469 {
19470 arg2 = wxString_in_helper(obj1);
19471 if (arg2 == NULL) SWIG_fail;
19472 temp2 = true;
19473 }
19474 ecode3 = SWIG_AsVal_int(obj2, &val3);
19475 if (!SWIG_IsOK(ecode3)) {
19476 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19477 }
19478 arg3 = static_cast< int >(val3);
19479 ecode4 = SWIG_AsVal_int(obj3, &val4);
19480 if (!SWIG_IsOK(ecode4)) {
19481 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19482 }
19483 arg4 = static_cast< int >(val4);
19484 ecode5 = SWIG_AsVal_double(obj4, &val5);
19485 if (!SWIG_IsOK(ecode5)) {
19486 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19487 }
19488 arg5 = static_cast< double >(val5);
19489 {
19490 PyThreadState* __tstate = wxPyBeginAllowThreads();
19491 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19492 wxPyEndAllowThreads(__tstate);
19493 if (PyErr_Occurred()) SWIG_fail;
19494 }
19495 resultobj = SWIG_Py_Void();
19496 {
19497 if (temp2)
19498 delete arg2;
19499 }
19500 return resultobj;
19501 fail:
19502 {
19503 if (temp2)
19504 delete arg2;
19505 }
19506 return NULL;
19507 }
19508
19509
19510 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19511 PyObject *resultobj = 0;
19512 wxDC *arg1 = (wxDC *) 0 ;
19513 wxString *arg2 = 0 ;
19514 wxPoint *arg3 = 0 ;
19515 double arg4 ;
19516 void *argp1 = 0 ;
19517 int res1 = 0 ;
19518 bool temp2 = false ;
19519 wxPoint temp3 ;
19520 double val4 ;
19521 int ecode4 = 0 ;
19522 PyObject * obj0 = 0 ;
19523 PyObject * obj1 = 0 ;
19524 PyObject * obj2 = 0 ;
19525 PyObject * obj3 = 0 ;
19526 char * kwnames[] = {
19527 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19528 };
19529
19530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19532 if (!SWIG_IsOK(res1)) {
19533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19534 }
19535 arg1 = reinterpret_cast< wxDC * >(argp1);
19536 {
19537 arg2 = wxString_in_helper(obj1);
19538 if (arg2 == NULL) SWIG_fail;
19539 temp2 = true;
19540 }
19541 {
19542 arg3 = &temp3;
19543 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19544 }
19545 ecode4 = SWIG_AsVal_double(obj3, &val4);
19546 if (!SWIG_IsOK(ecode4)) {
19547 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19548 }
19549 arg4 = static_cast< double >(val4);
19550 {
19551 PyThreadState* __tstate = wxPyBeginAllowThreads();
19552 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19553 wxPyEndAllowThreads(__tstate);
19554 if (PyErr_Occurred()) SWIG_fail;
19555 }
19556 resultobj = SWIG_Py_Void();
19557 {
19558 if (temp2)
19559 delete arg2;
19560 }
19561 return resultobj;
19562 fail:
19563 {
19564 if (temp2)
19565 delete arg2;
19566 }
19567 return NULL;
19568 }
19569
19570
19571 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19572 PyObject *resultobj = 0;
19573 wxDC *arg1 = (wxDC *) 0 ;
19574 int arg2 ;
19575 int arg3 ;
19576 int arg4 ;
19577 int arg5 ;
19578 wxDC *arg6 = (wxDC *) 0 ;
19579 int arg7 ;
19580 int arg8 ;
19581 int arg9 = (int) wxCOPY ;
19582 bool arg10 = (bool) false ;
19583 int arg11 = (int) -1 ;
19584 int arg12 = (int) -1 ;
19585 bool result;
19586 void *argp1 = 0 ;
19587 int res1 = 0 ;
19588 int val2 ;
19589 int ecode2 = 0 ;
19590 int val3 ;
19591 int ecode3 = 0 ;
19592 int val4 ;
19593 int ecode4 = 0 ;
19594 int val5 ;
19595 int ecode5 = 0 ;
19596 void *argp6 = 0 ;
19597 int res6 = 0 ;
19598 int val7 ;
19599 int ecode7 = 0 ;
19600 int val8 ;
19601 int ecode8 = 0 ;
19602 int val9 ;
19603 int ecode9 = 0 ;
19604 bool val10 ;
19605 int ecode10 = 0 ;
19606 int val11 ;
19607 int ecode11 = 0 ;
19608 int val12 ;
19609 int ecode12 = 0 ;
19610 PyObject * obj0 = 0 ;
19611 PyObject * obj1 = 0 ;
19612 PyObject * obj2 = 0 ;
19613 PyObject * obj3 = 0 ;
19614 PyObject * obj4 = 0 ;
19615 PyObject * obj5 = 0 ;
19616 PyObject * obj6 = 0 ;
19617 PyObject * obj7 = 0 ;
19618 PyObject * obj8 = 0 ;
19619 PyObject * obj9 = 0 ;
19620 PyObject * obj10 = 0 ;
19621 PyObject * obj11 = 0 ;
19622 char * kwnames[] = {
19623 (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
19624 };
19625
19626 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;
19627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19628 if (!SWIG_IsOK(res1)) {
19629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19630 }
19631 arg1 = reinterpret_cast< wxDC * >(argp1);
19632 ecode2 = SWIG_AsVal_int(obj1, &val2);
19633 if (!SWIG_IsOK(ecode2)) {
19634 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19635 }
19636 arg2 = static_cast< int >(val2);
19637 ecode3 = SWIG_AsVal_int(obj2, &val3);
19638 if (!SWIG_IsOK(ecode3)) {
19639 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19640 }
19641 arg3 = static_cast< int >(val3);
19642 ecode4 = SWIG_AsVal_int(obj3, &val4);
19643 if (!SWIG_IsOK(ecode4)) {
19644 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19645 }
19646 arg4 = static_cast< int >(val4);
19647 ecode5 = SWIG_AsVal_int(obj4, &val5);
19648 if (!SWIG_IsOK(ecode5)) {
19649 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19650 }
19651 arg5 = static_cast< int >(val5);
19652 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19653 if (!SWIG_IsOK(res6)) {
19654 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19655 }
19656 arg6 = reinterpret_cast< wxDC * >(argp6);
19657 ecode7 = SWIG_AsVal_int(obj6, &val7);
19658 if (!SWIG_IsOK(ecode7)) {
19659 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19660 }
19661 arg7 = static_cast< int >(val7);
19662 ecode8 = SWIG_AsVal_int(obj7, &val8);
19663 if (!SWIG_IsOK(ecode8)) {
19664 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19665 }
19666 arg8 = static_cast< int >(val8);
19667 if (obj8) {
19668 ecode9 = SWIG_AsVal_int(obj8, &val9);
19669 if (!SWIG_IsOK(ecode9)) {
19670 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19671 }
19672 arg9 = static_cast< int >(val9);
19673 }
19674 if (obj9) {
19675 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19676 if (!SWIG_IsOK(ecode10)) {
19677 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19678 }
19679 arg10 = static_cast< bool >(val10);
19680 }
19681 if (obj10) {
19682 ecode11 = SWIG_AsVal_int(obj10, &val11);
19683 if (!SWIG_IsOK(ecode11)) {
19684 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19685 }
19686 arg11 = static_cast< int >(val11);
19687 }
19688 if (obj11) {
19689 ecode12 = SWIG_AsVal_int(obj11, &val12);
19690 if (!SWIG_IsOK(ecode12)) {
19691 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19692 }
19693 arg12 = static_cast< int >(val12);
19694 }
19695 {
19696 PyThreadState* __tstate = wxPyBeginAllowThreads();
19697 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19698 wxPyEndAllowThreads(__tstate);
19699 if (PyErr_Occurred()) SWIG_fail;
19700 }
19701 {
19702 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19703 }
19704 return resultobj;
19705 fail:
19706 return NULL;
19707 }
19708
19709
19710 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19711 PyObject *resultobj = 0;
19712 wxDC *arg1 = (wxDC *) 0 ;
19713 wxPoint *arg2 = 0 ;
19714 wxSize *arg3 = 0 ;
19715 wxDC *arg4 = (wxDC *) 0 ;
19716 wxPoint *arg5 = 0 ;
19717 int arg6 = (int) wxCOPY ;
19718 bool arg7 = (bool) false ;
19719 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19720 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19721 bool result;
19722 void *argp1 = 0 ;
19723 int res1 = 0 ;
19724 wxPoint temp2 ;
19725 wxSize temp3 ;
19726 void *argp4 = 0 ;
19727 int res4 = 0 ;
19728 wxPoint temp5 ;
19729 int val6 ;
19730 int ecode6 = 0 ;
19731 bool val7 ;
19732 int ecode7 = 0 ;
19733 wxPoint temp8 ;
19734 PyObject * obj0 = 0 ;
19735 PyObject * obj1 = 0 ;
19736 PyObject * obj2 = 0 ;
19737 PyObject * obj3 = 0 ;
19738 PyObject * obj4 = 0 ;
19739 PyObject * obj5 = 0 ;
19740 PyObject * obj6 = 0 ;
19741 PyObject * obj7 = 0 ;
19742 char * kwnames[] = {
19743 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19744 };
19745
19746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19748 if (!SWIG_IsOK(res1)) {
19749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19750 }
19751 arg1 = reinterpret_cast< wxDC * >(argp1);
19752 {
19753 arg2 = &temp2;
19754 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19755 }
19756 {
19757 arg3 = &temp3;
19758 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19759 }
19760 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19761 if (!SWIG_IsOK(res4)) {
19762 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19763 }
19764 arg4 = reinterpret_cast< wxDC * >(argp4);
19765 {
19766 arg5 = &temp5;
19767 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19768 }
19769 if (obj5) {
19770 ecode6 = SWIG_AsVal_int(obj5, &val6);
19771 if (!SWIG_IsOK(ecode6)) {
19772 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19773 }
19774 arg6 = static_cast< int >(val6);
19775 }
19776 if (obj6) {
19777 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19778 if (!SWIG_IsOK(ecode7)) {
19779 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19780 }
19781 arg7 = static_cast< bool >(val7);
19782 }
19783 if (obj7) {
19784 {
19785 arg8 = &temp8;
19786 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
19787 }
19788 }
19789 {
19790 PyThreadState* __tstate = wxPyBeginAllowThreads();
19791 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19792 wxPyEndAllowThreads(__tstate);
19793 if (PyErr_Occurred()) SWIG_fail;
19794 }
19795 {
19796 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19797 }
19798 return resultobj;
19799 fail:
19800 return NULL;
19801 }
19802
19803
19804 SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19805 PyObject *resultobj = 0;
19806 wxDC *arg1 = (wxDC *) 0 ;
19807 wxRect *arg2 = (wxRect *) NULL ;
19808 SwigValueWrapper<wxBitmap > result;
19809 void *argp1 = 0 ;
19810 int res1 = 0 ;
19811 void *argp2 = 0 ;
19812 int res2 = 0 ;
19813 PyObject * obj0 = 0 ;
19814 PyObject * obj1 = 0 ;
19815 char * kwnames[] = {
19816 (char *) "self",(char *) "subrect", NULL
19817 };
19818
19819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
19820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19821 if (!SWIG_IsOK(res1)) {
19822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
19823 }
19824 arg1 = reinterpret_cast< wxDC * >(argp1);
19825 if (obj1) {
19826 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
19827 if (!SWIG_IsOK(res2)) {
19828 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
19829 }
19830 arg2 = reinterpret_cast< wxRect * >(argp2);
19831 }
19832 {
19833 PyThreadState* __tstate = wxPyBeginAllowThreads();
19834 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
19835 wxPyEndAllowThreads(__tstate);
19836 if (PyErr_Occurred()) SWIG_fail;
19837 }
19838 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
19839 return resultobj;
19840 fail:
19841 return NULL;
19842 }
19843
19844
19845 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19846 PyObject *resultobj = 0;
19847 wxDC *arg1 = (wxDC *) 0 ;
19848 int arg2 ;
19849 int arg3 ;
19850 int arg4 ;
19851 int arg5 ;
19852 void *argp1 = 0 ;
19853 int res1 = 0 ;
19854 int val2 ;
19855 int ecode2 = 0 ;
19856 int val3 ;
19857 int ecode3 = 0 ;
19858 int val4 ;
19859 int ecode4 = 0 ;
19860 int val5 ;
19861 int ecode5 = 0 ;
19862 PyObject * obj0 = 0 ;
19863 PyObject * obj1 = 0 ;
19864 PyObject * obj2 = 0 ;
19865 PyObject * obj3 = 0 ;
19866 PyObject * obj4 = 0 ;
19867 char * kwnames[] = {
19868 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19869 };
19870
19871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19873 if (!SWIG_IsOK(res1)) {
19874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19875 }
19876 arg1 = reinterpret_cast< wxDC * >(argp1);
19877 ecode2 = SWIG_AsVal_int(obj1, &val2);
19878 if (!SWIG_IsOK(ecode2)) {
19879 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19880 }
19881 arg2 = static_cast< int >(val2);
19882 ecode3 = SWIG_AsVal_int(obj2, &val3);
19883 if (!SWIG_IsOK(ecode3)) {
19884 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19885 }
19886 arg3 = static_cast< int >(val3);
19887 ecode4 = SWIG_AsVal_int(obj3, &val4);
19888 if (!SWIG_IsOK(ecode4)) {
19889 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19890 }
19891 arg4 = static_cast< int >(val4);
19892 ecode5 = SWIG_AsVal_int(obj4, &val5);
19893 if (!SWIG_IsOK(ecode5)) {
19894 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19895 }
19896 arg5 = static_cast< int >(val5);
19897 {
19898 PyThreadState* __tstate = wxPyBeginAllowThreads();
19899 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19900 wxPyEndAllowThreads(__tstate);
19901 if (PyErr_Occurred()) SWIG_fail;
19902 }
19903 resultobj = SWIG_Py_Void();
19904 return resultobj;
19905 fail:
19906 return NULL;
19907 }
19908
19909
19910 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19911 PyObject *resultobj = 0;
19912 wxDC *arg1 = (wxDC *) 0 ;
19913 wxPoint *arg2 = 0 ;
19914 wxSize *arg3 = 0 ;
19915 void *argp1 = 0 ;
19916 int res1 = 0 ;
19917 wxPoint temp2 ;
19918 wxSize temp3 ;
19919 PyObject * obj0 = 0 ;
19920 PyObject * obj1 = 0 ;
19921 PyObject * obj2 = 0 ;
19922 char * kwnames[] = {
19923 (char *) "self",(char *) "pt",(char *) "sz", NULL
19924 };
19925
19926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19928 if (!SWIG_IsOK(res1)) {
19929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19930 }
19931 arg1 = reinterpret_cast< wxDC * >(argp1);
19932 {
19933 arg2 = &temp2;
19934 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19935 }
19936 {
19937 arg3 = &temp3;
19938 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19939 }
19940 {
19941 PyThreadState* __tstate = wxPyBeginAllowThreads();
19942 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19943 wxPyEndAllowThreads(__tstate);
19944 if (PyErr_Occurred()) SWIG_fail;
19945 }
19946 resultobj = SWIG_Py_Void();
19947 return resultobj;
19948 fail:
19949 return NULL;
19950 }
19951
19952
19953 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19954 PyObject *resultobj = 0;
19955 wxDC *arg1 = (wxDC *) 0 ;
19956 wxRegion *arg2 = 0 ;
19957 void *argp1 = 0 ;
19958 int res1 = 0 ;
19959 void *argp2 = 0 ;
19960 int res2 = 0 ;
19961 PyObject * obj0 = 0 ;
19962 PyObject * obj1 = 0 ;
19963 char * kwnames[] = {
19964 (char *) "self",(char *) "region", NULL
19965 };
19966
19967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19969 if (!SWIG_IsOK(res1)) {
19970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19971 }
19972 arg1 = reinterpret_cast< wxDC * >(argp1);
19973 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19974 if (!SWIG_IsOK(res2)) {
19975 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19976 }
19977 if (!argp2) {
19978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19979 }
19980 arg2 = reinterpret_cast< wxRegion * >(argp2);
19981 {
19982 PyThreadState* __tstate = wxPyBeginAllowThreads();
19983 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
19984 wxPyEndAllowThreads(__tstate);
19985 if (PyErr_Occurred()) SWIG_fail;
19986 }
19987 resultobj = SWIG_Py_Void();
19988 return resultobj;
19989 fail:
19990 return NULL;
19991 }
19992
19993
19994 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19995 PyObject *resultobj = 0;
19996 wxDC *arg1 = (wxDC *) 0 ;
19997 wxRect *arg2 = 0 ;
19998 void *argp1 = 0 ;
19999 int res1 = 0 ;
20000 wxRect temp2 ;
20001 PyObject * obj0 = 0 ;
20002 PyObject * obj1 = 0 ;
20003 char * kwnames[] = {
20004 (char *) "self",(char *) "rect", NULL
20005 };
20006
20007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20009 if (!SWIG_IsOK(res1)) {
20010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20011 }
20012 arg1 = reinterpret_cast< wxDC * >(argp1);
20013 {
20014 arg2 = &temp2;
20015 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20016 }
20017 {
20018 PyThreadState* __tstate = wxPyBeginAllowThreads();
20019 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20020 wxPyEndAllowThreads(__tstate);
20021 if (PyErr_Occurred()) SWIG_fail;
20022 }
20023 resultobj = SWIG_Py_Void();
20024 return resultobj;
20025 fail:
20026 return NULL;
20027 }
20028
20029
20030 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20031 PyObject *resultobj = 0;
20032 wxDC *arg1 = (wxDC *) 0 ;
20033 int arg2 ;
20034 wxPoint *arg3 = (wxPoint *) 0 ;
20035 int arg4 = (int) 0 ;
20036 int arg5 = (int) 0 ;
20037 void *argp1 = 0 ;
20038 int res1 = 0 ;
20039 int val4 ;
20040 int ecode4 = 0 ;
20041 int val5 ;
20042 int ecode5 = 0 ;
20043 PyObject * obj0 = 0 ;
20044 PyObject * obj1 = 0 ;
20045 PyObject * obj2 = 0 ;
20046 PyObject * obj3 = 0 ;
20047 char * kwnames[] = {
20048 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20049 };
20050
20051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20053 if (!SWIG_IsOK(res1)) {
20054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20055 }
20056 arg1 = reinterpret_cast< wxDC * >(argp1);
20057 {
20058 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20059 if (arg3 == NULL) SWIG_fail;
20060 }
20061 if (obj2) {
20062 ecode4 = SWIG_AsVal_int(obj2, &val4);
20063 if (!SWIG_IsOK(ecode4)) {
20064 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20065 }
20066 arg4 = static_cast< int >(val4);
20067 }
20068 if (obj3) {
20069 ecode5 = SWIG_AsVal_int(obj3, &val5);
20070 if (!SWIG_IsOK(ecode5)) {
20071 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20072 }
20073 arg5 = static_cast< int >(val5);
20074 }
20075 {
20076 PyThreadState* __tstate = wxPyBeginAllowThreads();
20077 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20078 wxPyEndAllowThreads(__tstate);
20079 if (PyErr_Occurred()) SWIG_fail;
20080 }
20081 resultobj = SWIG_Py_Void();
20082 {
20083 if (arg3) delete [] arg3;
20084 }
20085 return resultobj;
20086 fail:
20087 {
20088 if (arg3) delete [] arg3;
20089 }
20090 return NULL;
20091 }
20092
20093
20094 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20095 PyObject *resultobj = 0;
20096 wxDC *arg1 = (wxDC *) 0 ;
20097 int arg2 ;
20098 wxPoint *arg3 = (wxPoint *) 0 ;
20099 int arg4 = (int) 0 ;
20100 int arg5 = (int) 0 ;
20101 int arg6 = (int) wxODDEVEN_RULE ;
20102 void *argp1 = 0 ;
20103 int res1 = 0 ;
20104 int val4 ;
20105 int ecode4 = 0 ;
20106 int val5 ;
20107 int ecode5 = 0 ;
20108 int val6 ;
20109 int ecode6 = 0 ;
20110 PyObject * obj0 = 0 ;
20111 PyObject * obj1 = 0 ;
20112 PyObject * obj2 = 0 ;
20113 PyObject * obj3 = 0 ;
20114 PyObject * obj4 = 0 ;
20115 char * kwnames[] = {
20116 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20117 };
20118
20119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20121 if (!SWIG_IsOK(res1)) {
20122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20123 }
20124 arg1 = reinterpret_cast< wxDC * >(argp1);
20125 {
20126 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20127 if (arg3 == NULL) SWIG_fail;
20128 }
20129 if (obj2) {
20130 ecode4 = SWIG_AsVal_int(obj2, &val4);
20131 if (!SWIG_IsOK(ecode4)) {
20132 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20133 }
20134 arg4 = static_cast< int >(val4);
20135 }
20136 if (obj3) {
20137 ecode5 = SWIG_AsVal_int(obj3, &val5);
20138 if (!SWIG_IsOK(ecode5)) {
20139 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20140 }
20141 arg5 = static_cast< int >(val5);
20142 }
20143 if (obj4) {
20144 ecode6 = SWIG_AsVal_int(obj4, &val6);
20145 if (!SWIG_IsOK(ecode6)) {
20146 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20147 }
20148 arg6 = static_cast< int >(val6);
20149 }
20150 {
20151 PyThreadState* __tstate = wxPyBeginAllowThreads();
20152 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20153 wxPyEndAllowThreads(__tstate);
20154 if (PyErr_Occurred()) SWIG_fail;
20155 }
20156 resultobj = SWIG_Py_Void();
20157 {
20158 if (arg3) delete [] arg3;
20159 }
20160 return resultobj;
20161 fail:
20162 {
20163 if (arg3) delete [] arg3;
20164 }
20165 return NULL;
20166 }
20167
20168
20169 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20170 PyObject *resultobj = 0;
20171 wxDC *arg1 = (wxDC *) 0 ;
20172 wxString *arg2 = 0 ;
20173 wxRect *arg3 = 0 ;
20174 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20175 int arg5 = (int) -1 ;
20176 void *argp1 = 0 ;
20177 int res1 = 0 ;
20178 bool temp2 = false ;
20179 wxRect temp3 ;
20180 int val4 ;
20181 int ecode4 = 0 ;
20182 int val5 ;
20183 int ecode5 = 0 ;
20184 PyObject * obj0 = 0 ;
20185 PyObject * obj1 = 0 ;
20186 PyObject * obj2 = 0 ;
20187 PyObject * obj3 = 0 ;
20188 PyObject * obj4 = 0 ;
20189 char * kwnames[] = {
20190 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20191 };
20192
20193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20195 if (!SWIG_IsOK(res1)) {
20196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20197 }
20198 arg1 = reinterpret_cast< wxDC * >(argp1);
20199 {
20200 arg2 = wxString_in_helper(obj1);
20201 if (arg2 == NULL) SWIG_fail;
20202 temp2 = true;
20203 }
20204 {
20205 arg3 = &temp3;
20206 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20207 }
20208 if (obj3) {
20209 ecode4 = SWIG_AsVal_int(obj3, &val4);
20210 if (!SWIG_IsOK(ecode4)) {
20211 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20212 }
20213 arg4 = static_cast< int >(val4);
20214 }
20215 if (obj4) {
20216 ecode5 = SWIG_AsVal_int(obj4, &val5);
20217 if (!SWIG_IsOK(ecode5)) {
20218 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20219 }
20220 arg5 = static_cast< int >(val5);
20221 }
20222 {
20223 PyThreadState* __tstate = wxPyBeginAllowThreads();
20224 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20225 wxPyEndAllowThreads(__tstate);
20226 if (PyErr_Occurred()) SWIG_fail;
20227 }
20228 resultobj = SWIG_Py_Void();
20229 {
20230 if (temp2)
20231 delete arg2;
20232 }
20233 return resultobj;
20234 fail:
20235 {
20236 if (temp2)
20237 delete arg2;
20238 }
20239 return NULL;
20240 }
20241
20242
20243 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20244 PyObject *resultobj = 0;
20245 wxDC *arg1 = (wxDC *) 0 ;
20246 wxString *arg2 = 0 ;
20247 wxBitmap *arg3 = 0 ;
20248 wxRect *arg4 = 0 ;
20249 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20250 int arg6 = (int) -1 ;
20251 wxRect result;
20252 void *argp1 = 0 ;
20253 int res1 = 0 ;
20254 bool temp2 = false ;
20255 void *argp3 = 0 ;
20256 int res3 = 0 ;
20257 wxRect temp4 ;
20258 int val5 ;
20259 int ecode5 = 0 ;
20260 int val6 ;
20261 int ecode6 = 0 ;
20262 PyObject * obj0 = 0 ;
20263 PyObject * obj1 = 0 ;
20264 PyObject * obj2 = 0 ;
20265 PyObject * obj3 = 0 ;
20266 PyObject * obj4 = 0 ;
20267 PyObject * obj5 = 0 ;
20268 char * kwnames[] = {
20269 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20270 };
20271
20272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20274 if (!SWIG_IsOK(res1)) {
20275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20276 }
20277 arg1 = reinterpret_cast< wxDC * >(argp1);
20278 {
20279 arg2 = wxString_in_helper(obj1);
20280 if (arg2 == NULL) SWIG_fail;
20281 temp2 = true;
20282 }
20283 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20284 if (!SWIG_IsOK(res3)) {
20285 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20286 }
20287 if (!argp3) {
20288 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20289 }
20290 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20291 {
20292 arg4 = &temp4;
20293 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20294 }
20295 if (obj4) {
20296 ecode5 = SWIG_AsVal_int(obj4, &val5);
20297 if (!SWIG_IsOK(ecode5)) {
20298 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20299 }
20300 arg5 = static_cast< int >(val5);
20301 }
20302 if (obj5) {
20303 ecode6 = SWIG_AsVal_int(obj5, &val6);
20304 if (!SWIG_IsOK(ecode6)) {
20305 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20306 }
20307 arg6 = static_cast< int >(val6);
20308 }
20309 {
20310 PyThreadState* __tstate = wxPyBeginAllowThreads();
20311 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20312 wxPyEndAllowThreads(__tstate);
20313 if (PyErr_Occurred()) SWIG_fail;
20314 }
20315 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20316 {
20317 if (temp2)
20318 delete arg2;
20319 }
20320 return resultobj;
20321 fail:
20322 {
20323 if (temp2)
20324 delete arg2;
20325 }
20326 return NULL;
20327 }
20328
20329
20330 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20331 PyObject *resultobj = 0;
20332 wxDC *arg1 = (wxDC *) 0 ;
20333 int arg2 ;
20334 wxPoint *arg3 = (wxPoint *) 0 ;
20335 void *argp1 = 0 ;
20336 int res1 = 0 ;
20337 PyObject * obj0 = 0 ;
20338 PyObject * obj1 = 0 ;
20339 char * kwnames[] = {
20340 (char *) "self",(char *) "points", NULL
20341 };
20342
20343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20345 if (!SWIG_IsOK(res1)) {
20346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20347 }
20348 arg1 = reinterpret_cast< wxDC * >(argp1);
20349 {
20350 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20351 if (arg3 == NULL) SWIG_fail;
20352 }
20353 {
20354 PyThreadState* __tstate = wxPyBeginAllowThreads();
20355 (arg1)->DrawSpline(arg2,arg3);
20356 wxPyEndAllowThreads(__tstate);
20357 if (PyErr_Occurred()) SWIG_fail;
20358 }
20359 resultobj = SWIG_Py_Void();
20360 {
20361 if (arg3) delete [] arg3;
20362 }
20363 return resultobj;
20364 fail:
20365 {
20366 if (arg3) delete [] arg3;
20367 }
20368 return NULL;
20369 }
20370
20371
20372 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20373 PyObject *resultobj = 0;
20374 wxDC *arg1 = (wxDC *) 0 ;
20375 void *argp1 = 0 ;
20376 int res1 = 0 ;
20377 PyObject *swig_obj[1] ;
20378
20379 if (!args) SWIG_fail;
20380 swig_obj[0] = args;
20381 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20382 if (!SWIG_IsOK(res1)) {
20383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20384 }
20385 arg1 = reinterpret_cast< wxDC * >(argp1);
20386 {
20387 PyThreadState* __tstate = wxPyBeginAllowThreads();
20388 (arg1)->Clear();
20389 wxPyEndAllowThreads(__tstate);
20390 if (PyErr_Occurred()) SWIG_fail;
20391 }
20392 resultobj = SWIG_Py_Void();
20393 return resultobj;
20394 fail:
20395 return NULL;
20396 }
20397
20398
20399 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20400 PyObject *resultobj = 0;
20401 wxDC *arg1 = (wxDC *) 0 ;
20402 wxString *arg2 = 0 ;
20403 bool result;
20404 void *argp1 = 0 ;
20405 int res1 = 0 ;
20406 bool temp2 = false ;
20407 PyObject * obj0 = 0 ;
20408 PyObject * obj1 = 0 ;
20409 char * kwnames[] = {
20410 (char *) "self",(char *) "message", NULL
20411 };
20412
20413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20415 if (!SWIG_IsOK(res1)) {
20416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20417 }
20418 arg1 = reinterpret_cast< wxDC * >(argp1);
20419 {
20420 arg2 = wxString_in_helper(obj1);
20421 if (arg2 == NULL) SWIG_fail;
20422 temp2 = true;
20423 }
20424 {
20425 PyThreadState* __tstate = wxPyBeginAllowThreads();
20426 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20427 wxPyEndAllowThreads(__tstate);
20428 if (PyErr_Occurred()) SWIG_fail;
20429 }
20430 {
20431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20432 }
20433 {
20434 if (temp2)
20435 delete arg2;
20436 }
20437 return resultobj;
20438 fail:
20439 {
20440 if (temp2)
20441 delete arg2;
20442 }
20443 return NULL;
20444 }
20445
20446
20447 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20448 PyObject *resultobj = 0;
20449 wxDC *arg1 = (wxDC *) 0 ;
20450 void *argp1 = 0 ;
20451 int res1 = 0 ;
20452 PyObject *swig_obj[1] ;
20453
20454 if (!args) SWIG_fail;
20455 swig_obj[0] = args;
20456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20457 if (!SWIG_IsOK(res1)) {
20458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20459 }
20460 arg1 = reinterpret_cast< wxDC * >(argp1);
20461 {
20462 PyThreadState* __tstate = wxPyBeginAllowThreads();
20463 (arg1)->EndDoc();
20464 wxPyEndAllowThreads(__tstate);
20465 if (PyErr_Occurred()) SWIG_fail;
20466 }
20467 resultobj = SWIG_Py_Void();
20468 return resultobj;
20469 fail:
20470 return NULL;
20471 }
20472
20473
20474 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20475 PyObject *resultobj = 0;
20476 wxDC *arg1 = (wxDC *) 0 ;
20477 void *argp1 = 0 ;
20478 int res1 = 0 ;
20479 PyObject *swig_obj[1] ;
20480
20481 if (!args) SWIG_fail;
20482 swig_obj[0] = args;
20483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20484 if (!SWIG_IsOK(res1)) {
20485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20486 }
20487 arg1 = reinterpret_cast< wxDC * >(argp1);
20488 {
20489 PyThreadState* __tstate = wxPyBeginAllowThreads();
20490 (arg1)->StartPage();
20491 wxPyEndAllowThreads(__tstate);
20492 if (PyErr_Occurred()) SWIG_fail;
20493 }
20494 resultobj = SWIG_Py_Void();
20495 return resultobj;
20496 fail:
20497 return NULL;
20498 }
20499
20500
20501 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20502 PyObject *resultobj = 0;
20503 wxDC *arg1 = (wxDC *) 0 ;
20504 void *argp1 = 0 ;
20505 int res1 = 0 ;
20506 PyObject *swig_obj[1] ;
20507
20508 if (!args) SWIG_fail;
20509 swig_obj[0] = args;
20510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20511 if (!SWIG_IsOK(res1)) {
20512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20513 }
20514 arg1 = reinterpret_cast< wxDC * >(argp1);
20515 {
20516 PyThreadState* __tstate = wxPyBeginAllowThreads();
20517 (arg1)->EndPage();
20518 wxPyEndAllowThreads(__tstate);
20519 if (PyErr_Occurred()) SWIG_fail;
20520 }
20521 resultobj = SWIG_Py_Void();
20522 return resultobj;
20523 fail:
20524 return NULL;
20525 }
20526
20527
20528 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20529 PyObject *resultobj = 0;
20530 wxDC *arg1 = (wxDC *) 0 ;
20531 wxFont *arg2 = 0 ;
20532 void *argp1 = 0 ;
20533 int res1 = 0 ;
20534 void *argp2 = 0 ;
20535 int res2 = 0 ;
20536 PyObject * obj0 = 0 ;
20537 PyObject * obj1 = 0 ;
20538 char * kwnames[] = {
20539 (char *) "self",(char *) "font", NULL
20540 };
20541
20542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20544 if (!SWIG_IsOK(res1)) {
20545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20546 }
20547 arg1 = reinterpret_cast< wxDC * >(argp1);
20548 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20549 if (!SWIG_IsOK(res2)) {
20550 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20551 }
20552 if (!argp2) {
20553 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20554 }
20555 arg2 = reinterpret_cast< wxFont * >(argp2);
20556 {
20557 PyThreadState* __tstate = wxPyBeginAllowThreads();
20558 (arg1)->SetFont((wxFont const &)*arg2);
20559 wxPyEndAllowThreads(__tstate);
20560 if (PyErr_Occurred()) SWIG_fail;
20561 }
20562 resultobj = SWIG_Py_Void();
20563 return resultobj;
20564 fail:
20565 return NULL;
20566 }
20567
20568
20569 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20570 PyObject *resultobj = 0;
20571 wxDC *arg1 = (wxDC *) 0 ;
20572 wxPen *arg2 = 0 ;
20573 void *argp1 = 0 ;
20574 int res1 = 0 ;
20575 void *argp2 = 0 ;
20576 int res2 = 0 ;
20577 PyObject * obj0 = 0 ;
20578 PyObject * obj1 = 0 ;
20579 char * kwnames[] = {
20580 (char *) "self",(char *) "pen", NULL
20581 };
20582
20583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20585 if (!SWIG_IsOK(res1)) {
20586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20587 }
20588 arg1 = reinterpret_cast< wxDC * >(argp1);
20589 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20590 if (!SWIG_IsOK(res2)) {
20591 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20592 }
20593 if (!argp2) {
20594 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20595 }
20596 arg2 = reinterpret_cast< wxPen * >(argp2);
20597 {
20598 PyThreadState* __tstate = wxPyBeginAllowThreads();
20599 (arg1)->SetPen((wxPen const &)*arg2);
20600 wxPyEndAllowThreads(__tstate);
20601 if (PyErr_Occurred()) SWIG_fail;
20602 }
20603 resultobj = SWIG_Py_Void();
20604 return resultobj;
20605 fail:
20606 return NULL;
20607 }
20608
20609
20610 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20611 PyObject *resultobj = 0;
20612 wxDC *arg1 = (wxDC *) 0 ;
20613 wxBrush *arg2 = 0 ;
20614 void *argp1 = 0 ;
20615 int res1 = 0 ;
20616 void *argp2 = 0 ;
20617 int res2 = 0 ;
20618 PyObject * obj0 = 0 ;
20619 PyObject * obj1 = 0 ;
20620 char * kwnames[] = {
20621 (char *) "self",(char *) "brush", NULL
20622 };
20623
20624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20626 if (!SWIG_IsOK(res1)) {
20627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20628 }
20629 arg1 = reinterpret_cast< wxDC * >(argp1);
20630 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20631 if (!SWIG_IsOK(res2)) {
20632 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20633 }
20634 if (!argp2) {
20635 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20636 }
20637 arg2 = reinterpret_cast< wxBrush * >(argp2);
20638 {
20639 PyThreadState* __tstate = wxPyBeginAllowThreads();
20640 (arg1)->SetBrush((wxBrush const &)*arg2);
20641 wxPyEndAllowThreads(__tstate);
20642 if (PyErr_Occurred()) SWIG_fail;
20643 }
20644 resultobj = SWIG_Py_Void();
20645 return resultobj;
20646 fail:
20647 return NULL;
20648 }
20649
20650
20651 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20652 PyObject *resultobj = 0;
20653 wxDC *arg1 = (wxDC *) 0 ;
20654 wxBrush *arg2 = 0 ;
20655 void *argp1 = 0 ;
20656 int res1 = 0 ;
20657 void *argp2 = 0 ;
20658 int res2 = 0 ;
20659 PyObject * obj0 = 0 ;
20660 PyObject * obj1 = 0 ;
20661 char * kwnames[] = {
20662 (char *) "self",(char *) "brush", NULL
20663 };
20664
20665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20667 if (!SWIG_IsOK(res1)) {
20668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20669 }
20670 arg1 = reinterpret_cast< wxDC * >(argp1);
20671 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20672 if (!SWIG_IsOK(res2)) {
20673 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20674 }
20675 if (!argp2) {
20676 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20677 }
20678 arg2 = reinterpret_cast< wxBrush * >(argp2);
20679 {
20680 PyThreadState* __tstate = wxPyBeginAllowThreads();
20681 (arg1)->SetBackground((wxBrush const &)*arg2);
20682 wxPyEndAllowThreads(__tstate);
20683 if (PyErr_Occurred()) SWIG_fail;
20684 }
20685 resultobj = SWIG_Py_Void();
20686 return resultobj;
20687 fail:
20688 return NULL;
20689 }
20690
20691
20692 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20693 PyObject *resultobj = 0;
20694 wxDC *arg1 = (wxDC *) 0 ;
20695 int arg2 ;
20696 void *argp1 = 0 ;
20697 int res1 = 0 ;
20698 int val2 ;
20699 int ecode2 = 0 ;
20700 PyObject * obj0 = 0 ;
20701 PyObject * obj1 = 0 ;
20702 char * kwnames[] = {
20703 (char *) "self",(char *) "mode", NULL
20704 };
20705
20706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20708 if (!SWIG_IsOK(res1)) {
20709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20710 }
20711 arg1 = reinterpret_cast< wxDC * >(argp1);
20712 ecode2 = SWIG_AsVal_int(obj1, &val2);
20713 if (!SWIG_IsOK(ecode2)) {
20714 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20715 }
20716 arg2 = static_cast< int >(val2);
20717 {
20718 PyThreadState* __tstate = wxPyBeginAllowThreads();
20719 (arg1)->SetBackgroundMode(arg2);
20720 wxPyEndAllowThreads(__tstate);
20721 if (PyErr_Occurred()) SWIG_fail;
20722 }
20723 resultobj = SWIG_Py_Void();
20724 return resultobj;
20725 fail:
20726 return NULL;
20727 }
20728
20729
20730 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20731 PyObject *resultobj = 0;
20732 wxDC *arg1 = (wxDC *) 0 ;
20733 wxPalette *arg2 = 0 ;
20734 void *argp1 = 0 ;
20735 int res1 = 0 ;
20736 void *argp2 = 0 ;
20737 int res2 = 0 ;
20738 PyObject * obj0 = 0 ;
20739 PyObject * obj1 = 0 ;
20740 char * kwnames[] = {
20741 (char *) "self",(char *) "palette", NULL
20742 };
20743
20744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20746 if (!SWIG_IsOK(res1)) {
20747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20748 }
20749 arg1 = reinterpret_cast< wxDC * >(argp1);
20750 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20751 if (!SWIG_IsOK(res2)) {
20752 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20753 }
20754 if (!argp2) {
20755 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20756 }
20757 arg2 = reinterpret_cast< wxPalette * >(argp2);
20758 {
20759 PyThreadState* __tstate = wxPyBeginAllowThreads();
20760 (arg1)->SetPalette((wxPalette const &)*arg2);
20761 wxPyEndAllowThreads(__tstate);
20762 if (PyErr_Occurred()) SWIG_fail;
20763 }
20764 resultobj = SWIG_Py_Void();
20765 return resultobj;
20766 fail:
20767 return NULL;
20768 }
20769
20770
20771 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20772 PyObject *resultobj = 0;
20773 wxDC *arg1 = (wxDC *) 0 ;
20774 void *argp1 = 0 ;
20775 int res1 = 0 ;
20776 PyObject *swig_obj[1] ;
20777
20778 if (!args) SWIG_fail;
20779 swig_obj[0] = args;
20780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20781 if (!SWIG_IsOK(res1)) {
20782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20783 }
20784 arg1 = reinterpret_cast< wxDC * >(argp1);
20785 {
20786 PyThreadState* __tstate = wxPyBeginAllowThreads();
20787 (arg1)->DestroyClippingRegion();
20788 wxPyEndAllowThreads(__tstate);
20789 if (PyErr_Occurred()) SWIG_fail;
20790 }
20791 resultobj = SWIG_Py_Void();
20792 return resultobj;
20793 fail:
20794 return NULL;
20795 }
20796
20797
20798 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20799 PyObject *resultobj = 0;
20800 wxDC *arg1 = (wxDC *) 0 ;
20801 int *arg2 = (int *) 0 ;
20802 int *arg3 = (int *) 0 ;
20803 int *arg4 = (int *) 0 ;
20804 int *arg5 = (int *) 0 ;
20805 void *argp1 = 0 ;
20806 int res1 = 0 ;
20807 int temp2 ;
20808 int res2 = SWIG_TMPOBJ ;
20809 int temp3 ;
20810 int res3 = SWIG_TMPOBJ ;
20811 int temp4 ;
20812 int res4 = SWIG_TMPOBJ ;
20813 int temp5 ;
20814 int res5 = SWIG_TMPOBJ ;
20815 PyObject *swig_obj[1] ;
20816
20817 arg2 = &temp2;
20818 arg3 = &temp3;
20819 arg4 = &temp4;
20820 arg5 = &temp5;
20821 if (!args) SWIG_fail;
20822 swig_obj[0] = args;
20823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20824 if (!SWIG_IsOK(res1)) {
20825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20826 }
20827 arg1 = reinterpret_cast< wxDC * >(argp1);
20828 {
20829 PyThreadState* __tstate = wxPyBeginAllowThreads();
20830 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20831 wxPyEndAllowThreads(__tstate);
20832 if (PyErr_Occurred()) SWIG_fail;
20833 }
20834 resultobj = SWIG_Py_Void();
20835 if (SWIG_IsTmpObj(res2)) {
20836 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20837 } else {
20838 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20839 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20840 }
20841 if (SWIG_IsTmpObj(res3)) {
20842 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20843 } else {
20844 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20845 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20846 }
20847 if (SWIG_IsTmpObj(res4)) {
20848 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20849 } else {
20850 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20851 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20852 }
20853 if (SWIG_IsTmpObj(res5)) {
20854 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20855 } else {
20856 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20857 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20858 }
20859 return resultobj;
20860 fail:
20861 return NULL;
20862 }
20863
20864
20865 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20866 PyObject *resultobj = 0;
20867 wxDC *arg1 = (wxDC *) 0 ;
20868 wxRect result;
20869 void *argp1 = 0 ;
20870 int res1 = 0 ;
20871 PyObject *swig_obj[1] ;
20872
20873 if (!args) SWIG_fail;
20874 swig_obj[0] = args;
20875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20876 if (!SWIG_IsOK(res1)) {
20877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20878 }
20879 arg1 = reinterpret_cast< wxDC * >(argp1);
20880 {
20881 PyThreadState* __tstate = wxPyBeginAllowThreads();
20882 result = wxDC_GetClippingRect(arg1);
20883 wxPyEndAllowThreads(__tstate);
20884 if (PyErr_Occurred()) SWIG_fail;
20885 }
20886 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20887 return resultobj;
20888 fail:
20889 return NULL;
20890 }
20891
20892
20893 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20894 PyObject *resultobj = 0;
20895 wxDC *arg1 = (wxDC *) 0 ;
20896 int result;
20897 void *argp1 = 0 ;
20898 int res1 = 0 ;
20899 PyObject *swig_obj[1] ;
20900
20901 if (!args) SWIG_fail;
20902 swig_obj[0] = args;
20903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20904 if (!SWIG_IsOK(res1)) {
20905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20906 }
20907 arg1 = reinterpret_cast< wxDC * >(argp1);
20908 {
20909 PyThreadState* __tstate = wxPyBeginAllowThreads();
20910 result = (int)((wxDC const *)arg1)->GetCharHeight();
20911 wxPyEndAllowThreads(__tstate);
20912 if (PyErr_Occurred()) SWIG_fail;
20913 }
20914 resultobj = SWIG_From_int(static_cast< int >(result));
20915 return resultobj;
20916 fail:
20917 return NULL;
20918 }
20919
20920
20921 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20922 PyObject *resultobj = 0;
20923 wxDC *arg1 = (wxDC *) 0 ;
20924 int result;
20925 void *argp1 = 0 ;
20926 int res1 = 0 ;
20927 PyObject *swig_obj[1] ;
20928
20929 if (!args) SWIG_fail;
20930 swig_obj[0] = args;
20931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20932 if (!SWIG_IsOK(res1)) {
20933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20934 }
20935 arg1 = reinterpret_cast< wxDC * >(argp1);
20936 {
20937 PyThreadState* __tstate = wxPyBeginAllowThreads();
20938 result = (int)((wxDC const *)arg1)->GetCharWidth();
20939 wxPyEndAllowThreads(__tstate);
20940 if (PyErr_Occurred()) SWIG_fail;
20941 }
20942 resultobj = SWIG_From_int(static_cast< int >(result));
20943 return resultobj;
20944 fail:
20945 return NULL;
20946 }
20947
20948
20949 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20950 PyObject *resultobj = 0;
20951 wxDC *arg1 = (wxDC *) 0 ;
20952 wxString *arg2 = 0 ;
20953 int *arg3 = (int *) 0 ;
20954 int *arg4 = (int *) 0 ;
20955 void *argp1 = 0 ;
20956 int res1 = 0 ;
20957 bool temp2 = false ;
20958 int temp3 ;
20959 int res3 = SWIG_TMPOBJ ;
20960 int temp4 ;
20961 int res4 = SWIG_TMPOBJ ;
20962 PyObject * obj0 = 0 ;
20963 PyObject * obj1 = 0 ;
20964 char * kwnames[] = {
20965 (char *) "self",(char *) "string", NULL
20966 };
20967
20968 arg3 = &temp3;
20969 arg4 = &temp4;
20970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20972 if (!SWIG_IsOK(res1)) {
20973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20974 }
20975 arg1 = reinterpret_cast< wxDC * >(argp1);
20976 {
20977 arg2 = wxString_in_helper(obj1);
20978 if (arg2 == NULL) SWIG_fail;
20979 temp2 = true;
20980 }
20981 {
20982 PyThreadState* __tstate = wxPyBeginAllowThreads();
20983 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
20984 wxPyEndAllowThreads(__tstate);
20985 if (PyErr_Occurred()) SWIG_fail;
20986 }
20987 resultobj = SWIG_Py_Void();
20988 if (SWIG_IsTmpObj(res3)) {
20989 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20990 } else {
20991 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20992 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20993 }
20994 if (SWIG_IsTmpObj(res4)) {
20995 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20996 } else {
20997 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20998 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20999 }
21000 {
21001 if (temp2)
21002 delete arg2;
21003 }
21004 return resultobj;
21005 fail:
21006 {
21007 if (temp2)
21008 delete arg2;
21009 }
21010 return NULL;
21011 }
21012
21013
21014 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21015 PyObject *resultobj = 0;
21016 wxDC *arg1 = (wxDC *) 0 ;
21017 wxString *arg2 = 0 ;
21018 int *arg3 = (int *) 0 ;
21019 int *arg4 = (int *) 0 ;
21020 int *arg5 = (int *) 0 ;
21021 int *arg6 = (int *) 0 ;
21022 wxFont *arg7 = (wxFont *) NULL ;
21023 void *argp1 = 0 ;
21024 int res1 = 0 ;
21025 bool temp2 = false ;
21026 int temp3 ;
21027 int res3 = SWIG_TMPOBJ ;
21028 int temp4 ;
21029 int res4 = SWIG_TMPOBJ ;
21030 int temp5 ;
21031 int res5 = SWIG_TMPOBJ ;
21032 int temp6 ;
21033 int res6 = SWIG_TMPOBJ ;
21034 void *argp7 = 0 ;
21035 int res7 = 0 ;
21036 PyObject * obj0 = 0 ;
21037 PyObject * obj1 = 0 ;
21038 PyObject * obj2 = 0 ;
21039 char * kwnames[] = {
21040 (char *) "self",(char *) "string",(char *) "font", NULL
21041 };
21042
21043 arg3 = &temp3;
21044 arg4 = &temp4;
21045 arg5 = &temp5;
21046 arg6 = &temp6;
21047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21049 if (!SWIG_IsOK(res1)) {
21050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21051 }
21052 arg1 = reinterpret_cast< wxDC * >(argp1);
21053 {
21054 arg2 = wxString_in_helper(obj1);
21055 if (arg2 == NULL) SWIG_fail;
21056 temp2 = true;
21057 }
21058 if (obj2) {
21059 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21060 if (!SWIG_IsOK(res7)) {
21061 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
21062 }
21063 arg7 = reinterpret_cast< wxFont * >(argp7);
21064 }
21065 {
21066 PyThreadState* __tstate = wxPyBeginAllowThreads();
21067 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21068 wxPyEndAllowThreads(__tstate);
21069 if (PyErr_Occurred()) SWIG_fail;
21070 }
21071 resultobj = SWIG_Py_Void();
21072 if (SWIG_IsTmpObj(res3)) {
21073 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21074 } else {
21075 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21076 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21077 }
21078 if (SWIG_IsTmpObj(res4)) {
21079 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21080 } else {
21081 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21082 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21083 }
21084 if (SWIG_IsTmpObj(res5)) {
21085 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21086 } else {
21087 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21088 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21089 }
21090 if (SWIG_IsTmpObj(res6)) {
21091 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21092 } else {
21093 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21094 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21095 }
21096 {
21097 if (temp2)
21098 delete arg2;
21099 }
21100 return resultobj;
21101 fail:
21102 {
21103 if (temp2)
21104 delete arg2;
21105 }
21106 return NULL;
21107 }
21108
21109
21110 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21111 PyObject *resultobj = 0;
21112 wxDC *arg1 = (wxDC *) 0 ;
21113 wxString *arg2 = 0 ;
21114 int *arg3 = (int *) 0 ;
21115 int *arg4 = (int *) 0 ;
21116 int *arg5 = (int *) 0 ;
21117 wxFont *arg6 = (wxFont *) NULL ;
21118 void *argp1 = 0 ;
21119 int res1 = 0 ;
21120 bool temp2 = false ;
21121 int temp3 ;
21122 int res3 = SWIG_TMPOBJ ;
21123 int temp4 ;
21124 int res4 = SWIG_TMPOBJ ;
21125 int temp5 ;
21126 int res5 = SWIG_TMPOBJ ;
21127 void *argp6 = 0 ;
21128 int res6 = 0 ;
21129 PyObject * obj0 = 0 ;
21130 PyObject * obj1 = 0 ;
21131 PyObject * obj2 = 0 ;
21132 char * kwnames[] = {
21133 (char *) "self",(char *) "text",(char *) "font", NULL
21134 };
21135
21136 arg3 = &temp3;
21137 arg4 = &temp4;
21138 arg5 = &temp5;
21139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21141 if (!SWIG_IsOK(res1)) {
21142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21143 }
21144 arg1 = reinterpret_cast< wxDC * >(argp1);
21145 {
21146 arg2 = wxString_in_helper(obj1);
21147 if (arg2 == NULL) SWIG_fail;
21148 temp2 = true;
21149 }
21150 if (obj2) {
21151 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21152 if (!SWIG_IsOK(res6)) {
21153 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
21154 }
21155 arg6 = reinterpret_cast< wxFont * >(argp6);
21156 }
21157 {
21158 PyThreadState* __tstate = wxPyBeginAllowThreads();
21159 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21160 wxPyEndAllowThreads(__tstate);
21161 if (PyErr_Occurred()) SWIG_fail;
21162 }
21163 resultobj = SWIG_Py_Void();
21164 if (SWIG_IsTmpObj(res3)) {
21165 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21166 } else {
21167 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21168 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21169 }
21170 if (SWIG_IsTmpObj(res4)) {
21171 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21172 } else {
21173 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21174 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21175 }
21176 if (SWIG_IsTmpObj(res5)) {
21177 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21178 } else {
21179 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21180 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21181 }
21182 {
21183 if (temp2)
21184 delete arg2;
21185 }
21186 return resultobj;
21187 fail:
21188 {
21189 if (temp2)
21190 delete arg2;
21191 }
21192 return NULL;
21193 }
21194
21195
21196 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21197 PyObject *resultobj = 0;
21198 wxDC *arg1 = (wxDC *) 0 ;
21199 wxString *arg2 = 0 ;
21200 wxArrayInt result;
21201 void *argp1 = 0 ;
21202 int res1 = 0 ;
21203 bool temp2 = false ;
21204 PyObject * obj0 = 0 ;
21205 PyObject * obj1 = 0 ;
21206 char * kwnames[] = {
21207 (char *) "self",(char *) "text", NULL
21208 };
21209
21210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21212 if (!SWIG_IsOK(res1)) {
21213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21214 }
21215 arg1 = reinterpret_cast< wxDC * >(argp1);
21216 {
21217 arg2 = wxString_in_helper(obj1);
21218 if (arg2 == NULL) SWIG_fail;
21219 temp2 = true;
21220 }
21221 {
21222 PyThreadState* __tstate = wxPyBeginAllowThreads();
21223 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21224 wxPyEndAllowThreads(__tstate);
21225 if (PyErr_Occurred()) SWIG_fail;
21226 }
21227 {
21228 resultobj = wxArrayInt2PyList_helper(result);
21229 }
21230 {
21231 if (temp2)
21232 delete arg2;
21233 }
21234 return resultobj;
21235 fail:
21236 {
21237 if (temp2)
21238 delete arg2;
21239 }
21240 return NULL;
21241 }
21242
21243
21244 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21245 PyObject *resultobj = 0;
21246 wxDC *arg1 = (wxDC *) 0 ;
21247 wxSize result;
21248 void *argp1 = 0 ;
21249 int res1 = 0 ;
21250 PyObject *swig_obj[1] ;
21251
21252 if (!args) SWIG_fail;
21253 swig_obj[0] = args;
21254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21255 if (!SWIG_IsOK(res1)) {
21256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21257 }
21258 arg1 = reinterpret_cast< wxDC * >(argp1);
21259 {
21260 PyThreadState* __tstate = wxPyBeginAllowThreads();
21261 result = (arg1)->GetSize();
21262 wxPyEndAllowThreads(__tstate);
21263 if (PyErr_Occurred()) SWIG_fail;
21264 }
21265 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21266 return resultobj;
21267 fail:
21268 return NULL;
21269 }
21270
21271
21272 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21273 PyObject *resultobj = 0;
21274 wxDC *arg1 = (wxDC *) 0 ;
21275 int *arg2 = (int *) 0 ;
21276 int *arg3 = (int *) 0 ;
21277 void *argp1 = 0 ;
21278 int res1 = 0 ;
21279 int temp2 ;
21280 int res2 = SWIG_TMPOBJ ;
21281 int temp3 ;
21282 int res3 = SWIG_TMPOBJ ;
21283 PyObject *swig_obj[1] ;
21284
21285 arg2 = &temp2;
21286 arg3 = &temp3;
21287 if (!args) SWIG_fail;
21288 swig_obj[0] = args;
21289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21290 if (!SWIG_IsOK(res1)) {
21291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21292 }
21293 arg1 = reinterpret_cast< wxDC * >(argp1);
21294 {
21295 PyThreadState* __tstate = wxPyBeginAllowThreads();
21296 (arg1)->GetSize(arg2,arg3);
21297 wxPyEndAllowThreads(__tstate);
21298 if (PyErr_Occurred()) SWIG_fail;
21299 }
21300 resultobj = SWIG_Py_Void();
21301 if (SWIG_IsTmpObj(res2)) {
21302 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21303 } else {
21304 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21305 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21306 }
21307 if (SWIG_IsTmpObj(res3)) {
21308 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21309 } else {
21310 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21311 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21312 }
21313 return resultobj;
21314 fail:
21315 return NULL;
21316 }
21317
21318
21319 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21320 PyObject *resultobj = 0;
21321 wxDC *arg1 = (wxDC *) 0 ;
21322 wxSize result;
21323 void *argp1 = 0 ;
21324 int res1 = 0 ;
21325 PyObject *swig_obj[1] ;
21326
21327 if (!args) SWIG_fail;
21328 swig_obj[0] = args;
21329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21330 if (!SWIG_IsOK(res1)) {
21331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21332 }
21333 arg1 = reinterpret_cast< wxDC * >(argp1);
21334 {
21335 PyThreadState* __tstate = wxPyBeginAllowThreads();
21336 result = ((wxDC const *)arg1)->GetSizeMM();
21337 wxPyEndAllowThreads(__tstate);
21338 if (PyErr_Occurred()) SWIG_fail;
21339 }
21340 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21341 return resultobj;
21342 fail:
21343 return NULL;
21344 }
21345
21346
21347 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21348 PyObject *resultobj = 0;
21349 wxDC *arg1 = (wxDC *) 0 ;
21350 int *arg2 = (int *) 0 ;
21351 int *arg3 = (int *) 0 ;
21352 void *argp1 = 0 ;
21353 int res1 = 0 ;
21354 int temp2 ;
21355 int res2 = SWIG_TMPOBJ ;
21356 int temp3 ;
21357 int res3 = SWIG_TMPOBJ ;
21358 PyObject *swig_obj[1] ;
21359
21360 arg2 = &temp2;
21361 arg3 = &temp3;
21362 if (!args) SWIG_fail;
21363 swig_obj[0] = args;
21364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21365 if (!SWIG_IsOK(res1)) {
21366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21367 }
21368 arg1 = reinterpret_cast< wxDC * >(argp1);
21369 {
21370 PyThreadState* __tstate = wxPyBeginAllowThreads();
21371 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21372 wxPyEndAllowThreads(__tstate);
21373 if (PyErr_Occurred()) SWIG_fail;
21374 }
21375 resultobj = SWIG_Py_Void();
21376 if (SWIG_IsTmpObj(res2)) {
21377 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21378 } else {
21379 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21380 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21381 }
21382 if (SWIG_IsTmpObj(res3)) {
21383 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21384 } else {
21385 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21386 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21387 }
21388 return resultobj;
21389 fail:
21390 return NULL;
21391 }
21392
21393
21394 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21395 PyObject *resultobj = 0;
21396 wxDC *arg1 = (wxDC *) 0 ;
21397 int arg2 ;
21398 int result;
21399 void *argp1 = 0 ;
21400 int res1 = 0 ;
21401 int val2 ;
21402 int ecode2 = 0 ;
21403 PyObject * obj0 = 0 ;
21404 PyObject * obj1 = 0 ;
21405 char * kwnames[] = {
21406 (char *) "self",(char *) "x", NULL
21407 };
21408
21409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21411 if (!SWIG_IsOK(res1)) {
21412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21413 }
21414 arg1 = reinterpret_cast< wxDC * >(argp1);
21415 ecode2 = SWIG_AsVal_int(obj1, &val2);
21416 if (!SWIG_IsOK(ecode2)) {
21417 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21418 }
21419 arg2 = static_cast< int >(val2);
21420 {
21421 PyThreadState* __tstate = wxPyBeginAllowThreads();
21422 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21423 wxPyEndAllowThreads(__tstate);
21424 if (PyErr_Occurred()) SWIG_fail;
21425 }
21426 resultobj = SWIG_From_int(static_cast< int >(result));
21427 return resultobj;
21428 fail:
21429 return NULL;
21430 }
21431
21432
21433 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21434 PyObject *resultobj = 0;
21435 wxDC *arg1 = (wxDC *) 0 ;
21436 int arg2 ;
21437 int result;
21438 void *argp1 = 0 ;
21439 int res1 = 0 ;
21440 int val2 ;
21441 int ecode2 = 0 ;
21442 PyObject * obj0 = 0 ;
21443 PyObject * obj1 = 0 ;
21444 char * kwnames[] = {
21445 (char *) "self",(char *) "y", NULL
21446 };
21447
21448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21450 if (!SWIG_IsOK(res1)) {
21451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21452 }
21453 arg1 = reinterpret_cast< wxDC * >(argp1);
21454 ecode2 = SWIG_AsVal_int(obj1, &val2);
21455 if (!SWIG_IsOK(ecode2)) {
21456 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21457 }
21458 arg2 = static_cast< int >(val2);
21459 {
21460 PyThreadState* __tstate = wxPyBeginAllowThreads();
21461 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21462 wxPyEndAllowThreads(__tstate);
21463 if (PyErr_Occurred()) SWIG_fail;
21464 }
21465 resultobj = SWIG_From_int(static_cast< int >(result));
21466 return resultobj;
21467 fail:
21468 return NULL;
21469 }
21470
21471
21472 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21473 PyObject *resultobj = 0;
21474 wxDC *arg1 = (wxDC *) 0 ;
21475 int arg2 ;
21476 int result;
21477 void *argp1 = 0 ;
21478 int res1 = 0 ;
21479 int val2 ;
21480 int ecode2 = 0 ;
21481 PyObject * obj0 = 0 ;
21482 PyObject * obj1 = 0 ;
21483 char * kwnames[] = {
21484 (char *) "self",(char *) "x", NULL
21485 };
21486
21487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21489 if (!SWIG_IsOK(res1)) {
21490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21491 }
21492 arg1 = reinterpret_cast< wxDC * >(argp1);
21493 ecode2 = SWIG_AsVal_int(obj1, &val2);
21494 if (!SWIG_IsOK(ecode2)) {
21495 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21496 }
21497 arg2 = static_cast< int >(val2);
21498 {
21499 PyThreadState* __tstate = wxPyBeginAllowThreads();
21500 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21501 wxPyEndAllowThreads(__tstate);
21502 if (PyErr_Occurred()) SWIG_fail;
21503 }
21504 resultobj = SWIG_From_int(static_cast< int >(result));
21505 return resultobj;
21506 fail:
21507 return NULL;
21508 }
21509
21510
21511 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21512 PyObject *resultobj = 0;
21513 wxDC *arg1 = (wxDC *) 0 ;
21514 int arg2 ;
21515 int result;
21516 void *argp1 = 0 ;
21517 int res1 = 0 ;
21518 int val2 ;
21519 int ecode2 = 0 ;
21520 PyObject * obj0 = 0 ;
21521 PyObject * obj1 = 0 ;
21522 char * kwnames[] = {
21523 (char *) "self",(char *) "y", NULL
21524 };
21525
21526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21528 if (!SWIG_IsOK(res1)) {
21529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21530 }
21531 arg1 = reinterpret_cast< wxDC * >(argp1);
21532 ecode2 = SWIG_AsVal_int(obj1, &val2);
21533 if (!SWIG_IsOK(ecode2)) {
21534 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21535 }
21536 arg2 = static_cast< int >(val2);
21537 {
21538 PyThreadState* __tstate = wxPyBeginAllowThreads();
21539 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21540 wxPyEndAllowThreads(__tstate);
21541 if (PyErr_Occurred()) SWIG_fail;
21542 }
21543 resultobj = SWIG_From_int(static_cast< int >(result));
21544 return resultobj;
21545 fail:
21546 return NULL;
21547 }
21548
21549
21550 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21551 PyObject *resultobj = 0;
21552 wxDC *arg1 = (wxDC *) 0 ;
21553 int arg2 ;
21554 int result;
21555 void *argp1 = 0 ;
21556 int res1 = 0 ;
21557 int val2 ;
21558 int ecode2 = 0 ;
21559 PyObject * obj0 = 0 ;
21560 PyObject * obj1 = 0 ;
21561 char * kwnames[] = {
21562 (char *) "self",(char *) "x", NULL
21563 };
21564
21565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21567 if (!SWIG_IsOK(res1)) {
21568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21569 }
21570 arg1 = reinterpret_cast< wxDC * >(argp1);
21571 ecode2 = SWIG_AsVal_int(obj1, &val2);
21572 if (!SWIG_IsOK(ecode2)) {
21573 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21574 }
21575 arg2 = static_cast< int >(val2);
21576 {
21577 PyThreadState* __tstate = wxPyBeginAllowThreads();
21578 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21579 wxPyEndAllowThreads(__tstate);
21580 if (PyErr_Occurred()) SWIG_fail;
21581 }
21582 resultobj = SWIG_From_int(static_cast< int >(result));
21583 return resultobj;
21584 fail:
21585 return NULL;
21586 }
21587
21588
21589 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21590 PyObject *resultobj = 0;
21591 wxDC *arg1 = (wxDC *) 0 ;
21592 int arg2 ;
21593 int result;
21594 void *argp1 = 0 ;
21595 int res1 = 0 ;
21596 int val2 ;
21597 int ecode2 = 0 ;
21598 PyObject * obj0 = 0 ;
21599 PyObject * obj1 = 0 ;
21600 char * kwnames[] = {
21601 (char *) "self",(char *) "y", NULL
21602 };
21603
21604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21606 if (!SWIG_IsOK(res1)) {
21607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21608 }
21609 arg1 = reinterpret_cast< wxDC * >(argp1);
21610 ecode2 = SWIG_AsVal_int(obj1, &val2);
21611 if (!SWIG_IsOK(ecode2)) {
21612 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21613 }
21614 arg2 = static_cast< int >(val2);
21615 {
21616 PyThreadState* __tstate = wxPyBeginAllowThreads();
21617 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21618 wxPyEndAllowThreads(__tstate);
21619 if (PyErr_Occurred()) SWIG_fail;
21620 }
21621 resultobj = SWIG_From_int(static_cast< int >(result));
21622 return resultobj;
21623 fail:
21624 return NULL;
21625 }
21626
21627
21628 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21629 PyObject *resultobj = 0;
21630 wxDC *arg1 = (wxDC *) 0 ;
21631 int arg2 ;
21632 int result;
21633 void *argp1 = 0 ;
21634 int res1 = 0 ;
21635 int val2 ;
21636 int ecode2 = 0 ;
21637 PyObject * obj0 = 0 ;
21638 PyObject * obj1 = 0 ;
21639 char * kwnames[] = {
21640 (char *) "self",(char *) "x", NULL
21641 };
21642
21643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21645 if (!SWIG_IsOK(res1)) {
21646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21647 }
21648 arg1 = reinterpret_cast< wxDC * >(argp1);
21649 ecode2 = SWIG_AsVal_int(obj1, &val2);
21650 if (!SWIG_IsOK(ecode2)) {
21651 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21652 }
21653 arg2 = static_cast< int >(val2);
21654 {
21655 PyThreadState* __tstate = wxPyBeginAllowThreads();
21656 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21657 wxPyEndAllowThreads(__tstate);
21658 if (PyErr_Occurred()) SWIG_fail;
21659 }
21660 resultobj = SWIG_From_int(static_cast< int >(result));
21661 return resultobj;
21662 fail:
21663 return NULL;
21664 }
21665
21666
21667 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21668 PyObject *resultobj = 0;
21669 wxDC *arg1 = (wxDC *) 0 ;
21670 int arg2 ;
21671 int result;
21672 void *argp1 = 0 ;
21673 int res1 = 0 ;
21674 int val2 ;
21675 int ecode2 = 0 ;
21676 PyObject * obj0 = 0 ;
21677 PyObject * obj1 = 0 ;
21678 char * kwnames[] = {
21679 (char *) "self",(char *) "y", NULL
21680 };
21681
21682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21684 if (!SWIG_IsOK(res1)) {
21685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21686 }
21687 arg1 = reinterpret_cast< wxDC * >(argp1);
21688 ecode2 = SWIG_AsVal_int(obj1, &val2);
21689 if (!SWIG_IsOK(ecode2)) {
21690 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21691 }
21692 arg2 = static_cast< int >(val2);
21693 {
21694 PyThreadState* __tstate = wxPyBeginAllowThreads();
21695 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21696 wxPyEndAllowThreads(__tstate);
21697 if (PyErr_Occurred()) SWIG_fail;
21698 }
21699 resultobj = SWIG_From_int(static_cast< int >(result));
21700 return resultobj;
21701 fail:
21702 return NULL;
21703 }
21704
21705
21706 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21707 PyObject *resultobj = 0;
21708 wxDC *arg1 = (wxDC *) 0 ;
21709 bool result;
21710 void *argp1 = 0 ;
21711 int res1 = 0 ;
21712 PyObject *swig_obj[1] ;
21713
21714 if (!args) SWIG_fail;
21715 swig_obj[0] = args;
21716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21717 if (!SWIG_IsOK(res1)) {
21718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21719 }
21720 arg1 = reinterpret_cast< wxDC * >(argp1);
21721 {
21722 PyThreadState* __tstate = wxPyBeginAllowThreads();
21723 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21724 wxPyEndAllowThreads(__tstate);
21725 if (PyErr_Occurred()) SWIG_fail;
21726 }
21727 {
21728 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21729 }
21730 return resultobj;
21731 fail:
21732 return NULL;
21733 }
21734
21735
21736 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21737 PyObject *resultobj = 0;
21738 wxDC *arg1 = (wxDC *) 0 ;
21739 bool result;
21740 void *argp1 = 0 ;
21741 int res1 = 0 ;
21742 PyObject *swig_obj[1] ;
21743
21744 if (!args) SWIG_fail;
21745 swig_obj[0] = args;
21746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21747 if (!SWIG_IsOK(res1)) {
21748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21749 }
21750 arg1 = reinterpret_cast< wxDC * >(argp1);
21751 {
21752 PyThreadState* __tstate = wxPyBeginAllowThreads();
21753 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21754 wxPyEndAllowThreads(__tstate);
21755 if (PyErr_Occurred()) SWIG_fail;
21756 }
21757 {
21758 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21759 }
21760 return resultobj;
21761 fail:
21762 return NULL;
21763 }
21764
21765
21766 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21767 PyObject *resultobj = 0;
21768 wxDC *arg1 = (wxDC *) 0 ;
21769 int result;
21770 void *argp1 = 0 ;
21771 int res1 = 0 ;
21772 PyObject *swig_obj[1] ;
21773
21774 if (!args) SWIG_fail;
21775 swig_obj[0] = args;
21776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21777 if (!SWIG_IsOK(res1)) {
21778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21779 }
21780 arg1 = reinterpret_cast< wxDC * >(argp1);
21781 {
21782 PyThreadState* __tstate = wxPyBeginAllowThreads();
21783 result = (int)((wxDC const *)arg1)->GetDepth();
21784 wxPyEndAllowThreads(__tstate);
21785 if (PyErr_Occurred()) SWIG_fail;
21786 }
21787 resultobj = SWIG_From_int(static_cast< int >(result));
21788 return resultobj;
21789 fail:
21790 return NULL;
21791 }
21792
21793
21794 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21795 PyObject *resultobj = 0;
21796 wxDC *arg1 = (wxDC *) 0 ;
21797 wxSize result;
21798 void *argp1 = 0 ;
21799 int res1 = 0 ;
21800 PyObject *swig_obj[1] ;
21801
21802 if (!args) SWIG_fail;
21803 swig_obj[0] = args;
21804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21805 if (!SWIG_IsOK(res1)) {
21806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21807 }
21808 arg1 = reinterpret_cast< wxDC * >(argp1);
21809 {
21810 PyThreadState* __tstate = wxPyBeginAllowThreads();
21811 result = ((wxDC const *)arg1)->GetPPI();
21812 wxPyEndAllowThreads(__tstate);
21813 if (PyErr_Occurred()) SWIG_fail;
21814 }
21815 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21816 return resultobj;
21817 fail:
21818 return NULL;
21819 }
21820
21821
21822 SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21823 PyObject *resultobj = 0;
21824 wxDC *arg1 = (wxDC *) 0 ;
21825 bool result;
21826 void *argp1 = 0 ;
21827 int res1 = 0 ;
21828 PyObject *swig_obj[1] ;
21829
21830 if (!args) SWIG_fail;
21831 swig_obj[0] = args;
21832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21833 if (!SWIG_IsOK(res1)) {
21834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
21835 }
21836 arg1 = reinterpret_cast< wxDC * >(argp1);
21837 {
21838 PyThreadState* __tstate = wxPyBeginAllowThreads();
21839 result = (bool)((wxDC const *)arg1)->IsOk();
21840 wxPyEndAllowThreads(__tstate);
21841 if (PyErr_Occurred()) SWIG_fail;
21842 }
21843 {
21844 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21845 }
21846 return resultobj;
21847 fail:
21848 return NULL;
21849 }
21850
21851
21852 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21853 PyObject *resultobj = 0;
21854 wxDC *arg1 = (wxDC *) 0 ;
21855 int result;
21856 void *argp1 = 0 ;
21857 int res1 = 0 ;
21858 PyObject *swig_obj[1] ;
21859
21860 if (!args) SWIG_fail;
21861 swig_obj[0] = args;
21862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21863 if (!SWIG_IsOK(res1)) {
21864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21865 }
21866 arg1 = reinterpret_cast< wxDC * >(argp1);
21867 {
21868 PyThreadState* __tstate = wxPyBeginAllowThreads();
21869 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21870 wxPyEndAllowThreads(__tstate);
21871 if (PyErr_Occurred()) SWIG_fail;
21872 }
21873 resultobj = SWIG_From_int(static_cast< int >(result));
21874 return resultobj;
21875 fail:
21876 return NULL;
21877 }
21878
21879
21880 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21881 PyObject *resultobj = 0;
21882 wxDC *arg1 = (wxDC *) 0 ;
21883 wxBrush *result = 0 ;
21884 void *argp1 = 0 ;
21885 int res1 = 0 ;
21886 PyObject *swig_obj[1] ;
21887
21888 if (!args) SWIG_fail;
21889 swig_obj[0] = args;
21890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21891 if (!SWIG_IsOK(res1)) {
21892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21893 }
21894 arg1 = reinterpret_cast< wxDC * >(argp1);
21895 {
21896 PyThreadState* __tstate = wxPyBeginAllowThreads();
21897 {
21898 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21899 result = (wxBrush *) &_result_ref;
21900 }
21901 wxPyEndAllowThreads(__tstate);
21902 if (PyErr_Occurred()) SWIG_fail;
21903 }
21904 {
21905 wxBrush* resultptr = new wxBrush(*result);
21906 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21907 }
21908 return resultobj;
21909 fail:
21910 return NULL;
21911 }
21912
21913
21914 SWIGINTERN PyObject *_wrap_DC_GetBrush(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_GetBrush" "', 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)->GetBrush();
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_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21949 PyObject *resultobj = 0;
21950 wxDC *arg1 = (wxDC *) 0 ;
21951 wxFont *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_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21961 }
21962 arg1 = reinterpret_cast< wxDC * >(argp1);
21963 {
21964 PyThreadState* __tstate = wxPyBeginAllowThreads();
21965 {
21966 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21967 result = (wxFont *) &_result_ref;
21968 }
21969 wxPyEndAllowThreads(__tstate);
21970 if (PyErr_Occurred()) SWIG_fail;
21971 }
21972 {
21973 wxFont* resultptr = new wxFont(*result);
21974 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21975 }
21976 return resultobj;
21977 fail:
21978 return NULL;
21979 }
21980
21981
21982 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21983 PyObject *resultobj = 0;
21984 wxDC *arg1 = (wxDC *) 0 ;
21985 wxPen *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_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
21995 }
21996 arg1 = reinterpret_cast< wxDC * >(argp1);
21997 {
21998 PyThreadState* __tstate = wxPyBeginAllowThreads();
21999 {
22000 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22001 result = (wxPen *) &_result_ref;
22002 }
22003 wxPyEndAllowThreads(__tstate);
22004 if (PyErr_Occurred()) SWIG_fail;
22005 }
22006 {
22007 wxPen* resultptr = new wxPen(*result);
22008 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22009 }
22010 return resultobj;
22011 fail:
22012 return NULL;
22013 }
22014
22015
22016 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22017 PyObject *resultobj = 0;
22018 wxDC *arg1 = (wxDC *) 0 ;
22019 wxColour *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_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22029 }
22030 arg1 = reinterpret_cast< wxDC * >(argp1);
22031 {
22032 PyThreadState* __tstate = wxPyBeginAllowThreads();
22033 {
22034 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22035 result = (wxColour *) &_result_ref;
22036 }
22037 wxPyEndAllowThreads(__tstate);
22038 if (PyErr_Occurred()) SWIG_fail;
22039 }
22040 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22041 return resultobj;
22042 fail:
22043 return NULL;
22044 }
22045
22046
22047 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22048 PyObject *resultobj = 0;
22049 wxDC *arg1 = (wxDC *) 0 ;
22050 wxColour *result = 0 ;
22051 void *argp1 = 0 ;
22052 int res1 = 0 ;
22053 PyObject *swig_obj[1] ;
22054
22055 if (!args) SWIG_fail;
22056 swig_obj[0] = args;
22057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22058 if (!SWIG_IsOK(res1)) {
22059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22060 }
22061 arg1 = reinterpret_cast< wxDC * >(argp1);
22062 {
22063 PyThreadState* __tstate = wxPyBeginAllowThreads();
22064 {
22065 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22066 result = (wxColour *) &_result_ref;
22067 }
22068 wxPyEndAllowThreads(__tstate);
22069 if (PyErr_Occurred()) SWIG_fail;
22070 }
22071 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22072 return resultobj;
22073 fail:
22074 return NULL;
22075 }
22076
22077
22078 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22079 PyObject *resultobj = 0;
22080 wxDC *arg1 = (wxDC *) 0 ;
22081 wxColour *arg2 = 0 ;
22082 void *argp1 = 0 ;
22083 int res1 = 0 ;
22084 wxColour temp2 ;
22085 PyObject * obj0 = 0 ;
22086 PyObject * obj1 = 0 ;
22087 char * kwnames[] = {
22088 (char *) "self",(char *) "colour", NULL
22089 };
22090
22091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22093 if (!SWIG_IsOK(res1)) {
22094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22095 }
22096 arg1 = reinterpret_cast< wxDC * >(argp1);
22097 {
22098 arg2 = &temp2;
22099 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22100 }
22101 {
22102 PyThreadState* __tstate = wxPyBeginAllowThreads();
22103 (arg1)->SetTextForeground((wxColour const &)*arg2);
22104 wxPyEndAllowThreads(__tstate);
22105 if (PyErr_Occurred()) SWIG_fail;
22106 }
22107 resultobj = SWIG_Py_Void();
22108 return resultobj;
22109 fail:
22110 return NULL;
22111 }
22112
22113
22114 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22115 PyObject *resultobj = 0;
22116 wxDC *arg1 = (wxDC *) 0 ;
22117 wxColour *arg2 = 0 ;
22118 void *argp1 = 0 ;
22119 int res1 = 0 ;
22120 wxColour temp2 ;
22121 PyObject * obj0 = 0 ;
22122 PyObject * obj1 = 0 ;
22123 char * kwnames[] = {
22124 (char *) "self",(char *) "colour", NULL
22125 };
22126
22127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22129 if (!SWIG_IsOK(res1)) {
22130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22131 }
22132 arg1 = reinterpret_cast< wxDC * >(argp1);
22133 {
22134 arg2 = &temp2;
22135 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22136 }
22137 {
22138 PyThreadState* __tstate = wxPyBeginAllowThreads();
22139 (arg1)->SetTextBackground((wxColour const &)*arg2);
22140 wxPyEndAllowThreads(__tstate);
22141 if (PyErr_Occurred()) SWIG_fail;
22142 }
22143 resultobj = SWIG_Py_Void();
22144 return resultobj;
22145 fail:
22146 return NULL;
22147 }
22148
22149
22150 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22151 PyObject *resultobj = 0;
22152 wxDC *arg1 = (wxDC *) 0 ;
22153 int result;
22154 void *argp1 = 0 ;
22155 int res1 = 0 ;
22156 PyObject *swig_obj[1] ;
22157
22158 if (!args) SWIG_fail;
22159 swig_obj[0] = args;
22160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22161 if (!SWIG_IsOK(res1)) {
22162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22163 }
22164 arg1 = reinterpret_cast< wxDC * >(argp1);
22165 {
22166 PyThreadState* __tstate = wxPyBeginAllowThreads();
22167 result = (int)((wxDC const *)arg1)->GetMapMode();
22168 wxPyEndAllowThreads(__tstate);
22169 if (PyErr_Occurred()) SWIG_fail;
22170 }
22171 resultobj = SWIG_From_int(static_cast< int >(result));
22172 return resultobj;
22173 fail:
22174 return NULL;
22175 }
22176
22177
22178 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22179 PyObject *resultobj = 0;
22180 wxDC *arg1 = (wxDC *) 0 ;
22181 int arg2 ;
22182 void *argp1 = 0 ;
22183 int res1 = 0 ;
22184 int val2 ;
22185 int ecode2 = 0 ;
22186 PyObject * obj0 = 0 ;
22187 PyObject * obj1 = 0 ;
22188 char * kwnames[] = {
22189 (char *) "self",(char *) "mode", NULL
22190 };
22191
22192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22194 if (!SWIG_IsOK(res1)) {
22195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22196 }
22197 arg1 = reinterpret_cast< wxDC * >(argp1);
22198 ecode2 = SWIG_AsVal_int(obj1, &val2);
22199 if (!SWIG_IsOK(ecode2)) {
22200 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22201 }
22202 arg2 = static_cast< int >(val2);
22203 {
22204 PyThreadState* __tstate = wxPyBeginAllowThreads();
22205 (arg1)->SetMapMode(arg2);
22206 wxPyEndAllowThreads(__tstate);
22207 if (PyErr_Occurred()) SWIG_fail;
22208 }
22209 resultobj = SWIG_Py_Void();
22210 return resultobj;
22211 fail:
22212 return NULL;
22213 }
22214
22215
22216 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22217 PyObject *resultobj = 0;
22218 wxDC *arg1 = (wxDC *) 0 ;
22219 double *arg2 = (double *) 0 ;
22220 double *arg3 = (double *) 0 ;
22221 void *argp1 = 0 ;
22222 int res1 = 0 ;
22223 double temp2 ;
22224 int res2 = SWIG_TMPOBJ ;
22225 double temp3 ;
22226 int res3 = SWIG_TMPOBJ ;
22227 PyObject *swig_obj[1] ;
22228
22229 arg2 = &temp2;
22230 arg3 = &temp3;
22231 if (!args) SWIG_fail;
22232 swig_obj[0] = args;
22233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22234 if (!SWIG_IsOK(res1)) {
22235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22236 }
22237 arg1 = reinterpret_cast< wxDC * >(argp1);
22238 {
22239 PyThreadState* __tstate = wxPyBeginAllowThreads();
22240 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22241 wxPyEndAllowThreads(__tstate);
22242 if (PyErr_Occurred()) SWIG_fail;
22243 }
22244 resultobj = SWIG_Py_Void();
22245 if (SWIG_IsTmpObj(res2)) {
22246 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22247 } else {
22248 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22249 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22250 }
22251 if (SWIG_IsTmpObj(res3)) {
22252 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22253 } else {
22254 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22255 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22256 }
22257 return resultobj;
22258 fail:
22259 return NULL;
22260 }
22261
22262
22263 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22264 PyObject *resultobj = 0;
22265 wxDC *arg1 = (wxDC *) 0 ;
22266 double arg2 ;
22267 double arg3 ;
22268 void *argp1 = 0 ;
22269 int res1 = 0 ;
22270 double val2 ;
22271 int ecode2 = 0 ;
22272 double val3 ;
22273 int ecode3 = 0 ;
22274 PyObject * obj0 = 0 ;
22275 PyObject * obj1 = 0 ;
22276 PyObject * obj2 = 0 ;
22277 char * kwnames[] = {
22278 (char *) "self",(char *) "x",(char *) "y", NULL
22279 };
22280
22281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22283 if (!SWIG_IsOK(res1)) {
22284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22285 }
22286 arg1 = reinterpret_cast< wxDC * >(argp1);
22287 ecode2 = SWIG_AsVal_double(obj1, &val2);
22288 if (!SWIG_IsOK(ecode2)) {
22289 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22290 }
22291 arg2 = static_cast< double >(val2);
22292 ecode3 = SWIG_AsVal_double(obj2, &val3);
22293 if (!SWIG_IsOK(ecode3)) {
22294 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22295 }
22296 arg3 = static_cast< double >(val3);
22297 {
22298 PyThreadState* __tstate = wxPyBeginAllowThreads();
22299 (arg1)->SetUserScale(arg2,arg3);
22300 wxPyEndAllowThreads(__tstate);
22301 if (PyErr_Occurred()) SWIG_fail;
22302 }
22303 resultobj = SWIG_Py_Void();
22304 return resultobj;
22305 fail:
22306 return NULL;
22307 }
22308
22309
22310 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22311 PyObject *resultobj = 0;
22312 wxDC *arg1 = (wxDC *) 0 ;
22313 double *arg2 = (double *) 0 ;
22314 double *arg3 = (double *) 0 ;
22315 void *argp1 = 0 ;
22316 int res1 = 0 ;
22317 double temp2 ;
22318 int res2 = SWIG_TMPOBJ ;
22319 double temp3 ;
22320 int res3 = SWIG_TMPOBJ ;
22321 PyObject *swig_obj[1] ;
22322
22323 arg2 = &temp2;
22324 arg3 = &temp3;
22325 if (!args) SWIG_fail;
22326 swig_obj[0] = args;
22327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22328 if (!SWIG_IsOK(res1)) {
22329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22330 }
22331 arg1 = reinterpret_cast< wxDC * >(argp1);
22332 {
22333 PyThreadState* __tstate = wxPyBeginAllowThreads();
22334 (arg1)->GetLogicalScale(arg2,arg3);
22335 wxPyEndAllowThreads(__tstate);
22336 if (PyErr_Occurred()) SWIG_fail;
22337 }
22338 resultobj = SWIG_Py_Void();
22339 if (SWIG_IsTmpObj(res2)) {
22340 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22341 } else {
22342 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22343 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22344 }
22345 if (SWIG_IsTmpObj(res3)) {
22346 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22347 } else {
22348 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22349 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22350 }
22351 return resultobj;
22352 fail:
22353 return NULL;
22354 }
22355
22356
22357 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22358 PyObject *resultobj = 0;
22359 wxDC *arg1 = (wxDC *) 0 ;
22360 double arg2 ;
22361 double arg3 ;
22362 void *argp1 = 0 ;
22363 int res1 = 0 ;
22364 double val2 ;
22365 int ecode2 = 0 ;
22366 double val3 ;
22367 int ecode3 = 0 ;
22368 PyObject * obj0 = 0 ;
22369 PyObject * obj1 = 0 ;
22370 PyObject * obj2 = 0 ;
22371 char * kwnames[] = {
22372 (char *) "self",(char *) "x",(char *) "y", NULL
22373 };
22374
22375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22377 if (!SWIG_IsOK(res1)) {
22378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22379 }
22380 arg1 = reinterpret_cast< wxDC * >(argp1);
22381 ecode2 = SWIG_AsVal_double(obj1, &val2);
22382 if (!SWIG_IsOK(ecode2)) {
22383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22384 }
22385 arg2 = static_cast< double >(val2);
22386 ecode3 = SWIG_AsVal_double(obj2, &val3);
22387 if (!SWIG_IsOK(ecode3)) {
22388 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22389 }
22390 arg3 = static_cast< double >(val3);
22391 {
22392 PyThreadState* __tstate = wxPyBeginAllowThreads();
22393 (arg1)->SetLogicalScale(arg2,arg3);
22394 wxPyEndAllowThreads(__tstate);
22395 if (PyErr_Occurred()) SWIG_fail;
22396 }
22397 resultobj = SWIG_Py_Void();
22398 return resultobj;
22399 fail:
22400 return NULL;
22401 }
22402
22403
22404 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22405 PyObject *resultobj = 0;
22406 wxDC *arg1 = (wxDC *) 0 ;
22407 wxPoint result;
22408 void *argp1 = 0 ;
22409 int res1 = 0 ;
22410 PyObject *swig_obj[1] ;
22411
22412 if (!args) SWIG_fail;
22413 swig_obj[0] = args;
22414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22415 if (!SWIG_IsOK(res1)) {
22416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22417 }
22418 arg1 = reinterpret_cast< wxDC * >(argp1);
22419 {
22420 PyThreadState* __tstate = wxPyBeginAllowThreads();
22421 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22422 wxPyEndAllowThreads(__tstate);
22423 if (PyErr_Occurred()) SWIG_fail;
22424 }
22425 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22426 return resultobj;
22427 fail:
22428 return NULL;
22429 }
22430
22431
22432 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22433 PyObject *resultobj = 0;
22434 wxDC *arg1 = (wxDC *) 0 ;
22435 int *arg2 = (int *) 0 ;
22436 int *arg3 = (int *) 0 ;
22437 void *argp1 = 0 ;
22438 int res1 = 0 ;
22439 int temp2 ;
22440 int res2 = SWIG_TMPOBJ ;
22441 int temp3 ;
22442 int res3 = SWIG_TMPOBJ ;
22443 PyObject *swig_obj[1] ;
22444
22445 arg2 = &temp2;
22446 arg3 = &temp3;
22447 if (!args) SWIG_fail;
22448 swig_obj[0] = args;
22449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22450 if (!SWIG_IsOK(res1)) {
22451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22452 }
22453 arg1 = reinterpret_cast< wxDC * >(argp1);
22454 {
22455 PyThreadState* __tstate = wxPyBeginAllowThreads();
22456 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22457 wxPyEndAllowThreads(__tstate);
22458 if (PyErr_Occurred()) SWIG_fail;
22459 }
22460 resultobj = SWIG_Py_Void();
22461 if (SWIG_IsTmpObj(res2)) {
22462 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22463 } else {
22464 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22465 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22466 }
22467 if (SWIG_IsTmpObj(res3)) {
22468 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22469 } else {
22470 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22471 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22472 }
22473 return resultobj;
22474 fail:
22475 return NULL;
22476 }
22477
22478
22479 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22480 PyObject *resultobj = 0;
22481 wxDC *arg1 = (wxDC *) 0 ;
22482 int arg2 ;
22483 int arg3 ;
22484 void *argp1 = 0 ;
22485 int res1 = 0 ;
22486 int val2 ;
22487 int ecode2 = 0 ;
22488 int val3 ;
22489 int ecode3 = 0 ;
22490 PyObject * obj0 = 0 ;
22491 PyObject * obj1 = 0 ;
22492 PyObject * obj2 = 0 ;
22493 char * kwnames[] = {
22494 (char *) "self",(char *) "x",(char *) "y", NULL
22495 };
22496
22497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22499 if (!SWIG_IsOK(res1)) {
22500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22501 }
22502 arg1 = reinterpret_cast< wxDC * >(argp1);
22503 ecode2 = SWIG_AsVal_int(obj1, &val2);
22504 if (!SWIG_IsOK(ecode2)) {
22505 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22506 }
22507 arg2 = static_cast< int >(val2);
22508 ecode3 = SWIG_AsVal_int(obj2, &val3);
22509 if (!SWIG_IsOK(ecode3)) {
22510 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22511 }
22512 arg3 = static_cast< int >(val3);
22513 {
22514 PyThreadState* __tstate = wxPyBeginAllowThreads();
22515 (arg1)->SetLogicalOrigin(arg2,arg3);
22516 wxPyEndAllowThreads(__tstate);
22517 if (PyErr_Occurred()) SWIG_fail;
22518 }
22519 resultobj = SWIG_Py_Void();
22520 return resultobj;
22521 fail:
22522 return NULL;
22523 }
22524
22525
22526 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22527 PyObject *resultobj = 0;
22528 wxDC *arg1 = (wxDC *) 0 ;
22529 wxPoint *arg2 = 0 ;
22530 void *argp1 = 0 ;
22531 int res1 = 0 ;
22532 wxPoint temp2 ;
22533 PyObject * obj0 = 0 ;
22534 PyObject * obj1 = 0 ;
22535 char * kwnames[] = {
22536 (char *) "self",(char *) "point", NULL
22537 };
22538
22539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22541 if (!SWIG_IsOK(res1)) {
22542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22543 }
22544 arg1 = reinterpret_cast< wxDC * >(argp1);
22545 {
22546 arg2 = &temp2;
22547 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22548 }
22549 {
22550 PyThreadState* __tstate = wxPyBeginAllowThreads();
22551 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22552 wxPyEndAllowThreads(__tstate);
22553 if (PyErr_Occurred()) SWIG_fail;
22554 }
22555 resultobj = SWIG_Py_Void();
22556 return resultobj;
22557 fail:
22558 return NULL;
22559 }
22560
22561
22562 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22563 PyObject *resultobj = 0;
22564 wxDC *arg1 = (wxDC *) 0 ;
22565 wxPoint result;
22566 void *argp1 = 0 ;
22567 int res1 = 0 ;
22568 PyObject *swig_obj[1] ;
22569
22570 if (!args) SWIG_fail;
22571 swig_obj[0] = args;
22572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22573 if (!SWIG_IsOK(res1)) {
22574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22575 }
22576 arg1 = reinterpret_cast< wxDC * >(argp1);
22577 {
22578 PyThreadState* __tstate = wxPyBeginAllowThreads();
22579 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22580 wxPyEndAllowThreads(__tstate);
22581 if (PyErr_Occurred()) SWIG_fail;
22582 }
22583 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22584 return resultobj;
22585 fail:
22586 return NULL;
22587 }
22588
22589
22590 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22591 PyObject *resultobj = 0;
22592 wxDC *arg1 = (wxDC *) 0 ;
22593 int *arg2 = (int *) 0 ;
22594 int *arg3 = (int *) 0 ;
22595 void *argp1 = 0 ;
22596 int res1 = 0 ;
22597 int temp2 ;
22598 int res2 = SWIG_TMPOBJ ;
22599 int temp3 ;
22600 int res3 = SWIG_TMPOBJ ;
22601 PyObject *swig_obj[1] ;
22602
22603 arg2 = &temp2;
22604 arg3 = &temp3;
22605 if (!args) SWIG_fail;
22606 swig_obj[0] = args;
22607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22608 if (!SWIG_IsOK(res1)) {
22609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22610 }
22611 arg1 = reinterpret_cast< wxDC * >(argp1);
22612 {
22613 PyThreadState* __tstate = wxPyBeginAllowThreads();
22614 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22615 wxPyEndAllowThreads(__tstate);
22616 if (PyErr_Occurred()) SWIG_fail;
22617 }
22618 resultobj = SWIG_Py_Void();
22619 if (SWIG_IsTmpObj(res2)) {
22620 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22621 } else {
22622 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22623 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22624 }
22625 if (SWIG_IsTmpObj(res3)) {
22626 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22627 } else {
22628 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22629 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22630 }
22631 return resultobj;
22632 fail:
22633 return NULL;
22634 }
22635
22636
22637 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22638 PyObject *resultobj = 0;
22639 wxDC *arg1 = (wxDC *) 0 ;
22640 int arg2 ;
22641 int arg3 ;
22642 void *argp1 = 0 ;
22643 int res1 = 0 ;
22644 int val2 ;
22645 int ecode2 = 0 ;
22646 int val3 ;
22647 int ecode3 = 0 ;
22648 PyObject * obj0 = 0 ;
22649 PyObject * obj1 = 0 ;
22650 PyObject * obj2 = 0 ;
22651 char * kwnames[] = {
22652 (char *) "self",(char *) "x",(char *) "y", NULL
22653 };
22654
22655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22657 if (!SWIG_IsOK(res1)) {
22658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22659 }
22660 arg1 = reinterpret_cast< wxDC * >(argp1);
22661 ecode2 = SWIG_AsVal_int(obj1, &val2);
22662 if (!SWIG_IsOK(ecode2)) {
22663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22664 }
22665 arg2 = static_cast< int >(val2);
22666 ecode3 = SWIG_AsVal_int(obj2, &val3);
22667 if (!SWIG_IsOK(ecode3)) {
22668 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22669 }
22670 arg3 = static_cast< int >(val3);
22671 {
22672 PyThreadState* __tstate = wxPyBeginAllowThreads();
22673 (arg1)->SetDeviceOrigin(arg2,arg3);
22674 wxPyEndAllowThreads(__tstate);
22675 if (PyErr_Occurred()) SWIG_fail;
22676 }
22677 resultobj = SWIG_Py_Void();
22678 return resultobj;
22679 fail:
22680 return NULL;
22681 }
22682
22683
22684 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22685 PyObject *resultobj = 0;
22686 wxDC *arg1 = (wxDC *) 0 ;
22687 wxPoint *arg2 = 0 ;
22688 void *argp1 = 0 ;
22689 int res1 = 0 ;
22690 wxPoint temp2 ;
22691 PyObject * obj0 = 0 ;
22692 PyObject * obj1 = 0 ;
22693 char * kwnames[] = {
22694 (char *) "self",(char *) "point", NULL
22695 };
22696
22697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22699 if (!SWIG_IsOK(res1)) {
22700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22701 }
22702 arg1 = reinterpret_cast< wxDC * >(argp1);
22703 {
22704 arg2 = &temp2;
22705 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22706 }
22707 {
22708 PyThreadState* __tstate = wxPyBeginAllowThreads();
22709 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22710 wxPyEndAllowThreads(__tstate);
22711 if (PyErr_Occurred()) SWIG_fail;
22712 }
22713 resultobj = SWIG_Py_Void();
22714 return resultobj;
22715 fail:
22716 return NULL;
22717 }
22718
22719
22720 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22721 PyObject *resultobj = 0;
22722 wxDC *arg1 = (wxDC *) 0 ;
22723 bool arg2 ;
22724 bool arg3 ;
22725 void *argp1 = 0 ;
22726 int res1 = 0 ;
22727 bool val2 ;
22728 int ecode2 = 0 ;
22729 bool val3 ;
22730 int ecode3 = 0 ;
22731 PyObject * obj0 = 0 ;
22732 PyObject * obj1 = 0 ;
22733 PyObject * obj2 = 0 ;
22734 char * kwnames[] = {
22735 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22736 };
22737
22738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22740 if (!SWIG_IsOK(res1)) {
22741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22742 }
22743 arg1 = reinterpret_cast< wxDC * >(argp1);
22744 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22745 if (!SWIG_IsOK(ecode2)) {
22746 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22747 }
22748 arg2 = static_cast< bool >(val2);
22749 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22750 if (!SWIG_IsOK(ecode3)) {
22751 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22752 }
22753 arg3 = static_cast< bool >(val3);
22754 {
22755 PyThreadState* __tstate = wxPyBeginAllowThreads();
22756 (arg1)->SetAxisOrientation(arg2,arg3);
22757 wxPyEndAllowThreads(__tstate);
22758 if (PyErr_Occurred()) SWIG_fail;
22759 }
22760 resultobj = SWIG_Py_Void();
22761 return resultobj;
22762 fail:
22763 return NULL;
22764 }
22765
22766
22767 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22768 PyObject *resultobj = 0;
22769 wxDC *arg1 = (wxDC *) 0 ;
22770 int result;
22771 void *argp1 = 0 ;
22772 int res1 = 0 ;
22773 PyObject *swig_obj[1] ;
22774
22775 if (!args) SWIG_fail;
22776 swig_obj[0] = args;
22777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22778 if (!SWIG_IsOK(res1)) {
22779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22780 }
22781 arg1 = reinterpret_cast< wxDC * >(argp1);
22782 {
22783 PyThreadState* __tstate = wxPyBeginAllowThreads();
22784 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22785 wxPyEndAllowThreads(__tstate);
22786 if (PyErr_Occurred()) SWIG_fail;
22787 }
22788 resultobj = SWIG_From_int(static_cast< int >(result));
22789 return resultobj;
22790 fail:
22791 return NULL;
22792 }
22793
22794
22795 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22796 PyObject *resultobj = 0;
22797 wxDC *arg1 = (wxDC *) 0 ;
22798 int arg2 ;
22799 void *argp1 = 0 ;
22800 int res1 = 0 ;
22801 int val2 ;
22802 int ecode2 = 0 ;
22803 PyObject * obj0 = 0 ;
22804 PyObject * obj1 = 0 ;
22805 char * kwnames[] = {
22806 (char *) "self",(char *) "function", NULL
22807 };
22808
22809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22811 if (!SWIG_IsOK(res1)) {
22812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22813 }
22814 arg1 = reinterpret_cast< wxDC * >(argp1);
22815 ecode2 = SWIG_AsVal_int(obj1, &val2);
22816 if (!SWIG_IsOK(ecode2)) {
22817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22818 }
22819 arg2 = static_cast< int >(val2);
22820 {
22821 PyThreadState* __tstate = wxPyBeginAllowThreads();
22822 (arg1)->SetLogicalFunction(arg2);
22823 wxPyEndAllowThreads(__tstate);
22824 if (PyErr_Occurred()) SWIG_fail;
22825 }
22826 resultobj = SWIG_Py_Void();
22827 return resultobj;
22828 fail:
22829 return NULL;
22830 }
22831
22832
22833 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22834 PyObject *resultobj = 0;
22835 wxDC *arg1 = (wxDC *) 0 ;
22836 void *argp1 = 0 ;
22837 int res1 = 0 ;
22838 PyObject *swig_obj[1] ;
22839
22840 if (!args) SWIG_fail;
22841 swig_obj[0] = args;
22842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22843 if (!SWIG_IsOK(res1)) {
22844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22845 }
22846 arg1 = reinterpret_cast< wxDC * >(argp1);
22847 {
22848 PyThreadState* __tstate = wxPyBeginAllowThreads();
22849 (arg1)->ComputeScaleAndOrigin();
22850 wxPyEndAllowThreads(__tstate);
22851 if (PyErr_Occurred()) SWIG_fail;
22852 }
22853 resultobj = SWIG_Py_Void();
22854 return resultobj;
22855 fail:
22856 return NULL;
22857 }
22858
22859
22860 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22861 PyObject *resultobj = 0;
22862 wxDC *arg1 = (wxDC *) 0 ;
22863 int arg2 ;
22864 int arg3 ;
22865 void *argp1 = 0 ;
22866 int res1 = 0 ;
22867 int val2 ;
22868 int ecode2 = 0 ;
22869 int val3 ;
22870 int ecode3 = 0 ;
22871 PyObject * obj0 = 0 ;
22872 PyObject * obj1 = 0 ;
22873 PyObject * obj2 = 0 ;
22874 char * kwnames[] = {
22875 (char *) "self",(char *) "x",(char *) "y", NULL
22876 };
22877
22878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22880 if (!SWIG_IsOK(res1)) {
22881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22882 }
22883 arg1 = reinterpret_cast< wxDC * >(argp1);
22884 ecode2 = SWIG_AsVal_int(obj1, &val2);
22885 if (!SWIG_IsOK(ecode2)) {
22886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22887 }
22888 arg2 = static_cast< int >(val2);
22889 ecode3 = SWIG_AsVal_int(obj2, &val3);
22890 if (!SWIG_IsOK(ecode3)) {
22891 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22892 }
22893 arg3 = static_cast< int >(val3);
22894 {
22895 PyThreadState* __tstate = wxPyBeginAllowThreads();
22896 (arg1)->CalcBoundingBox(arg2,arg3);
22897 wxPyEndAllowThreads(__tstate);
22898 if (PyErr_Occurred()) SWIG_fail;
22899 }
22900 resultobj = SWIG_Py_Void();
22901 return resultobj;
22902 fail:
22903 return NULL;
22904 }
22905
22906
22907 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22908 PyObject *resultobj = 0;
22909 wxDC *arg1 = (wxDC *) 0 ;
22910 wxPoint *arg2 = 0 ;
22911 void *argp1 = 0 ;
22912 int res1 = 0 ;
22913 wxPoint temp2 ;
22914 PyObject * obj0 = 0 ;
22915 PyObject * obj1 = 0 ;
22916 char * kwnames[] = {
22917 (char *) "self",(char *) "point", NULL
22918 };
22919
22920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22922 if (!SWIG_IsOK(res1)) {
22923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22924 }
22925 arg1 = reinterpret_cast< wxDC * >(argp1);
22926 {
22927 arg2 = &temp2;
22928 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22929 }
22930 {
22931 PyThreadState* __tstate = wxPyBeginAllowThreads();
22932 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22933 wxPyEndAllowThreads(__tstate);
22934 if (PyErr_Occurred()) SWIG_fail;
22935 }
22936 resultobj = SWIG_Py_Void();
22937 return resultobj;
22938 fail:
22939 return NULL;
22940 }
22941
22942
22943 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22944 PyObject *resultobj = 0;
22945 wxDC *arg1 = (wxDC *) 0 ;
22946 void *argp1 = 0 ;
22947 int res1 = 0 ;
22948 PyObject *swig_obj[1] ;
22949
22950 if (!args) SWIG_fail;
22951 swig_obj[0] = args;
22952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22953 if (!SWIG_IsOK(res1)) {
22954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22955 }
22956 arg1 = reinterpret_cast< wxDC * >(argp1);
22957 {
22958 PyThreadState* __tstate = wxPyBeginAllowThreads();
22959 (arg1)->ResetBoundingBox();
22960 wxPyEndAllowThreads(__tstate);
22961 if (PyErr_Occurred()) SWIG_fail;
22962 }
22963 resultobj = SWIG_Py_Void();
22964 return resultobj;
22965 fail:
22966 return NULL;
22967 }
22968
22969
22970 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22971 PyObject *resultobj = 0;
22972 wxDC *arg1 = (wxDC *) 0 ;
22973 int result;
22974 void *argp1 = 0 ;
22975 int res1 = 0 ;
22976 PyObject *swig_obj[1] ;
22977
22978 if (!args) SWIG_fail;
22979 swig_obj[0] = args;
22980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22981 if (!SWIG_IsOK(res1)) {
22982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
22983 }
22984 arg1 = reinterpret_cast< wxDC * >(argp1);
22985 {
22986 PyThreadState* __tstate = wxPyBeginAllowThreads();
22987 result = (int)((wxDC const *)arg1)->MinX();
22988 wxPyEndAllowThreads(__tstate);
22989 if (PyErr_Occurred()) SWIG_fail;
22990 }
22991 resultobj = SWIG_From_int(static_cast< int >(result));
22992 return resultobj;
22993 fail:
22994 return NULL;
22995 }
22996
22997
22998 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22999 PyObject *resultobj = 0;
23000 wxDC *arg1 = (wxDC *) 0 ;
23001 int result;
23002 void *argp1 = 0 ;
23003 int res1 = 0 ;
23004 PyObject *swig_obj[1] ;
23005
23006 if (!args) SWIG_fail;
23007 swig_obj[0] = args;
23008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23009 if (!SWIG_IsOK(res1)) {
23010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23011 }
23012 arg1 = reinterpret_cast< wxDC * >(argp1);
23013 {
23014 PyThreadState* __tstate = wxPyBeginAllowThreads();
23015 result = (int)((wxDC const *)arg1)->MaxX();
23016 wxPyEndAllowThreads(__tstate);
23017 if (PyErr_Occurred()) SWIG_fail;
23018 }
23019 resultobj = SWIG_From_int(static_cast< int >(result));
23020 return resultobj;
23021 fail:
23022 return NULL;
23023 }
23024
23025
23026 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23027 PyObject *resultobj = 0;
23028 wxDC *arg1 = (wxDC *) 0 ;
23029 int result;
23030 void *argp1 = 0 ;
23031 int res1 = 0 ;
23032 PyObject *swig_obj[1] ;
23033
23034 if (!args) SWIG_fail;
23035 swig_obj[0] = args;
23036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23037 if (!SWIG_IsOK(res1)) {
23038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23039 }
23040 arg1 = reinterpret_cast< wxDC * >(argp1);
23041 {
23042 PyThreadState* __tstate = wxPyBeginAllowThreads();
23043 result = (int)((wxDC const *)arg1)->MinY();
23044 wxPyEndAllowThreads(__tstate);
23045 if (PyErr_Occurred()) SWIG_fail;
23046 }
23047 resultobj = SWIG_From_int(static_cast< int >(result));
23048 return resultobj;
23049 fail:
23050 return NULL;
23051 }
23052
23053
23054 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23055 PyObject *resultobj = 0;
23056 wxDC *arg1 = (wxDC *) 0 ;
23057 int result;
23058 void *argp1 = 0 ;
23059 int res1 = 0 ;
23060 PyObject *swig_obj[1] ;
23061
23062 if (!args) SWIG_fail;
23063 swig_obj[0] = args;
23064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23065 if (!SWIG_IsOK(res1)) {
23066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23067 }
23068 arg1 = reinterpret_cast< wxDC * >(argp1);
23069 {
23070 PyThreadState* __tstate = wxPyBeginAllowThreads();
23071 result = (int)((wxDC const *)arg1)->MaxY();
23072 wxPyEndAllowThreads(__tstate);
23073 if (PyErr_Occurred()) SWIG_fail;
23074 }
23075 resultobj = SWIG_From_int(static_cast< int >(result));
23076 return resultobj;
23077 fail:
23078 return NULL;
23079 }
23080
23081
23082 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23083 PyObject *resultobj = 0;
23084 wxDC *arg1 = (wxDC *) 0 ;
23085 int *arg2 = (int *) 0 ;
23086 int *arg3 = (int *) 0 ;
23087 int *arg4 = (int *) 0 ;
23088 int *arg5 = (int *) 0 ;
23089 void *argp1 = 0 ;
23090 int res1 = 0 ;
23091 int temp2 ;
23092 int res2 = SWIG_TMPOBJ ;
23093 int temp3 ;
23094 int res3 = SWIG_TMPOBJ ;
23095 int temp4 ;
23096 int res4 = SWIG_TMPOBJ ;
23097 int temp5 ;
23098 int res5 = SWIG_TMPOBJ ;
23099 PyObject *swig_obj[1] ;
23100
23101 arg2 = &temp2;
23102 arg3 = &temp3;
23103 arg4 = &temp4;
23104 arg5 = &temp5;
23105 if (!args) SWIG_fail;
23106 swig_obj[0] = args;
23107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23108 if (!SWIG_IsOK(res1)) {
23109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23110 }
23111 arg1 = reinterpret_cast< wxDC * >(argp1);
23112 {
23113 PyThreadState* __tstate = wxPyBeginAllowThreads();
23114 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23115 wxPyEndAllowThreads(__tstate);
23116 if (PyErr_Occurred()) SWIG_fail;
23117 }
23118 resultobj = SWIG_Py_Void();
23119 if (SWIG_IsTmpObj(res2)) {
23120 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23121 } else {
23122 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23123 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23124 }
23125 if (SWIG_IsTmpObj(res3)) {
23126 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23127 } else {
23128 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23129 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23130 }
23131 if (SWIG_IsTmpObj(res4)) {
23132 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23133 } else {
23134 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23135 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23136 }
23137 if (SWIG_IsTmpObj(res5)) {
23138 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23139 } else {
23140 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23141 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23142 }
23143 return resultobj;
23144 fail:
23145 return NULL;
23146 }
23147
23148
23149 SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23150 PyObject *resultobj = 0;
23151 wxDC *arg1 = (wxDC *) 0 ;
23152 wxLayoutDirection result;
23153 void *argp1 = 0 ;
23154 int res1 = 0 ;
23155 PyObject *swig_obj[1] ;
23156
23157 if (!args) SWIG_fail;
23158 swig_obj[0] = args;
23159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23160 if (!SWIG_IsOK(res1)) {
23161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23162 }
23163 arg1 = reinterpret_cast< wxDC * >(argp1);
23164 {
23165 PyThreadState* __tstate = wxPyBeginAllowThreads();
23166 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23167 wxPyEndAllowThreads(__tstate);
23168 if (PyErr_Occurred()) SWIG_fail;
23169 }
23170 resultobj = SWIG_From_int(static_cast< int >(result));
23171 return resultobj;
23172 fail:
23173 return NULL;
23174 }
23175
23176
23177 SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23178 PyObject *resultobj = 0;
23179 wxDC *arg1 = (wxDC *) 0 ;
23180 wxLayoutDirection arg2 ;
23181 void *argp1 = 0 ;
23182 int res1 = 0 ;
23183 int val2 ;
23184 int ecode2 = 0 ;
23185 PyObject * obj0 = 0 ;
23186 PyObject * obj1 = 0 ;
23187 char * kwnames[] = {
23188 (char *) "self",(char *) "dir", NULL
23189 };
23190
23191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23193 if (!SWIG_IsOK(res1)) {
23194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23195 }
23196 arg1 = reinterpret_cast< wxDC * >(argp1);
23197 ecode2 = SWIG_AsVal_int(obj1, &val2);
23198 if (!SWIG_IsOK(ecode2)) {
23199 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23200 }
23201 arg2 = static_cast< wxLayoutDirection >(val2);
23202 {
23203 PyThreadState* __tstate = wxPyBeginAllowThreads();
23204 (arg1)->SetLayoutDirection(arg2);
23205 wxPyEndAllowThreads(__tstate);
23206 if (PyErr_Occurred()) SWIG_fail;
23207 }
23208 resultobj = SWIG_Py_Void();
23209 return resultobj;
23210 fail:
23211 return NULL;
23212 }
23213
23214
23215 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23216 PyObject *resultobj = 0;
23217 wxDC *arg1 = (wxDC *) 0 ;
23218 PyObject *arg2 = (PyObject *) 0 ;
23219 PyObject *arg3 = (PyObject *) 0 ;
23220 PyObject *arg4 = (PyObject *) 0 ;
23221 PyObject *result = 0 ;
23222 void *argp1 = 0 ;
23223 int res1 = 0 ;
23224 PyObject * obj0 = 0 ;
23225 PyObject * obj1 = 0 ;
23226 PyObject * obj2 = 0 ;
23227 PyObject * obj3 = 0 ;
23228 char * kwnames[] = {
23229 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23230 };
23231
23232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23234 if (!SWIG_IsOK(res1)) {
23235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23236 }
23237 arg1 = reinterpret_cast< wxDC * >(argp1);
23238 arg2 = obj1;
23239 arg3 = obj2;
23240 arg4 = obj3;
23241 {
23242 PyThreadState* __tstate = wxPyBeginAllowThreads();
23243 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23244 wxPyEndAllowThreads(__tstate);
23245 if (PyErr_Occurred()) SWIG_fail;
23246 }
23247 resultobj = result;
23248 return resultobj;
23249 fail:
23250 return NULL;
23251 }
23252
23253
23254 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23255 PyObject *resultobj = 0;
23256 wxDC *arg1 = (wxDC *) 0 ;
23257 PyObject *arg2 = (PyObject *) 0 ;
23258 PyObject *arg3 = (PyObject *) 0 ;
23259 PyObject *arg4 = (PyObject *) 0 ;
23260 PyObject *result = 0 ;
23261 void *argp1 = 0 ;
23262 int res1 = 0 ;
23263 PyObject * obj0 = 0 ;
23264 PyObject * obj1 = 0 ;
23265 PyObject * obj2 = 0 ;
23266 PyObject * obj3 = 0 ;
23267 char * kwnames[] = {
23268 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23269 };
23270
23271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23273 if (!SWIG_IsOK(res1)) {
23274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23275 }
23276 arg1 = reinterpret_cast< wxDC * >(argp1);
23277 arg2 = obj1;
23278 arg3 = obj2;
23279 arg4 = obj3;
23280 {
23281 PyThreadState* __tstate = wxPyBeginAllowThreads();
23282 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23283 wxPyEndAllowThreads(__tstate);
23284 if (PyErr_Occurred()) SWIG_fail;
23285 }
23286 resultobj = result;
23287 return resultobj;
23288 fail:
23289 return NULL;
23290 }
23291
23292
23293 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23294 PyObject *resultobj = 0;
23295 wxDC *arg1 = (wxDC *) 0 ;
23296 PyObject *arg2 = (PyObject *) 0 ;
23297 PyObject *arg3 = (PyObject *) 0 ;
23298 PyObject *arg4 = (PyObject *) 0 ;
23299 PyObject *result = 0 ;
23300 void *argp1 = 0 ;
23301 int res1 = 0 ;
23302 PyObject * obj0 = 0 ;
23303 PyObject * obj1 = 0 ;
23304 PyObject * obj2 = 0 ;
23305 PyObject * obj3 = 0 ;
23306 char * kwnames[] = {
23307 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23308 };
23309
23310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23312 if (!SWIG_IsOK(res1)) {
23313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23314 }
23315 arg1 = reinterpret_cast< wxDC * >(argp1);
23316 arg2 = obj1;
23317 arg3 = obj2;
23318 arg4 = obj3;
23319 {
23320 PyThreadState* __tstate = wxPyBeginAllowThreads();
23321 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23322 wxPyEndAllowThreads(__tstate);
23323 if (PyErr_Occurred()) SWIG_fail;
23324 }
23325 resultobj = result;
23326 return resultobj;
23327 fail:
23328 return NULL;
23329 }
23330
23331
23332 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23333 PyObject *resultobj = 0;
23334 wxDC *arg1 = (wxDC *) 0 ;
23335 PyObject *arg2 = (PyObject *) 0 ;
23336 PyObject *arg3 = (PyObject *) 0 ;
23337 PyObject *arg4 = (PyObject *) 0 ;
23338 PyObject *result = 0 ;
23339 void *argp1 = 0 ;
23340 int res1 = 0 ;
23341 PyObject * obj0 = 0 ;
23342 PyObject * obj1 = 0 ;
23343 PyObject * obj2 = 0 ;
23344 PyObject * obj3 = 0 ;
23345 char * kwnames[] = {
23346 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23347 };
23348
23349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23351 if (!SWIG_IsOK(res1)) {
23352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23353 }
23354 arg1 = reinterpret_cast< wxDC * >(argp1);
23355 arg2 = obj1;
23356 arg3 = obj2;
23357 arg4 = obj3;
23358 {
23359 PyThreadState* __tstate = wxPyBeginAllowThreads();
23360 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23361 wxPyEndAllowThreads(__tstate);
23362 if (PyErr_Occurred()) SWIG_fail;
23363 }
23364 resultobj = result;
23365 return resultobj;
23366 fail:
23367 return NULL;
23368 }
23369
23370
23371 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23372 PyObject *resultobj = 0;
23373 wxDC *arg1 = (wxDC *) 0 ;
23374 PyObject *arg2 = (PyObject *) 0 ;
23375 PyObject *arg3 = (PyObject *) 0 ;
23376 PyObject *arg4 = (PyObject *) 0 ;
23377 PyObject *result = 0 ;
23378 void *argp1 = 0 ;
23379 int res1 = 0 ;
23380 PyObject * obj0 = 0 ;
23381 PyObject * obj1 = 0 ;
23382 PyObject * obj2 = 0 ;
23383 PyObject * obj3 = 0 ;
23384 char * kwnames[] = {
23385 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23386 };
23387
23388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23390 if (!SWIG_IsOK(res1)) {
23391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23392 }
23393 arg1 = reinterpret_cast< wxDC * >(argp1);
23394 arg2 = obj1;
23395 arg3 = obj2;
23396 arg4 = obj3;
23397 {
23398 PyThreadState* __tstate = wxPyBeginAllowThreads();
23399 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23400 wxPyEndAllowThreads(__tstate);
23401 if (PyErr_Occurred()) SWIG_fail;
23402 }
23403 resultobj = result;
23404 return resultobj;
23405 fail:
23406 return NULL;
23407 }
23408
23409
23410 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23411 PyObject *resultobj = 0;
23412 wxDC *arg1 = (wxDC *) 0 ;
23413 PyObject *arg2 = (PyObject *) 0 ;
23414 PyObject *arg3 = (PyObject *) 0 ;
23415 PyObject *arg4 = (PyObject *) 0 ;
23416 PyObject *arg5 = (PyObject *) 0 ;
23417 PyObject *result = 0 ;
23418 void *argp1 = 0 ;
23419 int res1 = 0 ;
23420 PyObject * obj0 = 0 ;
23421 PyObject * obj1 = 0 ;
23422 PyObject * obj2 = 0 ;
23423 PyObject * obj3 = 0 ;
23424 PyObject * obj4 = 0 ;
23425 char * kwnames[] = {
23426 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23427 };
23428
23429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23431 if (!SWIG_IsOK(res1)) {
23432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23433 }
23434 arg1 = reinterpret_cast< wxDC * >(argp1);
23435 arg2 = obj1;
23436 arg3 = obj2;
23437 arg4 = obj3;
23438 arg5 = obj4;
23439 {
23440 PyThreadState* __tstate = wxPyBeginAllowThreads();
23441 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23442 wxPyEndAllowThreads(__tstate);
23443 if (PyErr_Occurred()) SWIG_fail;
23444 }
23445 resultobj = result;
23446 return resultobj;
23447 fail:
23448 return NULL;
23449 }
23450
23451
23452 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23453 PyObject *obj;
23454 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23455 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23456 return SWIG_Py_Void();
23457 }
23458
23459 SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23460 PyObject *resultobj = 0;
23461 wxDC *arg1 = 0 ;
23462 wxColour *arg2 = 0 ;
23463 wxDCTextColourChanger *result = 0 ;
23464 void *argp1 = 0 ;
23465 int res1 = 0 ;
23466 wxColour temp2 ;
23467 PyObject * obj0 = 0 ;
23468 PyObject * obj1 = 0 ;
23469 char * kwnames[] = {
23470 (char *) "dc",(char *) "col", NULL
23471 };
23472
23473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23474 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23475 if (!SWIG_IsOK(res1)) {
23476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23477 }
23478 if (!argp1) {
23479 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23480 }
23481 arg1 = reinterpret_cast< wxDC * >(argp1);
23482 {
23483 arg2 = &temp2;
23484 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23485 }
23486 {
23487 PyThreadState* __tstate = wxPyBeginAllowThreads();
23488 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
23489 wxPyEndAllowThreads(__tstate);
23490 if (PyErr_Occurred()) SWIG_fail;
23491 }
23492 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
23493 return resultobj;
23494 fail:
23495 return NULL;
23496 }
23497
23498
23499 SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23500 PyObject *resultobj = 0;
23501 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
23502 void *argp1 = 0 ;
23503 int res1 = 0 ;
23504 PyObject *swig_obj[1] ;
23505
23506 if (!args) SWIG_fail;
23507 swig_obj[0] = args;
23508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
23509 if (!SWIG_IsOK(res1)) {
23510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
23511 }
23512 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
23513 {
23514 PyThreadState* __tstate = wxPyBeginAllowThreads();
23515 delete arg1;
23516
23517 wxPyEndAllowThreads(__tstate);
23518 if (PyErr_Occurred()) SWIG_fail;
23519 }
23520 resultobj = SWIG_Py_Void();
23521 return resultobj;
23522 fail:
23523 return NULL;
23524 }
23525
23526
23527 SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23528 PyObject *obj;
23529 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23530 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
23531 return SWIG_Py_Void();
23532 }
23533
23534 SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23535 return SWIG_Python_InitShadowInstance(args);
23536 }
23537
23538 SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23539 PyObject *resultobj = 0;
23540 wxDC *arg1 = 0 ;
23541 wxPen *arg2 = 0 ;
23542 wxDCPenChanger *result = 0 ;
23543 void *argp1 = 0 ;
23544 int res1 = 0 ;
23545 void *argp2 = 0 ;
23546 int res2 = 0 ;
23547 PyObject * obj0 = 0 ;
23548 PyObject * obj1 = 0 ;
23549 char * kwnames[] = {
23550 (char *) "dc",(char *) "pen", NULL
23551 };
23552
23553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23554 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23555 if (!SWIG_IsOK(res1)) {
23556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23557 }
23558 if (!argp1) {
23559 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23560 }
23561 arg1 = reinterpret_cast< wxDC * >(argp1);
23562 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
23563 if (!SWIG_IsOK(res2)) {
23564 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23565 }
23566 if (!argp2) {
23567 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23568 }
23569 arg2 = reinterpret_cast< wxPen * >(argp2);
23570 {
23571 PyThreadState* __tstate = wxPyBeginAllowThreads();
23572 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
23573 wxPyEndAllowThreads(__tstate);
23574 if (PyErr_Occurred()) SWIG_fail;
23575 }
23576 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
23577 return resultobj;
23578 fail:
23579 return NULL;
23580 }
23581
23582
23583 SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23584 PyObject *resultobj = 0;
23585 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
23586 void *argp1 = 0 ;
23587 int res1 = 0 ;
23588 PyObject *swig_obj[1] ;
23589
23590 if (!args) SWIG_fail;
23591 swig_obj[0] = args;
23592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
23593 if (!SWIG_IsOK(res1)) {
23594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
23595 }
23596 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
23597 {
23598 PyThreadState* __tstate = wxPyBeginAllowThreads();
23599 delete arg1;
23600
23601 wxPyEndAllowThreads(__tstate);
23602 if (PyErr_Occurred()) SWIG_fail;
23603 }
23604 resultobj = SWIG_Py_Void();
23605 return resultobj;
23606 fail:
23607 return NULL;
23608 }
23609
23610
23611 SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23612 PyObject *obj;
23613 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23614 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
23615 return SWIG_Py_Void();
23616 }
23617
23618 SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23619 return SWIG_Python_InitShadowInstance(args);
23620 }
23621
23622 SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23623 PyObject *resultobj = 0;
23624 wxDC *arg1 = 0 ;
23625 wxBrush *arg2 = 0 ;
23626 wxDCBrushChanger *result = 0 ;
23627 void *argp1 = 0 ;
23628 int res1 = 0 ;
23629 void *argp2 = 0 ;
23630 int res2 = 0 ;
23631 PyObject * obj0 = 0 ;
23632 PyObject * obj1 = 0 ;
23633 char * kwnames[] = {
23634 (char *) "dc",(char *) "brush", NULL
23635 };
23636
23637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23638 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23639 if (!SWIG_IsOK(res1)) {
23640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23641 }
23642 if (!argp1) {
23643 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23644 }
23645 arg1 = reinterpret_cast< wxDC * >(argp1);
23646 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
23647 if (!SWIG_IsOK(res2)) {
23648 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23649 }
23650 if (!argp2) {
23651 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23652 }
23653 arg2 = reinterpret_cast< wxBrush * >(argp2);
23654 {
23655 PyThreadState* __tstate = wxPyBeginAllowThreads();
23656 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
23657 wxPyEndAllowThreads(__tstate);
23658 if (PyErr_Occurred()) SWIG_fail;
23659 }
23660 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
23661 return resultobj;
23662 fail:
23663 return NULL;
23664 }
23665
23666
23667 SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23668 PyObject *resultobj = 0;
23669 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
23670 void *argp1 = 0 ;
23671 int res1 = 0 ;
23672 PyObject *swig_obj[1] ;
23673
23674 if (!args) SWIG_fail;
23675 swig_obj[0] = args;
23676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
23677 if (!SWIG_IsOK(res1)) {
23678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
23679 }
23680 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
23681 {
23682 PyThreadState* __tstate = wxPyBeginAllowThreads();
23683 delete arg1;
23684
23685 wxPyEndAllowThreads(__tstate);
23686 if (PyErr_Occurred()) SWIG_fail;
23687 }
23688 resultobj = SWIG_Py_Void();
23689 return resultobj;
23690 fail:
23691 return NULL;
23692 }
23693
23694
23695 SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23696 PyObject *obj;
23697 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23698 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
23699 return SWIG_Py_Void();
23700 }
23701
23702 SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23703 return SWIG_Python_InitShadowInstance(args);
23704 }
23705
23706 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23707 PyObject *resultobj = 0;
23708 wxDC *arg1 = 0 ;
23709 wxRegion *arg2 = 0 ;
23710 wxDCClipper *result = 0 ;
23711 void *argp1 = 0 ;
23712 int res1 = 0 ;
23713 void *argp2 = 0 ;
23714 int res2 = 0 ;
23715
23716 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23718 if (!SWIG_IsOK(res1)) {
23719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23720 }
23721 if (!argp1) {
23722 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23723 }
23724 arg1 = reinterpret_cast< wxDC * >(argp1);
23725 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
23726 if (!SWIG_IsOK(res2)) {
23727 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23728 }
23729 if (!argp2) {
23730 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23731 }
23732 arg2 = reinterpret_cast< wxRegion * >(argp2);
23733 {
23734 PyThreadState* __tstate = wxPyBeginAllowThreads();
23735 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
23736 wxPyEndAllowThreads(__tstate);
23737 if (PyErr_Occurred()) SWIG_fail;
23738 }
23739 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23740 return resultobj;
23741 fail:
23742 return NULL;
23743 }
23744
23745
23746 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23747 PyObject *resultobj = 0;
23748 wxDC *arg1 = 0 ;
23749 wxRect *arg2 = 0 ;
23750 wxDCClipper *result = 0 ;
23751 void *argp1 = 0 ;
23752 int res1 = 0 ;
23753 wxRect temp2 ;
23754
23755 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23757 if (!SWIG_IsOK(res1)) {
23758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23759 }
23760 if (!argp1) {
23761 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23762 }
23763 arg1 = reinterpret_cast< wxDC * >(argp1);
23764 {
23765 arg2 = &temp2;
23766 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
23767 }
23768 {
23769 PyThreadState* __tstate = wxPyBeginAllowThreads();
23770 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
23771 wxPyEndAllowThreads(__tstate);
23772 if (PyErr_Occurred()) SWIG_fail;
23773 }
23774 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23775 return resultobj;
23776 fail:
23777 return NULL;
23778 }
23779
23780
23781 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23782 PyObject *resultobj = 0;
23783 wxDC *arg1 = 0 ;
23784 int arg2 ;
23785 int arg3 ;
23786 int arg4 ;
23787 int arg5 ;
23788 wxDCClipper *result = 0 ;
23789 void *argp1 = 0 ;
23790 int res1 = 0 ;
23791 int val2 ;
23792 int ecode2 = 0 ;
23793 int val3 ;
23794 int ecode3 = 0 ;
23795 int val4 ;
23796 int ecode4 = 0 ;
23797 int val5 ;
23798 int ecode5 = 0 ;
23799
23800 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
23801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23802 if (!SWIG_IsOK(res1)) {
23803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23804 }
23805 if (!argp1) {
23806 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23807 }
23808 arg1 = reinterpret_cast< wxDC * >(argp1);
23809 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
23810 if (!SWIG_IsOK(ecode2)) {
23811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
23812 }
23813 arg2 = static_cast< int >(val2);
23814 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23815 if (!SWIG_IsOK(ecode3)) {
23816 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
23817 }
23818 arg3 = static_cast< int >(val3);
23819 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
23820 if (!SWIG_IsOK(ecode4)) {
23821 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
23822 }
23823 arg4 = static_cast< int >(val4);
23824 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
23825 if (!SWIG_IsOK(ecode5)) {
23826 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
23827 }
23828 arg5 = static_cast< int >(val5);
23829 {
23830 PyThreadState* __tstate = wxPyBeginAllowThreads();
23831 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
23832 wxPyEndAllowThreads(__tstate);
23833 if (PyErr_Occurred()) SWIG_fail;
23834 }
23835 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23836 return resultobj;
23837 fail:
23838 return NULL;
23839 }
23840
23841
23842 SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
23843 int argc;
23844 PyObject *argv[6];
23845
23846 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
23847 --argc;
23848 if (argc == 2) {
23849 int _v = 0;
23850 {
23851 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
23852 _v = SWIG_CheckState(res);
23853 }
23854 if (!_v) goto check_1;
23855 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
23856 }
23857 check_1:
23858
23859 if (argc == 2) {
23860 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
23861 }
23862 if (argc == 5) {
23863 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
23864 }
23865
23866 fail:
23867 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
23868 return NULL;
23869 }
23870
23871
23872 SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23873 PyObject *resultobj = 0;
23874 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
23875 void *argp1 = 0 ;
23876 int res1 = 0 ;
23877 PyObject *swig_obj[1] ;
23878
23879 if (!args) SWIG_fail;
23880 swig_obj[0] = args;
23881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
23882 if (!SWIG_IsOK(res1)) {
23883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
23884 }
23885 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
23886 {
23887 PyThreadState* __tstate = wxPyBeginAllowThreads();
23888 delete arg1;
23889
23890 wxPyEndAllowThreads(__tstate);
23891 if (PyErr_Occurred()) SWIG_fail;
23892 }
23893 resultobj = SWIG_Py_Void();
23894 return resultobj;
23895 fail:
23896 return NULL;
23897 }
23898
23899
23900 SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23901 PyObject *obj;
23902 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23903 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
23904 return SWIG_Py_Void();
23905 }
23906
23907 SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23908 return SWIG_Python_InitShadowInstance(args);
23909 }
23910
23911 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23912 PyObject *resultobj = 0;
23913 wxScreenDC *result = 0 ;
23914
23915 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23916 {
23917 if (!wxPyCheckForApp()) SWIG_fail;
23918 PyThreadState* __tstate = wxPyBeginAllowThreads();
23919 result = (wxScreenDC *)new wxScreenDC();
23920 wxPyEndAllowThreads(__tstate);
23921 if (PyErr_Occurred()) SWIG_fail;
23922 }
23923 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23924 return resultobj;
23925 fail:
23926 return NULL;
23927 }
23928
23929
23930 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23931 PyObject *resultobj = 0;
23932 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23933 wxWindow *arg2 = (wxWindow *) 0 ;
23934 bool result;
23935 void *argp1 = 0 ;
23936 int res1 = 0 ;
23937 void *argp2 = 0 ;
23938 int res2 = 0 ;
23939 PyObject * obj0 = 0 ;
23940 PyObject * obj1 = 0 ;
23941 char * kwnames[] = {
23942 (char *) "self",(char *) "window", NULL
23943 };
23944
23945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23947 if (!SWIG_IsOK(res1)) {
23948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23949 }
23950 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23951 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23952 if (!SWIG_IsOK(res2)) {
23953 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23954 }
23955 arg2 = reinterpret_cast< wxWindow * >(argp2);
23956 {
23957 PyThreadState* __tstate = wxPyBeginAllowThreads();
23958 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23959 wxPyEndAllowThreads(__tstate);
23960 if (PyErr_Occurred()) SWIG_fail;
23961 }
23962 {
23963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23964 }
23965 return resultobj;
23966 fail:
23967 return NULL;
23968 }
23969
23970
23971 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23972 PyObject *resultobj = 0;
23973 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23974 wxRect *arg2 = (wxRect *) NULL ;
23975 bool result;
23976 void *argp1 = 0 ;
23977 int res1 = 0 ;
23978 void *argp2 = 0 ;
23979 int res2 = 0 ;
23980 PyObject * obj0 = 0 ;
23981 PyObject * obj1 = 0 ;
23982 char * kwnames[] = {
23983 (char *) "self",(char *) "rect", NULL
23984 };
23985
23986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
23987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23988 if (!SWIG_IsOK(res1)) {
23989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23990 }
23991 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23992 if (obj1) {
23993 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
23994 if (!SWIG_IsOK(res2)) {
23995 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
23996 }
23997 arg2 = reinterpret_cast< wxRect * >(argp2);
23998 }
23999 {
24000 PyThreadState* __tstate = wxPyBeginAllowThreads();
24001 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24002 wxPyEndAllowThreads(__tstate);
24003 if (PyErr_Occurred()) SWIG_fail;
24004 }
24005 {
24006 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24007 }
24008 return resultobj;
24009 fail:
24010 return NULL;
24011 }
24012
24013
24014 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24015 PyObject *resultobj = 0;
24016 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24017 bool result;
24018 void *argp1 = 0 ;
24019 int res1 = 0 ;
24020 PyObject *swig_obj[1] ;
24021
24022 if (!args) SWIG_fail;
24023 swig_obj[0] = args;
24024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24025 if (!SWIG_IsOK(res1)) {
24026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24027 }
24028 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24029 {
24030 PyThreadState* __tstate = wxPyBeginAllowThreads();
24031 result = (bool)(arg1)->EndDrawingOnTop();
24032 wxPyEndAllowThreads(__tstate);
24033 if (PyErr_Occurred()) SWIG_fail;
24034 }
24035 {
24036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24037 }
24038 return resultobj;
24039 fail:
24040 return NULL;
24041 }
24042
24043
24044 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24045 PyObject *obj;
24046 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24047 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24048 return SWIG_Py_Void();
24049 }
24050
24051 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24052 return SWIG_Python_InitShadowInstance(args);
24053 }
24054
24055 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24056 PyObject *resultobj = 0;
24057 wxWindow *arg1 = (wxWindow *) 0 ;
24058 wxWindowDC *result = 0 ;
24059 void *argp1 = 0 ;
24060 int res1 = 0 ;
24061 PyObject * obj0 = 0 ;
24062 char * kwnames[] = {
24063 (char *) "win", NULL
24064 };
24065
24066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24068 if (!SWIG_IsOK(res1)) {
24069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24070 }
24071 arg1 = reinterpret_cast< wxWindow * >(argp1);
24072 {
24073 if (!wxPyCheckForApp()) SWIG_fail;
24074 PyThreadState* __tstate = wxPyBeginAllowThreads();
24075 result = (wxWindowDC *)new wxWindowDC(arg1);
24076 wxPyEndAllowThreads(__tstate);
24077 if (PyErr_Occurred()) SWIG_fail;
24078 }
24079 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24080 return resultobj;
24081 fail:
24082 return NULL;
24083 }
24084
24085
24086 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24087 PyObject *obj;
24088 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24089 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24090 return SWIG_Py_Void();
24091 }
24092
24093 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24094 return SWIG_Python_InitShadowInstance(args);
24095 }
24096
24097 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24098 PyObject *resultobj = 0;
24099 wxWindow *arg1 = (wxWindow *) 0 ;
24100 wxClientDC *result = 0 ;
24101 void *argp1 = 0 ;
24102 int res1 = 0 ;
24103 PyObject * obj0 = 0 ;
24104 char * kwnames[] = {
24105 (char *) "win", NULL
24106 };
24107
24108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24110 if (!SWIG_IsOK(res1)) {
24111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24112 }
24113 arg1 = reinterpret_cast< wxWindow * >(argp1);
24114 {
24115 if (!wxPyCheckForApp()) SWIG_fail;
24116 PyThreadState* __tstate = wxPyBeginAllowThreads();
24117 result = (wxClientDC *)new wxClientDC(arg1);
24118 wxPyEndAllowThreads(__tstate);
24119 if (PyErr_Occurred()) SWIG_fail;
24120 }
24121 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24122 return resultobj;
24123 fail:
24124 return NULL;
24125 }
24126
24127
24128 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24129 PyObject *obj;
24130 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24131 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24132 return SWIG_Py_Void();
24133 }
24134
24135 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24136 return SWIG_Python_InitShadowInstance(args);
24137 }
24138
24139 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24140 PyObject *resultobj = 0;
24141 wxWindow *arg1 = (wxWindow *) 0 ;
24142 wxPaintDC *result = 0 ;
24143 void *argp1 = 0 ;
24144 int res1 = 0 ;
24145 PyObject * obj0 = 0 ;
24146 char * kwnames[] = {
24147 (char *) "win", NULL
24148 };
24149
24150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24152 if (!SWIG_IsOK(res1)) {
24153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24154 }
24155 arg1 = reinterpret_cast< wxWindow * >(argp1);
24156 {
24157 if (!wxPyCheckForApp()) SWIG_fail;
24158 PyThreadState* __tstate = wxPyBeginAllowThreads();
24159 result = (wxPaintDC *)new wxPaintDC(arg1);
24160 wxPyEndAllowThreads(__tstate);
24161 if (PyErr_Occurred()) SWIG_fail;
24162 }
24163 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24164 return resultobj;
24165 fail:
24166 return NULL;
24167 }
24168
24169
24170 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24171 PyObject *obj;
24172 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24173 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24174 return SWIG_Py_Void();
24175 }
24176
24177 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24178 return SWIG_Python_InitShadowInstance(args);
24179 }
24180
24181 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24182 PyObject *resultobj = 0;
24183 wxBitmap &arg1_defvalue = wxNullBitmap ;
24184 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24185 wxMemoryDC *result = 0 ;
24186 void *argp1 = 0 ;
24187 int res1 = 0 ;
24188 PyObject * obj0 = 0 ;
24189 char * kwnames[] = {
24190 (char *) "bitmap", NULL
24191 };
24192
24193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
24194 if (obj0) {
24195 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
24196 if (!SWIG_IsOK(res1)) {
24197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24198 }
24199 if (!argp1) {
24200 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24201 }
24202 arg1 = reinterpret_cast< wxBitmap * >(argp1);
24203 }
24204 {
24205 if (!wxPyCheckForApp()) SWIG_fail;
24206 PyThreadState* __tstate = wxPyBeginAllowThreads();
24207 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
24208 wxPyEndAllowThreads(__tstate);
24209 if (PyErr_Occurred()) SWIG_fail;
24210 }
24211 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
24212 return resultobj;
24213 fail:
24214 return NULL;
24215 }
24216
24217
24218 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24219 PyObject *resultobj = 0;
24220 wxDC *arg1 = (wxDC *) 0 ;
24221 wxMemoryDC *result = 0 ;
24222 void *argp1 = 0 ;
24223 int res1 = 0 ;
24224 PyObject * obj0 = 0 ;
24225 char * kwnames[] = {
24226 (char *) "oldDC", NULL
24227 };
24228
24229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
24230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24231 if (!SWIG_IsOK(res1)) {
24232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
24233 }
24234 arg1 = reinterpret_cast< wxDC * >(argp1);
24235 {
24236 if (!wxPyCheckForApp()) SWIG_fail;
24237 PyThreadState* __tstate = wxPyBeginAllowThreads();
24238 result = (wxMemoryDC *)new wxMemoryDC(arg1);
24239 wxPyEndAllowThreads(__tstate);
24240 if (PyErr_Occurred()) SWIG_fail;
24241 }
24242 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
24243 return resultobj;
24244 fail:
24245 return NULL;
24246 }
24247
24248
24249 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24250 PyObject *resultobj = 0;
24251 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24252 wxBitmap *arg2 = 0 ;
24253 void *argp1 = 0 ;
24254 int res1 = 0 ;
24255 void *argp2 = 0 ;
24256 int res2 = 0 ;
24257 PyObject * obj0 = 0 ;
24258 PyObject * obj1 = 0 ;
24259 char * kwnames[] = {
24260 (char *) "self",(char *) "bitmap", NULL
24261 };
24262
24263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
24264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24265 if (!SWIG_IsOK(res1)) {
24266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24267 }
24268 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24269 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24270 if (!SWIG_IsOK(res2)) {
24271 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24272 }
24273 if (!argp2) {
24274 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24275 }
24276 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24277 {
24278 PyThreadState* __tstate = wxPyBeginAllowThreads();
24279 (arg1)->SelectObject(*arg2);
24280 wxPyEndAllowThreads(__tstate);
24281 if (PyErr_Occurred()) SWIG_fail;
24282 }
24283 resultobj = SWIG_Py_Void();
24284 return resultobj;
24285 fail:
24286 return NULL;
24287 }
24288
24289
24290 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24291 PyObject *resultobj = 0;
24292 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24293 wxBitmap *arg2 = 0 ;
24294 void *argp1 = 0 ;
24295 int res1 = 0 ;
24296 void *argp2 = 0 ;
24297 int res2 = 0 ;
24298 PyObject * obj0 = 0 ;
24299 PyObject * obj1 = 0 ;
24300 char * kwnames[] = {
24301 (char *) "self",(char *) "bmp", NULL
24302 };
24303
24304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
24305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24306 if (!SWIG_IsOK(res1)) {
24307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24308 }
24309 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24310 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24311 if (!SWIG_IsOK(res2)) {
24312 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24313 }
24314 if (!argp2) {
24315 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24316 }
24317 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24318 {
24319 PyThreadState* __tstate = wxPyBeginAllowThreads();
24320 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
24321 wxPyEndAllowThreads(__tstate);
24322 if (PyErr_Occurred()) SWIG_fail;
24323 }
24324 resultobj = SWIG_Py_Void();
24325 return resultobj;
24326 fail:
24327 return NULL;
24328 }
24329
24330
24331 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24332 PyObject *obj;
24333 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24334 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
24335 return SWIG_Py_Void();
24336 }
24337
24338 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24339 return SWIG_Python_InitShadowInstance(args);
24340 }
24341
24342 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24343 PyObject *resultobj = 0;
24344 wxDC *arg1 = (wxDC *) 0 ;
24345 wxBitmap &arg2_defvalue = wxNullBitmap ;
24346 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24347 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24348 wxBufferedDC *result = 0 ;
24349 void *argp1 = 0 ;
24350 int res1 = 0 ;
24351 void *argp2 = 0 ;
24352 int res2 = 0 ;
24353 int val3 ;
24354 int ecode3 = 0 ;
24355
24356 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24358 if (!SWIG_IsOK(res1)) {
24359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24360 }
24361 arg1 = reinterpret_cast< wxDC * >(argp1);
24362 if (swig_obj[1]) {
24363 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 );
24364 if (!SWIG_IsOK(res2)) {
24365 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24366 }
24367 if (!argp2) {
24368 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24369 }
24370 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24371 }
24372 if (swig_obj[2]) {
24373 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24374 if (!SWIG_IsOK(ecode3)) {
24375 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24376 }
24377 arg3 = static_cast< int >(val3);
24378 }
24379 {
24380 if (!wxPyCheckForApp()) SWIG_fail;
24381 PyThreadState* __tstate = wxPyBeginAllowThreads();
24382 result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3);
24383 wxPyEndAllowThreads(__tstate);
24384 if (PyErr_Occurred()) SWIG_fail;
24385 }
24386 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24387 return resultobj;
24388 fail:
24389 return NULL;
24390 }
24391
24392
24393 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24394 PyObject *resultobj = 0;
24395 wxDC *arg1 = (wxDC *) 0 ;
24396 wxSize *arg2 = 0 ;
24397 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24398 wxBufferedDC *result = 0 ;
24399 void *argp1 = 0 ;
24400 int res1 = 0 ;
24401 wxSize temp2 ;
24402 int val3 ;
24403 int ecode3 = 0 ;
24404
24405 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24407 if (!SWIG_IsOK(res1)) {
24408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24409 }
24410 arg1 = reinterpret_cast< wxDC * >(argp1);
24411 {
24412 arg2 = &temp2;
24413 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24414 }
24415 if (swig_obj[2]) {
24416 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24417 if (!SWIG_IsOK(ecode3)) {
24418 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24419 }
24420 arg3 = static_cast< int >(val3);
24421 }
24422 {
24423 if (!wxPyCheckForApp()) SWIG_fail;
24424 PyThreadState* __tstate = wxPyBeginAllowThreads();
24425 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24426 wxPyEndAllowThreads(__tstate);
24427 if (PyErr_Occurred()) SWIG_fail;
24428 }
24429 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24430 return resultobj;
24431 fail:
24432 return NULL;
24433 }
24434
24435
24436 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24437 int argc;
24438 PyObject *argv[4];
24439
24440 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
24441 --argc;
24442 if ((argc >= 1) && (argc <= 3)) {
24443 int _v = 0;
24444 if (argc > 1) {
24445 {
24446 void *vptr = 0;
24447 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0);
24448 _v = SWIG_CheckState(res);
24449 }
24450 if (!_v) goto check_1;
24451 }
24452 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24453 }
24454 check_1:
24455
24456 if ((argc >= 2) && (argc <= 3)) {
24457 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24458 }
24459
24460 fail:
24461 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24462 return NULL;
24463 }
24464
24465
24466 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24467 PyObject *resultobj = 0;
24468 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24469 void *argp1 = 0 ;
24470 int res1 = 0 ;
24471 PyObject *swig_obj[1] ;
24472
24473 if (!args) SWIG_fail;
24474 swig_obj[0] = args;
24475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24476 if (!SWIG_IsOK(res1)) {
24477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24478 }
24479 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24480 {
24481 PyThreadState* __tstate = wxPyBeginAllowThreads();
24482 delete arg1;
24483
24484 wxPyEndAllowThreads(__tstate);
24485 if (PyErr_Occurred()) SWIG_fail;
24486 }
24487 resultobj = SWIG_Py_Void();
24488 return resultobj;
24489 fail:
24490 return NULL;
24491 }
24492
24493
24494 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24495 PyObject *resultobj = 0;
24496 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24497 void *argp1 = 0 ;
24498 int res1 = 0 ;
24499 PyObject *swig_obj[1] ;
24500
24501 if (!args) SWIG_fail;
24502 swig_obj[0] = args;
24503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24504 if (!SWIG_IsOK(res1)) {
24505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24506 }
24507 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24508 {
24509 PyThreadState* __tstate = wxPyBeginAllowThreads();
24510 (arg1)->UnMask();
24511 wxPyEndAllowThreads(__tstate);
24512 if (PyErr_Occurred()) SWIG_fail;
24513 }
24514 resultobj = SWIG_Py_Void();
24515 return resultobj;
24516 fail:
24517 return NULL;
24518 }
24519
24520
24521 SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24522 PyObject *resultobj = 0;
24523 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24524 int arg2 ;
24525 void *argp1 = 0 ;
24526 int res1 = 0 ;
24527 int val2 ;
24528 int ecode2 = 0 ;
24529 PyObject * obj0 = 0 ;
24530 PyObject * obj1 = 0 ;
24531 char * kwnames[] = {
24532 (char *) "self",(char *) "style", NULL
24533 };
24534
24535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
24536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24537 if (!SWIG_IsOK(res1)) {
24538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24539 }
24540 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24541 ecode2 = SWIG_AsVal_int(obj1, &val2);
24542 if (!SWIG_IsOK(ecode2)) {
24543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'");
24544 }
24545 arg2 = static_cast< int >(val2);
24546 {
24547 PyThreadState* __tstate = wxPyBeginAllowThreads();
24548 (arg1)->SetStyle(arg2);
24549 wxPyEndAllowThreads(__tstate);
24550 if (PyErr_Occurred()) SWIG_fail;
24551 }
24552 resultobj = SWIG_Py_Void();
24553 return resultobj;
24554 fail:
24555 return NULL;
24556 }
24557
24558
24559 SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24560 PyObject *resultobj = 0;
24561 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24562 int result;
24563 void *argp1 = 0 ;
24564 int res1 = 0 ;
24565 PyObject *swig_obj[1] ;
24566
24567 if (!args) SWIG_fail;
24568 swig_obj[0] = args;
24569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24570 if (!SWIG_IsOK(res1)) {
24571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'");
24572 }
24573 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24574 {
24575 PyThreadState* __tstate = wxPyBeginAllowThreads();
24576 result = (int)((wxBufferedDC const *)arg1)->GetStyle();
24577 wxPyEndAllowThreads(__tstate);
24578 if (PyErr_Occurred()) SWIG_fail;
24579 }
24580 resultobj = SWIG_From_int(static_cast< int >(result));
24581 return resultobj;
24582 fail:
24583 return NULL;
24584 }
24585
24586
24587 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24588 PyObject *obj;
24589 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24590 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
24591 return SWIG_Py_Void();
24592 }
24593
24594 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24595 return SWIG_Python_InitShadowInstance(args);
24596 }
24597
24598 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24599 PyObject *resultobj = 0;
24600 wxWindow *arg1 = (wxWindow *) 0 ;
24601 wxBitmap &arg2_defvalue = wxNullBitmap ;
24602 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24603 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24604 wxBufferedPaintDC *result = 0 ;
24605 void *argp1 = 0 ;
24606 int res1 = 0 ;
24607 void *argp2 = 0 ;
24608 int res2 = 0 ;
24609 int val3 ;
24610 int ecode3 = 0 ;
24611 PyObject * obj0 = 0 ;
24612 PyObject * obj1 = 0 ;
24613 PyObject * obj2 = 0 ;
24614 char * kwnames[] = {
24615 (char *) "window",(char *) "buffer",(char *) "style", NULL
24616 };
24617
24618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24620 if (!SWIG_IsOK(res1)) {
24621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24622 }
24623 arg1 = reinterpret_cast< wxWindow * >(argp1);
24624 if (obj1) {
24625 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24626 if (!SWIG_IsOK(res2)) {
24627 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24628 }
24629 if (!argp2) {
24630 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24631 }
24632 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24633 }
24634 if (obj2) {
24635 ecode3 = SWIG_AsVal_int(obj2, &val3);
24636 if (!SWIG_IsOK(ecode3)) {
24637 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
24638 }
24639 arg3 = static_cast< int >(val3);
24640 }
24641 {
24642 if (!wxPyCheckForApp()) SWIG_fail;
24643 PyThreadState* __tstate = wxPyBeginAllowThreads();
24644 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3);
24645 wxPyEndAllowThreads(__tstate);
24646 if (PyErr_Occurred()) SWIG_fail;
24647 }
24648 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24649 return resultobj;
24650 fail:
24651 return NULL;
24652 }
24653
24654
24655 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24656 PyObject *obj;
24657 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24658 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
24659 return SWIG_Py_Void();
24660 }
24661
24662 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24663 return SWIG_Python_InitShadowInstance(args);
24664 }
24665
24666 SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24667 PyObject *resultobj = 0;
24668 wxWindow *arg1 = (wxWindow *) 0 ;
24669 wxAutoBufferedPaintDC *result = 0 ;
24670 void *argp1 = 0 ;
24671 int res1 = 0 ;
24672 PyObject * obj0 = 0 ;
24673 char * kwnames[] = {
24674 (char *) "win", NULL
24675 };
24676
24677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
24678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24679 if (!SWIG_IsOK(res1)) {
24680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24681 }
24682 arg1 = reinterpret_cast< wxWindow * >(argp1);
24683 {
24684 PyThreadState* __tstate = wxPyBeginAllowThreads();
24685 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
24686 wxPyEndAllowThreads(__tstate);
24687 if (PyErr_Occurred()) SWIG_fail;
24688 }
24689 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24690 return resultobj;
24691 fail:
24692 return NULL;
24693 }
24694
24695
24696 SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24697 PyObject *obj;
24698 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24699 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
24700 return SWIG_Py_Void();
24701 }
24702
24703 SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24704 return SWIG_Python_InitShadowInstance(args);
24705 }
24706
24707 SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24708 PyObject *resultobj = 0;
24709 wxWindow *arg1 = (wxWindow *) 0 ;
24710 wxDC *result = 0 ;
24711 void *argp1 = 0 ;
24712 int res1 = 0 ;
24713 PyObject * obj0 = 0 ;
24714 char * kwnames[] = {
24715 (char *) "window", NULL
24716 };
24717
24718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
24719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24720 if (!SWIG_IsOK(res1)) {
24721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
24722 }
24723 arg1 = reinterpret_cast< wxWindow * >(argp1);
24724 {
24725 PyThreadState* __tstate = wxPyBeginAllowThreads();
24726 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
24727 wxPyEndAllowThreads(__tstate);
24728 if (PyErr_Occurred()) SWIG_fail;
24729 }
24730 {
24731 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
24732 }
24733 return resultobj;
24734 fail:
24735 return NULL;
24736 }
24737
24738
24739 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24740 PyObject *resultobj = 0;
24741 wxDC *arg1 = 0 ;
24742 bool arg2 ;
24743 wxMirrorDC *result = 0 ;
24744 void *argp1 = 0 ;
24745 int res1 = 0 ;
24746 bool val2 ;
24747 int ecode2 = 0 ;
24748 PyObject * obj0 = 0 ;
24749 PyObject * obj1 = 0 ;
24750 char * kwnames[] = {
24751 (char *) "dc",(char *) "mirror", NULL
24752 };
24753
24754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24755 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24756 if (!SWIG_IsOK(res1)) {
24757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24758 }
24759 if (!argp1) {
24760 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24761 }
24762 arg1 = reinterpret_cast< wxDC * >(argp1);
24763 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24764 if (!SWIG_IsOK(ecode2)) {
24765 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24766 }
24767 arg2 = static_cast< bool >(val2);
24768 {
24769 if (!wxPyCheckForApp()) SWIG_fail;
24770 PyThreadState* __tstate = wxPyBeginAllowThreads();
24771 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24772 wxPyEndAllowThreads(__tstate);
24773 if (PyErr_Occurred()) SWIG_fail;
24774 }
24775 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24776 return resultobj;
24777 fail:
24778 return NULL;
24779 }
24780
24781
24782 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24783 PyObject *obj;
24784 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24785 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
24786 return SWIG_Py_Void();
24787 }
24788
24789 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24790 return SWIG_Python_InitShadowInstance(args);
24791 }
24792
24793 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24794 PyObject *resultobj = 0;
24795 wxPrintData *arg1 = 0 ;
24796 wxPostScriptDC *result = 0 ;
24797 void *argp1 = 0 ;
24798 int res1 = 0 ;
24799 PyObject * obj0 = 0 ;
24800 char * kwnames[] = {
24801 (char *) "printData", NULL
24802 };
24803
24804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24805 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24806 if (!SWIG_IsOK(res1)) {
24807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24808 }
24809 if (!argp1) {
24810 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24811 }
24812 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24813 {
24814 if (!wxPyCheckForApp()) SWIG_fail;
24815 PyThreadState* __tstate = wxPyBeginAllowThreads();
24816 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24817 wxPyEndAllowThreads(__tstate);
24818 if (PyErr_Occurred()) SWIG_fail;
24819 }
24820 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24821 return resultobj;
24822 fail:
24823 return NULL;
24824 }
24825
24826
24827 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24828 PyObject *resultobj = 0;
24829 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24830 wxPrintData *result = 0 ;
24831 void *argp1 = 0 ;
24832 int res1 = 0 ;
24833 PyObject *swig_obj[1] ;
24834
24835 if (!args) SWIG_fail;
24836 swig_obj[0] = args;
24837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24838 if (!SWIG_IsOK(res1)) {
24839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24840 }
24841 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24842 {
24843 PyThreadState* __tstate = wxPyBeginAllowThreads();
24844 {
24845 wxPrintData &_result_ref = (arg1)->GetPrintData();
24846 result = (wxPrintData *) &_result_ref;
24847 }
24848 wxPyEndAllowThreads(__tstate);
24849 if (PyErr_Occurred()) SWIG_fail;
24850 }
24851 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24852 return resultobj;
24853 fail:
24854 return NULL;
24855 }
24856
24857
24858 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24859 PyObject *resultobj = 0;
24860 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24861 wxPrintData *arg2 = 0 ;
24862 void *argp1 = 0 ;
24863 int res1 = 0 ;
24864 void *argp2 = 0 ;
24865 int res2 = 0 ;
24866 PyObject * obj0 = 0 ;
24867 PyObject * obj1 = 0 ;
24868 char * kwnames[] = {
24869 (char *) "self",(char *) "data", NULL
24870 };
24871
24872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24874 if (!SWIG_IsOK(res1)) {
24875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24876 }
24877 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24878 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24879 if (!SWIG_IsOK(res2)) {
24880 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24881 }
24882 if (!argp2) {
24883 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24884 }
24885 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24886 {
24887 PyThreadState* __tstate = wxPyBeginAllowThreads();
24888 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24889 wxPyEndAllowThreads(__tstate);
24890 if (PyErr_Occurred()) SWIG_fail;
24891 }
24892 resultobj = SWIG_Py_Void();
24893 return resultobj;
24894 fail:
24895 return NULL;
24896 }
24897
24898
24899 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24900 PyObject *resultobj = 0;
24901 int arg1 ;
24902 int val1 ;
24903 int ecode1 = 0 ;
24904 PyObject * obj0 = 0 ;
24905 char * kwnames[] = {
24906 (char *) "ppi", NULL
24907 };
24908
24909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24910 ecode1 = SWIG_AsVal_int(obj0, &val1);
24911 if (!SWIG_IsOK(ecode1)) {
24912 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24913 }
24914 arg1 = static_cast< int >(val1);
24915 {
24916 PyThreadState* __tstate = wxPyBeginAllowThreads();
24917 wxPostScriptDC::SetResolution(arg1);
24918 wxPyEndAllowThreads(__tstate);
24919 if (PyErr_Occurred()) SWIG_fail;
24920 }
24921 resultobj = SWIG_Py_Void();
24922 return resultobj;
24923 fail:
24924 return NULL;
24925 }
24926
24927
24928 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24929 PyObject *resultobj = 0;
24930 int result;
24931
24932 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24933 {
24934 PyThreadState* __tstate = wxPyBeginAllowThreads();
24935 result = (int)wxPostScriptDC::GetResolution();
24936 wxPyEndAllowThreads(__tstate);
24937 if (PyErr_Occurred()) SWIG_fail;
24938 }
24939 resultobj = SWIG_From_int(static_cast< int >(result));
24940 return resultobj;
24941 fail:
24942 return NULL;
24943 }
24944
24945
24946 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24947 PyObject *obj;
24948 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24949 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24950 return SWIG_Py_Void();
24951 }
24952
24953 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24954 return SWIG_Python_InitShadowInstance(args);
24955 }
24956
24957 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24958 PyObject *resultobj = 0;
24959 wxString const &arg1_defvalue = wxPyEmptyString ;
24960 wxString *arg1 = (wxString *) &arg1_defvalue ;
24961 wxMetaFile *result = 0 ;
24962 bool temp1 = false ;
24963 PyObject * obj0 = 0 ;
24964 char * kwnames[] = {
24965 (char *) "filename", NULL
24966 };
24967
24968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24969 if (obj0) {
24970 {
24971 arg1 = wxString_in_helper(obj0);
24972 if (arg1 == NULL) SWIG_fail;
24973 temp1 = true;
24974 }
24975 }
24976 {
24977 if (!wxPyCheckForApp()) SWIG_fail;
24978 PyThreadState* __tstate = wxPyBeginAllowThreads();
24979 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24980 wxPyEndAllowThreads(__tstate);
24981 if (PyErr_Occurred()) SWIG_fail;
24982 }
24983 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24984 {
24985 if (temp1)
24986 delete arg1;
24987 }
24988 return resultobj;
24989 fail:
24990 {
24991 if (temp1)
24992 delete arg1;
24993 }
24994 return NULL;
24995 }
24996
24997
24998 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24999 PyObject *resultobj = 0;
25000 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25001 void *argp1 = 0 ;
25002 int res1 = 0 ;
25003 PyObject *swig_obj[1] ;
25004
25005 if (!args) SWIG_fail;
25006 swig_obj[0] = args;
25007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
25008 if (!SWIG_IsOK(res1)) {
25009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25010 }
25011 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25012 {
25013 PyThreadState* __tstate = wxPyBeginAllowThreads();
25014 delete arg1;
25015
25016 wxPyEndAllowThreads(__tstate);
25017 if (PyErr_Occurred()) SWIG_fail;
25018 }
25019 resultobj = SWIG_Py_Void();
25020 return resultobj;
25021 fail:
25022 return NULL;
25023 }
25024
25025
25026 SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25027 PyObject *resultobj = 0;
25028 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25029 bool result;
25030 void *argp1 = 0 ;
25031 int res1 = 0 ;
25032 PyObject *swig_obj[1] ;
25033
25034 if (!args) SWIG_fail;
25035 swig_obj[0] = args;
25036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25037 if (!SWIG_IsOK(res1)) {
25038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25039 }
25040 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25041 {
25042 PyThreadState* __tstate = wxPyBeginAllowThreads();
25043 result = (bool)(arg1)->IsOk();
25044 wxPyEndAllowThreads(__tstate);
25045 if (PyErr_Occurred()) SWIG_fail;
25046 }
25047 {
25048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25049 }
25050 return resultobj;
25051 fail:
25052 return NULL;
25053 }
25054
25055
25056 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25057 PyObject *resultobj = 0;
25058 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25059 int arg2 = (int) 0 ;
25060 int arg3 = (int) 0 ;
25061 bool result;
25062 void *argp1 = 0 ;
25063 int res1 = 0 ;
25064 int val2 ;
25065 int ecode2 = 0 ;
25066 int val3 ;
25067 int ecode3 = 0 ;
25068 PyObject * obj0 = 0 ;
25069 PyObject * obj1 = 0 ;
25070 PyObject * obj2 = 0 ;
25071 char * kwnames[] = {
25072 (char *) "self",(char *) "width",(char *) "height", NULL
25073 };
25074
25075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25077 if (!SWIG_IsOK(res1)) {
25078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25079 }
25080 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25081 if (obj1) {
25082 ecode2 = SWIG_AsVal_int(obj1, &val2);
25083 if (!SWIG_IsOK(ecode2)) {
25084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
25085 }
25086 arg2 = static_cast< int >(val2);
25087 }
25088 if (obj2) {
25089 ecode3 = SWIG_AsVal_int(obj2, &val3);
25090 if (!SWIG_IsOK(ecode3)) {
25091 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
25092 }
25093 arg3 = static_cast< int >(val3);
25094 }
25095 {
25096 PyThreadState* __tstate = wxPyBeginAllowThreads();
25097 result = (bool)(arg1)->SetClipboard(arg2,arg3);
25098 wxPyEndAllowThreads(__tstate);
25099 if (PyErr_Occurred()) SWIG_fail;
25100 }
25101 {
25102 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25103 }
25104 return resultobj;
25105 fail:
25106 return NULL;
25107 }
25108
25109
25110 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25111 PyObject *resultobj = 0;
25112 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25113 wxSize result;
25114 void *argp1 = 0 ;
25115 int res1 = 0 ;
25116 PyObject *swig_obj[1] ;
25117
25118 if (!args) SWIG_fail;
25119 swig_obj[0] = args;
25120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25121 if (!SWIG_IsOK(res1)) {
25122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25123 }
25124 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25125 {
25126 PyThreadState* __tstate = wxPyBeginAllowThreads();
25127 result = (arg1)->GetSize();
25128 wxPyEndAllowThreads(__tstate);
25129 if (PyErr_Occurred()) SWIG_fail;
25130 }
25131 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25132 return resultobj;
25133 fail:
25134 return NULL;
25135 }
25136
25137
25138 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25139 PyObject *resultobj = 0;
25140 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25141 int result;
25142 void *argp1 = 0 ;
25143 int res1 = 0 ;
25144 PyObject *swig_obj[1] ;
25145
25146 if (!args) SWIG_fail;
25147 swig_obj[0] = args;
25148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25149 if (!SWIG_IsOK(res1)) {
25150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25151 }
25152 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25153 {
25154 PyThreadState* __tstate = wxPyBeginAllowThreads();
25155 result = (int)(arg1)->GetWidth();
25156 wxPyEndAllowThreads(__tstate);
25157 if (PyErr_Occurred()) SWIG_fail;
25158 }
25159 resultobj = SWIG_From_int(static_cast< int >(result));
25160 return resultobj;
25161 fail:
25162 return NULL;
25163 }
25164
25165
25166 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25167 PyObject *resultobj = 0;
25168 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25169 int result;
25170 void *argp1 = 0 ;
25171 int res1 = 0 ;
25172 PyObject *swig_obj[1] ;
25173
25174 if (!args) SWIG_fail;
25175 swig_obj[0] = args;
25176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25177 if (!SWIG_IsOK(res1)) {
25178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25179 }
25180 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25181 {
25182 PyThreadState* __tstate = wxPyBeginAllowThreads();
25183 result = (int)(arg1)->GetHeight();
25184 wxPyEndAllowThreads(__tstate);
25185 if (PyErr_Occurred()) SWIG_fail;
25186 }
25187 resultobj = SWIG_From_int(static_cast< int >(result));
25188 return resultobj;
25189 fail:
25190 return NULL;
25191 }
25192
25193
25194 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25195 PyObject *obj;
25196 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25197 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25198 return SWIG_Py_Void();
25199 }
25200
25201 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25202 return SWIG_Python_InitShadowInstance(args);
25203 }
25204
25205 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25206 PyObject *resultobj = 0;
25207 wxString const &arg1_defvalue = wxPyEmptyString ;
25208 wxString *arg1 = (wxString *) &arg1_defvalue ;
25209 int arg2 = (int) 0 ;
25210 int arg3 = (int) 0 ;
25211 wxString const &arg4_defvalue = wxPyEmptyString ;
25212 wxString *arg4 = (wxString *) &arg4_defvalue ;
25213 wxMetaFileDC *result = 0 ;
25214 bool temp1 = false ;
25215 int val2 ;
25216 int ecode2 = 0 ;
25217 int val3 ;
25218 int ecode3 = 0 ;
25219 bool temp4 = false ;
25220 PyObject * obj0 = 0 ;
25221 PyObject * obj1 = 0 ;
25222 PyObject * obj2 = 0 ;
25223 PyObject * obj3 = 0 ;
25224 char * kwnames[] = {
25225 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25226 };
25227
25228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25229 if (obj0) {
25230 {
25231 arg1 = wxString_in_helper(obj0);
25232 if (arg1 == NULL) SWIG_fail;
25233 temp1 = true;
25234 }
25235 }
25236 if (obj1) {
25237 ecode2 = SWIG_AsVal_int(obj1, &val2);
25238 if (!SWIG_IsOK(ecode2)) {
25239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25240 }
25241 arg2 = static_cast< int >(val2);
25242 }
25243 if (obj2) {
25244 ecode3 = SWIG_AsVal_int(obj2, &val3);
25245 if (!SWIG_IsOK(ecode3)) {
25246 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25247 }
25248 arg3 = static_cast< int >(val3);
25249 }
25250 if (obj3) {
25251 {
25252 arg4 = wxString_in_helper(obj3);
25253 if (arg4 == NULL) SWIG_fail;
25254 temp4 = true;
25255 }
25256 }
25257 {
25258 if (!wxPyCheckForApp()) SWIG_fail;
25259 PyThreadState* __tstate = wxPyBeginAllowThreads();
25260 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25261 wxPyEndAllowThreads(__tstate);
25262 if (PyErr_Occurred()) SWIG_fail;
25263 }
25264 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25265 {
25266 if (temp1)
25267 delete arg1;
25268 }
25269 {
25270 if (temp4)
25271 delete arg4;
25272 }
25273 return resultobj;
25274 fail:
25275 {
25276 if (temp1)
25277 delete arg1;
25278 }
25279 {
25280 if (temp4)
25281 delete arg4;
25282 }
25283 return NULL;
25284 }
25285
25286
25287 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25288 PyObject *resultobj = 0;
25289 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
25290 wxMetaFile *result = 0 ;
25291 void *argp1 = 0 ;
25292 int res1 = 0 ;
25293 PyObject *swig_obj[1] ;
25294
25295 if (!args) SWIG_fail;
25296 swig_obj[0] = args;
25297 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
25298 if (!SWIG_IsOK(res1)) {
25299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
25300 }
25301 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
25302 {
25303 PyThreadState* __tstate = wxPyBeginAllowThreads();
25304 result = (wxMetaFile *)(arg1)->Close();
25305 wxPyEndAllowThreads(__tstate);
25306 if (PyErr_Occurred()) SWIG_fail;
25307 }
25308 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
25309 return resultobj;
25310 fail:
25311 return NULL;
25312 }
25313
25314
25315 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25316 PyObject *obj;
25317 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25318 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25319 return SWIG_Py_Void();
25320 }
25321
25322 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25323 return SWIG_Python_InitShadowInstance(args);
25324 }
25325
25326 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25327 PyObject *resultobj = 0;
25328 wxPrintData *arg1 = 0 ;
25329 wxPrinterDC *result = 0 ;
25330 void *argp1 = 0 ;
25331 int res1 = 0 ;
25332 PyObject * obj0 = 0 ;
25333 char * kwnames[] = {
25334 (char *) "printData", NULL
25335 };
25336
25337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25338 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25339 if (!SWIG_IsOK(res1)) {
25340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25341 }
25342 if (!argp1) {
25343 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25344 }
25345 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25346 {
25347 if (!wxPyCheckForApp()) SWIG_fail;
25348 PyThreadState* __tstate = wxPyBeginAllowThreads();
25349 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25350 wxPyEndAllowThreads(__tstate);
25351 if (PyErr_Occurred()) SWIG_fail;
25352 }
25353 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25354 return resultobj;
25355 fail:
25356 return NULL;
25357 }
25358
25359
25360 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25361 PyObject *obj;
25362 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25363 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25364 return SWIG_Py_Void();
25365 }
25366
25367 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25368 return SWIG_Python_InitShadowInstance(args);
25369 }
25370
25371 SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25372 PyObject *resultobj = 0;
25373 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
25374 wxGraphicsObject *result = 0 ;
25375 void *argp1 = 0 ;
25376 int res1 = 0 ;
25377 PyObject * obj0 = 0 ;
25378 char * kwnames[] = {
25379 (char *) "renderer", NULL
25380 };
25381
25382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
25383 if (obj0) {
25384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25385 if (!SWIG_IsOK(res1)) {
25386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
25387 }
25388 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
25389 }
25390 {
25391 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
25392 if (PyErr_Occurred()) SWIG_fail;
25393 }
25394 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
25395 return resultobj;
25396 fail:
25397 return NULL;
25398 }
25399
25400
25401 SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25402 PyObject *resultobj = 0;
25403 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25404 void *argp1 = 0 ;
25405 int res1 = 0 ;
25406 PyObject *swig_obj[1] ;
25407
25408 if (!args) SWIG_fail;
25409 swig_obj[0] = args;
25410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
25411 if (!SWIG_IsOK(res1)) {
25412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
25413 }
25414 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25415 {
25416 delete arg1;
25417
25418 if (PyErr_Occurred()) SWIG_fail;
25419 }
25420 resultobj = SWIG_Py_Void();
25421 return resultobj;
25422 fail:
25423 return NULL;
25424 }
25425
25426
25427 SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25428 PyObject *resultobj = 0;
25429 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25430 bool result;
25431 void *argp1 = 0 ;
25432 int res1 = 0 ;
25433 PyObject *swig_obj[1] ;
25434
25435 if (!args) SWIG_fail;
25436 swig_obj[0] = args;
25437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25438 if (!SWIG_IsOK(res1)) {
25439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25440 }
25441 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25442 {
25443 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
25444 if (PyErr_Occurred()) SWIG_fail;
25445 }
25446 {
25447 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25448 }
25449 return resultobj;
25450 fail:
25451 return NULL;
25452 }
25453
25454
25455 SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25456 PyObject *resultobj = 0;
25457 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25458 wxGraphicsRenderer *result = 0 ;
25459 void *argp1 = 0 ;
25460 int res1 = 0 ;
25461 PyObject *swig_obj[1] ;
25462
25463 if (!args) SWIG_fail;
25464 swig_obj[0] = args;
25465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25466 if (!SWIG_IsOK(res1)) {
25467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25468 }
25469 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25470 {
25471 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
25472 if (PyErr_Occurred()) SWIG_fail;
25473 }
25474 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25475 return resultobj;
25476 fail:
25477 return NULL;
25478 }
25479
25480
25481 SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25482 PyObject *obj;
25483 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25484 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
25485 return SWIG_Py_Void();
25486 }
25487
25488 SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25489 return SWIG_Python_InitShadowInstance(args);
25490 }
25491
25492 SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25493 PyObject *resultobj = 0;
25494 wxGraphicsPen *result = 0 ;
25495
25496 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
25497 {
25498 result = (wxGraphicsPen *)new wxGraphicsPen();
25499 if (PyErr_Occurred()) SWIG_fail;
25500 }
25501 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
25502 return resultobj;
25503 fail:
25504 return NULL;
25505 }
25506
25507
25508 SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25509 PyObject *resultobj = 0;
25510 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
25511 void *argp1 = 0 ;
25512 int res1 = 0 ;
25513 PyObject *swig_obj[1] ;
25514
25515 if (!args) SWIG_fail;
25516 swig_obj[0] = args;
25517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
25518 if (!SWIG_IsOK(res1)) {
25519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
25520 }
25521 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
25522 {
25523 delete arg1;
25524
25525 if (PyErr_Occurred()) SWIG_fail;
25526 }
25527 resultobj = SWIG_Py_Void();
25528 return resultobj;
25529 fail:
25530 return NULL;
25531 }
25532
25533
25534 SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25535 PyObject *obj;
25536 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25537 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
25538 return SWIG_Py_Void();
25539 }
25540
25541 SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25542 return SWIG_Python_InitShadowInstance(args);
25543 }
25544
25545 SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25546 PyObject *resultobj = 0;
25547 wxGraphicsBrush *result = 0 ;
25548
25549 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
25550 {
25551 result = (wxGraphicsBrush *)new wxGraphicsBrush();
25552 if (PyErr_Occurred()) SWIG_fail;
25553 }
25554 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
25555 return resultobj;
25556 fail:
25557 return NULL;
25558 }
25559
25560
25561 SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25562 PyObject *resultobj = 0;
25563 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
25564 void *argp1 = 0 ;
25565 int res1 = 0 ;
25566 PyObject *swig_obj[1] ;
25567
25568 if (!args) SWIG_fail;
25569 swig_obj[0] = args;
25570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
25571 if (!SWIG_IsOK(res1)) {
25572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
25573 }
25574 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
25575 {
25576 delete arg1;
25577
25578 if (PyErr_Occurred()) SWIG_fail;
25579 }
25580 resultobj = SWIG_Py_Void();
25581 return resultobj;
25582 fail:
25583 return NULL;
25584 }
25585
25586
25587 SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25588 PyObject *obj;
25589 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25590 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
25591 return SWIG_Py_Void();
25592 }
25593
25594 SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25595 return SWIG_Python_InitShadowInstance(args);
25596 }
25597
25598 SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25599 PyObject *resultobj = 0;
25600 wxGraphicsFont *result = 0 ;
25601
25602 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
25603 {
25604 result = (wxGraphicsFont *)new wxGraphicsFont();
25605 if (PyErr_Occurred()) SWIG_fail;
25606 }
25607 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
25608 return resultobj;
25609 fail:
25610 return NULL;
25611 }
25612
25613
25614 SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25615 PyObject *resultobj = 0;
25616 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
25617 void *argp1 = 0 ;
25618 int res1 = 0 ;
25619 PyObject *swig_obj[1] ;
25620
25621 if (!args) SWIG_fail;
25622 swig_obj[0] = args;
25623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
25624 if (!SWIG_IsOK(res1)) {
25625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
25626 }
25627 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
25628 {
25629 delete arg1;
25630
25631 if (PyErr_Occurred()) SWIG_fail;
25632 }
25633 resultobj = SWIG_Py_Void();
25634 return resultobj;
25635 fail:
25636 return NULL;
25637 }
25638
25639
25640 SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25641 PyObject *obj;
25642 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25643 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
25644 return SWIG_Py_Void();
25645 }
25646
25647 SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25648 return SWIG_Python_InitShadowInstance(args);
25649 }
25650
25651 SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25652 PyObject *resultobj = 0;
25653 wxGraphicsMatrix *result = 0 ;
25654
25655 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail;
25656 {
25657 result = (wxGraphicsMatrix *)new wxGraphicsMatrix();
25658 if (PyErr_Occurred()) SWIG_fail;
25659 }
25660 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 );
25661 return resultobj;
25662 fail:
25663 return NULL;
25664 }
25665
25666
25667 SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25668 PyObject *resultobj = 0;
25669 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25670 void *argp1 = 0 ;
25671 int res1 = 0 ;
25672 PyObject *swig_obj[1] ;
25673
25674 if (!args) SWIG_fail;
25675 swig_obj[0] = args;
25676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
25677 if (!SWIG_IsOK(res1)) {
25678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25679 }
25680 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25681 {
25682 delete arg1;
25683
25684 if (PyErr_Occurred()) SWIG_fail;
25685 }
25686 resultobj = SWIG_Py_Void();
25687 return resultobj;
25688 fail:
25689 return NULL;
25690 }
25691
25692
25693 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25694 PyObject *resultobj = 0;
25695 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25696 wxGraphicsMatrix *arg2 = 0 ;
25697 void *argp1 = 0 ;
25698 int res1 = 0 ;
25699 void *argp2 = 0 ;
25700 int res2 = 0 ;
25701 PyObject * obj0 = 0 ;
25702 PyObject * obj1 = 0 ;
25703 char * kwnames[] = {
25704 (char *) "self",(char *) "t", NULL
25705 };
25706
25707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
25708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25709 if (!SWIG_IsOK(res1)) {
25710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25711 }
25712 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25713 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25714 if (!SWIG_IsOK(res2)) {
25715 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25716 }
25717 if (!argp2) {
25718 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25719 }
25720 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
25721 {
25722 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
25723 if (PyErr_Occurred()) SWIG_fail;
25724 }
25725 resultobj = SWIG_Py_Void();
25726 return resultobj;
25727 fail:
25728 return NULL;
25729 }
25730
25731
25732 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25733 PyObject *resultobj = 0;
25734 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25735 wxDouble arg2 = (wxDouble) 1.0 ;
25736 wxDouble arg3 = (wxDouble) 0.0 ;
25737 wxDouble arg4 = (wxDouble) 0.0 ;
25738 wxDouble arg5 = (wxDouble) 1.0 ;
25739 wxDouble arg6 = (wxDouble) 0.0 ;
25740 wxDouble arg7 = (wxDouble) 0.0 ;
25741 void *argp1 = 0 ;
25742 int res1 = 0 ;
25743 double val2 ;
25744 int ecode2 = 0 ;
25745 double val3 ;
25746 int ecode3 = 0 ;
25747 double val4 ;
25748 int ecode4 = 0 ;
25749 double val5 ;
25750 int ecode5 = 0 ;
25751 double val6 ;
25752 int ecode6 = 0 ;
25753 double val7 ;
25754 int ecode7 = 0 ;
25755 PyObject * obj0 = 0 ;
25756 PyObject * obj1 = 0 ;
25757 PyObject * obj2 = 0 ;
25758 PyObject * obj3 = 0 ;
25759 PyObject * obj4 = 0 ;
25760 PyObject * obj5 = 0 ;
25761 PyObject * obj6 = 0 ;
25762 char * kwnames[] = {
25763 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
25764 };
25765
25766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25768 if (!SWIG_IsOK(res1)) {
25769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25770 }
25771 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25772 if (obj1) {
25773 ecode2 = SWIG_AsVal_double(obj1, &val2);
25774 if (!SWIG_IsOK(ecode2)) {
25775 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
25776 }
25777 arg2 = static_cast< wxDouble >(val2);
25778 }
25779 if (obj2) {
25780 ecode3 = SWIG_AsVal_double(obj2, &val3);
25781 if (!SWIG_IsOK(ecode3)) {
25782 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
25783 }
25784 arg3 = static_cast< wxDouble >(val3);
25785 }
25786 if (obj3) {
25787 ecode4 = SWIG_AsVal_double(obj3, &val4);
25788 if (!SWIG_IsOK(ecode4)) {
25789 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
25790 }
25791 arg4 = static_cast< wxDouble >(val4);
25792 }
25793 if (obj4) {
25794 ecode5 = SWIG_AsVal_double(obj4, &val5);
25795 if (!SWIG_IsOK(ecode5)) {
25796 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
25797 }
25798 arg5 = static_cast< wxDouble >(val5);
25799 }
25800 if (obj5) {
25801 ecode6 = SWIG_AsVal_double(obj5, &val6);
25802 if (!SWIG_IsOK(ecode6)) {
25803 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
25804 }
25805 arg6 = static_cast< wxDouble >(val6);
25806 }
25807 if (obj6) {
25808 ecode7 = SWIG_AsVal_double(obj6, &val7);
25809 if (!SWIG_IsOK(ecode7)) {
25810 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
25811 }
25812 arg7 = static_cast< wxDouble >(val7);
25813 }
25814 {
25815 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
25816 if (PyErr_Occurred()) SWIG_fail;
25817 }
25818 resultobj = SWIG_Py_Void();
25819 return resultobj;
25820 fail:
25821 return NULL;
25822 }
25823
25824
25825 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25826 PyObject *resultobj = 0;
25827 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25828 void *argp1 = 0 ;
25829 int res1 = 0 ;
25830 PyObject *swig_obj[1] ;
25831
25832 if (!args) SWIG_fail;
25833 swig_obj[0] = args;
25834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25835 if (!SWIG_IsOK(res1)) {
25836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25837 }
25838 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25839 {
25840 (arg1)->Invert();
25841 if (PyErr_Occurred()) SWIG_fail;
25842 }
25843 resultobj = SWIG_Py_Void();
25844 return resultobj;
25845 fail:
25846 return NULL;
25847 }
25848
25849
25850 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25851 PyObject *resultobj = 0;
25852 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25853 wxGraphicsMatrix *arg2 = 0 ;
25854 bool result;
25855 void *argp1 = 0 ;
25856 int res1 = 0 ;
25857 void *argp2 = 0 ;
25858 int res2 = 0 ;
25859 PyObject * obj0 = 0 ;
25860 PyObject * obj1 = 0 ;
25861 char * kwnames[] = {
25862 (char *) "self",(char *) "t", NULL
25863 };
25864
25865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
25866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25867 if (!SWIG_IsOK(res1)) {
25868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
25869 }
25870 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25871 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25872 if (!SWIG_IsOK(res2)) {
25873 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25874 }
25875 if (!argp2) {
25876 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25877 }
25878 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
25879 {
25880 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
25881 if (PyErr_Occurred()) SWIG_fail;
25882 }
25883 {
25884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25885 }
25886 return resultobj;
25887 fail:
25888 return NULL;
25889 }
25890
25891
25892 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25893 PyObject *resultobj = 0;
25894 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25895 bool result;
25896 void *argp1 = 0 ;
25897 int res1 = 0 ;
25898 PyObject *swig_obj[1] ;
25899
25900 if (!args) SWIG_fail;
25901 swig_obj[0] = args;
25902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25903 if (!SWIG_IsOK(res1)) {
25904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
25905 }
25906 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25907 {
25908 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
25909 if (PyErr_Occurred()) SWIG_fail;
25910 }
25911 {
25912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25913 }
25914 return resultobj;
25915 fail:
25916 return NULL;
25917 }
25918
25919
25920 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25921 PyObject *resultobj = 0;
25922 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25923 wxDouble arg2 ;
25924 wxDouble arg3 ;
25925 void *argp1 = 0 ;
25926 int res1 = 0 ;
25927 double val2 ;
25928 int ecode2 = 0 ;
25929 double val3 ;
25930 int ecode3 = 0 ;
25931 PyObject * obj0 = 0 ;
25932 PyObject * obj1 = 0 ;
25933 PyObject * obj2 = 0 ;
25934 char * kwnames[] = {
25935 (char *) "self",(char *) "dx",(char *) "dy", NULL
25936 };
25937
25938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25940 if (!SWIG_IsOK(res1)) {
25941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25942 }
25943 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25944 ecode2 = SWIG_AsVal_double(obj1, &val2);
25945 if (!SWIG_IsOK(ecode2)) {
25946 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
25947 }
25948 arg2 = static_cast< wxDouble >(val2);
25949 ecode3 = SWIG_AsVal_double(obj2, &val3);
25950 if (!SWIG_IsOK(ecode3)) {
25951 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
25952 }
25953 arg3 = static_cast< wxDouble >(val3);
25954 {
25955 (arg1)->Translate(arg2,arg3);
25956 if (PyErr_Occurred()) SWIG_fail;
25957 }
25958 resultobj = SWIG_Py_Void();
25959 return resultobj;
25960 fail:
25961 return NULL;
25962 }
25963
25964
25965 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25966 PyObject *resultobj = 0;
25967 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25968 wxDouble arg2 ;
25969 wxDouble arg3 ;
25970 void *argp1 = 0 ;
25971 int res1 = 0 ;
25972 double val2 ;
25973 int ecode2 = 0 ;
25974 double val3 ;
25975 int ecode3 = 0 ;
25976 PyObject * obj0 = 0 ;
25977 PyObject * obj1 = 0 ;
25978 PyObject * obj2 = 0 ;
25979 char * kwnames[] = {
25980 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
25981 };
25982
25983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25985 if (!SWIG_IsOK(res1)) {
25986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25987 }
25988 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25989 ecode2 = SWIG_AsVal_double(obj1, &val2);
25990 if (!SWIG_IsOK(ecode2)) {
25991 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
25992 }
25993 arg2 = static_cast< wxDouble >(val2);
25994 ecode3 = SWIG_AsVal_double(obj2, &val3);
25995 if (!SWIG_IsOK(ecode3)) {
25996 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
25997 }
25998 arg3 = static_cast< wxDouble >(val3);
25999 {
26000 (arg1)->Scale(arg2,arg3);
26001 if (PyErr_Occurred()) SWIG_fail;
26002 }
26003 resultobj = SWIG_Py_Void();
26004 return resultobj;
26005 fail:
26006 return NULL;
26007 }
26008
26009
26010 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26011 PyObject *resultobj = 0;
26012 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26013 wxDouble arg2 ;
26014 void *argp1 = 0 ;
26015 int res1 = 0 ;
26016 double val2 ;
26017 int ecode2 = 0 ;
26018 PyObject * obj0 = 0 ;
26019 PyObject * obj1 = 0 ;
26020 char * kwnames[] = {
26021 (char *) "self",(char *) "angle", NULL
26022 };
26023
26024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
26025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26026 if (!SWIG_IsOK(res1)) {
26027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26028 }
26029 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26030 ecode2 = SWIG_AsVal_double(obj1, &val2);
26031 if (!SWIG_IsOK(ecode2)) {
26032 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
26033 }
26034 arg2 = static_cast< wxDouble >(val2);
26035 {
26036 (arg1)->Rotate(arg2);
26037 if (PyErr_Occurred()) SWIG_fail;
26038 }
26039 resultobj = SWIG_Py_Void();
26040 return resultobj;
26041 fail:
26042 return NULL;
26043 }
26044
26045
26046 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26047 PyObject *resultobj = 0;
26048 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26049 wxDouble *arg2 = (wxDouble *) 0 ;
26050 wxDouble *arg3 = (wxDouble *) 0 ;
26051 void *argp1 = 0 ;
26052 int res1 = 0 ;
26053 wxDouble temp2 ;
26054 int res2 = 0 ;
26055 wxDouble temp3 ;
26056 int res3 = 0 ;
26057 PyObject * obj0 = 0 ;
26058 PyObject * obj1 = 0 ;
26059 PyObject * obj2 = 0 ;
26060 char * kwnames[] = {
26061 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26062 };
26063
26064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26066 if (!SWIG_IsOK(res1)) {
26067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26068 }
26069 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26070 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26071 double val;
26072 int ecode = SWIG_AsVal_double(obj1, &val);
26073 if (!SWIG_IsOK(ecode)) {
26074 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26075 }
26076 temp2 = static_cast< wxDouble >(val);
26077 arg2 = &temp2;
26078 res2 = SWIG_AddTmpMask(ecode);
26079 }
26080 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26081 double val;
26082 int ecode = SWIG_AsVal_double(obj2, &val);
26083 if (!SWIG_IsOK(ecode)) {
26084 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26085 }
26086 temp3 = static_cast< wxDouble >(val);
26087 arg3 = &temp3;
26088 res3 = SWIG_AddTmpMask(ecode);
26089 }
26090 {
26091 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
26092 if (PyErr_Occurred()) SWIG_fail;
26093 }
26094 resultobj = SWIG_Py_Void();
26095 if (SWIG_IsTmpObj(res2)) {
26096 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26097 } else {
26098 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26099 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26100 }
26101 if (SWIG_IsTmpObj(res3)) {
26102 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26103 } else {
26104 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26105 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26106 }
26107 return resultobj;
26108 fail:
26109 return NULL;
26110 }
26111
26112
26113 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26114 PyObject *resultobj = 0;
26115 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26116 wxDouble *arg2 = (wxDouble *) 0 ;
26117 wxDouble *arg3 = (wxDouble *) 0 ;
26118 void *argp1 = 0 ;
26119 int res1 = 0 ;
26120 wxDouble temp2 ;
26121 int res2 = 0 ;
26122 wxDouble temp3 ;
26123 int res3 = 0 ;
26124 PyObject * obj0 = 0 ;
26125 PyObject * obj1 = 0 ;
26126 PyObject * obj2 = 0 ;
26127 char * kwnames[] = {
26128 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26129 };
26130
26131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26133 if (!SWIG_IsOK(res1)) {
26134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26135 }
26136 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26137 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26138 double val;
26139 int ecode = SWIG_AsVal_double(obj1, &val);
26140 if (!SWIG_IsOK(ecode)) {
26141 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
26142 }
26143 temp2 = static_cast< wxDouble >(val);
26144 arg2 = &temp2;
26145 res2 = SWIG_AddTmpMask(ecode);
26146 }
26147 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26148 double val;
26149 int ecode = SWIG_AsVal_double(obj2, &val);
26150 if (!SWIG_IsOK(ecode)) {
26151 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
26152 }
26153 temp3 = static_cast< wxDouble >(val);
26154 arg3 = &temp3;
26155 res3 = SWIG_AddTmpMask(ecode);
26156 }
26157 {
26158 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
26159 if (PyErr_Occurred()) SWIG_fail;
26160 }
26161 resultobj = SWIG_Py_Void();
26162 if (SWIG_IsTmpObj(res2)) {
26163 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26164 } else {
26165 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26166 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26167 }
26168 if (SWIG_IsTmpObj(res3)) {
26169 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26170 } else {
26171 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26172 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26173 }
26174 return resultobj;
26175 fail:
26176 return NULL;
26177 }
26178
26179
26180 SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26181 PyObject *resultobj = 0;
26182 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26183 void *result = 0 ;
26184 void *argp1 = 0 ;
26185 int res1 = 0 ;
26186 PyObject *swig_obj[1] ;
26187
26188 if (!args) SWIG_fail;
26189 swig_obj[0] = args;
26190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26191 if (!SWIG_IsOK(res1)) {
26192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26193 }
26194 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26195 {
26196 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
26197 if (PyErr_Occurred()) SWIG_fail;
26198 }
26199 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26200 return resultobj;
26201 fail:
26202 return NULL;
26203 }
26204
26205
26206 SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26207 PyObject *obj;
26208 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26209 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
26210 return SWIG_Py_Void();
26211 }
26212
26213 SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26214 return SWIG_Python_InitShadowInstance(args);
26215 }
26216
26217 SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26218 PyObject *resultobj = 0;
26219 wxGraphicsPath *result = 0 ;
26220
26221 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail;
26222 {
26223 if (!wxPyCheckForApp()) SWIG_fail;
26224 PyThreadState* __tstate = wxPyBeginAllowThreads();
26225 result = (wxGraphicsPath *)new wxGraphicsPath();
26226 wxPyEndAllowThreads(__tstate);
26227 if (PyErr_Occurred()) SWIG_fail;
26228 }
26229 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 );
26230 return resultobj;
26231 fail:
26232 return NULL;
26233 }
26234
26235
26236 SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26237 PyObject *resultobj = 0;
26238 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26239 void *argp1 = 0 ;
26240 int res1 = 0 ;
26241 PyObject *swig_obj[1] ;
26242
26243 if (!args) SWIG_fail;
26244 swig_obj[0] = args;
26245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
26246 if (!SWIG_IsOK(res1)) {
26247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26248 }
26249 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26250 {
26251 delete arg1;
26252
26253 if (PyErr_Occurred()) SWIG_fail;
26254 }
26255 resultobj = SWIG_Py_Void();
26256 return resultobj;
26257 fail:
26258 return NULL;
26259 }
26260
26261
26262 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26263 PyObject *resultobj = 0;
26264 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26265 wxDouble arg2 ;
26266 wxDouble arg3 ;
26267 void *argp1 = 0 ;
26268 int res1 = 0 ;
26269 double val2 ;
26270 int ecode2 = 0 ;
26271 double val3 ;
26272 int ecode3 = 0 ;
26273
26274 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26276 if (!SWIG_IsOK(res1)) {
26277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26278 }
26279 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26280 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26281 if (!SWIG_IsOK(ecode2)) {
26282 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26283 }
26284 arg2 = static_cast< wxDouble >(val2);
26285 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26286 if (!SWIG_IsOK(ecode3)) {
26287 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26288 }
26289 arg3 = static_cast< wxDouble >(val3);
26290 {
26291 (arg1)->MoveToPoint(arg2,arg3);
26292 if (PyErr_Occurred()) SWIG_fail;
26293 }
26294 resultobj = SWIG_Py_Void();
26295 return resultobj;
26296 fail:
26297 return NULL;
26298 }
26299
26300
26301 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26302 PyObject *resultobj = 0;
26303 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26304 wxPoint2D *arg2 = 0 ;
26305 void *argp1 = 0 ;
26306 int res1 = 0 ;
26307 wxPoint2D temp2 ;
26308
26309 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26311 if (!SWIG_IsOK(res1)) {
26312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26313 }
26314 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26315 {
26316 arg2 = &temp2;
26317 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26318 }
26319 {
26320 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
26321 if (PyErr_Occurred()) SWIG_fail;
26322 }
26323 resultobj = SWIG_Py_Void();
26324 return resultobj;
26325 fail:
26326 return NULL;
26327 }
26328
26329
26330 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
26331 int argc;
26332 PyObject *argv[4];
26333
26334 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
26335 --argc;
26336 if (argc == 2) {
26337 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
26338 }
26339 if (argc == 3) {
26340 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
26341 }
26342
26343 fail:
26344 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
26345 return NULL;
26346 }
26347
26348
26349 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26350 PyObject *resultobj = 0;
26351 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26352 wxDouble arg2 ;
26353 wxDouble arg3 ;
26354 void *argp1 = 0 ;
26355 int res1 = 0 ;
26356 double val2 ;
26357 int ecode2 = 0 ;
26358 double val3 ;
26359 int ecode3 = 0 ;
26360
26361 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26363 if (!SWIG_IsOK(res1)) {
26364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26365 }
26366 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26367 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26368 if (!SWIG_IsOK(ecode2)) {
26369 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26370 }
26371 arg2 = static_cast< wxDouble >(val2);
26372 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26373 if (!SWIG_IsOK(ecode3)) {
26374 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26375 }
26376 arg3 = static_cast< wxDouble >(val3);
26377 {
26378 (arg1)->AddLineToPoint(arg2,arg3);
26379 if (PyErr_Occurred()) SWIG_fail;
26380 }
26381 resultobj = SWIG_Py_Void();
26382 return resultobj;
26383 fail:
26384 return NULL;
26385 }
26386
26387
26388 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26389 PyObject *resultobj = 0;
26390 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26391 wxPoint2D *arg2 = 0 ;
26392 void *argp1 = 0 ;
26393 int res1 = 0 ;
26394 wxPoint2D temp2 ;
26395
26396 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26397 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26398 if (!SWIG_IsOK(res1)) {
26399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26400 }
26401 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26402 {
26403 arg2 = &temp2;
26404 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26405 }
26406 {
26407 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
26408 if (PyErr_Occurred()) SWIG_fail;
26409 }
26410 resultobj = SWIG_Py_Void();
26411 return resultobj;
26412 fail:
26413 return NULL;
26414 }
26415
26416
26417 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
26418 int argc;
26419 PyObject *argv[4];
26420
26421 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
26422 --argc;
26423 if (argc == 2) {
26424 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
26425 }
26426 if (argc == 3) {
26427 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
26428 }
26429
26430 fail:
26431 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
26432 return NULL;
26433 }
26434
26435
26436 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26437 PyObject *resultobj = 0;
26438 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26439 wxDouble arg2 ;
26440 wxDouble arg3 ;
26441 wxDouble arg4 ;
26442 wxDouble arg5 ;
26443 wxDouble arg6 ;
26444 wxDouble arg7 ;
26445 void *argp1 = 0 ;
26446 int res1 = 0 ;
26447 double val2 ;
26448 int ecode2 = 0 ;
26449 double val3 ;
26450 int ecode3 = 0 ;
26451 double val4 ;
26452 int ecode4 = 0 ;
26453 double val5 ;
26454 int ecode5 = 0 ;
26455 double val6 ;
26456 int ecode6 = 0 ;
26457 double val7 ;
26458 int ecode7 = 0 ;
26459
26460 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
26461 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26462 if (!SWIG_IsOK(res1)) {
26463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26464 }
26465 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26466 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26467 if (!SWIG_IsOK(ecode2)) {
26468 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26469 }
26470 arg2 = static_cast< wxDouble >(val2);
26471 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26472 if (!SWIG_IsOK(ecode3)) {
26473 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26474 }
26475 arg3 = static_cast< wxDouble >(val3);
26476 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26477 if (!SWIG_IsOK(ecode4)) {
26478 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26479 }
26480 arg4 = static_cast< wxDouble >(val4);
26481 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26482 if (!SWIG_IsOK(ecode5)) {
26483 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26484 }
26485 arg5 = static_cast< wxDouble >(val5);
26486 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
26487 if (!SWIG_IsOK(ecode6)) {
26488 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
26489 }
26490 arg6 = static_cast< wxDouble >(val6);
26491 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
26492 if (!SWIG_IsOK(ecode7)) {
26493 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
26494 }
26495 arg7 = static_cast< wxDouble >(val7);
26496 {
26497 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
26498 if (PyErr_Occurred()) SWIG_fail;
26499 }
26500 resultobj = SWIG_Py_Void();
26501 return resultobj;
26502 fail:
26503 return NULL;
26504 }
26505
26506
26507 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26508 PyObject *resultobj = 0;
26509 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26510 wxPoint2D *arg2 = 0 ;
26511 wxPoint2D *arg3 = 0 ;
26512 wxPoint2D *arg4 = 0 ;
26513 void *argp1 = 0 ;
26514 int res1 = 0 ;
26515 wxPoint2D temp2 ;
26516 wxPoint2D temp3 ;
26517 wxPoint2D temp4 ;
26518
26519 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
26520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26521 if (!SWIG_IsOK(res1)) {
26522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26523 }
26524 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26525 {
26526 arg2 = &temp2;
26527 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26528 }
26529 {
26530 arg3 = &temp3;
26531 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
26532 }
26533 {
26534 arg4 = &temp4;
26535 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
26536 }
26537 {
26538 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
26539 if (PyErr_Occurred()) SWIG_fail;
26540 }
26541 resultobj = SWIG_Py_Void();
26542 return resultobj;
26543 fail:
26544 return NULL;
26545 }
26546
26547
26548 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
26549 int argc;
26550 PyObject *argv[8];
26551
26552 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
26553 --argc;
26554 if (argc == 4) {
26555 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
26556 }
26557 if (argc == 7) {
26558 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
26559 }
26560
26561 fail:
26562 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
26563 return NULL;
26564 }
26565
26566
26567 SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26568 PyObject *resultobj = 0;
26569 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26570 wxGraphicsPath *arg2 = 0 ;
26571 void *argp1 = 0 ;
26572 int res1 = 0 ;
26573 void *argp2 = 0 ;
26574 int res2 = 0 ;
26575 PyObject * obj0 = 0 ;
26576 PyObject * obj1 = 0 ;
26577 char * kwnames[] = {
26578 (char *) "self",(char *) "path", NULL
26579 };
26580
26581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
26582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26583 if (!SWIG_IsOK(res1)) {
26584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26585 }
26586 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26587 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
26588 if (!SWIG_IsOK(res2)) {
26589 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
26590 }
26591 if (!argp2) {
26592 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
26593 }
26594 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
26595 {
26596 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
26597 if (PyErr_Occurred()) SWIG_fail;
26598 }
26599 resultobj = SWIG_Py_Void();
26600 return resultobj;
26601 fail:
26602 return NULL;
26603 }
26604
26605
26606 SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26607 PyObject *resultobj = 0;
26608 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26609 void *argp1 = 0 ;
26610 int res1 = 0 ;
26611 PyObject *swig_obj[1] ;
26612
26613 if (!args) SWIG_fail;
26614 swig_obj[0] = args;
26615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26616 if (!SWIG_IsOK(res1)) {
26617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26618 }
26619 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26620 {
26621 (arg1)->CloseSubpath();
26622 if (PyErr_Occurred()) SWIG_fail;
26623 }
26624 resultobj = SWIG_Py_Void();
26625 return resultobj;
26626 fail:
26627 return NULL;
26628 }
26629
26630
26631 SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26632 PyObject *resultobj = 0;
26633 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26634 wxPoint2D result;
26635 void *argp1 = 0 ;
26636 int res1 = 0 ;
26637 PyObject *swig_obj[1] ;
26638
26639 if (!args) SWIG_fail;
26640 swig_obj[0] = args;
26641 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26642 if (!SWIG_IsOK(res1)) {
26643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
26644 }
26645 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26646 {
26647 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
26648 if (PyErr_Occurred()) SWIG_fail;
26649 }
26650 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
26651 return resultobj;
26652 fail:
26653 return NULL;
26654 }
26655
26656
26657 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26658 PyObject *resultobj = 0;
26659 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26660 wxDouble arg2 ;
26661 wxDouble arg3 ;
26662 wxDouble arg4 ;
26663 wxDouble arg5 ;
26664 wxDouble arg6 ;
26665 bool arg7 ;
26666 void *argp1 = 0 ;
26667 int res1 = 0 ;
26668 double val2 ;
26669 int ecode2 = 0 ;
26670 double val3 ;
26671 int ecode3 = 0 ;
26672 double val4 ;
26673 int ecode4 = 0 ;
26674 double val5 ;
26675 int ecode5 = 0 ;
26676 double val6 ;
26677 int ecode6 = 0 ;
26678 bool val7 ;
26679 int ecode7 = 0 ;
26680
26681 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
26682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26683 if (!SWIG_IsOK(res1)) {
26684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26685 }
26686 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26687 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26688 if (!SWIG_IsOK(ecode2)) {
26689 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
26690 }
26691 arg2 = static_cast< wxDouble >(val2);
26692 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26693 if (!SWIG_IsOK(ecode3)) {
26694 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
26695 }
26696 arg3 = static_cast< wxDouble >(val3);
26697 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26698 if (!SWIG_IsOK(ecode4)) {
26699 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26700 }
26701 arg4 = static_cast< wxDouble >(val4);
26702 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26703 if (!SWIG_IsOK(ecode5)) {
26704 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26705 }
26706 arg5 = static_cast< wxDouble >(val5);
26707 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
26708 if (!SWIG_IsOK(ecode6)) {
26709 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
26710 }
26711 arg6 = static_cast< wxDouble >(val6);
26712 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
26713 if (!SWIG_IsOK(ecode7)) {
26714 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
26715 }
26716 arg7 = static_cast< bool >(val7);
26717 {
26718 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
26719 if (PyErr_Occurred()) SWIG_fail;
26720 }
26721 resultobj = SWIG_Py_Void();
26722 return resultobj;
26723 fail:
26724 return NULL;
26725 }
26726
26727
26728 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26729 PyObject *resultobj = 0;
26730 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26731 wxPoint2D *arg2 = 0 ;
26732 wxDouble arg3 ;
26733 wxDouble arg4 ;
26734 wxDouble arg5 ;
26735 bool arg6 ;
26736 void *argp1 = 0 ;
26737 int res1 = 0 ;
26738 wxPoint2D temp2 ;
26739 double val3 ;
26740 int ecode3 = 0 ;
26741 double val4 ;
26742 int ecode4 = 0 ;
26743 double val5 ;
26744 int ecode5 = 0 ;
26745 bool val6 ;
26746 int ecode6 = 0 ;
26747
26748 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
26749 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26750 if (!SWIG_IsOK(res1)) {
26751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26752 }
26753 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26754 {
26755 arg2 = &temp2;
26756 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26757 }
26758 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26759 if (!SWIG_IsOK(ecode3)) {
26760 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
26761 }
26762 arg3 = static_cast< wxDouble >(val3);
26763 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26764 if (!SWIG_IsOK(ecode4)) {
26765 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26766 }
26767 arg4 = static_cast< wxDouble >(val4);
26768 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26769 if (!SWIG_IsOK(ecode5)) {
26770 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26771 }
26772 arg5 = static_cast< wxDouble >(val5);
26773 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
26774 if (!SWIG_IsOK(ecode6)) {
26775 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
26776 }
26777 arg6 = static_cast< bool >(val6);
26778 {
26779 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
26780 if (PyErr_Occurred()) SWIG_fail;
26781 }
26782 resultobj = SWIG_Py_Void();
26783 return resultobj;
26784 fail:
26785 return NULL;
26786 }
26787
26788
26789 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
26790 int argc;
26791 PyObject *argv[8];
26792
26793 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
26794 --argc;
26795 if (argc == 6) {
26796 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
26797 }
26798 if (argc == 7) {
26799 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
26800 }
26801
26802 fail:
26803 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
26804 return NULL;
26805 }
26806
26807
26808 SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26809 PyObject *resultobj = 0;
26810 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26811 wxDouble arg2 ;
26812 wxDouble arg3 ;
26813 wxDouble arg4 ;
26814 wxDouble arg5 ;
26815 void *argp1 = 0 ;
26816 int res1 = 0 ;
26817 double val2 ;
26818 int ecode2 = 0 ;
26819 double val3 ;
26820 int ecode3 = 0 ;
26821 double val4 ;
26822 int ecode4 = 0 ;
26823 double val5 ;
26824 int ecode5 = 0 ;
26825 PyObject * obj0 = 0 ;
26826 PyObject * obj1 = 0 ;
26827 PyObject * obj2 = 0 ;
26828 PyObject * obj3 = 0 ;
26829 PyObject * obj4 = 0 ;
26830 char * kwnames[] = {
26831 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
26832 };
26833
26834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26836 if (!SWIG_IsOK(res1)) {
26837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26838 }
26839 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26840 ecode2 = SWIG_AsVal_double(obj1, &val2);
26841 if (!SWIG_IsOK(ecode2)) {
26842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26843 }
26844 arg2 = static_cast< wxDouble >(val2);
26845 ecode3 = SWIG_AsVal_double(obj2, &val3);
26846 if (!SWIG_IsOK(ecode3)) {
26847 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26848 }
26849 arg3 = static_cast< wxDouble >(val3);
26850 ecode4 = SWIG_AsVal_double(obj3, &val4);
26851 if (!SWIG_IsOK(ecode4)) {
26852 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26853 }
26854 arg4 = static_cast< wxDouble >(val4);
26855 ecode5 = SWIG_AsVal_double(obj4, &val5);
26856 if (!SWIG_IsOK(ecode5)) {
26857 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26858 }
26859 arg5 = static_cast< wxDouble >(val5);
26860 {
26861 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
26862 if (PyErr_Occurred()) SWIG_fail;
26863 }
26864 resultobj = SWIG_Py_Void();
26865 return resultobj;
26866 fail:
26867 return NULL;
26868 }
26869
26870
26871 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26872 PyObject *resultobj = 0;
26873 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26874 wxDouble arg2 ;
26875 wxDouble arg3 ;
26876 wxDouble arg4 ;
26877 wxDouble arg5 ;
26878 void *argp1 = 0 ;
26879 int res1 = 0 ;
26880 double val2 ;
26881 int ecode2 = 0 ;
26882 double val3 ;
26883 int ecode3 = 0 ;
26884 double val4 ;
26885 int ecode4 = 0 ;
26886 double val5 ;
26887 int ecode5 = 0 ;
26888 PyObject * obj0 = 0 ;
26889 PyObject * obj1 = 0 ;
26890 PyObject * obj2 = 0 ;
26891 PyObject * obj3 = 0 ;
26892 PyObject * obj4 = 0 ;
26893 char * kwnames[] = {
26894 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26895 };
26896
26897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26899 if (!SWIG_IsOK(res1)) {
26900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26901 }
26902 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26903 ecode2 = SWIG_AsVal_double(obj1, &val2);
26904 if (!SWIG_IsOK(ecode2)) {
26905 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26906 }
26907 arg2 = static_cast< wxDouble >(val2);
26908 ecode3 = SWIG_AsVal_double(obj2, &val3);
26909 if (!SWIG_IsOK(ecode3)) {
26910 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26911 }
26912 arg3 = static_cast< wxDouble >(val3);
26913 ecode4 = SWIG_AsVal_double(obj3, &val4);
26914 if (!SWIG_IsOK(ecode4)) {
26915 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26916 }
26917 arg4 = static_cast< wxDouble >(val4);
26918 ecode5 = SWIG_AsVal_double(obj4, &val5);
26919 if (!SWIG_IsOK(ecode5)) {
26920 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26921 }
26922 arg5 = static_cast< wxDouble >(val5);
26923 {
26924 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
26925 if (PyErr_Occurred()) SWIG_fail;
26926 }
26927 resultobj = SWIG_Py_Void();
26928 return resultobj;
26929 fail:
26930 return NULL;
26931 }
26932
26933
26934 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26935 PyObject *resultobj = 0;
26936 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26937 wxDouble arg2 ;
26938 wxDouble arg3 ;
26939 wxDouble arg4 ;
26940 void *argp1 = 0 ;
26941 int res1 = 0 ;
26942 double val2 ;
26943 int ecode2 = 0 ;
26944 double val3 ;
26945 int ecode3 = 0 ;
26946 double val4 ;
26947 int ecode4 = 0 ;
26948 PyObject * obj0 = 0 ;
26949 PyObject * obj1 = 0 ;
26950 PyObject * obj2 = 0 ;
26951 PyObject * obj3 = 0 ;
26952 char * kwnames[] = {
26953 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
26954 };
26955
26956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26958 if (!SWIG_IsOK(res1)) {
26959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26960 }
26961 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26962 ecode2 = SWIG_AsVal_double(obj1, &val2);
26963 if (!SWIG_IsOK(ecode2)) {
26964 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
26965 }
26966 arg2 = static_cast< wxDouble >(val2);
26967 ecode3 = SWIG_AsVal_double(obj2, &val3);
26968 if (!SWIG_IsOK(ecode3)) {
26969 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
26970 }
26971 arg3 = static_cast< wxDouble >(val3);
26972 ecode4 = SWIG_AsVal_double(obj3, &val4);
26973 if (!SWIG_IsOK(ecode4)) {
26974 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
26975 }
26976 arg4 = static_cast< wxDouble >(val4);
26977 {
26978 (arg1)->AddCircle(arg2,arg3,arg4);
26979 if (PyErr_Occurred()) SWIG_fail;
26980 }
26981 resultobj = SWIG_Py_Void();
26982 return resultobj;
26983 fail:
26984 return NULL;
26985 }
26986
26987
26988 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26989 PyObject *resultobj = 0;
26990 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26991 wxDouble arg2 ;
26992 wxDouble arg3 ;
26993 wxDouble arg4 ;
26994 wxDouble arg5 ;
26995 wxDouble arg6 ;
26996 void *argp1 = 0 ;
26997 int res1 = 0 ;
26998 double val2 ;
26999 int ecode2 = 0 ;
27000 double val3 ;
27001 int ecode3 = 0 ;
27002 double val4 ;
27003 int ecode4 = 0 ;
27004 double val5 ;
27005 int ecode5 = 0 ;
27006 double val6 ;
27007 int ecode6 = 0 ;
27008 PyObject * obj0 = 0 ;
27009 PyObject * obj1 = 0 ;
27010 PyObject * obj2 = 0 ;
27011 PyObject * obj3 = 0 ;
27012 PyObject * obj4 = 0 ;
27013 PyObject * obj5 = 0 ;
27014 char * kwnames[] = {
27015 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
27016 };
27017
27018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27020 if (!SWIG_IsOK(res1)) {
27021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27022 }
27023 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27024 ecode2 = SWIG_AsVal_double(obj1, &val2);
27025 if (!SWIG_IsOK(ecode2)) {
27026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27027 }
27028 arg2 = static_cast< wxDouble >(val2);
27029 ecode3 = SWIG_AsVal_double(obj2, &val3);
27030 if (!SWIG_IsOK(ecode3)) {
27031 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27032 }
27033 arg3 = static_cast< wxDouble >(val3);
27034 ecode4 = SWIG_AsVal_double(obj3, &val4);
27035 if (!SWIG_IsOK(ecode4)) {
27036 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27037 }
27038 arg4 = static_cast< wxDouble >(val4);
27039 ecode5 = SWIG_AsVal_double(obj4, &val5);
27040 if (!SWIG_IsOK(ecode5)) {
27041 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27042 }
27043 arg5 = static_cast< wxDouble >(val5);
27044 ecode6 = SWIG_AsVal_double(obj5, &val6);
27045 if (!SWIG_IsOK(ecode6)) {
27046 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27047 }
27048 arg6 = static_cast< wxDouble >(val6);
27049 {
27050 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
27051 if (PyErr_Occurred()) SWIG_fail;
27052 }
27053 resultobj = SWIG_Py_Void();
27054 return resultobj;
27055 fail:
27056 return NULL;
27057 }
27058
27059
27060 SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27061 PyObject *resultobj = 0;
27062 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27063 wxDouble arg2 ;
27064 wxDouble arg3 ;
27065 wxDouble arg4 ;
27066 wxDouble arg5 ;
27067 void *argp1 = 0 ;
27068 int res1 = 0 ;
27069 double val2 ;
27070 int ecode2 = 0 ;
27071 double val3 ;
27072 int ecode3 = 0 ;
27073 double val4 ;
27074 int ecode4 = 0 ;
27075 double val5 ;
27076 int ecode5 = 0 ;
27077 PyObject * obj0 = 0 ;
27078 PyObject * obj1 = 0 ;
27079 PyObject * obj2 = 0 ;
27080 PyObject * obj3 = 0 ;
27081 PyObject * obj4 = 0 ;
27082 char * kwnames[] = {
27083 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27084 };
27085
27086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27088 if (!SWIG_IsOK(res1)) {
27089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27090 }
27091 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27092 ecode2 = SWIG_AsVal_double(obj1, &val2);
27093 if (!SWIG_IsOK(ecode2)) {
27094 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27095 }
27096 arg2 = static_cast< wxDouble >(val2);
27097 ecode3 = SWIG_AsVal_double(obj2, &val3);
27098 if (!SWIG_IsOK(ecode3)) {
27099 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27100 }
27101 arg3 = static_cast< wxDouble >(val3);
27102 ecode4 = SWIG_AsVal_double(obj3, &val4);
27103 if (!SWIG_IsOK(ecode4)) {
27104 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27105 }
27106 arg4 = static_cast< wxDouble >(val4);
27107 ecode5 = SWIG_AsVal_double(obj4, &val5);
27108 if (!SWIG_IsOK(ecode5)) {
27109 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27110 }
27111 arg5 = static_cast< wxDouble >(val5);
27112 {
27113 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
27114 if (PyErr_Occurred()) SWIG_fail;
27115 }
27116 resultobj = SWIG_Py_Void();
27117 return resultobj;
27118 fail:
27119 return NULL;
27120 }
27121
27122
27123 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27124 PyObject *resultobj = 0;
27125 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27126 wxDouble arg2 ;
27127 wxDouble arg3 ;
27128 wxDouble arg4 ;
27129 wxDouble arg5 ;
27130 wxDouble arg6 ;
27131 void *argp1 = 0 ;
27132 int res1 = 0 ;
27133 double val2 ;
27134 int ecode2 = 0 ;
27135 double val3 ;
27136 int ecode3 = 0 ;
27137 double val4 ;
27138 int ecode4 = 0 ;
27139 double val5 ;
27140 int ecode5 = 0 ;
27141 double val6 ;
27142 int ecode6 = 0 ;
27143 PyObject * obj0 = 0 ;
27144 PyObject * obj1 = 0 ;
27145 PyObject * obj2 = 0 ;
27146 PyObject * obj3 = 0 ;
27147 PyObject * obj4 = 0 ;
27148 PyObject * obj5 = 0 ;
27149 char * kwnames[] = {
27150 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
27151 };
27152
27153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27155 if (!SWIG_IsOK(res1)) {
27156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27157 }
27158 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27159 ecode2 = SWIG_AsVal_double(obj1, &val2);
27160 if (!SWIG_IsOK(ecode2)) {
27161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27162 }
27163 arg2 = static_cast< wxDouble >(val2);
27164 ecode3 = SWIG_AsVal_double(obj2, &val3);
27165 if (!SWIG_IsOK(ecode3)) {
27166 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27167 }
27168 arg3 = static_cast< wxDouble >(val3);
27169 ecode4 = SWIG_AsVal_double(obj3, &val4);
27170 if (!SWIG_IsOK(ecode4)) {
27171 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27172 }
27173 arg4 = static_cast< wxDouble >(val4);
27174 ecode5 = SWIG_AsVal_double(obj4, &val5);
27175 if (!SWIG_IsOK(ecode5)) {
27176 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27177 }
27178 arg5 = static_cast< wxDouble >(val5);
27179 ecode6 = SWIG_AsVal_double(obj5, &val6);
27180 if (!SWIG_IsOK(ecode6)) {
27181 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27182 }
27183 arg6 = static_cast< wxDouble >(val6);
27184 {
27185 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
27186 if (PyErr_Occurred()) SWIG_fail;
27187 }
27188 resultobj = SWIG_Py_Void();
27189 return resultobj;
27190 fail:
27191 return NULL;
27192 }
27193
27194
27195 SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27196 PyObject *resultobj = 0;
27197 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27198 void *result = 0 ;
27199 void *argp1 = 0 ;
27200 int res1 = 0 ;
27201 PyObject *swig_obj[1] ;
27202
27203 if (!args) SWIG_fail;
27204 swig_obj[0] = args;
27205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27206 if (!SWIG_IsOK(res1)) {
27207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27208 }
27209 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27210 {
27211 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
27212 if (PyErr_Occurred()) SWIG_fail;
27213 }
27214 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
27215 return resultobj;
27216 fail:
27217 return NULL;
27218 }
27219
27220
27221 SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27222 PyObject *resultobj = 0;
27223 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27224 void *arg2 = (void *) 0 ;
27225 void *argp1 = 0 ;
27226 int res1 = 0 ;
27227 int res2 ;
27228 PyObject * obj0 = 0 ;
27229 PyObject * obj1 = 0 ;
27230 char * kwnames[] = {
27231 (char *) "self",(char *) "p", NULL
27232 };
27233
27234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
27235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27236 if (!SWIG_IsOK(res1)) {
27237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27238 }
27239 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27240 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
27241 if (!SWIG_IsOK(res2)) {
27242 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
27243 }
27244 {
27245 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
27246 if (PyErr_Occurred()) SWIG_fail;
27247 }
27248 resultobj = SWIG_Py_Void();
27249 return resultobj;
27250 fail:
27251 return NULL;
27252 }
27253
27254
27255 SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27256 PyObject *resultobj = 0;
27257 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27258 wxGraphicsMatrix *arg2 = 0 ;
27259 void *argp1 = 0 ;
27260 int res1 = 0 ;
27261 void *argp2 = 0 ;
27262 int res2 = 0 ;
27263 PyObject * obj0 = 0 ;
27264 PyObject * obj1 = 0 ;
27265 char * kwnames[] = {
27266 (char *) "self",(char *) "matrix", NULL
27267 };
27268
27269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
27270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27271 if (!SWIG_IsOK(res1)) {
27272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27273 }
27274 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27275 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
27276 if (!SWIG_IsOK(res2)) {
27277 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27278 }
27279 if (!argp2) {
27280 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27281 }
27282 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
27283 {
27284 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
27285 if (PyErr_Occurred()) SWIG_fail;
27286 }
27287 resultobj = SWIG_Py_Void();
27288 return resultobj;
27289 fail:
27290 return NULL;
27291 }
27292
27293
27294 SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27295 PyObject *resultobj = 0;
27296 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27297 wxRect2DDouble result;
27298 void *argp1 = 0 ;
27299 int res1 = 0 ;
27300 PyObject *swig_obj[1] ;
27301
27302 if (!args) SWIG_fail;
27303 swig_obj[0] = args;
27304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27305 if (!SWIG_IsOK(res1)) {
27306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27307 }
27308 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27309 {
27310 result = ((wxGraphicsPath const *)arg1)->GetBox();
27311 if (PyErr_Occurred()) SWIG_fail;
27312 }
27313 resultobj = SWIG_NewPointerObj((new wxRect2DDouble(static_cast< const wxRect2DDouble& >(result))), SWIGTYPE_p_wxRect2DDouble, SWIG_POINTER_OWN | 0 );
27314 return resultobj;
27315 fail:
27316 return NULL;
27317 }
27318
27319
27320 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27321 PyObject *resultobj = 0;
27322 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27323 wxDouble arg2 ;
27324 wxDouble arg3 ;
27325 int arg4 = (int) wxODDEVEN_RULE ;
27326 bool result;
27327 void *argp1 = 0 ;
27328 int res1 = 0 ;
27329 double val2 ;
27330 int ecode2 = 0 ;
27331 double val3 ;
27332 int ecode3 = 0 ;
27333 int val4 ;
27334 int ecode4 = 0 ;
27335
27336 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
27337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27338 if (!SWIG_IsOK(res1)) {
27339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27340 }
27341 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27342 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27343 if (!SWIG_IsOK(ecode2)) {
27344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
27345 }
27346 arg2 = static_cast< wxDouble >(val2);
27347 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27348 if (!SWIG_IsOK(ecode3)) {
27349 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
27350 }
27351 arg3 = static_cast< wxDouble >(val3);
27352 if (swig_obj[3]) {
27353 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27354 if (!SWIG_IsOK(ecode4)) {
27355 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
27356 }
27357 arg4 = static_cast< int >(val4);
27358 }
27359 {
27360 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
27361 if (PyErr_Occurred()) SWIG_fail;
27362 }
27363 {
27364 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27365 }
27366 return resultobj;
27367 fail:
27368 return NULL;
27369 }
27370
27371
27372 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27373 PyObject *resultobj = 0;
27374 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27375 wxPoint2DDouble *arg2 = 0 ;
27376 int arg3 = (int) wxODDEVEN_RULE ;
27377 bool result;
27378 void *argp1 = 0 ;
27379 int res1 = 0 ;
27380 void *argp2 = 0 ;
27381 int res2 = 0 ;
27382 int val3 ;
27383 int ecode3 = 0 ;
27384
27385 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
27386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27387 if (!SWIG_IsOK(res1)) {
27388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27389 }
27390 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27391 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPoint2DDouble, 0 | 0);
27392 if (!SWIG_IsOK(res2)) {
27393 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
27394 }
27395 if (!argp2) {
27396 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
27397 }
27398 arg2 = reinterpret_cast< wxPoint2DDouble * >(argp2);
27399 if (swig_obj[2]) {
27400 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27401 if (!SWIG_IsOK(ecode3)) {
27402 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
27403 }
27404 arg3 = static_cast< int >(val3);
27405 }
27406 {
27407 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2DDouble const &)*arg2,arg3);
27408 if (PyErr_Occurred()) SWIG_fail;
27409 }
27410 {
27411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27412 }
27413 return resultobj;
27414 fail:
27415 return NULL;
27416 }
27417
27418
27419 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
27420 int argc;
27421 PyObject *argv[5];
27422
27423 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
27424 --argc;
27425 if ((argc >= 2) && (argc <= 3)) {
27426 int _v = 0;
27427 {
27428 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxPoint2DDouble, 0);
27429 _v = SWIG_CheckState(res);
27430 }
27431 if (!_v) goto check_1;
27432 if (argc > 2) {
27433 {
27434 {
27435 int res = SWIG_AsVal_int(argv[2], NULL);
27436 _v = SWIG_CheckState(res);
27437 }
27438 }
27439 if (!_v) goto check_1;
27440 }
27441 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
27442 }
27443 check_1:
27444
27445 if ((argc >= 3) && (argc <= 4)) {
27446 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
27447 }
27448
27449 fail:
27450 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
27451 return NULL;
27452 }
27453
27454
27455 SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27456 PyObject *obj;
27457 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27458 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
27459 return SWIG_Py_Void();
27460 }
27461
27462 SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27463 return SWIG_Python_InitShadowInstance(args);
27464 }
27465
27466 SWIGINTERN int NullGraphicsPen_set(PyObject *) {
27467 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
27468 return 1;
27469 }
27470
27471
27472 SWIGINTERN PyObject *NullGraphicsPen_get(void) {
27473 PyObject *pyobj = 0;
27474
27475 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
27476 return pyobj;
27477 }
27478
27479
27480 SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
27481 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
27482 return 1;
27483 }
27484
27485
27486 SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
27487 PyObject *pyobj = 0;
27488
27489 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
27490 return pyobj;
27491 }
27492
27493
27494 SWIGINTERN int NullGraphicsFont_set(PyObject *) {
27495 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
27496 return 1;
27497 }
27498
27499
27500 SWIGINTERN PyObject *NullGraphicsFont_get(void) {
27501 PyObject *pyobj = 0;
27502
27503 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
27504 return pyobj;
27505 }
27506
27507
27508 SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
27509 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
27510 return 1;
27511 }
27512
27513
27514 SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
27515 PyObject *pyobj = 0;
27516
27517 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
27518 return pyobj;
27519 }
27520
27521
27522 SWIGINTERN int NullGraphicsPath_set(PyObject *) {
27523 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
27524 return 1;
27525 }
27526
27527
27528 SWIGINTERN PyObject *NullGraphicsPath_get(void) {
27529 PyObject *pyobj = 0;
27530
27531 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
27532 return pyobj;
27533 }
27534
27535
27536 SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27537 PyObject *resultobj = 0;
27538 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27539 void *argp1 = 0 ;
27540 int res1 = 0 ;
27541 PyObject *swig_obj[1] ;
27542
27543 if (!args) SWIG_fail;
27544 swig_obj[0] = args;
27545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
27546 if (!SWIG_IsOK(res1)) {
27547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27548 }
27549 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27550 {
27551 delete arg1;
27552
27553 if (PyErr_Occurred()) SWIG_fail;
27554 }
27555 resultobj = SWIG_Py_Void();
27556 return resultobj;
27557 fail:
27558 return NULL;
27559 }
27560
27561
27562 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27563 PyObject *resultobj = 0;
27564 wxWindowDC *arg1 = 0 ;
27565 wxGraphicsContext *result = 0 ;
27566 void *argp1 = 0 ;
27567 int res1 = 0 ;
27568
27569 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
27571 if (!SWIG_IsOK(res1)) {
27572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27573 }
27574 if (!argp1) {
27575 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27576 }
27577 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
27578 {
27579 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
27580 if (PyErr_Occurred()) SWIG_fail;
27581 }
27582 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27583 return resultobj;
27584 fail:
27585 return NULL;
27586 }
27587
27588
27589 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27590 PyObject *resultobj = 0;
27591 wxWindow *arg1 = (wxWindow *) 0 ;
27592 wxGraphicsContext *result = 0 ;
27593 void *argp1 = 0 ;
27594 int res1 = 0 ;
27595
27596 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
27598 if (!SWIG_IsOK(res1)) {
27599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
27600 }
27601 arg1 = reinterpret_cast< wxWindow * >(argp1);
27602 {
27603 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
27604 if (PyErr_Occurred()) SWIG_fail;
27605 }
27606 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27607 return resultobj;
27608 fail:
27609 return NULL;
27610 }
27611
27612
27613 SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
27614 int argc;
27615 PyObject *argv[2];
27616
27617 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
27618 --argc;
27619 if (argc == 1) {
27620 int _v = 0;
27621 {
27622 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
27623 _v = SWIG_CheckState(res);
27624 }
27625 if (!_v) goto check_1;
27626 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
27627 }
27628 check_1:
27629
27630 if (argc == 1) {
27631 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
27632 }
27633
27634 fail:
27635 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
27636 return NULL;
27637 }
27638
27639
27640 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27641 PyObject *resultobj = 0;
27642 wxGraphicsContext *result = 0 ;
27643
27644 if (!SWIG_Python_UnpackTuple(args,"GraphicsContext_CreateMeasuringContext",0,0,0)) SWIG_fail;
27645 {
27646 result = (wxGraphicsContext *)wxGraphicsContext::Create();
27647 if (PyErr_Occurred()) SWIG_fail;
27648 }
27649 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27650 return resultobj;
27651 fail:
27652 return NULL;
27653 }
27654
27655
27656 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27657 PyObject *resultobj = 0;
27658 void *arg1 = (void *) 0 ;
27659 wxGraphicsContext *result = 0 ;
27660 int res1 ;
27661 PyObject * obj0 = 0 ;
27662 char * kwnames[] = {
27663 (char *) "context", NULL
27664 };
27665
27666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
27667 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27668 if (!SWIG_IsOK(res1)) {
27669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
27670 }
27671 {
27672 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
27673 if (PyErr_Occurred()) SWIG_fail;
27674 }
27675 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27676 return resultobj;
27677 fail:
27678 return NULL;
27679 }
27680
27681
27682 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27683 PyObject *resultobj = 0;
27684 void *arg1 = (void *) 0 ;
27685 wxGraphicsContext *result = 0 ;
27686 int res1 ;
27687 PyObject * obj0 = 0 ;
27688 char * kwnames[] = {
27689 (char *) "window", NULL
27690 };
27691
27692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
27693 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27694 if (!SWIG_IsOK(res1)) {
27695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
27696 }
27697 {
27698 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
27699 if (PyErr_Occurred()) SWIG_fail;
27700 }
27701 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27702 return resultobj;
27703 fail:
27704 return NULL;
27705 }
27706
27707
27708 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27709 PyObject *resultobj = 0;
27710 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27711 wxGraphicsPath result;
27712 void *argp1 = 0 ;
27713 int res1 = 0 ;
27714 PyObject *swig_obj[1] ;
27715
27716 if (!args) SWIG_fail;
27717 swig_obj[0] = args;
27718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27719 if (!SWIG_IsOK(res1)) {
27720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27721 }
27722 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27723 {
27724 result = (arg1)->CreatePath();
27725 if (PyErr_Occurred()) SWIG_fail;
27726 }
27727 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
27728 return resultobj;
27729 fail:
27730 return NULL;
27731 }
27732
27733
27734 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27735 PyObject *resultobj = 0;
27736 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27737 wxPen *arg2 = 0 ;
27738 wxGraphicsPen result;
27739 void *argp1 = 0 ;
27740 int res1 = 0 ;
27741 void *argp2 = 0 ;
27742 int res2 = 0 ;
27743 PyObject * obj0 = 0 ;
27744 PyObject * obj1 = 0 ;
27745 char * kwnames[] = {
27746 (char *) "self",(char *) "pen", NULL
27747 };
27748
27749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
27750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27751 if (!SWIG_IsOK(res1)) {
27752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27753 }
27754 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27755 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
27756 if (!SWIG_IsOK(res2)) {
27757 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27758 }
27759 if (!argp2) {
27760 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27761 }
27762 arg2 = reinterpret_cast< wxPen * >(argp2);
27763 {
27764 result = (arg1)->CreatePen((wxPen const &)*arg2);
27765 if (PyErr_Occurred()) SWIG_fail;
27766 }
27767 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
27768 return resultobj;
27769 fail:
27770 return NULL;
27771 }
27772
27773
27774 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27775 PyObject *resultobj = 0;
27776 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27777 wxBrush *arg2 = 0 ;
27778 wxGraphicsBrush result;
27779 void *argp1 = 0 ;
27780 int res1 = 0 ;
27781 void *argp2 = 0 ;
27782 int res2 = 0 ;
27783 PyObject * obj0 = 0 ;
27784 PyObject * obj1 = 0 ;
27785 char * kwnames[] = {
27786 (char *) "self",(char *) "brush", NULL
27787 };
27788
27789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
27790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27791 if (!SWIG_IsOK(res1)) {
27792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27793 }
27794 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27795 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
27796 if (!SWIG_IsOK(res2)) {
27797 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27798 }
27799 if (!argp2) {
27800 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27801 }
27802 arg2 = reinterpret_cast< wxBrush * >(argp2);
27803 {
27804 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
27805 if (PyErr_Occurred()) SWIG_fail;
27806 }
27807 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
27808 return resultobj;
27809 fail:
27810 return NULL;
27811 }
27812
27813
27814 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27815 PyObject *resultobj = 0;
27816 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27817 wxDouble arg2 ;
27818 wxDouble arg3 ;
27819 wxDouble arg4 ;
27820 wxDouble arg5 ;
27821 wxColour *arg6 = 0 ;
27822 wxColour *arg7 = 0 ;
27823 wxGraphicsBrush result;
27824 void *argp1 = 0 ;
27825 int res1 = 0 ;
27826 double val2 ;
27827 int ecode2 = 0 ;
27828 double val3 ;
27829 int ecode3 = 0 ;
27830 double val4 ;
27831 int ecode4 = 0 ;
27832 double val5 ;
27833 int ecode5 = 0 ;
27834 wxColour temp6 ;
27835 wxColour temp7 ;
27836 PyObject * obj0 = 0 ;
27837 PyObject * obj1 = 0 ;
27838 PyObject * obj2 = 0 ;
27839 PyObject * obj3 = 0 ;
27840 PyObject * obj4 = 0 ;
27841 PyObject * obj5 = 0 ;
27842 PyObject * obj6 = 0 ;
27843 char * kwnames[] = {
27844 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
27845 };
27846
27847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27849 if (!SWIG_IsOK(res1)) {
27850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27851 }
27852 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27853 ecode2 = SWIG_AsVal_double(obj1, &val2);
27854 if (!SWIG_IsOK(ecode2)) {
27855 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
27856 }
27857 arg2 = static_cast< wxDouble >(val2);
27858 ecode3 = SWIG_AsVal_double(obj2, &val3);
27859 if (!SWIG_IsOK(ecode3)) {
27860 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
27861 }
27862 arg3 = static_cast< wxDouble >(val3);
27863 ecode4 = SWIG_AsVal_double(obj3, &val4);
27864 if (!SWIG_IsOK(ecode4)) {
27865 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
27866 }
27867 arg4 = static_cast< wxDouble >(val4);
27868 ecode5 = SWIG_AsVal_double(obj4, &val5);
27869 if (!SWIG_IsOK(ecode5)) {
27870 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
27871 }
27872 arg5 = static_cast< wxDouble >(val5);
27873 {
27874 arg6 = &temp6;
27875 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
27876 }
27877 {
27878 arg7 = &temp7;
27879 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
27880 }
27881 {
27882 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
27883 if (PyErr_Occurred()) SWIG_fail;
27884 }
27885 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
27886 return resultobj;
27887 fail:
27888 return NULL;
27889 }
27890
27891
27892 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27893 PyObject *resultobj = 0;
27894 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27895 wxDouble arg2 ;
27896 wxDouble arg3 ;
27897 wxDouble arg4 ;
27898 wxDouble arg5 ;
27899 wxDouble arg6 ;
27900 wxColour *arg7 = 0 ;
27901 wxColour *arg8 = 0 ;
27902 wxGraphicsBrush result;
27903 void *argp1 = 0 ;
27904 int res1 = 0 ;
27905 double val2 ;
27906 int ecode2 = 0 ;
27907 double val3 ;
27908 int ecode3 = 0 ;
27909 double val4 ;
27910 int ecode4 = 0 ;
27911 double val5 ;
27912 int ecode5 = 0 ;
27913 double val6 ;
27914 int ecode6 = 0 ;
27915 wxColour temp7 ;
27916 wxColour temp8 ;
27917 PyObject * obj0 = 0 ;
27918 PyObject * obj1 = 0 ;
27919 PyObject * obj2 = 0 ;
27920 PyObject * obj3 = 0 ;
27921 PyObject * obj4 = 0 ;
27922 PyObject * obj5 = 0 ;
27923 PyObject * obj6 = 0 ;
27924 PyObject * obj7 = 0 ;
27925 char * kwnames[] = {
27926 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
27927 };
27928
27929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
27930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27931 if (!SWIG_IsOK(res1)) {
27932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27933 }
27934 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27935 ecode2 = SWIG_AsVal_double(obj1, &val2);
27936 if (!SWIG_IsOK(ecode2)) {
27937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
27938 }
27939 arg2 = static_cast< wxDouble >(val2);
27940 ecode3 = SWIG_AsVal_double(obj2, &val3);
27941 if (!SWIG_IsOK(ecode3)) {
27942 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
27943 }
27944 arg3 = static_cast< wxDouble >(val3);
27945 ecode4 = SWIG_AsVal_double(obj3, &val4);
27946 if (!SWIG_IsOK(ecode4)) {
27947 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
27948 }
27949 arg4 = static_cast< wxDouble >(val4);
27950 ecode5 = SWIG_AsVal_double(obj4, &val5);
27951 if (!SWIG_IsOK(ecode5)) {
27952 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
27953 }
27954 arg5 = static_cast< wxDouble >(val5);
27955 ecode6 = SWIG_AsVal_double(obj5, &val6);
27956 if (!SWIG_IsOK(ecode6)) {
27957 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
27958 }
27959 arg6 = static_cast< wxDouble >(val6);
27960 {
27961 arg7 = &temp7;
27962 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
27963 }
27964 {
27965 arg8 = &temp8;
27966 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
27967 }
27968 {
27969 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
27970 if (PyErr_Occurred()) SWIG_fail;
27971 }
27972 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
27973 return resultobj;
27974 fail:
27975 return NULL;
27976 }
27977
27978
27979 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27980 PyObject *resultobj = 0;
27981 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27982 wxFont *arg2 = 0 ;
27983 wxColour const &arg3_defvalue = *wxBLACK ;
27984 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
27985 wxGraphicsFont result;
27986 void *argp1 = 0 ;
27987 int res1 = 0 ;
27988 void *argp2 = 0 ;
27989 int res2 = 0 ;
27990 wxColour temp3 ;
27991 PyObject * obj0 = 0 ;
27992 PyObject * obj1 = 0 ;
27993 PyObject * obj2 = 0 ;
27994 char * kwnames[] = {
27995 (char *) "self",(char *) "font",(char *) "col", NULL
27996 };
27997
27998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28000 if (!SWIG_IsOK(res1)) {
28001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28002 }
28003 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28004 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28005 if (!SWIG_IsOK(res2)) {
28006 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28007 }
28008 if (!argp2) {
28009 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28010 }
28011 arg2 = reinterpret_cast< wxFont * >(argp2);
28012 if (obj2) {
28013 {
28014 arg3 = &temp3;
28015 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28016 }
28017 }
28018 {
28019 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
28020 if (PyErr_Occurred()) SWIG_fail;
28021 }
28022 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
28023 return resultobj;
28024 fail:
28025 return NULL;
28026 }
28027
28028
28029 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28030 PyObject *resultobj = 0;
28031 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28032 wxDouble arg2 = (wxDouble) 1.0 ;
28033 wxDouble arg3 = (wxDouble) 0.0 ;
28034 wxDouble arg4 = (wxDouble) 0.0 ;
28035 wxDouble arg5 = (wxDouble) 1.0 ;
28036 wxDouble arg6 = (wxDouble) 0.0 ;
28037 wxDouble arg7 = (wxDouble) 0.0 ;
28038 wxGraphicsMatrix result;
28039 void *argp1 = 0 ;
28040 int res1 = 0 ;
28041 double val2 ;
28042 int ecode2 = 0 ;
28043 double val3 ;
28044 int ecode3 = 0 ;
28045 double val4 ;
28046 int ecode4 = 0 ;
28047 double val5 ;
28048 int ecode5 = 0 ;
28049 double val6 ;
28050 int ecode6 = 0 ;
28051 double val7 ;
28052 int ecode7 = 0 ;
28053 PyObject * obj0 = 0 ;
28054 PyObject * obj1 = 0 ;
28055 PyObject * obj2 = 0 ;
28056 PyObject * obj3 = 0 ;
28057 PyObject * obj4 = 0 ;
28058 PyObject * obj5 = 0 ;
28059 PyObject * obj6 = 0 ;
28060 char * kwnames[] = {
28061 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
28062 };
28063
28064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28066 if (!SWIG_IsOK(res1)) {
28067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28068 }
28069 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28070 if (obj1) {
28071 ecode2 = SWIG_AsVal_double(obj1, &val2);
28072 if (!SWIG_IsOK(ecode2)) {
28073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
28074 }
28075 arg2 = static_cast< wxDouble >(val2);
28076 }
28077 if (obj2) {
28078 ecode3 = SWIG_AsVal_double(obj2, &val3);
28079 if (!SWIG_IsOK(ecode3)) {
28080 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
28081 }
28082 arg3 = static_cast< wxDouble >(val3);
28083 }
28084 if (obj3) {
28085 ecode4 = SWIG_AsVal_double(obj3, &val4);
28086 if (!SWIG_IsOK(ecode4)) {
28087 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
28088 }
28089 arg4 = static_cast< wxDouble >(val4);
28090 }
28091 if (obj4) {
28092 ecode5 = SWIG_AsVal_double(obj4, &val5);
28093 if (!SWIG_IsOK(ecode5)) {
28094 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
28095 }
28096 arg5 = static_cast< wxDouble >(val5);
28097 }
28098 if (obj5) {
28099 ecode6 = SWIG_AsVal_double(obj5, &val6);
28100 if (!SWIG_IsOK(ecode6)) {
28101 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
28102 }
28103 arg6 = static_cast< wxDouble >(val6);
28104 }
28105 if (obj6) {
28106 ecode7 = SWIG_AsVal_double(obj6, &val7);
28107 if (!SWIG_IsOK(ecode7)) {
28108 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
28109 }
28110 arg7 = static_cast< wxDouble >(val7);
28111 }
28112 {
28113 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
28114 if (PyErr_Occurred()) SWIG_fail;
28115 }
28116 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28117 return resultobj;
28118 fail:
28119 return NULL;
28120 }
28121
28122
28123 SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28124 PyObject *resultobj = 0;
28125 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28126 void *argp1 = 0 ;
28127 int res1 = 0 ;
28128 PyObject *swig_obj[1] ;
28129
28130 if (!args) SWIG_fail;
28131 swig_obj[0] = args;
28132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28133 if (!SWIG_IsOK(res1)) {
28134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28135 }
28136 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28137 {
28138 (arg1)->PushState();
28139 if (PyErr_Occurred()) SWIG_fail;
28140 }
28141 resultobj = SWIG_Py_Void();
28142 return resultobj;
28143 fail:
28144 return NULL;
28145 }
28146
28147
28148 SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28149 PyObject *resultobj = 0;
28150 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28151 void *argp1 = 0 ;
28152 int res1 = 0 ;
28153 PyObject *swig_obj[1] ;
28154
28155 if (!args) SWIG_fail;
28156 swig_obj[0] = args;
28157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28158 if (!SWIG_IsOK(res1)) {
28159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28160 }
28161 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28162 {
28163 (arg1)->PopState();
28164 if (PyErr_Occurred()) SWIG_fail;
28165 }
28166 resultobj = SWIG_Py_Void();
28167 return resultobj;
28168 fail:
28169 return NULL;
28170 }
28171
28172
28173 SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28174 PyObject *resultobj = 0;
28175 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28176 wxRegion *arg2 = 0 ;
28177 void *argp1 = 0 ;
28178 int res1 = 0 ;
28179 void *argp2 = 0 ;
28180 int res2 = 0 ;
28181 PyObject * obj0 = 0 ;
28182 PyObject * obj1 = 0 ;
28183 char * kwnames[] = {
28184 (char *) "self",(char *) "region", NULL
28185 };
28186
28187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
28188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28189 if (!SWIG_IsOK(res1)) {
28190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28191 }
28192 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28193 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
28194 if (!SWIG_IsOK(res2)) {
28195 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
28196 }
28197 if (!argp2) {
28198 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
28199 }
28200 arg2 = reinterpret_cast< wxRegion * >(argp2);
28201 {
28202 (arg1)->Clip((wxRegion const &)*arg2);
28203 if (PyErr_Occurred()) SWIG_fail;
28204 }
28205 resultobj = SWIG_Py_Void();
28206 return resultobj;
28207 fail:
28208 return NULL;
28209 }
28210
28211
28212 SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28213 PyObject *resultobj = 0;
28214 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28215 wxDouble arg2 ;
28216 wxDouble arg3 ;
28217 wxDouble arg4 ;
28218 wxDouble arg5 ;
28219 void *argp1 = 0 ;
28220 int res1 = 0 ;
28221 double val2 ;
28222 int ecode2 = 0 ;
28223 double val3 ;
28224 int ecode3 = 0 ;
28225 double val4 ;
28226 int ecode4 = 0 ;
28227 double val5 ;
28228 int ecode5 = 0 ;
28229 PyObject * obj0 = 0 ;
28230 PyObject * obj1 = 0 ;
28231 PyObject * obj2 = 0 ;
28232 PyObject * obj3 = 0 ;
28233 PyObject * obj4 = 0 ;
28234 char * kwnames[] = {
28235 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28236 };
28237
28238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28240 if (!SWIG_IsOK(res1)) {
28241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28242 }
28243 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28244 ecode2 = SWIG_AsVal_double(obj1, &val2);
28245 if (!SWIG_IsOK(ecode2)) {
28246 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
28247 }
28248 arg2 = static_cast< wxDouble >(val2);
28249 ecode3 = SWIG_AsVal_double(obj2, &val3);
28250 if (!SWIG_IsOK(ecode3)) {
28251 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
28252 }
28253 arg3 = static_cast< wxDouble >(val3);
28254 ecode4 = SWIG_AsVal_double(obj3, &val4);
28255 if (!SWIG_IsOK(ecode4)) {
28256 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
28257 }
28258 arg4 = static_cast< wxDouble >(val4);
28259 ecode5 = SWIG_AsVal_double(obj4, &val5);
28260 if (!SWIG_IsOK(ecode5)) {
28261 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
28262 }
28263 arg5 = static_cast< wxDouble >(val5);
28264 {
28265 (arg1)->Clip(arg2,arg3,arg4,arg5);
28266 if (PyErr_Occurred()) SWIG_fail;
28267 }
28268 resultobj = SWIG_Py_Void();
28269 return resultobj;
28270 fail:
28271 return NULL;
28272 }
28273
28274
28275 SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28276 PyObject *resultobj = 0;
28277 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28278 void *argp1 = 0 ;
28279 int res1 = 0 ;
28280 PyObject *swig_obj[1] ;
28281
28282 if (!args) SWIG_fail;
28283 swig_obj[0] = args;
28284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28285 if (!SWIG_IsOK(res1)) {
28286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28287 }
28288 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28289 {
28290 (arg1)->ResetClip();
28291 if (PyErr_Occurred()) SWIG_fail;
28292 }
28293 resultobj = SWIG_Py_Void();
28294 return resultobj;
28295 fail:
28296 return NULL;
28297 }
28298
28299
28300 SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28301 PyObject *resultobj = 0;
28302 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28303 void *result = 0 ;
28304 void *argp1 = 0 ;
28305 int res1 = 0 ;
28306 PyObject *swig_obj[1] ;
28307
28308 if (!args) SWIG_fail;
28309 swig_obj[0] = args;
28310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28311 if (!SWIG_IsOK(res1)) {
28312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28313 }
28314 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28315 {
28316 result = (void *)(arg1)->GetNativeContext();
28317 if (PyErr_Occurred()) SWIG_fail;
28318 }
28319 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
28320 return resultobj;
28321 fail:
28322 return NULL;
28323 }
28324
28325
28326 SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28327 PyObject *resultobj = 0;
28328 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28329 wxDouble arg2 ;
28330 wxDouble arg3 ;
28331 void *argp1 = 0 ;
28332 int res1 = 0 ;
28333 double val2 ;
28334 int ecode2 = 0 ;
28335 double val3 ;
28336 int ecode3 = 0 ;
28337 PyObject * obj0 = 0 ;
28338 PyObject * obj1 = 0 ;
28339 PyObject * obj2 = 0 ;
28340 char * kwnames[] = {
28341 (char *) "self",(char *) "dx",(char *) "dy", NULL
28342 };
28343
28344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28346 if (!SWIG_IsOK(res1)) {
28347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28348 }
28349 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28350 ecode2 = SWIG_AsVal_double(obj1, &val2);
28351 if (!SWIG_IsOK(ecode2)) {
28352 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
28353 }
28354 arg2 = static_cast< wxDouble >(val2);
28355 ecode3 = SWIG_AsVal_double(obj2, &val3);
28356 if (!SWIG_IsOK(ecode3)) {
28357 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
28358 }
28359 arg3 = static_cast< wxDouble >(val3);
28360 {
28361 (arg1)->Translate(arg2,arg3);
28362 if (PyErr_Occurred()) SWIG_fail;
28363 }
28364 resultobj = SWIG_Py_Void();
28365 return resultobj;
28366 fail:
28367 return NULL;
28368 }
28369
28370
28371 SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28372 PyObject *resultobj = 0;
28373 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28374 wxDouble arg2 ;
28375 wxDouble arg3 ;
28376 void *argp1 = 0 ;
28377 int res1 = 0 ;
28378 double val2 ;
28379 int ecode2 = 0 ;
28380 double val3 ;
28381 int ecode3 = 0 ;
28382 PyObject * obj0 = 0 ;
28383 PyObject * obj1 = 0 ;
28384 PyObject * obj2 = 0 ;
28385 char * kwnames[] = {
28386 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
28387 };
28388
28389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28391 if (!SWIG_IsOK(res1)) {
28392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28393 }
28394 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28395 ecode2 = SWIG_AsVal_double(obj1, &val2);
28396 if (!SWIG_IsOK(ecode2)) {
28397 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
28398 }
28399 arg2 = static_cast< wxDouble >(val2);
28400 ecode3 = SWIG_AsVal_double(obj2, &val3);
28401 if (!SWIG_IsOK(ecode3)) {
28402 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
28403 }
28404 arg3 = static_cast< wxDouble >(val3);
28405 {
28406 (arg1)->Scale(arg2,arg3);
28407 if (PyErr_Occurred()) SWIG_fail;
28408 }
28409 resultobj = SWIG_Py_Void();
28410 return resultobj;
28411 fail:
28412 return NULL;
28413 }
28414
28415
28416 SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28417 PyObject *resultobj = 0;
28418 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28419 wxDouble arg2 ;
28420 void *argp1 = 0 ;
28421 int res1 = 0 ;
28422 double val2 ;
28423 int ecode2 = 0 ;
28424 PyObject * obj0 = 0 ;
28425 PyObject * obj1 = 0 ;
28426 char * kwnames[] = {
28427 (char *) "self",(char *) "angle", NULL
28428 };
28429
28430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
28431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28432 if (!SWIG_IsOK(res1)) {
28433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28434 }
28435 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28436 ecode2 = SWIG_AsVal_double(obj1, &val2);
28437 if (!SWIG_IsOK(ecode2)) {
28438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
28439 }
28440 arg2 = static_cast< wxDouble >(val2);
28441 {
28442 (arg1)->Rotate(arg2);
28443 if (PyErr_Occurred()) SWIG_fail;
28444 }
28445 resultobj = SWIG_Py_Void();
28446 return resultobj;
28447 fail:
28448 return NULL;
28449 }
28450
28451
28452 SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28453 PyObject *resultobj = 0;
28454 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28455 wxGraphicsMatrix *arg2 = 0 ;
28456 void *argp1 = 0 ;
28457 int res1 = 0 ;
28458 void *argp2 = 0 ;
28459 int res2 = 0 ;
28460 PyObject * obj0 = 0 ;
28461 PyObject * obj1 = 0 ;
28462 char * kwnames[] = {
28463 (char *) "self",(char *) "matrix", NULL
28464 };
28465
28466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28468 if (!SWIG_IsOK(res1)) {
28469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28470 }
28471 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28472 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28473 if (!SWIG_IsOK(res2)) {
28474 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28475 }
28476 if (!argp2) {
28477 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28478 }
28479 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28480 {
28481 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
28482 if (PyErr_Occurred()) SWIG_fail;
28483 }
28484 resultobj = SWIG_Py_Void();
28485 return resultobj;
28486 fail:
28487 return NULL;
28488 }
28489
28490
28491 SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28492 PyObject *resultobj = 0;
28493 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28494 wxGraphicsMatrix *arg2 = 0 ;
28495 void *argp1 = 0 ;
28496 int res1 = 0 ;
28497 void *argp2 = 0 ;
28498 int res2 = 0 ;
28499 PyObject * obj0 = 0 ;
28500 PyObject * obj1 = 0 ;
28501 char * kwnames[] = {
28502 (char *) "self",(char *) "matrix", NULL
28503 };
28504
28505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28507 if (!SWIG_IsOK(res1)) {
28508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28509 }
28510 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28511 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28512 if (!SWIG_IsOK(res2)) {
28513 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28514 }
28515 if (!argp2) {
28516 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28517 }
28518 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28519 {
28520 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
28521 if (PyErr_Occurred()) SWIG_fail;
28522 }
28523 resultobj = SWIG_Py_Void();
28524 return resultobj;
28525 fail:
28526 return NULL;
28527 }
28528
28529
28530 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28531 PyObject *resultobj = 0;
28532 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28533 wxGraphicsMatrix result;
28534 void *argp1 = 0 ;
28535 int res1 = 0 ;
28536 PyObject *swig_obj[1] ;
28537
28538 if (!args) SWIG_fail;
28539 swig_obj[0] = args;
28540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28541 if (!SWIG_IsOK(res1)) {
28542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28543 }
28544 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28545 {
28546 result = ((wxGraphicsContext const *)arg1)->GetTransform();
28547 if (PyErr_Occurred()) SWIG_fail;
28548 }
28549 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28550 return resultobj;
28551 fail:
28552 return NULL;
28553 }
28554
28555
28556 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28557 PyObject *resultobj = 0;
28558 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28559 wxGraphicsPen *arg2 = 0 ;
28560 void *argp1 = 0 ;
28561 int res1 = 0 ;
28562 void *argp2 = 0 ;
28563 int res2 = 0 ;
28564
28565 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28567 if (!SWIG_IsOK(res1)) {
28568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28569 }
28570 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28571 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
28572 if (!SWIG_IsOK(res2)) {
28573 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28574 }
28575 if (!argp2) {
28576 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28577 }
28578 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
28579 {
28580 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
28581 if (PyErr_Occurred()) SWIG_fail;
28582 }
28583 resultobj = SWIG_Py_Void();
28584 return resultobj;
28585 fail:
28586 return NULL;
28587 }
28588
28589
28590 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28591 PyObject *resultobj = 0;
28592 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28593 wxPen *arg2 = 0 ;
28594 void *argp1 = 0 ;
28595 int res1 = 0 ;
28596 void *argp2 = 0 ;
28597 int res2 = 0 ;
28598
28599 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28601 if (!SWIG_IsOK(res1)) {
28602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28603 }
28604 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28605 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
28606 if (!SWIG_IsOK(res2)) {
28607 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28608 }
28609 if (!argp2) {
28610 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28611 }
28612 arg2 = reinterpret_cast< wxPen * >(argp2);
28613 {
28614 (arg1)->SetPen((wxPen const &)*arg2);
28615 if (PyErr_Occurred()) SWIG_fail;
28616 }
28617 resultobj = SWIG_Py_Void();
28618 return resultobj;
28619 fail:
28620 return NULL;
28621 }
28622
28623
28624 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
28625 int argc;
28626 PyObject *argv[3];
28627
28628 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
28629 --argc;
28630 if (argc == 2) {
28631 int _v = 0;
28632 {
28633 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
28634 _v = SWIG_CheckState(res);
28635 }
28636 if (!_v) goto check_1;
28637 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
28638 }
28639 check_1:
28640
28641 if (argc == 2) {
28642 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
28643 }
28644
28645 fail:
28646 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
28647 return NULL;
28648 }
28649
28650
28651 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28652 PyObject *resultobj = 0;
28653 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28654 wxGraphicsBrush *arg2 = 0 ;
28655 void *argp1 = 0 ;
28656 int res1 = 0 ;
28657 void *argp2 = 0 ;
28658 int res2 = 0 ;
28659
28660 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28662 if (!SWIG_IsOK(res1)) {
28663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28664 }
28665 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28666 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
28667 if (!SWIG_IsOK(res2)) {
28668 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28669 }
28670 if (!argp2) {
28671 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28672 }
28673 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
28674 {
28675 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
28676 if (PyErr_Occurred()) SWIG_fail;
28677 }
28678 resultobj = SWIG_Py_Void();
28679 return resultobj;
28680 fail:
28681 return NULL;
28682 }
28683
28684
28685 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28686 PyObject *resultobj = 0;
28687 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28688 wxBrush *arg2 = 0 ;
28689 void *argp1 = 0 ;
28690 int res1 = 0 ;
28691 void *argp2 = 0 ;
28692 int res2 = 0 ;
28693
28694 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28696 if (!SWIG_IsOK(res1)) {
28697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28698 }
28699 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28700 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
28701 if (!SWIG_IsOK(res2)) {
28702 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28703 }
28704 if (!argp2) {
28705 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28706 }
28707 arg2 = reinterpret_cast< wxBrush * >(argp2);
28708 {
28709 (arg1)->SetBrush((wxBrush const &)*arg2);
28710 if (PyErr_Occurred()) SWIG_fail;
28711 }
28712 resultobj = SWIG_Py_Void();
28713 return resultobj;
28714 fail:
28715 return NULL;
28716 }
28717
28718
28719 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
28720 int argc;
28721 PyObject *argv[3];
28722
28723 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
28724 --argc;
28725 if (argc == 2) {
28726 int _v = 0;
28727 {
28728 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
28729 _v = SWIG_CheckState(res);
28730 }
28731 if (!_v) goto check_1;
28732 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
28733 }
28734 check_1:
28735
28736 if (argc == 2) {
28737 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
28738 }
28739
28740 fail:
28741 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
28742 return NULL;
28743 }
28744
28745
28746 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28747 PyObject *resultobj = 0;
28748 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28749 wxGraphicsFont *arg2 = 0 ;
28750 void *argp1 = 0 ;
28751 int res1 = 0 ;
28752 void *argp2 = 0 ;
28753 int res2 = 0 ;
28754
28755 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28757 if (!SWIG_IsOK(res1)) {
28758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28759 }
28760 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28761 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
28762 if (!SWIG_IsOK(res2)) {
28763 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
28764 }
28765 if (!argp2) {
28766 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
28767 }
28768 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
28769 {
28770 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
28771 if (PyErr_Occurred()) SWIG_fail;
28772 }
28773 resultobj = SWIG_Py_Void();
28774 return resultobj;
28775 fail:
28776 return NULL;
28777 }
28778
28779
28780 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28781 PyObject *resultobj = 0;
28782 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28783 wxFont *arg2 = 0 ;
28784 wxColour const &arg3_defvalue = *wxBLACK ;
28785 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
28786 void *argp1 = 0 ;
28787 int res1 = 0 ;
28788 void *argp2 = 0 ;
28789 int res2 = 0 ;
28790 wxColour temp3 ;
28791
28792 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28794 if (!SWIG_IsOK(res1)) {
28795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28796 }
28797 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28798 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28799 if (!SWIG_IsOK(res2)) {
28800 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28801 }
28802 if (!argp2) {
28803 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28804 }
28805 arg2 = reinterpret_cast< wxFont * >(argp2);
28806 if (swig_obj[2]) {
28807 {
28808 arg3 = &temp3;
28809 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
28810 }
28811 }
28812 {
28813 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
28814 if (PyErr_Occurred()) SWIG_fail;
28815 }
28816 resultobj = SWIG_Py_Void();
28817 return resultobj;
28818 fail:
28819 return NULL;
28820 }
28821
28822
28823 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
28824 int argc;
28825 PyObject *argv[4];
28826
28827 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
28828 --argc;
28829 if (argc == 2) {
28830 int _v = 0;
28831 {
28832 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
28833 _v = SWIG_CheckState(res);
28834 }
28835 if (!_v) goto check_1;
28836 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
28837 }
28838 check_1:
28839
28840 if ((argc >= 2) && (argc <= 3)) {
28841 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
28842 }
28843
28844 fail:
28845 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
28846 return NULL;
28847 }
28848
28849
28850 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28851 PyObject *resultobj = 0;
28852 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28853 wxGraphicsPath *arg2 = 0 ;
28854 void *argp1 = 0 ;
28855 int res1 = 0 ;
28856 void *argp2 = 0 ;
28857 int res2 = 0 ;
28858 PyObject * obj0 = 0 ;
28859 PyObject * obj1 = 0 ;
28860 char * kwnames[] = {
28861 (char *) "self",(char *) "path", NULL
28862 };
28863
28864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
28865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28866 if (!SWIG_IsOK(res1)) {
28867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28868 }
28869 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28870 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
28871 if (!SWIG_IsOK(res2)) {
28872 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28873 }
28874 if (!argp2) {
28875 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28876 }
28877 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28878 {
28879 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
28880 if (PyErr_Occurred()) SWIG_fail;
28881 }
28882 resultobj = SWIG_Py_Void();
28883 return resultobj;
28884 fail:
28885 return NULL;
28886 }
28887
28888
28889 SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28890 PyObject *resultobj = 0;
28891 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28892 wxGraphicsPath *arg2 = 0 ;
28893 int arg3 = (int) wxODDEVEN_RULE ;
28894 void *argp1 = 0 ;
28895 int res1 = 0 ;
28896 void *argp2 = 0 ;
28897 int res2 = 0 ;
28898 int val3 ;
28899 int ecode3 = 0 ;
28900 PyObject * obj0 = 0 ;
28901 PyObject * obj1 = 0 ;
28902 PyObject * obj2 = 0 ;
28903 char * kwnames[] = {
28904 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28905 };
28906
28907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28909 if (!SWIG_IsOK(res1)) {
28910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28911 }
28912 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28913 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
28914 if (!SWIG_IsOK(res2)) {
28915 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28916 }
28917 if (!argp2) {
28918 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28919 }
28920 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28921 if (obj2) {
28922 ecode3 = SWIG_AsVal_int(obj2, &val3);
28923 if (!SWIG_IsOK(ecode3)) {
28924 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
28925 }
28926 arg3 = static_cast< int >(val3);
28927 }
28928 {
28929 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
28930 if (PyErr_Occurred()) SWIG_fail;
28931 }
28932 resultobj = SWIG_Py_Void();
28933 return resultobj;
28934 fail:
28935 return NULL;
28936 }
28937
28938
28939 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28940 PyObject *resultobj = 0;
28941 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28942 wxGraphicsPath *arg2 = 0 ;
28943 int arg3 = (int) wxODDEVEN_RULE ;
28944 void *argp1 = 0 ;
28945 int res1 = 0 ;
28946 void *argp2 = 0 ;
28947 int res2 = 0 ;
28948 int val3 ;
28949 int ecode3 = 0 ;
28950 PyObject * obj0 = 0 ;
28951 PyObject * obj1 = 0 ;
28952 PyObject * obj2 = 0 ;
28953 char * kwnames[] = {
28954 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28955 };
28956
28957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28959 if (!SWIG_IsOK(res1)) {
28960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28961 }
28962 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28963 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
28964 if (!SWIG_IsOK(res2)) {
28965 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28966 }
28967 if (!argp2) {
28968 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28969 }
28970 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28971 if (obj2) {
28972 ecode3 = SWIG_AsVal_int(obj2, &val3);
28973 if (!SWIG_IsOK(ecode3)) {
28974 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
28975 }
28976 arg3 = static_cast< int >(val3);
28977 }
28978 {
28979 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
28980 if (PyErr_Occurred()) SWIG_fail;
28981 }
28982 resultobj = SWIG_Py_Void();
28983 return resultobj;
28984 fail:
28985 return NULL;
28986 }
28987
28988
28989 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28990 PyObject *resultobj = 0;
28991 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28992 wxString *arg2 = 0 ;
28993 wxDouble arg3 ;
28994 wxDouble arg4 ;
28995 wxGraphicsBrush const &arg5_defvalue = wxNullGraphicsBrush ;
28996 wxGraphicsBrush *arg5 = (wxGraphicsBrush *) &arg5_defvalue ;
28997 void *argp1 = 0 ;
28998 int res1 = 0 ;
28999 bool temp2 = false ;
29000 double val3 ;
29001 int ecode3 = 0 ;
29002 double val4 ;
29003 int ecode4 = 0 ;
29004 void *argp5 = 0 ;
29005 int res5 = 0 ;
29006 PyObject * obj0 = 0 ;
29007 PyObject * obj1 = 0 ;
29008 PyObject * obj2 = 0 ;
29009 PyObject * obj3 = 0 ;
29010 PyObject * obj4 = 0 ;
29011 char * kwnames[] = {
29012 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "backgroundBrush", NULL
29013 };
29014
29015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29017 if (!SWIG_IsOK(res1)) {
29018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29019 }
29020 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29021 {
29022 arg2 = wxString_in_helper(obj1);
29023 if (arg2 == NULL) SWIG_fail;
29024 temp2 = true;
29025 }
29026 ecode3 = SWIG_AsVal_double(obj2, &val3);
29027 if (!SWIG_IsOK(ecode3)) {
29028 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
29029 }
29030 arg3 = static_cast< wxDouble >(val3);
29031 ecode4 = SWIG_AsVal_double(obj3, &val4);
29032 if (!SWIG_IsOK(ecode4)) {
29033 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
29034 }
29035 arg4 = static_cast< wxDouble >(val4);
29036 if (obj4) {
29037 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29038 if (!SWIG_IsOK(res5)) {
29039 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29040 }
29041 if (!argp5) {
29042 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29043 }
29044 arg5 = reinterpret_cast< wxGraphicsBrush * >(argp5);
29045 }
29046 {
29047 wxGraphicsContext_DrawText(arg1,(wxString const &)*arg2,arg3,arg4,(wxGraphicsBrush const &)*arg5);
29048 if (PyErr_Occurred()) SWIG_fail;
29049 }
29050 resultobj = SWIG_Py_Void();
29051 {
29052 if (temp2)
29053 delete arg2;
29054 }
29055 return resultobj;
29056 fail:
29057 {
29058 if (temp2)
29059 delete arg2;
29060 }
29061 return NULL;
29062 }
29063
29064
29065 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29066 PyObject *resultobj = 0;
29067 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29068 wxString *arg2 = 0 ;
29069 wxDouble arg3 ;
29070 wxDouble arg4 ;
29071 wxDouble arg5 ;
29072 wxGraphicsBrush const &arg6_defvalue = wxNullGraphicsBrush ;
29073 wxGraphicsBrush *arg6 = (wxGraphicsBrush *) &arg6_defvalue ;
29074 void *argp1 = 0 ;
29075 int res1 = 0 ;
29076 bool temp2 = false ;
29077 double val3 ;
29078 int ecode3 = 0 ;
29079 double val4 ;
29080 int ecode4 = 0 ;
29081 double val5 ;
29082 int ecode5 = 0 ;
29083 void *argp6 = 0 ;
29084 int res6 = 0 ;
29085 PyObject * obj0 = 0 ;
29086 PyObject * obj1 = 0 ;
29087 PyObject * obj2 = 0 ;
29088 PyObject * obj3 = 0 ;
29089 PyObject * obj4 = 0 ;
29090 PyObject * obj5 = 0 ;
29091 char * kwnames[] = {
29092 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle",(char *) "backgroundBrush", NULL
29093 };
29094
29095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29097 if (!SWIG_IsOK(res1)) {
29098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29099 }
29100 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29101 {
29102 arg2 = wxString_in_helper(obj1);
29103 if (arg2 == NULL) SWIG_fail;
29104 temp2 = true;
29105 }
29106 ecode3 = SWIG_AsVal_double(obj2, &val3);
29107 if (!SWIG_IsOK(ecode3)) {
29108 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
29109 }
29110 arg3 = static_cast< wxDouble >(val3);
29111 ecode4 = SWIG_AsVal_double(obj3, &val4);
29112 if (!SWIG_IsOK(ecode4)) {
29113 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
29114 }
29115 arg4 = static_cast< wxDouble >(val4);
29116 ecode5 = SWIG_AsVal_double(obj4, &val5);
29117 if (!SWIG_IsOK(ecode5)) {
29118 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
29119 }
29120 arg5 = static_cast< wxDouble >(val5);
29121 if (obj5) {
29122 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29123 if (!SWIG_IsOK(res6)) {
29124 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
29125 }
29126 if (!argp6) {
29127 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
29128 }
29129 arg6 = reinterpret_cast< wxGraphicsBrush * >(argp6);
29130 }
29131 {
29132 wxGraphicsContext_DrawRotatedText(arg1,(wxString const &)*arg2,arg3,arg4,arg5,(wxGraphicsBrush const &)*arg6);
29133 if (PyErr_Occurred()) SWIG_fail;
29134 }
29135 resultobj = SWIG_Py_Void();
29136 {
29137 if (temp2)
29138 delete arg2;
29139 }
29140 return resultobj;
29141 fail:
29142 {
29143 if (temp2)
29144 delete arg2;
29145 }
29146 return NULL;
29147 }
29148
29149
29150 SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29151 PyObject *resultobj = 0;
29152 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29153 wxString *arg2 = 0 ;
29154 wxDouble *arg3 = (wxDouble *) 0 ;
29155 wxDouble *arg4 = (wxDouble *) 0 ;
29156 wxDouble *arg5 = (wxDouble *) 0 ;
29157 wxDouble *arg6 = (wxDouble *) 0 ;
29158 void *argp1 = 0 ;
29159 int res1 = 0 ;
29160 bool temp2 = false ;
29161 wxDouble temp3 ;
29162 int res3 = SWIG_TMPOBJ ;
29163 wxDouble temp4 ;
29164 int res4 = SWIG_TMPOBJ ;
29165 wxDouble temp5 ;
29166 int res5 = SWIG_TMPOBJ ;
29167 wxDouble temp6 ;
29168 int res6 = SWIG_TMPOBJ ;
29169 PyObject * obj0 = 0 ;
29170 PyObject * obj1 = 0 ;
29171 char * kwnames[] = {
29172 (char *) "self",(char *) "text", NULL
29173 };
29174
29175 arg3 = &temp3;
29176 arg4 = &temp4;
29177 arg5 = &temp5;
29178 arg6 = &temp6;
29179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29181 if (!SWIG_IsOK(res1)) {
29182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29183 }
29184 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29185 {
29186 arg2 = wxString_in_helper(obj1);
29187 if (arg2 == NULL) SWIG_fail;
29188 temp2 = true;
29189 }
29190 {
29191 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
29192 if (PyErr_Occurred()) SWIG_fail;
29193 }
29194 resultobj = SWIG_Py_Void();
29195 if (SWIG_IsTmpObj(res3)) {
29196 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
29197 } else {
29198 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29199 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
29200 }
29201 if (SWIG_IsTmpObj(res4)) {
29202 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
29203 } else {
29204 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29205 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
29206 }
29207 if (SWIG_IsTmpObj(res5)) {
29208 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
29209 } else {
29210 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29211 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
29212 }
29213 if (SWIG_IsTmpObj(res6)) {
29214 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
29215 } else {
29216 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29217 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
29218 }
29219 {
29220 if (temp2)
29221 delete arg2;
29222 }
29223 return resultobj;
29224 fail:
29225 {
29226 if (temp2)
29227 delete arg2;
29228 }
29229 return NULL;
29230 }
29231
29232
29233 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29234 PyObject *resultobj = 0;
29235 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29236 wxString *arg2 = 0 ;
29237 PyObject *result = 0 ;
29238 void *argp1 = 0 ;
29239 int res1 = 0 ;
29240 bool temp2 = false ;
29241 PyObject * obj0 = 0 ;
29242 PyObject * obj1 = 0 ;
29243 char * kwnames[] = {
29244 (char *) "self",(char *) "text", NULL
29245 };
29246
29247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29249 if (!SWIG_IsOK(res1)) {
29250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29251 }
29252 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29253 {
29254 arg2 = wxString_in_helper(obj1);
29255 if (arg2 == NULL) SWIG_fail;
29256 temp2 = true;
29257 }
29258 {
29259 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
29260 if (PyErr_Occurred()) SWIG_fail;
29261 }
29262 resultobj = result;
29263 {
29264 if (temp2)
29265 delete arg2;
29266 }
29267 return resultobj;
29268 fail:
29269 {
29270 if (temp2)
29271 delete arg2;
29272 }
29273 return NULL;
29274 }
29275
29276
29277 SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29278 PyObject *resultobj = 0;
29279 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29280 wxString *arg2 = 0 ;
29281 wxArrayDouble result;
29282 void *argp1 = 0 ;
29283 int res1 = 0 ;
29284 bool temp2 = false ;
29285 PyObject * obj0 = 0 ;
29286 PyObject * obj1 = 0 ;
29287 char * kwnames[] = {
29288 (char *) "self",(char *) "text", NULL
29289 };
29290
29291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
29292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29293 if (!SWIG_IsOK(res1)) {
29294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29295 }
29296 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29297 {
29298 arg2 = wxString_in_helper(obj1);
29299 if (arg2 == NULL) SWIG_fail;
29300 temp2 = true;
29301 }
29302 {
29303 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
29304 if (PyErr_Occurred()) SWIG_fail;
29305 }
29306 {
29307 resultobj = wxArrayDouble2PyList_helper(result);
29308 }
29309 {
29310 if (temp2)
29311 delete arg2;
29312 }
29313 return resultobj;
29314 fail:
29315 {
29316 if (temp2)
29317 delete arg2;
29318 }
29319 return NULL;
29320 }
29321
29322
29323 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29324 PyObject *resultobj = 0;
29325 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29326 wxBitmap *arg2 = 0 ;
29327 wxDouble arg3 ;
29328 wxDouble arg4 ;
29329 wxDouble arg5 ;
29330 wxDouble arg6 ;
29331 void *argp1 = 0 ;
29332 int res1 = 0 ;
29333 void *argp2 = 0 ;
29334 int res2 = 0 ;
29335 double val3 ;
29336 int ecode3 = 0 ;
29337 double val4 ;
29338 int ecode4 = 0 ;
29339 double val5 ;
29340 int ecode5 = 0 ;
29341 double val6 ;
29342 int ecode6 = 0 ;
29343 PyObject * obj0 = 0 ;
29344 PyObject * obj1 = 0 ;
29345 PyObject * obj2 = 0 ;
29346 PyObject * obj3 = 0 ;
29347 PyObject * obj4 = 0 ;
29348 PyObject * obj5 = 0 ;
29349 char * kwnames[] = {
29350 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29351 };
29352
29353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29355 if (!SWIG_IsOK(res1)) {
29356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29357 }
29358 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29359 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29360 if (!SWIG_IsOK(res2)) {
29361 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29362 }
29363 if (!argp2) {
29364 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29365 }
29366 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29367 ecode3 = SWIG_AsVal_double(obj2, &val3);
29368 if (!SWIG_IsOK(ecode3)) {
29369 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
29370 }
29371 arg3 = static_cast< wxDouble >(val3);
29372 ecode4 = SWIG_AsVal_double(obj3, &val4);
29373 if (!SWIG_IsOK(ecode4)) {
29374 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
29375 }
29376 arg4 = static_cast< wxDouble >(val4);
29377 ecode5 = SWIG_AsVal_double(obj4, &val5);
29378 if (!SWIG_IsOK(ecode5)) {
29379 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
29380 }
29381 arg5 = static_cast< wxDouble >(val5);
29382 ecode6 = SWIG_AsVal_double(obj5, &val6);
29383 if (!SWIG_IsOK(ecode6)) {
29384 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
29385 }
29386 arg6 = static_cast< wxDouble >(val6);
29387 {
29388 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
29389 if (PyErr_Occurred()) SWIG_fail;
29390 }
29391 resultobj = SWIG_Py_Void();
29392 return resultobj;
29393 fail:
29394 return NULL;
29395 }
29396
29397
29398 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29399 PyObject *resultobj = 0;
29400 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29401 wxIcon *arg2 = 0 ;
29402 wxDouble arg3 ;
29403 wxDouble arg4 ;
29404 wxDouble arg5 ;
29405 wxDouble arg6 ;
29406 void *argp1 = 0 ;
29407 int res1 = 0 ;
29408 void *argp2 = 0 ;
29409 int res2 = 0 ;
29410 double val3 ;
29411 int ecode3 = 0 ;
29412 double val4 ;
29413 int ecode4 = 0 ;
29414 double val5 ;
29415 int ecode5 = 0 ;
29416 double val6 ;
29417 int ecode6 = 0 ;
29418 PyObject * obj0 = 0 ;
29419 PyObject * obj1 = 0 ;
29420 PyObject * obj2 = 0 ;
29421 PyObject * obj3 = 0 ;
29422 PyObject * obj4 = 0 ;
29423 PyObject * obj5 = 0 ;
29424 char * kwnames[] = {
29425 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29426 };
29427
29428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29430 if (!SWIG_IsOK(res1)) {
29431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29432 }
29433 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29434 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29435 if (!SWIG_IsOK(res2)) {
29436 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29437 }
29438 if (!argp2) {
29439 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29440 }
29441 arg2 = reinterpret_cast< wxIcon * >(argp2);
29442 ecode3 = SWIG_AsVal_double(obj2, &val3);
29443 if (!SWIG_IsOK(ecode3)) {
29444 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
29445 }
29446 arg3 = static_cast< wxDouble >(val3);
29447 ecode4 = SWIG_AsVal_double(obj3, &val4);
29448 if (!SWIG_IsOK(ecode4)) {
29449 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
29450 }
29451 arg4 = static_cast< wxDouble >(val4);
29452 ecode5 = SWIG_AsVal_double(obj4, &val5);
29453 if (!SWIG_IsOK(ecode5)) {
29454 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
29455 }
29456 arg5 = static_cast< wxDouble >(val5);
29457 ecode6 = SWIG_AsVal_double(obj5, &val6);
29458 if (!SWIG_IsOK(ecode6)) {
29459 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
29460 }
29461 arg6 = static_cast< wxDouble >(val6);
29462 {
29463 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
29464 if (PyErr_Occurred()) SWIG_fail;
29465 }
29466 resultobj = SWIG_Py_Void();
29467 return resultobj;
29468 fail:
29469 return NULL;
29470 }
29471
29472
29473 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29474 PyObject *resultobj = 0;
29475 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29476 wxDouble arg2 ;
29477 wxDouble arg3 ;
29478 wxDouble arg4 ;
29479 wxDouble arg5 ;
29480 void *argp1 = 0 ;
29481 int res1 = 0 ;
29482 double val2 ;
29483 int ecode2 = 0 ;
29484 double val3 ;
29485 int ecode3 = 0 ;
29486 double val4 ;
29487 int ecode4 = 0 ;
29488 double val5 ;
29489 int ecode5 = 0 ;
29490 PyObject * obj0 = 0 ;
29491 PyObject * obj1 = 0 ;
29492 PyObject * obj2 = 0 ;
29493 PyObject * obj3 = 0 ;
29494 PyObject * obj4 = 0 ;
29495 char * kwnames[] = {
29496 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
29497 };
29498
29499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29501 if (!SWIG_IsOK(res1)) {
29502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29503 }
29504 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29505 ecode2 = SWIG_AsVal_double(obj1, &val2);
29506 if (!SWIG_IsOK(ecode2)) {
29507 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
29508 }
29509 arg2 = static_cast< wxDouble >(val2);
29510 ecode3 = SWIG_AsVal_double(obj2, &val3);
29511 if (!SWIG_IsOK(ecode3)) {
29512 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
29513 }
29514 arg3 = static_cast< wxDouble >(val3);
29515 ecode4 = SWIG_AsVal_double(obj3, &val4);
29516 if (!SWIG_IsOK(ecode4)) {
29517 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
29518 }
29519 arg4 = static_cast< wxDouble >(val4);
29520 ecode5 = SWIG_AsVal_double(obj4, &val5);
29521 if (!SWIG_IsOK(ecode5)) {
29522 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
29523 }
29524 arg5 = static_cast< wxDouble >(val5);
29525 {
29526 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
29527 if (PyErr_Occurred()) SWIG_fail;
29528 }
29529 resultobj = SWIG_Py_Void();
29530 return resultobj;
29531 fail:
29532 return NULL;
29533 }
29534
29535
29536 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29537 PyObject *resultobj = 0;
29538 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29539 size_t arg2 ;
29540 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29541 void *argp1 = 0 ;
29542 int res1 = 0 ;
29543 PyObject * obj0 = 0 ;
29544 PyObject * obj1 = 0 ;
29545 char * kwnames[] = {
29546 (char *) "self",(char *) "points", NULL
29547 };
29548
29549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
29550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29551 if (!SWIG_IsOK(res1)) {
29552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29553 }
29554 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29555 {
29556 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29557 if (arg3 == NULL) SWIG_fail;
29558 }
29559 {
29560 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
29561 if (PyErr_Occurred()) SWIG_fail;
29562 }
29563 resultobj = SWIG_Py_Void();
29564 {
29565 if (arg3) delete [] arg3;
29566 }
29567 return resultobj;
29568 fail:
29569 {
29570 if (arg3) delete [] arg3;
29571 }
29572 return NULL;
29573 }
29574
29575
29576 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29577 PyObject *resultobj = 0;
29578 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29579 PyObject *arg2 = (PyObject *) 0 ;
29580 PyObject *arg3 = (PyObject *) 0 ;
29581 void *argp1 = 0 ;
29582 int res1 = 0 ;
29583 PyObject * obj0 = 0 ;
29584 PyObject * obj1 = 0 ;
29585 PyObject * obj2 = 0 ;
29586 char * kwnames[] = {
29587 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
29588 };
29589
29590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29592 if (!SWIG_IsOK(res1)) {
29593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29594 }
29595 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29596 arg2 = obj1;
29597 arg3 = obj2;
29598 {
29599 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
29600 if (PyErr_Occurred()) SWIG_fail;
29601 }
29602 resultobj = SWIG_Py_Void();
29603 return resultobj;
29604 fail:
29605 return NULL;
29606 }
29607
29608
29609 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29610 PyObject *resultobj = 0;
29611 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29612 size_t arg2 ;
29613 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29614 int arg4 = (int) wxODDEVEN_RULE ;
29615 void *argp1 = 0 ;
29616 int res1 = 0 ;
29617 int val4 ;
29618 int ecode4 = 0 ;
29619 PyObject * obj0 = 0 ;
29620 PyObject * obj1 = 0 ;
29621 PyObject * obj2 = 0 ;
29622 char * kwnames[] = {
29623 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
29624 };
29625
29626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29628 if (!SWIG_IsOK(res1)) {
29629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29630 }
29631 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29632 {
29633 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29634 if (arg3 == NULL) SWIG_fail;
29635 }
29636 if (obj2) {
29637 ecode4 = SWIG_AsVal_int(obj2, &val4);
29638 if (!SWIG_IsOK(ecode4)) {
29639 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
29640 }
29641 arg4 = static_cast< int >(val4);
29642 }
29643 {
29644 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
29645 if (PyErr_Occurred()) SWIG_fail;
29646 }
29647 resultobj = SWIG_Py_Void();
29648 {
29649 if (arg3) delete [] arg3;
29650 }
29651 return resultobj;
29652 fail:
29653 {
29654 if (arg3) delete [] arg3;
29655 }
29656 return NULL;
29657 }
29658
29659
29660 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29661 PyObject *resultobj = 0;
29662 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29663 wxDouble arg2 ;
29664 wxDouble arg3 ;
29665 wxDouble arg4 ;
29666 wxDouble arg5 ;
29667 void *argp1 = 0 ;
29668 int res1 = 0 ;
29669 double val2 ;
29670 int ecode2 = 0 ;
29671 double val3 ;
29672 int ecode3 = 0 ;
29673 double val4 ;
29674 int ecode4 = 0 ;
29675 double val5 ;
29676 int ecode5 = 0 ;
29677 PyObject * obj0 = 0 ;
29678 PyObject * obj1 = 0 ;
29679 PyObject * obj2 = 0 ;
29680 PyObject * obj3 = 0 ;
29681 PyObject * obj4 = 0 ;
29682 char * kwnames[] = {
29683 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29684 };
29685
29686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29688 if (!SWIG_IsOK(res1)) {
29689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29690 }
29691 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29692 ecode2 = SWIG_AsVal_double(obj1, &val2);
29693 if (!SWIG_IsOK(ecode2)) {
29694 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
29695 }
29696 arg2 = static_cast< wxDouble >(val2);
29697 ecode3 = SWIG_AsVal_double(obj2, &val3);
29698 if (!SWIG_IsOK(ecode3)) {
29699 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
29700 }
29701 arg3 = static_cast< wxDouble >(val3);
29702 ecode4 = SWIG_AsVal_double(obj3, &val4);
29703 if (!SWIG_IsOK(ecode4)) {
29704 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
29705 }
29706 arg4 = static_cast< wxDouble >(val4);
29707 ecode5 = SWIG_AsVal_double(obj4, &val5);
29708 if (!SWIG_IsOK(ecode5)) {
29709 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
29710 }
29711 arg5 = static_cast< wxDouble >(val5);
29712 {
29713 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
29714 if (PyErr_Occurred()) SWIG_fail;
29715 }
29716 resultobj = SWIG_Py_Void();
29717 return resultobj;
29718 fail:
29719 return NULL;
29720 }
29721
29722
29723 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29724 PyObject *resultobj = 0;
29725 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29726 wxDouble arg2 ;
29727 wxDouble arg3 ;
29728 wxDouble arg4 ;
29729 wxDouble arg5 ;
29730 void *argp1 = 0 ;
29731 int res1 = 0 ;
29732 double val2 ;
29733 int ecode2 = 0 ;
29734 double val3 ;
29735 int ecode3 = 0 ;
29736 double val4 ;
29737 int ecode4 = 0 ;
29738 double val5 ;
29739 int ecode5 = 0 ;
29740 PyObject * obj0 = 0 ;
29741 PyObject * obj1 = 0 ;
29742 PyObject * obj2 = 0 ;
29743 PyObject * obj3 = 0 ;
29744 PyObject * obj4 = 0 ;
29745 char * kwnames[] = {
29746 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29747 };
29748
29749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29751 if (!SWIG_IsOK(res1)) {
29752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29753 }
29754 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29755 ecode2 = SWIG_AsVal_double(obj1, &val2);
29756 if (!SWIG_IsOK(ecode2)) {
29757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
29758 }
29759 arg2 = static_cast< wxDouble >(val2);
29760 ecode3 = SWIG_AsVal_double(obj2, &val3);
29761 if (!SWIG_IsOK(ecode3)) {
29762 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
29763 }
29764 arg3 = static_cast< wxDouble >(val3);
29765 ecode4 = SWIG_AsVal_double(obj3, &val4);
29766 if (!SWIG_IsOK(ecode4)) {
29767 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
29768 }
29769 arg4 = static_cast< wxDouble >(val4);
29770 ecode5 = SWIG_AsVal_double(obj4, &val5);
29771 if (!SWIG_IsOK(ecode5)) {
29772 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
29773 }
29774 arg5 = static_cast< wxDouble >(val5);
29775 {
29776 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
29777 if (PyErr_Occurred()) SWIG_fail;
29778 }
29779 resultobj = SWIG_Py_Void();
29780 return resultobj;
29781 fail:
29782 return NULL;
29783 }
29784
29785
29786 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29787 PyObject *resultobj = 0;
29788 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29789 wxDouble arg2 ;
29790 wxDouble arg3 ;
29791 wxDouble arg4 ;
29792 wxDouble arg5 ;
29793 wxDouble arg6 ;
29794 void *argp1 = 0 ;
29795 int res1 = 0 ;
29796 double val2 ;
29797 int ecode2 = 0 ;
29798 double val3 ;
29799 int ecode3 = 0 ;
29800 double val4 ;
29801 int ecode4 = 0 ;
29802 double val5 ;
29803 int ecode5 = 0 ;
29804 double val6 ;
29805 int ecode6 = 0 ;
29806 PyObject * obj0 = 0 ;
29807 PyObject * obj1 = 0 ;
29808 PyObject * obj2 = 0 ;
29809 PyObject * obj3 = 0 ;
29810 PyObject * obj4 = 0 ;
29811 PyObject * obj5 = 0 ;
29812 char * kwnames[] = {
29813 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
29814 };
29815
29816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29818 if (!SWIG_IsOK(res1)) {
29819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29820 }
29821 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29822 ecode2 = SWIG_AsVal_double(obj1, &val2);
29823 if (!SWIG_IsOK(ecode2)) {
29824 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
29825 }
29826 arg2 = static_cast< wxDouble >(val2);
29827 ecode3 = SWIG_AsVal_double(obj2, &val3);
29828 if (!SWIG_IsOK(ecode3)) {
29829 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
29830 }
29831 arg3 = static_cast< wxDouble >(val3);
29832 ecode4 = SWIG_AsVal_double(obj3, &val4);
29833 if (!SWIG_IsOK(ecode4)) {
29834 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
29835 }
29836 arg4 = static_cast< wxDouble >(val4);
29837 ecode5 = SWIG_AsVal_double(obj4, &val5);
29838 if (!SWIG_IsOK(ecode5)) {
29839 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
29840 }
29841 arg5 = static_cast< wxDouble >(val5);
29842 ecode6 = SWIG_AsVal_double(obj5, &val6);
29843 if (!SWIG_IsOK(ecode6)) {
29844 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
29845 }
29846 arg6 = static_cast< wxDouble >(val6);
29847 {
29848 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
29849 if (PyErr_Occurred()) SWIG_fail;
29850 }
29851 resultobj = SWIG_Py_Void();
29852 return resultobj;
29853 fail:
29854 return NULL;
29855 }
29856
29857
29858 SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29859 PyObject *resultobj = 0;
29860 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29861 bool result;
29862 void *argp1 = 0 ;
29863 int res1 = 0 ;
29864 PyObject *swig_obj[1] ;
29865
29866 if (!args) SWIG_fail;
29867 swig_obj[0] = args;
29868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29869 if (!SWIG_IsOK(res1)) {
29870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29871 }
29872 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29873 {
29874 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
29875 if (PyErr_Occurred()) SWIG_fail;
29876 }
29877 {
29878 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29879 }
29880 return resultobj;
29881 fail:
29882 return NULL;
29883 }
29884
29885
29886 SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29887 PyObject *obj;
29888 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29889 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
29890 return SWIG_Py_Void();
29891 }
29892
29893 SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29894 PyObject *resultobj = 0;
29895 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29896 void *argp1 = 0 ;
29897 int res1 = 0 ;
29898 PyObject *swig_obj[1] ;
29899
29900 if (!args) SWIG_fail;
29901 swig_obj[0] = args;
29902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
29903 if (!SWIG_IsOK(res1)) {
29904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29905 }
29906 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29907 {
29908 delete arg1;
29909
29910 if (PyErr_Occurred()) SWIG_fail;
29911 }
29912 resultobj = SWIG_Py_Void();
29913 return resultobj;
29914 fail:
29915 return NULL;
29916 }
29917
29918
29919 SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29920 PyObject *resultobj = 0;
29921 wxGraphicsRenderer *result = 0 ;
29922
29923 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
29924 {
29925 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
29926 if (PyErr_Occurred()) SWIG_fail;
29927 }
29928 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29929 return resultobj;
29930 fail:
29931 return NULL;
29932 }
29933
29934
29935 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29936 PyObject *resultobj = 0;
29937 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29938 wxWindowDC *arg2 = 0 ;
29939 wxGraphicsContext *result = 0 ;
29940 void *argp1 = 0 ;
29941 int res1 = 0 ;
29942 void *argp2 = 0 ;
29943 int res2 = 0 ;
29944
29945 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29947 if (!SWIG_IsOK(res1)) {
29948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29949 }
29950 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29951 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
29952 if (!SWIG_IsOK(res2)) {
29953 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29954 }
29955 if (!argp2) {
29956 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29957 }
29958 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
29959 {
29960 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
29961 if (PyErr_Occurred()) SWIG_fail;
29962 }
29963 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
29964 return resultobj;
29965 fail:
29966 return NULL;
29967 }
29968
29969
29970 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29971 PyObject *resultobj = 0;
29972 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29973 wxWindow *arg2 = (wxWindow *) 0 ;
29974 wxGraphicsContext *result = 0 ;
29975 void *argp1 = 0 ;
29976 int res1 = 0 ;
29977 void *argp2 = 0 ;
29978 int res2 = 0 ;
29979
29980 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29982 if (!SWIG_IsOK(res1)) {
29983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29984 }
29985 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29986 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29987 if (!SWIG_IsOK(res2)) {
29988 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
29989 }
29990 arg2 = reinterpret_cast< wxWindow * >(argp2);
29991 {
29992 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
29993 if (PyErr_Occurred()) SWIG_fail;
29994 }
29995 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
29996 return resultobj;
29997 fail:
29998 return NULL;
29999 }
30000
30001
30002 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
30003 int argc;
30004 PyObject *argv[3];
30005
30006 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
30007 --argc;
30008 if (argc == 2) {
30009 int _v = 0;
30010 {
30011 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
30012 _v = SWIG_CheckState(res);
30013 }
30014 if (!_v) goto check_1;
30015 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
30016 }
30017 check_1:
30018
30019 if (argc == 2) {
30020 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
30021 }
30022
30023 fail:
30024 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
30025 return NULL;
30026 }
30027
30028
30029 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30030 PyObject *resultobj = 0;
30031 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30032 wxGraphicsContext *result = 0 ;
30033 void *argp1 = 0 ;
30034 int res1 = 0 ;
30035 PyObject *swig_obj[1] ;
30036
30037 if (!args) SWIG_fail;
30038 swig_obj[0] = args;
30039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30040 if (!SWIG_IsOK(res1)) {
30041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMeasuringContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30042 }
30043 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30044 {
30045 result = (wxGraphicsContext *)(arg1)->CreateMeasuringContext();
30046 if (PyErr_Occurred()) SWIG_fail;
30047 }
30048 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30049 return resultobj;
30050 fail:
30051 return NULL;
30052 }
30053
30054
30055 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30056 PyObject *resultobj = 0;
30057 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30058 void *arg2 = (void *) 0 ;
30059 wxGraphicsContext *result = 0 ;
30060 void *argp1 = 0 ;
30061 int res1 = 0 ;
30062 int res2 ;
30063 PyObject * obj0 = 0 ;
30064 PyObject * obj1 = 0 ;
30065 char * kwnames[] = {
30066 (char *) "self",(char *) "context", NULL
30067 };
30068
30069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
30070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30071 if (!SWIG_IsOK(res1)) {
30072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30073 }
30074 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30075 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30076 if (!SWIG_IsOK(res2)) {
30077 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
30078 }
30079 {
30080 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
30081 if (PyErr_Occurred()) SWIG_fail;
30082 }
30083 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30084 return resultobj;
30085 fail:
30086 return NULL;
30087 }
30088
30089
30090 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30091 PyObject *resultobj = 0;
30092 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30093 void *arg2 = (void *) 0 ;
30094 wxGraphicsContext *result = 0 ;
30095 void *argp1 = 0 ;
30096 int res1 = 0 ;
30097 int res2 ;
30098 PyObject * obj0 = 0 ;
30099 PyObject * obj1 = 0 ;
30100 char * kwnames[] = {
30101 (char *) "self",(char *) "window", NULL
30102 };
30103
30104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
30105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30106 if (!SWIG_IsOK(res1)) {
30107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30108 }
30109 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30110 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30111 if (!SWIG_IsOK(res2)) {
30112 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
30113 }
30114 {
30115 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
30116 if (PyErr_Occurred()) SWIG_fail;
30117 }
30118 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30119 return resultobj;
30120 fail:
30121 return NULL;
30122 }
30123
30124
30125 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30126 PyObject *resultobj = 0;
30127 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30128 wxGraphicsPath result;
30129 void *argp1 = 0 ;
30130 int res1 = 0 ;
30131 PyObject *swig_obj[1] ;
30132
30133 if (!args) SWIG_fail;
30134 swig_obj[0] = args;
30135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30136 if (!SWIG_IsOK(res1)) {
30137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30138 }
30139 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30140 {
30141 result = (arg1)->CreatePath();
30142 if (PyErr_Occurred()) SWIG_fail;
30143 }
30144 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
30145 return resultobj;
30146 fail:
30147 return NULL;
30148 }
30149
30150
30151 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30152 PyObject *resultobj = 0;
30153 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30154 wxDouble arg2 = (wxDouble) 1.0 ;
30155 wxDouble arg3 = (wxDouble) 0.0 ;
30156 wxDouble arg4 = (wxDouble) 0.0 ;
30157 wxDouble arg5 = (wxDouble) 1.0 ;
30158 wxDouble arg6 = (wxDouble) 0.0 ;
30159 wxDouble arg7 = (wxDouble) 0.0 ;
30160 wxGraphicsMatrix result;
30161 void *argp1 = 0 ;
30162 int res1 = 0 ;
30163 double val2 ;
30164 int ecode2 = 0 ;
30165 double val3 ;
30166 int ecode3 = 0 ;
30167 double val4 ;
30168 int ecode4 = 0 ;
30169 double val5 ;
30170 int ecode5 = 0 ;
30171 double val6 ;
30172 int ecode6 = 0 ;
30173 double val7 ;
30174 int ecode7 = 0 ;
30175 PyObject * obj0 = 0 ;
30176 PyObject * obj1 = 0 ;
30177 PyObject * obj2 = 0 ;
30178 PyObject * obj3 = 0 ;
30179 PyObject * obj4 = 0 ;
30180 PyObject * obj5 = 0 ;
30181 PyObject * obj6 = 0 ;
30182 char * kwnames[] = {
30183 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
30184 };
30185
30186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30188 if (!SWIG_IsOK(res1)) {
30189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30190 }
30191 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30192 if (obj1) {
30193 ecode2 = SWIG_AsVal_double(obj1, &val2);
30194 if (!SWIG_IsOK(ecode2)) {
30195 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
30196 }
30197 arg2 = static_cast< wxDouble >(val2);
30198 }
30199 if (obj2) {
30200 ecode3 = SWIG_AsVal_double(obj2, &val3);
30201 if (!SWIG_IsOK(ecode3)) {
30202 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
30203 }
30204 arg3 = static_cast< wxDouble >(val3);
30205 }
30206 if (obj3) {
30207 ecode4 = SWIG_AsVal_double(obj3, &val4);
30208 if (!SWIG_IsOK(ecode4)) {
30209 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
30210 }
30211 arg4 = static_cast< wxDouble >(val4);
30212 }
30213 if (obj4) {
30214 ecode5 = SWIG_AsVal_double(obj4, &val5);
30215 if (!SWIG_IsOK(ecode5)) {
30216 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
30217 }
30218 arg5 = static_cast< wxDouble >(val5);
30219 }
30220 if (obj5) {
30221 ecode6 = SWIG_AsVal_double(obj5, &val6);
30222 if (!SWIG_IsOK(ecode6)) {
30223 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
30224 }
30225 arg6 = static_cast< wxDouble >(val6);
30226 }
30227 if (obj6) {
30228 ecode7 = SWIG_AsVal_double(obj6, &val7);
30229 if (!SWIG_IsOK(ecode7)) {
30230 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
30231 }
30232 arg7 = static_cast< wxDouble >(val7);
30233 }
30234 {
30235 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
30236 if (PyErr_Occurred()) SWIG_fail;
30237 }
30238 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
30239 return resultobj;
30240 fail:
30241 return NULL;
30242 }
30243
30244
30245 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30246 PyObject *resultobj = 0;
30247 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30248 wxPen *arg2 = 0 ;
30249 wxGraphicsPen result;
30250 void *argp1 = 0 ;
30251 int res1 = 0 ;
30252 void *argp2 = 0 ;
30253 int res2 = 0 ;
30254 PyObject * obj0 = 0 ;
30255 PyObject * obj1 = 0 ;
30256 char * kwnames[] = {
30257 (char *) "self",(char *) "pen", NULL
30258 };
30259
30260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
30261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30262 if (!SWIG_IsOK(res1)) {
30263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30264 }
30265 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30266 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
30267 if (!SWIG_IsOK(res2)) {
30268 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30269 }
30270 if (!argp2) {
30271 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30272 }
30273 arg2 = reinterpret_cast< wxPen * >(argp2);
30274 {
30275 result = (arg1)->CreatePen((wxPen const &)*arg2);
30276 if (PyErr_Occurred()) SWIG_fail;
30277 }
30278 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
30279 return resultobj;
30280 fail:
30281 return NULL;
30282 }
30283
30284
30285 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30286 PyObject *resultobj = 0;
30287 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30288 wxBrush *arg2 = 0 ;
30289 wxGraphicsBrush result;
30290 void *argp1 = 0 ;
30291 int res1 = 0 ;
30292 void *argp2 = 0 ;
30293 int res2 = 0 ;
30294 PyObject * obj0 = 0 ;
30295 PyObject * obj1 = 0 ;
30296 char * kwnames[] = {
30297 (char *) "self",(char *) "brush", NULL
30298 };
30299
30300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30302 if (!SWIG_IsOK(res1)) {
30303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30304 }
30305 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30306 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30307 if (!SWIG_IsOK(res2)) {
30308 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30309 }
30310 if (!argp2) {
30311 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30312 }
30313 arg2 = reinterpret_cast< wxBrush * >(argp2);
30314 {
30315 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
30316 if (PyErr_Occurred()) SWIG_fail;
30317 }
30318 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30319 return resultobj;
30320 fail:
30321 return NULL;
30322 }
30323
30324
30325 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30326 PyObject *resultobj = 0;
30327 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30328 wxDouble arg2 ;
30329 wxDouble arg3 ;
30330 wxDouble arg4 ;
30331 wxDouble arg5 ;
30332 wxColour *arg6 = 0 ;
30333 wxColour *arg7 = 0 ;
30334 wxGraphicsBrush result;
30335 void *argp1 = 0 ;
30336 int res1 = 0 ;
30337 double val2 ;
30338 int ecode2 = 0 ;
30339 double val3 ;
30340 int ecode3 = 0 ;
30341 double val4 ;
30342 int ecode4 = 0 ;
30343 double val5 ;
30344 int ecode5 = 0 ;
30345 wxColour temp6 ;
30346 wxColour temp7 ;
30347 PyObject * obj0 = 0 ;
30348 PyObject * obj1 = 0 ;
30349 PyObject * obj2 = 0 ;
30350 PyObject * obj3 = 0 ;
30351 PyObject * obj4 = 0 ;
30352 PyObject * obj5 = 0 ;
30353 PyObject * obj6 = 0 ;
30354 char * kwnames[] = {
30355 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
30356 };
30357
30358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30360 if (!SWIG_IsOK(res1)) {
30361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30362 }
30363 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30364 ecode2 = SWIG_AsVal_double(obj1, &val2);
30365 if (!SWIG_IsOK(ecode2)) {
30366 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
30367 }
30368 arg2 = static_cast< wxDouble >(val2);
30369 ecode3 = SWIG_AsVal_double(obj2, &val3);
30370 if (!SWIG_IsOK(ecode3)) {
30371 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
30372 }
30373 arg3 = static_cast< wxDouble >(val3);
30374 ecode4 = SWIG_AsVal_double(obj3, &val4);
30375 if (!SWIG_IsOK(ecode4)) {
30376 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
30377 }
30378 arg4 = static_cast< wxDouble >(val4);
30379 ecode5 = SWIG_AsVal_double(obj4, &val5);
30380 if (!SWIG_IsOK(ecode5)) {
30381 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
30382 }
30383 arg5 = static_cast< wxDouble >(val5);
30384 {
30385 arg6 = &temp6;
30386 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
30387 }
30388 {
30389 arg7 = &temp7;
30390 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30391 }
30392 {
30393 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
30394 if (PyErr_Occurred()) SWIG_fail;
30395 }
30396 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30397 return resultobj;
30398 fail:
30399 return NULL;
30400 }
30401
30402
30403 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30404 PyObject *resultobj = 0;
30405 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30406 wxDouble arg2 ;
30407 wxDouble arg3 ;
30408 wxDouble arg4 ;
30409 wxDouble arg5 ;
30410 wxDouble arg6 ;
30411 wxColour *arg7 = 0 ;
30412 wxColour *arg8 = 0 ;
30413 wxGraphicsBrush result;
30414 void *argp1 = 0 ;
30415 int res1 = 0 ;
30416 double val2 ;
30417 int ecode2 = 0 ;
30418 double val3 ;
30419 int ecode3 = 0 ;
30420 double val4 ;
30421 int ecode4 = 0 ;
30422 double val5 ;
30423 int ecode5 = 0 ;
30424 double val6 ;
30425 int ecode6 = 0 ;
30426 wxColour temp7 ;
30427 wxColour temp8 ;
30428 PyObject * obj0 = 0 ;
30429 PyObject * obj1 = 0 ;
30430 PyObject * obj2 = 0 ;
30431 PyObject * obj3 = 0 ;
30432 PyObject * obj4 = 0 ;
30433 PyObject * obj5 = 0 ;
30434 PyObject * obj6 = 0 ;
30435 PyObject * obj7 = 0 ;
30436 char * kwnames[] = {
30437 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
30438 };
30439
30440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
30441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30442 if (!SWIG_IsOK(res1)) {
30443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30444 }
30445 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30446 ecode2 = SWIG_AsVal_double(obj1, &val2);
30447 if (!SWIG_IsOK(ecode2)) {
30448 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
30449 }
30450 arg2 = static_cast< wxDouble >(val2);
30451 ecode3 = SWIG_AsVal_double(obj2, &val3);
30452 if (!SWIG_IsOK(ecode3)) {
30453 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
30454 }
30455 arg3 = static_cast< wxDouble >(val3);
30456 ecode4 = SWIG_AsVal_double(obj3, &val4);
30457 if (!SWIG_IsOK(ecode4)) {
30458 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
30459 }
30460 arg4 = static_cast< wxDouble >(val4);
30461 ecode5 = SWIG_AsVal_double(obj4, &val5);
30462 if (!SWIG_IsOK(ecode5)) {
30463 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
30464 }
30465 arg5 = static_cast< wxDouble >(val5);
30466 ecode6 = SWIG_AsVal_double(obj5, &val6);
30467 if (!SWIG_IsOK(ecode6)) {
30468 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
30469 }
30470 arg6 = static_cast< wxDouble >(val6);
30471 {
30472 arg7 = &temp7;
30473 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30474 }
30475 {
30476 arg8 = &temp8;
30477 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
30478 }
30479 {
30480 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
30481 if (PyErr_Occurred()) SWIG_fail;
30482 }
30483 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30484 return resultobj;
30485 fail:
30486 return NULL;
30487 }
30488
30489
30490 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30491 PyObject *resultobj = 0;
30492 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30493 wxFont *arg2 = 0 ;
30494 wxColour const &arg3_defvalue = *wxBLACK ;
30495 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
30496 wxGraphicsFont result;
30497 void *argp1 = 0 ;
30498 int res1 = 0 ;
30499 void *argp2 = 0 ;
30500 int res2 = 0 ;
30501 wxColour temp3 ;
30502 PyObject * obj0 = 0 ;
30503 PyObject * obj1 = 0 ;
30504 PyObject * obj2 = 0 ;
30505 char * kwnames[] = {
30506 (char *) "self",(char *) "font",(char *) "col", NULL
30507 };
30508
30509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30511 if (!SWIG_IsOK(res1)) {
30512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30513 }
30514 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30515 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
30516 if (!SWIG_IsOK(res2)) {
30517 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30518 }
30519 if (!argp2) {
30520 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30521 }
30522 arg2 = reinterpret_cast< wxFont * >(argp2);
30523 if (obj2) {
30524 {
30525 arg3 = &temp3;
30526 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30527 }
30528 }
30529 {
30530 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
30531 if (PyErr_Occurred()) SWIG_fail;
30532 }
30533 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
30534 return resultobj;
30535 fail:
30536 return NULL;
30537 }
30538
30539
30540 SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30541 PyObject *obj;
30542 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30543 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
30544 return SWIG_Py_Void();
30545 }
30546
30547 SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30548 PyObject *resultobj = 0;
30549 wxWindowDC *arg1 = 0 ;
30550 wxGCDC *result = 0 ;
30551 void *argp1 = 0 ;
30552 int res1 = 0 ;
30553 PyObject * obj0 = 0 ;
30554 char * kwnames[] = {
30555 (char *) "dc", NULL
30556 };
30557
30558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
30559 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
30560 if (!SWIG_IsOK(res1)) {
30561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30562 }
30563 if (!argp1) {
30564 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30565 }
30566 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
30567 {
30568 if (!wxPyCheckForApp()) SWIG_fail;
30569 PyThreadState* __tstate = wxPyBeginAllowThreads();
30570 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
30571 wxPyEndAllowThreads(__tstate);
30572 if (PyErr_Occurred()) SWIG_fail;
30573 }
30574 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30575 return resultobj;
30576 fail:
30577 return NULL;
30578 }
30579
30580
30581 SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30582 PyObject *resultobj = 0;
30583 wxGCDC *arg1 = (wxGCDC *) 0 ;
30584 void *argp1 = 0 ;
30585 int res1 = 0 ;
30586 PyObject *swig_obj[1] ;
30587
30588 if (!args) SWIG_fail;
30589 swig_obj[0] = args;
30590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
30591 if (!SWIG_IsOK(res1)) {
30592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
30593 }
30594 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30595 {
30596 delete arg1;
30597
30598 if (PyErr_Occurred()) SWIG_fail;
30599 }
30600 resultobj = SWIG_Py_Void();
30601 return resultobj;
30602 fail:
30603 return NULL;
30604 }
30605
30606
30607 SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30608 PyObject *resultobj = 0;
30609 wxGCDC *arg1 = (wxGCDC *) 0 ;
30610 wxGraphicsContext *result = 0 ;
30611 void *argp1 = 0 ;
30612 int res1 = 0 ;
30613 PyObject *swig_obj[1] ;
30614
30615 if (!args) SWIG_fail;
30616 swig_obj[0] = args;
30617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30618 if (!SWIG_IsOK(res1)) {
30619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
30620 }
30621 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30622 {
30623 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
30624 if (PyErr_Occurred()) SWIG_fail;
30625 }
30626 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30627 return resultobj;
30628 fail:
30629 return NULL;
30630 }
30631
30632
30633 SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30634 PyObject *resultobj = 0;
30635 wxGCDC *arg1 = (wxGCDC *) 0 ;
30636 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
30637 void *argp1 = 0 ;
30638 int res1 = 0 ;
30639 void *argp2 = 0 ;
30640 int res2 = 0 ;
30641 PyObject * obj0 = 0 ;
30642 PyObject * obj1 = 0 ;
30643 char * kwnames[] = {
30644 (char *) "self",(char *) "ctx", NULL
30645 };
30646
30647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
30648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30649 if (!SWIG_IsOK(res1)) {
30650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
30651 }
30652 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30653 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30654 if (!SWIG_IsOK(res2)) {
30655 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
30656 }
30657 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
30658 {
30659 (arg1)->SetGraphicsContext(arg2);
30660 if (PyErr_Occurred()) SWIG_fail;
30661 }
30662 resultobj = SWIG_Py_Void();
30663 return resultobj;
30664 fail:
30665 return NULL;
30666 }
30667
30668
30669 SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30670 PyObject *obj;
30671 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30672 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
30673 return SWIG_Py_Void();
30674 }
30675
30676 SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30677 return SWIG_Python_InitShadowInstance(args);
30678 }
30679
30680 SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30681 PyObject *resultobj = 0;
30682 wxOverlay *result = 0 ;
30683
30684 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
30685 {
30686 PyThreadState* __tstate = wxPyBeginAllowThreads();
30687 result = (wxOverlay *)new wxOverlay();
30688 wxPyEndAllowThreads(__tstate);
30689 if (PyErr_Occurred()) SWIG_fail;
30690 }
30691 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
30692 return resultobj;
30693 fail:
30694 return NULL;
30695 }
30696
30697
30698 SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30699 PyObject *resultobj = 0;
30700 wxOverlay *arg1 = (wxOverlay *) 0 ;
30701 void *argp1 = 0 ;
30702 int res1 = 0 ;
30703 PyObject *swig_obj[1] ;
30704
30705 if (!args) SWIG_fail;
30706 swig_obj[0] = args;
30707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
30708 if (!SWIG_IsOK(res1)) {
30709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
30710 }
30711 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30712 {
30713 PyThreadState* __tstate = wxPyBeginAllowThreads();
30714 delete arg1;
30715
30716 wxPyEndAllowThreads(__tstate);
30717 if (PyErr_Occurred()) SWIG_fail;
30718 }
30719 resultobj = SWIG_Py_Void();
30720 return resultobj;
30721 fail:
30722 return NULL;
30723 }
30724
30725
30726 SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30727 PyObject *resultobj = 0;
30728 wxOverlay *arg1 = (wxOverlay *) 0 ;
30729 void *argp1 = 0 ;
30730 int res1 = 0 ;
30731 PyObject *swig_obj[1] ;
30732
30733 if (!args) SWIG_fail;
30734 swig_obj[0] = args;
30735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
30736 if (!SWIG_IsOK(res1)) {
30737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
30738 }
30739 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30740 {
30741 PyThreadState* __tstate = wxPyBeginAllowThreads();
30742 (arg1)->Reset();
30743 wxPyEndAllowThreads(__tstate);
30744 if (PyErr_Occurred()) SWIG_fail;
30745 }
30746 resultobj = SWIG_Py_Void();
30747 return resultobj;
30748 fail:
30749 return NULL;
30750 }
30751
30752
30753 SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30754 PyObject *obj;
30755 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30756 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
30757 return SWIG_Py_Void();
30758 }
30759
30760 SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30761 return SWIG_Python_InitShadowInstance(args);
30762 }
30763
30764 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30765 PyObject *resultobj = 0;
30766 wxOverlay *arg1 = 0 ;
30767 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30768 int arg3 ;
30769 int arg4 ;
30770 int arg5 ;
30771 int arg6 ;
30772 wxDCOverlay *result = 0 ;
30773 void *argp1 = 0 ;
30774 int res1 = 0 ;
30775 void *argp2 = 0 ;
30776 int res2 = 0 ;
30777 int val3 ;
30778 int ecode3 = 0 ;
30779 int val4 ;
30780 int ecode4 = 0 ;
30781 int val5 ;
30782 int ecode5 = 0 ;
30783 int val6 ;
30784 int ecode6 = 0 ;
30785
30786 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
30787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30788 if (!SWIG_IsOK(res1)) {
30789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30790 }
30791 if (!argp1) {
30792 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30793 }
30794 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30795 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30796 if (!SWIG_IsOK(res2)) {
30797 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30798 }
30799 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30800 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
30801 if (!SWIG_IsOK(ecode3)) {
30802 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
30803 }
30804 arg3 = static_cast< int >(val3);
30805 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
30806 if (!SWIG_IsOK(ecode4)) {
30807 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
30808 }
30809 arg4 = static_cast< int >(val4);
30810 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
30811 if (!SWIG_IsOK(ecode5)) {
30812 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
30813 }
30814 arg5 = static_cast< int >(val5);
30815 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
30816 if (!SWIG_IsOK(ecode6)) {
30817 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
30818 }
30819 arg6 = static_cast< int >(val6);
30820 {
30821 PyThreadState* __tstate = wxPyBeginAllowThreads();
30822 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
30823 wxPyEndAllowThreads(__tstate);
30824 if (PyErr_Occurred()) SWIG_fail;
30825 }
30826 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30827 return resultobj;
30828 fail:
30829 return NULL;
30830 }
30831
30832
30833 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30834 PyObject *resultobj = 0;
30835 wxOverlay *arg1 = 0 ;
30836 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30837 wxDCOverlay *result = 0 ;
30838 void *argp1 = 0 ;
30839 int res1 = 0 ;
30840 void *argp2 = 0 ;
30841 int res2 = 0 ;
30842
30843 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30845 if (!SWIG_IsOK(res1)) {
30846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30847 }
30848 if (!argp1) {
30849 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30850 }
30851 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30852 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30853 if (!SWIG_IsOK(res2)) {
30854 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30855 }
30856 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30857 {
30858 PyThreadState* __tstate = wxPyBeginAllowThreads();
30859 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
30860 wxPyEndAllowThreads(__tstate);
30861 if (PyErr_Occurred()) SWIG_fail;
30862 }
30863 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30864 return resultobj;
30865 fail:
30866 return NULL;
30867 }
30868
30869
30870 SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
30871 int argc;
30872 PyObject *argv[7];
30873
30874 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
30875 --argc;
30876 if (argc == 2) {
30877 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
30878 }
30879 if (argc == 6) {
30880 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
30881 }
30882
30883 fail:
30884 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
30885 return NULL;
30886 }
30887
30888
30889 SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30890 PyObject *resultobj = 0;
30891 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30892 void *argp1 = 0 ;
30893 int res1 = 0 ;
30894 PyObject *swig_obj[1] ;
30895
30896 if (!args) SWIG_fail;
30897 swig_obj[0] = args;
30898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
30899 if (!SWIG_IsOK(res1)) {
30900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30901 }
30902 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30903 {
30904 PyThreadState* __tstate = wxPyBeginAllowThreads();
30905 delete arg1;
30906
30907 wxPyEndAllowThreads(__tstate);
30908 if (PyErr_Occurred()) SWIG_fail;
30909 }
30910 resultobj = SWIG_Py_Void();
30911 return resultobj;
30912 fail:
30913 return NULL;
30914 }
30915
30916
30917 SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30918 PyObject *resultobj = 0;
30919 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30920 void *argp1 = 0 ;
30921 int res1 = 0 ;
30922 PyObject *swig_obj[1] ;
30923
30924 if (!args) SWIG_fail;
30925 swig_obj[0] = args;
30926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
30927 if (!SWIG_IsOK(res1)) {
30928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30929 }
30930 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30931 {
30932 PyThreadState* __tstate = wxPyBeginAllowThreads();
30933 (arg1)->Clear();
30934 wxPyEndAllowThreads(__tstate);
30935 if (PyErr_Occurred()) SWIG_fail;
30936 }
30937 resultobj = SWIG_Py_Void();
30938 return resultobj;
30939 fail:
30940 return NULL;
30941 }
30942
30943
30944 SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30945 PyObject *obj;
30946 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30947 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
30948 return SWIG_Py_Void();
30949 }
30950
30951 SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30952 return SWIG_Python_InitShadowInstance(args);
30953 }
30954
30955 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30956 PyObject *resultobj = 0;
30957 int arg1 ;
30958 int arg2 ;
30959 int arg3 = (int) true ;
30960 int arg4 = (int) 1 ;
30961 wxImageList *result = 0 ;
30962 int val1 ;
30963 int ecode1 = 0 ;
30964 int val2 ;
30965 int ecode2 = 0 ;
30966 int val3 ;
30967 int ecode3 = 0 ;
30968 int val4 ;
30969 int ecode4 = 0 ;
30970 PyObject * obj0 = 0 ;
30971 PyObject * obj1 = 0 ;
30972 PyObject * obj2 = 0 ;
30973 PyObject * obj3 = 0 ;
30974 char * kwnames[] = {
30975 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
30976 };
30977
30978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30979 ecode1 = SWIG_AsVal_int(obj0, &val1);
30980 if (!SWIG_IsOK(ecode1)) {
30981 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
30982 }
30983 arg1 = static_cast< int >(val1);
30984 ecode2 = SWIG_AsVal_int(obj1, &val2);
30985 if (!SWIG_IsOK(ecode2)) {
30986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
30987 }
30988 arg2 = static_cast< int >(val2);
30989 if (obj2) {
30990 ecode3 = SWIG_AsVal_int(obj2, &val3);
30991 if (!SWIG_IsOK(ecode3)) {
30992 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
30993 }
30994 arg3 = static_cast< int >(val3);
30995 }
30996 if (obj3) {
30997 ecode4 = SWIG_AsVal_int(obj3, &val4);
30998 if (!SWIG_IsOK(ecode4)) {
30999 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
31000 }
31001 arg4 = static_cast< int >(val4);
31002 }
31003 {
31004 if (!wxPyCheckForApp()) SWIG_fail;
31005 PyThreadState* __tstate = wxPyBeginAllowThreads();
31006 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
31007 wxPyEndAllowThreads(__tstate);
31008 if (PyErr_Occurred()) SWIG_fail;
31009 }
31010 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
31011 return resultobj;
31012 fail:
31013 return NULL;
31014 }
31015
31016
31017 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31018 PyObject *resultobj = 0;
31019 wxImageList *arg1 = (wxImageList *) 0 ;
31020 void *argp1 = 0 ;
31021 int res1 = 0 ;
31022 PyObject *swig_obj[1] ;
31023
31024 if (!args) SWIG_fail;
31025 swig_obj[0] = args;
31026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
31027 if (!SWIG_IsOK(res1)) {
31028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
31029 }
31030 arg1 = reinterpret_cast< wxImageList * >(argp1);
31031 {
31032 PyThreadState* __tstate = wxPyBeginAllowThreads();
31033 delete arg1;
31034
31035 wxPyEndAllowThreads(__tstate);
31036 if (PyErr_Occurred()) SWIG_fail;
31037 }
31038 resultobj = SWIG_Py_Void();
31039 return resultobj;
31040 fail:
31041 return NULL;
31042 }
31043
31044
31045 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31046 PyObject *resultobj = 0;
31047 wxImageList *arg1 = (wxImageList *) 0 ;
31048 wxBitmap *arg2 = 0 ;
31049 wxBitmap const &arg3_defvalue = wxNullBitmap ;
31050 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
31051 int result;
31052 void *argp1 = 0 ;
31053 int res1 = 0 ;
31054 void *argp2 = 0 ;
31055 int res2 = 0 ;
31056 void *argp3 = 0 ;
31057 int res3 = 0 ;
31058 PyObject * obj0 = 0 ;
31059 PyObject * obj1 = 0 ;
31060 PyObject * obj2 = 0 ;
31061 char * kwnames[] = {
31062 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
31063 };
31064
31065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31067 if (!SWIG_IsOK(res1)) {
31068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
31069 }
31070 arg1 = reinterpret_cast< wxImageList * >(argp1);
31071 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31072 if (!SWIG_IsOK(res2)) {
31073 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31074 }
31075 if (!argp2) {
31076 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31077 }
31078 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31079 if (obj2) {
31080 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31081 if (!SWIG_IsOK(res3)) {
31082 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31083 }
31084 if (!argp3) {
31085 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31086 }
31087 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31088 }
31089 {
31090 PyThreadState* __tstate = wxPyBeginAllowThreads();
31091 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
31092 wxPyEndAllowThreads(__tstate);
31093 if (PyErr_Occurred()) SWIG_fail;
31094 }
31095 resultobj = SWIG_From_int(static_cast< int >(result));
31096 return resultobj;
31097 fail:
31098 return NULL;
31099 }
31100
31101
31102 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31103 PyObject *resultobj = 0;
31104 wxImageList *arg1 = (wxImageList *) 0 ;
31105 wxBitmap *arg2 = 0 ;
31106 wxColour *arg3 = 0 ;
31107 int result;
31108 void *argp1 = 0 ;
31109 int res1 = 0 ;
31110 void *argp2 = 0 ;
31111 int res2 = 0 ;
31112 wxColour temp3 ;
31113 PyObject * obj0 = 0 ;
31114 PyObject * obj1 = 0 ;
31115 PyObject * obj2 = 0 ;
31116 char * kwnames[] = {
31117 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
31118 };
31119
31120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31122 if (!SWIG_IsOK(res1)) {
31123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
31124 }
31125 arg1 = reinterpret_cast< wxImageList * >(argp1);
31126 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31127 if (!SWIG_IsOK(res2)) {
31128 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31129 }
31130 if (!argp2) {
31131 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31132 }
31133 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31134 {
31135 arg3 = &temp3;
31136 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31137 }
31138 {
31139 PyThreadState* __tstate = wxPyBeginAllowThreads();
31140 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
31141 wxPyEndAllowThreads(__tstate);
31142 if (PyErr_Occurred()) SWIG_fail;
31143 }
31144 resultobj = SWIG_From_int(static_cast< int >(result));
31145 return resultobj;
31146 fail:
31147 return NULL;
31148 }
31149
31150
31151 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31152 PyObject *resultobj = 0;
31153 wxImageList *arg1 = (wxImageList *) 0 ;
31154 wxIcon *arg2 = 0 ;
31155 int result;
31156 void *argp1 = 0 ;
31157 int res1 = 0 ;
31158 void *argp2 = 0 ;
31159 int res2 = 0 ;
31160 PyObject * obj0 = 0 ;
31161 PyObject * obj1 = 0 ;
31162 char * kwnames[] = {
31163 (char *) "self",(char *) "icon", NULL
31164 };
31165
31166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31168 if (!SWIG_IsOK(res1)) {
31169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
31170 }
31171 arg1 = reinterpret_cast< wxImageList * >(argp1);
31172 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
31173 if (!SWIG_IsOK(res2)) {
31174 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31175 }
31176 if (!argp2) {
31177 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31178 }
31179 arg2 = reinterpret_cast< wxIcon * >(argp2);
31180 {
31181 PyThreadState* __tstate = wxPyBeginAllowThreads();
31182 result = (int)(arg1)->Add((wxIcon const &)*arg2);
31183 wxPyEndAllowThreads(__tstate);
31184 if (PyErr_Occurred()) SWIG_fail;
31185 }
31186 resultobj = SWIG_From_int(static_cast< int >(result));
31187 return resultobj;
31188 fail:
31189 return NULL;
31190 }
31191
31192
31193 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31194 PyObject *resultobj = 0;
31195 wxImageList *arg1 = (wxImageList *) 0 ;
31196 int arg2 ;
31197 SwigValueWrapper<wxBitmap > result;
31198 void *argp1 = 0 ;
31199 int res1 = 0 ;
31200 int val2 ;
31201 int ecode2 = 0 ;
31202 PyObject * obj0 = 0 ;
31203 PyObject * obj1 = 0 ;
31204 char * kwnames[] = {
31205 (char *) "self",(char *) "index", NULL
31206 };
31207
31208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
31209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31210 if (!SWIG_IsOK(res1)) {
31211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
31212 }
31213 arg1 = reinterpret_cast< wxImageList * >(argp1);
31214 ecode2 = SWIG_AsVal_int(obj1, &val2);
31215 if (!SWIG_IsOK(ecode2)) {
31216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
31217 }
31218 arg2 = static_cast< int >(val2);
31219 {
31220 PyThreadState* __tstate = wxPyBeginAllowThreads();
31221 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
31222 wxPyEndAllowThreads(__tstate);
31223 if (PyErr_Occurred()) SWIG_fail;
31224 }
31225 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
31226 return resultobj;
31227 fail:
31228 return NULL;
31229 }
31230
31231
31232 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31233 PyObject *resultobj = 0;
31234 wxImageList *arg1 = (wxImageList *) 0 ;
31235 int arg2 ;
31236 wxIcon result;
31237 void *argp1 = 0 ;
31238 int res1 = 0 ;
31239 int val2 ;
31240 int ecode2 = 0 ;
31241 PyObject * obj0 = 0 ;
31242 PyObject * obj1 = 0 ;
31243 char * kwnames[] = {
31244 (char *) "self",(char *) "index", NULL
31245 };
31246
31247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31249 if (!SWIG_IsOK(res1)) {
31250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
31251 }
31252 arg1 = reinterpret_cast< wxImageList * >(argp1);
31253 ecode2 = SWIG_AsVal_int(obj1, &val2);
31254 if (!SWIG_IsOK(ecode2)) {
31255 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
31256 }
31257 arg2 = static_cast< int >(val2);
31258 {
31259 PyThreadState* __tstate = wxPyBeginAllowThreads();
31260 result = ((wxImageList const *)arg1)->GetIcon(arg2);
31261 wxPyEndAllowThreads(__tstate);
31262 if (PyErr_Occurred()) SWIG_fail;
31263 }
31264 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
31265 return resultobj;
31266 fail:
31267 return NULL;
31268 }
31269
31270
31271 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31272 PyObject *resultobj = 0;
31273 wxImageList *arg1 = (wxImageList *) 0 ;
31274 int arg2 ;
31275 wxBitmap *arg3 = 0 ;
31276 wxBitmap const &arg4_defvalue = wxNullBitmap ;
31277 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
31278 bool result;
31279 void *argp1 = 0 ;
31280 int res1 = 0 ;
31281 int val2 ;
31282 int ecode2 = 0 ;
31283 void *argp3 = 0 ;
31284 int res3 = 0 ;
31285 void *argp4 = 0 ;
31286 int res4 = 0 ;
31287 PyObject * obj0 = 0 ;
31288 PyObject * obj1 = 0 ;
31289 PyObject * obj2 = 0 ;
31290 PyObject * obj3 = 0 ;
31291 char * kwnames[] = {
31292 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
31293 };
31294
31295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31297 if (!SWIG_IsOK(res1)) {
31298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
31299 }
31300 arg1 = reinterpret_cast< wxImageList * >(argp1);
31301 ecode2 = SWIG_AsVal_int(obj1, &val2);
31302 if (!SWIG_IsOK(ecode2)) {
31303 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
31304 }
31305 arg2 = static_cast< int >(val2);
31306 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31307 if (!SWIG_IsOK(res3)) {
31308 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31309 }
31310 if (!argp3) {
31311 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31312 }
31313 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31314 if (obj3) {
31315 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
31316 if (!SWIG_IsOK(res4)) {
31317 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31318 }
31319 if (!argp4) {
31320 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31321 }
31322 arg4 = reinterpret_cast< wxBitmap * >(argp4);
31323 }
31324 {
31325 PyThreadState* __tstate = wxPyBeginAllowThreads();
31326 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
31327 wxPyEndAllowThreads(__tstate);
31328 if (PyErr_Occurred()) SWIG_fail;
31329 }
31330 {
31331 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31332 }
31333 return resultobj;
31334 fail:
31335 return NULL;
31336 }
31337
31338
31339 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31340 PyObject *resultobj = 0;
31341 wxImageList *arg1 = (wxImageList *) 0 ;
31342 int arg2 ;
31343 wxDC *arg3 = 0 ;
31344 int arg4 ;
31345 int arg5 ;
31346 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
31347 bool arg7 = (bool) (bool)false ;
31348 bool result;
31349 void *argp1 = 0 ;
31350 int res1 = 0 ;
31351 int val2 ;
31352 int ecode2 = 0 ;
31353 void *argp3 = 0 ;
31354 int res3 = 0 ;
31355 int val4 ;
31356 int ecode4 = 0 ;
31357 int val5 ;
31358 int ecode5 = 0 ;
31359 int val6 ;
31360 int ecode6 = 0 ;
31361 bool val7 ;
31362 int ecode7 = 0 ;
31363 PyObject * obj0 = 0 ;
31364 PyObject * obj1 = 0 ;
31365 PyObject * obj2 = 0 ;
31366 PyObject * obj3 = 0 ;
31367 PyObject * obj4 = 0 ;
31368 PyObject * obj5 = 0 ;
31369 PyObject * obj6 = 0 ;
31370 char * kwnames[] = {
31371 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
31372 };
31373
31374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31376 if (!SWIG_IsOK(res1)) {
31377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
31378 }
31379 arg1 = reinterpret_cast< wxImageList * >(argp1);
31380 ecode2 = SWIG_AsVal_int(obj1, &val2);
31381 if (!SWIG_IsOK(ecode2)) {
31382 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
31383 }
31384 arg2 = static_cast< int >(val2);
31385 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31386 if (!SWIG_IsOK(res3)) {
31387 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31388 }
31389 if (!argp3) {
31390 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31391 }
31392 arg3 = reinterpret_cast< wxDC * >(argp3);
31393 ecode4 = SWIG_AsVal_int(obj3, &val4);
31394 if (!SWIG_IsOK(ecode4)) {
31395 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
31396 }
31397 arg4 = static_cast< int >(val4);
31398 ecode5 = SWIG_AsVal_int(obj4, &val5);
31399 if (!SWIG_IsOK(ecode5)) {
31400 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
31401 }
31402 arg5 = static_cast< int >(val5);
31403 if (obj5) {
31404 ecode6 = SWIG_AsVal_int(obj5, &val6);
31405 if (!SWIG_IsOK(ecode6)) {
31406 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
31407 }
31408 arg6 = static_cast< int >(val6);
31409 }
31410 if (obj6) {
31411 ecode7 = SWIG_AsVal_bool(obj6, &val7);
31412 if (!SWIG_IsOK(ecode7)) {
31413 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
31414 }
31415 arg7 = static_cast< bool >(val7);
31416 }
31417 {
31418 PyThreadState* __tstate = wxPyBeginAllowThreads();
31419 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
31420 wxPyEndAllowThreads(__tstate);
31421 if (PyErr_Occurred()) SWIG_fail;
31422 }
31423 {
31424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31425 }
31426 return resultobj;
31427 fail:
31428 return NULL;
31429 }
31430
31431
31432 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31433 PyObject *resultobj = 0;
31434 wxImageList *arg1 = (wxImageList *) 0 ;
31435 int result;
31436 void *argp1 = 0 ;
31437 int res1 = 0 ;
31438 PyObject *swig_obj[1] ;
31439
31440 if (!args) SWIG_fail;
31441 swig_obj[0] = args;
31442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31443 if (!SWIG_IsOK(res1)) {
31444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
31445 }
31446 arg1 = reinterpret_cast< wxImageList * >(argp1);
31447 {
31448 PyThreadState* __tstate = wxPyBeginAllowThreads();
31449 result = (int)(arg1)->GetImageCount();
31450 wxPyEndAllowThreads(__tstate);
31451 if (PyErr_Occurred()) SWIG_fail;
31452 }
31453 resultobj = SWIG_From_int(static_cast< int >(result));
31454 return resultobj;
31455 fail:
31456 return NULL;
31457 }
31458
31459
31460 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31461 PyObject *resultobj = 0;
31462 wxImageList *arg1 = (wxImageList *) 0 ;
31463 int arg2 ;
31464 bool result;
31465 void *argp1 = 0 ;
31466 int res1 = 0 ;
31467 int val2 ;
31468 int ecode2 = 0 ;
31469 PyObject * obj0 = 0 ;
31470 PyObject * obj1 = 0 ;
31471 char * kwnames[] = {
31472 (char *) "self",(char *) "index", NULL
31473 };
31474
31475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
31476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31477 if (!SWIG_IsOK(res1)) {
31478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
31479 }
31480 arg1 = reinterpret_cast< wxImageList * >(argp1);
31481 ecode2 = SWIG_AsVal_int(obj1, &val2);
31482 if (!SWIG_IsOK(ecode2)) {
31483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
31484 }
31485 arg2 = static_cast< int >(val2);
31486 {
31487 PyThreadState* __tstate = wxPyBeginAllowThreads();
31488 result = (bool)(arg1)->Remove(arg2);
31489 wxPyEndAllowThreads(__tstate);
31490 if (PyErr_Occurred()) SWIG_fail;
31491 }
31492 {
31493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31494 }
31495 return resultobj;
31496 fail:
31497 return NULL;
31498 }
31499
31500
31501 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31502 PyObject *resultobj = 0;
31503 wxImageList *arg1 = (wxImageList *) 0 ;
31504 bool result;
31505 void *argp1 = 0 ;
31506 int res1 = 0 ;
31507 PyObject *swig_obj[1] ;
31508
31509 if (!args) SWIG_fail;
31510 swig_obj[0] = args;
31511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31512 if (!SWIG_IsOK(res1)) {
31513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
31514 }
31515 arg1 = reinterpret_cast< wxImageList * >(argp1);
31516 {
31517 PyThreadState* __tstate = wxPyBeginAllowThreads();
31518 result = (bool)(arg1)->RemoveAll();
31519 wxPyEndAllowThreads(__tstate);
31520 if (PyErr_Occurred()) SWIG_fail;
31521 }
31522 {
31523 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31524 }
31525 return resultobj;
31526 fail:
31527 return NULL;
31528 }
31529
31530
31531 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31532 PyObject *resultobj = 0;
31533 wxImageList *arg1 = (wxImageList *) 0 ;
31534 int arg2 ;
31535 int *arg3 = 0 ;
31536 int *arg4 = 0 ;
31537 void *argp1 = 0 ;
31538 int res1 = 0 ;
31539 int val2 ;
31540 int ecode2 = 0 ;
31541 int temp3 ;
31542 int res3 = SWIG_TMPOBJ ;
31543 int temp4 ;
31544 int res4 = SWIG_TMPOBJ ;
31545 PyObject * obj0 = 0 ;
31546 PyObject * obj1 = 0 ;
31547 char * kwnames[] = {
31548 (char *) "self",(char *) "index", NULL
31549 };
31550
31551 arg3 = &temp3;
31552 arg4 = &temp4;
31553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
31554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31555 if (!SWIG_IsOK(res1)) {
31556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
31557 }
31558 arg1 = reinterpret_cast< wxImageList * >(argp1);
31559 ecode2 = SWIG_AsVal_int(obj1, &val2);
31560 if (!SWIG_IsOK(ecode2)) {
31561 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
31562 }
31563 arg2 = static_cast< int >(val2);
31564 {
31565 PyThreadState* __tstate = wxPyBeginAllowThreads();
31566 (arg1)->GetSize(arg2,*arg3,*arg4);
31567 wxPyEndAllowThreads(__tstate);
31568 if (PyErr_Occurred()) SWIG_fail;
31569 }
31570 resultobj = SWIG_Py_Void();
31571 if (SWIG_IsTmpObj(res3)) {
31572 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31573 } else {
31574 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31575 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31576 }
31577 if (SWIG_IsTmpObj(res4)) {
31578 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
31579 } else {
31580 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31581 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
31582 }
31583 return resultobj;
31584 fail:
31585 return NULL;
31586 }
31587
31588
31589 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31590 PyObject *obj;
31591 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31592 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
31593 return SWIG_Py_Void();
31594 }
31595
31596 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31597 return SWIG_Python_InitShadowInstance(args);
31598 }
31599
31600 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31601 PyObject *resultobj = 0;
31602 wxStockGDI *result = 0 ;
31603
31604 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
31605 {
31606 PyThreadState* __tstate = wxPyBeginAllowThreads();
31607 result = (wxStockGDI *)new wxStockGDI();
31608 wxPyEndAllowThreads(__tstate);
31609 if (PyErr_Occurred()) SWIG_fail;
31610 }
31611 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
31612 return resultobj;
31613 fail:
31614 return NULL;
31615 }
31616
31617
31618 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31619 PyObject *resultobj = 0;
31620 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31621 void *argp1 = 0 ;
31622 int res1 = 0 ;
31623 PyObject *swig_obj[1] ;
31624
31625 if (!args) SWIG_fail;
31626 swig_obj[0] = args;
31627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
31628 if (!SWIG_IsOK(res1)) {
31629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31630 }
31631 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31632 {
31633 PyThreadState* __tstate = wxPyBeginAllowThreads();
31634 delete arg1;
31635
31636 wxPyEndAllowThreads(__tstate);
31637 if (PyErr_Occurred()) SWIG_fail;
31638 }
31639 resultobj = SWIG_Py_Void();
31640 return resultobj;
31641 fail:
31642 return NULL;
31643 }
31644
31645
31646 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31647 PyObject *resultobj = 0;
31648
31649 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
31650 {
31651 PyThreadState* __tstate = wxPyBeginAllowThreads();
31652 wxStockGDI::DeleteAll();
31653 wxPyEndAllowThreads(__tstate);
31654 if (PyErr_Occurred()) SWIG_fail;
31655 }
31656 resultobj = SWIG_Py_Void();
31657 return resultobj;
31658 fail:
31659 return NULL;
31660 }
31661
31662
31663 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31664 PyObject *resultobj = 0;
31665 wxStockGDI *result = 0 ;
31666
31667 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
31668 {
31669 PyThreadState* __tstate = wxPyBeginAllowThreads();
31670 {
31671 wxStockGDI &_result_ref = wxStockGDI::instance();
31672 result = (wxStockGDI *) &_result_ref;
31673 }
31674 wxPyEndAllowThreads(__tstate);
31675 if (PyErr_Occurred()) SWIG_fail;
31676 }
31677 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
31678 return resultobj;
31679 fail:
31680 return NULL;
31681 }
31682
31683
31684 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31685 PyObject *resultobj = 0;
31686 wxStockGDI::Item arg1 ;
31687 wxBrush *result = 0 ;
31688 int val1 ;
31689 int ecode1 = 0 ;
31690 PyObject * obj0 = 0 ;
31691 char * kwnames[] = {
31692 (char *) "item", NULL
31693 };
31694
31695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
31696 ecode1 = SWIG_AsVal_int(obj0, &val1);
31697 if (!SWIG_IsOK(ecode1)) {
31698 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31699 }
31700 arg1 = static_cast< wxStockGDI::Item >(val1);
31701 {
31702 PyThreadState* __tstate = wxPyBeginAllowThreads();
31703 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
31704 wxPyEndAllowThreads(__tstate);
31705 if (PyErr_Occurred()) SWIG_fail;
31706 }
31707 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
31708 return resultobj;
31709 fail:
31710 return NULL;
31711 }
31712
31713
31714 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31715 PyObject *resultobj = 0;
31716 wxStockGDI::Item arg1 ;
31717 wxColour *result = 0 ;
31718 int val1 ;
31719 int ecode1 = 0 ;
31720 PyObject * obj0 = 0 ;
31721 char * kwnames[] = {
31722 (char *) "item", NULL
31723 };
31724
31725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
31726 ecode1 = SWIG_AsVal_int(obj0, &val1);
31727 if (!SWIG_IsOK(ecode1)) {
31728 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31729 }
31730 arg1 = static_cast< wxStockGDI::Item >(val1);
31731 {
31732 PyThreadState* __tstate = wxPyBeginAllowThreads();
31733 result = (wxColour *)wxStockGDI::GetColour(arg1);
31734 wxPyEndAllowThreads(__tstate);
31735 if (PyErr_Occurred()) SWIG_fail;
31736 }
31737 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
31738 return resultobj;
31739 fail:
31740 return NULL;
31741 }
31742
31743
31744 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31745 PyObject *resultobj = 0;
31746 wxStockGDI::Item arg1 ;
31747 wxCursor *result = 0 ;
31748 int val1 ;
31749 int ecode1 = 0 ;
31750 PyObject * obj0 = 0 ;
31751 char * kwnames[] = {
31752 (char *) "item", NULL
31753 };
31754
31755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
31756 ecode1 = SWIG_AsVal_int(obj0, &val1);
31757 if (!SWIG_IsOK(ecode1)) {
31758 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31759 }
31760 arg1 = static_cast< wxStockGDI::Item >(val1);
31761 {
31762 PyThreadState* __tstate = wxPyBeginAllowThreads();
31763 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
31764 wxPyEndAllowThreads(__tstate);
31765 if (PyErr_Occurred()) SWIG_fail;
31766 }
31767 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
31768 return resultobj;
31769 fail:
31770 return NULL;
31771 }
31772
31773
31774 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31775 PyObject *resultobj = 0;
31776 wxStockGDI::Item arg1 ;
31777 wxPen *result = 0 ;
31778 int val1 ;
31779 int ecode1 = 0 ;
31780 PyObject * obj0 = 0 ;
31781 char * kwnames[] = {
31782 (char *) "item", NULL
31783 };
31784
31785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
31786 ecode1 = SWIG_AsVal_int(obj0, &val1);
31787 if (!SWIG_IsOK(ecode1)) {
31788 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31789 }
31790 arg1 = static_cast< wxStockGDI::Item >(val1);
31791 {
31792 PyThreadState* __tstate = wxPyBeginAllowThreads();
31793 result = (wxPen *)wxStockGDI::GetPen(arg1);
31794 wxPyEndAllowThreads(__tstate);
31795 if (PyErr_Occurred()) SWIG_fail;
31796 }
31797 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
31798 return resultobj;
31799 fail:
31800 return NULL;
31801 }
31802
31803
31804 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31805 PyObject *resultobj = 0;
31806 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31807 wxStockGDI::Item arg2 ;
31808 wxFont *result = 0 ;
31809 void *argp1 = 0 ;
31810 int res1 = 0 ;
31811 int val2 ;
31812 int ecode2 = 0 ;
31813 PyObject * obj0 = 0 ;
31814 PyObject * obj1 = 0 ;
31815 char * kwnames[] = {
31816 (char *) "self",(char *) "item", NULL
31817 };
31818
31819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
31820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
31821 if (!SWIG_IsOK(res1)) {
31822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31823 }
31824 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31825 ecode2 = SWIG_AsVal_int(obj1, &val2);
31826 if (!SWIG_IsOK(ecode2)) {
31827 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
31828 }
31829 arg2 = static_cast< wxStockGDI::Item >(val2);
31830 {
31831 PyThreadState* __tstate = wxPyBeginAllowThreads();
31832 result = (wxFont *)(arg1)->GetFont(arg2);
31833 wxPyEndAllowThreads(__tstate);
31834 if (PyErr_Occurred()) SWIG_fail;
31835 }
31836 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
31837 return resultobj;
31838 fail:
31839 return NULL;
31840 }
31841
31842
31843 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31844 PyObject *obj;
31845 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31846 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
31847 return SWIG_Py_Void();
31848 }
31849
31850 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31851 return SWIG_Python_InitShadowInstance(args);
31852 }
31853
31854 SWIGINTERN int NullBitmap_set(PyObject *) {
31855 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
31856 return 1;
31857 }
31858
31859
31860 SWIGINTERN PyObject *NullBitmap_get(void) {
31861 PyObject *pyobj = 0;
31862
31863 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
31864 return pyobj;
31865 }
31866
31867
31868 SWIGINTERN int NullIcon_set(PyObject *) {
31869 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
31870 return 1;
31871 }
31872
31873
31874 SWIGINTERN PyObject *NullIcon_get(void) {
31875 PyObject *pyobj = 0;
31876
31877 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
31878 return pyobj;
31879 }
31880
31881
31882 SWIGINTERN int NullCursor_set(PyObject *) {
31883 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
31884 return 1;
31885 }
31886
31887
31888 SWIGINTERN PyObject *NullCursor_get(void) {
31889 PyObject *pyobj = 0;
31890
31891 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
31892 return pyobj;
31893 }
31894
31895
31896 SWIGINTERN int NullPen_set(PyObject *) {
31897 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
31898 return 1;
31899 }
31900
31901
31902 SWIGINTERN PyObject *NullPen_get(void) {
31903 PyObject *pyobj = 0;
31904
31905 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
31906 return pyobj;
31907 }
31908
31909
31910 SWIGINTERN int NullBrush_set(PyObject *) {
31911 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
31912 return 1;
31913 }
31914
31915
31916 SWIGINTERN PyObject *NullBrush_get(void) {
31917 PyObject *pyobj = 0;
31918
31919 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
31920 return pyobj;
31921 }
31922
31923
31924 SWIGINTERN int NullPalette_set(PyObject *) {
31925 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
31926 return 1;
31927 }
31928
31929
31930 SWIGINTERN PyObject *NullPalette_get(void) {
31931 PyObject *pyobj = 0;
31932
31933 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
31934 return pyobj;
31935 }
31936
31937
31938 SWIGINTERN int NullFont_set(PyObject *) {
31939 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
31940 return 1;
31941 }
31942
31943
31944 SWIGINTERN PyObject *NullFont_get(void) {
31945 PyObject *pyobj = 0;
31946
31947 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
31948 return pyobj;
31949 }
31950
31951
31952 SWIGINTERN int NullColour_set(PyObject *) {
31953 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
31954 return 1;
31955 }
31956
31957
31958 SWIGINTERN PyObject *NullColour_get(void) {
31959 PyObject *pyobj = 0;
31960
31961 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
31962 return pyobj;
31963 }
31964
31965
31966 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31967 PyObject *resultobj = 0;
31968 wxGDIObjListBase *result = 0 ;
31969
31970 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
31971 {
31972 PyThreadState* __tstate = wxPyBeginAllowThreads();
31973 result = (wxGDIObjListBase *)new wxGDIObjListBase();
31974 wxPyEndAllowThreads(__tstate);
31975 if (PyErr_Occurred()) SWIG_fail;
31976 }
31977 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
31978 return resultobj;
31979 fail:
31980 return NULL;
31981 }
31982
31983
31984 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31985 PyObject *resultobj = 0;
31986 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
31987 void *argp1 = 0 ;
31988 int res1 = 0 ;
31989 PyObject *swig_obj[1] ;
31990
31991 if (!args) SWIG_fail;
31992 swig_obj[0] = args;
31993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
31994 if (!SWIG_IsOK(res1)) {
31995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
31996 }
31997 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
31998 {
31999 PyThreadState* __tstate = wxPyBeginAllowThreads();
32000 delete arg1;
32001
32002 wxPyEndAllowThreads(__tstate);
32003 if (PyErr_Occurred()) SWIG_fail;
32004 }
32005 resultobj = SWIG_Py_Void();
32006 return resultobj;
32007 fail:
32008 return NULL;
32009 }
32010
32011
32012 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32013 PyObject *obj;
32014 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32015 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
32016 return SWIG_Py_Void();
32017 }
32018
32019 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32020 return SWIG_Python_InitShadowInstance(args);
32021 }
32022
32023 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32024 PyObject *resultobj = 0;
32025 wxPenList *arg1 = (wxPenList *) 0 ;
32026 wxColour *arg2 = 0 ;
32027 int arg3 ;
32028 int arg4 ;
32029 wxPen *result = 0 ;
32030 void *argp1 = 0 ;
32031 int res1 = 0 ;
32032 wxColour temp2 ;
32033 int val3 ;
32034 int ecode3 = 0 ;
32035 int val4 ;
32036 int ecode4 = 0 ;
32037 PyObject * obj0 = 0 ;
32038 PyObject * obj1 = 0 ;
32039 PyObject * obj2 = 0 ;
32040 PyObject * obj3 = 0 ;
32041 char * kwnames[] = {
32042 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
32043 };
32044
32045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32047 if (!SWIG_IsOK(res1)) {
32048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
32049 }
32050 arg1 = reinterpret_cast< wxPenList * >(argp1);
32051 {
32052 arg2 = &temp2;
32053 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32054 }
32055 ecode3 = SWIG_AsVal_int(obj2, &val3);
32056 if (!SWIG_IsOK(ecode3)) {
32057 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
32058 }
32059 arg3 = static_cast< int >(val3);
32060 ecode4 = SWIG_AsVal_int(obj3, &val4);
32061 if (!SWIG_IsOK(ecode4)) {
32062 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
32063 }
32064 arg4 = static_cast< int >(val4);
32065 {
32066 PyThreadState* __tstate = wxPyBeginAllowThreads();
32067 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
32068 wxPyEndAllowThreads(__tstate);
32069 if (PyErr_Occurred()) SWIG_fail;
32070 }
32071 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32072 return resultobj;
32073 fail:
32074 return NULL;
32075 }
32076
32077
32078 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32079 PyObject *resultobj = 0;
32080 wxPenList *arg1 = (wxPenList *) 0 ;
32081 wxPen *arg2 = (wxPen *) 0 ;
32082 void *argp1 = 0 ;
32083 int res1 = 0 ;
32084 void *argp2 = 0 ;
32085 int res2 = 0 ;
32086 PyObject * obj0 = 0 ;
32087 PyObject * obj1 = 0 ;
32088 char * kwnames[] = {
32089 (char *) "self",(char *) "pen", NULL
32090 };
32091
32092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
32093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32094 if (!SWIG_IsOK(res1)) {
32095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
32096 }
32097 arg1 = reinterpret_cast< wxPenList * >(argp1);
32098 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32099 if (!SWIG_IsOK(res2)) {
32100 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
32101 }
32102 arg2 = reinterpret_cast< wxPen * >(argp2);
32103 {
32104 PyThreadState* __tstate = wxPyBeginAllowThreads();
32105 (arg1)->AddPen(arg2);
32106 wxPyEndAllowThreads(__tstate);
32107 if (PyErr_Occurred()) SWIG_fail;
32108 }
32109 resultobj = SWIG_Py_Void();
32110 return resultobj;
32111 fail:
32112 return NULL;
32113 }
32114
32115
32116 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32117 PyObject *resultobj = 0;
32118 wxPenList *arg1 = (wxPenList *) 0 ;
32119 wxPen *arg2 = (wxPen *) 0 ;
32120 void *argp1 = 0 ;
32121 int res1 = 0 ;
32122 void *argp2 = 0 ;
32123 int res2 = 0 ;
32124 PyObject * obj0 = 0 ;
32125 PyObject * obj1 = 0 ;
32126 char * kwnames[] = {
32127 (char *) "self",(char *) "pen", NULL
32128 };
32129
32130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
32131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32132 if (!SWIG_IsOK(res1)) {
32133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
32134 }
32135 arg1 = reinterpret_cast< wxPenList * >(argp1);
32136 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32137 if (!SWIG_IsOK(res2)) {
32138 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
32139 }
32140 arg2 = reinterpret_cast< wxPen * >(argp2);
32141 {
32142 PyThreadState* __tstate = wxPyBeginAllowThreads();
32143 (arg1)->RemovePen(arg2);
32144 wxPyEndAllowThreads(__tstate);
32145 if (PyErr_Occurred()) SWIG_fail;
32146 }
32147 resultobj = SWIG_Py_Void();
32148 return resultobj;
32149 fail:
32150 return NULL;
32151 }
32152
32153
32154 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32155 PyObject *obj;
32156 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32157 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
32158 return SWIG_Py_Void();
32159 }
32160
32161 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32162 PyObject *resultobj = 0;
32163 wxBrushList *arg1 = (wxBrushList *) 0 ;
32164 wxColour *arg2 = 0 ;
32165 int arg3 = (int) wxSOLID ;
32166 wxBrush *result = 0 ;
32167 void *argp1 = 0 ;
32168 int res1 = 0 ;
32169 wxColour temp2 ;
32170 int val3 ;
32171 int ecode3 = 0 ;
32172 PyObject * obj0 = 0 ;
32173 PyObject * obj1 = 0 ;
32174 PyObject * obj2 = 0 ;
32175 char * kwnames[] = {
32176 (char *) "self",(char *) "colour",(char *) "style", NULL
32177 };
32178
32179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32181 if (!SWIG_IsOK(res1)) {
32182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32183 }
32184 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32185 {
32186 arg2 = &temp2;
32187 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32188 }
32189 if (obj2) {
32190 ecode3 = SWIG_AsVal_int(obj2, &val3);
32191 if (!SWIG_IsOK(ecode3)) {
32192 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
32193 }
32194 arg3 = static_cast< int >(val3);
32195 }
32196 {
32197 PyThreadState* __tstate = wxPyBeginAllowThreads();
32198 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
32199 wxPyEndAllowThreads(__tstate);
32200 if (PyErr_Occurred()) SWIG_fail;
32201 }
32202 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32203 return resultobj;
32204 fail:
32205 return NULL;
32206 }
32207
32208
32209 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32210 PyObject *resultobj = 0;
32211 wxBrushList *arg1 = (wxBrushList *) 0 ;
32212 wxBrush *arg2 = (wxBrush *) 0 ;
32213 void *argp1 = 0 ;
32214 int res1 = 0 ;
32215 void *argp2 = 0 ;
32216 int res2 = 0 ;
32217 PyObject * obj0 = 0 ;
32218 PyObject * obj1 = 0 ;
32219 char * kwnames[] = {
32220 (char *) "self",(char *) "brush", NULL
32221 };
32222
32223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32225 if (!SWIG_IsOK(res1)) {
32226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32227 }
32228 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32229 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32230 if (!SWIG_IsOK(res2)) {
32231 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32232 }
32233 arg2 = reinterpret_cast< wxBrush * >(argp2);
32234 {
32235 PyThreadState* __tstate = wxPyBeginAllowThreads();
32236 (arg1)->AddBrush(arg2);
32237 wxPyEndAllowThreads(__tstate);
32238 if (PyErr_Occurred()) SWIG_fail;
32239 }
32240 resultobj = SWIG_Py_Void();
32241 return resultobj;
32242 fail:
32243 return NULL;
32244 }
32245
32246
32247 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32248 PyObject *resultobj = 0;
32249 wxBrushList *arg1 = (wxBrushList *) 0 ;
32250 wxBrush *arg2 = (wxBrush *) 0 ;
32251 void *argp1 = 0 ;
32252 int res1 = 0 ;
32253 void *argp2 = 0 ;
32254 int res2 = 0 ;
32255 PyObject * obj0 = 0 ;
32256 PyObject * obj1 = 0 ;
32257 char * kwnames[] = {
32258 (char *) "self",(char *) "brush", NULL
32259 };
32260
32261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32263 if (!SWIG_IsOK(res1)) {
32264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32265 }
32266 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32267 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32268 if (!SWIG_IsOK(res2)) {
32269 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32270 }
32271 arg2 = reinterpret_cast< wxBrush * >(argp2);
32272 {
32273 PyThreadState* __tstate = wxPyBeginAllowThreads();
32274 (arg1)->RemoveBrush(arg2);
32275 wxPyEndAllowThreads(__tstate);
32276 if (PyErr_Occurred()) SWIG_fail;
32277 }
32278 resultobj = SWIG_Py_Void();
32279 return resultobj;
32280 fail:
32281 return NULL;
32282 }
32283
32284
32285 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32286 PyObject *obj;
32287 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32288 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
32289 return SWIG_Py_Void();
32290 }
32291
32292 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32293 PyObject *resultobj = 0;
32294 wxFontList *arg1 = (wxFontList *) 0 ;
32295 int arg2 ;
32296 int arg3 ;
32297 int arg4 ;
32298 int arg5 ;
32299 bool arg6 = (bool) false ;
32300 wxString const &arg7_defvalue = wxPyEmptyString ;
32301 wxString *arg7 = (wxString *) &arg7_defvalue ;
32302 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
32303 wxFont *result = 0 ;
32304 void *argp1 = 0 ;
32305 int res1 = 0 ;
32306 int val2 ;
32307 int ecode2 = 0 ;
32308 int val3 ;
32309 int ecode3 = 0 ;
32310 int val4 ;
32311 int ecode4 = 0 ;
32312 int val5 ;
32313 int ecode5 = 0 ;
32314 bool val6 ;
32315 int ecode6 = 0 ;
32316 bool temp7 = false ;
32317 int val8 ;
32318 int ecode8 = 0 ;
32319 PyObject * obj0 = 0 ;
32320 PyObject * obj1 = 0 ;
32321 PyObject * obj2 = 0 ;
32322 PyObject * obj3 = 0 ;
32323 PyObject * obj4 = 0 ;
32324 PyObject * obj5 = 0 ;
32325 PyObject * obj6 = 0 ;
32326 PyObject * obj7 = 0 ;
32327 char * kwnames[] = {
32328 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
32329 };
32330
32331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
32333 if (!SWIG_IsOK(res1)) {
32334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
32335 }
32336 arg1 = reinterpret_cast< wxFontList * >(argp1);
32337 ecode2 = SWIG_AsVal_int(obj1, &val2);
32338 if (!SWIG_IsOK(ecode2)) {
32339 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
32340 }
32341 arg2 = static_cast< int >(val2);
32342 ecode3 = SWIG_AsVal_int(obj2, &val3);
32343 if (!SWIG_IsOK(ecode3)) {
32344 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
32345 }
32346 arg3 = static_cast< int >(val3);
32347 ecode4 = SWIG_AsVal_int(obj3, &val4);
32348 if (!SWIG_IsOK(ecode4)) {
32349 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
32350 }
32351 arg4 = static_cast< int >(val4);
32352 ecode5 = SWIG_AsVal_int(obj4, &val5);
32353 if (!SWIG_IsOK(ecode5)) {
32354 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
32355 }
32356 arg5 = static_cast< int >(val5);
32357 if (obj5) {
32358 ecode6 = SWIG_AsVal_bool(obj5, &val6);
32359 if (!SWIG_IsOK(ecode6)) {
32360 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
32361 }
32362 arg6 = static_cast< bool >(val6);
32363 }
32364 if (obj6) {
32365 {
32366 arg7 = wxString_in_helper(obj6);
32367 if (arg7 == NULL) SWIG_fail;
32368 temp7 = true;
32369 }
32370 }
32371 if (obj7) {
32372 ecode8 = SWIG_AsVal_int(obj7, &val8);
32373 if (!SWIG_IsOK(ecode8)) {
32374 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
32375 }
32376 arg8 = static_cast< wxFontEncoding >(val8);
32377 }
32378 {
32379 PyThreadState* __tstate = wxPyBeginAllowThreads();
32380 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
32381 wxPyEndAllowThreads(__tstate);
32382 if (PyErr_Occurred()) SWIG_fail;
32383 }
32384 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32385 {
32386 if (temp7)
32387 delete arg7;
32388 }
32389 return resultobj;
32390 fail:
32391 {
32392 if (temp7)
32393 delete arg7;
32394 }
32395 return NULL;
32396 }
32397
32398
32399 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32400 PyObject *resultobj = 0;
32401 wxFontList *arg1 = (wxFontList *) 0 ;
32402 wxFont *arg2 = (wxFont *) 0 ;
32403 void *argp1 = 0 ;
32404 int res1 = 0 ;
32405 void *argp2 = 0 ;
32406 int res2 = 0 ;
32407 PyObject * obj0 = 0 ;
32408 PyObject * obj1 = 0 ;
32409 char * kwnames[] = {
32410 (char *) "self",(char *) "font", NULL
32411 };
32412
32413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
32414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
32415 if (!SWIG_IsOK(res1)) {
32416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
32417 }
32418 arg1 = reinterpret_cast< wxFontList * >(argp1);
32419 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
32420 if (!SWIG_IsOK(res2)) {
32421 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
32422 }
32423 arg2 = reinterpret_cast< wxFont * >(argp2);
32424 {
32425 PyThreadState* __tstate = wxPyBeginAllowThreads();
32426 (arg1)->AddFont(arg2);
32427 wxPyEndAllowThreads(__tstate);
32428 if (PyErr_Occurred()) SWIG_fail;
32429 }
32430 resultobj = SWIG_Py_Void();
32431 return resultobj;
32432 fail:
32433 return NULL;
32434 }
32435
32436
32437 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32438 PyObject *resultobj = 0;
32439 wxFontList *arg1 = (wxFontList *) 0 ;
32440 wxFont *arg2 = (wxFont *) 0 ;
32441 void *argp1 = 0 ;
32442 int res1 = 0 ;
32443 void *argp2 = 0 ;
32444 int res2 = 0 ;
32445 PyObject * obj0 = 0 ;
32446 PyObject * obj1 = 0 ;
32447 char * kwnames[] = {
32448 (char *) "self",(char *) "font", NULL
32449 };
32450
32451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
32452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
32453 if (!SWIG_IsOK(res1)) {
32454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
32455 }
32456 arg1 = reinterpret_cast< wxFontList * >(argp1);
32457 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
32458 if (!SWIG_IsOK(res2)) {
32459 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
32460 }
32461 arg2 = reinterpret_cast< wxFont * >(argp2);
32462 {
32463 PyThreadState* __tstate = wxPyBeginAllowThreads();
32464 (arg1)->RemoveFont(arg2);
32465 wxPyEndAllowThreads(__tstate);
32466 if (PyErr_Occurred()) SWIG_fail;
32467 }
32468 resultobj = SWIG_Py_Void();
32469 return resultobj;
32470 fail:
32471 return NULL;
32472 }
32473
32474
32475 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32476 PyObject *obj;
32477 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32478 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
32479 return SWIG_Py_Void();
32480 }
32481
32482 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32483 PyObject *resultobj = 0;
32484 wxColourDatabase *result = 0 ;
32485
32486 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
32487 {
32488 if (!wxPyCheckForApp()) SWIG_fail;
32489 PyThreadState* __tstate = wxPyBeginAllowThreads();
32490 result = (wxColourDatabase *)new wxColourDatabase();
32491 wxPyEndAllowThreads(__tstate);
32492 if (PyErr_Occurred()) SWIG_fail;
32493 }
32494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
32495 return resultobj;
32496 fail:
32497 return NULL;
32498 }
32499
32500
32501 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32502 PyObject *resultobj = 0;
32503 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32504 void *argp1 = 0 ;
32505 int res1 = 0 ;
32506 PyObject *swig_obj[1] ;
32507
32508 if (!args) SWIG_fail;
32509 swig_obj[0] = args;
32510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
32511 if (!SWIG_IsOK(res1)) {
32512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32513 }
32514 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32515 {
32516 PyThreadState* __tstate = wxPyBeginAllowThreads();
32517 delete arg1;
32518
32519 wxPyEndAllowThreads(__tstate);
32520 if (PyErr_Occurred()) SWIG_fail;
32521 }
32522 resultobj = SWIG_Py_Void();
32523 return resultobj;
32524 fail:
32525 return NULL;
32526 }
32527
32528
32529 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32530 PyObject *resultobj = 0;
32531 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32532 wxString *arg2 = 0 ;
32533 wxColour result;
32534 void *argp1 = 0 ;
32535 int res1 = 0 ;
32536 bool temp2 = false ;
32537 PyObject * obj0 = 0 ;
32538 PyObject * obj1 = 0 ;
32539 char * kwnames[] = {
32540 (char *) "self",(char *) "name", NULL
32541 };
32542
32543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
32544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32545 if (!SWIG_IsOK(res1)) {
32546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32547 }
32548 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32549 {
32550 arg2 = wxString_in_helper(obj1);
32551 if (arg2 == NULL) SWIG_fail;
32552 temp2 = true;
32553 }
32554 {
32555 PyThreadState* __tstate = wxPyBeginAllowThreads();
32556 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
32557 wxPyEndAllowThreads(__tstate);
32558 if (PyErr_Occurred()) SWIG_fail;
32559 }
32560 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32561 {
32562 if (temp2)
32563 delete arg2;
32564 }
32565 return resultobj;
32566 fail:
32567 {
32568 if (temp2)
32569 delete arg2;
32570 }
32571 return NULL;
32572 }
32573
32574
32575 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32576 PyObject *resultobj = 0;
32577 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32578 wxColour *arg2 = 0 ;
32579 wxString result;
32580 void *argp1 = 0 ;
32581 int res1 = 0 ;
32582 wxColour temp2 ;
32583 PyObject * obj0 = 0 ;
32584 PyObject * obj1 = 0 ;
32585 char * kwnames[] = {
32586 (char *) "self",(char *) "colour", NULL
32587 };
32588
32589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
32590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32591 if (!SWIG_IsOK(res1)) {
32592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32593 }
32594 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32595 {
32596 arg2 = &temp2;
32597 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32598 }
32599 {
32600 PyThreadState* __tstate = wxPyBeginAllowThreads();
32601 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
32602 wxPyEndAllowThreads(__tstate);
32603 if (PyErr_Occurred()) SWIG_fail;
32604 }
32605 {
32606 #if wxUSE_UNICODE
32607 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32608 #else
32609 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32610 #endif
32611 }
32612 return resultobj;
32613 fail:
32614 return NULL;
32615 }
32616
32617
32618 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32619 PyObject *resultobj = 0;
32620 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32621 wxString *arg2 = 0 ;
32622 wxColour *arg3 = 0 ;
32623 void *argp1 = 0 ;
32624 int res1 = 0 ;
32625 bool temp2 = false ;
32626 wxColour temp3 ;
32627 PyObject * obj0 = 0 ;
32628 PyObject * obj1 = 0 ;
32629 PyObject * obj2 = 0 ;
32630 char * kwnames[] = {
32631 (char *) "self",(char *) "name",(char *) "colour", NULL
32632 };
32633
32634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32636 if (!SWIG_IsOK(res1)) {
32637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32638 }
32639 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32640 {
32641 arg2 = wxString_in_helper(obj1);
32642 if (arg2 == NULL) SWIG_fail;
32643 temp2 = true;
32644 }
32645 {
32646 arg3 = &temp3;
32647 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32648 }
32649 {
32650 PyThreadState* __tstate = wxPyBeginAllowThreads();
32651 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
32652 wxPyEndAllowThreads(__tstate);
32653 if (PyErr_Occurred()) SWIG_fail;
32654 }
32655 resultobj = SWIG_Py_Void();
32656 {
32657 if (temp2)
32658 delete arg2;
32659 }
32660 return resultobj;
32661 fail:
32662 {
32663 if (temp2)
32664 delete arg2;
32665 }
32666 return NULL;
32667 }
32668
32669
32670 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32671 PyObject *resultobj = 0;
32672 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32673 wxString *arg2 = 0 ;
32674 int arg3 ;
32675 int arg4 ;
32676 int arg5 ;
32677 void *argp1 = 0 ;
32678 int res1 = 0 ;
32679 bool temp2 = false ;
32680 int val3 ;
32681 int ecode3 = 0 ;
32682 int val4 ;
32683 int ecode4 = 0 ;
32684 int val5 ;
32685 int ecode5 = 0 ;
32686 PyObject * obj0 = 0 ;
32687 PyObject * obj1 = 0 ;
32688 PyObject * obj2 = 0 ;
32689 PyObject * obj3 = 0 ;
32690 PyObject * obj4 = 0 ;
32691 char * kwnames[] = {
32692 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
32693 };
32694
32695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32697 if (!SWIG_IsOK(res1)) {
32698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32699 }
32700 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32701 {
32702 arg2 = wxString_in_helper(obj1);
32703 if (arg2 == NULL) SWIG_fail;
32704 temp2 = true;
32705 }
32706 ecode3 = SWIG_AsVal_int(obj2, &val3);
32707 if (!SWIG_IsOK(ecode3)) {
32708 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
32709 }
32710 arg3 = static_cast< int >(val3);
32711 ecode4 = SWIG_AsVal_int(obj3, &val4);
32712 if (!SWIG_IsOK(ecode4)) {
32713 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
32714 }
32715 arg4 = static_cast< int >(val4);
32716 ecode5 = SWIG_AsVal_int(obj4, &val5);
32717 if (!SWIG_IsOK(ecode5)) {
32718 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
32719 }
32720 arg5 = static_cast< int >(val5);
32721 {
32722 PyThreadState* __tstate = wxPyBeginAllowThreads();
32723 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
32724 wxPyEndAllowThreads(__tstate);
32725 if (PyErr_Occurred()) SWIG_fail;
32726 }
32727 resultobj = SWIG_Py_Void();
32728 {
32729 if (temp2)
32730 delete arg2;
32731 }
32732 return resultobj;
32733 fail:
32734 {
32735 if (temp2)
32736 delete arg2;
32737 }
32738 return NULL;
32739 }
32740
32741
32742 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32743 PyObject *obj;
32744 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32745 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
32746 return SWIG_Py_Void();
32747 }
32748
32749 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32750 return SWIG_Python_InitShadowInstance(args);
32751 }
32752
32753 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32754 PyObject *resultobj = 0;
32755 wxFontList *result = 0 ;
32756
32757 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
32758 {
32759 PyThreadState* __tstate = wxPyBeginAllowThreads();
32760 result = (wxFontList *)_wxPyInitTheFontList();
32761 wxPyEndAllowThreads(__tstate);
32762 if (PyErr_Occurred()) SWIG_fail;
32763 }
32764 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
32765 return resultobj;
32766 fail:
32767 return NULL;
32768 }
32769
32770
32771 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32772 PyObject *resultobj = 0;
32773 wxPenList *result = 0 ;
32774
32775 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
32776 {
32777 PyThreadState* __tstate = wxPyBeginAllowThreads();
32778 result = (wxPenList *)_wxPyInitThePenList();
32779 wxPyEndAllowThreads(__tstate);
32780 if (PyErr_Occurred()) SWIG_fail;
32781 }
32782 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
32783 return resultobj;
32784 fail:
32785 return NULL;
32786 }
32787
32788
32789 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32790 PyObject *resultobj = 0;
32791 wxBrushList *result = 0 ;
32792
32793 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
32794 {
32795 PyThreadState* __tstate = wxPyBeginAllowThreads();
32796 result = (wxBrushList *)_wxPyInitTheBrushList();
32797 wxPyEndAllowThreads(__tstate);
32798 if (PyErr_Occurred()) SWIG_fail;
32799 }
32800 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
32801 return resultobj;
32802 fail:
32803 return NULL;
32804 }
32805
32806
32807 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32808 PyObject *resultobj = 0;
32809 wxColourDatabase *result = 0 ;
32810
32811 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
32812 {
32813 PyThreadState* __tstate = wxPyBeginAllowThreads();
32814 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
32815 wxPyEndAllowThreads(__tstate);
32816 if (PyErr_Occurred()) SWIG_fail;
32817 }
32818 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32819 return resultobj;
32820 fail:
32821 return NULL;
32822 }
32823
32824
32825 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32826 PyObject *resultobj = 0;
32827 wxEffects *result = 0 ;
32828
32829 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
32830 {
32831 PyThreadState* __tstate = wxPyBeginAllowThreads();
32832 result = (wxEffects *)new wxEffects();
32833 wxPyEndAllowThreads(__tstate);
32834 if (PyErr_Occurred()) SWIG_fail;
32835 }
32836 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
32837 return resultobj;
32838 fail:
32839 return NULL;
32840 }
32841
32842
32843 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32844 PyObject *resultobj = 0;
32845 wxEffects *arg1 = (wxEffects *) 0 ;
32846 wxColour result;
32847 void *argp1 = 0 ;
32848 int res1 = 0 ;
32849 PyObject *swig_obj[1] ;
32850
32851 if (!args) SWIG_fail;
32852 swig_obj[0] = args;
32853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32854 if (!SWIG_IsOK(res1)) {
32855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32856 }
32857 arg1 = reinterpret_cast< wxEffects * >(argp1);
32858 {
32859 PyThreadState* __tstate = wxPyBeginAllowThreads();
32860 result = ((wxEffects const *)arg1)->GetHighlightColour();
32861 wxPyEndAllowThreads(__tstate);
32862 if (PyErr_Occurred()) SWIG_fail;
32863 }
32864 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32865 return resultobj;
32866 fail:
32867 return NULL;
32868 }
32869
32870
32871 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32872 PyObject *resultobj = 0;
32873 wxEffects *arg1 = (wxEffects *) 0 ;
32874 wxColour result;
32875 void *argp1 = 0 ;
32876 int res1 = 0 ;
32877 PyObject *swig_obj[1] ;
32878
32879 if (!args) SWIG_fail;
32880 swig_obj[0] = args;
32881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32882 if (!SWIG_IsOK(res1)) {
32883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32884 }
32885 arg1 = reinterpret_cast< wxEffects * >(argp1);
32886 {
32887 PyThreadState* __tstate = wxPyBeginAllowThreads();
32888 result = ((wxEffects const *)arg1)->GetLightShadow();
32889 wxPyEndAllowThreads(__tstate);
32890 if (PyErr_Occurred()) SWIG_fail;
32891 }
32892 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32893 return resultobj;
32894 fail:
32895 return NULL;
32896 }
32897
32898
32899 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32900 PyObject *resultobj = 0;
32901 wxEffects *arg1 = (wxEffects *) 0 ;
32902 wxColour result;
32903 void *argp1 = 0 ;
32904 int res1 = 0 ;
32905 PyObject *swig_obj[1] ;
32906
32907 if (!args) SWIG_fail;
32908 swig_obj[0] = args;
32909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32910 if (!SWIG_IsOK(res1)) {
32911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32912 }
32913 arg1 = reinterpret_cast< wxEffects * >(argp1);
32914 {
32915 PyThreadState* __tstate = wxPyBeginAllowThreads();
32916 result = ((wxEffects const *)arg1)->GetFaceColour();
32917 wxPyEndAllowThreads(__tstate);
32918 if (PyErr_Occurred()) SWIG_fail;
32919 }
32920 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32921 return resultobj;
32922 fail:
32923 return NULL;
32924 }
32925
32926
32927 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32928 PyObject *resultobj = 0;
32929 wxEffects *arg1 = (wxEffects *) 0 ;
32930 wxColour result;
32931 void *argp1 = 0 ;
32932 int res1 = 0 ;
32933 PyObject *swig_obj[1] ;
32934
32935 if (!args) SWIG_fail;
32936 swig_obj[0] = args;
32937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32938 if (!SWIG_IsOK(res1)) {
32939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32940 }
32941 arg1 = reinterpret_cast< wxEffects * >(argp1);
32942 {
32943 PyThreadState* __tstate = wxPyBeginAllowThreads();
32944 result = ((wxEffects const *)arg1)->GetMediumShadow();
32945 wxPyEndAllowThreads(__tstate);
32946 if (PyErr_Occurred()) SWIG_fail;
32947 }
32948 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32949 return resultobj;
32950 fail:
32951 return NULL;
32952 }
32953
32954
32955 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32956 PyObject *resultobj = 0;
32957 wxEffects *arg1 = (wxEffects *) 0 ;
32958 wxColour result;
32959 void *argp1 = 0 ;
32960 int res1 = 0 ;
32961 PyObject *swig_obj[1] ;
32962
32963 if (!args) SWIG_fail;
32964 swig_obj[0] = args;
32965 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32966 if (!SWIG_IsOK(res1)) {
32967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32968 }
32969 arg1 = reinterpret_cast< wxEffects * >(argp1);
32970 {
32971 PyThreadState* __tstate = wxPyBeginAllowThreads();
32972 result = ((wxEffects const *)arg1)->GetDarkShadow();
32973 wxPyEndAllowThreads(__tstate);
32974 if (PyErr_Occurred()) SWIG_fail;
32975 }
32976 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32977 return resultobj;
32978 fail:
32979 return NULL;
32980 }
32981
32982
32983 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32984 PyObject *resultobj = 0;
32985 wxEffects *arg1 = (wxEffects *) 0 ;
32986 wxColour *arg2 = 0 ;
32987 void *argp1 = 0 ;
32988 int res1 = 0 ;
32989 wxColour temp2 ;
32990 PyObject * obj0 = 0 ;
32991 PyObject * obj1 = 0 ;
32992 char * kwnames[] = {
32993 (char *) "self",(char *) "c", NULL
32994 };
32995
32996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
32997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32998 if (!SWIG_IsOK(res1)) {
32999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33000 }
33001 arg1 = reinterpret_cast< wxEffects * >(argp1);
33002 {
33003 arg2 = &temp2;
33004 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33005 }
33006 {
33007 PyThreadState* __tstate = wxPyBeginAllowThreads();
33008 (arg1)->SetHighlightColour((wxColour const &)*arg2);
33009 wxPyEndAllowThreads(__tstate);
33010 if (PyErr_Occurred()) SWIG_fail;
33011 }
33012 resultobj = SWIG_Py_Void();
33013 return resultobj;
33014 fail:
33015 return NULL;
33016 }
33017
33018
33019 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33020 PyObject *resultobj = 0;
33021 wxEffects *arg1 = (wxEffects *) 0 ;
33022 wxColour *arg2 = 0 ;
33023 void *argp1 = 0 ;
33024 int res1 = 0 ;
33025 wxColour temp2 ;
33026 PyObject * obj0 = 0 ;
33027 PyObject * obj1 = 0 ;
33028 char * kwnames[] = {
33029 (char *) "self",(char *) "c", NULL
33030 };
33031
33032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33034 if (!SWIG_IsOK(res1)) {
33035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33036 }
33037 arg1 = reinterpret_cast< wxEffects * >(argp1);
33038 {
33039 arg2 = &temp2;
33040 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33041 }
33042 {
33043 PyThreadState* __tstate = wxPyBeginAllowThreads();
33044 (arg1)->SetLightShadow((wxColour const &)*arg2);
33045 wxPyEndAllowThreads(__tstate);
33046 if (PyErr_Occurred()) SWIG_fail;
33047 }
33048 resultobj = SWIG_Py_Void();
33049 return resultobj;
33050 fail:
33051 return NULL;
33052 }
33053
33054
33055 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33056 PyObject *resultobj = 0;
33057 wxEffects *arg1 = (wxEffects *) 0 ;
33058 wxColour *arg2 = 0 ;
33059 void *argp1 = 0 ;
33060 int res1 = 0 ;
33061 wxColour temp2 ;
33062 PyObject * obj0 = 0 ;
33063 PyObject * obj1 = 0 ;
33064 char * kwnames[] = {
33065 (char *) "self",(char *) "c", NULL
33066 };
33067
33068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
33069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33070 if (!SWIG_IsOK(res1)) {
33071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33072 }
33073 arg1 = reinterpret_cast< wxEffects * >(argp1);
33074 {
33075 arg2 = &temp2;
33076 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33077 }
33078 {
33079 PyThreadState* __tstate = wxPyBeginAllowThreads();
33080 (arg1)->SetFaceColour((wxColour const &)*arg2);
33081 wxPyEndAllowThreads(__tstate);
33082 if (PyErr_Occurred()) SWIG_fail;
33083 }
33084 resultobj = SWIG_Py_Void();
33085 return resultobj;
33086 fail:
33087 return NULL;
33088 }
33089
33090
33091 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33092 PyObject *resultobj = 0;
33093 wxEffects *arg1 = (wxEffects *) 0 ;
33094 wxColour *arg2 = 0 ;
33095 void *argp1 = 0 ;
33096 int res1 = 0 ;
33097 wxColour temp2 ;
33098 PyObject * obj0 = 0 ;
33099 PyObject * obj1 = 0 ;
33100 char * kwnames[] = {
33101 (char *) "self",(char *) "c", NULL
33102 };
33103
33104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33106 if (!SWIG_IsOK(res1)) {
33107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33108 }
33109 arg1 = reinterpret_cast< wxEffects * >(argp1);
33110 {
33111 arg2 = &temp2;
33112 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33113 }
33114 {
33115 PyThreadState* __tstate = wxPyBeginAllowThreads();
33116 (arg1)->SetMediumShadow((wxColour const &)*arg2);
33117 wxPyEndAllowThreads(__tstate);
33118 if (PyErr_Occurred()) SWIG_fail;
33119 }
33120 resultobj = SWIG_Py_Void();
33121 return resultobj;
33122 fail:
33123 return NULL;
33124 }
33125
33126
33127 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33128 PyObject *resultobj = 0;
33129 wxEffects *arg1 = (wxEffects *) 0 ;
33130 wxColour *arg2 = 0 ;
33131 void *argp1 = 0 ;
33132 int res1 = 0 ;
33133 wxColour temp2 ;
33134 PyObject * obj0 = 0 ;
33135 PyObject * obj1 = 0 ;
33136 char * kwnames[] = {
33137 (char *) "self",(char *) "c", NULL
33138 };
33139
33140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33142 if (!SWIG_IsOK(res1)) {
33143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33144 }
33145 arg1 = reinterpret_cast< wxEffects * >(argp1);
33146 {
33147 arg2 = &temp2;
33148 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33149 }
33150 {
33151 PyThreadState* __tstate = wxPyBeginAllowThreads();
33152 (arg1)->SetDarkShadow((wxColour const &)*arg2);
33153 wxPyEndAllowThreads(__tstate);
33154 if (PyErr_Occurred()) SWIG_fail;
33155 }
33156 resultobj = SWIG_Py_Void();
33157 return resultobj;
33158 fail:
33159 return NULL;
33160 }
33161
33162
33163 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33164 PyObject *resultobj = 0;
33165 wxEffects *arg1 = (wxEffects *) 0 ;
33166 wxColour *arg2 = 0 ;
33167 wxColour *arg3 = 0 ;
33168 wxColour *arg4 = 0 ;
33169 wxColour *arg5 = 0 ;
33170 wxColour *arg6 = 0 ;
33171 void *argp1 = 0 ;
33172 int res1 = 0 ;
33173 wxColour temp2 ;
33174 wxColour temp3 ;
33175 wxColour temp4 ;
33176 wxColour temp5 ;
33177 wxColour temp6 ;
33178 PyObject * obj0 = 0 ;
33179 PyObject * obj1 = 0 ;
33180 PyObject * obj2 = 0 ;
33181 PyObject * obj3 = 0 ;
33182 PyObject * obj4 = 0 ;
33183 PyObject * obj5 = 0 ;
33184 char * kwnames[] = {
33185 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
33186 };
33187
33188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33190 if (!SWIG_IsOK(res1)) {
33191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
33192 }
33193 arg1 = reinterpret_cast< wxEffects * >(argp1);
33194 {
33195 arg2 = &temp2;
33196 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33197 }
33198 {
33199 arg3 = &temp3;
33200 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33201 }
33202 {
33203 arg4 = &temp4;
33204 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
33205 }
33206 {
33207 arg5 = &temp5;
33208 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
33209 }
33210 {
33211 arg6 = &temp6;
33212 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
33213 }
33214 {
33215 PyThreadState* __tstate = wxPyBeginAllowThreads();
33216 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
33217 wxPyEndAllowThreads(__tstate);
33218 if (PyErr_Occurred()) SWIG_fail;
33219 }
33220 resultobj = SWIG_Py_Void();
33221 return resultobj;
33222 fail:
33223 return NULL;
33224 }
33225
33226
33227 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33228 PyObject *resultobj = 0;
33229 wxEffects *arg1 = (wxEffects *) 0 ;
33230 wxDC *arg2 = 0 ;
33231 wxRect *arg3 = 0 ;
33232 int arg4 = (int) 1 ;
33233 void *argp1 = 0 ;
33234 int res1 = 0 ;
33235 void *argp2 = 0 ;
33236 int res2 = 0 ;
33237 wxRect temp3 ;
33238 int val4 ;
33239 int ecode4 = 0 ;
33240 PyObject * obj0 = 0 ;
33241 PyObject * obj1 = 0 ;
33242 PyObject * obj2 = 0 ;
33243 PyObject * obj3 = 0 ;
33244 char * kwnames[] = {
33245 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
33246 };
33247
33248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33250 if (!SWIG_IsOK(res1)) {
33251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
33252 }
33253 arg1 = reinterpret_cast< wxEffects * >(argp1);
33254 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
33255 if (!SWIG_IsOK(res2)) {
33256 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33257 }
33258 if (!argp2) {
33259 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33260 }
33261 arg2 = reinterpret_cast< wxDC * >(argp2);
33262 {
33263 arg3 = &temp3;
33264 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33265 }
33266 if (obj3) {
33267 ecode4 = SWIG_AsVal_int(obj3, &val4);
33268 if (!SWIG_IsOK(ecode4)) {
33269 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
33270 }
33271 arg4 = static_cast< int >(val4);
33272 }
33273 {
33274 PyThreadState* __tstate = wxPyBeginAllowThreads();
33275 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
33276 wxPyEndAllowThreads(__tstate);
33277 if (PyErr_Occurred()) SWIG_fail;
33278 }
33279 resultobj = SWIG_Py_Void();
33280 return resultobj;
33281 fail:
33282 return NULL;
33283 }
33284
33285
33286 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33287 PyObject *resultobj = 0;
33288 wxEffects *arg1 = (wxEffects *) 0 ;
33289 wxRect *arg2 = 0 ;
33290 wxDC *arg3 = 0 ;
33291 wxBitmap *arg4 = 0 ;
33292 bool result;
33293 void *argp1 = 0 ;
33294 int res1 = 0 ;
33295 wxRect temp2 ;
33296 void *argp3 = 0 ;
33297 int res3 = 0 ;
33298 void *argp4 = 0 ;
33299 int res4 = 0 ;
33300 PyObject * obj0 = 0 ;
33301 PyObject * obj1 = 0 ;
33302 PyObject * obj2 = 0 ;
33303 PyObject * obj3 = 0 ;
33304 char * kwnames[] = {
33305 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
33306 };
33307
33308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33310 if (!SWIG_IsOK(res1)) {
33311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
33312 }
33313 arg1 = reinterpret_cast< wxEffects * >(argp1);
33314 {
33315 arg2 = &temp2;
33316 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33317 }
33318 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33319 if (!SWIG_IsOK(res3)) {
33320 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33321 }
33322 if (!argp3) {
33323 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33324 }
33325 arg3 = reinterpret_cast< wxDC * >(argp3);
33326 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
33327 if (!SWIG_IsOK(res4)) {
33328 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33329 }
33330 if (!argp4) {
33331 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33332 }
33333 arg4 = reinterpret_cast< wxBitmap * >(argp4);
33334 {
33335 PyThreadState* __tstate = wxPyBeginAllowThreads();
33336 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
33337 wxPyEndAllowThreads(__tstate);
33338 if (PyErr_Occurred()) SWIG_fail;
33339 }
33340 {
33341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33342 }
33343 return resultobj;
33344 fail:
33345 return NULL;
33346 }
33347
33348
33349 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33350 PyObject *obj;
33351 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33352 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
33353 return SWIG_Py_Void();
33354 }
33355
33356 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33357 return SWIG_Python_InitShadowInstance(args);
33358 }
33359
33360 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33361 PyObject *resultobj = 0;
33362 int arg1 ;
33363 int arg2 ;
33364 bool arg3 ;
33365 wxSplitterRenderParams *result = 0 ;
33366 int val1 ;
33367 int ecode1 = 0 ;
33368 int val2 ;
33369 int ecode2 = 0 ;
33370 bool val3 ;
33371 int ecode3 = 0 ;
33372 PyObject * obj0 = 0 ;
33373 PyObject * obj1 = 0 ;
33374 PyObject * obj2 = 0 ;
33375 char * kwnames[] = {
33376 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
33377 };
33378
33379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33380 ecode1 = SWIG_AsVal_int(obj0, &val1);
33381 if (!SWIG_IsOK(ecode1)) {
33382 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
33383 }
33384 arg1 = static_cast< int >(val1);
33385 ecode2 = SWIG_AsVal_int(obj1, &val2);
33386 if (!SWIG_IsOK(ecode2)) {
33387 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
33388 }
33389 arg2 = static_cast< int >(val2);
33390 ecode3 = SWIG_AsVal_bool(obj2, &val3);
33391 if (!SWIG_IsOK(ecode3)) {
33392 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
33393 }
33394 arg3 = static_cast< bool >(val3);
33395 {
33396 PyThreadState* __tstate = wxPyBeginAllowThreads();
33397 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
33398 wxPyEndAllowThreads(__tstate);
33399 if (PyErr_Occurred()) SWIG_fail;
33400 }
33401 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
33402 return resultobj;
33403 fail:
33404 return NULL;
33405 }
33406
33407
33408 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33409 PyObject *resultobj = 0;
33410 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33411 void *argp1 = 0 ;
33412 int res1 = 0 ;
33413 PyObject *swig_obj[1] ;
33414
33415 if (!args) SWIG_fail;
33416 swig_obj[0] = args;
33417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
33418 if (!SWIG_IsOK(res1)) {
33419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33420 }
33421 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33422 {
33423 PyThreadState* __tstate = wxPyBeginAllowThreads();
33424 delete arg1;
33425
33426 wxPyEndAllowThreads(__tstate);
33427 if (PyErr_Occurred()) SWIG_fail;
33428 }
33429 resultobj = SWIG_Py_Void();
33430 return resultobj;
33431 fail:
33432 return NULL;
33433 }
33434
33435
33436 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33437 PyObject *resultobj = 0;
33438 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33439 int result;
33440 void *argp1 = 0 ;
33441 int res1 = 0 ;
33442 PyObject *swig_obj[1] ;
33443
33444 if (!args) SWIG_fail;
33445 swig_obj[0] = args;
33446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33447 if (!SWIG_IsOK(res1)) {
33448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33449 }
33450 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33451 result = (int)(int) ((arg1)->widthSash);
33452 resultobj = SWIG_From_int(static_cast< int >(result));
33453 return resultobj;
33454 fail:
33455 return NULL;
33456 }
33457
33458
33459 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33460 PyObject *resultobj = 0;
33461 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33462 int result;
33463 void *argp1 = 0 ;
33464 int res1 = 0 ;
33465 PyObject *swig_obj[1] ;
33466
33467 if (!args) SWIG_fail;
33468 swig_obj[0] = args;
33469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33470 if (!SWIG_IsOK(res1)) {
33471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33472 }
33473 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33474 result = (int)(int) ((arg1)->border);
33475 resultobj = SWIG_From_int(static_cast< int >(result));
33476 return resultobj;
33477 fail:
33478 return NULL;
33479 }
33480
33481
33482 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33483 PyObject *resultobj = 0;
33484 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33485 bool result;
33486 void *argp1 = 0 ;
33487 int res1 = 0 ;
33488 PyObject *swig_obj[1] ;
33489
33490 if (!args) SWIG_fail;
33491 swig_obj[0] = args;
33492 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33493 if (!SWIG_IsOK(res1)) {
33494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33495 }
33496 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33497 result = (bool)(bool) ((arg1)->isHotSensitive);
33498 resultobj = SWIG_From_bool(static_cast< bool >(result));
33499 return resultobj;
33500 fail:
33501 return NULL;
33502 }
33503
33504
33505 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33506 PyObject *obj;
33507 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33508 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
33509 return SWIG_Py_Void();
33510 }
33511
33512 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33513 return SWIG_Python_InitShadowInstance(args);
33514 }
33515
33516 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33517 PyObject *resultobj = 0;
33518 wxHeaderButtonParams *result = 0 ;
33519
33520 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
33521 {
33522 PyThreadState* __tstate = wxPyBeginAllowThreads();
33523 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
33524 wxPyEndAllowThreads(__tstate);
33525 if (PyErr_Occurred()) SWIG_fail;
33526 }
33527 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
33528 return resultobj;
33529 fail:
33530 return NULL;
33531 }
33532
33533
33534 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33535 PyObject *resultobj = 0;
33536 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33537 void *argp1 = 0 ;
33538 int res1 = 0 ;
33539 PyObject *swig_obj[1] ;
33540
33541 if (!args) SWIG_fail;
33542 swig_obj[0] = args;
33543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
33544 if (!SWIG_IsOK(res1)) {
33545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33546 }
33547 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33548 {
33549 PyThreadState* __tstate = wxPyBeginAllowThreads();
33550 delete arg1;
33551
33552 wxPyEndAllowThreads(__tstate);
33553 if (PyErr_Occurred()) SWIG_fail;
33554 }
33555 resultobj = SWIG_Py_Void();
33556 return resultobj;
33557 fail:
33558 return NULL;
33559 }
33560
33561
33562 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33563 PyObject *resultobj = 0;
33564 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33565 wxColour *arg2 = (wxColour *) 0 ;
33566 void *argp1 = 0 ;
33567 int res1 = 0 ;
33568 wxColour temp2 ;
33569 PyObject *swig_obj[2] ;
33570
33571 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
33572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33573 if (!SWIG_IsOK(res1)) {
33574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33575 }
33576 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33577 {
33578 arg2 = &temp2;
33579 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33580 }
33581 if (arg1) (arg1)->m_arrowColour = *arg2;
33582
33583 resultobj = SWIG_Py_Void();
33584 return resultobj;
33585 fail:
33586 return NULL;
33587 }
33588
33589
33590 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33591 PyObject *resultobj = 0;
33592 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33593 wxColour *result = 0 ;
33594 void *argp1 = 0 ;
33595 int res1 = 0 ;
33596 PyObject *swig_obj[1] ;
33597
33598 if (!args) SWIG_fail;
33599 swig_obj[0] = args;
33600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33601 if (!SWIG_IsOK(res1)) {
33602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33603 }
33604 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33605 result = (wxColour *)& ((arg1)->m_arrowColour);
33606 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33607 return resultobj;
33608 fail:
33609 return NULL;
33610 }
33611
33612
33613 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33614 PyObject *resultobj = 0;
33615 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33616 wxColour *arg2 = (wxColour *) 0 ;
33617 void *argp1 = 0 ;
33618 int res1 = 0 ;
33619 wxColour temp2 ;
33620 PyObject *swig_obj[2] ;
33621
33622 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
33623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33624 if (!SWIG_IsOK(res1)) {
33625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33626 }
33627 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33628 {
33629 arg2 = &temp2;
33630 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33631 }
33632 if (arg1) (arg1)->m_selectionColour = *arg2;
33633
33634 resultobj = SWIG_Py_Void();
33635 return resultobj;
33636 fail:
33637 return NULL;
33638 }
33639
33640
33641 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33642 PyObject *resultobj = 0;
33643 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33644 wxColour *result = 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_wxHeaderButtonParams, 0 | 0 );
33652 if (!SWIG_IsOK(res1)) {
33653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33654 }
33655 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33656 result = (wxColour *)& ((arg1)->m_selectionColour);
33657 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33658 return resultobj;
33659 fail:
33660 return NULL;
33661 }
33662
33663
33664 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33665 PyObject *resultobj = 0;
33666 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33667 wxString *arg2 = (wxString *) 0 ;
33668 void *argp1 = 0 ;
33669 int res1 = 0 ;
33670 bool temp2 = false ;
33671 PyObject *swig_obj[2] ;
33672
33673 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
33674 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33675 if (!SWIG_IsOK(res1)) {
33676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33677 }
33678 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33679 {
33680 arg2 = wxString_in_helper(swig_obj[1]);
33681 if (arg2 == NULL) SWIG_fail;
33682 temp2 = true;
33683 }
33684 if (arg1) (arg1)->m_labelText = *arg2;
33685
33686 resultobj = SWIG_Py_Void();
33687 {
33688 if (temp2)
33689 delete arg2;
33690 }
33691 return resultobj;
33692 fail:
33693 {
33694 if (temp2)
33695 delete arg2;
33696 }
33697 return NULL;
33698 }
33699
33700
33701 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33702 PyObject *resultobj = 0;
33703 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33704 wxString *result = 0 ;
33705 void *argp1 = 0 ;
33706 int res1 = 0 ;
33707 PyObject *swig_obj[1] ;
33708
33709 if (!args) SWIG_fail;
33710 swig_obj[0] = args;
33711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33712 if (!SWIG_IsOK(res1)) {
33713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33714 }
33715 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33716 result = (wxString *)& ((arg1)->m_labelText);
33717 {
33718 #if wxUSE_UNICODE
33719 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33720 #else
33721 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33722 #endif
33723 }
33724 return resultobj;
33725 fail:
33726 return NULL;
33727 }
33728
33729
33730 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33731 PyObject *resultobj = 0;
33732 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33733 wxFont *arg2 = (wxFont *) 0 ;
33734 void *argp1 = 0 ;
33735 int res1 = 0 ;
33736 void *argp2 = 0 ;
33737 int res2 = 0 ;
33738 PyObject *swig_obj[2] ;
33739
33740 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
33741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33742 if (!SWIG_IsOK(res1)) {
33743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33744 }
33745 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33746 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33747 if (!SWIG_IsOK(res2)) {
33748 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
33749 }
33750 arg2 = reinterpret_cast< wxFont * >(argp2);
33751 if (arg1) (arg1)->m_labelFont = *arg2;
33752
33753 resultobj = SWIG_Py_Void();
33754 return resultobj;
33755 fail:
33756 return NULL;
33757 }
33758
33759
33760 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33761 PyObject *resultobj = 0;
33762 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33763 wxFont *result = 0 ;
33764 void *argp1 = 0 ;
33765 int res1 = 0 ;
33766 PyObject *swig_obj[1] ;
33767
33768 if (!args) SWIG_fail;
33769 swig_obj[0] = args;
33770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33771 if (!SWIG_IsOK(res1)) {
33772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33773 }
33774 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33775 result = (wxFont *)& ((arg1)->m_labelFont);
33776 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33777 return resultobj;
33778 fail:
33779 return NULL;
33780 }
33781
33782
33783 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33784 PyObject *resultobj = 0;
33785 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33786 wxColour *arg2 = (wxColour *) 0 ;
33787 void *argp1 = 0 ;
33788 int res1 = 0 ;
33789 wxColour temp2 ;
33790 PyObject *swig_obj[2] ;
33791
33792 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
33793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33794 if (!SWIG_IsOK(res1)) {
33795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33796 }
33797 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33798 {
33799 arg2 = &temp2;
33800 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33801 }
33802 if (arg1) (arg1)->m_labelColour = *arg2;
33803
33804 resultobj = SWIG_Py_Void();
33805 return resultobj;
33806 fail:
33807 return NULL;
33808 }
33809
33810
33811 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33812 PyObject *resultobj = 0;
33813 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33814 wxColour *result = 0 ;
33815 void *argp1 = 0 ;
33816 int res1 = 0 ;
33817 PyObject *swig_obj[1] ;
33818
33819 if (!args) SWIG_fail;
33820 swig_obj[0] = args;
33821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33822 if (!SWIG_IsOK(res1)) {
33823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33824 }
33825 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33826 result = (wxColour *)& ((arg1)->m_labelColour);
33827 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33828 return resultobj;
33829 fail:
33830 return NULL;
33831 }
33832
33833
33834 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33835 PyObject *resultobj = 0;
33836 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33837 wxBitmap *arg2 = (wxBitmap *) 0 ;
33838 void *argp1 = 0 ;
33839 int res1 = 0 ;
33840 void *argp2 = 0 ;
33841 int res2 = 0 ;
33842 PyObject *swig_obj[2] ;
33843
33844 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
33845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33846 if (!SWIG_IsOK(res1)) {
33847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33848 }
33849 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33850 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
33851 if (!SWIG_IsOK(res2)) {
33852 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
33853 }
33854 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33855 if (arg1) (arg1)->m_labelBitmap = *arg2;
33856
33857 resultobj = SWIG_Py_Void();
33858 return resultobj;
33859 fail:
33860 return NULL;
33861 }
33862
33863
33864 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33865 PyObject *resultobj = 0;
33866 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33867 wxBitmap *result = 0 ;
33868 void *argp1 = 0 ;
33869 int res1 = 0 ;
33870 PyObject *swig_obj[1] ;
33871
33872 if (!args) SWIG_fail;
33873 swig_obj[0] = args;
33874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33875 if (!SWIG_IsOK(res1)) {
33876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33877 }
33878 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33879 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
33880 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
33881 return resultobj;
33882 fail:
33883 return NULL;
33884 }
33885
33886
33887 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33888 PyObject *resultobj = 0;
33889 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33890 int arg2 ;
33891 void *argp1 = 0 ;
33892 int res1 = 0 ;
33893 int val2 ;
33894 int ecode2 = 0 ;
33895 PyObject *swig_obj[2] ;
33896
33897 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
33898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33899 if (!SWIG_IsOK(res1)) {
33900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33901 }
33902 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33903 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33904 if (!SWIG_IsOK(ecode2)) {
33905 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
33906 }
33907 arg2 = static_cast< int >(val2);
33908 if (arg1) (arg1)->m_labelAlignment = arg2;
33909
33910 resultobj = SWIG_Py_Void();
33911 return resultobj;
33912 fail:
33913 return NULL;
33914 }
33915
33916
33917 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33918 PyObject *resultobj = 0;
33919 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33920 int result;
33921 void *argp1 = 0 ;
33922 int res1 = 0 ;
33923 PyObject *swig_obj[1] ;
33924
33925 if (!args) SWIG_fail;
33926 swig_obj[0] = args;
33927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33928 if (!SWIG_IsOK(res1)) {
33929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33930 }
33931 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33932 result = (int) ((arg1)->m_labelAlignment);
33933 resultobj = SWIG_From_int(static_cast< int >(result));
33934 return resultobj;
33935 fail:
33936 return NULL;
33937 }
33938
33939
33940 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33941 PyObject *obj;
33942 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33943 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
33944 return SWIG_Py_Void();
33945 }
33946
33947 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33948 return SWIG_Python_InitShadowInstance(args);
33949 }
33950
33951 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33952 PyObject *resultobj = 0;
33953 int arg1 ;
33954 int arg2 ;
33955 wxRendererVersion *result = 0 ;
33956 int val1 ;
33957 int ecode1 = 0 ;
33958 int val2 ;
33959 int ecode2 = 0 ;
33960 PyObject * obj0 = 0 ;
33961 PyObject * obj1 = 0 ;
33962 char * kwnames[] = {
33963 (char *) "version_",(char *) "age_", NULL
33964 };
33965
33966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
33967 ecode1 = SWIG_AsVal_int(obj0, &val1);
33968 if (!SWIG_IsOK(ecode1)) {
33969 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
33970 }
33971 arg1 = static_cast< int >(val1);
33972 ecode2 = SWIG_AsVal_int(obj1, &val2);
33973 if (!SWIG_IsOK(ecode2)) {
33974 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
33975 }
33976 arg2 = static_cast< int >(val2);
33977 {
33978 PyThreadState* __tstate = wxPyBeginAllowThreads();
33979 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
33980 wxPyEndAllowThreads(__tstate);
33981 if (PyErr_Occurred()) SWIG_fail;
33982 }
33983 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
33984 return resultobj;
33985 fail:
33986 return NULL;
33987 }
33988
33989
33990 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33991 PyObject *resultobj = 0;
33992 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33993 void *argp1 = 0 ;
33994 int res1 = 0 ;
33995 PyObject *swig_obj[1] ;
33996
33997 if (!args) SWIG_fail;
33998 swig_obj[0] = args;
33999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
34000 if (!SWIG_IsOK(res1)) {
34001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34002 }
34003 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34004 {
34005 PyThreadState* __tstate = wxPyBeginAllowThreads();
34006 delete arg1;
34007
34008 wxPyEndAllowThreads(__tstate);
34009 if (PyErr_Occurred()) SWIG_fail;
34010 }
34011 resultobj = SWIG_Py_Void();
34012 return resultobj;
34013 fail:
34014 return NULL;
34015 }
34016
34017
34018 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34019 PyObject *resultobj = 0;
34020 wxRendererVersion *arg1 = 0 ;
34021 bool result;
34022 void *argp1 = 0 ;
34023 int res1 = 0 ;
34024 PyObject * obj0 = 0 ;
34025 char * kwnames[] = {
34026 (char *) "ver", NULL
34027 };
34028
34029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
34030 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
34031 if (!SWIG_IsOK(res1)) {
34032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34033 }
34034 if (!argp1) {
34035 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34036 }
34037 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34038 {
34039 PyThreadState* __tstate = wxPyBeginAllowThreads();
34040 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
34041 wxPyEndAllowThreads(__tstate);
34042 if (PyErr_Occurred()) SWIG_fail;
34043 }
34044 {
34045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34046 }
34047 return resultobj;
34048 fail:
34049 return NULL;
34050 }
34051
34052
34053 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34054 PyObject *resultobj = 0;
34055 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34056 int result;
34057 void *argp1 = 0 ;
34058 int res1 = 0 ;
34059 PyObject *swig_obj[1] ;
34060
34061 if (!args) SWIG_fail;
34062 swig_obj[0] = args;
34063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34064 if (!SWIG_IsOK(res1)) {
34065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34066 }
34067 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34068 result = (int)(int) ((arg1)->version);
34069 resultobj = SWIG_From_int(static_cast< int >(result));
34070 return resultobj;
34071 fail:
34072 return NULL;
34073 }
34074
34075
34076 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34077 PyObject *resultobj = 0;
34078 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34079 int result;
34080 void *argp1 = 0 ;
34081 int res1 = 0 ;
34082 PyObject *swig_obj[1] ;
34083
34084 if (!args) SWIG_fail;
34085 swig_obj[0] = args;
34086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34087 if (!SWIG_IsOK(res1)) {
34088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34089 }
34090 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34091 result = (int)(int) ((arg1)->age);
34092 resultobj = SWIG_From_int(static_cast< int >(result));
34093 return resultobj;
34094 fail:
34095 return NULL;
34096 }
34097
34098
34099 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34100 PyObject *obj;
34101 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34102 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
34103 return SWIG_Py_Void();
34104 }
34105
34106 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34107 return SWIG_Python_InitShadowInstance(args);
34108 }
34109
34110 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34111 PyObject *resultobj = 0;
34112 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34113 wxWindow *arg2 = (wxWindow *) 0 ;
34114 wxDC *arg3 = 0 ;
34115 wxRect *arg4 = 0 ;
34116 int arg5 = (int) 0 ;
34117 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34118 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
34119 void *argp1 = 0 ;
34120 int res1 = 0 ;
34121 void *argp2 = 0 ;
34122 int res2 = 0 ;
34123 void *argp3 = 0 ;
34124 int res3 = 0 ;
34125 wxRect temp4 ;
34126 int val5 ;
34127 int ecode5 = 0 ;
34128 int val6 ;
34129 int ecode6 = 0 ;
34130 void *argp7 = 0 ;
34131 int res7 = 0 ;
34132 PyObject * obj0 = 0 ;
34133 PyObject * obj1 = 0 ;
34134 PyObject * obj2 = 0 ;
34135 PyObject * obj3 = 0 ;
34136 PyObject * obj4 = 0 ;
34137 PyObject * obj5 = 0 ;
34138 PyObject * obj6 = 0 ;
34139 char * kwnames[] = {
34140 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34141 };
34142
34143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34145 if (!SWIG_IsOK(res1)) {
34146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34147 }
34148 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34149 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34150 if (!SWIG_IsOK(res2)) {
34151 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34152 }
34153 arg2 = reinterpret_cast< wxWindow * >(argp2);
34154 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34155 if (!SWIG_IsOK(res3)) {
34156 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34157 }
34158 if (!argp3) {
34159 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34160 }
34161 arg3 = reinterpret_cast< wxDC * >(argp3);
34162 {
34163 arg4 = &temp4;
34164 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34165 }
34166 if (obj4) {
34167 ecode5 = SWIG_AsVal_int(obj4, &val5);
34168 if (!SWIG_IsOK(ecode5)) {
34169 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
34170 }
34171 arg5 = static_cast< int >(val5);
34172 }
34173 if (obj5) {
34174 ecode6 = SWIG_AsVal_int(obj5, &val6);
34175 if (!SWIG_IsOK(ecode6)) {
34176 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34177 }
34178 arg6 = static_cast< wxHeaderSortIconType >(val6);
34179 }
34180 if (obj6) {
34181 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34182 if (!SWIG_IsOK(res7)) {
34183 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34184 }
34185 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34186 }
34187 {
34188 PyThreadState* __tstate = wxPyBeginAllowThreads();
34189 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
34190 wxPyEndAllowThreads(__tstate);
34191 if (PyErr_Occurred()) SWIG_fail;
34192 }
34193 resultobj = SWIG_Py_Void();
34194 return resultobj;
34195 fail:
34196 return NULL;
34197 }
34198
34199
34200 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34201 PyObject *resultobj = 0;
34202 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34203 wxWindow *arg2 = (wxWindow *) 0 ;
34204 wxDC *arg3 = 0 ;
34205 wxRect *arg4 = 0 ;
34206 int arg5 = (int) 0 ;
34207 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34208 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
34209 void *argp1 = 0 ;
34210 int res1 = 0 ;
34211 void *argp2 = 0 ;
34212 int res2 = 0 ;
34213 void *argp3 = 0 ;
34214 int res3 = 0 ;
34215 wxRect temp4 ;
34216 int val5 ;
34217 int ecode5 = 0 ;
34218 int val6 ;
34219 int ecode6 = 0 ;
34220 void *argp7 = 0 ;
34221 int res7 = 0 ;
34222 PyObject * obj0 = 0 ;
34223 PyObject * obj1 = 0 ;
34224 PyObject * obj2 = 0 ;
34225 PyObject * obj3 = 0 ;
34226 PyObject * obj4 = 0 ;
34227 PyObject * obj5 = 0 ;
34228 PyObject * obj6 = 0 ;
34229 char * kwnames[] = {
34230 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34231 };
34232
34233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34235 if (!SWIG_IsOK(res1)) {
34236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34237 }
34238 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34239 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34240 if (!SWIG_IsOK(res2)) {
34241 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
34242 }
34243 arg2 = reinterpret_cast< wxWindow * >(argp2);
34244 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34245 if (!SWIG_IsOK(res3)) {
34246 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34247 }
34248 if (!argp3) {
34249 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34250 }
34251 arg3 = reinterpret_cast< wxDC * >(argp3);
34252 {
34253 arg4 = &temp4;
34254 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34255 }
34256 if (obj4) {
34257 ecode5 = SWIG_AsVal_int(obj4, &val5);
34258 if (!SWIG_IsOK(ecode5)) {
34259 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
34260 }
34261 arg5 = static_cast< int >(val5);
34262 }
34263 if (obj5) {
34264 ecode6 = SWIG_AsVal_int(obj5, &val6);
34265 if (!SWIG_IsOK(ecode6)) {
34266 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34267 }
34268 arg6 = static_cast< wxHeaderSortIconType >(val6);
34269 }
34270 if (obj6) {
34271 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34272 if (!SWIG_IsOK(res7)) {
34273 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34274 }
34275 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34276 }
34277 {
34278 PyThreadState* __tstate = wxPyBeginAllowThreads();
34279 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
34280 wxPyEndAllowThreads(__tstate);
34281 if (PyErr_Occurred()) SWIG_fail;
34282 }
34283 resultobj = SWIG_Py_Void();
34284 return resultobj;
34285 fail:
34286 return NULL;
34287 }
34288
34289
34290 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34291 PyObject *resultobj = 0;
34292 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34293 wxWindow *arg2 = (wxWindow *) 0 ;
34294 int result;
34295 void *argp1 = 0 ;
34296 int res1 = 0 ;
34297 void *argp2 = 0 ;
34298 int res2 = 0 ;
34299 PyObject * obj0 = 0 ;
34300 PyObject * obj1 = 0 ;
34301 char * kwnames[] = {
34302 (char *) "self",(char *) "win", NULL
34303 };
34304
34305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
34306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34307 if (!SWIG_IsOK(res1)) {
34308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34309 }
34310 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34311 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34312 if (!SWIG_IsOK(res2)) {
34313 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
34314 }
34315 arg2 = reinterpret_cast< wxWindow * >(argp2);
34316 {
34317 PyThreadState* __tstate = wxPyBeginAllowThreads();
34318 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
34319 wxPyEndAllowThreads(__tstate);
34320 if (PyErr_Occurred()) SWIG_fail;
34321 }
34322 resultobj = SWIG_From_int(static_cast< int >(result));
34323 return resultobj;
34324 fail:
34325 return NULL;
34326 }
34327
34328
34329 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34330 PyObject *resultobj = 0;
34331 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34332 wxWindow *arg2 = (wxWindow *) 0 ;
34333 wxDC *arg3 = 0 ;
34334 wxRect *arg4 = 0 ;
34335 int arg5 = (int) 0 ;
34336 void *argp1 = 0 ;
34337 int res1 = 0 ;
34338 void *argp2 = 0 ;
34339 int res2 = 0 ;
34340 void *argp3 = 0 ;
34341 int res3 = 0 ;
34342 wxRect temp4 ;
34343 int val5 ;
34344 int ecode5 = 0 ;
34345 PyObject * obj0 = 0 ;
34346 PyObject * obj1 = 0 ;
34347 PyObject * obj2 = 0 ;
34348 PyObject * obj3 = 0 ;
34349 PyObject * obj4 = 0 ;
34350 char * kwnames[] = {
34351 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34352 };
34353
34354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34356 if (!SWIG_IsOK(res1)) {
34357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34358 }
34359 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34360 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34361 if (!SWIG_IsOK(res2)) {
34362 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34363 }
34364 arg2 = reinterpret_cast< wxWindow * >(argp2);
34365 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34366 if (!SWIG_IsOK(res3)) {
34367 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34368 }
34369 if (!argp3) {
34370 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34371 }
34372 arg3 = reinterpret_cast< wxDC * >(argp3);
34373 {
34374 arg4 = &temp4;
34375 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34376 }
34377 if (obj4) {
34378 ecode5 = SWIG_AsVal_int(obj4, &val5);
34379 if (!SWIG_IsOK(ecode5)) {
34380 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
34381 }
34382 arg5 = static_cast< int >(val5);
34383 }
34384 {
34385 PyThreadState* __tstate = wxPyBeginAllowThreads();
34386 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34387 wxPyEndAllowThreads(__tstate);
34388 if (PyErr_Occurred()) SWIG_fail;
34389 }
34390 resultobj = SWIG_Py_Void();
34391 return resultobj;
34392 fail:
34393 return NULL;
34394 }
34395
34396
34397 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34398 PyObject *resultobj = 0;
34399 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34400 wxWindow *arg2 = (wxWindow *) 0 ;
34401 wxDC *arg3 = 0 ;
34402 wxRect *arg4 = 0 ;
34403 int arg5 = (int) 0 ;
34404 void *argp1 = 0 ;
34405 int res1 = 0 ;
34406 void *argp2 = 0 ;
34407 int res2 = 0 ;
34408 void *argp3 = 0 ;
34409 int res3 = 0 ;
34410 wxRect temp4 ;
34411 int val5 ;
34412 int ecode5 = 0 ;
34413 PyObject * obj0 = 0 ;
34414 PyObject * obj1 = 0 ;
34415 PyObject * obj2 = 0 ;
34416 PyObject * obj3 = 0 ;
34417 PyObject * obj4 = 0 ;
34418 char * kwnames[] = {
34419 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34420 };
34421
34422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34424 if (!SWIG_IsOK(res1)) {
34425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34426 }
34427 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34428 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34429 if (!SWIG_IsOK(res2)) {
34430 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
34431 }
34432 arg2 = reinterpret_cast< wxWindow * >(argp2);
34433 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34434 if (!SWIG_IsOK(res3)) {
34435 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34436 }
34437 if (!argp3) {
34438 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34439 }
34440 arg3 = reinterpret_cast< wxDC * >(argp3);
34441 {
34442 arg4 = &temp4;
34443 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34444 }
34445 if (obj4) {
34446 ecode5 = SWIG_AsVal_int(obj4, &val5);
34447 if (!SWIG_IsOK(ecode5)) {
34448 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
34449 }
34450 arg5 = static_cast< int >(val5);
34451 }
34452 {
34453 PyThreadState* __tstate = wxPyBeginAllowThreads();
34454 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
34455 wxPyEndAllowThreads(__tstate);
34456 if (PyErr_Occurred()) SWIG_fail;
34457 }
34458 resultobj = SWIG_Py_Void();
34459 return resultobj;
34460 fail:
34461 return NULL;
34462 }
34463
34464
34465 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34466 PyObject *resultobj = 0;
34467 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34468 wxWindow *arg2 = (wxWindow *) 0 ;
34469 wxDC *arg3 = 0 ;
34470 wxSize *arg4 = 0 ;
34471 int arg5 ;
34472 wxOrientation arg6 ;
34473 int arg7 = (int) 0 ;
34474 void *argp1 = 0 ;
34475 int res1 = 0 ;
34476 void *argp2 = 0 ;
34477 int res2 = 0 ;
34478 void *argp3 = 0 ;
34479 int res3 = 0 ;
34480 wxSize temp4 ;
34481 int val5 ;
34482 int ecode5 = 0 ;
34483 int val6 ;
34484 int ecode6 = 0 ;
34485 int val7 ;
34486 int ecode7 = 0 ;
34487 PyObject * obj0 = 0 ;
34488 PyObject * obj1 = 0 ;
34489 PyObject * obj2 = 0 ;
34490 PyObject * obj3 = 0 ;
34491 PyObject * obj4 = 0 ;
34492 PyObject * obj5 = 0 ;
34493 PyObject * obj6 = 0 ;
34494 char * kwnames[] = {
34495 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
34496 };
34497
34498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34500 if (!SWIG_IsOK(res1)) {
34501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34502 }
34503 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34504 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34505 if (!SWIG_IsOK(res2)) {
34506 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
34507 }
34508 arg2 = reinterpret_cast< wxWindow * >(argp2);
34509 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34510 if (!SWIG_IsOK(res3)) {
34511 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34512 }
34513 if (!argp3) {
34514 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34515 }
34516 arg3 = reinterpret_cast< wxDC * >(argp3);
34517 {
34518 arg4 = &temp4;
34519 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
34520 }
34521 ecode5 = SWIG_AsVal_int(obj4, &val5);
34522 if (!SWIG_IsOK(ecode5)) {
34523 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
34524 }
34525 arg5 = static_cast< int >(val5);
34526 ecode6 = SWIG_AsVal_int(obj5, &val6);
34527 if (!SWIG_IsOK(ecode6)) {
34528 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
34529 }
34530 arg6 = static_cast< wxOrientation >(val6);
34531 if (obj6) {
34532 ecode7 = SWIG_AsVal_int(obj6, &val7);
34533 if (!SWIG_IsOK(ecode7)) {
34534 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
34535 }
34536 arg7 = static_cast< int >(val7);
34537 }
34538 {
34539 PyThreadState* __tstate = wxPyBeginAllowThreads();
34540 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
34541 wxPyEndAllowThreads(__tstate);
34542 if (PyErr_Occurred()) SWIG_fail;
34543 }
34544 resultobj = SWIG_Py_Void();
34545 return resultobj;
34546 fail:
34547 return NULL;
34548 }
34549
34550
34551 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34552 PyObject *resultobj = 0;
34553 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34554 wxWindow *arg2 = (wxWindow *) 0 ;
34555 wxDC *arg3 = 0 ;
34556 wxRect *arg4 = 0 ;
34557 int arg5 = (int) 0 ;
34558 void *argp1 = 0 ;
34559 int res1 = 0 ;
34560 void *argp2 = 0 ;
34561 int res2 = 0 ;
34562 void *argp3 = 0 ;
34563 int res3 = 0 ;
34564 wxRect temp4 ;
34565 int val5 ;
34566 int ecode5 = 0 ;
34567 PyObject * obj0 = 0 ;
34568 PyObject * obj1 = 0 ;
34569 PyObject * obj2 = 0 ;
34570 PyObject * obj3 = 0 ;
34571 PyObject * obj4 = 0 ;
34572 char * kwnames[] = {
34573 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34574 };
34575
34576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34578 if (!SWIG_IsOK(res1)) {
34579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34580 }
34581 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34582 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34583 if (!SWIG_IsOK(res2)) {
34584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34585 }
34586 arg2 = reinterpret_cast< wxWindow * >(argp2);
34587 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34588 if (!SWIG_IsOK(res3)) {
34589 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34590 }
34591 if (!argp3) {
34592 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34593 }
34594 arg3 = reinterpret_cast< wxDC * >(argp3);
34595 {
34596 arg4 = &temp4;
34597 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34598 }
34599 if (obj4) {
34600 ecode5 = SWIG_AsVal_int(obj4, &val5);
34601 if (!SWIG_IsOK(ecode5)) {
34602 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
34603 }
34604 arg5 = static_cast< int >(val5);
34605 }
34606 {
34607 PyThreadState* __tstate = wxPyBeginAllowThreads();
34608 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34609 wxPyEndAllowThreads(__tstate);
34610 if (PyErr_Occurred()) SWIG_fail;
34611 }
34612 resultobj = SWIG_Py_Void();
34613 return resultobj;
34614 fail:
34615 return NULL;
34616 }
34617
34618
34619 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34620 PyObject *resultobj = 0;
34621 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34622 wxWindow *arg2 = (wxWindow *) 0 ;
34623 wxDC *arg3 = 0 ;
34624 wxRect *arg4 = 0 ;
34625 int arg5 = (int) 0 ;
34626 void *argp1 = 0 ;
34627 int res1 = 0 ;
34628 void *argp2 = 0 ;
34629 int res2 = 0 ;
34630 void *argp3 = 0 ;
34631 int res3 = 0 ;
34632 wxRect temp4 ;
34633 int val5 ;
34634 int ecode5 = 0 ;
34635 PyObject * obj0 = 0 ;
34636 PyObject * obj1 = 0 ;
34637 PyObject * obj2 = 0 ;
34638 PyObject * obj3 = 0 ;
34639 PyObject * obj4 = 0 ;
34640 char * kwnames[] = {
34641 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34642 };
34643
34644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34646 if (!SWIG_IsOK(res1)) {
34647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34648 }
34649 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34650 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34651 if (!SWIG_IsOK(res2)) {
34652 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
34653 }
34654 arg2 = reinterpret_cast< wxWindow * >(argp2);
34655 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34656 if (!SWIG_IsOK(res3)) {
34657 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34658 }
34659 if (!argp3) {
34660 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34661 }
34662 arg3 = reinterpret_cast< wxDC * >(argp3);
34663 {
34664 arg4 = &temp4;
34665 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34666 }
34667 if (obj4) {
34668 ecode5 = SWIG_AsVal_int(obj4, &val5);
34669 if (!SWIG_IsOK(ecode5)) {
34670 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
34671 }
34672 arg5 = static_cast< int >(val5);
34673 }
34674 {
34675 PyThreadState* __tstate = wxPyBeginAllowThreads();
34676 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
34677 wxPyEndAllowThreads(__tstate);
34678 if (PyErr_Occurred()) SWIG_fail;
34679 }
34680 resultobj = SWIG_Py_Void();
34681 return resultobj;
34682 fail:
34683 return NULL;
34684 }
34685
34686
34687 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34688 PyObject *resultobj = 0;
34689 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34690 wxWindow *arg2 = (wxWindow *) 0 ;
34691 wxDC *arg3 = 0 ;
34692 wxRect *arg4 = 0 ;
34693 int arg5 = (int) 0 ;
34694 void *argp1 = 0 ;
34695 int res1 = 0 ;
34696 void *argp2 = 0 ;
34697 int res2 = 0 ;
34698 void *argp3 = 0 ;
34699 int res3 = 0 ;
34700 wxRect temp4 ;
34701 int val5 ;
34702 int ecode5 = 0 ;
34703 PyObject * obj0 = 0 ;
34704 PyObject * obj1 = 0 ;
34705 PyObject * obj2 = 0 ;
34706 PyObject * obj3 = 0 ;
34707 PyObject * obj4 = 0 ;
34708 char * kwnames[] = {
34709 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34710 };
34711
34712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34714 if (!SWIG_IsOK(res1)) {
34715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34716 }
34717 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34718 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34719 if (!SWIG_IsOK(res2)) {
34720 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
34721 }
34722 arg2 = reinterpret_cast< wxWindow * >(argp2);
34723 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34724 if (!SWIG_IsOK(res3)) {
34725 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
34726 }
34727 if (!argp3) {
34728 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
34729 }
34730 arg3 = reinterpret_cast< wxDC * >(argp3);
34731 {
34732 arg4 = &temp4;
34733 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34734 }
34735 if (obj4) {
34736 ecode5 = SWIG_AsVal_int(obj4, &val5);
34737 if (!SWIG_IsOK(ecode5)) {
34738 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
34739 }
34740 arg5 = static_cast< int >(val5);
34741 }
34742 {
34743 PyThreadState* __tstate = wxPyBeginAllowThreads();
34744 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
34745 wxPyEndAllowThreads(__tstate);
34746 if (PyErr_Occurred()) SWIG_fail;
34747 }
34748 resultobj = SWIG_Py_Void();
34749 return resultobj;
34750 fail:
34751 return NULL;
34752 }
34753
34754
34755 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34756 PyObject *resultobj = 0;
34757 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34758 wxWindow *arg2 = (wxWindow *) 0 ;
34759 wxDC *arg3 = 0 ;
34760 wxRect *arg4 = 0 ;
34761 int arg5 = (int) 0 ;
34762 void *argp1 = 0 ;
34763 int res1 = 0 ;
34764 void *argp2 = 0 ;
34765 int res2 = 0 ;
34766 void *argp3 = 0 ;
34767 int res3 = 0 ;
34768 wxRect temp4 ;
34769 int val5 ;
34770 int ecode5 = 0 ;
34771 PyObject * obj0 = 0 ;
34772 PyObject * obj1 = 0 ;
34773 PyObject * obj2 = 0 ;
34774 PyObject * obj3 = 0 ;
34775 PyObject * obj4 = 0 ;
34776 char * kwnames[] = {
34777 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34778 };
34779
34780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34782 if (!SWIG_IsOK(res1)) {
34783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34784 }
34785 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34786 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34787 if (!SWIG_IsOK(res2)) {
34788 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34789 }
34790 arg2 = reinterpret_cast< wxWindow * >(argp2);
34791 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34792 if (!SWIG_IsOK(res3)) {
34793 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34794 }
34795 if (!argp3) {
34796 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34797 }
34798 arg3 = reinterpret_cast< wxDC * >(argp3);
34799 {
34800 arg4 = &temp4;
34801 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34802 }
34803 if (obj4) {
34804 ecode5 = SWIG_AsVal_int(obj4, &val5);
34805 if (!SWIG_IsOK(ecode5)) {
34806 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
34807 }
34808 arg5 = static_cast< int >(val5);
34809 }
34810 {
34811 PyThreadState* __tstate = wxPyBeginAllowThreads();
34812 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34813 wxPyEndAllowThreads(__tstate);
34814 if (PyErr_Occurred()) SWIG_fail;
34815 }
34816 resultobj = SWIG_Py_Void();
34817 return resultobj;
34818 fail:
34819 return NULL;
34820 }
34821
34822
34823 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34824 PyObject *resultobj = 0;
34825 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34826 wxWindow *arg2 = (wxWindow *) 0 ;
34827 wxDC *arg3 = 0 ;
34828 wxRect *arg4 = 0 ;
34829 int arg5 = (int) 0 ;
34830 void *argp1 = 0 ;
34831 int res1 = 0 ;
34832 void *argp2 = 0 ;
34833 int res2 = 0 ;
34834 void *argp3 = 0 ;
34835 int res3 = 0 ;
34836 wxRect temp4 ;
34837 int val5 ;
34838 int ecode5 = 0 ;
34839 PyObject * obj0 = 0 ;
34840 PyObject * obj1 = 0 ;
34841 PyObject * obj2 = 0 ;
34842 PyObject * obj3 = 0 ;
34843 PyObject * obj4 = 0 ;
34844 char * kwnames[] = {
34845 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34846 };
34847
34848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34850 if (!SWIG_IsOK(res1)) {
34851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34852 }
34853 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34854 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34855 if (!SWIG_IsOK(res2)) {
34856 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
34857 }
34858 arg2 = reinterpret_cast< wxWindow * >(argp2);
34859 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34860 if (!SWIG_IsOK(res3)) {
34861 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
34862 }
34863 if (!argp3) {
34864 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
34865 }
34866 arg3 = reinterpret_cast< wxDC * >(argp3);
34867 {
34868 arg4 = &temp4;
34869 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34870 }
34871 if (obj4) {
34872 ecode5 = SWIG_AsVal_int(obj4, &val5);
34873 if (!SWIG_IsOK(ecode5)) {
34874 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
34875 }
34876 arg5 = static_cast< int >(val5);
34877 }
34878 {
34879 PyThreadState* __tstate = wxPyBeginAllowThreads();
34880 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
34881 wxPyEndAllowThreads(__tstate);
34882 if (PyErr_Occurred()) SWIG_fail;
34883 }
34884 resultobj = SWIG_Py_Void();
34885 return resultobj;
34886 fail:
34887 return NULL;
34888 }
34889
34890
34891 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34892 PyObject *resultobj = 0;
34893 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34894 wxWindow *arg2 = (wxWindow *) 0 ;
34895 SwigValueWrapper<wxSplitterRenderParams > result;
34896 void *argp1 = 0 ;
34897 int res1 = 0 ;
34898 void *argp2 = 0 ;
34899 int res2 = 0 ;
34900 PyObject * obj0 = 0 ;
34901 PyObject * obj1 = 0 ;
34902 char * kwnames[] = {
34903 (char *) "self",(char *) "win", NULL
34904 };
34905
34906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
34907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34908 if (!SWIG_IsOK(res1)) {
34909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34910 }
34911 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34912 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34913 if (!SWIG_IsOK(res2)) {
34914 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
34915 }
34916 arg2 = reinterpret_cast< wxWindow * >(argp2);
34917 {
34918 PyThreadState* __tstate = wxPyBeginAllowThreads();
34919 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
34920 wxPyEndAllowThreads(__tstate);
34921 if (PyErr_Occurred()) SWIG_fail;
34922 }
34923 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
34924 return resultobj;
34925 fail:
34926 return NULL;
34927 }
34928
34929
34930 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34931 PyObject *resultobj = 0;
34932 wxRendererNative *result = 0 ;
34933
34934 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
34935 {
34936 if (!wxPyCheckForApp()) SWIG_fail;
34937 PyThreadState* __tstate = wxPyBeginAllowThreads();
34938 {
34939 wxRendererNative &_result_ref = wxRendererNative::Get();
34940 result = (wxRendererNative *) &_result_ref;
34941 }
34942 wxPyEndAllowThreads(__tstate);
34943 if (PyErr_Occurred()) SWIG_fail;
34944 }
34945 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34946 return resultobj;
34947 fail:
34948 return NULL;
34949 }
34950
34951
34952 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34953 PyObject *resultobj = 0;
34954 wxRendererNative *result = 0 ;
34955
34956 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
34957 {
34958 if (!wxPyCheckForApp()) SWIG_fail;
34959 PyThreadState* __tstate = wxPyBeginAllowThreads();
34960 {
34961 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
34962 result = (wxRendererNative *) &_result_ref;
34963 }
34964 wxPyEndAllowThreads(__tstate);
34965 if (PyErr_Occurred()) SWIG_fail;
34966 }
34967 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34968 return resultobj;
34969 fail:
34970 return NULL;
34971 }
34972
34973
34974 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34975 PyObject *resultobj = 0;
34976 wxRendererNative *result = 0 ;
34977
34978 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
34979 {
34980 if (!wxPyCheckForApp()) SWIG_fail;
34981 PyThreadState* __tstate = wxPyBeginAllowThreads();
34982 {
34983 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
34984 result = (wxRendererNative *) &_result_ref;
34985 }
34986 wxPyEndAllowThreads(__tstate);
34987 if (PyErr_Occurred()) SWIG_fail;
34988 }
34989 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34990 return resultobj;
34991 fail:
34992 return NULL;
34993 }
34994
34995
34996 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34997 PyObject *resultobj = 0;
34998 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34999 wxRendererNative *result = 0 ;
35000 void *argp1 = 0 ;
35001 int res1 = 0 ;
35002 PyObject * obj0 = 0 ;
35003 char * kwnames[] = {
35004 (char *) "renderer", NULL
35005 };
35006
35007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
35008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35009 if (!SWIG_IsOK(res1)) {
35010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35011 }
35012 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35013 {
35014 if (!wxPyCheckForApp()) SWIG_fail;
35015 PyThreadState* __tstate = wxPyBeginAllowThreads();
35016 result = (wxRendererNative *)wxRendererNative::Set(arg1);
35017 wxPyEndAllowThreads(__tstate);
35018 if (PyErr_Occurred()) SWIG_fail;
35019 }
35020 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35021 return resultobj;
35022 fail:
35023 return NULL;
35024 }
35025
35026
35027 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35028 PyObject *resultobj = 0;
35029 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35030 SwigValueWrapper<wxRendererVersion > result;
35031 void *argp1 = 0 ;
35032 int res1 = 0 ;
35033 PyObject *swig_obj[1] ;
35034
35035 if (!args) SWIG_fail;
35036 swig_obj[0] = args;
35037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35038 if (!SWIG_IsOK(res1)) {
35039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
35040 }
35041 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35042 {
35043 PyThreadState* __tstate = wxPyBeginAllowThreads();
35044 result = ((wxRendererNative const *)arg1)->GetVersion();
35045 wxPyEndAllowThreads(__tstate);
35046 if (PyErr_Occurred()) SWIG_fail;
35047 }
35048 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
35049 return resultobj;
35050 fail:
35051 return NULL;
35052 }
35053
35054
35055 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35056 PyObject *obj;
35057 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35058 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
35059 return SWIG_Py_Void();
35060 }
35061
35062 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35063 PyObject *resultobj = 0;
35064 wxPseudoDC *result = 0 ;
35065
35066 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
35067 {
35068 PyThreadState* __tstate = wxPyBeginAllowThreads();
35069 result = (wxPseudoDC *)new wxPseudoDC();
35070 wxPyEndAllowThreads(__tstate);
35071 if (PyErr_Occurred()) SWIG_fail;
35072 }
35073 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
35074 return resultobj;
35075 fail:
35076 return NULL;
35077 }
35078
35079
35080 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35081 PyObject *resultobj = 0;
35082 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35083 void *argp1 = 0 ;
35084 int res1 = 0 ;
35085 PyObject *swig_obj[1] ;
35086
35087 if (!args) SWIG_fail;
35088 swig_obj[0] = args;
35089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35090 if (!SWIG_IsOK(res1)) {
35091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35092 }
35093 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35094 {
35095 PyThreadState* __tstate = wxPyBeginAllowThreads();
35096 (arg1)->BeginDrawing();
35097 wxPyEndAllowThreads(__tstate);
35098 if (PyErr_Occurred()) SWIG_fail;
35099 }
35100 resultobj = SWIG_Py_Void();
35101 return resultobj;
35102 fail:
35103 return NULL;
35104 }
35105
35106
35107 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35108 PyObject *resultobj = 0;
35109 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35110 void *argp1 = 0 ;
35111 int res1 = 0 ;
35112 PyObject *swig_obj[1] ;
35113
35114 if (!args) SWIG_fail;
35115 swig_obj[0] = args;
35116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35117 if (!SWIG_IsOK(res1)) {
35118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35119 }
35120 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35121 {
35122 PyThreadState* __tstate = wxPyBeginAllowThreads();
35123 (arg1)->EndDrawing();
35124 wxPyEndAllowThreads(__tstate);
35125 if (PyErr_Occurred()) SWIG_fail;
35126 }
35127 resultobj = SWIG_Py_Void();
35128 return resultobj;
35129 fail:
35130 return NULL;
35131 }
35132
35133
35134 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35135 PyObject *resultobj = 0;
35136 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35137 void *argp1 = 0 ;
35138 int res1 = 0 ;
35139 PyObject *swig_obj[1] ;
35140
35141 if (!args) SWIG_fail;
35142 swig_obj[0] = args;
35143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
35144 if (!SWIG_IsOK(res1)) {
35145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35146 }
35147 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35148 {
35149 PyThreadState* __tstate = wxPyBeginAllowThreads();
35150 delete arg1;
35151
35152 wxPyEndAllowThreads(__tstate);
35153 if (PyErr_Occurred()) SWIG_fail;
35154 }
35155 resultobj = SWIG_Py_Void();
35156 return resultobj;
35157 fail:
35158 return NULL;
35159 }
35160
35161
35162 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35163 PyObject *resultobj = 0;
35164 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35165 void *argp1 = 0 ;
35166 int res1 = 0 ;
35167 PyObject *swig_obj[1] ;
35168
35169 if (!args) SWIG_fail;
35170 swig_obj[0] = args;
35171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35172 if (!SWIG_IsOK(res1)) {
35173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35174 }
35175 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35176 {
35177 PyThreadState* __tstate = wxPyBeginAllowThreads();
35178 (arg1)->RemoveAll();
35179 wxPyEndAllowThreads(__tstate);
35180 if (PyErr_Occurred()) SWIG_fail;
35181 }
35182 resultobj = SWIG_Py_Void();
35183 return resultobj;
35184 fail:
35185 return NULL;
35186 }
35187
35188
35189 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35190 PyObject *resultobj = 0;
35191 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35192 int result;
35193 void *argp1 = 0 ;
35194 int res1 = 0 ;
35195 PyObject *swig_obj[1] ;
35196
35197 if (!args) SWIG_fail;
35198 swig_obj[0] = args;
35199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35200 if (!SWIG_IsOK(res1)) {
35201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35202 }
35203 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35204 {
35205 PyThreadState* __tstate = wxPyBeginAllowThreads();
35206 result = (int)(arg1)->GetLen();
35207 wxPyEndAllowThreads(__tstate);
35208 if (PyErr_Occurred()) SWIG_fail;
35209 }
35210 resultobj = SWIG_From_int(static_cast< int >(result));
35211 return resultobj;
35212 fail:
35213 return NULL;
35214 }
35215
35216
35217 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35218 PyObject *resultobj = 0;
35219 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35220 int arg2 ;
35221 void *argp1 = 0 ;
35222 int res1 = 0 ;
35223 int val2 ;
35224 int ecode2 = 0 ;
35225 PyObject * obj0 = 0 ;
35226 PyObject * obj1 = 0 ;
35227 char * kwnames[] = {
35228 (char *) "self",(char *) "id", NULL
35229 };
35230
35231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
35232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35233 if (!SWIG_IsOK(res1)) {
35234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35235 }
35236 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35237 ecode2 = SWIG_AsVal_int(obj1, &val2);
35238 if (!SWIG_IsOK(ecode2)) {
35239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
35240 }
35241 arg2 = static_cast< int >(val2);
35242 {
35243 PyThreadState* __tstate = wxPyBeginAllowThreads();
35244 (arg1)->SetId(arg2);
35245 wxPyEndAllowThreads(__tstate);
35246 if (PyErr_Occurred()) SWIG_fail;
35247 }
35248 resultobj = SWIG_Py_Void();
35249 return resultobj;
35250 fail:
35251 return NULL;
35252 }
35253
35254
35255 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35256 PyObject *resultobj = 0;
35257 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35258 int arg2 ;
35259 void *argp1 = 0 ;
35260 int res1 = 0 ;
35261 int val2 ;
35262 int ecode2 = 0 ;
35263 PyObject * obj0 = 0 ;
35264 PyObject * obj1 = 0 ;
35265 char * kwnames[] = {
35266 (char *) "self",(char *) "id", NULL
35267 };
35268
35269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
35270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35271 if (!SWIG_IsOK(res1)) {
35272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35273 }
35274 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35275 ecode2 = SWIG_AsVal_int(obj1, &val2);
35276 if (!SWIG_IsOK(ecode2)) {
35277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
35278 }
35279 arg2 = static_cast< int >(val2);
35280 {
35281 PyThreadState* __tstate = wxPyBeginAllowThreads();
35282 (arg1)->ClearId(arg2);
35283 wxPyEndAllowThreads(__tstate);
35284 if (PyErr_Occurred()) SWIG_fail;
35285 }
35286 resultobj = SWIG_Py_Void();
35287 return resultobj;
35288 fail:
35289 return NULL;
35290 }
35291
35292
35293 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35294 PyObject *resultobj = 0;
35295 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35296 int arg2 ;
35297 void *argp1 = 0 ;
35298 int res1 = 0 ;
35299 int val2 ;
35300 int ecode2 = 0 ;
35301 PyObject * obj0 = 0 ;
35302 PyObject * obj1 = 0 ;
35303 char * kwnames[] = {
35304 (char *) "self",(char *) "id", NULL
35305 };
35306
35307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
35308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35309 if (!SWIG_IsOK(res1)) {
35310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35311 }
35312 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35313 ecode2 = SWIG_AsVal_int(obj1, &val2);
35314 if (!SWIG_IsOK(ecode2)) {
35315 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
35316 }
35317 arg2 = static_cast< int >(val2);
35318 {
35319 PyThreadState* __tstate = wxPyBeginAllowThreads();
35320 (arg1)->RemoveId(arg2);
35321 wxPyEndAllowThreads(__tstate);
35322 if (PyErr_Occurred()) SWIG_fail;
35323 }
35324 resultobj = SWIG_Py_Void();
35325 return resultobj;
35326 fail:
35327 return NULL;
35328 }
35329
35330
35331 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35332 PyObject *resultobj = 0;
35333 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35334 int arg2 ;
35335 int arg3 ;
35336 int arg4 ;
35337 void *argp1 = 0 ;
35338 int res1 = 0 ;
35339 int val2 ;
35340 int ecode2 = 0 ;
35341 int val3 ;
35342 int ecode3 = 0 ;
35343 int val4 ;
35344 int ecode4 = 0 ;
35345 PyObject * obj0 = 0 ;
35346 PyObject * obj1 = 0 ;
35347 PyObject * obj2 = 0 ;
35348 PyObject * obj3 = 0 ;
35349 char * kwnames[] = {
35350 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
35351 };
35352
35353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35355 if (!SWIG_IsOK(res1)) {
35356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35357 }
35358 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35359 ecode2 = SWIG_AsVal_int(obj1, &val2);
35360 if (!SWIG_IsOK(ecode2)) {
35361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
35362 }
35363 arg2 = static_cast< int >(val2);
35364 ecode3 = SWIG_AsVal_int(obj2, &val3);
35365 if (!SWIG_IsOK(ecode3)) {
35366 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
35367 }
35368 arg3 = static_cast< int >(val3);
35369 ecode4 = SWIG_AsVal_int(obj3, &val4);
35370 if (!SWIG_IsOK(ecode4)) {
35371 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
35372 }
35373 arg4 = static_cast< int >(val4);
35374 {
35375 PyThreadState* __tstate = wxPyBeginAllowThreads();
35376 (arg1)->TranslateId(arg2,arg3,arg4);
35377 wxPyEndAllowThreads(__tstate);
35378 if (PyErr_Occurred()) SWIG_fail;
35379 }
35380 resultobj = SWIG_Py_Void();
35381 return resultobj;
35382 fail:
35383 return NULL;
35384 }
35385
35386
35387 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35388 PyObject *resultobj = 0;
35389 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35390 int arg2 ;
35391 bool arg3 = (bool) true ;
35392 void *argp1 = 0 ;
35393 int res1 = 0 ;
35394 int val2 ;
35395 int ecode2 = 0 ;
35396 bool val3 ;
35397 int ecode3 = 0 ;
35398 PyObject * obj0 = 0 ;
35399 PyObject * obj1 = 0 ;
35400 PyObject * obj2 = 0 ;
35401 char * kwnames[] = {
35402 (char *) "self",(char *) "id",(char *) "greyout", NULL
35403 };
35404
35405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35407 if (!SWIG_IsOK(res1)) {
35408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35409 }
35410 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35411 ecode2 = SWIG_AsVal_int(obj1, &val2);
35412 if (!SWIG_IsOK(ecode2)) {
35413 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35414 }
35415 arg2 = static_cast< int >(val2);
35416 if (obj2) {
35417 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35418 if (!SWIG_IsOK(ecode3)) {
35419 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
35420 }
35421 arg3 = static_cast< bool >(val3);
35422 }
35423 {
35424 PyThreadState* __tstate = wxPyBeginAllowThreads();
35425 (arg1)->SetIdGreyedOut(arg2,arg3);
35426 wxPyEndAllowThreads(__tstate);
35427 if (PyErr_Occurred()) SWIG_fail;
35428 }
35429 resultobj = SWIG_Py_Void();
35430 return resultobj;
35431 fail:
35432 return NULL;
35433 }
35434
35435
35436 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35437 PyObject *resultobj = 0;
35438 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35439 int arg2 ;
35440 bool result;
35441 void *argp1 = 0 ;
35442 int res1 = 0 ;
35443 int val2 ;
35444 int ecode2 = 0 ;
35445 PyObject * obj0 = 0 ;
35446 PyObject * obj1 = 0 ;
35447 char * kwnames[] = {
35448 (char *) "self",(char *) "id", NULL
35449 };
35450
35451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
35452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35453 if (!SWIG_IsOK(res1)) {
35454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35455 }
35456 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35457 ecode2 = SWIG_AsVal_int(obj1, &val2);
35458 if (!SWIG_IsOK(ecode2)) {
35459 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35460 }
35461 arg2 = static_cast< int >(val2);
35462 {
35463 PyThreadState* __tstate = wxPyBeginAllowThreads();
35464 result = (bool)(arg1)->GetIdGreyedOut(arg2);
35465 wxPyEndAllowThreads(__tstate);
35466 if (PyErr_Occurred()) SWIG_fail;
35467 }
35468 {
35469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35470 }
35471 return resultobj;
35472 fail:
35473 return NULL;
35474 }
35475
35476
35477 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35478 PyObject *resultobj = 0;
35479 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35480 int arg2 ;
35481 int arg3 ;
35482 int arg4 = (int) 1 ;
35483 wxColor const &arg5_defvalue = *wxWHITE ;
35484 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
35485 PyObject *result = 0 ;
35486 void *argp1 = 0 ;
35487 int res1 = 0 ;
35488 int val2 ;
35489 int ecode2 = 0 ;
35490 int val3 ;
35491 int ecode3 = 0 ;
35492 int val4 ;
35493 int ecode4 = 0 ;
35494 void *argp5 = 0 ;
35495 int res5 = 0 ;
35496 PyObject * obj0 = 0 ;
35497 PyObject * obj1 = 0 ;
35498 PyObject * obj2 = 0 ;
35499 PyObject * obj3 = 0 ;
35500 PyObject * obj4 = 0 ;
35501 char * kwnames[] = {
35502 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
35503 };
35504
35505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) 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_FindObjects" "', 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_FindObjects" "', expected argument " "2"" of type '" "int""'");
35514 }
35515 arg2 = static_cast< int >(val2);
35516 ecode3 = SWIG_AsVal_int(obj2, &val3);
35517 if (!SWIG_IsOK(ecode3)) {
35518 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
35519 }
35520 arg3 = static_cast< int >(val3);
35521 if (obj3) {
35522 ecode4 = SWIG_AsVal_int(obj3, &val4);
35523 if (!SWIG_IsOK(ecode4)) {
35524 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
35525 }
35526 arg4 = static_cast< int >(val4);
35527 }
35528 if (obj4) {
35529 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
35530 if (!SWIG_IsOK(res5)) {
35531 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35532 }
35533 if (!argp5) {
35534 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35535 }
35536 arg5 = reinterpret_cast< wxColor * >(argp5);
35537 }
35538 {
35539 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
35540 if (PyErr_Occurred()) SWIG_fail;
35541 }
35542 resultobj = result;
35543 return resultobj;
35544 fail:
35545 return NULL;
35546 }
35547
35548
35549 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35550 PyObject *resultobj = 0;
35551 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35552 int arg2 ;
35553 int arg3 ;
35554 PyObject *result = 0 ;
35555 void *argp1 = 0 ;
35556 int res1 = 0 ;
35557 int val2 ;
35558 int ecode2 = 0 ;
35559 int val3 ;
35560 int ecode3 = 0 ;
35561 PyObject * obj0 = 0 ;
35562 PyObject * obj1 = 0 ;
35563 PyObject * obj2 = 0 ;
35564 char * kwnames[] = {
35565 (char *) "self",(char *) "x",(char *) "y", NULL
35566 };
35567
35568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35570 if (!SWIG_IsOK(res1)) {
35571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35572 }
35573 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35574 ecode2 = SWIG_AsVal_int(obj1, &val2);
35575 if (!SWIG_IsOK(ecode2)) {
35576 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
35577 }
35578 arg2 = static_cast< int >(val2);
35579 ecode3 = SWIG_AsVal_int(obj2, &val3);
35580 if (!SWIG_IsOK(ecode3)) {
35581 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
35582 }
35583 arg3 = static_cast< int >(val3);
35584 {
35585 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
35586 if (PyErr_Occurred()) SWIG_fail;
35587 }
35588 resultobj = result;
35589 return resultobj;
35590 fail:
35591 return NULL;
35592 }
35593
35594
35595 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35596 PyObject *resultobj = 0;
35597 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35598 int arg2 ;
35599 wxDC *arg3 = (wxDC *) 0 ;
35600 void *argp1 = 0 ;
35601 int res1 = 0 ;
35602 int val2 ;
35603 int ecode2 = 0 ;
35604 void *argp3 = 0 ;
35605 int res3 = 0 ;
35606 PyObject * obj0 = 0 ;
35607 PyObject * obj1 = 0 ;
35608 PyObject * obj2 = 0 ;
35609 char * kwnames[] = {
35610 (char *) "self",(char *) "id",(char *) "dc", NULL
35611 };
35612
35613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35615 if (!SWIG_IsOK(res1)) {
35616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35617 }
35618 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35619 ecode2 = SWIG_AsVal_int(obj1, &val2);
35620 if (!SWIG_IsOK(ecode2)) {
35621 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
35622 }
35623 arg2 = static_cast< int >(val2);
35624 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
35625 if (!SWIG_IsOK(res3)) {
35626 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
35627 }
35628 arg3 = reinterpret_cast< wxDC * >(argp3);
35629 {
35630 PyThreadState* __tstate = wxPyBeginAllowThreads();
35631 (arg1)->DrawIdToDC(arg2,arg3);
35632 wxPyEndAllowThreads(__tstate);
35633 if (PyErr_Occurred()) SWIG_fail;
35634 }
35635 resultobj = SWIG_Py_Void();
35636 return resultobj;
35637 fail:
35638 return NULL;
35639 }
35640
35641
35642 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35643 PyObject *resultobj = 0;
35644 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35645 int arg2 ;
35646 wxRect *arg3 = 0 ;
35647 void *argp1 = 0 ;
35648 int res1 = 0 ;
35649 int val2 ;
35650 int ecode2 = 0 ;
35651 wxRect temp3 ;
35652 PyObject * obj0 = 0 ;
35653 PyObject * obj1 = 0 ;
35654 PyObject * obj2 = 0 ;
35655 char * kwnames[] = {
35656 (char *) "self",(char *) "id",(char *) "rect", NULL
35657 };
35658
35659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35661 if (!SWIG_IsOK(res1)) {
35662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35663 }
35664 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35665 ecode2 = SWIG_AsVal_int(obj1, &val2);
35666 if (!SWIG_IsOK(ecode2)) {
35667 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
35668 }
35669 arg2 = static_cast< int >(val2);
35670 {
35671 arg3 = &temp3;
35672 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35673 }
35674 {
35675 PyThreadState* __tstate = wxPyBeginAllowThreads();
35676 (arg1)->SetIdBounds(arg2,*arg3);
35677 wxPyEndAllowThreads(__tstate);
35678 if (PyErr_Occurred()) SWIG_fail;
35679 }
35680 resultobj = SWIG_Py_Void();
35681 return resultobj;
35682 fail:
35683 return NULL;
35684 }
35685
35686
35687 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35688 PyObject *resultobj = 0;
35689 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35690 int arg2 ;
35691 wxRect result;
35692 void *argp1 = 0 ;
35693 int res1 = 0 ;
35694 int val2 ;
35695 int ecode2 = 0 ;
35696 PyObject * obj0 = 0 ;
35697 PyObject * obj1 = 0 ;
35698 char * kwnames[] = {
35699 (char *) "self",(char *) "id", NULL
35700 };
35701
35702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
35703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35704 if (!SWIG_IsOK(res1)) {
35705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35706 }
35707 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35708 ecode2 = SWIG_AsVal_int(obj1, &val2);
35709 if (!SWIG_IsOK(ecode2)) {
35710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
35711 }
35712 arg2 = static_cast< int >(val2);
35713 {
35714 PyThreadState* __tstate = wxPyBeginAllowThreads();
35715 result = wxPseudoDC_GetIdBounds(arg1,arg2);
35716 wxPyEndAllowThreads(__tstate);
35717 if (PyErr_Occurred()) SWIG_fail;
35718 }
35719 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
35720 return resultobj;
35721 fail:
35722 return NULL;
35723 }
35724
35725
35726 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35727 PyObject *resultobj = 0;
35728 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35729 wxDC *arg2 = (wxDC *) 0 ;
35730 wxRect *arg3 = 0 ;
35731 void *argp1 = 0 ;
35732 int res1 = 0 ;
35733 void *argp2 = 0 ;
35734 int res2 = 0 ;
35735 wxRect temp3 ;
35736 PyObject * obj0 = 0 ;
35737 PyObject * obj1 = 0 ;
35738 PyObject * obj2 = 0 ;
35739 char * kwnames[] = {
35740 (char *) "self",(char *) "dc",(char *) "rect", NULL
35741 };
35742
35743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35745 if (!SWIG_IsOK(res1)) {
35746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35747 }
35748 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35749 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35750 if (!SWIG_IsOK(res2)) {
35751 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
35752 }
35753 arg2 = reinterpret_cast< wxDC * >(argp2);
35754 {
35755 arg3 = &temp3;
35756 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35757 }
35758 {
35759 PyThreadState* __tstate = wxPyBeginAllowThreads();
35760 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
35761 wxPyEndAllowThreads(__tstate);
35762 if (PyErr_Occurred()) SWIG_fail;
35763 }
35764 resultobj = SWIG_Py_Void();
35765 return resultobj;
35766 fail:
35767 return NULL;
35768 }
35769
35770
35771 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35772 PyObject *resultobj = 0;
35773 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35774 wxDC *arg2 = (wxDC *) 0 ;
35775 wxRegion *arg3 = 0 ;
35776 void *argp1 = 0 ;
35777 int res1 = 0 ;
35778 void *argp2 = 0 ;
35779 int res2 = 0 ;
35780 void *argp3 = 0 ;
35781 int res3 = 0 ;
35782 PyObject * obj0 = 0 ;
35783 PyObject * obj1 = 0 ;
35784 PyObject * obj2 = 0 ;
35785 char * kwnames[] = {
35786 (char *) "self",(char *) "dc",(char *) "region", NULL
35787 };
35788
35789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35791 if (!SWIG_IsOK(res1)) {
35792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35793 }
35794 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35795 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35796 if (!SWIG_IsOK(res2)) {
35797 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
35798 }
35799 arg2 = reinterpret_cast< wxDC * >(argp2);
35800 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
35801 if (!SWIG_IsOK(res3)) {
35802 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35803 }
35804 if (!argp3) {
35805 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35806 }
35807 arg3 = reinterpret_cast< wxRegion * >(argp3);
35808 {
35809 PyThreadState* __tstate = wxPyBeginAllowThreads();
35810 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
35811 wxPyEndAllowThreads(__tstate);
35812 if (PyErr_Occurred()) SWIG_fail;
35813 }
35814 resultobj = SWIG_Py_Void();
35815 return resultobj;
35816 fail:
35817 return NULL;
35818 }
35819
35820
35821 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35822 PyObject *resultobj = 0;
35823 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35824 wxDC *arg2 = (wxDC *) 0 ;
35825 void *argp1 = 0 ;
35826 int res1 = 0 ;
35827 void *argp2 = 0 ;
35828 int res2 = 0 ;
35829 PyObject * obj0 = 0 ;
35830 PyObject * obj1 = 0 ;
35831 char * kwnames[] = {
35832 (char *) "self",(char *) "dc", NULL
35833 };
35834
35835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
35836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35837 if (!SWIG_IsOK(res1)) {
35838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35839 }
35840 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35841 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35842 if (!SWIG_IsOK(res2)) {
35843 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
35844 }
35845 arg2 = reinterpret_cast< wxDC * >(argp2);
35846 {
35847 PyThreadState* __tstate = wxPyBeginAllowThreads();
35848 (arg1)->DrawToDC(arg2);
35849 wxPyEndAllowThreads(__tstate);
35850 if (PyErr_Occurred()) SWIG_fail;
35851 }
35852 resultobj = SWIG_Py_Void();
35853 return resultobj;
35854 fail:
35855 return NULL;
35856 }
35857
35858
35859 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35860 PyObject *resultobj = 0;
35861 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35862 int arg2 ;
35863 int arg3 ;
35864 wxColour *arg4 = 0 ;
35865 int arg5 = (int) wxFLOOD_SURFACE ;
35866 void *argp1 = 0 ;
35867 int res1 = 0 ;
35868 int val2 ;
35869 int ecode2 = 0 ;
35870 int val3 ;
35871 int ecode3 = 0 ;
35872 wxColour temp4 ;
35873 int val5 ;
35874 int ecode5 = 0 ;
35875 PyObject * obj0 = 0 ;
35876 PyObject * obj1 = 0 ;
35877 PyObject * obj2 = 0 ;
35878 PyObject * obj3 = 0 ;
35879 PyObject * obj4 = 0 ;
35880 char * kwnames[] = {
35881 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
35882 };
35883
35884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35886 if (!SWIG_IsOK(res1)) {
35887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35888 }
35889 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35890 ecode2 = SWIG_AsVal_int(obj1, &val2);
35891 if (!SWIG_IsOK(ecode2)) {
35892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
35893 }
35894 arg2 = static_cast< int >(val2);
35895 ecode3 = SWIG_AsVal_int(obj2, &val3);
35896 if (!SWIG_IsOK(ecode3)) {
35897 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
35898 }
35899 arg3 = static_cast< int >(val3);
35900 {
35901 arg4 = &temp4;
35902 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
35903 }
35904 if (obj4) {
35905 ecode5 = SWIG_AsVal_int(obj4, &val5);
35906 if (!SWIG_IsOK(ecode5)) {
35907 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
35908 }
35909 arg5 = static_cast< int >(val5);
35910 }
35911 {
35912 PyThreadState* __tstate = wxPyBeginAllowThreads();
35913 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
35914 wxPyEndAllowThreads(__tstate);
35915 if (PyErr_Occurred()) SWIG_fail;
35916 }
35917 resultobj = SWIG_Py_Void();
35918 return resultobj;
35919 fail:
35920 return NULL;
35921 }
35922
35923
35924 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35925 PyObject *resultobj = 0;
35926 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35927 wxPoint *arg2 = 0 ;
35928 wxColour *arg3 = 0 ;
35929 int arg4 = (int) wxFLOOD_SURFACE ;
35930 void *argp1 = 0 ;
35931 int res1 = 0 ;
35932 wxPoint temp2 ;
35933 wxColour temp3 ;
35934 int val4 ;
35935 int ecode4 = 0 ;
35936 PyObject * obj0 = 0 ;
35937 PyObject * obj1 = 0 ;
35938 PyObject * obj2 = 0 ;
35939 PyObject * obj3 = 0 ;
35940 char * kwnames[] = {
35941 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
35942 };
35943
35944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35946 if (!SWIG_IsOK(res1)) {
35947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35948 }
35949 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35950 {
35951 arg2 = &temp2;
35952 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35953 }
35954 {
35955 arg3 = &temp3;
35956 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35957 }
35958 if (obj3) {
35959 ecode4 = SWIG_AsVal_int(obj3, &val4);
35960 if (!SWIG_IsOK(ecode4)) {
35961 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
35962 }
35963 arg4 = static_cast< int >(val4);
35964 }
35965 {
35966 PyThreadState* __tstate = wxPyBeginAllowThreads();
35967 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
35968 wxPyEndAllowThreads(__tstate);
35969 if (PyErr_Occurred()) SWIG_fail;
35970 }
35971 resultobj = SWIG_Py_Void();
35972 return resultobj;
35973 fail:
35974 return NULL;
35975 }
35976
35977
35978 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35979 PyObject *resultobj = 0;
35980 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35981 int arg2 ;
35982 int arg3 ;
35983 int arg4 ;
35984 int arg5 ;
35985 void *argp1 = 0 ;
35986 int res1 = 0 ;
35987 int val2 ;
35988 int ecode2 = 0 ;
35989 int val3 ;
35990 int ecode3 = 0 ;
35991 int val4 ;
35992 int ecode4 = 0 ;
35993 int val5 ;
35994 int ecode5 = 0 ;
35995 PyObject * obj0 = 0 ;
35996 PyObject * obj1 = 0 ;
35997 PyObject * obj2 = 0 ;
35998 PyObject * obj3 = 0 ;
35999 PyObject * obj4 = 0 ;
36000 char * kwnames[] = {
36001 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
36002 };
36003
36004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36006 if (!SWIG_IsOK(res1)) {
36007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36008 }
36009 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36010 ecode2 = SWIG_AsVal_int(obj1, &val2);
36011 if (!SWIG_IsOK(ecode2)) {
36012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
36013 }
36014 arg2 = static_cast< int >(val2);
36015 ecode3 = SWIG_AsVal_int(obj2, &val3);
36016 if (!SWIG_IsOK(ecode3)) {
36017 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
36018 }
36019 arg3 = static_cast< int >(val3);
36020 ecode4 = SWIG_AsVal_int(obj3, &val4);
36021 if (!SWIG_IsOK(ecode4)) {
36022 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
36023 }
36024 arg4 = static_cast< int >(val4);
36025 ecode5 = SWIG_AsVal_int(obj4, &val5);
36026 if (!SWIG_IsOK(ecode5)) {
36027 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
36028 }
36029 arg5 = static_cast< int >(val5);
36030 {
36031 PyThreadState* __tstate = wxPyBeginAllowThreads();
36032 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
36033 wxPyEndAllowThreads(__tstate);
36034 if (PyErr_Occurred()) SWIG_fail;
36035 }
36036 resultobj = SWIG_Py_Void();
36037 return resultobj;
36038 fail:
36039 return NULL;
36040 }
36041
36042
36043 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36044 PyObject *resultobj = 0;
36045 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36046 wxPoint *arg2 = 0 ;
36047 wxPoint *arg3 = 0 ;
36048 void *argp1 = 0 ;
36049 int res1 = 0 ;
36050 wxPoint temp2 ;
36051 wxPoint temp3 ;
36052 PyObject * obj0 = 0 ;
36053 PyObject * obj1 = 0 ;
36054 PyObject * obj2 = 0 ;
36055 char * kwnames[] = {
36056 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
36057 };
36058
36059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36061 if (!SWIG_IsOK(res1)) {
36062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36063 }
36064 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36065 {
36066 arg2 = &temp2;
36067 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36068 }
36069 {
36070 arg3 = &temp3;
36071 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36072 }
36073 {
36074 PyThreadState* __tstate = wxPyBeginAllowThreads();
36075 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
36076 wxPyEndAllowThreads(__tstate);
36077 if (PyErr_Occurred()) SWIG_fail;
36078 }
36079 resultobj = SWIG_Py_Void();
36080 return resultobj;
36081 fail:
36082 return NULL;
36083 }
36084
36085
36086 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36087 PyObject *resultobj = 0;
36088 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36089 int arg2 ;
36090 int arg3 ;
36091 void *argp1 = 0 ;
36092 int res1 = 0 ;
36093 int val2 ;
36094 int ecode2 = 0 ;
36095 int val3 ;
36096 int ecode3 = 0 ;
36097 PyObject * obj0 = 0 ;
36098 PyObject * obj1 = 0 ;
36099 PyObject * obj2 = 0 ;
36100 char * kwnames[] = {
36101 (char *) "self",(char *) "x",(char *) "y", NULL
36102 };
36103
36104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36106 if (!SWIG_IsOK(res1)) {
36107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36108 }
36109 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36110 ecode2 = SWIG_AsVal_int(obj1, &val2);
36111 if (!SWIG_IsOK(ecode2)) {
36112 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
36113 }
36114 arg2 = static_cast< int >(val2);
36115 ecode3 = SWIG_AsVal_int(obj2, &val3);
36116 if (!SWIG_IsOK(ecode3)) {
36117 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
36118 }
36119 arg3 = static_cast< int >(val3);
36120 {
36121 PyThreadState* __tstate = wxPyBeginAllowThreads();
36122 (arg1)->CrossHair(arg2,arg3);
36123 wxPyEndAllowThreads(__tstate);
36124 if (PyErr_Occurred()) SWIG_fail;
36125 }
36126 resultobj = SWIG_Py_Void();
36127 return resultobj;
36128 fail:
36129 return NULL;
36130 }
36131
36132
36133 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36134 PyObject *resultobj = 0;
36135 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36136 wxPoint *arg2 = 0 ;
36137 void *argp1 = 0 ;
36138 int res1 = 0 ;
36139 wxPoint temp2 ;
36140 PyObject * obj0 = 0 ;
36141 PyObject * obj1 = 0 ;
36142 char * kwnames[] = {
36143 (char *) "self",(char *) "pt", NULL
36144 };
36145
36146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36148 if (!SWIG_IsOK(res1)) {
36149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36150 }
36151 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36152 {
36153 arg2 = &temp2;
36154 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36155 }
36156 {
36157 PyThreadState* __tstate = wxPyBeginAllowThreads();
36158 (arg1)->CrossHair((wxPoint const &)*arg2);
36159 wxPyEndAllowThreads(__tstate);
36160 if (PyErr_Occurred()) SWIG_fail;
36161 }
36162 resultobj = SWIG_Py_Void();
36163 return resultobj;
36164 fail:
36165 return NULL;
36166 }
36167
36168
36169 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36170 PyObject *resultobj = 0;
36171 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36172 int arg2 ;
36173 int arg3 ;
36174 int arg4 ;
36175 int arg5 ;
36176 int arg6 ;
36177 int arg7 ;
36178 void *argp1 = 0 ;
36179 int res1 = 0 ;
36180 int val2 ;
36181 int ecode2 = 0 ;
36182 int val3 ;
36183 int ecode3 = 0 ;
36184 int val4 ;
36185 int ecode4 = 0 ;
36186 int val5 ;
36187 int ecode5 = 0 ;
36188 int val6 ;
36189 int ecode6 = 0 ;
36190 int val7 ;
36191 int ecode7 = 0 ;
36192 PyObject * obj0 = 0 ;
36193 PyObject * obj1 = 0 ;
36194 PyObject * obj2 = 0 ;
36195 PyObject * obj3 = 0 ;
36196 PyObject * obj4 = 0 ;
36197 PyObject * obj5 = 0 ;
36198 PyObject * obj6 = 0 ;
36199 char * kwnames[] = {
36200 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
36201 };
36202
36203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36205 if (!SWIG_IsOK(res1)) {
36206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36207 }
36208 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36209 ecode2 = SWIG_AsVal_int(obj1, &val2);
36210 if (!SWIG_IsOK(ecode2)) {
36211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
36212 }
36213 arg2 = static_cast< int >(val2);
36214 ecode3 = SWIG_AsVal_int(obj2, &val3);
36215 if (!SWIG_IsOK(ecode3)) {
36216 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
36217 }
36218 arg3 = static_cast< int >(val3);
36219 ecode4 = SWIG_AsVal_int(obj3, &val4);
36220 if (!SWIG_IsOK(ecode4)) {
36221 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
36222 }
36223 arg4 = static_cast< int >(val4);
36224 ecode5 = SWIG_AsVal_int(obj4, &val5);
36225 if (!SWIG_IsOK(ecode5)) {
36226 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
36227 }
36228 arg5 = static_cast< int >(val5);
36229 ecode6 = SWIG_AsVal_int(obj5, &val6);
36230 if (!SWIG_IsOK(ecode6)) {
36231 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
36232 }
36233 arg6 = static_cast< int >(val6);
36234 ecode7 = SWIG_AsVal_int(obj6, &val7);
36235 if (!SWIG_IsOK(ecode7)) {
36236 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
36237 }
36238 arg7 = static_cast< int >(val7);
36239 {
36240 PyThreadState* __tstate = wxPyBeginAllowThreads();
36241 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
36242 wxPyEndAllowThreads(__tstate);
36243 if (PyErr_Occurred()) SWIG_fail;
36244 }
36245 resultobj = SWIG_Py_Void();
36246 return resultobj;
36247 fail:
36248 return NULL;
36249 }
36250
36251
36252 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36253 PyObject *resultobj = 0;
36254 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36255 wxPoint *arg2 = 0 ;
36256 wxPoint *arg3 = 0 ;
36257 wxPoint *arg4 = 0 ;
36258 void *argp1 = 0 ;
36259 int res1 = 0 ;
36260 wxPoint temp2 ;
36261 wxPoint temp3 ;
36262 wxPoint temp4 ;
36263 PyObject * obj0 = 0 ;
36264 PyObject * obj1 = 0 ;
36265 PyObject * obj2 = 0 ;
36266 PyObject * obj3 = 0 ;
36267 char * kwnames[] = {
36268 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
36269 };
36270
36271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36273 if (!SWIG_IsOK(res1)) {
36274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36275 }
36276 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36277 {
36278 arg2 = &temp2;
36279 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36280 }
36281 {
36282 arg3 = &temp3;
36283 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36284 }
36285 {
36286 arg4 = &temp4;
36287 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36288 }
36289 {
36290 PyThreadState* __tstate = wxPyBeginAllowThreads();
36291 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
36292 wxPyEndAllowThreads(__tstate);
36293 if (PyErr_Occurred()) SWIG_fail;
36294 }
36295 resultobj = SWIG_Py_Void();
36296 return resultobj;
36297 fail:
36298 return NULL;
36299 }
36300
36301
36302 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36303 PyObject *resultobj = 0;
36304 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36305 int arg2 ;
36306 int arg3 ;
36307 int arg4 ;
36308 int arg5 ;
36309 void *argp1 = 0 ;
36310 int res1 = 0 ;
36311 int val2 ;
36312 int ecode2 = 0 ;
36313 int val3 ;
36314 int ecode3 = 0 ;
36315 int val4 ;
36316 int ecode4 = 0 ;
36317 int val5 ;
36318 int ecode5 = 0 ;
36319 PyObject * obj0 = 0 ;
36320 PyObject * obj1 = 0 ;
36321 PyObject * obj2 = 0 ;
36322 PyObject * obj3 = 0 ;
36323 PyObject * obj4 = 0 ;
36324 char * kwnames[] = {
36325 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36326 };
36327
36328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36330 if (!SWIG_IsOK(res1)) {
36331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36332 }
36333 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36334 ecode2 = SWIG_AsVal_int(obj1, &val2);
36335 if (!SWIG_IsOK(ecode2)) {
36336 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
36337 }
36338 arg2 = static_cast< int >(val2);
36339 ecode3 = SWIG_AsVal_int(obj2, &val3);
36340 if (!SWIG_IsOK(ecode3)) {
36341 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
36342 }
36343 arg3 = static_cast< int >(val3);
36344 ecode4 = SWIG_AsVal_int(obj3, &val4);
36345 if (!SWIG_IsOK(ecode4)) {
36346 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
36347 }
36348 arg4 = static_cast< int >(val4);
36349 ecode5 = SWIG_AsVal_int(obj4, &val5);
36350 if (!SWIG_IsOK(ecode5)) {
36351 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
36352 }
36353 arg5 = static_cast< int >(val5);
36354 {
36355 PyThreadState* __tstate = wxPyBeginAllowThreads();
36356 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
36357 wxPyEndAllowThreads(__tstate);
36358 if (PyErr_Occurred()) SWIG_fail;
36359 }
36360 resultobj = SWIG_Py_Void();
36361 return resultobj;
36362 fail:
36363 return NULL;
36364 }
36365
36366
36367 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36368 PyObject *resultobj = 0;
36369 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36370 wxRect *arg2 = 0 ;
36371 void *argp1 = 0 ;
36372 int res1 = 0 ;
36373 wxRect temp2 ;
36374 PyObject * obj0 = 0 ;
36375 PyObject * obj1 = 0 ;
36376 char * kwnames[] = {
36377 (char *) "self",(char *) "rect", NULL
36378 };
36379
36380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
36381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36382 if (!SWIG_IsOK(res1)) {
36383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36384 }
36385 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36386 {
36387 arg2 = &temp2;
36388 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36389 }
36390 {
36391 PyThreadState* __tstate = wxPyBeginAllowThreads();
36392 (arg1)->DrawCheckMark((wxRect const &)*arg2);
36393 wxPyEndAllowThreads(__tstate);
36394 if (PyErr_Occurred()) SWIG_fail;
36395 }
36396 resultobj = SWIG_Py_Void();
36397 return resultobj;
36398 fail:
36399 return NULL;
36400 }
36401
36402
36403 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36404 PyObject *resultobj = 0;
36405 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36406 int arg2 ;
36407 int arg3 ;
36408 int arg4 ;
36409 int arg5 ;
36410 double arg6 ;
36411 double arg7 ;
36412 void *argp1 = 0 ;
36413 int res1 = 0 ;
36414 int val2 ;
36415 int ecode2 = 0 ;
36416 int val3 ;
36417 int ecode3 = 0 ;
36418 int val4 ;
36419 int ecode4 = 0 ;
36420 int val5 ;
36421 int ecode5 = 0 ;
36422 double val6 ;
36423 int ecode6 = 0 ;
36424 double val7 ;
36425 int ecode7 = 0 ;
36426 PyObject * obj0 = 0 ;
36427 PyObject * obj1 = 0 ;
36428 PyObject * obj2 = 0 ;
36429 PyObject * obj3 = 0 ;
36430 PyObject * obj4 = 0 ;
36431 PyObject * obj5 = 0 ;
36432 PyObject * obj6 = 0 ;
36433 char * kwnames[] = {
36434 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
36435 };
36436
36437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36439 if (!SWIG_IsOK(res1)) {
36440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36441 }
36442 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36443 ecode2 = SWIG_AsVal_int(obj1, &val2);
36444 if (!SWIG_IsOK(ecode2)) {
36445 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
36446 }
36447 arg2 = static_cast< int >(val2);
36448 ecode3 = SWIG_AsVal_int(obj2, &val3);
36449 if (!SWIG_IsOK(ecode3)) {
36450 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
36451 }
36452 arg3 = static_cast< int >(val3);
36453 ecode4 = SWIG_AsVal_int(obj3, &val4);
36454 if (!SWIG_IsOK(ecode4)) {
36455 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
36456 }
36457 arg4 = static_cast< int >(val4);
36458 ecode5 = SWIG_AsVal_int(obj4, &val5);
36459 if (!SWIG_IsOK(ecode5)) {
36460 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
36461 }
36462 arg5 = static_cast< int >(val5);
36463 ecode6 = SWIG_AsVal_double(obj5, &val6);
36464 if (!SWIG_IsOK(ecode6)) {
36465 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
36466 }
36467 arg6 = static_cast< double >(val6);
36468 ecode7 = SWIG_AsVal_double(obj6, &val7);
36469 if (!SWIG_IsOK(ecode7)) {
36470 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
36471 }
36472 arg7 = static_cast< double >(val7);
36473 {
36474 PyThreadState* __tstate = wxPyBeginAllowThreads();
36475 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
36476 wxPyEndAllowThreads(__tstate);
36477 if (PyErr_Occurred()) SWIG_fail;
36478 }
36479 resultobj = SWIG_Py_Void();
36480 return resultobj;
36481 fail:
36482 return NULL;
36483 }
36484
36485
36486 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36487 PyObject *resultobj = 0;
36488 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36489 wxPoint *arg2 = 0 ;
36490 wxSize *arg3 = 0 ;
36491 double arg4 ;
36492 double arg5 ;
36493 void *argp1 = 0 ;
36494 int res1 = 0 ;
36495 wxPoint temp2 ;
36496 wxSize temp3 ;
36497 double val4 ;
36498 int ecode4 = 0 ;
36499 double val5 ;
36500 int ecode5 = 0 ;
36501 PyObject * obj0 = 0 ;
36502 PyObject * obj1 = 0 ;
36503 PyObject * obj2 = 0 ;
36504 PyObject * obj3 = 0 ;
36505 PyObject * obj4 = 0 ;
36506 char * kwnames[] = {
36507 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
36508 };
36509
36510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36512 if (!SWIG_IsOK(res1)) {
36513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36514 }
36515 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36516 {
36517 arg2 = &temp2;
36518 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36519 }
36520 {
36521 arg3 = &temp3;
36522 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36523 }
36524 ecode4 = SWIG_AsVal_double(obj3, &val4);
36525 if (!SWIG_IsOK(ecode4)) {
36526 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
36527 }
36528 arg4 = static_cast< double >(val4);
36529 ecode5 = SWIG_AsVal_double(obj4, &val5);
36530 if (!SWIG_IsOK(ecode5)) {
36531 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
36532 }
36533 arg5 = static_cast< double >(val5);
36534 {
36535 PyThreadState* __tstate = wxPyBeginAllowThreads();
36536 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
36537 wxPyEndAllowThreads(__tstate);
36538 if (PyErr_Occurred()) SWIG_fail;
36539 }
36540 resultobj = SWIG_Py_Void();
36541 return resultobj;
36542 fail:
36543 return NULL;
36544 }
36545
36546
36547 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36548 PyObject *resultobj = 0;
36549 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36550 int arg2 ;
36551 int arg3 ;
36552 void *argp1 = 0 ;
36553 int res1 = 0 ;
36554 int val2 ;
36555 int ecode2 = 0 ;
36556 int val3 ;
36557 int ecode3 = 0 ;
36558 PyObject * obj0 = 0 ;
36559 PyObject * obj1 = 0 ;
36560 PyObject * obj2 = 0 ;
36561 char * kwnames[] = {
36562 (char *) "self",(char *) "x",(char *) "y", NULL
36563 };
36564
36565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36567 if (!SWIG_IsOK(res1)) {
36568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36569 }
36570 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36571 ecode2 = SWIG_AsVal_int(obj1, &val2);
36572 if (!SWIG_IsOK(ecode2)) {
36573 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
36574 }
36575 arg2 = static_cast< int >(val2);
36576 ecode3 = SWIG_AsVal_int(obj2, &val3);
36577 if (!SWIG_IsOK(ecode3)) {
36578 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
36579 }
36580 arg3 = static_cast< int >(val3);
36581 {
36582 PyThreadState* __tstate = wxPyBeginAllowThreads();
36583 (arg1)->DrawPoint(arg2,arg3);
36584 wxPyEndAllowThreads(__tstate);
36585 if (PyErr_Occurred()) SWIG_fail;
36586 }
36587 resultobj = SWIG_Py_Void();
36588 return resultobj;
36589 fail:
36590 return NULL;
36591 }
36592
36593
36594 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36595 PyObject *resultobj = 0;
36596 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36597 wxPoint *arg2 = 0 ;
36598 void *argp1 = 0 ;
36599 int res1 = 0 ;
36600 wxPoint temp2 ;
36601 PyObject * obj0 = 0 ;
36602 PyObject * obj1 = 0 ;
36603 char * kwnames[] = {
36604 (char *) "self",(char *) "pt", NULL
36605 };
36606
36607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36609 if (!SWIG_IsOK(res1)) {
36610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36611 }
36612 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36613 {
36614 arg2 = &temp2;
36615 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36616 }
36617 {
36618 PyThreadState* __tstate = wxPyBeginAllowThreads();
36619 (arg1)->DrawPoint((wxPoint const &)*arg2);
36620 wxPyEndAllowThreads(__tstate);
36621 if (PyErr_Occurred()) SWIG_fail;
36622 }
36623 resultobj = SWIG_Py_Void();
36624 return resultobj;
36625 fail:
36626 return NULL;
36627 }
36628
36629
36630 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36631 PyObject *resultobj = 0;
36632 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36633 int arg2 ;
36634 int arg3 ;
36635 int arg4 ;
36636 int arg5 ;
36637 void *argp1 = 0 ;
36638 int res1 = 0 ;
36639 int val2 ;
36640 int ecode2 = 0 ;
36641 int val3 ;
36642 int ecode3 = 0 ;
36643 int val4 ;
36644 int ecode4 = 0 ;
36645 int val5 ;
36646 int ecode5 = 0 ;
36647 PyObject * obj0 = 0 ;
36648 PyObject * obj1 = 0 ;
36649 PyObject * obj2 = 0 ;
36650 PyObject * obj3 = 0 ;
36651 PyObject * obj4 = 0 ;
36652 char * kwnames[] = {
36653 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36654 };
36655
36656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36658 if (!SWIG_IsOK(res1)) {
36659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36660 }
36661 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36662 ecode2 = SWIG_AsVal_int(obj1, &val2);
36663 if (!SWIG_IsOK(ecode2)) {
36664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
36665 }
36666 arg2 = static_cast< int >(val2);
36667 ecode3 = SWIG_AsVal_int(obj2, &val3);
36668 if (!SWIG_IsOK(ecode3)) {
36669 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
36670 }
36671 arg3 = static_cast< int >(val3);
36672 ecode4 = SWIG_AsVal_int(obj3, &val4);
36673 if (!SWIG_IsOK(ecode4)) {
36674 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
36675 }
36676 arg4 = static_cast< int >(val4);
36677 ecode5 = SWIG_AsVal_int(obj4, &val5);
36678 if (!SWIG_IsOK(ecode5)) {
36679 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
36680 }
36681 arg5 = static_cast< int >(val5);
36682 {
36683 PyThreadState* __tstate = wxPyBeginAllowThreads();
36684 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
36685 wxPyEndAllowThreads(__tstate);
36686 if (PyErr_Occurred()) SWIG_fail;
36687 }
36688 resultobj = SWIG_Py_Void();
36689 return resultobj;
36690 fail:
36691 return NULL;
36692 }
36693
36694
36695 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36696 PyObject *resultobj = 0;
36697 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36698 wxRect *arg2 = 0 ;
36699 void *argp1 = 0 ;
36700 int res1 = 0 ;
36701 wxRect temp2 ;
36702 PyObject * obj0 = 0 ;
36703 PyObject * obj1 = 0 ;
36704 char * kwnames[] = {
36705 (char *) "self",(char *) "rect", NULL
36706 };
36707
36708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
36709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36710 if (!SWIG_IsOK(res1)) {
36711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36712 }
36713 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36714 {
36715 arg2 = &temp2;
36716 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36717 }
36718 {
36719 PyThreadState* __tstate = wxPyBeginAllowThreads();
36720 (arg1)->DrawRectangle((wxRect const &)*arg2);
36721 wxPyEndAllowThreads(__tstate);
36722 if (PyErr_Occurred()) SWIG_fail;
36723 }
36724 resultobj = SWIG_Py_Void();
36725 return resultobj;
36726 fail:
36727 return NULL;
36728 }
36729
36730
36731 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36732 PyObject *resultobj = 0;
36733 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36734 wxPoint *arg2 = 0 ;
36735 wxSize *arg3 = 0 ;
36736 void *argp1 = 0 ;
36737 int res1 = 0 ;
36738 wxPoint temp2 ;
36739 wxSize temp3 ;
36740 PyObject * obj0 = 0 ;
36741 PyObject * obj1 = 0 ;
36742 PyObject * obj2 = 0 ;
36743 char * kwnames[] = {
36744 (char *) "self",(char *) "pt",(char *) "sz", NULL
36745 };
36746
36747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36749 if (!SWIG_IsOK(res1)) {
36750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36751 }
36752 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36753 {
36754 arg2 = &temp2;
36755 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36756 }
36757 {
36758 arg3 = &temp3;
36759 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36760 }
36761 {
36762 PyThreadState* __tstate = wxPyBeginAllowThreads();
36763 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
36764 wxPyEndAllowThreads(__tstate);
36765 if (PyErr_Occurred()) SWIG_fail;
36766 }
36767 resultobj = SWIG_Py_Void();
36768 return resultobj;
36769 fail:
36770 return NULL;
36771 }
36772
36773
36774 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36775 PyObject *resultobj = 0;
36776 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36777 int arg2 ;
36778 int arg3 ;
36779 int arg4 ;
36780 int arg5 ;
36781 double arg6 ;
36782 void *argp1 = 0 ;
36783 int res1 = 0 ;
36784 int val2 ;
36785 int ecode2 = 0 ;
36786 int val3 ;
36787 int ecode3 = 0 ;
36788 int val4 ;
36789 int ecode4 = 0 ;
36790 int val5 ;
36791 int ecode5 = 0 ;
36792 double val6 ;
36793 int ecode6 = 0 ;
36794 PyObject * obj0 = 0 ;
36795 PyObject * obj1 = 0 ;
36796 PyObject * obj2 = 0 ;
36797 PyObject * obj3 = 0 ;
36798 PyObject * obj4 = 0 ;
36799 PyObject * obj5 = 0 ;
36800 char * kwnames[] = {
36801 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
36802 };
36803
36804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36806 if (!SWIG_IsOK(res1)) {
36807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36808 }
36809 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36810 ecode2 = SWIG_AsVal_int(obj1, &val2);
36811 if (!SWIG_IsOK(ecode2)) {
36812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
36813 }
36814 arg2 = static_cast< int >(val2);
36815 ecode3 = SWIG_AsVal_int(obj2, &val3);
36816 if (!SWIG_IsOK(ecode3)) {
36817 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
36818 }
36819 arg3 = static_cast< int >(val3);
36820 ecode4 = SWIG_AsVal_int(obj3, &val4);
36821 if (!SWIG_IsOK(ecode4)) {
36822 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
36823 }
36824 arg4 = static_cast< int >(val4);
36825 ecode5 = SWIG_AsVal_int(obj4, &val5);
36826 if (!SWIG_IsOK(ecode5)) {
36827 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
36828 }
36829 arg5 = static_cast< int >(val5);
36830 ecode6 = SWIG_AsVal_double(obj5, &val6);
36831 if (!SWIG_IsOK(ecode6)) {
36832 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
36833 }
36834 arg6 = static_cast< double >(val6);
36835 {
36836 PyThreadState* __tstate = wxPyBeginAllowThreads();
36837 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
36838 wxPyEndAllowThreads(__tstate);
36839 if (PyErr_Occurred()) SWIG_fail;
36840 }
36841 resultobj = SWIG_Py_Void();
36842 return resultobj;
36843 fail:
36844 return NULL;
36845 }
36846
36847
36848 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36849 PyObject *resultobj = 0;
36850 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36851 wxRect *arg2 = 0 ;
36852 double arg3 ;
36853 void *argp1 = 0 ;
36854 int res1 = 0 ;
36855 wxRect temp2 ;
36856 double val3 ;
36857 int ecode3 = 0 ;
36858 PyObject * obj0 = 0 ;
36859 PyObject * obj1 = 0 ;
36860 PyObject * obj2 = 0 ;
36861 char * kwnames[] = {
36862 (char *) "self",(char *) "r",(char *) "radius", NULL
36863 };
36864
36865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36867 if (!SWIG_IsOK(res1)) {
36868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36869 }
36870 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36871 {
36872 arg2 = &temp2;
36873 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36874 }
36875 ecode3 = SWIG_AsVal_double(obj2, &val3);
36876 if (!SWIG_IsOK(ecode3)) {
36877 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
36878 }
36879 arg3 = static_cast< double >(val3);
36880 {
36881 PyThreadState* __tstate = wxPyBeginAllowThreads();
36882 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
36883 wxPyEndAllowThreads(__tstate);
36884 if (PyErr_Occurred()) SWIG_fail;
36885 }
36886 resultobj = SWIG_Py_Void();
36887 return resultobj;
36888 fail:
36889 return NULL;
36890 }
36891
36892
36893 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36894 PyObject *resultobj = 0;
36895 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36896 wxPoint *arg2 = 0 ;
36897 wxSize *arg3 = 0 ;
36898 double arg4 ;
36899 void *argp1 = 0 ;
36900 int res1 = 0 ;
36901 wxPoint temp2 ;
36902 wxSize temp3 ;
36903 double val4 ;
36904 int ecode4 = 0 ;
36905 PyObject * obj0 = 0 ;
36906 PyObject * obj1 = 0 ;
36907 PyObject * obj2 = 0 ;
36908 PyObject * obj3 = 0 ;
36909 char * kwnames[] = {
36910 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
36911 };
36912
36913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36915 if (!SWIG_IsOK(res1)) {
36916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36917 }
36918 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36919 {
36920 arg2 = &temp2;
36921 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36922 }
36923 {
36924 arg3 = &temp3;
36925 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36926 }
36927 ecode4 = SWIG_AsVal_double(obj3, &val4);
36928 if (!SWIG_IsOK(ecode4)) {
36929 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
36930 }
36931 arg4 = static_cast< double >(val4);
36932 {
36933 PyThreadState* __tstate = wxPyBeginAllowThreads();
36934 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
36935 wxPyEndAllowThreads(__tstate);
36936 if (PyErr_Occurred()) SWIG_fail;
36937 }
36938 resultobj = SWIG_Py_Void();
36939 return resultobj;
36940 fail:
36941 return NULL;
36942 }
36943
36944
36945 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36946 PyObject *resultobj = 0;
36947 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36948 int arg2 ;
36949 int arg3 ;
36950 int arg4 ;
36951 void *argp1 = 0 ;
36952 int res1 = 0 ;
36953 int val2 ;
36954 int ecode2 = 0 ;
36955 int val3 ;
36956 int ecode3 = 0 ;
36957 int val4 ;
36958 int ecode4 = 0 ;
36959 PyObject * obj0 = 0 ;
36960 PyObject * obj1 = 0 ;
36961 PyObject * obj2 = 0 ;
36962 PyObject * obj3 = 0 ;
36963 char * kwnames[] = {
36964 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
36965 };
36966
36967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36969 if (!SWIG_IsOK(res1)) {
36970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36971 }
36972 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36973 ecode2 = SWIG_AsVal_int(obj1, &val2);
36974 if (!SWIG_IsOK(ecode2)) {
36975 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
36976 }
36977 arg2 = static_cast< int >(val2);
36978 ecode3 = SWIG_AsVal_int(obj2, &val3);
36979 if (!SWIG_IsOK(ecode3)) {
36980 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
36981 }
36982 arg3 = static_cast< int >(val3);
36983 ecode4 = SWIG_AsVal_int(obj3, &val4);
36984 if (!SWIG_IsOK(ecode4)) {
36985 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
36986 }
36987 arg4 = static_cast< int >(val4);
36988 {
36989 PyThreadState* __tstate = wxPyBeginAllowThreads();
36990 (arg1)->DrawCircle(arg2,arg3,arg4);
36991 wxPyEndAllowThreads(__tstate);
36992 if (PyErr_Occurred()) SWIG_fail;
36993 }
36994 resultobj = SWIG_Py_Void();
36995 return resultobj;
36996 fail:
36997 return NULL;
36998 }
36999
37000
37001 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37002 PyObject *resultobj = 0;
37003 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37004 wxPoint *arg2 = 0 ;
37005 int arg3 ;
37006 void *argp1 = 0 ;
37007 int res1 = 0 ;
37008 wxPoint temp2 ;
37009 int val3 ;
37010 int ecode3 = 0 ;
37011 PyObject * obj0 = 0 ;
37012 PyObject * obj1 = 0 ;
37013 PyObject * obj2 = 0 ;
37014 char * kwnames[] = {
37015 (char *) "self",(char *) "pt",(char *) "radius", NULL
37016 };
37017
37018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37020 if (!SWIG_IsOK(res1)) {
37021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37022 }
37023 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37024 {
37025 arg2 = &temp2;
37026 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37027 }
37028 ecode3 = SWIG_AsVal_int(obj2, &val3);
37029 if (!SWIG_IsOK(ecode3)) {
37030 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
37031 }
37032 arg3 = static_cast< int >(val3);
37033 {
37034 PyThreadState* __tstate = wxPyBeginAllowThreads();
37035 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
37036 wxPyEndAllowThreads(__tstate);
37037 if (PyErr_Occurred()) SWIG_fail;
37038 }
37039 resultobj = SWIG_Py_Void();
37040 return resultobj;
37041 fail:
37042 return NULL;
37043 }
37044
37045
37046 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37047 PyObject *resultobj = 0;
37048 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37049 int arg2 ;
37050 int arg3 ;
37051 int arg4 ;
37052 int arg5 ;
37053 void *argp1 = 0 ;
37054 int res1 = 0 ;
37055 int val2 ;
37056 int ecode2 = 0 ;
37057 int val3 ;
37058 int ecode3 = 0 ;
37059 int val4 ;
37060 int ecode4 = 0 ;
37061 int val5 ;
37062 int ecode5 = 0 ;
37063 PyObject * obj0 = 0 ;
37064 PyObject * obj1 = 0 ;
37065 PyObject * obj2 = 0 ;
37066 PyObject * obj3 = 0 ;
37067 PyObject * obj4 = 0 ;
37068 char * kwnames[] = {
37069 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37070 };
37071
37072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37074 if (!SWIG_IsOK(res1)) {
37075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37076 }
37077 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37078 ecode2 = SWIG_AsVal_int(obj1, &val2);
37079 if (!SWIG_IsOK(ecode2)) {
37080 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
37081 }
37082 arg2 = static_cast< int >(val2);
37083 ecode3 = SWIG_AsVal_int(obj2, &val3);
37084 if (!SWIG_IsOK(ecode3)) {
37085 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
37086 }
37087 arg3 = static_cast< int >(val3);
37088 ecode4 = SWIG_AsVal_int(obj3, &val4);
37089 if (!SWIG_IsOK(ecode4)) {
37090 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
37091 }
37092 arg4 = static_cast< int >(val4);
37093 ecode5 = SWIG_AsVal_int(obj4, &val5);
37094 if (!SWIG_IsOK(ecode5)) {
37095 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
37096 }
37097 arg5 = static_cast< int >(val5);
37098 {
37099 PyThreadState* __tstate = wxPyBeginAllowThreads();
37100 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
37101 wxPyEndAllowThreads(__tstate);
37102 if (PyErr_Occurred()) SWIG_fail;
37103 }
37104 resultobj = SWIG_Py_Void();
37105 return resultobj;
37106 fail:
37107 return NULL;
37108 }
37109
37110
37111 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37112 PyObject *resultobj = 0;
37113 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37114 wxRect *arg2 = 0 ;
37115 void *argp1 = 0 ;
37116 int res1 = 0 ;
37117 wxRect temp2 ;
37118 PyObject * obj0 = 0 ;
37119 PyObject * obj1 = 0 ;
37120 char * kwnames[] = {
37121 (char *) "self",(char *) "rect", NULL
37122 };
37123
37124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
37125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37126 if (!SWIG_IsOK(res1)) {
37127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37128 }
37129 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37130 {
37131 arg2 = &temp2;
37132 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37133 }
37134 {
37135 PyThreadState* __tstate = wxPyBeginAllowThreads();
37136 (arg1)->DrawEllipse((wxRect const &)*arg2);
37137 wxPyEndAllowThreads(__tstate);
37138 if (PyErr_Occurred()) SWIG_fail;
37139 }
37140 resultobj = SWIG_Py_Void();
37141 return resultobj;
37142 fail:
37143 return NULL;
37144 }
37145
37146
37147 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37148 PyObject *resultobj = 0;
37149 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37150 wxPoint *arg2 = 0 ;
37151 wxSize *arg3 = 0 ;
37152 void *argp1 = 0 ;
37153 int res1 = 0 ;
37154 wxPoint temp2 ;
37155 wxSize temp3 ;
37156 PyObject * obj0 = 0 ;
37157 PyObject * obj1 = 0 ;
37158 PyObject * obj2 = 0 ;
37159 char * kwnames[] = {
37160 (char *) "self",(char *) "pt",(char *) "sz", NULL
37161 };
37162
37163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37165 if (!SWIG_IsOK(res1)) {
37166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37167 }
37168 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37169 {
37170 arg2 = &temp2;
37171 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37172 }
37173 {
37174 arg3 = &temp3;
37175 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37176 }
37177 {
37178 PyThreadState* __tstate = wxPyBeginAllowThreads();
37179 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
37180 wxPyEndAllowThreads(__tstate);
37181 if (PyErr_Occurred()) SWIG_fail;
37182 }
37183 resultobj = SWIG_Py_Void();
37184 return resultobj;
37185 fail:
37186 return NULL;
37187 }
37188
37189
37190 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37191 PyObject *resultobj = 0;
37192 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37193 wxIcon *arg2 = 0 ;
37194 int arg3 ;
37195 int arg4 ;
37196 void *argp1 = 0 ;
37197 int res1 = 0 ;
37198 void *argp2 = 0 ;
37199 int res2 = 0 ;
37200 int val3 ;
37201 int ecode3 = 0 ;
37202 int val4 ;
37203 int ecode4 = 0 ;
37204 PyObject * obj0 = 0 ;
37205 PyObject * obj1 = 0 ;
37206 PyObject * obj2 = 0 ;
37207 PyObject * obj3 = 0 ;
37208 char * kwnames[] = {
37209 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
37210 };
37211
37212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37214 if (!SWIG_IsOK(res1)) {
37215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37216 }
37217 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37218 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37219 if (!SWIG_IsOK(res2)) {
37220 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37221 }
37222 if (!argp2) {
37223 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37224 }
37225 arg2 = reinterpret_cast< wxIcon * >(argp2);
37226 ecode3 = SWIG_AsVal_int(obj2, &val3);
37227 if (!SWIG_IsOK(ecode3)) {
37228 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
37229 }
37230 arg3 = static_cast< int >(val3);
37231 ecode4 = SWIG_AsVal_int(obj3, &val4);
37232 if (!SWIG_IsOK(ecode4)) {
37233 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
37234 }
37235 arg4 = static_cast< int >(val4);
37236 {
37237 PyThreadState* __tstate = wxPyBeginAllowThreads();
37238 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
37239 wxPyEndAllowThreads(__tstate);
37240 if (PyErr_Occurred()) SWIG_fail;
37241 }
37242 resultobj = SWIG_Py_Void();
37243 return resultobj;
37244 fail:
37245 return NULL;
37246 }
37247
37248
37249 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37250 PyObject *resultobj = 0;
37251 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37252 wxIcon *arg2 = 0 ;
37253 wxPoint *arg3 = 0 ;
37254 void *argp1 = 0 ;
37255 int res1 = 0 ;
37256 void *argp2 = 0 ;
37257 int res2 = 0 ;
37258 wxPoint temp3 ;
37259 PyObject * obj0 = 0 ;
37260 PyObject * obj1 = 0 ;
37261 PyObject * obj2 = 0 ;
37262 char * kwnames[] = {
37263 (char *) "self",(char *) "icon",(char *) "pt", NULL
37264 };
37265
37266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37268 if (!SWIG_IsOK(res1)) {
37269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37270 }
37271 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37272 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37273 if (!SWIG_IsOK(res2)) {
37274 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37275 }
37276 if (!argp2) {
37277 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37278 }
37279 arg2 = reinterpret_cast< wxIcon * >(argp2);
37280 {
37281 arg3 = &temp3;
37282 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37283 }
37284 {
37285 PyThreadState* __tstate = wxPyBeginAllowThreads();
37286 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
37287 wxPyEndAllowThreads(__tstate);
37288 if (PyErr_Occurred()) SWIG_fail;
37289 }
37290 resultobj = SWIG_Py_Void();
37291 return resultobj;
37292 fail:
37293 return NULL;
37294 }
37295
37296
37297 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37298 PyObject *resultobj = 0;
37299 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37300 wxBitmap *arg2 = 0 ;
37301 int arg3 ;
37302 int arg4 ;
37303 bool arg5 = (bool) false ;
37304 void *argp1 = 0 ;
37305 int res1 = 0 ;
37306 void *argp2 = 0 ;
37307 int res2 = 0 ;
37308 int val3 ;
37309 int ecode3 = 0 ;
37310 int val4 ;
37311 int ecode4 = 0 ;
37312 bool val5 ;
37313 int ecode5 = 0 ;
37314 PyObject * obj0 = 0 ;
37315 PyObject * obj1 = 0 ;
37316 PyObject * obj2 = 0 ;
37317 PyObject * obj3 = 0 ;
37318 PyObject * obj4 = 0 ;
37319 char * kwnames[] = {
37320 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
37321 };
37322
37323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37325 if (!SWIG_IsOK(res1)) {
37326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37327 }
37328 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37329 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37330 if (!SWIG_IsOK(res2)) {
37331 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37332 }
37333 if (!argp2) {
37334 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37335 }
37336 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37337 ecode3 = SWIG_AsVal_int(obj2, &val3);
37338 if (!SWIG_IsOK(ecode3)) {
37339 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
37340 }
37341 arg3 = static_cast< int >(val3);
37342 ecode4 = SWIG_AsVal_int(obj3, &val4);
37343 if (!SWIG_IsOK(ecode4)) {
37344 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
37345 }
37346 arg4 = static_cast< int >(val4);
37347 if (obj4) {
37348 ecode5 = SWIG_AsVal_bool(obj4, &val5);
37349 if (!SWIG_IsOK(ecode5)) {
37350 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
37351 }
37352 arg5 = static_cast< bool >(val5);
37353 }
37354 {
37355 PyThreadState* __tstate = wxPyBeginAllowThreads();
37356 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
37357 wxPyEndAllowThreads(__tstate);
37358 if (PyErr_Occurred()) SWIG_fail;
37359 }
37360 resultobj = SWIG_Py_Void();
37361 return resultobj;
37362 fail:
37363 return NULL;
37364 }
37365
37366
37367 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37368 PyObject *resultobj = 0;
37369 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37370 wxBitmap *arg2 = 0 ;
37371 wxPoint *arg3 = 0 ;
37372 bool arg4 = (bool) false ;
37373 void *argp1 = 0 ;
37374 int res1 = 0 ;
37375 void *argp2 = 0 ;
37376 int res2 = 0 ;
37377 wxPoint temp3 ;
37378 bool val4 ;
37379 int ecode4 = 0 ;
37380 PyObject * obj0 = 0 ;
37381 PyObject * obj1 = 0 ;
37382 PyObject * obj2 = 0 ;
37383 PyObject * obj3 = 0 ;
37384 char * kwnames[] = {
37385 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
37386 };
37387
37388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37390 if (!SWIG_IsOK(res1)) {
37391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37392 }
37393 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37394 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37395 if (!SWIG_IsOK(res2)) {
37396 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37397 }
37398 if (!argp2) {
37399 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37400 }
37401 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37402 {
37403 arg3 = &temp3;
37404 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37405 }
37406 if (obj3) {
37407 ecode4 = SWIG_AsVal_bool(obj3, &val4);
37408 if (!SWIG_IsOK(ecode4)) {
37409 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
37410 }
37411 arg4 = static_cast< bool >(val4);
37412 }
37413 {
37414 PyThreadState* __tstate = wxPyBeginAllowThreads();
37415 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
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_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37427 PyObject *resultobj = 0;
37428 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37429 wxString *arg2 = 0 ;
37430 int arg3 ;
37431 int arg4 ;
37432 void *argp1 = 0 ;
37433 int res1 = 0 ;
37434 bool temp2 = false ;
37435 int val3 ;
37436 int ecode3 = 0 ;
37437 int val4 ;
37438 int ecode4 = 0 ;
37439 PyObject * obj0 = 0 ;
37440 PyObject * obj1 = 0 ;
37441 PyObject * obj2 = 0 ;
37442 PyObject * obj3 = 0 ;
37443 char * kwnames[] = {
37444 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
37445 };
37446
37447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37449 if (!SWIG_IsOK(res1)) {
37450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37451 }
37452 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37453 {
37454 arg2 = wxString_in_helper(obj1);
37455 if (arg2 == NULL) SWIG_fail;
37456 temp2 = true;
37457 }
37458 ecode3 = SWIG_AsVal_int(obj2, &val3);
37459 if (!SWIG_IsOK(ecode3)) {
37460 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
37461 }
37462 arg3 = static_cast< int >(val3);
37463 ecode4 = SWIG_AsVal_int(obj3, &val4);
37464 if (!SWIG_IsOK(ecode4)) {
37465 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
37466 }
37467 arg4 = static_cast< int >(val4);
37468 {
37469 PyThreadState* __tstate = wxPyBeginAllowThreads();
37470 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
37471 wxPyEndAllowThreads(__tstate);
37472 if (PyErr_Occurred()) SWIG_fail;
37473 }
37474 resultobj = SWIG_Py_Void();
37475 {
37476 if (temp2)
37477 delete arg2;
37478 }
37479 return resultobj;
37480 fail:
37481 {
37482 if (temp2)
37483 delete arg2;
37484 }
37485 return NULL;
37486 }
37487
37488
37489 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37490 PyObject *resultobj = 0;
37491 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37492 wxString *arg2 = 0 ;
37493 wxPoint *arg3 = 0 ;
37494 void *argp1 = 0 ;
37495 int res1 = 0 ;
37496 bool temp2 = false ;
37497 wxPoint temp3 ;
37498 PyObject * obj0 = 0 ;
37499 PyObject * obj1 = 0 ;
37500 PyObject * obj2 = 0 ;
37501 char * kwnames[] = {
37502 (char *) "self",(char *) "text",(char *) "pt", NULL
37503 };
37504
37505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37507 if (!SWIG_IsOK(res1)) {
37508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37509 }
37510 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37511 {
37512 arg2 = wxString_in_helper(obj1);
37513 if (arg2 == NULL) SWIG_fail;
37514 temp2 = true;
37515 }
37516 {
37517 arg3 = &temp3;
37518 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37519 }
37520 {
37521 PyThreadState* __tstate = wxPyBeginAllowThreads();
37522 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
37523 wxPyEndAllowThreads(__tstate);
37524 if (PyErr_Occurred()) SWIG_fail;
37525 }
37526 resultobj = SWIG_Py_Void();
37527 {
37528 if (temp2)
37529 delete arg2;
37530 }
37531 return resultobj;
37532 fail:
37533 {
37534 if (temp2)
37535 delete arg2;
37536 }
37537 return NULL;
37538 }
37539
37540
37541 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37542 PyObject *resultobj = 0;
37543 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37544 wxString *arg2 = 0 ;
37545 int arg3 ;
37546 int arg4 ;
37547 double arg5 ;
37548 void *argp1 = 0 ;
37549 int res1 = 0 ;
37550 bool temp2 = false ;
37551 int val3 ;
37552 int ecode3 = 0 ;
37553 int val4 ;
37554 int ecode4 = 0 ;
37555 double val5 ;
37556 int ecode5 = 0 ;
37557 PyObject * obj0 = 0 ;
37558 PyObject * obj1 = 0 ;
37559 PyObject * obj2 = 0 ;
37560 PyObject * obj3 = 0 ;
37561 PyObject * obj4 = 0 ;
37562 char * kwnames[] = {
37563 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
37564 };
37565
37566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37568 if (!SWIG_IsOK(res1)) {
37569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37570 }
37571 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37572 {
37573 arg2 = wxString_in_helper(obj1);
37574 if (arg2 == NULL) SWIG_fail;
37575 temp2 = true;
37576 }
37577 ecode3 = SWIG_AsVal_int(obj2, &val3);
37578 if (!SWIG_IsOK(ecode3)) {
37579 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
37580 }
37581 arg3 = static_cast< int >(val3);
37582 ecode4 = SWIG_AsVal_int(obj3, &val4);
37583 if (!SWIG_IsOK(ecode4)) {
37584 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
37585 }
37586 arg4 = static_cast< int >(val4);
37587 ecode5 = SWIG_AsVal_double(obj4, &val5);
37588 if (!SWIG_IsOK(ecode5)) {
37589 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
37590 }
37591 arg5 = static_cast< double >(val5);
37592 {
37593 PyThreadState* __tstate = wxPyBeginAllowThreads();
37594 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
37595 wxPyEndAllowThreads(__tstate);
37596 if (PyErr_Occurred()) SWIG_fail;
37597 }
37598 resultobj = SWIG_Py_Void();
37599 {
37600 if (temp2)
37601 delete arg2;
37602 }
37603 return resultobj;
37604 fail:
37605 {
37606 if (temp2)
37607 delete arg2;
37608 }
37609 return NULL;
37610 }
37611
37612
37613 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37614 PyObject *resultobj = 0;
37615 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37616 wxString *arg2 = 0 ;
37617 wxPoint *arg3 = 0 ;
37618 double arg4 ;
37619 void *argp1 = 0 ;
37620 int res1 = 0 ;
37621 bool temp2 = false ;
37622 wxPoint temp3 ;
37623 double val4 ;
37624 int ecode4 = 0 ;
37625 PyObject * obj0 = 0 ;
37626 PyObject * obj1 = 0 ;
37627 PyObject * obj2 = 0 ;
37628 PyObject * obj3 = 0 ;
37629 char * kwnames[] = {
37630 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
37631 };
37632
37633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37635 if (!SWIG_IsOK(res1)) {
37636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37637 }
37638 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37639 {
37640 arg2 = wxString_in_helper(obj1);
37641 if (arg2 == NULL) SWIG_fail;
37642 temp2 = true;
37643 }
37644 {
37645 arg3 = &temp3;
37646 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37647 }
37648 ecode4 = SWIG_AsVal_double(obj3, &val4);
37649 if (!SWIG_IsOK(ecode4)) {
37650 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
37651 }
37652 arg4 = static_cast< double >(val4);
37653 {
37654 PyThreadState* __tstate = wxPyBeginAllowThreads();
37655 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
37656 wxPyEndAllowThreads(__tstate);
37657 if (PyErr_Occurred()) SWIG_fail;
37658 }
37659 resultobj = SWIG_Py_Void();
37660 {
37661 if (temp2)
37662 delete arg2;
37663 }
37664 return resultobj;
37665 fail:
37666 {
37667 if (temp2)
37668 delete arg2;
37669 }
37670 return NULL;
37671 }
37672
37673
37674 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37675 PyObject *resultobj = 0;
37676 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37677 int arg2 ;
37678 wxPoint *arg3 = (wxPoint *) 0 ;
37679 int arg4 = (int) 0 ;
37680 int arg5 = (int) 0 ;
37681 void *argp1 = 0 ;
37682 int res1 = 0 ;
37683 int val4 ;
37684 int ecode4 = 0 ;
37685 int val5 ;
37686 int ecode5 = 0 ;
37687 PyObject * obj0 = 0 ;
37688 PyObject * obj1 = 0 ;
37689 PyObject * obj2 = 0 ;
37690 PyObject * obj3 = 0 ;
37691 char * kwnames[] = {
37692 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
37693 };
37694
37695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37697 if (!SWIG_IsOK(res1)) {
37698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37699 }
37700 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37701 {
37702 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37703 if (arg3 == NULL) SWIG_fail;
37704 }
37705 if (obj2) {
37706 ecode4 = SWIG_AsVal_int(obj2, &val4);
37707 if (!SWIG_IsOK(ecode4)) {
37708 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
37709 }
37710 arg4 = static_cast< int >(val4);
37711 }
37712 if (obj3) {
37713 ecode5 = SWIG_AsVal_int(obj3, &val5);
37714 if (!SWIG_IsOK(ecode5)) {
37715 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
37716 }
37717 arg5 = static_cast< int >(val5);
37718 }
37719 {
37720 PyThreadState* __tstate = wxPyBeginAllowThreads();
37721 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
37722 wxPyEndAllowThreads(__tstate);
37723 if (PyErr_Occurred()) SWIG_fail;
37724 }
37725 resultobj = SWIG_Py_Void();
37726 {
37727 if (arg3) delete [] arg3;
37728 }
37729 return resultobj;
37730 fail:
37731 {
37732 if (arg3) delete [] arg3;
37733 }
37734 return NULL;
37735 }
37736
37737
37738 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37739 PyObject *resultobj = 0;
37740 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37741 int arg2 ;
37742 wxPoint *arg3 = (wxPoint *) 0 ;
37743 int arg4 = (int) 0 ;
37744 int arg5 = (int) 0 ;
37745 int arg6 = (int) wxODDEVEN_RULE ;
37746 void *argp1 = 0 ;
37747 int res1 = 0 ;
37748 int val4 ;
37749 int ecode4 = 0 ;
37750 int val5 ;
37751 int ecode5 = 0 ;
37752 int val6 ;
37753 int ecode6 = 0 ;
37754 PyObject * obj0 = 0 ;
37755 PyObject * obj1 = 0 ;
37756 PyObject * obj2 = 0 ;
37757 PyObject * obj3 = 0 ;
37758 PyObject * obj4 = 0 ;
37759 char * kwnames[] = {
37760 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
37761 };
37762
37763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37765 if (!SWIG_IsOK(res1)) {
37766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37767 }
37768 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37769 {
37770 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37771 if (arg3 == NULL) SWIG_fail;
37772 }
37773 if (obj2) {
37774 ecode4 = SWIG_AsVal_int(obj2, &val4);
37775 if (!SWIG_IsOK(ecode4)) {
37776 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
37777 }
37778 arg4 = static_cast< int >(val4);
37779 }
37780 if (obj3) {
37781 ecode5 = SWIG_AsVal_int(obj3, &val5);
37782 if (!SWIG_IsOK(ecode5)) {
37783 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
37784 }
37785 arg5 = static_cast< int >(val5);
37786 }
37787 if (obj4) {
37788 ecode6 = SWIG_AsVal_int(obj4, &val6);
37789 if (!SWIG_IsOK(ecode6)) {
37790 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
37791 }
37792 arg6 = static_cast< int >(val6);
37793 }
37794 {
37795 PyThreadState* __tstate = wxPyBeginAllowThreads();
37796 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
37797 wxPyEndAllowThreads(__tstate);
37798 if (PyErr_Occurred()) SWIG_fail;
37799 }
37800 resultobj = SWIG_Py_Void();
37801 {
37802 if (arg3) delete [] arg3;
37803 }
37804 return resultobj;
37805 fail:
37806 {
37807 if (arg3) delete [] arg3;
37808 }
37809 return NULL;
37810 }
37811
37812
37813 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37814 PyObject *resultobj = 0;
37815 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37816 wxString *arg2 = 0 ;
37817 wxRect *arg3 = 0 ;
37818 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37819 int arg5 = (int) -1 ;
37820 void *argp1 = 0 ;
37821 int res1 = 0 ;
37822 bool temp2 = false ;
37823 wxRect temp3 ;
37824 int val4 ;
37825 int ecode4 = 0 ;
37826 int val5 ;
37827 int ecode5 = 0 ;
37828 PyObject * obj0 = 0 ;
37829 PyObject * obj1 = 0 ;
37830 PyObject * obj2 = 0 ;
37831 PyObject * obj3 = 0 ;
37832 PyObject * obj4 = 0 ;
37833 char * kwnames[] = {
37834 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37835 };
37836
37837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37839 if (!SWIG_IsOK(res1)) {
37840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37841 }
37842 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37843 {
37844 arg2 = wxString_in_helper(obj1);
37845 if (arg2 == NULL) SWIG_fail;
37846 temp2 = true;
37847 }
37848 {
37849 arg3 = &temp3;
37850 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
37851 }
37852 if (obj3) {
37853 ecode4 = SWIG_AsVal_int(obj3, &val4);
37854 if (!SWIG_IsOK(ecode4)) {
37855 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
37856 }
37857 arg4 = static_cast< int >(val4);
37858 }
37859 if (obj4) {
37860 ecode5 = SWIG_AsVal_int(obj4, &val5);
37861 if (!SWIG_IsOK(ecode5)) {
37862 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
37863 }
37864 arg5 = static_cast< int >(val5);
37865 }
37866 {
37867 PyThreadState* __tstate = wxPyBeginAllowThreads();
37868 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
37869 wxPyEndAllowThreads(__tstate);
37870 if (PyErr_Occurred()) SWIG_fail;
37871 }
37872 resultobj = SWIG_Py_Void();
37873 {
37874 if (temp2)
37875 delete arg2;
37876 }
37877 return resultobj;
37878 fail:
37879 {
37880 if (temp2)
37881 delete arg2;
37882 }
37883 return NULL;
37884 }
37885
37886
37887 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37888 PyObject *resultobj = 0;
37889 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37890 wxString *arg2 = 0 ;
37891 wxBitmap *arg3 = 0 ;
37892 wxRect *arg4 = 0 ;
37893 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37894 int arg6 = (int) -1 ;
37895 void *argp1 = 0 ;
37896 int res1 = 0 ;
37897 bool temp2 = false ;
37898 void *argp3 = 0 ;
37899 int res3 = 0 ;
37900 wxRect temp4 ;
37901 int val5 ;
37902 int ecode5 = 0 ;
37903 int val6 ;
37904 int ecode6 = 0 ;
37905 PyObject * obj0 = 0 ;
37906 PyObject * obj1 = 0 ;
37907 PyObject * obj2 = 0 ;
37908 PyObject * obj3 = 0 ;
37909 PyObject * obj4 = 0 ;
37910 PyObject * obj5 = 0 ;
37911 char * kwnames[] = {
37912 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37913 };
37914
37915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37917 if (!SWIG_IsOK(res1)) {
37918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37919 }
37920 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37921 {
37922 arg2 = wxString_in_helper(obj1);
37923 if (arg2 == NULL) SWIG_fail;
37924 temp2 = true;
37925 }
37926 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
37927 if (!SWIG_IsOK(res3)) {
37928 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
37929 }
37930 if (!argp3) {
37931 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
37932 }
37933 arg3 = reinterpret_cast< wxBitmap * >(argp3);
37934 {
37935 arg4 = &temp4;
37936 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
37937 }
37938 if (obj4) {
37939 ecode5 = SWIG_AsVal_int(obj4, &val5);
37940 if (!SWIG_IsOK(ecode5)) {
37941 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
37942 }
37943 arg5 = static_cast< int >(val5);
37944 }
37945 if (obj5) {
37946 ecode6 = SWIG_AsVal_int(obj5, &val6);
37947 if (!SWIG_IsOK(ecode6)) {
37948 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
37949 }
37950 arg6 = static_cast< int >(val6);
37951 }
37952 {
37953 PyThreadState* __tstate = wxPyBeginAllowThreads();
37954 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
37955 wxPyEndAllowThreads(__tstate);
37956 if (PyErr_Occurred()) SWIG_fail;
37957 }
37958 resultobj = SWIG_Py_Void();
37959 {
37960 if (temp2)
37961 delete arg2;
37962 }
37963 return resultobj;
37964 fail:
37965 {
37966 if (temp2)
37967 delete arg2;
37968 }
37969 return NULL;
37970 }
37971
37972
37973 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37974 PyObject *resultobj = 0;
37975 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37976 int arg2 ;
37977 wxPoint *arg3 = (wxPoint *) 0 ;
37978 void *argp1 = 0 ;
37979 int res1 = 0 ;
37980 PyObject * obj0 = 0 ;
37981 PyObject * obj1 = 0 ;
37982 char * kwnames[] = {
37983 (char *) "self",(char *) "points", NULL
37984 };
37985
37986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
37987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37988 if (!SWIG_IsOK(res1)) {
37989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37990 }
37991 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37992 {
37993 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37994 if (arg3 == NULL) SWIG_fail;
37995 }
37996 {
37997 PyThreadState* __tstate = wxPyBeginAllowThreads();
37998 (arg1)->DrawSpline(arg2,arg3);
37999 wxPyEndAllowThreads(__tstate);
38000 if (PyErr_Occurred()) SWIG_fail;
38001 }
38002 resultobj = SWIG_Py_Void();
38003 {
38004 if (arg3) delete [] arg3;
38005 }
38006 return resultobj;
38007 fail:
38008 {
38009 if (arg3) delete [] arg3;
38010 }
38011 return NULL;
38012 }
38013
38014
38015 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38016 PyObject *resultobj = 0;
38017 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38018 void *argp1 = 0 ;
38019 int res1 = 0 ;
38020 PyObject *swig_obj[1] ;
38021
38022 if (!args) SWIG_fail;
38023 swig_obj[0] = args;
38024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38025 if (!SWIG_IsOK(res1)) {
38026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38027 }
38028 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38029 {
38030 PyThreadState* __tstate = wxPyBeginAllowThreads();
38031 (arg1)->Clear();
38032 wxPyEndAllowThreads(__tstate);
38033 if (PyErr_Occurred()) SWIG_fail;
38034 }
38035 resultobj = SWIG_Py_Void();
38036 return resultobj;
38037 fail:
38038 return NULL;
38039 }
38040
38041
38042 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38043 PyObject *resultobj = 0;
38044 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38045 wxFont *arg2 = 0 ;
38046 void *argp1 = 0 ;
38047 int res1 = 0 ;
38048 void *argp2 = 0 ;
38049 int res2 = 0 ;
38050 PyObject * obj0 = 0 ;
38051 PyObject * obj1 = 0 ;
38052 char * kwnames[] = {
38053 (char *) "self",(char *) "font", NULL
38054 };
38055
38056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
38057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38058 if (!SWIG_IsOK(res1)) {
38059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38060 }
38061 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38062 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
38063 if (!SWIG_IsOK(res2)) {
38064 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38065 }
38066 if (!argp2) {
38067 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38068 }
38069 arg2 = reinterpret_cast< wxFont * >(argp2);
38070 {
38071 PyThreadState* __tstate = wxPyBeginAllowThreads();
38072 (arg1)->SetFont((wxFont const &)*arg2);
38073 wxPyEndAllowThreads(__tstate);
38074 if (PyErr_Occurred()) SWIG_fail;
38075 }
38076 resultobj = SWIG_Py_Void();
38077 return resultobj;
38078 fail:
38079 return NULL;
38080 }
38081
38082
38083 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38084 PyObject *resultobj = 0;
38085 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38086 wxPen *arg2 = 0 ;
38087 void *argp1 = 0 ;
38088 int res1 = 0 ;
38089 void *argp2 = 0 ;
38090 int res2 = 0 ;
38091 PyObject * obj0 = 0 ;
38092 PyObject * obj1 = 0 ;
38093 char * kwnames[] = {
38094 (char *) "self",(char *) "pen", NULL
38095 };
38096
38097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
38098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38099 if (!SWIG_IsOK(res1)) {
38100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38101 }
38102 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38103 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
38104 if (!SWIG_IsOK(res2)) {
38105 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38106 }
38107 if (!argp2) {
38108 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38109 }
38110 arg2 = reinterpret_cast< wxPen * >(argp2);
38111 {
38112 PyThreadState* __tstate = wxPyBeginAllowThreads();
38113 (arg1)->SetPen((wxPen const &)*arg2);
38114 wxPyEndAllowThreads(__tstate);
38115 if (PyErr_Occurred()) SWIG_fail;
38116 }
38117 resultobj = SWIG_Py_Void();
38118 return resultobj;
38119 fail:
38120 return NULL;
38121 }
38122
38123
38124 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38125 PyObject *resultobj = 0;
38126 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38127 wxBrush *arg2 = 0 ;
38128 void *argp1 = 0 ;
38129 int res1 = 0 ;
38130 void *argp2 = 0 ;
38131 int res2 = 0 ;
38132 PyObject * obj0 = 0 ;
38133 PyObject * obj1 = 0 ;
38134 char * kwnames[] = {
38135 (char *) "self",(char *) "brush", NULL
38136 };
38137
38138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
38139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38140 if (!SWIG_IsOK(res1)) {
38141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38142 }
38143 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38144 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38145 if (!SWIG_IsOK(res2)) {
38146 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38147 }
38148 if (!argp2) {
38149 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38150 }
38151 arg2 = reinterpret_cast< wxBrush * >(argp2);
38152 {
38153 PyThreadState* __tstate = wxPyBeginAllowThreads();
38154 (arg1)->SetBrush((wxBrush const &)*arg2);
38155 wxPyEndAllowThreads(__tstate);
38156 if (PyErr_Occurred()) SWIG_fail;
38157 }
38158 resultobj = SWIG_Py_Void();
38159 return resultobj;
38160 fail:
38161 return NULL;
38162 }
38163
38164
38165 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38166 PyObject *resultobj = 0;
38167 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38168 wxBrush *arg2 = 0 ;
38169 void *argp1 = 0 ;
38170 int res1 = 0 ;
38171 void *argp2 = 0 ;
38172 int res2 = 0 ;
38173 PyObject * obj0 = 0 ;
38174 PyObject * obj1 = 0 ;
38175 char * kwnames[] = {
38176 (char *) "self",(char *) "brush", NULL
38177 };
38178
38179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38181 if (!SWIG_IsOK(res1)) {
38182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38183 }
38184 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38185 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38186 if (!SWIG_IsOK(res2)) {
38187 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38188 }
38189 if (!argp2) {
38190 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38191 }
38192 arg2 = reinterpret_cast< wxBrush * >(argp2);
38193 {
38194 PyThreadState* __tstate = wxPyBeginAllowThreads();
38195 (arg1)->SetBackground((wxBrush const &)*arg2);
38196 wxPyEndAllowThreads(__tstate);
38197 if (PyErr_Occurred()) SWIG_fail;
38198 }
38199 resultobj = SWIG_Py_Void();
38200 return resultobj;
38201 fail:
38202 return NULL;
38203 }
38204
38205
38206 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38207 PyObject *resultobj = 0;
38208 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38209 int arg2 ;
38210 void *argp1 = 0 ;
38211 int res1 = 0 ;
38212 int val2 ;
38213 int ecode2 = 0 ;
38214 PyObject * obj0 = 0 ;
38215 PyObject * obj1 = 0 ;
38216 char * kwnames[] = {
38217 (char *) "self",(char *) "mode", NULL
38218 };
38219
38220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
38221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38222 if (!SWIG_IsOK(res1)) {
38223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38224 }
38225 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38226 ecode2 = SWIG_AsVal_int(obj1, &val2);
38227 if (!SWIG_IsOK(ecode2)) {
38228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
38229 }
38230 arg2 = static_cast< int >(val2);
38231 {
38232 PyThreadState* __tstate = wxPyBeginAllowThreads();
38233 (arg1)->SetBackgroundMode(arg2);
38234 wxPyEndAllowThreads(__tstate);
38235 if (PyErr_Occurred()) SWIG_fail;
38236 }
38237 resultobj = SWIG_Py_Void();
38238 return resultobj;
38239 fail:
38240 return NULL;
38241 }
38242
38243
38244 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38245 PyObject *resultobj = 0;
38246 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38247 wxPalette *arg2 = 0 ;
38248 void *argp1 = 0 ;
38249 int res1 = 0 ;
38250 void *argp2 = 0 ;
38251 int res2 = 0 ;
38252 PyObject * obj0 = 0 ;
38253 PyObject * obj1 = 0 ;
38254 char * kwnames[] = {
38255 (char *) "self",(char *) "palette", NULL
38256 };
38257
38258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
38259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38260 if (!SWIG_IsOK(res1)) {
38261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38262 }
38263 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38264 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
38265 if (!SWIG_IsOK(res2)) {
38266 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38267 }
38268 if (!argp2) {
38269 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38270 }
38271 arg2 = reinterpret_cast< wxPalette * >(argp2);
38272 {
38273 PyThreadState* __tstate = wxPyBeginAllowThreads();
38274 (arg1)->SetPalette((wxPalette const &)*arg2);
38275 wxPyEndAllowThreads(__tstate);
38276 if (PyErr_Occurred()) SWIG_fail;
38277 }
38278 resultobj = SWIG_Py_Void();
38279 return resultobj;
38280 fail:
38281 return NULL;
38282 }
38283
38284
38285 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38286 PyObject *resultobj = 0;
38287 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38288 wxColour *arg2 = 0 ;
38289 void *argp1 = 0 ;
38290 int res1 = 0 ;
38291 wxColour temp2 ;
38292 PyObject * obj0 = 0 ;
38293 PyObject * obj1 = 0 ;
38294 char * kwnames[] = {
38295 (char *) "self",(char *) "colour", NULL
38296 };
38297
38298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
38299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38300 if (!SWIG_IsOK(res1)) {
38301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38302 }
38303 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38304 {
38305 arg2 = &temp2;
38306 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38307 }
38308 {
38309 PyThreadState* __tstate = wxPyBeginAllowThreads();
38310 (arg1)->SetTextForeground((wxColour const &)*arg2);
38311 wxPyEndAllowThreads(__tstate);
38312 if (PyErr_Occurred()) SWIG_fail;
38313 }
38314 resultobj = SWIG_Py_Void();
38315 return resultobj;
38316 fail:
38317 return NULL;
38318 }
38319
38320
38321 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38322 PyObject *resultobj = 0;
38323 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38324 wxColour *arg2 = 0 ;
38325 void *argp1 = 0 ;
38326 int res1 = 0 ;
38327 wxColour temp2 ;
38328 PyObject * obj0 = 0 ;
38329 PyObject * obj1 = 0 ;
38330 char * kwnames[] = {
38331 (char *) "self",(char *) "colour", NULL
38332 };
38333
38334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38336 if (!SWIG_IsOK(res1)) {
38337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38338 }
38339 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38340 {
38341 arg2 = &temp2;
38342 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38343 }
38344 {
38345 PyThreadState* __tstate = wxPyBeginAllowThreads();
38346 (arg1)->SetTextBackground((wxColour const &)*arg2);
38347 wxPyEndAllowThreads(__tstate);
38348 if (PyErr_Occurred()) SWIG_fail;
38349 }
38350 resultobj = SWIG_Py_Void();
38351 return resultobj;
38352 fail:
38353 return NULL;
38354 }
38355
38356
38357 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38358 PyObject *resultobj = 0;
38359 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38360 int arg2 ;
38361 void *argp1 = 0 ;
38362 int res1 = 0 ;
38363 int val2 ;
38364 int ecode2 = 0 ;
38365 PyObject * obj0 = 0 ;
38366 PyObject * obj1 = 0 ;
38367 char * kwnames[] = {
38368 (char *) "self",(char *) "function", NULL
38369 };
38370
38371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
38372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38373 if (!SWIG_IsOK(res1)) {
38374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38375 }
38376 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38377 ecode2 = SWIG_AsVal_int(obj1, &val2);
38378 if (!SWIG_IsOK(ecode2)) {
38379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
38380 }
38381 arg2 = static_cast< int >(val2);
38382 {
38383 PyThreadState* __tstate = wxPyBeginAllowThreads();
38384 (arg1)->SetLogicalFunction(arg2);
38385 wxPyEndAllowThreads(__tstate);
38386 if (PyErr_Occurred()) SWIG_fail;
38387 }
38388 resultobj = SWIG_Py_Void();
38389 return resultobj;
38390 fail:
38391 return NULL;
38392 }
38393
38394
38395 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38396 PyObject *obj;
38397 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38398 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
38399 return SWIG_Py_Void();
38400 }
38401
38402 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38403 return SWIG_Python_InitShadowInstance(args);
38404 }
38405
38406 static PyMethodDef SwigMethods[] = {
38407 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
38408 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
38409 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
38410 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
38411 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
38412 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
38413 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
38414 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38415 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
38416 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
38417 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
38418 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
38419 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
38420 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
38421 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38422 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38423 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38424 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
38425 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
38426 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38427 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38428 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
38429 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
38430 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
38431 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
38432 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
38433 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
38434 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38435 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38436 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
38437 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
38438 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
38439 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
38440 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
38441 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
38442 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
38443 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
38444 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
38445 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
38446 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
38447 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
38448 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
38449 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38450 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
38451 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38452 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38453 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38454 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
38455 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38456 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38457 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38458 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
38459 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
38460 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
38461 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38462 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
38463 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38464 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38465 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
38466 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
38467 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
38468 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
38469 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
38470 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
38471 { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL},
38472 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
38473 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
38474 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
38475 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38476 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
38477 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38478 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38479 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38480 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38481 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
38482 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
38483 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
38484 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
38485 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
38486 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
38487 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
38488 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
38489 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
38490 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
38491 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38492 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
38493 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38494 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
38495 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38496 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38497 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38498 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38499 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
38500 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38501 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38502 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38503 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38504 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
38505 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
38506 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
38507 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38508 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38509 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
38510 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
38511 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
38512 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
38513 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
38514 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
38515 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
38516 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
38517 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
38518 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
38519 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
38520 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
38521 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
38522 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
38523 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
38524 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38525 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
38526 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
38527 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38528 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38529 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38530 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38531 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38532 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
38533 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
38534 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
38535 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
38536 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
38537 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
38538 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
38539 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
38540 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
38541 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
38542 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
38543 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
38544 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38545 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
38546 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
38547 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38548 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38549 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38550 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38551 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38552 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
38553 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
38554 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
38555 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
38556 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
38557 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
38558 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
38559 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
38560 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
38561 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
38562 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38563 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38564 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38565 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
38566 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
38567 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
38568 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
38569 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38570 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38571 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38572 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38573 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
38574 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
38575 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38576 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
38577 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
38578 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
38579 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
38580 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
38581 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
38582 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
38583 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
38584 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
38585 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38586 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38587 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
38588 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38589 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38590 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38591 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
38592 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
38593 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
38594 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
38595 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38596 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38597 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
38598 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
38599 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
38600 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
38601 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38602 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38603 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
38604 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
38605 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
38606 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38607 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
38608 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38609 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
38610 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
38611 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
38612 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
38613 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
38614 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38615 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
38616 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
38617 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
38618 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
38619 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38620 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
38621 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
38622 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38623 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
38624 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
38625 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38626 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
38627 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38628 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38629 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
38630 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
38631 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
38632 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
38633 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
38634 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
38635 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
38636 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
38637 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
38638 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
38639 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
38640 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
38641 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
38642 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
38643 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
38644 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
38645 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
38646 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
38647 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
38648 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
38649 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
38650 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
38651 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
38652 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
38653 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
38654 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
38655 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
38656 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
38657 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38658 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38659 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38660 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38661 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38662 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38663 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38664 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38665 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
38666 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
38667 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
38668 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
38669 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
38670 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
38671 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
38672 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
38673 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
38674 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
38675 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
38676 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
38677 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38678 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
38679 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
38680 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
38681 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38682 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38683 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
38684 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
38685 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
38686 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38687 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38688 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
38689 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38690 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
38691 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
38692 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38693 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
38694 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
38695 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38696 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38697 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
38698 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
38699 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
38700 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
38701 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
38702 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
38703 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38704 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
38705 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
38706 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38707 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38708 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
38709 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38710 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38711 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
38712 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
38713 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
38714 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
38715 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
38716 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
38717 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
38718 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
38719 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
38720 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
38721 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
38722 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
38723 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
38724 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38725 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38726 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38727 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38728 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38729 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38730 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38731 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38732 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38733 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
38734 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
38735 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
38736 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
38737 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
38738 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
38739 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
38740 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
38741 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38742 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
38743 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
38744 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
38745 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
38746 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38747 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
38748 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
38749 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
38750 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
38751 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
38752 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
38753 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
38754 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
38755 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
38756 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
38757 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
38758 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
38759 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
38760 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
38761 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
38762 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
38763 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
38764 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
38765 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
38766 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
38767 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
38768 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
38769 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
38770 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
38771 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
38772 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
38773 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
38774 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
38775 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38776 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
38777 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38778 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
38779 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38780 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
38781 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
38782 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
38783 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
38784 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
38785 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
38786 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
38787 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38788 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
38789 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
38790 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
38791 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
38792 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
38793 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
38794 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
38795 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
38796 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
38797 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
38798 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38799 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38800 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
38801 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
38802 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
38803 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
38804 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
38805 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38806 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
38807 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
38808 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38809 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38810 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
38811 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38812 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
38813 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38814 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
38815 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38816 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
38817 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
38818 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
38819 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38820 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38821 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38822 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38823 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38824 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38825 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38826 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38827 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38828 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38829 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38830 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38831 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
38832 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38833 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38834 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38835 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38836 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38837 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38838 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38839 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
38840 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38841 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
38842 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38843 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38844 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38845 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38846 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38847 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
38848 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38849 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
38850 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38851 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38852 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
38853 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
38854 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
38855 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
38856 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
38857 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
38858 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
38859 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
38860 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38861 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38862 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
38863 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
38864 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
38865 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
38866 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
38867 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
38868 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
38869 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38870 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38871 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38872 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
38873 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
38874 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
38875 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
38876 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
38877 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
38878 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
38879 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38880 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38881 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
38882 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
38883 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38884 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38885 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
38886 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
38887 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
38888 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
38889 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
38890 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
38891 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
38892 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
38893 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
38894 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
38895 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
38896 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
38897 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
38898 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38899 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
38900 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
38901 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
38902 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
38903 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
38904 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
38905 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
38906 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
38907 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38908 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38909 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
38910 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
38911 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38912 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38913 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
38914 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
38915 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
38916 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
38917 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
38918 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38919 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
38920 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
38921 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
38922 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
38923 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
38924 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
38925 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
38926 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
38927 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
38928 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
38929 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
38930 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
38931 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
38932 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
38933 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
38934 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38935 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
38936 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
38937 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
38938 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38939 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
38940 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
38941 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
38942 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38943 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
38944 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
38945 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
38946 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
38947 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
38948 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
38949 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
38950 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
38951 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
38952 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
38953 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
38954 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
38955 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
38956 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
38957 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
38958 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
38959 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
38960 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
38961 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
38962 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38963 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
38964 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
38965 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
38966 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
38967 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
38968 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
38969 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
38970 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
38971 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
38972 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
38973 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
38974 { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38975 { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL},
38976 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
38977 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
38978 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38979 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
38980 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
38981 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38982 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
38983 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
38984 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
38985 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
38986 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
38987 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
38988 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
38989 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
38990 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
38991 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
38992 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
38993 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
38994 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
38995 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
38996 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
38997 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
38998 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
38999 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
39000 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
39001 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
39002 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
39003 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
39004 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
39005 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
39006 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
39007 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
39008 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
39009 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
39010 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
39011 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
39012 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
39013 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
39014 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
39015 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
39016 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
39017 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
39018 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
39019 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
39020 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
39021 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
39022 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
39023 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
39024 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
39025 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
39026 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
39027 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
39028 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
39029 { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL},
39030 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
39031 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
39032 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39033 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
39034 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
39035 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
39036 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39037 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39038 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
39039 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39040 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
39041 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
39042 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
39043 { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL},
39044 { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL},
39045 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
39046 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
39047 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
39048 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
39049 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
39050 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
39051 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
39052 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
39053 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39054 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39055 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39056 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39057 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39058 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39059 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
39060 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
39061 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
39062 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
39063 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
39064 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
39065 { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL},
39066 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
39067 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
39068 { (char *)"GraphicsContext_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsContext_CreateMeasuringContext, METH_NOARGS, NULL},
39069 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
39070 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39071 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
39072 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39073 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39074 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39075 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39076 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39077 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39078 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
39079 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
39080 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39081 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
39082 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
39083 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
39084 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39085 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39086 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
39087 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39088 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39089 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
39090 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
39091 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
39092 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
39093 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
39094 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
39095 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
39096 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39097 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39098 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39099 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39100 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39101 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39102 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39103 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
39104 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
39105 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
39106 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39107 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39108 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39109 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39110 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
39111 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
39112 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
39113 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
39114 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
39115 { (char *)"GraphicsRenderer_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsRenderer_CreateMeasuringContext, METH_O, NULL},
39116 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
39117 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39118 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
39119 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39120 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39121 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39122 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39123 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39124 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39125 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
39126 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
39127 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
39128 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
39129 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
39130 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
39131 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
39132 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
39133 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
39134 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
39135 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
39136 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
39137 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
39138 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
39139 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
39140 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
39141 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
39142 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
39143 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
39144 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
39145 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
39146 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39147 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39148 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39149 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
39150 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
39151 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
39152 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
39153 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
39154 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39155 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
39156 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
39157 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
39158 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
39159 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
39160 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
39161 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39162 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39163 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39164 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39165 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39166 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
39167 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
39168 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
39169 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
39170 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
39171 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
39172 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39173 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
39174 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
39175 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
39176 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39177 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39178 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39179 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
39180 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39181 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
39182 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
39183 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
39184 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
39185 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
39186 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
39187 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
39188 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
39189 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
39190 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
39191 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
39192 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
39193 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
39194 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
39195 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
39196 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
39197 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
39198 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
39199 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
39200 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
39201 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
39202 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
39203 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39204 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
39205 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39206 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39207 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39208 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
39209 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39210 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
39211 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
39212 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
39213 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
39214 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
39215 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
39216 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
39217 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
39218 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
39219 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
39220 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
39221 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
39222 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
39223 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
39224 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
39225 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
39226 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
39227 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
39228 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
39229 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
39230 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
39231 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
39232 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
39233 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
39234 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
39235 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
39236 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
39237 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
39238 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
39239 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
39240 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
39241 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
39242 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
39243 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
39244 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
39245 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
39246 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39247 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
39248 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
39249 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
39250 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
39251 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
39252 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
39253 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
39254 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
39255 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
39256 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
39257 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
39258 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
39259 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39260 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
39261 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
39262 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
39263 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
39264 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
39265 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
39266 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
39267 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
39268 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
39269 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
39270 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
39271 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
39272 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39273 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39274 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
39275 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
39276 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39277 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39278 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39279 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
39280 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
39281 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39282 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39283 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39284 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39285 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39286 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39287 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39288 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39289 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39290 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39291 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39292 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39293 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39294 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39295 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39296 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39297 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39298 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39299 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39300 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39301 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39302 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39303 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39304 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39305 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39306 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39307 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39308 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39309 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39310 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39311 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39312 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39313 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39314 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39315 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39316 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39317 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39318 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39319 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39320 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
39321 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39322 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39323 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39324 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39325 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39326 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39327 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39328 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39329 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39330 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
39331 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
39332 { NULL, NULL, 0, NULL }
39333 };
39334
39335
39336 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
39337
39338 static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
39339 return (void *)((wxClientDC *) ((wxPaintDC *) x));
39340 }
39341 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
39342 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
39343 }
39344 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
39345 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
39346 }
39347 static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) {
39348 return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
39349 }
39350 static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) {
39351 return (void *)((wxWindowDC *) ((wxMemoryDC *) x));
39352 }
39353 static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
39354 return (void *)((wxWindowDC *) ((wxClientDC *) x));
39355 }
39356 static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
39357 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
39358 }
39359 static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) {
39360 return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39361 }
39362 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
39363 return (void *)((wxLocale *) ((wxPyLocale *) x));
39364 }
39365 static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
39366 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
39367 }
39368 static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
39369 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
39370 }
39371 static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
39372 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39373 }
39374 static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
39375 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
39376 }
39377 static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
39378 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
39379 }
39380 static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
39381 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
39382 }
39383 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
39384 return (void *)((wxGDIObject *) ((wxIcon *) x));
39385 }
39386 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
39387 return (void *)((wxGDIObject *) ((wxPalette *) x));
39388 }
39389 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
39390 return (void *)((wxGDIObject *) ((wxPen *) x));
39391 }
39392 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
39393 return (void *)((wxGDIObject *) ((wxFont *) x));
39394 }
39395 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
39396 return (void *)((wxGDIObject *) ((wxCursor *) x));
39397 }
39398 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
39399 return (void *)((wxGDIObject *) ((wxBitmap *) x));
39400 }
39401 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
39402 return (void *)((wxGDIObject *) ((wxRegion *) x));
39403 }
39404 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
39405 return (void *)((wxGDIObject *) ((wxBrush *) x));
39406 }
39407 static void *_p_wxGCDCTo_p_wxDC(void *x) {
39408 return (void *)((wxDC *) ((wxGCDC *) x));
39409 }
39410 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
39411 return (void *)((wxDC *) ((wxScreenDC *) x));
39412 }
39413 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
39414 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
39415 }
39416 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
39417 return (void *)((wxDC *) ((wxMirrorDC *) x));
39418 }
39419 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
39420 return (void *)((wxDC *) ((wxWindowDC *) x));
39421 }
39422 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
39423 return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x));
39424 }
39425 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
39426 return (void *)((wxDC *) ((wxMetaFileDC *) x));
39427 }
39428 static void *_p_wxClientDCTo_p_wxDC(void *x) {
39429 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
39430 }
39431 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
39432 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39433 }
39434 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
39435 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39436 }
39437 static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
39438 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
39439 }
39440 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
39441 return (void *)((wxDC *) ((wxPostScriptDC *) x));
39442 }
39443 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
39444 return (void *)((wxDC *) ((wxPrinterDC *) x));
39445 }
39446 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
39447 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
39448 }
39449 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
39450 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
39451 }
39452 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
39453 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
39454 }
39455 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
39456 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
39457 }
39458 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
39459 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
39460 }
39461 static void *_p_wxPenTo_p_wxObject(void *x) {
39462 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
39463 }
39464 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
39465 return (void *)((wxObject *) ((wxRegionIterator *) x));
39466 }
39467 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
39468 return (void *)((wxObject *) ((wxSizerItem *) x));
39469 }
39470 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
39471 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
39472 }
39473 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
39474 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
39475 }
39476 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
39477 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
39478 }
39479 static void *_p_wxIconTo_p_wxObject(void *x) {
39480 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
39481 }
39482 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
39483 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
39484 }
39485 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
39486 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
39487 }
39488 static void *_p_wxSizerTo_p_wxObject(void *x) {
39489 return (void *)((wxObject *) ((wxSizer *) x));
39490 }
39491 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
39492 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
39493 }
39494 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
39495 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
39496 }
39497 static void *_p_wxEventTo_p_wxObject(void *x) {
39498 return (void *)((wxObject *) ((wxEvent *) x));
39499 }
39500 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
39501 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
39502 }
39503 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
39504 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
39505 }
39506 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
39507 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
39508 }
39509 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
39510 return (void *)((wxObject *) ((wxPseudoDC *) x));
39511 }
39512 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
39513 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
39514 }
39515 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
39516 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
39517 }
39518 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
39519 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
39520 }
39521 static void *_p_wxDCTo_p_wxObject(void *x) {
39522 return (void *)((wxObject *) ((wxDC *) x));
39523 }
39524 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
39525 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
39526 }
39527 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
39528 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
39529 }
39530 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
39531 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
39532 }
39533 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
39534 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
39535 }
39536 static void *_p_wxControlTo_p_wxObject(void *x) {
39537 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
39538 }
39539 static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
39540 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
39541 }
39542 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
39543 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
39544 }
39545 static void *_p_wxClientDCTo_p_wxObject(void *x) {
39546 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
39547 }
39548 static void *_p_wxFSFileTo_p_wxObject(void *x) {
39549 return (void *)((wxObject *) ((wxFSFile *) x));
39550 }
39551 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
39552 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x));
39553 }
39554 static void *_p_wxRegionTo_p_wxObject(void *x) {
39555 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
39556 }
39557 static void *_p_wxPySizerTo_p_wxObject(void *x) {
39558 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
39559 }
39560 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
39561 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
39562 }
39563 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
39564 return (void *)((wxObject *) ((wxGDIObject *) x));
39565 }
39566 static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
39567 return (void *)((wxObject *) ((wxGraphicsObject *) x));
39568 }
39569 static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
39570 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
39571 }
39572 static void *_p_wxEffectsTo_p_wxObject(void *x) {
39573 return (void *)((wxObject *) ((wxEffects *) x));
39574 }
39575 static void *_p_wxPyEventTo_p_wxObject(void *x) {
39576 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
39577 }
39578 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
39579 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
39580 }
39581 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
39582 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
39583 }
39584 static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
39585 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
39586 }
39587 static void *_p_wxShowEventTo_p_wxObject(void *x) {
39588 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
39589 }
39590 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
39591 return (void *)((wxObject *) ((wxMenuItem *) x));
39592 }
39593 static void *_p_wxDateEventTo_p_wxObject(void *x) {
39594 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
39595 }
39596 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
39597 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
39598 }
39599 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
39600 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
39601 }
39602 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
39603 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
39604 }
39605 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
39606 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
39607 }
39608 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
39609 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
39610 }
39611 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
39612 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
39613 }
39614 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
39615 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
39616 }
39617 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
39618 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
39619 }
39620 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
39621 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
39622 }
39623 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
39624 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
39625 }
39626 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
39627 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
39628 }
39629 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
39630 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
39631 }
39632 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
39633 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
39634 }
39635 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
39636 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
39637 }
39638 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
39639 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
39640 }
39641 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
39642 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
39643 }
39644 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
39645 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
39646 }
39647 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
39648 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
39649 }
39650 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
39651 return (void *)((wxObject *) ((wxImageHandler *) x));
39652 }
39653 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
39654 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
39655 }
39656 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
39657 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
39658 }
39659 static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
39660 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
39661 }
39662 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
39663 return (void *)((wxObject *) ((wxEvtHandler *) x));
39664 }
39665 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
39666 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
39667 }
39668 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
39669 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39670 }
39671 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
39672 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39673 }
39674 static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
39675 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
39676 }
39677 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
39678 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
39679 }
39680 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
39681 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
39682 }
39683 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
39684 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
39685 }
39686 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
39687 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
39688 }
39689 static void *_p_wxImageTo_p_wxObject(void *x) {
39690 return (void *)((wxObject *) ((wxImage *) x));
39691 }
39692 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
39693 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
39694 }
39695 static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
39696 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
39697 }
39698 static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
39699 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
39700 }
39701 static void *_p_wxPaletteTo_p_wxObject(void *x) {
39702 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
39703 }
39704 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
39705 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
39706 }
39707 static void *_p_wxImageListTo_p_wxObject(void *x) {
39708 return (void *)((wxObject *) ((wxImageList *) x));
39709 }
39710 static void *_p_wxGCDCTo_p_wxObject(void *x) {
39711 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
39712 }
39713 static void *_p_wxCursorTo_p_wxObject(void *x) {
39714 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
39715 }
39716 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
39717 return (void *)((wxObject *) ((wxEncodingConverter *) x));
39718 }
39719 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
39720 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
39721 }
39722 static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
39723 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
39724 }
39725 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
39726 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
39727 }
39728 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
39729 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
39730 }
39731 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
39732 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
39733 }
39734 static void *_p_wxWindowTo_p_wxObject(void *x) {
39735 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
39736 }
39737 static void *_p_wxMenuTo_p_wxObject(void *x) {
39738 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
39739 }
39740 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
39741 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
39742 }
39743 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
39744 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
39745 }
39746 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
39747 return (void *)((wxObject *) ((wxFileSystem *) x));
39748 }
39749 static void *_p_wxBitmapTo_p_wxObject(void *x) {
39750 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
39751 }
39752 static void *_p_wxMaskTo_p_wxObject(void *x) {
39753 return (void *)((wxObject *) ((wxMask *) x));
39754 }
39755 static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
39756 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39757 }
39758 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
39759 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
39760 }
39761 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
39762 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
39763 }
39764 static void *_p_wxPyAppTo_p_wxObject(void *x) {
39765 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
39766 }
39767 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
39768 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
39769 }
39770 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
39771 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
39772 }
39773 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
39774 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
39775 }
39776 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
39777 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
39778 }
39779 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
39780 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
39781 }
39782 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
39783 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
39784 }
39785 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
39786 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
39787 }
39788 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
39789 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
39790 }
39791 static void *_p_wxFontTo_p_wxObject(void *x) {
39792 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
39793 }
39794 static void *_p_wxBrushTo_p_wxObject(void *x) {
39795 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
39796 }
39797 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
39798 return (void *)((wxObject *) ((wxMetaFile *) x));
39799 }
39800 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
39801 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
39802 }
39803 static void *_p_wxColourTo_p_wxObject(void *x) {
39804 return (void *)((wxObject *) ((wxColour *) x));
39805 }
39806 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
39807 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
39808 }
39809 static void *_p_wxValidatorTo_p_wxObject(void *x) {
39810 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
39811 }
39812 static void *_p_wxControlTo_p_wxWindow(void *x) {
39813 return (void *)((wxWindow *) ((wxControl *) x));
39814 }
39815 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
39816 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
39817 }
39818 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
39819 return (void *)((wxWindow *) ((wxMenuBar *) x));
39820 }
39821 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
39822 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
39823 }
39824 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
39825 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
39826 }
39827 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
39828 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
39829 static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
39830 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};
39831 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
39832 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
39833 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
39834 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
39835 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
39836 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
39837 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
39838 static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
39839 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
39840 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
39841 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
39842 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
39843 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
39844 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
39845 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
39846 static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
39847 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
39848 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
39849 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
39850 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
39851 static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
39852 static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
39853 static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
39854 static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
39855 static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
39856 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
39857 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
39858 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
39859 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
39860 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
39861 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
39862 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
39863 static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
39864 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
39865 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
39866 static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
39867 static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
39868 static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
39869 static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
39870 static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
39871 static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
39872 static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
39873 static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
39874 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
39875 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
39876 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
39877 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
39878 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
39879 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
39880 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
39881 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
39882 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
39883 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
39884 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
39885 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
39886 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
39887 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
39888 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
39889 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
39890 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
39891 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
39892 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
39893 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
39894 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
39895 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
39896 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
39897 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
39898 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
39899 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
39900 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
39901 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
39902 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
39903 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
39904 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
39905 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
39906 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
39907 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
39908 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
39909 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
39910 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
39911 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
39912 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
39913 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
39914 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
39915 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
39916 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
39917 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
39918 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
39919 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
39920 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
39921 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
39922 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
39923 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
39924 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
39925 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
39926 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
39927 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
39928 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
39929 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
39930 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
39931 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
39932 static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
39933 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
39934 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
39935 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
39936 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
39937 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
39938 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
39939 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
39940 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
39941 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
39942 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
39943 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
39944 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
39945 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
39946 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
39947 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
39948 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
39949 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
39950 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
39951 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
39952 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
39953 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
39954 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
39955 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
39956 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
39957 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
39958 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
39959 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
39960 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
39961 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
39962 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
39963 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
39964 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
39965 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
39966 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
39967 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
39968 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
39969 static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
39970 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
39971 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
39972 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
39973 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
39974 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
39975 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
39976 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
39977 static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
39978 static swig_type_info _swigt__p_wxPoint2DDouble = {"_p_wxPoint2DDouble", "wxPoint2DDouble *", 0, 0, (void*)0, 0};
39979 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
39980 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
39981 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
39982 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
39983 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
39984 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
39985 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
39986 static swig_type_info _swigt__p_wxRect2DDouble = {"_p_wxRect2DDouble", "wxRect2DDouble *", 0, 0, (void*)0, 0};
39987 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
39988 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
39989 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
39990 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
39991 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
39992 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
39993 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
39994 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
39995 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
39996 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
39997 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
39998
39999 static swig_type_info *swig_type_initial[] = {
40000 &_swigt__p_buffer,
40001 &_swigt__p_char,
40002 &_swigt__p_double,
40003 &_swigt__p_form_ops_t,
40004 &_swigt__p_int,
40005 &_swigt__p_unsigned_char,
40006 &_swigt__p_unsigned_int,
40007 &_swigt__p_unsigned_long,
40008 &_swigt__p_void,
40009 &_swigt__p_wxANIHandler,
40010 &_swigt__p_wxAcceleratorTable,
40011 &_swigt__p_wxActivateEvent,
40012 &_swigt__p_wxAlphaPixelData,
40013 &_swigt__p_wxAlphaPixelData_Accessor,
40014 &_swigt__p_wxAutoBufferedPaintDC,
40015 &_swigt__p_wxBMPHandler,
40016 &_swigt__p_wxBitmap,
40017 &_swigt__p_wxBoxSizer,
40018 &_swigt__p_wxBrush,
40019 &_swigt__p_wxBrushList,
40020 &_swigt__p_wxBufferedDC,
40021 &_swigt__p_wxBufferedPaintDC,
40022 &_swigt__p_wxCURHandler,
40023 &_swigt__p_wxChar,
40024 &_swigt__p_wxChildFocusEvent,
40025 &_swigt__p_wxClientDC,
40026 &_swigt__p_wxClipboardTextEvent,
40027 &_swigt__p_wxCloseEvent,
40028 &_swigt__p_wxColor,
40029 &_swigt__p_wxColour,
40030 &_swigt__p_wxColourDatabase,
40031 &_swigt__p_wxCommandEvent,
40032 &_swigt__p_wxContextMenuEvent,
40033 &_swigt__p_wxControl,
40034 &_swigt__p_wxControlWithItems,
40035 &_swigt__p_wxCursor,
40036 &_swigt__p_wxDC,
40037 &_swigt__p_wxDCBrushChanger,
40038 &_swigt__p_wxDCClipper,
40039 &_swigt__p_wxDCOverlay,
40040 &_swigt__p_wxDCPenChanger,
40041 &_swigt__p_wxDCTextColourChanger,
40042 &_swigt__p_wxDash,
40043 &_swigt__p_wxDateEvent,
40044 &_swigt__p_wxDisplayChangedEvent,
40045 &_swigt__p_wxDropFilesEvent,
40046 &_swigt__p_wxDuplexMode,
40047 &_swigt__p_wxEffects,
40048 &_swigt__p_wxEncodingConverter,
40049 &_swigt__p_wxEraseEvent,
40050 &_swigt__p_wxEvent,
40051 &_swigt__p_wxEvtHandler,
40052 &_swigt__p_wxFSFile,
40053 &_swigt__p_wxFileSystem,
40054 &_swigt__p_wxFlexGridSizer,
40055 &_swigt__p_wxFocusEvent,
40056 &_swigt__p_wxFont,
40057 &_swigt__p_wxFontList,
40058 &_swigt__p_wxFontMapper,
40059 &_swigt__p_wxGBSizerItem,
40060 &_swigt__p_wxGCDC,
40061 &_swigt__p_wxGDIObjListBase,
40062 &_swigt__p_wxGDIObject,
40063 &_swigt__p_wxGIFHandler,
40064 &_swigt__p_wxGraphicsBrush,
40065 &_swigt__p_wxGraphicsContext,
40066 &_swigt__p_wxGraphicsFont,
40067 &_swigt__p_wxGraphicsMatrix,
40068 &_swigt__p_wxGraphicsObject,
40069 &_swigt__p_wxGraphicsPath,
40070 &_swigt__p_wxGraphicsPen,
40071 &_swigt__p_wxGraphicsRenderer,
40072 &_swigt__p_wxGridBagSizer,
40073 &_swigt__p_wxGridSizer,
40074 &_swigt__p_wxHeaderButtonParams,
40075 &_swigt__p_wxICOHandler,
40076 &_swigt__p_wxIcon,
40077 &_swigt__p_wxIconBundle,
40078 &_swigt__p_wxIconLocation,
40079 &_swigt__p_wxIconizeEvent,
40080 &_swigt__p_wxIdleEvent,
40081 &_swigt__p_wxImage,
40082 &_swigt__p_wxImageHandler,
40083 &_swigt__p_wxImageList,
40084 &_swigt__p_wxIndividualLayoutConstraint,
40085 &_swigt__p_wxInitDialogEvent,
40086 &_swigt__p_wxJPEGHandler,
40087 &_swigt__p_wxKeyEvent,
40088 &_swigt__p_wxLanguageInfo,
40089 &_swigt__p_wxLayoutConstraints,
40090 &_swigt__p_wxLocale,
40091 &_swigt__p_wxMask,
40092 &_swigt__p_wxMaximizeEvent,
40093 &_swigt__p_wxMemoryDC,
40094 &_swigt__p_wxMenu,
40095 &_swigt__p_wxMenuBar,
40096 &_swigt__p_wxMenuEvent,
40097 &_swigt__p_wxMenuItem,
40098 &_swigt__p_wxMetaFile,
40099 &_swigt__p_wxMetaFileDC,
40100 &_swigt__p_wxMirrorDC,
40101 &_swigt__p_wxMouseCaptureChangedEvent,
40102 &_swigt__p_wxMouseCaptureLostEvent,
40103 &_swigt__p_wxMouseEvent,
40104 &_swigt__p_wxMoveEvent,
40105 &_swigt__p_wxNativeEncodingInfo,
40106 &_swigt__p_wxNativeFontInfo,
40107 &_swigt__p_wxNativePixelData,
40108 &_swigt__p_wxNativePixelData_Accessor,
40109 &_swigt__p_wxNavigationKeyEvent,
40110 &_swigt__p_wxNcPaintEvent,
40111 &_swigt__p_wxNotifyEvent,
40112 &_swigt__p_wxObject,
40113 &_swigt__p_wxOverlay,
40114 &_swigt__p_wxPCXHandler,
40115 &_swigt__p_wxPNGHandler,
40116 &_swigt__p_wxPNMHandler,
40117 &_swigt__p_wxPaintDC,
40118 &_swigt__p_wxPaintEvent,
40119 &_swigt__p_wxPalette,
40120 &_swigt__p_wxPaletteChangedEvent,
40121 &_swigt__p_wxPaperSize,
40122 &_swigt__p_wxPen,
40123 &_swigt__p_wxPenList,
40124 &_swigt__p_wxPixelDataBase,
40125 &_swigt__p_wxPoint,
40126 &_swigt__p_wxPoint2D,
40127 &_swigt__p_wxPoint2DDouble,
40128 &_swigt__p_wxPostScriptDC,
40129 &_swigt__p_wxPrintData,
40130 &_swigt__p_wxPrinterDC,
40131 &_swigt__p_wxPseudoDC,
40132 &_swigt__p_wxPyApp,
40133 &_swigt__p_wxPyCommandEvent,
40134 &_swigt__p_wxPyEvent,
40135 &_swigt__p_wxPyFontEnumerator,
40136 &_swigt__p_wxPyImageHandler,
40137 &_swigt__p_wxPyLocale,
40138 &_swigt__p_wxPySizer,
40139 &_swigt__p_wxPyValidator,
40140 &_swigt__p_wxQueryNewPaletteEvent,
40141 &_swigt__p_wxRect,
40142 &_swigt__p_wxRect2DDouble,
40143 &_swigt__p_wxRegion,
40144 &_swigt__p_wxRegionIterator,
40145 &_swigt__p_wxRendererNative,
40146 &_swigt__p_wxRendererVersion,
40147 &_swigt__p_wxScreenDC,
40148 &_swigt__p_wxScrollEvent,
40149 &_swigt__p_wxScrollWinEvent,
40150 &_swigt__p_wxSetCursorEvent,
40151 &_swigt__p_wxShowEvent,
40152 &_swigt__p_wxSize,
40153 &_swigt__p_wxSizeEvent,
40154 &_swigt__p_wxSizer,
40155 &_swigt__p_wxSizerItem,
40156 &_swigt__p_wxSplitterRenderParams,
40157 &_swigt__p_wxStaticBoxSizer,
40158 &_swigt__p_wxStdDialogButtonSizer,
40159 &_swigt__p_wxStockGDI,
40160 &_swigt__p_wxString,
40161 &_swigt__p_wxSysColourChangedEvent,
40162 &_swigt__p_wxTGAHandler,
40163 &_swigt__p_wxTIFFHandler,
40164 &_swigt__p_wxUpdateUIEvent,
40165 &_swigt__p_wxValidator,
40166 &_swigt__p_wxWindow,
40167 &_swigt__p_wxWindowCreateEvent,
40168 &_swigt__p_wxWindowDC,
40169 &_swigt__p_wxWindowDestroyEvent,
40170 &_swigt__p_wxXPMHandler,
40171 };
40172
40173 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
40174 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
40175 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
40176 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
40177 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
40178 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
40179 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
40180 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
40181 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
40182 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
40183 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
40184 static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40185 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
40186 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
40187 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
40188 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}};
40189 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40190 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
40191 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}};
40192 static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
40193 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
40194 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
40195 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
40196 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}};
40197 static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
40198 static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
40199 static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
40200 static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
40201 static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
40202 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
40203 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
40204 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
40205 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
40206 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
40207 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
40208 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
40209 static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
40210 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}};
40211 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}};
40212 static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
40213 static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
40214 static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
40215 static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
40216 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}};
40217 static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
40218 static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
40219 static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
40220 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
40221 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
40222 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
40223 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
40224 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
40225 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
40226 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
40227 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}};
40228 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
40229 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}};
40230 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
40231 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
40232 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
40233 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
40234 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
40235 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
40236 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
40237 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
40238 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
40239 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
40240 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
40241 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
40242 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40243 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40244 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
40245 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
40246 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
40247 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
40248 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
40249 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40250 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40251 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
40252 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
40253 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40254 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40255 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40256 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40257 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40258 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40259 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
40260 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
40261 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
40262 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
40263 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
40264 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
40265 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
40266 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
40267 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
40268 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
40269 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
40270 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
40271 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40272 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40273 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40274 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
40275 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
40276 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
40277 static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
40278 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
40279 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
40280 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40281 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40282 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
40283 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
40284 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
40285 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
40286 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
40287 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
40288 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
40289 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
40290 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
40291 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
40292 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
40293 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
40294 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
40295 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
40296 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40297 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40298 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
40299 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
40300 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40301 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40302 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
40303 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
40304 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
40305 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
40306 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40307 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40308 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
40309 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40310 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40311 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
40312 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
40313 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
40314 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}};
40315 static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
40316 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40317 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
40318 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
40319 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
40320 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
40321 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}};
40322 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
40323 static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
40324 static swig_cast_info _swigc__p_wxPoint2DDouble[] = { {&_swigt__p_wxPoint2DDouble, 0, 0, 0},{0, 0, 0, 0}};
40325 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
40326 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
40327 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
40328 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
40329 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
40330 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
40331 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
40332 static swig_cast_info _swigc__p_wxRect2DDouble[] = { {&_swigt__p_wxRect2DDouble, 0, 0, 0},{0, 0, 0, 0}};
40333 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
40334 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
40335 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
40336 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
40337 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
40338 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
40339 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
40340 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
40341 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
40342 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}};
40343 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}};
40344
40345 static swig_cast_info *swig_cast_initial[] = {
40346 _swigc__p_buffer,
40347 _swigc__p_char,
40348 _swigc__p_double,
40349 _swigc__p_form_ops_t,
40350 _swigc__p_int,
40351 _swigc__p_unsigned_char,
40352 _swigc__p_unsigned_int,
40353 _swigc__p_unsigned_long,
40354 _swigc__p_void,
40355 _swigc__p_wxANIHandler,
40356 _swigc__p_wxAcceleratorTable,
40357 _swigc__p_wxActivateEvent,
40358 _swigc__p_wxAlphaPixelData,
40359 _swigc__p_wxAlphaPixelData_Accessor,
40360 _swigc__p_wxAutoBufferedPaintDC,
40361 _swigc__p_wxBMPHandler,
40362 _swigc__p_wxBitmap,
40363 _swigc__p_wxBoxSizer,
40364 _swigc__p_wxBrush,
40365 _swigc__p_wxBrushList,
40366 _swigc__p_wxBufferedDC,
40367 _swigc__p_wxBufferedPaintDC,
40368 _swigc__p_wxCURHandler,
40369 _swigc__p_wxChar,
40370 _swigc__p_wxChildFocusEvent,
40371 _swigc__p_wxClientDC,
40372 _swigc__p_wxClipboardTextEvent,
40373 _swigc__p_wxCloseEvent,
40374 _swigc__p_wxColor,
40375 _swigc__p_wxColour,
40376 _swigc__p_wxColourDatabase,
40377 _swigc__p_wxCommandEvent,
40378 _swigc__p_wxContextMenuEvent,
40379 _swigc__p_wxControl,
40380 _swigc__p_wxControlWithItems,
40381 _swigc__p_wxCursor,
40382 _swigc__p_wxDC,
40383 _swigc__p_wxDCBrushChanger,
40384 _swigc__p_wxDCClipper,
40385 _swigc__p_wxDCOverlay,
40386 _swigc__p_wxDCPenChanger,
40387 _swigc__p_wxDCTextColourChanger,
40388 _swigc__p_wxDash,
40389 _swigc__p_wxDateEvent,
40390 _swigc__p_wxDisplayChangedEvent,
40391 _swigc__p_wxDropFilesEvent,
40392 _swigc__p_wxDuplexMode,
40393 _swigc__p_wxEffects,
40394 _swigc__p_wxEncodingConverter,
40395 _swigc__p_wxEraseEvent,
40396 _swigc__p_wxEvent,
40397 _swigc__p_wxEvtHandler,
40398 _swigc__p_wxFSFile,
40399 _swigc__p_wxFileSystem,
40400 _swigc__p_wxFlexGridSizer,
40401 _swigc__p_wxFocusEvent,
40402 _swigc__p_wxFont,
40403 _swigc__p_wxFontList,
40404 _swigc__p_wxFontMapper,
40405 _swigc__p_wxGBSizerItem,
40406 _swigc__p_wxGCDC,
40407 _swigc__p_wxGDIObjListBase,
40408 _swigc__p_wxGDIObject,
40409 _swigc__p_wxGIFHandler,
40410 _swigc__p_wxGraphicsBrush,
40411 _swigc__p_wxGraphicsContext,
40412 _swigc__p_wxGraphicsFont,
40413 _swigc__p_wxGraphicsMatrix,
40414 _swigc__p_wxGraphicsObject,
40415 _swigc__p_wxGraphicsPath,
40416 _swigc__p_wxGraphicsPen,
40417 _swigc__p_wxGraphicsRenderer,
40418 _swigc__p_wxGridBagSizer,
40419 _swigc__p_wxGridSizer,
40420 _swigc__p_wxHeaderButtonParams,
40421 _swigc__p_wxICOHandler,
40422 _swigc__p_wxIcon,
40423 _swigc__p_wxIconBundle,
40424 _swigc__p_wxIconLocation,
40425 _swigc__p_wxIconizeEvent,
40426 _swigc__p_wxIdleEvent,
40427 _swigc__p_wxImage,
40428 _swigc__p_wxImageHandler,
40429 _swigc__p_wxImageList,
40430 _swigc__p_wxIndividualLayoutConstraint,
40431 _swigc__p_wxInitDialogEvent,
40432 _swigc__p_wxJPEGHandler,
40433 _swigc__p_wxKeyEvent,
40434 _swigc__p_wxLanguageInfo,
40435 _swigc__p_wxLayoutConstraints,
40436 _swigc__p_wxLocale,
40437 _swigc__p_wxMask,
40438 _swigc__p_wxMaximizeEvent,
40439 _swigc__p_wxMemoryDC,
40440 _swigc__p_wxMenu,
40441 _swigc__p_wxMenuBar,
40442 _swigc__p_wxMenuEvent,
40443 _swigc__p_wxMenuItem,
40444 _swigc__p_wxMetaFile,
40445 _swigc__p_wxMetaFileDC,
40446 _swigc__p_wxMirrorDC,
40447 _swigc__p_wxMouseCaptureChangedEvent,
40448 _swigc__p_wxMouseCaptureLostEvent,
40449 _swigc__p_wxMouseEvent,
40450 _swigc__p_wxMoveEvent,
40451 _swigc__p_wxNativeEncodingInfo,
40452 _swigc__p_wxNativeFontInfo,
40453 _swigc__p_wxNativePixelData,
40454 _swigc__p_wxNativePixelData_Accessor,
40455 _swigc__p_wxNavigationKeyEvent,
40456 _swigc__p_wxNcPaintEvent,
40457 _swigc__p_wxNotifyEvent,
40458 _swigc__p_wxObject,
40459 _swigc__p_wxOverlay,
40460 _swigc__p_wxPCXHandler,
40461 _swigc__p_wxPNGHandler,
40462 _swigc__p_wxPNMHandler,
40463 _swigc__p_wxPaintDC,
40464 _swigc__p_wxPaintEvent,
40465 _swigc__p_wxPalette,
40466 _swigc__p_wxPaletteChangedEvent,
40467 _swigc__p_wxPaperSize,
40468 _swigc__p_wxPen,
40469 _swigc__p_wxPenList,
40470 _swigc__p_wxPixelDataBase,
40471 _swigc__p_wxPoint,
40472 _swigc__p_wxPoint2D,
40473 _swigc__p_wxPoint2DDouble,
40474 _swigc__p_wxPostScriptDC,
40475 _swigc__p_wxPrintData,
40476 _swigc__p_wxPrinterDC,
40477 _swigc__p_wxPseudoDC,
40478 _swigc__p_wxPyApp,
40479 _swigc__p_wxPyCommandEvent,
40480 _swigc__p_wxPyEvent,
40481 _swigc__p_wxPyFontEnumerator,
40482 _swigc__p_wxPyImageHandler,
40483 _swigc__p_wxPyLocale,
40484 _swigc__p_wxPySizer,
40485 _swigc__p_wxPyValidator,
40486 _swigc__p_wxQueryNewPaletteEvent,
40487 _swigc__p_wxRect,
40488 _swigc__p_wxRect2DDouble,
40489 _swigc__p_wxRegion,
40490 _swigc__p_wxRegionIterator,
40491 _swigc__p_wxRendererNative,
40492 _swigc__p_wxRendererVersion,
40493 _swigc__p_wxScreenDC,
40494 _swigc__p_wxScrollEvent,
40495 _swigc__p_wxScrollWinEvent,
40496 _swigc__p_wxSetCursorEvent,
40497 _swigc__p_wxShowEvent,
40498 _swigc__p_wxSize,
40499 _swigc__p_wxSizeEvent,
40500 _swigc__p_wxSizer,
40501 _swigc__p_wxSizerItem,
40502 _swigc__p_wxSplitterRenderParams,
40503 _swigc__p_wxStaticBoxSizer,
40504 _swigc__p_wxStdDialogButtonSizer,
40505 _swigc__p_wxStockGDI,
40506 _swigc__p_wxString,
40507 _swigc__p_wxSysColourChangedEvent,
40508 _swigc__p_wxTGAHandler,
40509 _swigc__p_wxTIFFHandler,
40510 _swigc__p_wxUpdateUIEvent,
40511 _swigc__p_wxValidator,
40512 _swigc__p_wxWindow,
40513 _swigc__p_wxWindowCreateEvent,
40514 _swigc__p_wxWindowDC,
40515 _swigc__p_wxWindowDestroyEvent,
40516 _swigc__p_wxXPMHandler,
40517 };
40518
40519
40520 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
40521
40522 static swig_const_info swig_const_table[] = {
40523 {0, 0, 0, 0.0, 0, 0}};
40524
40525 #ifdef __cplusplus
40526 }
40527 #endif
40528 /* -----------------------------------------------------------------------------
40529 * Type initialization:
40530 * This problem is tough by the requirement that no dynamic
40531 * memory is used. Also, since swig_type_info structures store pointers to
40532 * swig_cast_info structures and swig_cast_info structures store pointers back
40533 * to swig_type_info structures, we need some lookup code at initialization.
40534 * The idea is that swig generates all the structures that are needed.
40535 * The runtime then collects these partially filled structures.
40536 * The SWIG_InitializeModule function takes these initial arrays out of
40537 * swig_module, and does all the lookup, filling in the swig_module.types
40538 * array with the correct data and linking the correct swig_cast_info
40539 * structures together.
40540 *
40541 * The generated swig_type_info structures are assigned staticly to an initial
40542 * array. We just loop though that array, and handle each type individually.
40543 * First we lookup if this type has been already loaded, and if so, use the
40544 * loaded structure instead of the generated one. Then we have to fill in the
40545 * cast linked list. The cast data is initially stored in something like a
40546 * two-dimensional array. Each row corresponds to a type (there are the same
40547 * number of rows as there are in the swig_type_initial array). Each entry in
40548 * a column is one of the swig_cast_info structures for that type.
40549 * The cast_initial array is actually an array of arrays, because each row has
40550 * a variable number of columns. So to actually build the cast linked list,
40551 * we find the array of casts associated with the type, and loop through it
40552 * adding the casts to the list. The one last trick we need to do is making
40553 * sure the type pointer in the swig_cast_info struct is correct.
40554 *
40555 * First off, we lookup the cast->type name to see if it is already loaded.
40556 * There are three cases to handle:
40557 * 1) If the cast->type has already been loaded AND the type we are adding
40558 * casting info to has not been loaded (it is in this module), THEN we
40559 * replace the cast->type pointer with the type pointer that has already
40560 * been loaded.
40561 * 2) If BOTH types (the one we are adding casting info to, and the
40562 * cast->type) are loaded, THEN the cast info has already been loaded by
40563 * the previous module so we just ignore it.
40564 * 3) Finally, if cast->type has not already been loaded, then we add that
40565 * swig_cast_info to the linked list (because the cast->type) pointer will
40566 * be correct.
40567 * ----------------------------------------------------------------------------- */
40568
40569 #ifdef __cplusplus
40570 extern "C" {
40571 #if 0
40572 } /* c-mode */
40573 #endif
40574 #endif
40575
40576 #if 0
40577 #define SWIGRUNTIME_DEBUG
40578 #endif
40579
40580 SWIGRUNTIME void
40581 SWIG_InitializeModule(void *clientdata) {
40582 size_t i;
40583 swig_module_info *module_head;
40584 static int init_run = 0;
40585
40586 clientdata = clientdata;
40587
40588 if (init_run) return;
40589 init_run = 1;
40590
40591 /* Initialize the swig_module */
40592 swig_module.type_initial = swig_type_initial;
40593 swig_module.cast_initial = swig_cast_initial;
40594
40595 /* Try and load any already created modules */
40596 module_head = SWIG_GetModule(clientdata);
40597 if (module_head) {
40598 swig_module.next = module_head->next;
40599 module_head->next = &swig_module;
40600 } else {
40601 /* This is the first module loaded */
40602 swig_module.next = &swig_module;
40603 SWIG_SetModule(clientdata, &swig_module);
40604 }
40605
40606 /* Now work on filling in swig_module.types */
40607 #ifdef SWIGRUNTIME_DEBUG
40608 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
40609 #endif
40610 for (i = 0; i < swig_module.size; ++i) {
40611 swig_type_info *type = 0;
40612 swig_type_info *ret;
40613 swig_cast_info *cast;
40614
40615 #ifdef SWIGRUNTIME_DEBUG
40616 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40617 #endif
40618
40619 /* if there is another module already loaded */
40620 if (swig_module.next != &swig_module) {
40621 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
40622 }
40623 if (type) {
40624 /* Overwrite clientdata field */
40625 #ifdef SWIGRUNTIME_DEBUG
40626 printf("SWIG_InitializeModule: found type %s\n", type->name);
40627 #endif
40628 if (swig_module.type_initial[i]->clientdata) {
40629 type->clientdata = swig_module.type_initial[i]->clientdata;
40630 #ifdef SWIGRUNTIME_DEBUG
40631 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
40632 #endif
40633 }
40634 } else {
40635 type = swig_module.type_initial[i];
40636 }
40637
40638 /* Insert casting types */
40639 cast = swig_module.cast_initial[i];
40640 while (cast->type) {
40641 /* Don't need to add information already in the list */
40642 ret = 0;
40643 #ifdef SWIGRUNTIME_DEBUG
40644 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
40645 #endif
40646 if (swig_module.next != &swig_module) {
40647 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
40648 #ifdef SWIGRUNTIME_DEBUG
40649 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
40650 #endif
40651 }
40652 if (ret) {
40653 if (type == swig_module.type_initial[i]) {
40654 #ifdef SWIGRUNTIME_DEBUG
40655 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
40656 #endif
40657 cast->type = ret;
40658 ret = 0;
40659 } else {
40660 /* Check for casting already in the list */
40661 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
40662 #ifdef SWIGRUNTIME_DEBUG
40663 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
40664 #endif
40665 if (!ocast) ret = 0;
40666 }
40667 }
40668
40669 if (!ret) {
40670 #ifdef SWIGRUNTIME_DEBUG
40671 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
40672 #endif
40673 if (type->cast) {
40674 type->cast->prev = cast;
40675 cast->next = type->cast;
40676 }
40677 type->cast = cast;
40678 }
40679 cast++;
40680 }
40681 /* Set entry in modules->types array equal to the type */
40682 swig_module.types[i] = type;
40683 }
40684 swig_module.types[i] = 0;
40685
40686 #ifdef SWIGRUNTIME_DEBUG
40687 printf("**** SWIG_InitializeModule: Cast List ******\n");
40688 for (i = 0; i < swig_module.size; ++i) {
40689 int j = 0;
40690 swig_cast_info *cast = swig_module.cast_initial[i];
40691 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40692 while (cast->type) {
40693 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
40694 cast++;
40695 ++j;
40696 }
40697 printf("---- Total casts: %d\n",j);
40698 }
40699 printf("**** SWIG_InitializeModule: Cast List ******\n");
40700 #endif
40701 }
40702
40703 /* This function will propagate the clientdata field of type to
40704 * any new swig_type_info structures that have been added into the list
40705 * of equivalent types. It is like calling
40706 * SWIG_TypeClientData(type, clientdata) a second time.
40707 */
40708 SWIGRUNTIME void
40709 SWIG_PropagateClientData(void) {
40710 size_t i;
40711 swig_cast_info *equiv;
40712 static int init_run = 0;
40713
40714 if (init_run) return;
40715 init_run = 1;
40716
40717 for (i = 0; i < swig_module.size; i++) {
40718 if (swig_module.types[i]->clientdata) {
40719 equiv = swig_module.types[i]->cast;
40720 while (equiv) {
40721 if (!equiv->converter) {
40722 if (equiv->type && !equiv->type->clientdata)
40723 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
40724 }
40725 equiv = equiv->next;
40726 }
40727 }
40728 }
40729 }
40730
40731 #ifdef __cplusplus
40732 #if 0
40733 {
40734 /* c-mode */
40735 #endif
40736 }
40737 #endif
40738
40739
40740
40741 #ifdef __cplusplus
40742 extern "C" {
40743 #endif
40744
40745 /* Python-specific SWIG API */
40746 #define SWIG_newvarlink() SWIG_Python_newvarlink()
40747 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
40748 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
40749
40750 /* -----------------------------------------------------------------------------
40751 * global variable support code.
40752 * ----------------------------------------------------------------------------- */
40753
40754 typedef struct swig_globalvar {
40755 char *name; /* Name of global variable */
40756 PyObject *(*get_attr)(void); /* Return the current value */
40757 int (*set_attr)(PyObject *); /* Set the value */
40758 struct swig_globalvar *next;
40759 } swig_globalvar;
40760
40761 typedef struct swig_varlinkobject {
40762 PyObject_HEAD
40763 swig_globalvar *vars;
40764 } swig_varlinkobject;
40765
40766 SWIGINTERN PyObject *
40767 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
40768 return PyString_FromString("<Swig global variables>");
40769 }
40770
40771 SWIGINTERN PyObject *
40772 swig_varlink_str(swig_varlinkobject *v) {
40773 PyObject *str = PyString_FromString("(");
40774 swig_globalvar *var;
40775 for (var = v->vars; var; var=var->next) {
40776 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
40777 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
40778 }
40779 PyString_ConcatAndDel(&str,PyString_FromString(")"));
40780 return str;
40781 }
40782
40783 SWIGINTERN int
40784 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
40785 PyObject *str = swig_varlink_str(v);
40786 fprintf(fp,"Swig global variables ");
40787 fprintf(fp,"%s\n", PyString_AsString(str));
40788 Py_DECREF(str);
40789 return 0;
40790 }
40791
40792 SWIGINTERN void
40793 swig_varlink_dealloc(swig_varlinkobject *v) {
40794 swig_globalvar *var = v->vars;
40795 while (var) {
40796 swig_globalvar *n = var->next;
40797 free(var->name);
40798 free(var);
40799 var = n;
40800 }
40801 }
40802
40803 SWIGINTERN PyObject *
40804 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
40805 PyObject *res = NULL;
40806 swig_globalvar *var = v->vars;
40807 while (var) {
40808 if (strcmp(var->name,n) == 0) {
40809 res = (*var->get_attr)();
40810 break;
40811 }
40812 var = var->next;
40813 }
40814 if (res == NULL && !PyErr_Occurred()) {
40815 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
40816 }
40817 return res;
40818 }
40819
40820 SWIGINTERN int
40821 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
40822 int res = 1;
40823 swig_globalvar *var = v->vars;
40824 while (var) {
40825 if (strcmp(var->name,n) == 0) {
40826 res = (*var->set_attr)(p);
40827 break;
40828 }
40829 var = var->next;
40830 }
40831 if (res == 1 && !PyErr_Occurred()) {
40832 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
40833 }
40834 return res;
40835 }
40836
40837 SWIGINTERN PyTypeObject*
40838 swig_varlink_type(void) {
40839 static char varlink__doc__[] = "Swig var link object";
40840 static PyTypeObject varlink_type;
40841 static int type_init = 0;
40842 if (!type_init) {
40843 const PyTypeObject tmp
40844 = {
40845 PyObject_HEAD_INIT(NULL)
40846 0, /* Number of items in variable part (ob_size) */
40847 (char *)"swigvarlink", /* Type name (tp_name) */
40848 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
40849 0, /* Itemsize (tp_itemsize) */
40850 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
40851 (printfunc) swig_varlink_print, /* Print (tp_print) */
40852 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
40853 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
40854 0, /* tp_compare */
40855 (reprfunc) swig_varlink_repr, /* tp_repr */
40856 0, /* tp_as_number */
40857 0, /* tp_as_sequence */
40858 0, /* tp_as_mapping */
40859 0, /* tp_hash */
40860 0, /* tp_call */
40861 (reprfunc)swig_varlink_str, /* tp_str */
40862 0, /* tp_getattro */
40863 0, /* tp_setattro */
40864 0, /* tp_as_buffer */
40865 0, /* tp_flags */
40866 varlink__doc__, /* tp_doc */
40867 0, /* tp_traverse */
40868 0, /* tp_clear */
40869 0, /* tp_richcompare */
40870 0, /* tp_weaklistoffset */
40871 #if PY_VERSION_HEX >= 0x02020000
40872 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
40873 #endif
40874 #if PY_VERSION_HEX >= 0x02030000
40875 0, /* tp_del */
40876 #endif
40877 #ifdef COUNT_ALLOCS
40878 0,0,0,0 /* tp_alloc -> tp_next */
40879 #endif
40880 };
40881 varlink_type = tmp;
40882 varlink_type.ob_type = &PyType_Type;
40883 type_init = 1;
40884 }
40885 return &varlink_type;
40886 }
40887
40888 /* Create a variable linking object for use later */
40889 SWIGINTERN PyObject *
40890 SWIG_Python_newvarlink(void) {
40891 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
40892 if (result) {
40893 result->vars = 0;
40894 }
40895 return ((PyObject*) result);
40896 }
40897
40898 SWIGINTERN void
40899 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
40900 swig_varlinkobject *v = (swig_varlinkobject *) p;
40901 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
40902 if (gv) {
40903 size_t size = strlen(name)+1;
40904 gv->name = (char *)malloc(size);
40905 if (gv->name) {
40906 strncpy(gv->name,name,size);
40907 gv->get_attr = get_attr;
40908 gv->set_attr = set_attr;
40909 gv->next = v->vars;
40910 }
40911 }
40912 v->vars = gv;
40913 }
40914
40915 SWIGINTERN PyObject *
40916 SWIG_globals() {
40917 static PyObject *_SWIG_globals = 0;
40918 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
40919 return _SWIG_globals;
40920 }
40921
40922 /* -----------------------------------------------------------------------------
40923 * constants/methods manipulation
40924 * ----------------------------------------------------------------------------- */
40925
40926 /* Install Constants */
40927 SWIGINTERN void
40928 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
40929 PyObject *obj = 0;
40930 size_t i;
40931 for (i = 0; constants[i].type; ++i) {
40932 switch(constants[i].type) {
40933 case SWIG_PY_POINTER:
40934 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
40935 break;
40936 case SWIG_PY_BINARY:
40937 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
40938 break;
40939 default:
40940 obj = 0;
40941 break;
40942 }
40943 if (obj) {
40944 PyDict_SetItemString(d, constants[i].name, obj);
40945 Py_DECREF(obj);
40946 }
40947 }
40948 }
40949
40950 /* -----------------------------------------------------------------------------*/
40951 /* Fix SwigMethods to carry the callback ptrs when needed */
40952 /* -----------------------------------------------------------------------------*/
40953
40954 SWIGINTERN void
40955 SWIG_Python_FixMethods(PyMethodDef *methods,
40956 swig_const_info *const_table,
40957 swig_type_info **types,
40958 swig_type_info **types_initial) {
40959 size_t i;
40960 for (i = 0; methods[i].ml_name; ++i) {
40961 const char *c = methods[i].ml_doc;
40962 if (c && (c = strstr(c, "swig_ptr: "))) {
40963 int j;
40964 swig_const_info *ci = 0;
40965 const char *name = c + 10;
40966 for (j = 0; const_table[j].type; ++j) {
40967 if (strncmp(const_table[j].name, name,
40968 strlen(const_table[j].name)) == 0) {
40969 ci = &(const_table[j]);
40970 break;
40971 }
40972 }
40973 if (ci) {
40974 size_t shift = (ci->ptype) - types;
40975 swig_type_info *ty = types_initial[shift];
40976 size_t ldoc = (c - methods[i].ml_doc);
40977 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
40978 char *ndoc = (char*)malloc(ldoc + lptr + 10);
40979 if (ndoc) {
40980 char *buff = ndoc;
40981 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
40982 if (ptr) {
40983 strncpy(buff, methods[i].ml_doc, ldoc);
40984 buff += ldoc;
40985 strncpy(buff, "swig_ptr: ", 10);
40986 buff += 10;
40987 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
40988 methods[i].ml_doc = ndoc;
40989 }
40990 }
40991 }
40992 }
40993 }
40994 }
40995
40996 #ifdef __cplusplus
40997 }
40998 #endif
40999
41000 /* -----------------------------------------------------------------------------*
41001 * Partial Init method
41002 * -----------------------------------------------------------------------------*/
41003
41004 #ifdef __cplusplus
41005 extern "C"
41006 #endif
41007 SWIGEXPORT void SWIG_init(void) {
41008 PyObject *m, *d;
41009
41010 /* Fix SwigMethods to carry the callback ptrs when needed */
41011 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
41012
41013 m = Py_InitModule((char *) SWIG_name, SwigMethods);
41014 d = PyModule_GetDict(m);
41015
41016 SWIG_InitializeModule(0);
41017 SWIG_InstallConstants(d,swig_const_table);
41018
41019
41020 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
41021 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
41022 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
41023 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
41024 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
41025 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
41026 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
41027 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
41028 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
41029 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
41030 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
41031 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
41032 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
41033 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
41034 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
41035 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
41036 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
41037 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
41038 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
41039 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
41040 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
41041 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
41042 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
41043 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
41044 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
41045 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
41046 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
41047 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
41048 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
41049 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
41050 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
41051 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
41052 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
41053 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
41054 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
41055 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
41056 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
41057 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
41058 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
41059 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
41060 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
41061 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
41062 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
41063 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
41064 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
41065 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
41066 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
41067 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
41068 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
41069 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
41070 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
41071 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
41072 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
41073 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
41074 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
41075 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
41076 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
41077 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
41078 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
41079 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
41080 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
41081 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
41082 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
41083 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
41084 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
41085 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
41086 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
41087 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
41088 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
41089 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
41090 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
41091 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
41092 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
41093 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
41094 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
41095 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
41096 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
41097 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
41098 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
41099 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
41100 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
41101 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
41102 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
41103 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
41104 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
41105 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
41106 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
41107 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
41108 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
41109 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
41110 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
41111 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
41112 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
41113 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
41114 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
41115 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
41116 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
41117 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
41118 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
41119 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
41120 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
41121 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
41122 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
41123 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
41124 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
41125 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
41126 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
41127 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
41128 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
41129 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
41130 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
41131 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
41132 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
41133 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
41134 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
41135 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
41136 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
41137 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
41138 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
41139 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
41140 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
41141 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
41142 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
41143 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
41144 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
41145 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
41146 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
41147 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
41148 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
41149 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
41150 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
41151 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
41152
41153 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
41154
41155 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
41156 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
41157 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
41158 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
41159 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
41160 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
41161 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
41162 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
41163 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
41164 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
41165 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
41166 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
41167 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
41168 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
41169 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
41170 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
41171 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
41172 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
41173 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
41174 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
41175 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
41176 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
41177 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
41178 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
41179 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
41180 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
41181 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
41182 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
41183 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
41184 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
41185 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
41186 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
41187 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
41188 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
41189 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
41190 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
41191 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
41192 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
41193 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
41194 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
41195 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
41196 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
41197 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
41198 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
41199 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
41200 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
41201 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
41202 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
41203 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
41204 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
41205 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
41206 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
41207 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
41208 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
41209 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
41210 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
41211 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
41212 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
41213 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
41214 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
41215 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
41216 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
41217 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
41218 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
41219 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
41220 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
41221 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
41222 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
41223 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
41224 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
41225 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
41226 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
41227 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
41228 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
41229 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
41230 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
41231 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
41232 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
41233 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
41234 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
41235 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
41236 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
41237 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
41238 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
41239 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
41240 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
41241 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
41242 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
41243 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
41244 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
41245 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
41246 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
41247 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
41248 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
41249 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
41250 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
41251 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
41252 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
41253 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
41254 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
41255 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
41256 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
41257 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
41258 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
41259 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
41260 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
41261 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
41262 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
41263 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
41264 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
41265 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
41266 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
41267 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
41268 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
41269 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
41270 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
41271 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
41272 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
41273 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
41274 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
41275 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
41276 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
41277 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
41278 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
41279 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
41280 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
41281 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
41282 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
41283 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
41284 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
41285 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
41286 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
41287 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
41288 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
41289 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
41290 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
41291 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
41292 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
41293 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
41294 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
41295 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
41296 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
41297 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
41298 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
41299 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
41300 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
41301 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
41302 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
41303 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
41304 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
41305 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
41306 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
41307 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
41308 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
41309 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
41310 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
41311 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
41312 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
41313 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
41314 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
41315 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
41316 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
41317 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
41318 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
41319 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
41320 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
41321 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
41322 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
41323 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
41324 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
41325 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
41326 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
41327 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
41328 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
41329 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
41330 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
41331 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
41332 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
41333 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
41334 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
41335 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
41336 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
41337 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
41338 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
41339 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
41340 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
41341 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
41342 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
41343 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
41344 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
41345 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
41346 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
41347 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
41348 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
41349 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
41350 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
41351 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
41352 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
41353 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
41354 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
41355 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
41356 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
41357 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
41358 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
41359 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
41360 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
41361 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
41362 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
41363 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
41364 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
41365 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
41366 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
41367 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
41368 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
41369 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
41370 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
41371 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
41372 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
41373 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
41374 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
41375 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
41376 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
41377 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
41378 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
41379 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
41380 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
41381 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
41382 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
41383 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
41384 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
41385 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
41386 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
41387 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
41388 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
41389 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
41390 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
41391 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
41392 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
41393 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
41394 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
41395 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
41396 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
41397 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
41398 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
41399 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
41400 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
41401 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
41402 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
41403 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
41404 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
41405 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
41406 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
41407 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
41408 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
41409 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
41410 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
41411 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
41412 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
41413 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
41414 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
41415 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
41416 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
41417 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
41418 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
41419 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
41420 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
41421 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
41422 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
41423 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
41424 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
41425 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
41426 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
41427 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
41428 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
41429 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
41430 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
41431 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
41432 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
41433 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
41434 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
41435 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
41436 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
41437 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
41438 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
41439 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
41440 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
41441 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
41442 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
41443 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
41444 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
41445 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
41446 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
41447 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
41448 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
41449 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
41450 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
41451 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
41452 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
41453 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
41454 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
41455 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
41456 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
41457 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
41458 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
41459 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
41460 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
41461 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
41462 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
41463 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
41464 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
41465 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
41466 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
41467 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
41468 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
41469 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
41470 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
41471 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
41472 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
41473 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
41474 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
41475 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
41476 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
41477 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
41478 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
41479
41480 // Work around a chicken/egg problem in drawlist.cpp
41481 wxPyDrawList_SetAPIPtr();
41482
41483 }
41484