]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_gdi_wrap.cpp
wxMemoryDC constructor now optionally accepts a wxBitmap parameter,
[wxWidgets.git] / wxPython / src / gtk / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_buffer swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_double swig_types[2]
2469 #define SWIGTYPE_p_form_ops_t swig_types[3]
2470 #define SWIGTYPE_p_int swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_wxANIHandler swig_types[8]
2475 #define SWIGTYPE_p_wxAcceleratorTable swig_types[9]
2476 #define SWIGTYPE_p_wxActivateEvent swig_types[10]
2477 #define SWIGTYPE_p_wxAlphaPixelData swig_types[11]
2478 #define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[12]
2479 #define SWIGTYPE_p_wxBMPHandler swig_types[13]
2480 #define SWIGTYPE_p_wxBitmap swig_types[14]
2481 #define SWIGTYPE_p_wxBoxSizer swig_types[15]
2482 #define SWIGTYPE_p_wxBrush swig_types[16]
2483 #define SWIGTYPE_p_wxBrushList swig_types[17]
2484 #define SWIGTYPE_p_wxBufferedDC swig_types[18]
2485 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[19]
2486 #define SWIGTYPE_p_wxCURHandler swig_types[20]
2487 #define SWIGTYPE_p_wxChar swig_types[21]
2488 #define SWIGTYPE_p_wxChildFocusEvent swig_types[22]
2489 #define SWIGTYPE_p_wxClientDC swig_types[23]
2490 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[24]
2491 #define SWIGTYPE_p_wxCloseEvent swig_types[25]
2492 #define SWIGTYPE_p_wxColor swig_types[26]
2493 #define SWIGTYPE_p_wxColour swig_types[27]
2494 #define SWIGTYPE_p_wxColourDatabase swig_types[28]
2495 #define SWIGTYPE_p_wxCommandEvent swig_types[29]
2496 #define SWIGTYPE_p_wxContextMenuEvent swig_types[30]
2497 #define SWIGTYPE_p_wxControl swig_types[31]
2498 #define SWIGTYPE_p_wxControlWithItems swig_types[32]
2499 #define SWIGTYPE_p_wxCursor swig_types[33]
2500 #define SWIGTYPE_p_wxDC swig_types[34]
2501 #define SWIGTYPE_p_wxDCOverlay swig_types[35]
2502 #define SWIGTYPE_p_wxDash swig_types[36]
2503 #define SWIGTYPE_p_wxDateEvent swig_types[37]
2504 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[38]
2505 #define SWIGTYPE_p_wxDropFilesEvent swig_types[39]
2506 #define SWIGTYPE_p_wxDuplexMode swig_types[40]
2507 #define SWIGTYPE_p_wxEffects swig_types[41]
2508 #define SWIGTYPE_p_wxEncodingConverter swig_types[42]
2509 #define SWIGTYPE_p_wxEraseEvent swig_types[43]
2510 #define SWIGTYPE_p_wxEvent swig_types[44]
2511 #define SWIGTYPE_p_wxEvtHandler swig_types[45]
2512 #define SWIGTYPE_p_wxFSFile swig_types[46]
2513 #define SWIGTYPE_p_wxFileSystem swig_types[47]
2514 #define SWIGTYPE_p_wxFlexGridSizer swig_types[48]
2515 #define SWIGTYPE_p_wxFocusEvent swig_types[49]
2516 #define SWIGTYPE_p_wxFont swig_types[50]
2517 #define SWIGTYPE_p_wxFontList swig_types[51]
2518 #define SWIGTYPE_p_wxFontMapper swig_types[52]
2519 #define SWIGTYPE_p_wxGBSizerItem swig_types[53]
2520 #define SWIGTYPE_p_wxGCDC swig_types[54]
2521 #define SWIGTYPE_p_wxGDIObjListBase swig_types[55]
2522 #define SWIGTYPE_p_wxGDIObject swig_types[56]
2523 #define SWIGTYPE_p_wxGIFHandler swig_types[57]
2524 #define SWIGTYPE_p_wxGraphicsContext swig_types[58]
2525 #define SWIGTYPE_p_wxGraphicsPath swig_types[59]
2526 #define SWIGTYPE_p_wxGridBagSizer swig_types[60]
2527 #define SWIGTYPE_p_wxGridSizer swig_types[61]
2528 #define SWIGTYPE_p_wxHeaderButtonParams swig_types[62]
2529 #define SWIGTYPE_p_wxICOHandler swig_types[63]
2530 #define SWIGTYPE_p_wxIcon swig_types[64]
2531 #define SWIGTYPE_p_wxIconBundle swig_types[65]
2532 #define SWIGTYPE_p_wxIconLocation swig_types[66]
2533 #define SWIGTYPE_p_wxIconizeEvent swig_types[67]
2534 #define SWIGTYPE_p_wxIdleEvent swig_types[68]
2535 #define SWIGTYPE_p_wxImage swig_types[69]
2536 #define SWIGTYPE_p_wxImageHandler swig_types[70]
2537 #define SWIGTYPE_p_wxImageList swig_types[71]
2538 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[72]
2539 #define SWIGTYPE_p_wxInitDialogEvent swig_types[73]
2540 #define SWIGTYPE_p_wxJPEGHandler swig_types[74]
2541 #define SWIGTYPE_p_wxKeyEvent swig_types[75]
2542 #define SWIGTYPE_p_wxLanguageInfo swig_types[76]
2543 #define SWIGTYPE_p_wxLayoutConstraints swig_types[77]
2544 #define SWIGTYPE_p_wxLocale swig_types[78]
2545 #define SWIGTYPE_p_wxMask swig_types[79]
2546 #define SWIGTYPE_p_wxMaximizeEvent swig_types[80]
2547 #define SWIGTYPE_p_wxMemoryDC swig_types[81]
2548 #define SWIGTYPE_p_wxMenu swig_types[82]
2549 #define SWIGTYPE_p_wxMenuBar swig_types[83]
2550 #define SWIGTYPE_p_wxMenuEvent swig_types[84]
2551 #define SWIGTYPE_p_wxMenuItem swig_types[85]
2552 #define SWIGTYPE_p_wxMetaFile swig_types[86]
2553 #define SWIGTYPE_p_wxMetaFileDC swig_types[87]
2554 #define SWIGTYPE_p_wxMirrorDC swig_types[88]
2555 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[89]
2556 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[90]
2557 #define SWIGTYPE_p_wxMouseEvent swig_types[91]
2558 #define SWIGTYPE_p_wxMoveEvent swig_types[92]
2559 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[93]
2560 #define SWIGTYPE_p_wxNativeFontInfo swig_types[94]
2561 #define SWIGTYPE_p_wxNativePixelData swig_types[95]
2562 #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[96]
2563 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[97]
2564 #define SWIGTYPE_p_wxNcPaintEvent swig_types[98]
2565 #define SWIGTYPE_p_wxNotifyEvent swig_types[99]
2566 #define SWIGTYPE_p_wxObject swig_types[100]
2567 #define SWIGTYPE_p_wxOverlay swig_types[101]
2568 #define SWIGTYPE_p_wxPCXHandler swig_types[102]
2569 #define SWIGTYPE_p_wxPNGHandler swig_types[103]
2570 #define SWIGTYPE_p_wxPNMHandler swig_types[104]
2571 #define SWIGTYPE_p_wxPaintDC swig_types[105]
2572 #define SWIGTYPE_p_wxPaintEvent swig_types[106]
2573 #define SWIGTYPE_p_wxPalette swig_types[107]
2574 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[108]
2575 #define SWIGTYPE_p_wxPaperSize swig_types[109]
2576 #define SWIGTYPE_p_wxPen swig_types[110]
2577 #define SWIGTYPE_p_wxPenList swig_types[111]
2578 #define SWIGTYPE_p_wxPixelDataBase swig_types[112]
2579 #define SWIGTYPE_p_wxPoint swig_types[113]
2580 #define SWIGTYPE_p_wxPoint2D swig_types[114]
2581 #define SWIGTYPE_p_wxPostScriptDC swig_types[115]
2582 #define SWIGTYPE_p_wxPrintData swig_types[116]
2583 #define SWIGTYPE_p_wxPrinterDC swig_types[117]
2584 #define SWIGTYPE_p_wxPseudoDC swig_types[118]
2585 #define SWIGTYPE_p_wxPyApp swig_types[119]
2586 #define SWIGTYPE_p_wxPyCommandEvent swig_types[120]
2587 #define SWIGTYPE_p_wxPyEvent swig_types[121]
2588 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[122]
2589 #define SWIGTYPE_p_wxPyImageHandler swig_types[123]
2590 #define SWIGTYPE_p_wxPyLocale swig_types[124]
2591 #define SWIGTYPE_p_wxPySizer swig_types[125]
2592 #define SWIGTYPE_p_wxPyValidator swig_types[126]
2593 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[127]
2594 #define SWIGTYPE_p_wxRect swig_types[128]
2595 #define SWIGTYPE_p_wxRegion swig_types[129]
2596 #define SWIGTYPE_p_wxRegionIterator swig_types[130]
2597 #define SWIGTYPE_p_wxRendererNative swig_types[131]
2598 #define SWIGTYPE_p_wxRendererVersion swig_types[132]
2599 #define SWIGTYPE_p_wxScreenDC swig_types[133]
2600 #define SWIGTYPE_p_wxScrollEvent swig_types[134]
2601 #define SWIGTYPE_p_wxScrollWinEvent swig_types[135]
2602 #define SWIGTYPE_p_wxSetCursorEvent swig_types[136]
2603 #define SWIGTYPE_p_wxShowEvent swig_types[137]
2604 #define SWIGTYPE_p_wxSize swig_types[138]
2605 #define SWIGTYPE_p_wxSizeEvent swig_types[139]
2606 #define SWIGTYPE_p_wxSizer swig_types[140]
2607 #define SWIGTYPE_p_wxSizerItem swig_types[141]
2608 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[142]
2609 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[143]
2610 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[144]
2611 #define SWIGTYPE_p_wxStockGDI swig_types[145]
2612 #define SWIGTYPE_p_wxString swig_types[146]
2613 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[147]
2614 #define SWIGTYPE_p_wxTIFFHandler swig_types[148]
2615 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[149]
2616 #define SWIGTYPE_p_wxValidator swig_types[150]
2617 #define SWIGTYPE_p_wxWindow swig_types[151]
2618 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[152]
2619 #define SWIGTYPE_p_wxWindowDC swig_types[153]
2620 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[154]
2621 #define SWIGTYPE_p_wxXPMHandler swig_types[155]
2622 static swig_type_info *swig_types[157];
2623 static swig_module_info swig_module = {swig_types, 156, 0, 0, 0, 0};
2624 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2625 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2626
2627 /* -------- TYPES TABLE (END) -------- */
2628
2629 #if (PY_VERSION_HEX <= 0x02000000)
2630 # if !defined(SWIG_PYTHON_CLASSIC)
2631 # error "This python version requires to use swig with the '-classic' option"
2632 # endif
2633 #endif
2634 #if (PY_VERSION_HEX <= 0x02020000)
2635 # error "This python version requires to use swig with the '-nomodern' option"
2636 #endif
2637 #if (PY_VERSION_HEX <= 0x02020000)
2638 # error "This python version requires to use swig with the '-nomodernargs' option"
2639 #endif
2640 #ifndef METH_O
2641 # error "This python version requires to use swig with the '-nofastunpack' option"
2642 #endif
2643
2644 /*-----------------------------------------------
2645 @(target):= _gdi_.so
2646 ------------------------------------------------*/
2647 #define SWIG_init init_gdi_
2648
2649 #define SWIG_name "_gdi_"
2650
2651 #define SWIGVERSION 0x010329
2652
2653
2654 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2655 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2656
2657
2658 #include <stdexcept>
2659
2660
2661 namespace swig {
2662 class PyObject_ptr {
2663 protected:
2664 PyObject *_obj;
2665
2666 public:
2667 PyObject_ptr() :_obj(0)
2668 {
2669 }
2670
2671 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2672 {
2673 Py_XINCREF(_obj);
2674 }
2675
2676 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2677 {
2678 if (initial_ref) Py_XINCREF(_obj);
2679 }
2680
2681 PyObject_ptr & operator=(const PyObject_ptr& item)
2682 {
2683 Py_XINCREF(item._obj);
2684 Py_XDECREF(_obj);
2685 _obj = item._obj;
2686 return *this;
2687 }
2688
2689 ~PyObject_ptr()
2690 {
2691 Py_XDECREF(_obj);
2692 }
2693
2694 operator PyObject *() const
2695 {
2696 return _obj;
2697 }
2698
2699 PyObject *operator->() const
2700 {
2701 return _obj;
2702 }
2703 };
2704 }
2705
2706
2707 namespace swig {
2708 struct PyObject_var : PyObject_ptr {
2709 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2710
2711 PyObject_var & operator = (PyObject* obj)
2712 {
2713 Py_XDECREF(_obj);
2714 _obj = obj;
2715 return *this;
2716 }
2717 };
2718 }
2719
2720
2721 #include "wx/wxPython/wxPython.h"
2722 #include "wx/wxPython/pyclasses.h"
2723
2724
2725 static const wxString wxPyEmptyString(wxEmptyString);
2726
2727 #define SWIG_From_long PyInt_FromLong
2728
2729
2730 SWIGINTERNINLINE PyObject *
2731 SWIG_From_int (int value)
2732 {
2733 return SWIG_From_long (value);
2734 }
2735
2736
2737 #include <limits.h>
2738 #ifndef LLONG_MIN
2739 # define LLONG_MIN LONG_LONG_MIN
2740 #endif
2741 #ifndef LLONG_MAX
2742 # define LLONG_MAX LONG_LONG_MAX
2743 #endif
2744 #ifndef ULLONG_MAX
2745 # define ULLONG_MAX ULONG_LONG_MAX
2746 #endif
2747
2748
2749 SWIGINTERN int
2750 SWIG_AsVal_long (PyObject* obj, long* val)
2751 {
2752 if (PyNumber_Check(obj)) {
2753 if (val) *val = PyInt_AsLong(obj);
2754 return SWIG_OK;
2755 }
2756 return SWIG_TypeError;
2757 }
2758
2759
2760 SWIGINTERN int
2761 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2762 {
2763 long v = 0;
2764 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2765 return SWIG_TypeError;
2766 }
2767 else if (val)
2768 *val = (unsigned long)v;
2769 return SWIG_OK;
2770 }
2771
2772
2773 SWIGINTERN int
2774 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2775 {
2776 unsigned long v;
2777 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2778 if (SWIG_IsOK(res)) {
2779 if ((v > UCHAR_MAX)) {
2780 return SWIG_OverflowError;
2781 } else {
2782 if (val) *val = static_cast< unsigned char >(v);
2783 }
2784 }
2785 return res;
2786 }
2787
2788
2789 SWIGINTERNINLINE PyObject*
2790 SWIG_From_unsigned_SS_long (unsigned long value)
2791 {
2792 return (value > LONG_MAX) ?
2793 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2794 }
2795
2796
2797 SWIGINTERNINLINE PyObject *
2798 SWIG_From_unsigned_SS_char (unsigned char value)
2799 {
2800 return SWIG_From_unsigned_SS_long (value);
2801 }
2802
2803 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2804 wxColour temp, *obj = &temp;
2805 if ( other == Py_None ) return false;
2806 if ( ! wxColour_helper(other, &obj) ) {
2807 PyErr_Clear();
2808 return false;
2809 }
2810 return self->operator==(*obj);
2811 }
2812 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2813 wxColour temp, *obj = &temp;
2814 if ( other == Py_None ) return true;
2815 if ( ! wxColour_helper(other, &obj)) {
2816 PyErr_Clear();
2817 return true;
2818 }
2819 return self->operator!=(*obj);
2820 }
2821
2822 SWIGINTERN int
2823 SWIG_AsVal_bool (PyObject *obj, bool *val)
2824 {
2825 if (obj == Py_True) {
2826 if (val) *val = true;
2827 return SWIG_OK;
2828 } else if (obj == Py_False) {
2829 if (val) *val = false;
2830 return SWIG_OK;
2831 } else {
2832 long v = 0;
2833 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2834 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2835 return res;
2836 }
2837 }
2838
2839 SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2840 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
2841 int red = -1;
2842 int green = -1;
2843 int blue = -1;
2844 int alpha = wxALPHA_OPAQUE;
2845 if (self->IsOk()) {
2846 red = self->Red();
2847 green = self->Green();
2848 blue = self->Blue();
2849 alpha = self->Alpha();
2850 }
2851 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2852 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2853 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2854 if (includeAlpha)
2855 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
2856 return rv;
2857 }
2858 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2859 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2860 }
2861
2862 SWIGINTERN int
2863 SWIG_AsVal_int (PyObject * obj, int *val)
2864 {
2865 long v;
2866 int res = SWIG_AsVal_long (obj, &v);
2867 if (SWIG_IsOK(res)) {
2868 if ((v < INT_MIN || v > INT_MAX)) {
2869 return SWIG_OverflowError;
2870 } else {
2871 if (val) *val = static_cast< int >(v);
2872 }
2873 }
2874 return res;
2875 }
2876
2877 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2878 wxDash* dashes;
2879 int count = self->GetDashes(&dashes);
2880 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2881 PyObject* retval = PyList_New(0);
2882 for (int x=0; x<count; x++) {
2883 PyObject* pyint = PyInt_FromLong(dashes[x]);
2884 PyList_Append(retval, pyint);
2885 Py_DECREF(pyint);
2886 }
2887 wxPyEndBlockThreads(blocked);
2888 return retval;
2889 }
2890 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2891 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2892 int size = PyList_Size(pyDashes);
2893 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2894
2895 // black magic warning! The array of wxDashes needs to exist as
2896 // long as the pen does because wxPen does not copy the array. So
2897 // stick a copy in a Python string object and attach it to _self,
2898 // and then call SetDashes with a pointer to that array. Then
2899 // when the Python pen object is destroyed the array will be
2900 // cleaned up too.
2901 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2902 PyObject_SetAttrString(_self, "_dashes", strDashes);
2903
2904 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2905 delete [] dashes;
2906 Py_DECREF(strDashes);
2907 wxPyEndBlockThreads(blocked);
2908 }
2909 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2910 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2911
2912 #include <wx/rawbmp.h>
2913
2914
2915 #include <wx/image.h>
2916
2917 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2918 char** cArray = NULL;
2919 int count;
2920
2921 if (!PyList_Check(listOfStrings)) {
2922 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2923 return NULL;
2924 }
2925 count = PyList_Size(listOfStrings);
2926 cArray = new char*[count];
2927
2928 for(int x=0; x<count; x++) {
2929 // TODO: Need some validation and error checking here
2930 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2931 }
2932 return cArray;
2933 }
2934
2935
2936 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2937 char** cArray = NULL;
2938 wxBitmap* bmp;
2939
2940 cArray = ConvertListOfStrings(listOfStrings);
2941 if (! cArray)
2942 return NULL;
2943 bmp = new wxBitmap(cArray);
2944 delete [] cArray;
2945 return bmp;
2946 }
2947 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2948 char* buf;
2949 Py_ssize_t length;
2950 PyString_AsStringAndSize(bits, &buf, &length);
2951 return new wxBitmap(buf, width, height, depth);
2952 }
2953 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2954 wxSize size(self->GetWidth(), self->GetHeight());
2955 return size;
2956 }
2957 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2958 wxMask *mask = new wxMask(*self, colour);
2959 self->SetMask(mask);
2960 }
2961 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2962 self->SetWidth(size.x);
2963 self->SetHeight(size.y);
2964 }
2965 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2966 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2967
2968 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2969 // appears to me that the other platforms are already doing it, so I'll just
2970 // automatically do it for wxMSW here.
2971 #ifdef __WXMSW__
2972 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2973 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2974 #else
2975 #define wxPy_premultiply(p, a) (p)
2976 #define wxPy_unpremultiply(p, a) (p)
2977 #endif
2978
2979
2980 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
2981 buffer data, int DATASIZE,
2982 buffer alpha, int ALPHASIZE)
2983 {
2984 if (DATASIZE != width*height*3) {
2985 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2986 return NULL;
2987 }
2988
2989 if (ALPHASIZE != width*height) {
2990 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
2991 return NULL;
2992 }
2993
2994 wxBitmap* bmp = new wxBitmap(width, height, 32);
2995 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
2996 if (! pixData) {
2997 // raise an exception...
2998 wxPyErr_SetString(PyExc_RuntimeError,
2999 "Failed to gain raw access to bitmap data.");
3000 return NULL;
3001 }
3002
3003 pixData.UseAlpha();
3004 wxAlphaPixelData::Iterator p(pixData);
3005 for (int y=0; y<height; y++) {
3006 wxAlphaPixelData::Iterator rowStart = p;
3007 for (int x=0; x<width; x++) {
3008 byte a = *(alpha++);
3009 p.Red() = wxPy_premultiply(*(data++), a);
3010 p.Green() = wxPy_premultiply(*(data++), a);
3011 p.Blue() = wxPy_premultiply(*(data++), a);
3012 p.Alpha() = a;
3013 ++p;
3014 }
3015 p = rowStart;
3016 p.OffsetY(pixData, 1);
3017 }
3018 return bmp;
3019 }
3020
3021 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3022 {
3023 if (DATASIZE != width*height*3) {
3024 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3025 return NULL;
3026 }
3027
3028 wxBitmap* bmp = new wxBitmap(width, height, 24);
3029 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3030 if (! pixData) {
3031 // raise an exception...
3032 wxPyErr_SetString(PyExc_RuntimeError,
3033 "Failed to gain raw access to bitmap data.");
3034 return NULL;
3035 }
3036
3037 wxNativePixelData::Iterator p(pixData);
3038 for (int y=0; y<height; y++) {
3039 wxNativePixelData::Iterator rowStart = p;
3040 for (int x=0; x<width; x++) {
3041 p.Red() = *(data++);
3042 p.Green() = *(data++);
3043 p.Blue() = *(data++);
3044 ++p;
3045 }
3046 p = rowStart;
3047 p.OffsetY(pixData, 1);
3048 }
3049 return bmp;
3050 }
3051
3052
3053 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3054 {
3055 if (DATASIZE != width*height*4) {
3056 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3057 return NULL;
3058 }
3059
3060 wxBitmap* bmp = new wxBitmap(width, height, 32);
3061 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3062 if (! pixData) {
3063 // raise an exception...
3064 wxPyErr_SetString(PyExc_RuntimeError,
3065 "Failed to gain raw access to bitmap data.");
3066 return NULL;
3067 }
3068
3069 pixData.UseAlpha();
3070 wxAlphaPixelData::Iterator p(pixData);
3071 for (int y=0; y<height; y++) {
3072 wxAlphaPixelData::Iterator rowStart = p;
3073 for (int x=0; x<width; x++) {
3074 byte a = data[3];
3075 p.Red() = wxPy_premultiply(*(data++), a);
3076 p.Green() = wxPy_premultiply(*(data++), a);
3077 p.Blue() = wxPy_premultiply(*(data++), a);
3078 p.Alpha() = a; data++;
3079 ++p;
3080 }
3081 p = rowStart;
3082 p.OffsetY(pixData, 1);
3083 }
3084 return bmp;
3085 }
3086
3087
3088 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3089
3090 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3091 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3092 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3093 self->Red() = red;
3094 self->Green() = green;
3095 self->Blue() = blue;
3096 }
3097 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3098 PyObject* rv = PyTuple_New(3);
3099 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3100 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3101 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3102 return rv;
3103 }
3104
3105 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3106
3107 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3108 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3109 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3110 self->Red() = wxPy_premultiply(red, alpha);
3111 self->Green() = wxPy_premultiply(green, alpha);
3112 self->Blue() = wxPy_premultiply(blue, alpha);
3113 self->Alpha() = alpha;
3114 }
3115 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3116 PyObject* rv = PyTuple_New(4);
3117 int red = self->Red();
3118 int green = self->Green();
3119 int blue = self->Blue();
3120 int alpha = self->Alpha();
3121
3122 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3123 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3124 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3125 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3126 return rv;
3127 }
3128 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3129 if ( !colour.IsOk() )
3130 return new wxMask(bitmap, *wxBLACK);
3131 else
3132 return new wxMask(bitmap, colour);
3133 }
3134
3135 #include <wx/iconbndl.h>
3136
3137 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3138 wxIcon* icon = new wxIcon();
3139 icon->CopyFromBitmap(bmp);
3140 return icon;
3141 }
3142 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3143 char** cArray = NULL;
3144 wxIcon* icon;
3145
3146 cArray = ConvertListOfStrings(listOfStrings);
3147 if (! cArray)
3148 return NULL;
3149 icon = new wxIcon(cArray);
3150 delete [] cArray;
3151 return icon;
3152 }
3153 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3154
3155
3156
3157 return new wxIconLocation(*filename);
3158
3159 }
3160 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3161
3162
3163
3164 // do nothing
3165
3166 }
3167 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3168
3169
3170
3171 return -1;
3172
3173 }
3174 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3175 #ifdef __WXGTK__
3176 wxImage img(cursorName, type);
3177 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3178 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3179 return new wxCursor(img);
3180 #else
3181 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3182 #endif
3183 }
3184
3185
3186 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3187 (*self) ++;
3188 }
3189 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3190 return self->operator bool();
3191 }
3192
3193 #include <wx/fontutil.h>
3194 #include <wx/fontmap.h>
3195 #include <wx/fontenum.h>
3196
3197 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3198 return self->ToString();
3199 }
3200
3201 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3202 static wxNativeEncodingInfo info;
3203 if ( wxGetNativeFontEncoding(encoding, &info) )
3204 return &info;
3205 else
3206 return NULL;
3207 }
3208
3209
3210 SWIGINTERNINLINE PyObject *
3211 SWIG_From_size_t (size_t value)
3212 {
3213 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3214 }
3215
3216
3217 SWIGINTERNINLINE int
3218 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3219 {
3220 unsigned long v;
3221 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3222 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3223 return res;
3224 }
3225
3226 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3227 wxFontEncoding alt_enc;
3228 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3229 return PyInt_FromLong(alt_enc);
3230 else {
3231 Py_INCREF(Py_None);
3232 return Py_None;
3233 }
3234 }
3235 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3236 wxNativeFontInfo nfi;
3237 nfi.FromString(info);
3238 return new wxFont(nfi);
3239 }
3240 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3241 return wxFont::New(pointSize, family, flags, face, encoding);
3242 }
3243 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3244 return wxFontBase::New(pixelSize, family,
3245 style, weight, underlined,
3246 face, encoding);
3247 }
3248 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3249 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3250 }
3251 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3252 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3253
3254 class wxPyFontEnumerator : public wxFontEnumerator {
3255 public:
3256 wxPyFontEnumerator() {}
3257 ~wxPyFontEnumerator() {}
3258
3259 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3260 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3261
3262 PYPRIVATE;
3263 };
3264
3265 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3266 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3267
3268
3269 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3270 PyObject* ret;
3271 wxArrayString arr = wxFontEnumerator::GetEncodings();
3272 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3273 ret = wxArrayString2PyList_helper(arr);
3274 wxPyEndBlockThreads(blocked);
3275 return ret;
3276 }
3277 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3278 PyObject* ret;
3279 wxArrayString arr = wxFontEnumerator::GetFacenames();
3280 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3281 ret = wxArrayString2PyList_helper(arr);
3282 wxPyEndBlockThreads(blocked);
3283 return ret;
3284 }
3285
3286 #include <locale.h>
3287
3288 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3289 wxLocale* loc;
3290 if (language == -1)
3291 loc = new wxLocale();
3292 else
3293 loc = new wxLocale(language, flags);
3294 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3295 // for the floating point conversions and such to work right.
3296 #if PY_VERSION_HEX < 0x02040000
3297 setlocale(LC_NUMERIC, "C");
3298 #endif
3299 return loc;
3300 }
3301 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3302 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3303 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3304 // for the floating point conversions and such to work right.
3305 #if PY_VERSION_HEX < 0x02040000
3306 setlocale(LC_NUMERIC, "C");
3307 #endif
3308 return rc;
3309 }
3310 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3311 bool rc = self->Init(language, flags);
3312 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3313 // for the floating point conversions and such to work right.
3314 #if PY_VERSION_HEX < 0x02040000
3315 setlocale(LC_NUMERIC, "C");
3316 #endif
3317 return rc;
3318 }
3319
3320 class wxPyLocale : public wxLocale
3321 {
3322 public:
3323 wxPyLocale();
3324
3325 wxPyLocale(const wxChar *szName, // name (for messages)
3326 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3327 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3328 bool bLoadDefault = true, // preload wxstd.mo?
3329 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3330
3331 wxPyLocale(int language, // wxLanguage id or custom language
3332 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3333
3334 ~wxPyLocale();
3335
3336 virtual const wxChar *GetString(const wxChar *szOrigString,
3337 const wxChar *szDomain = NULL) const;
3338 virtual const wxChar *GetString(const wxChar *szOrigString,
3339 const wxChar *szOrigString2, size_t n,
3340 const wxChar *szDomain = NULL) const;
3341
3342 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3343 const wxChar *szDomain = NULL) const;
3344 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3345 const wxChar *szOrigString2, size_t n,
3346 const wxChar *szDomain = NULL) const;
3347
3348 PYPRIVATE;
3349 private:
3350 DECLARE_NO_COPY_CLASS(wxPyLocale)
3351 };
3352
3353 wxPyLocale::wxPyLocale() : wxLocale()
3354 {
3355 }
3356
3357 wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3358 const wxChar *szShort, // dir prefix (for msg files)
3359 const wxChar *szLocale, // locale (for setlocale)
3360 bool bLoadDefault, // preload wxstd.mo?
3361 bool bConvertEncoding) // convert Win<->Unix if necessary?
3362 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3363 {
3364 }
3365
3366 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3367 int flags) : wxLocale(language, flags)
3368 {
3369 }
3370
3371 wxPyLocale::~wxPyLocale()
3372 {
3373 }
3374
3375 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3376 const wxChar *szDomain) const
3377 {
3378 wxChar *str = GetSingularString(szOrigString, szDomain);
3379 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3380 }
3381
3382 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3383 const wxChar *szOrigString2, size_t n,
3384 const wxChar *szDomain) const
3385 {
3386 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3387 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3388 }
3389
3390 wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3391 const wxChar *szDomain) const
3392 {
3393 bool found;
3394 static wxString str;
3395 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.
3396 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3397 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3398 PyObject* param1 = wx2PyString(szOrigString);
3399 PyObject* param2 = wx2PyString(szDomain);
3400 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3401 Py_DECREF(param1);
3402 Py_DECREF(param2);
3403 if (ret) {
3404 str = Py2wxString(ret);
3405 Py_DECREF(ret);
3406 }
3407 }
3408 wxPyEndBlockThreads(blocked);
3409 return (found ? (wxChar*)str.c_str() : NULL);
3410 }
3411
3412 wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3413 const wxChar *szOrigString2, size_t n,
3414 const wxChar *szDomain) const
3415 {
3416 bool found;
3417 static wxString str;
3418 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.
3419 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3420 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3421 PyObject* param1 = wx2PyString(szOrigString);
3422 PyObject* param2 = wx2PyString(szOrigString2);
3423 PyObject* param4 = wx2PyString(szDomain);
3424 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3425 Py_DECREF(param1);
3426 Py_DECREF(param2);
3427 Py_DECREF(param4);
3428 if( ret) {
3429 str = Py2wxString(ret);
3430 Py_DECREF(ret);
3431 }
3432 }
3433 wxPyEndBlockThreads(blocked);
3434 return (found ? (wxChar*)str.c_str() : NULL);
3435 }
3436
3437 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3438 wxPyLocale* loc;
3439 if (language == -1)
3440 loc = new wxPyLocale();
3441 else
3442 loc = new wxPyLocale(language, flags);
3443 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3444 // for the floating point conversions and such to work right.
3445 #if PY_VERSION_HEX < 0x02040000
3446 setlocale(LC_NUMERIC, "C");
3447 #endif
3448 return loc;
3449 }
3450
3451 #include "wx/wxPython/pydrawxxx.h"
3452
3453 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3454 wxColour col;
3455 self->GetPixel(x, y, &col);
3456 return col;
3457 }
3458 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3459 wxColour col;
3460 self->GetPixel(pt, &col);
3461 return col;
3462 }
3463
3464 SWIGINTERN int
3465 SWIG_AsVal_double (PyObject *obj, double* val)
3466 {
3467 if (PyNumber_Check(obj)) {
3468 if (val) *val = PyFloat_AsDouble(obj);
3469 return SWIG_OK;
3470 }
3471 return SWIG_TypeError;
3472 }
3473
3474 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3475 wxRect rv;
3476 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3477 return rv;
3478 }
3479 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3480 wxRect rect;
3481 self->GetClippingBox(rect);
3482 return rect;
3483 }
3484 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3485 wxArrayInt widths;
3486 self->GetPartialTextExtents(text, widths);
3487 return widths;
3488 }
3489
3490 #define SWIG_From_double PyFloat_FromDouble
3491
3492 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3493 self->SetLogicalOrigin(point.x, point.y);
3494 }
3495 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3496 self->SetDeviceOrigin(point.x, point.y);
3497 }
3498 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3499 self->CalcBoundingBox(point.x, point.y);
3500 }
3501 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3502 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3503 }
3504 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3505 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3506 }
3507 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3508 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3509 }
3510 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3511 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3512 }
3513 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3514 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3515 }
3516 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3517 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3518 }
3519
3520 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3521 *x1 = dc->MinX();
3522 *y1 = dc->MinY();
3523 *x2 = dc->MaxX();
3524 *y2 = dc->MaxY();
3525 }
3526
3527
3528 #include <wx/dcbuffer.h>
3529
3530
3531 #include <wx/dcps.h>
3532
3533
3534 class wxMetaFile : public wxObject {
3535 public:
3536 wxMetaFile(const wxString&)
3537 { wxPyRaiseNotImplemented(); }
3538 };
3539
3540 class wxMetaFileDC : public wxClientDC {
3541 public:
3542 wxMetaFileDC(const wxString&, int, int, const wxString&)
3543 { wxPyRaiseNotImplemented(); }
3544 };
3545
3546
3547
3548 class wxPrinterDC : public wxClientDC {
3549 public:
3550 wxPrinterDC(const wxPrintData&)
3551 { wxPyRaiseNotImplemented(); }
3552
3553 };
3554
3555
3556 #include <wx/graphics.h>
3557
3558
3559 #if !wxUSE_GRAPHICS_CONTEXT
3560 // C++ stub classes for platforms that don't have wxGraphicsContext yet.
3561
3562 class wxGraphicsPath
3563 {
3564 public :
3565 wxGraphicsPath() {
3566 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3567 PyErr_SetString(PyExc_NotImplementedError,
3568 "wxGraphicsPath is not available on this platform.");
3569 wxPyEndBlockThreads(blocked);
3570 }
3571 virtual ~wxGraphicsPath() {}
3572
3573 void MoveToPoint( wxDouble, wxDouble ) {}
3574 void AddLineToPoint( wxDouble, wxDouble ) {}
3575 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3576 void CloseSubpath() {}
3577 void GetCurrentPoint( wxDouble&, wxDouble&) {}
3578 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3579
3580 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3581 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3582 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3583 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3584
3585 wxPoint2DDouble GetCurrentPoint() { return wxPoint2DDouble(0,0); }
3586 void MoveToPoint( const wxPoint2DDouble& ) {}
3587 void AddLineToPoint( const wxPoint2DDouble&) {}
3588 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3589 void AddArc( const wxPoint2DDouble&, wxDouble, wxDouble, wxDouble, bool) {}
3590 };
3591
3592
3593 class wxGraphicsContext
3594 {
3595 public:
3596 wxGraphicsContext() {
3597 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3598 PyErr_SetString(PyExc_NotImplementedError,
3599 "wxGraphicsContext is not available on this platform.");
3600 wxPyEndBlockThreads(blocked);
3601 }
3602 virtual ~wxGraphicsContext() {}
3603
3604 static wxGraphicsContext* Create( const wxWindowDC&) {
3605 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3606 PyErr_SetString(PyExc_NotImplementedError,
3607 "wxGraphicsPath is not available on this platform.");
3608 wxPyEndBlockThreads(blocked);
3609 return NULL;
3610 }
3611
3612 wxGraphicsPath * CreatePath() { return NULL; }
3613 void PushState() {}
3614 void PopState() {}
3615 void Clip( const wxRegion & ) {}
3616 void Translate( wxDouble , wxDouble ) {}
3617 void Scale( wxDouble , wxDouble ) {}
3618 void Rotate( wxDouble ) {}
3619 void SetPen( const wxPen & ) {}
3620 void SetBrush( const wxBrush & ) {}
3621 void SetLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3622 const wxColour&, const wxColour&) {}
3623 void SetRadialGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3624 const wxColour &, const wxColour &) {}
3625 void SetFont( const wxFont & ) {}
3626 void SetTextColor( const wxColour & ) {}
3627 void StrokePath( const wxGraphicsPath * ) {}
3628 void FillPath( const wxGraphicsPath *, int ) {}
3629 void DrawPath( const wxGraphicsPath *, int ) {}
3630 void DrawText( const wxString &, wxDouble , wxDouble ) {}
3631 void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3632 void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3633 wxDouble *, wxDouble * ) const {}
3634 void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3635 void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3636 void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3637 void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3638 void StrokeLines( size_t , const wxPoint2DDouble *) {}
3639 void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3640 void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3641 void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3642 void DrawEllipse( wxDouble , wxDouble, wxDouble , wxDouble) {}
3643 void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3644 };
3645
3646
3647 class wxGCDC: public wxWindowDC
3648 {
3649 public:
3650 wxGCDC(const wxWindowDC&) {
3651 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3652 PyErr_SetString(PyExc_NotImplementedError,
3653 "wxGCDC is not available on this platform.");
3654 wxPyEndBlockThreads(blocked);
3655 }
3656
3657 wxGCDC() {
3658 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3659 PyErr_SetString(PyExc_NotImplementedError,
3660 "wxGCDC is not available on this platform.");
3661 wxPyEndBlockThreads(blocked);
3662 }
3663
3664 virtual ~wxGCDC() {}
3665
3666 wxGraphicsContext* GetGraphicContext() { return NULL; }
3667 };
3668
3669 #endif
3670
3671 SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3672 wxArrayDouble widths;
3673 self->GetPartialTextExtents(text, widths);
3674 return widths;
3675 }
3676 SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
3677 size_t c1, c2, count;
3678 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3679 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3680
3681 if ( beginP != NULL && endP != NULL )
3682 {
3683 count = wxMin(c1, c2);
3684 self->StrokeLines(count, beginP, endP);
3685 }
3686 delete [] beginP;
3687 delete [] endP;
3688 }
3689
3690
3691 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3692 self->AddColour(name, wxColour(red, green, blue));
3693 }
3694
3695 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3696 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3697 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3698 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3699
3700
3701 #include <wx/effects.h>
3702
3703
3704 #include "wx/renderer.h"
3705
3706
3707 SWIGINTERNINLINE PyObject*
3708 SWIG_From_bool (bool value)
3709 {
3710 return PyBool_FromLong(value ? 1 : 0);
3711 }
3712
3713
3714 #include "wx/wxPython/pseudodc.h"
3715
3716 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3717 wxRect rect;
3718 self->GetIdBounds(id, rect);
3719 return rect;
3720 }
3721 #ifdef __cplusplus
3722 extern "C" {
3723 #endif
3724 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3725 PyObject *resultobj = 0;
3726 wxGDIObject *result = 0 ;
3727
3728 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3729 {
3730 if (!wxPyCheckForApp()) SWIG_fail;
3731 PyThreadState* __tstate = wxPyBeginAllowThreads();
3732 result = (wxGDIObject *)new wxGDIObject();
3733 wxPyEndAllowThreads(__tstate);
3734 if (PyErr_Occurred()) SWIG_fail;
3735 }
3736 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3737 return resultobj;
3738 fail:
3739 return NULL;
3740 }
3741
3742
3743 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3744 PyObject *resultobj = 0;
3745 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3746 void *argp1 = 0 ;
3747 int res1 = 0 ;
3748 PyObject *swig_obj[1] ;
3749
3750 if (!args) SWIG_fail;
3751 swig_obj[0] = args;
3752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3753 if (!SWIG_IsOK(res1)) {
3754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3755 }
3756 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3757 {
3758 PyThreadState* __tstate = wxPyBeginAllowThreads();
3759 delete arg1;
3760
3761 wxPyEndAllowThreads(__tstate);
3762 if (PyErr_Occurred()) SWIG_fail;
3763 }
3764 resultobj = SWIG_Py_Void();
3765 return resultobj;
3766 fail:
3767 return NULL;
3768 }
3769
3770
3771 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3772 PyObject *resultobj = 0;
3773 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3774 bool result;
3775 void *argp1 = 0 ;
3776 int res1 = 0 ;
3777 PyObject *swig_obj[1] ;
3778
3779 if (!args) SWIG_fail;
3780 swig_obj[0] = args;
3781 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3782 if (!SWIG_IsOK(res1)) {
3783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3784 }
3785 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3786 {
3787 PyThreadState* __tstate = wxPyBeginAllowThreads();
3788 result = (bool)(arg1)->IsNull();
3789 wxPyEndAllowThreads(__tstate);
3790 if (PyErr_Occurred()) SWIG_fail;
3791 }
3792 {
3793 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3794 }
3795 return resultobj;
3796 fail:
3797 return NULL;
3798 }
3799
3800
3801 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3802 PyObject *obj;
3803 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3804 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3805 return SWIG_Py_Void();
3806 }
3807
3808 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3809 return SWIG_Python_InitShadowInstance(args);
3810 }
3811
3812 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3813 PyObject *resultobj = 0;
3814 byte arg1 = (byte) 0 ;
3815 byte arg2 = (byte) 0 ;
3816 byte arg3 = (byte) 0 ;
3817 byte arg4 = (byte) wxALPHA_OPAQUE ;
3818 wxColour *result = 0 ;
3819 unsigned char val1 ;
3820 int ecode1 = 0 ;
3821 unsigned char val2 ;
3822 int ecode2 = 0 ;
3823 unsigned char val3 ;
3824 int ecode3 = 0 ;
3825 unsigned char val4 ;
3826 int ecode4 = 0 ;
3827 PyObject * obj0 = 0 ;
3828 PyObject * obj1 = 0 ;
3829 PyObject * obj2 = 0 ;
3830 PyObject * obj3 = 0 ;
3831 char * kwnames[] = {
3832 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
3833 };
3834
3835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3836 if (obj0) {
3837 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3838 if (!SWIG_IsOK(ecode1)) {
3839 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3840 }
3841 arg1 = static_cast< byte >(val1);
3842 }
3843 if (obj1) {
3844 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3845 if (!SWIG_IsOK(ecode2)) {
3846 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3847 }
3848 arg2 = static_cast< byte >(val2);
3849 }
3850 if (obj2) {
3851 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3852 if (!SWIG_IsOK(ecode3)) {
3853 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3854 }
3855 arg3 = static_cast< byte >(val3);
3856 }
3857 if (obj3) {
3858 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3859 if (!SWIG_IsOK(ecode4)) {
3860 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
3861 }
3862 arg4 = static_cast< byte >(val4);
3863 }
3864 {
3865 PyThreadState* __tstate = wxPyBeginAllowThreads();
3866 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
3867 wxPyEndAllowThreads(__tstate);
3868 if (PyErr_Occurred()) SWIG_fail;
3869 }
3870 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3871 return resultobj;
3872 fail:
3873 return NULL;
3874 }
3875
3876
3877 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3878 PyObject *resultobj = 0;
3879 wxString *arg1 = 0 ;
3880 wxColour *result = 0 ;
3881 bool temp1 = false ;
3882 PyObject * obj0 = 0 ;
3883 char * kwnames[] = {
3884 (char *) "colorName", NULL
3885 };
3886
3887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3888 {
3889 arg1 = wxString_in_helper(obj0);
3890 if (arg1 == NULL) SWIG_fail;
3891 temp1 = true;
3892 }
3893 {
3894 if (!wxPyCheckForApp()) SWIG_fail;
3895 PyThreadState* __tstate = wxPyBeginAllowThreads();
3896 result = (wxColour *)new wxColour((wxString const &)*arg1);
3897 wxPyEndAllowThreads(__tstate);
3898 if (PyErr_Occurred()) SWIG_fail;
3899 }
3900 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3901 {
3902 if (temp1)
3903 delete arg1;
3904 }
3905 return resultobj;
3906 fail:
3907 {
3908 if (temp1)
3909 delete arg1;
3910 }
3911 return NULL;
3912 }
3913
3914
3915 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3916 PyObject *resultobj = 0;
3917 unsigned long arg1 ;
3918 wxColour *result = 0 ;
3919 unsigned long val1 ;
3920 int ecode1 = 0 ;
3921 PyObject * obj0 = 0 ;
3922 char * kwnames[] = {
3923 (char *) "colRGB", NULL
3924 };
3925
3926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3927 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3928 if (!SWIG_IsOK(ecode1)) {
3929 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3930 }
3931 arg1 = static_cast< unsigned long >(val1);
3932 {
3933 PyThreadState* __tstate = wxPyBeginAllowThreads();
3934 result = (wxColour *)new wxColour(arg1);
3935 wxPyEndAllowThreads(__tstate);
3936 if (PyErr_Occurred()) SWIG_fail;
3937 }
3938 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3939 return resultobj;
3940 fail:
3941 return NULL;
3942 }
3943
3944
3945 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3946 PyObject *resultobj = 0;
3947 wxColour *arg1 = (wxColour *) 0 ;
3948 void *argp1 = 0 ;
3949 int res1 = 0 ;
3950 PyObject *swig_obj[1] ;
3951
3952 if (!args) SWIG_fail;
3953 swig_obj[0] = args;
3954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3955 if (!SWIG_IsOK(res1)) {
3956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3957 }
3958 arg1 = reinterpret_cast< wxColour * >(argp1);
3959 {
3960 PyThreadState* __tstate = wxPyBeginAllowThreads();
3961 delete arg1;
3962
3963 wxPyEndAllowThreads(__tstate);
3964 if (PyErr_Occurred()) SWIG_fail;
3965 }
3966 resultobj = SWIG_Py_Void();
3967 return resultobj;
3968 fail:
3969 return NULL;
3970 }
3971
3972
3973 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3974 PyObject *resultobj = 0;
3975 wxColour *arg1 = (wxColour *) 0 ;
3976 byte result;
3977 void *argp1 = 0 ;
3978 int res1 = 0 ;
3979 PyObject *swig_obj[1] ;
3980
3981 if (!args) SWIG_fail;
3982 swig_obj[0] = args;
3983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3984 if (!SWIG_IsOK(res1)) {
3985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3986 }
3987 arg1 = reinterpret_cast< wxColour * >(argp1);
3988 {
3989 PyThreadState* __tstate = wxPyBeginAllowThreads();
3990 result = (byte)(arg1)->Red();
3991 wxPyEndAllowThreads(__tstate);
3992 if (PyErr_Occurred()) SWIG_fail;
3993 }
3994 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3995 return resultobj;
3996 fail:
3997 return NULL;
3998 }
3999
4000
4001 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4002 PyObject *resultobj = 0;
4003 wxColour *arg1 = (wxColour *) 0 ;
4004 byte result;
4005 void *argp1 = 0 ;
4006 int res1 = 0 ;
4007 PyObject *swig_obj[1] ;
4008
4009 if (!args) SWIG_fail;
4010 swig_obj[0] = args;
4011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4012 if (!SWIG_IsOK(res1)) {
4013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4014 }
4015 arg1 = reinterpret_cast< wxColour * >(argp1);
4016 {
4017 PyThreadState* __tstate = wxPyBeginAllowThreads();
4018 result = (byte)(arg1)->Green();
4019 wxPyEndAllowThreads(__tstate);
4020 if (PyErr_Occurred()) SWIG_fail;
4021 }
4022 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4023 return resultobj;
4024 fail:
4025 return NULL;
4026 }
4027
4028
4029 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4030 PyObject *resultobj = 0;
4031 wxColour *arg1 = (wxColour *) 0 ;
4032 byte result;
4033 void *argp1 = 0 ;
4034 int res1 = 0 ;
4035 PyObject *swig_obj[1] ;
4036
4037 if (!args) SWIG_fail;
4038 swig_obj[0] = args;
4039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4040 if (!SWIG_IsOK(res1)) {
4041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4042 }
4043 arg1 = reinterpret_cast< wxColour * >(argp1);
4044 {
4045 PyThreadState* __tstate = wxPyBeginAllowThreads();
4046 result = (byte)(arg1)->Blue();
4047 wxPyEndAllowThreads(__tstate);
4048 if (PyErr_Occurred()) SWIG_fail;
4049 }
4050 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4051 return resultobj;
4052 fail:
4053 return NULL;
4054 }
4055
4056
4057 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4058 PyObject *resultobj = 0;
4059 wxColour *arg1 = (wxColour *) 0 ;
4060 byte result;
4061 void *argp1 = 0 ;
4062 int res1 = 0 ;
4063 PyObject *swig_obj[1] ;
4064
4065 if (!args) SWIG_fail;
4066 swig_obj[0] = args;
4067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4068 if (!SWIG_IsOK(res1)) {
4069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4070 }
4071 arg1 = reinterpret_cast< wxColour * >(argp1);
4072 {
4073 PyThreadState* __tstate = wxPyBeginAllowThreads();
4074 result = (byte)(arg1)->Alpha();
4075 wxPyEndAllowThreads(__tstate);
4076 if (PyErr_Occurred()) SWIG_fail;
4077 }
4078 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4079 return resultobj;
4080 fail:
4081 return NULL;
4082 }
4083
4084
4085 SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4086 PyObject *resultobj = 0;
4087 wxColour *arg1 = (wxColour *) 0 ;
4088 bool result;
4089 void *argp1 = 0 ;
4090 int res1 = 0 ;
4091 PyObject *swig_obj[1] ;
4092
4093 if (!args) SWIG_fail;
4094 swig_obj[0] = args;
4095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4096 if (!SWIG_IsOK(res1)) {
4097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
4098 }
4099 arg1 = reinterpret_cast< wxColour * >(argp1);
4100 {
4101 PyThreadState* __tstate = wxPyBeginAllowThreads();
4102 result = (bool)(arg1)->IsOk();
4103 wxPyEndAllowThreads(__tstate);
4104 if (PyErr_Occurred()) SWIG_fail;
4105 }
4106 {
4107 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4108 }
4109 return resultobj;
4110 fail:
4111 return NULL;
4112 }
4113
4114
4115 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4116 PyObject *resultobj = 0;
4117 wxColour *arg1 = (wxColour *) 0 ;
4118 byte arg2 ;
4119 byte arg3 ;
4120 byte arg4 ;
4121 byte arg5 = (byte) wxALPHA_OPAQUE ;
4122 void *argp1 = 0 ;
4123 int res1 = 0 ;
4124 unsigned char val2 ;
4125 int ecode2 = 0 ;
4126 unsigned char val3 ;
4127 int ecode3 = 0 ;
4128 unsigned char val4 ;
4129 int ecode4 = 0 ;
4130 unsigned char val5 ;
4131 int ecode5 = 0 ;
4132 PyObject * obj0 = 0 ;
4133 PyObject * obj1 = 0 ;
4134 PyObject * obj2 = 0 ;
4135 PyObject * obj3 = 0 ;
4136 PyObject * obj4 = 0 ;
4137 char * kwnames[] = {
4138 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4139 };
4140
4141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4143 if (!SWIG_IsOK(res1)) {
4144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4145 }
4146 arg1 = reinterpret_cast< wxColour * >(argp1);
4147 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4148 if (!SWIG_IsOK(ecode2)) {
4149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4150 }
4151 arg2 = static_cast< byte >(val2);
4152 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4153 if (!SWIG_IsOK(ecode3)) {
4154 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4155 }
4156 arg3 = static_cast< byte >(val3);
4157 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4158 if (!SWIG_IsOK(ecode4)) {
4159 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4160 }
4161 arg4 = static_cast< byte >(val4);
4162 if (obj4) {
4163 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4164 if (!SWIG_IsOK(ecode5)) {
4165 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4166 }
4167 arg5 = static_cast< byte >(val5);
4168 }
4169 {
4170 PyThreadState* __tstate = wxPyBeginAllowThreads();
4171 (arg1)->Set(arg2,arg3,arg4,arg5);
4172 wxPyEndAllowThreads(__tstate);
4173 if (PyErr_Occurred()) SWIG_fail;
4174 }
4175 resultobj = SWIG_Py_Void();
4176 return resultobj;
4177 fail:
4178 return NULL;
4179 }
4180
4181
4182 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4183 PyObject *resultobj = 0;
4184 wxColour *arg1 = (wxColour *) 0 ;
4185 unsigned long arg2 ;
4186 void *argp1 = 0 ;
4187 int res1 = 0 ;
4188 unsigned long val2 ;
4189 int ecode2 = 0 ;
4190 PyObject * obj0 = 0 ;
4191 PyObject * obj1 = 0 ;
4192 char * kwnames[] = {
4193 (char *) "self",(char *) "colRGB", NULL
4194 };
4195
4196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4198 if (!SWIG_IsOK(res1)) {
4199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4200 }
4201 arg1 = reinterpret_cast< wxColour * >(argp1);
4202 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4203 if (!SWIG_IsOK(ecode2)) {
4204 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4205 }
4206 arg2 = static_cast< unsigned long >(val2);
4207 {
4208 PyThreadState* __tstate = wxPyBeginAllowThreads();
4209 (arg1)->Set(arg2);
4210 wxPyEndAllowThreads(__tstate);
4211 if (PyErr_Occurred()) SWIG_fail;
4212 }
4213 resultobj = SWIG_Py_Void();
4214 return resultobj;
4215 fail:
4216 return NULL;
4217 }
4218
4219
4220 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4221 PyObject *resultobj = 0;
4222 wxColour *arg1 = (wxColour *) 0 ;
4223 wxString *arg2 = 0 ;
4224 void *argp1 = 0 ;
4225 int res1 = 0 ;
4226 bool temp2 = false ;
4227 PyObject * obj0 = 0 ;
4228 PyObject * obj1 = 0 ;
4229 char * kwnames[] = {
4230 (char *) "self",(char *) "colourName", NULL
4231 };
4232
4233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4235 if (!SWIG_IsOK(res1)) {
4236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4237 }
4238 arg1 = reinterpret_cast< wxColour * >(argp1);
4239 {
4240 arg2 = wxString_in_helper(obj1);
4241 if (arg2 == NULL) SWIG_fail;
4242 temp2 = true;
4243 }
4244 {
4245 PyThreadState* __tstate = wxPyBeginAllowThreads();
4246 (arg1)->Set((wxString const &)*arg2);
4247 wxPyEndAllowThreads(__tstate);
4248 if (PyErr_Occurred()) SWIG_fail;
4249 }
4250 resultobj = SWIG_Py_Void();
4251 {
4252 if (temp2)
4253 delete arg2;
4254 }
4255 return resultobj;
4256 fail:
4257 {
4258 if (temp2)
4259 delete arg2;
4260 }
4261 return NULL;
4262 }
4263
4264
4265 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4266 PyObject *resultobj = 0;
4267 wxColour *arg1 = (wxColour *) 0 ;
4268 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4269 wxString result;
4270 void *argp1 = 0 ;
4271 int res1 = 0 ;
4272 long val2 ;
4273 int ecode2 = 0 ;
4274 PyObject * obj0 = 0 ;
4275 PyObject * obj1 = 0 ;
4276 char * kwnames[] = {
4277 (char *) "self",(char *) "flags", NULL
4278 };
4279
4280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4282 if (!SWIG_IsOK(res1)) {
4283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4284 }
4285 arg1 = reinterpret_cast< wxColour * >(argp1);
4286 if (obj1) {
4287 ecode2 = SWIG_AsVal_long(obj1, &val2);
4288 if (!SWIG_IsOK(ecode2)) {
4289 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4290 }
4291 arg2 = static_cast< long >(val2);
4292 }
4293 {
4294 PyThreadState* __tstate = wxPyBeginAllowThreads();
4295 result = ((wxColour const *)arg1)->GetAsString(arg2);
4296 wxPyEndAllowThreads(__tstate);
4297 if (PyErr_Occurred()) SWIG_fail;
4298 }
4299 {
4300 #if wxUSE_UNICODE
4301 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4302 #else
4303 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4304 #endif
4305 }
4306 return resultobj;
4307 fail:
4308 return NULL;
4309 }
4310
4311
4312 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4313 PyObject *resultobj = 0;
4314 wxColour *arg1 = (wxColour *) 0 ;
4315 long result;
4316 void *argp1 = 0 ;
4317 int res1 = 0 ;
4318 PyObject *swig_obj[1] ;
4319
4320 if (!args) SWIG_fail;
4321 swig_obj[0] = args;
4322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4323 if (!SWIG_IsOK(res1)) {
4324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4325 }
4326 arg1 = reinterpret_cast< wxColour * >(argp1);
4327 {
4328 PyThreadState* __tstate = wxPyBeginAllowThreads();
4329 result = (long)((wxColour const *)arg1)->GetPixel();
4330 wxPyEndAllowThreads(__tstate);
4331 if (PyErr_Occurred()) SWIG_fail;
4332 }
4333 resultobj = SWIG_From_long(static_cast< long >(result));
4334 return resultobj;
4335 fail:
4336 return NULL;
4337 }
4338
4339
4340 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4341 PyObject *resultobj = 0;
4342 wxColour *arg1 = (wxColour *) 0 ;
4343 PyObject *arg2 = (PyObject *) 0 ;
4344 bool result;
4345 void *argp1 = 0 ;
4346 int res1 = 0 ;
4347 PyObject * obj0 = 0 ;
4348 PyObject * obj1 = 0 ;
4349 char * kwnames[] = {
4350 (char *) "self",(char *) "other", NULL
4351 };
4352
4353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4355 if (!SWIG_IsOK(res1)) {
4356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4357 }
4358 arg1 = reinterpret_cast< wxColour * >(argp1);
4359 arg2 = obj1;
4360 {
4361 result = (bool)wxColour___eq__(arg1,arg2);
4362 if (PyErr_Occurred()) SWIG_fail;
4363 }
4364 {
4365 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4366 }
4367 return resultobj;
4368 fail:
4369 return NULL;
4370 }
4371
4372
4373 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4374 PyObject *resultobj = 0;
4375 wxColour *arg1 = (wxColour *) 0 ;
4376 PyObject *arg2 = (PyObject *) 0 ;
4377 bool result;
4378 void *argp1 = 0 ;
4379 int res1 = 0 ;
4380 PyObject * obj0 = 0 ;
4381 PyObject * obj1 = 0 ;
4382 char * kwnames[] = {
4383 (char *) "self",(char *) "other", NULL
4384 };
4385
4386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4388 if (!SWIG_IsOK(res1)) {
4389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4390 }
4391 arg1 = reinterpret_cast< wxColour * >(argp1);
4392 arg2 = obj1;
4393 {
4394 result = (bool)wxColour___ne__(arg1,arg2);
4395 if (PyErr_Occurred()) SWIG_fail;
4396 }
4397 {
4398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4399 }
4400 return resultobj;
4401 fail:
4402 return NULL;
4403 }
4404
4405
4406 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4407 PyObject *resultobj = 0;
4408 wxColour *arg1 = (wxColour *) 0 ;
4409 bool arg2 = (bool) false ;
4410 PyObject *result = 0 ;
4411 void *argp1 = 0 ;
4412 int res1 = 0 ;
4413 bool val2 ;
4414 int ecode2 = 0 ;
4415 PyObject * obj0 = 0 ;
4416 PyObject * obj1 = 0 ;
4417 char * kwnames[] = {
4418 (char *) "self",(char *) "includeAlpha", NULL
4419 };
4420
4421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4423 if (!SWIG_IsOK(res1)) {
4424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4425 }
4426 arg1 = reinterpret_cast< wxColour * >(argp1);
4427 if (obj1) {
4428 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4429 if (!SWIG_IsOK(ecode2)) {
4430 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4431 }
4432 arg2 = static_cast< bool >(val2);
4433 }
4434 {
4435 result = (PyObject *)wxColour_Get(arg1,arg2);
4436 if (PyErr_Occurred()) SWIG_fail;
4437 }
4438 resultobj = result;
4439 return resultobj;
4440 fail:
4441 return NULL;
4442 }
4443
4444
4445 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4446 PyObject *resultobj = 0;
4447 wxColour *arg1 = (wxColour *) 0 ;
4448 unsigned long result;
4449 void *argp1 = 0 ;
4450 int res1 = 0 ;
4451 PyObject *swig_obj[1] ;
4452
4453 if (!args) SWIG_fail;
4454 swig_obj[0] = args;
4455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4456 if (!SWIG_IsOK(res1)) {
4457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4458 }
4459 arg1 = reinterpret_cast< wxColour * >(argp1);
4460 {
4461 result = (unsigned long)wxColour_GetRGB(arg1);
4462 if (PyErr_Occurred()) SWIG_fail;
4463 }
4464 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4465 return resultobj;
4466 fail:
4467 return NULL;
4468 }
4469
4470
4471 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4472 PyObject *obj;
4473 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4474 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4475 return SWIG_Py_Void();
4476 }
4477
4478 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4479 return SWIG_Python_InitShadowInstance(args);
4480 }
4481
4482 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4483 PyObject *resultobj = 0;
4484 int arg1 ;
4485 unsigned char *arg2 = (unsigned char *) 0 ;
4486 unsigned char *arg3 = (unsigned char *) 0 ;
4487 unsigned char *arg4 = (unsigned char *) 0 ;
4488 wxPalette *result = 0 ;
4489 int val1 ;
4490 int ecode1 = 0 ;
4491 void *argp2 = 0 ;
4492 int res2 = 0 ;
4493 void *argp3 = 0 ;
4494 int res3 = 0 ;
4495 void *argp4 = 0 ;
4496 int res4 = 0 ;
4497 PyObject * obj0 = 0 ;
4498 PyObject * obj1 = 0 ;
4499 PyObject * obj2 = 0 ;
4500 PyObject * obj3 = 0 ;
4501 char * kwnames[] = {
4502 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4503 };
4504
4505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4506 ecode1 = SWIG_AsVal_int(obj0, &val1);
4507 if (!SWIG_IsOK(ecode1)) {
4508 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4509 }
4510 arg1 = static_cast< int >(val1);
4511 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4512 if (!SWIG_IsOK(res2)) {
4513 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4514 }
4515 arg2 = reinterpret_cast< unsigned char * >(argp2);
4516 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4517 if (!SWIG_IsOK(res3)) {
4518 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4519 }
4520 arg3 = reinterpret_cast< unsigned char * >(argp3);
4521 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4522 if (!SWIG_IsOK(res4)) {
4523 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4524 }
4525 arg4 = reinterpret_cast< unsigned char * >(argp4);
4526 {
4527 if (!wxPyCheckForApp()) SWIG_fail;
4528 PyThreadState* __tstate = wxPyBeginAllowThreads();
4529 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4530 wxPyEndAllowThreads(__tstate);
4531 if (PyErr_Occurred()) SWIG_fail;
4532 }
4533 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4534 return resultobj;
4535 fail:
4536 return NULL;
4537 }
4538
4539
4540 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4541 PyObject *resultobj = 0;
4542 wxPalette *arg1 = (wxPalette *) 0 ;
4543 void *argp1 = 0 ;
4544 int res1 = 0 ;
4545 PyObject *swig_obj[1] ;
4546
4547 if (!args) SWIG_fail;
4548 swig_obj[0] = args;
4549 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4550 if (!SWIG_IsOK(res1)) {
4551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4552 }
4553 arg1 = reinterpret_cast< wxPalette * >(argp1);
4554 {
4555 PyThreadState* __tstate = wxPyBeginAllowThreads();
4556 delete arg1;
4557
4558 wxPyEndAllowThreads(__tstate);
4559 if (PyErr_Occurred()) SWIG_fail;
4560 }
4561 resultobj = SWIG_Py_Void();
4562 return resultobj;
4563 fail:
4564 return NULL;
4565 }
4566
4567
4568 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4569 PyObject *resultobj = 0;
4570 wxPalette *arg1 = (wxPalette *) 0 ;
4571 byte arg2 ;
4572 byte arg3 ;
4573 byte arg4 ;
4574 int result;
4575 void *argp1 = 0 ;
4576 int res1 = 0 ;
4577 unsigned char val2 ;
4578 int ecode2 = 0 ;
4579 unsigned char val3 ;
4580 int ecode3 = 0 ;
4581 unsigned char val4 ;
4582 int ecode4 = 0 ;
4583 PyObject * obj0 = 0 ;
4584 PyObject * obj1 = 0 ;
4585 PyObject * obj2 = 0 ;
4586 PyObject * obj3 = 0 ;
4587 char * kwnames[] = {
4588 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4589 };
4590
4591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4593 if (!SWIG_IsOK(res1)) {
4594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4595 }
4596 arg1 = reinterpret_cast< wxPalette * >(argp1);
4597 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4598 if (!SWIG_IsOK(ecode2)) {
4599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4600 }
4601 arg2 = static_cast< byte >(val2);
4602 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4603 if (!SWIG_IsOK(ecode3)) {
4604 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4605 }
4606 arg3 = static_cast< byte >(val3);
4607 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4608 if (!SWIG_IsOK(ecode4)) {
4609 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4610 }
4611 arg4 = static_cast< byte >(val4);
4612 {
4613 PyThreadState* __tstate = wxPyBeginAllowThreads();
4614 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4615 wxPyEndAllowThreads(__tstate);
4616 if (PyErr_Occurred()) SWIG_fail;
4617 }
4618 resultobj = SWIG_From_int(static_cast< int >(result));
4619 return resultobj;
4620 fail:
4621 return NULL;
4622 }
4623
4624
4625 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4626 PyObject *resultobj = 0;
4627 wxPalette *arg1 = (wxPalette *) 0 ;
4628 int arg2 ;
4629 byte *arg3 = (byte *) 0 ;
4630 byte *arg4 = (byte *) 0 ;
4631 byte *arg5 = (byte *) 0 ;
4632 bool result;
4633 void *argp1 = 0 ;
4634 int res1 = 0 ;
4635 int val2 ;
4636 int ecode2 = 0 ;
4637 byte temp3 ;
4638 int res3 = SWIG_TMPOBJ ;
4639 byte temp4 ;
4640 int res4 = SWIG_TMPOBJ ;
4641 byte temp5 ;
4642 int res5 = SWIG_TMPOBJ ;
4643 PyObject * obj0 = 0 ;
4644 PyObject * obj1 = 0 ;
4645 char * kwnames[] = {
4646 (char *) "self",(char *) "pixel", NULL
4647 };
4648
4649 arg3 = &temp3;
4650 arg4 = &temp4;
4651 arg5 = &temp5;
4652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4654 if (!SWIG_IsOK(res1)) {
4655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4656 }
4657 arg1 = reinterpret_cast< wxPalette * >(argp1);
4658 ecode2 = SWIG_AsVal_int(obj1, &val2);
4659 if (!SWIG_IsOK(ecode2)) {
4660 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4661 }
4662 arg2 = static_cast< int >(val2);
4663 {
4664 PyThreadState* __tstate = wxPyBeginAllowThreads();
4665 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4666 wxPyEndAllowThreads(__tstate);
4667 if (PyErr_Occurred()) SWIG_fail;
4668 }
4669 {
4670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4671 }
4672 if (SWIG_IsTmpObj(res3)) {
4673 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4674 } else {
4675 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4676 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4677 }
4678 if (SWIG_IsTmpObj(res4)) {
4679 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4680 } else {
4681 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4682 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4683 }
4684 if (SWIG_IsTmpObj(res5)) {
4685 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4686 } else {
4687 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4688 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4689 }
4690 return resultobj;
4691 fail:
4692 return NULL;
4693 }
4694
4695
4696 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4697 PyObject *resultobj = 0;
4698 wxPalette *arg1 = (wxPalette *) 0 ;
4699 int result;
4700 void *argp1 = 0 ;
4701 int res1 = 0 ;
4702 PyObject *swig_obj[1] ;
4703
4704 if (!args) SWIG_fail;
4705 swig_obj[0] = args;
4706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4707 if (!SWIG_IsOK(res1)) {
4708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4709 }
4710 arg1 = reinterpret_cast< wxPalette * >(argp1);
4711 {
4712 PyThreadState* __tstate = wxPyBeginAllowThreads();
4713 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4714 wxPyEndAllowThreads(__tstate);
4715 if (PyErr_Occurred()) SWIG_fail;
4716 }
4717 resultobj = SWIG_From_int(static_cast< int >(result));
4718 return resultobj;
4719 fail:
4720 return NULL;
4721 }
4722
4723
4724 SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4725 PyObject *resultobj = 0;
4726 wxPalette *arg1 = (wxPalette *) 0 ;
4727 bool result;
4728 void *argp1 = 0 ;
4729 int res1 = 0 ;
4730 PyObject *swig_obj[1] ;
4731
4732 if (!args) SWIG_fail;
4733 swig_obj[0] = args;
4734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4735 if (!SWIG_IsOK(res1)) {
4736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
4737 }
4738 arg1 = reinterpret_cast< wxPalette * >(argp1);
4739 {
4740 PyThreadState* __tstate = wxPyBeginAllowThreads();
4741 result = (bool)(arg1)->IsOk();
4742 wxPyEndAllowThreads(__tstate);
4743 if (PyErr_Occurred()) SWIG_fail;
4744 }
4745 {
4746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4747 }
4748 return resultobj;
4749 fail:
4750 return NULL;
4751 }
4752
4753
4754 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4755 PyObject *obj;
4756 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4757 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4758 return SWIG_Py_Void();
4759 }
4760
4761 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4762 return SWIG_Python_InitShadowInstance(args);
4763 }
4764
4765 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4766 PyObject *resultobj = 0;
4767 wxColour *arg1 = 0 ;
4768 int arg2 = (int) 1 ;
4769 int arg3 = (int) wxSOLID ;
4770 wxPen *result = 0 ;
4771 wxColour temp1 ;
4772 int val2 ;
4773 int ecode2 = 0 ;
4774 int val3 ;
4775 int ecode3 = 0 ;
4776 PyObject * obj0 = 0 ;
4777 PyObject * obj1 = 0 ;
4778 PyObject * obj2 = 0 ;
4779 char * kwnames[] = {
4780 (char *) "colour",(char *) "width",(char *) "style", NULL
4781 };
4782
4783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4784 {
4785 arg1 = &temp1;
4786 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4787 }
4788 if (obj1) {
4789 ecode2 = SWIG_AsVal_int(obj1, &val2);
4790 if (!SWIG_IsOK(ecode2)) {
4791 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4792 }
4793 arg2 = static_cast< int >(val2);
4794 }
4795 if (obj2) {
4796 ecode3 = SWIG_AsVal_int(obj2, &val3);
4797 if (!SWIG_IsOK(ecode3)) {
4798 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4799 }
4800 arg3 = static_cast< int >(val3);
4801 }
4802 {
4803 if (!wxPyCheckForApp()) SWIG_fail;
4804 PyThreadState* __tstate = wxPyBeginAllowThreads();
4805 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4806 wxPyEndAllowThreads(__tstate);
4807 if (PyErr_Occurred()) SWIG_fail;
4808 }
4809 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4810 return resultobj;
4811 fail:
4812 return NULL;
4813 }
4814
4815
4816 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4817 PyObject *resultobj = 0;
4818 wxPen *arg1 = (wxPen *) 0 ;
4819 void *argp1 = 0 ;
4820 int res1 = 0 ;
4821 PyObject *swig_obj[1] ;
4822
4823 if (!args) SWIG_fail;
4824 swig_obj[0] = args;
4825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4826 if (!SWIG_IsOK(res1)) {
4827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4828 }
4829 arg1 = reinterpret_cast< wxPen * >(argp1);
4830 {
4831 PyThreadState* __tstate = wxPyBeginAllowThreads();
4832 delete arg1;
4833
4834 wxPyEndAllowThreads(__tstate);
4835 if (PyErr_Occurred()) SWIG_fail;
4836 }
4837 resultobj = SWIG_Py_Void();
4838 return resultobj;
4839 fail:
4840 return NULL;
4841 }
4842
4843
4844 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4845 PyObject *resultobj = 0;
4846 wxPen *arg1 = (wxPen *) 0 ;
4847 int result;
4848 void *argp1 = 0 ;
4849 int res1 = 0 ;
4850 PyObject *swig_obj[1] ;
4851
4852 if (!args) SWIG_fail;
4853 swig_obj[0] = args;
4854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4855 if (!SWIG_IsOK(res1)) {
4856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4857 }
4858 arg1 = reinterpret_cast< wxPen * >(argp1);
4859 {
4860 PyThreadState* __tstate = wxPyBeginAllowThreads();
4861 result = (int)(arg1)->GetCap();
4862 wxPyEndAllowThreads(__tstate);
4863 if (PyErr_Occurred()) SWIG_fail;
4864 }
4865 resultobj = SWIG_From_int(static_cast< int >(result));
4866 return resultobj;
4867 fail:
4868 return NULL;
4869 }
4870
4871
4872 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4873 PyObject *resultobj = 0;
4874 wxPen *arg1 = (wxPen *) 0 ;
4875 wxColour result;
4876 void *argp1 = 0 ;
4877 int res1 = 0 ;
4878 PyObject *swig_obj[1] ;
4879
4880 if (!args) SWIG_fail;
4881 swig_obj[0] = args;
4882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4883 if (!SWIG_IsOK(res1)) {
4884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4885 }
4886 arg1 = reinterpret_cast< wxPen * >(argp1);
4887 {
4888 PyThreadState* __tstate = wxPyBeginAllowThreads();
4889 result = (arg1)->GetColour();
4890 wxPyEndAllowThreads(__tstate);
4891 if (PyErr_Occurred()) SWIG_fail;
4892 }
4893 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4894 return resultobj;
4895 fail:
4896 return NULL;
4897 }
4898
4899
4900 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4901 PyObject *resultobj = 0;
4902 wxPen *arg1 = (wxPen *) 0 ;
4903 int result;
4904 void *argp1 = 0 ;
4905 int res1 = 0 ;
4906 PyObject *swig_obj[1] ;
4907
4908 if (!args) SWIG_fail;
4909 swig_obj[0] = args;
4910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4911 if (!SWIG_IsOK(res1)) {
4912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4913 }
4914 arg1 = reinterpret_cast< wxPen * >(argp1);
4915 {
4916 PyThreadState* __tstate = wxPyBeginAllowThreads();
4917 result = (int)(arg1)->GetJoin();
4918 wxPyEndAllowThreads(__tstate);
4919 if (PyErr_Occurred()) SWIG_fail;
4920 }
4921 resultobj = SWIG_From_int(static_cast< int >(result));
4922 return resultobj;
4923 fail:
4924 return NULL;
4925 }
4926
4927
4928 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4929 PyObject *resultobj = 0;
4930 wxPen *arg1 = (wxPen *) 0 ;
4931 int result;
4932 void *argp1 = 0 ;
4933 int res1 = 0 ;
4934 PyObject *swig_obj[1] ;
4935
4936 if (!args) SWIG_fail;
4937 swig_obj[0] = args;
4938 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4939 if (!SWIG_IsOK(res1)) {
4940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4941 }
4942 arg1 = reinterpret_cast< wxPen * >(argp1);
4943 {
4944 PyThreadState* __tstate = wxPyBeginAllowThreads();
4945 result = (int)(arg1)->GetStyle();
4946 wxPyEndAllowThreads(__tstate);
4947 if (PyErr_Occurred()) SWIG_fail;
4948 }
4949 resultobj = SWIG_From_int(static_cast< int >(result));
4950 return resultobj;
4951 fail:
4952 return NULL;
4953 }
4954
4955
4956 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4957 PyObject *resultobj = 0;
4958 wxPen *arg1 = (wxPen *) 0 ;
4959 int result;
4960 void *argp1 = 0 ;
4961 int res1 = 0 ;
4962 PyObject *swig_obj[1] ;
4963
4964 if (!args) SWIG_fail;
4965 swig_obj[0] = args;
4966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4967 if (!SWIG_IsOK(res1)) {
4968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4969 }
4970 arg1 = reinterpret_cast< wxPen * >(argp1);
4971 {
4972 PyThreadState* __tstate = wxPyBeginAllowThreads();
4973 result = (int)(arg1)->GetWidth();
4974 wxPyEndAllowThreads(__tstate);
4975 if (PyErr_Occurred()) SWIG_fail;
4976 }
4977 resultobj = SWIG_From_int(static_cast< int >(result));
4978 return resultobj;
4979 fail:
4980 return NULL;
4981 }
4982
4983
4984 SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4985 PyObject *resultobj = 0;
4986 wxPen *arg1 = (wxPen *) 0 ;
4987 bool result;
4988 void *argp1 = 0 ;
4989 int res1 = 0 ;
4990 PyObject *swig_obj[1] ;
4991
4992 if (!args) SWIG_fail;
4993 swig_obj[0] = args;
4994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4995 if (!SWIG_IsOK(res1)) {
4996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
4997 }
4998 arg1 = reinterpret_cast< wxPen * >(argp1);
4999 {
5000 PyThreadState* __tstate = wxPyBeginAllowThreads();
5001 result = (bool)(arg1)->IsOk();
5002 wxPyEndAllowThreads(__tstate);
5003 if (PyErr_Occurred()) SWIG_fail;
5004 }
5005 {
5006 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5007 }
5008 return resultobj;
5009 fail:
5010 return NULL;
5011 }
5012
5013
5014 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5015 PyObject *resultobj = 0;
5016 wxPen *arg1 = (wxPen *) 0 ;
5017 int arg2 ;
5018 void *argp1 = 0 ;
5019 int res1 = 0 ;
5020 int val2 ;
5021 int ecode2 = 0 ;
5022 PyObject * obj0 = 0 ;
5023 PyObject * obj1 = 0 ;
5024 char * kwnames[] = {
5025 (char *) "self",(char *) "cap_style", NULL
5026 };
5027
5028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5030 if (!SWIG_IsOK(res1)) {
5031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5032 }
5033 arg1 = reinterpret_cast< wxPen * >(argp1);
5034 ecode2 = SWIG_AsVal_int(obj1, &val2);
5035 if (!SWIG_IsOK(ecode2)) {
5036 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5037 }
5038 arg2 = static_cast< int >(val2);
5039 {
5040 PyThreadState* __tstate = wxPyBeginAllowThreads();
5041 (arg1)->SetCap(arg2);
5042 wxPyEndAllowThreads(__tstate);
5043 if (PyErr_Occurred()) SWIG_fail;
5044 }
5045 resultobj = SWIG_Py_Void();
5046 return resultobj;
5047 fail:
5048 return NULL;
5049 }
5050
5051
5052 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5053 PyObject *resultobj = 0;
5054 wxPen *arg1 = (wxPen *) 0 ;
5055 wxColour *arg2 = 0 ;
5056 void *argp1 = 0 ;
5057 int res1 = 0 ;
5058 wxColour temp2 ;
5059 PyObject * obj0 = 0 ;
5060 PyObject * obj1 = 0 ;
5061 char * kwnames[] = {
5062 (char *) "self",(char *) "colour", NULL
5063 };
5064
5065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5067 if (!SWIG_IsOK(res1)) {
5068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5069 }
5070 arg1 = reinterpret_cast< wxPen * >(argp1);
5071 {
5072 arg2 = &temp2;
5073 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5074 }
5075 {
5076 PyThreadState* __tstate = wxPyBeginAllowThreads();
5077 (arg1)->SetColour(*arg2);
5078 wxPyEndAllowThreads(__tstate);
5079 if (PyErr_Occurred()) SWIG_fail;
5080 }
5081 resultobj = SWIG_Py_Void();
5082 return resultobj;
5083 fail:
5084 return NULL;
5085 }
5086
5087
5088 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5089 PyObject *resultobj = 0;
5090 wxPen *arg1 = (wxPen *) 0 ;
5091 int arg2 ;
5092 void *argp1 = 0 ;
5093 int res1 = 0 ;
5094 int val2 ;
5095 int ecode2 = 0 ;
5096 PyObject * obj0 = 0 ;
5097 PyObject * obj1 = 0 ;
5098 char * kwnames[] = {
5099 (char *) "self",(char *) "join_style", NULL
5100 };
5101
5102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5104 if (!SWIG_IsOK(res1)) {
5105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5106 }
5107 arg1 = reinterpret_cast< wxPen * >(argp1);
5108 ecode2 = SWIG_AsVal_int(obj1, &val2);
5109 if (!SWIG_IsOK(ecode2)) {
5110 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5111 }
5112 arg2 = static_cast< int >(val2);
5113 {
5114 PyThreadState* __tstate = wxPyBeginAllowThreads();
5115 (arg1)->SetJoin(arg2);
5116 wxPyEndAllowThreads(__tstate);
5117 if (PyErr_Occurred()) SWIG_fail;
5118 }
5119 resultobj = SWIG_Py_Void();
5120 return resultobj;
5121 fail:
5122 return NULL;
5123 }
5124
5125
5126 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5127 PyObject *resultobj = 0;
5128 wxPen *arg1 = (wxPen *) 0 ;
5129 int arg2 ;
5130 void *argp1 = 0 ;
5131 int res1 = 0 ;
5132 int val2 ;
5133 int ecode2 = 0 ;
5134 PyObject * obj0 = 0 ;
5135 PyObject * obj1 = 0 ;
5136 char * kwnames[] = {
5137 (char *) "self",(char *) "style", NULL
5138 };
5139
5140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5142 if (!SWIG_IsOK(res1)) {
5143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5144 }
5145 arg1 = reinterpret_cast< wxPen * >(argp1);
5146 ecode2 = SWIG_AsVal_int(obj1, &val2);
5147 if (!SWIG_IsOK(ecode2)) {
5148 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5149 }
5150 arg2 = static_cast< int >(val2);
5151 {
5152 PyThreadState* __tstate = wxPyBeginAllowThreads();
5153 (arg1)->SetStyle(arg2);
5154 wxPyEndAllowThreads(__tstate);
5155 if (PyErr_Occurred()) SWIG_fail;
5156 }
5157 resultobj = SWIG_Py_Void();
5158 return resultobj;
5159 fail:
5160 return NULL;
5161 }
5162
5163
5164 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5165 PyObject *resultobj = 0;
5166 wxPen *arg1 = (wxPen *) 0 ;
5167 int arg2 ;
5168 void *argp1 = 0 ;
5169 int res1 = 0 ;
5170 int val2 ;
5171 int ecode2 = 0 ;
5172 PyObject * obj0 = 0 ;
5173 PyObject * obj1 = 0 ;
5174 char * kwnames[] = {
5175 (char *) "self",(char *) "width", NULL
5176 };
5177
5178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5180 if (!SWIG_IsOK(res1)) {
5181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5182 }
5183 arg1 = reinterpret_cast< wxPen * >(argp1);
5184 ecode2 = SWIG_AsVal_int(obj1, &val2);
5185 if (!SWIG_IsOK(ecode2)) {
5186 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5187 }
5188 arg2 = static_cast< int >(val2);
5189 {
5190 PyThreadState* __tstate = wxPyBeginAllowThreads();
5191 (arg1)->SetWidth(arg2);
5192 wxPyEndAllowThreads(__tstate);
5193 if (PyErr_Occurred()) SWIG_fail;
5194 }
5195 resultobj = SWIG_Py_Void();
5196 return resultobj;
5197 fail:
5198 return NULL;
5199 }
5200
5201
5202 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5203 PyObject *resultobj = 0;
5204 wxPen *arg1 = (wxPen *) 0 ;
5205 int arg2 ;
5206 wxDash *arg3 = (wxDash *) 0 ;
5207 void *argp1 = 0 ;
5208 int res1 = 0 ;
5209 PyObject * obj0 = 0 ;
5210 PyObject * obj1 = 0 ;
5211 char * kwnames[] = {
5212 (char *) "self",(char *) "dashes", NULL
5213 };
5214
5215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5217 if (!SWIG_IsOK(res1)) {
5218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5219 }
5220 arg1 = reinterpret_cast< wxPen * >(argp1);
5221 {
5222 arg2 = PyList_Size(obj1);
5223 arg3 = (wxDash*)byte_LIST_helper(obj1);
5224 if (arg3 == NULL) SWIG_fail;
5225 }
5226 {
5227 PyThreadState* __tstate = wxPyBeginAllowThreads();
5228 (arg1)->SetDashes(arg2,arg3);
5229 wxPyEndAllowThreads(__tstate);
5230 if (PyErr_Occurred()) SWIG_fail;
5231 }
5232 resultobj = SWIG_Py_Void();
5233 {
5234 if (arg3) delete [] arg3;
5235 }
5236 return resultobj;
5237 fail:
5238 {
5239 if (arg3) delete [] arg3;
5240 }
5241 return NULL;
5242 }
5243
5244
5245 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5246 PyObject *resultobj = 0;
5247 wxPen *arg1 = (wxPen *) 0 ;
5248 PyObject *result = 0 ;
5249 void *argp1 = 0 ;
5250 int res1 = 0 ;
5251 PyObject *swig_obj[1] ;
5252
5253 if (!args) SWIG_fail;
5254 swig_obj[0] = args;
5255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5256 if (!SWIG_IsOK(res1)) {
5257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5258 }
5259 arg1 = reinterpret_cast< wxPen * >(argp1);
5260 {
5261 PyThreadState* __tstate = wxPyBeginAllowThreads();
5262 result = (PyObject *)wxPen_GetDashes(arg1);
5263 wxPyEndAllowThreads(__tstate);
5264 if (PyErr_Occurred()) SWIG_fail;
5265 }
5266 resultobj = result;
5267 return resultobj;
5268 fail:
5269 return NULL;
5270 }
5271
5272
5273 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5274 PyObject *resultobj = 0;
5275 wxPen *arg1 = (wxPen *) 0 ;
5276 PyObject *arg2 = (PyObject *) 0 ;
5277 PyObject *arg3 = (PyObject *) 0 ;
5278 void *argp1 = 0 ;
5279 int res1 = 0 ;
5280 PyObject * obj0 = 0 ;
5281 PyObject * obj1 = 0 ;
5282 PyObject * obj2 = 0 ;
5283 char * kwnames[] = {
5284 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5285 };
5286
5287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5289 if (!SWIG_IsOK(res1)) {
5290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5291 }
5292 arg1 = reinterpret_cast< wxPen * >(argp1);
5293 arg2 = obj1;
5294 arg3 = obj2;
5295 {
5296 PyThreadState* __tstate = wxPyBeginAllowThreads();
5297 wxPen__SetDashes(arg1,arg2,arg3);
5298 wxPyEndAllowThreads(__tstate);
5299 if (PyErr_Occurred()) SWIG_fail;
5300 }
5301 resultobj = SWIG_Py_Void();
5302 return resultobj;
5303 fail:
5304 return NULL;
5305 }
5306
5307
5308 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5309 PyObject *resultobj = 0;
5310 wxPen *arg1 = (wxPen *) 0 ;
5311 int result;
5312 void *argp1 = 0 ;
5313 int res1 = 0 ;
5314 PyObject *swig_obj[1] ;
5315
5316 if (!args) SWIG_fail;
5317 swig_obj[0] = args;
5318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5319 if (!SWIG_IsOK(res1)) {
5320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5321 }
5322 arg1 = reinterpret_cast< wxPen * >(argp1);
5323 {
5324 PyThreadState* __tstate = wxPyBeginAllowThreads();
5325 result = (int)((wxPen const *)arg1)->GetDashCount();
5326 wxPyEndAllowThreads(__tstate);
5327 if (PyErr_Occurred()) SWIG_fail;
5328 }
5329 resultobj = SWIG_From_int(static_cast< int >(result));
5330 return resultobj;
5331 fail:
5332 return NULL;
5333 }
5334
5335
5336 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5337 PyObject *resultobj = 0;
5338 wxPen *arg1 = (wxPen *) 0 ;
5339 wxPen *arg2 = (wxPen *) 0 ;
5340 bool result;
5341 void *argp1 = 0 ;
5342 int res1 = 0 ;
5343 void *argp2 = 0 ;
5344 int res2 = 0 ;
5345 PyObject * obj0 = 0 ;
5346 PyObject * obj1 = 0 ;
5347 char * kwnames[] = {
5348 (char *) "self",(char *) "other", NULL
5349 };
5350
5351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5353 if (!SWIG_IsOK(res1)) {
5354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5355 }
5356 arg1 = reinterpret_cast< wxPen * >(argp1);
5357 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5358 if (!SWIG_IsOK(res2)) {
5359 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5360 }
5361 arg2 = reinterpret_cast< wxPen * >(argp2);
5362 {
5363 PyThreadState* __tstate = wxPyBeginAllowThreads();
5364 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5365 wxPyEndAllowThreads(__tstate);
5366 if (PyErr_Occurred()) SWIG_fail;
5367 }
5368 {
5369 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5370 }
5371 return resultobj;
5372 fail:
5373 return NULL;
5374 }
5375
5376
5377 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5378 PyObject *resultobj = 0;
5379 wxPen *arg1 = (wxPen *) 0 ;
5380 wxPen *arg2 = (wxPen *) 0 ;
5381 bool result;
5382 void *argp1 = 0 ;
5383 int res1 = 0 ;
5384 void *argp2 = 0 ;
5385 int res2 = 0 ;
5386 PyObject * obj0 = 0 ;
5387 PyObject * obj1 = 0 ;
5388 char * kwnames[] = {
5389 (char *) "self",(char *) "other", NULL
5390 };
5391
5392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5394 if (!SWIG_IsOK(res1)) {
5395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5396 }
5397 arg1 = reinterpret_cast< wxPen * >(argp1);
5398 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5399 if (!SWIG_IsOK(res2)) {
5400 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5401 }
5402 arg2 = reinterpret_cast< wxPen * >(argp2);
5403 {
5404 PyThreadState* __tstate = wxPyBeginAllowThreads();
5405 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5406 wxPyEndAllowThreads(__tstate);
5407 if (PyErr_Occurred()) SWIG_fail;
5408 }
5409 {
5410 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5411 }
5412 return resultobj;
5413 fail:
5414 return NULL;
5415 }
5416
5417
5418 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5419 PyObject *obj;
5420 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5421 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5422 return SWIG_Py_Void();
5423 }
5424
5425 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5426 return SWIG_Python_InitShadowInstance(args);
5427 }
5428
5429 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5430 PyObject *resultobj = 0;
5431 wxColour *arg1 = 0 ;
5432 int arg2 = (int) wxSOLID ;
5433 wxBrush *result = 0 ;
5434 wxColour temp1 ;
5435 int val2 ;
5436 int ecode2 = 0 ;
5437 PyObject * obj0 = 0 ;
5438 PyObject * obj1 = 0 ;
5439 char * kwnames[] = {
5440 (char *) "colour",(char *) "style", NULL
5441 };
5442
5443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5444 {
5445 arg1 = &temp1;
5446 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5447 }
5448 if (obj1) {
5449 ecode2 = SWIG_AsVal_int(obj1, &val2);
5450 if (!SWIG_IsOK(ecode2)) {
5451 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5452 }
5453 arg2 = static_cast< int >(val2);
5454 }
5455 {
5456 if (!wxPyCheckForApp()) SWIG_fail;
5457 PyThreadState* __tstate = wxPyBeginAllowThreads();
5458 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5459 wxPyEndAllowThreads(__tstate);
5460 if (PyErr_Occurred()) SWIG_fail;
5461 }
5462 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5463 return resultobj;
5464 fail:
5465 return NULL;
5466 }
5467
5468
5469 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5470 PyObject *resultobj = 0;
5471 wxBitmap *arg1 = 0 ;
5472 wxBrush *result = 0 ;
5473 void *argp1 = 0 ;
5474 int res1 = 0 ;
5475 PyObject * obj0 = 0 ;
5476 char * kwnames[] = {
5477 (char *) "stippleBitmap", NULL
5478 };
5479
5480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5481 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5482 if (!SWIG_IsOK(res1)) {
5483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5484 }
5485 if (!argp1) {
5486 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5487 }
5488 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5489 {
5490 if (!wxPyCheckForApp()) SWIG_fail;
5491 PyThreadState* __tstate = wxPyBeginAllowThreads();
5492 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5493 wxPyEndAllowThreads(__tstate);
5494 if (PyErr_Occurred()) SWIG_fail;
5495 }
5496 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5497 return resultobj;
5498 fail:
5499 return NULL;
5500 }
5501
5502
5503 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5504 PyObject *resultobj = 0;
5505 wxBrush *arg1 = (wxBrush *) 0 ;
5506 void *argp1 = 0 ;
5507 int res1 = 0 ;
5508 PyObject *swig_obj[1] ;
5509
5510 if (!args) SWIG_fail;
5511 swig_obj[0] = args;
5512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5513 if (!SWIG_IsOK(res1)) {
5514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5515 }
5516 arg1 = reinterpret_cast< wxBrush * >(argp1);
5517 {
5518 PyThreadState* __tstate = wxPyBeginAllowThreads();
5519 delete arg1;
5520
5521 wxPyEndAllowThreads(__tstate);
5522 if (PyErr_Occurred()) SWIG_fail;
5523 }
5524 resultobj = SWIG_Py_Void();
5525 return resultobj;
5526 fail:
5527 return NULL;
5528 }
5529
5530
5531 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5532 PyObject *resultobj = 0;
5533 wxBrush *arg1 = (wxBrush *) 0 ;
5534 wxColour *arg2 = 0 ;
5535 void *argp1 = 0 ;
5536 int res1 = 0 ;
5537 wxColour temp2 ;
5538 PyObject * obj0 = 0 ;
5539 PyObject * obj1 = 0 ;
5540 char * kwnames[] = {
5541 (char *) "self",(char *) "col", NULL
5542 };
5543
5544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5546 if (!SWIG_IsOK(res1)) {
5547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5548 }
5549 arg1 = reinterpret_cast< wxBrush * >(argp1);
5550 {
5551 arg2 = &temp2;
5552 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5553 }
5554 {
5555 PyThreadState* __tstate = wxPyBeginAllowThreads();
5556 (arg1)->SetColour((wxColour const &)*arg2);
5557 wxPyEndAllowThreads(__tstate);
5558 if (PyErr_Occurred()) SWIG_fail;
5559 }
5560 resultobj = SWIG_Py_Void();
5561 return resultobj;
5562 fail:
5563 return NULL;
5564 }
5565
5566
5567 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5568 PyObject *resultobj = 0;
5569 wxBrush *arg1 = (wxBrush *) 0 ;
5570 int arg2 ;
5571 void *argp1 = 0 ;
5572 int res1 = 0 ;
5573 int val2 ;
5574 int ecode2 = 0 ;
5575 PyObject * obj0 = 0 ;
5576 PyObject * obj1 = 0 ;
5577 char * kwnames[] = {
5578 (char *) "self",(char *) "style", NULL
5579 };
5580
5581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5583 if (!SWIG_IsOK(res1)) {
5584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5585 }
5586 arg1 = reinterpret_cast< wxBrush * >(argp1);
5587 ecode2 = SWIG_AsVal_int(obj1, &val2);
5588 if (!SWIG_IsOK(ecode2)) {
5589 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5590 }
5591 arg2 = static_cast< int >(val2);
5592 {
5593 PyThreadState* __tstate = wxPyBeginAllowThreads();
5594 (arg1)->SetStyle(arg2);
5595 wxPyEndAllowThreads(__tstate);
5596 if (PyErr_Occurred()) SWIG_fail;
5597 }
5598 resultobj = SWIG_Py_Void();
5599 return resultobj;
5600 fail:
5601 return NULL;
5602 }
5603
5604
5605 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5606 PyObject *resultobj = 0;
5607 wxBrush *arg1 = (wxBrush *) 0 ;
5608 wxBitmap *arg2 = 0 ;
5609 void *argp1 = 0 ;
5610 int res1 = 0 ;
5611 void *argp2 = 0 ;
5612 int res2 = 0 ;
5613 PyObject * obj0 = 0 ;
5614 PyObject * obj1 = 0 ;
5615 char * kwnames[] = {
5616 (char *) "self",(char *) "stipple", NULL
5617 };
5618
5619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5621 if (!SWIG_IsOK(res1)) {
5622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5623 }
5624 arg1 = reinterpret_cast< wxBrush * >(argp1);
5625 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5626 if (!SWIG_IsOK(res2)) {
5627 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5628 }
5629 if (!argp2) {
5630 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5631 }
5632 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5633 {
5634 PyThreadState* __tstate = wxPyBeginAllowThreads();
5635 (arg1)->SetStipple((wxBitmap const &)*arg2);
5636 wxPyEndAllowThreads(__tstate);
5637 if (PyErr_Occurred()) SWIG_fail;
5638 }
5639 resultobj = SWIG_Py_Void();
5640 return resultobj;
5641 fail:
5642 return NULL;
5643 }
5644
5645
5646 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5647 PyObject *resultobj = 0;
5648 wxBrush *arg1 = (wxBrush *) 0 ;
5649 wxColour result;
5650 void *argp1 = 0 ;
5651 int res1 = 0 ;
5652 PyObject *swig_obj[1] ;
5653
5654 if (!args) SWIG_fail;
5655 swig_obj[0] = args;
5656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5657 if (!SWIG_IsOK(res1)) {
5658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5659 }
5660 arg1 = reinterpret_cast< wxBrush * >(argp1);
5661 {
5662 PyThreadState* __tstate = wxPyBeginAllowThreads();
5663 result = ((wxBrush const *)arg1)->GetColour();
5664 wxPyEndAllowThreads(__tstate);
5665 if (PyErr_Occurred()) SWIG_fail;
5666 }
5667 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5668 return resultobj;
5669 fail:
5670 return NULL;
5671 }
5672
5673
5674 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5675 PyObject *resultobj = 0;
5676 wxBrush *arg1 = (wxBrush *) 0 ;
5677 int result;
5678 void *argp1 = 0 ;
5679 int res1 = 0 ;
5680 PyObject *swig_obj[1] ;
5681
5682 if (!args) SWIG_fail;
5683 swig_obj[0] = args;
5684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5685 if (!SWIG_IsOK(res1)) {
5686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5687 }
5688 arg1 = reinterpret_cast< wxBrush * >(argp1);
5689 {
5690 PyThreadState* __tstate = wxPyBeginAllowThreads();
5691 result = (int)((wxBrush const *)arg1)->GetStyle();
5692 wxPyEndAllowThreads(__tstate);
5693 if (PyErr_Occurred()) SWIG_fail;
5694 }
5695 resultobj = SWIG_From_int(static_cast< int >(result));
5696 return resultobj;
5697 fail:
5698 return NULL;
5699 }
5700
5701
5702 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5703 PyObject *resultobj = 0;
5704 wxBrush *arg1 = (wxBrush *) 0 ;
5705 wxBitmap *result = 0 ;
5706 void *argp1 = 0 ;
5707 int res1 = 0 ;
5708 PyObject *swig_obj[1] ;
5709
5710 if (!args) SWIG_fail;
5711 swig_obj[0] = args;
5712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5713 if (!SWIG_IsOK(res1)) {
5714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5715 }
5716 arg1 = reinterpret_cast< wxBrush * >(argp1);
5717 {
5718 PyThreadState* __tstate = wxPyBeginAllowThreads();
5719 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5720 wxPyEndAllowThreads(__tstate);
5721 if (PyErr_Occurred()) SWIG_fail;
5722 }
5723 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5724 return resultobj;
5725 fail:
5726 return NULL;
5727 }
5728
5729
5730 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5731 PyObject *resultobj = 0;
5732 wxBrush *arg1 = (wxBrush *) 0 ;
5733 bool result;
5734 void *argp1 = 0 ;
5735 int res1 = 0 ;
5736 PyObject *swig_obj[1] ;
5737
5738 if (!args) SWIG_fail;
5739 swig_obj[0] = args;
5740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5741 if (!SWIG_IsOK(res1)) {
5742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5743 }
5744 arg1 = reinterpret_cast< wxBrush * >(argp1);
5745 {
5746 PyThreadState* __tstate = wxPyBeginAllowThreads();
5747 result = (bool)((wxBrush const *)arg1)->IsHatch();
5748 wxPyEndAllowThreads(__tstate);
5749 if (PyErr_Occurred()) SWIG_fail;
5750 }
5751 {
5752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5753 }
5754 return resultobj;
5755 fail:
5756 return NULL;
5757 }
5758
5759
5760 SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5761 PyObject *resultobj = 0;
5762 wxBrush *arg1 = (wxBrush *) 0 ;
5763 bool result;
5764 void *argp1 = 0 ;
5765 int res1 = 0 ;
5766 PyObject *swig_obj[1] ;
5767
5768 if (!args) SWIG_fail;
5769 swig_obj[0] = args;
5770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5771 if (!SWIG_IsOK(res1)) {
5772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
5773 }
5774 arg1 = reinterpret_cast< wxBrush * >(argp1);
5775 {
5776 PyThreadState* __tstate = wxPyBeginAllowThreads();
5777 result = (bool)(arg1)->IsOk();
5778 wxPyEndAllowThreads(__tstate);
5779 if (PyErr_Occurred()) SWIG_fail;
5780 }
5781 {
5782 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5783 }
5784 return resultobj;
5785 fail:
5786 return NULL;
5787 }
5788
5789
5790 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5791 PyObject *obj;
5792 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5793 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5794 return SWIG_Py_Void();
5795 }
5796
5797 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5798 return SWIG_Python_InitShadowInstance(args);
5799 }
5800
5801 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5802 PyObject *resultobj = 0;
5803 wxString *arg1 = 0 ;
5804 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5805 wxBitmap *result = 0 ;
5806 bool temp1 = false ;
5807 int val2 ;
5808 int ecode2 = 0 ;
5809 PyObject * obj0 = 0 ;
5810 PyObject * obj1 = 0 ;
5811 char * kwnames[] = {
5812 (char *) "name",(char *) "type", NULL
5813 };
5814
5815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5816 {
5817 arg1 = wxString_in_helper(obj0);
5818 if (arg1 == NULL) SWIG_fail;
5819 temp1 = true;
5820 }
5821 if (obj1) {
5822 ecode2 = SWIG_AsVal_int(obj1, &val2);
5823 if (!SWIG_IsOK(ecode2)) {
5824 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5825 }
5826 arg2 = static_cast< wxBitmapType >(val2);
5827 }
5828 {
5829 if (!wxPyCheckForApp()) SWIG_fail;
5830 PyThreadState* __tstate = wxPyBeginAllowThreads();
5831 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5832 wxPyEndAllowThreads(__tstate);
5833 if (PyErr_Occurred()) SWIG_fail;
5834 }
5835 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5836 {
5837 if (temp1)
5838 delete arg1;
5839 }
5840 return resultobj;
5841 fail:
5842 {
5843 if (temp1)
5844 delete arg1;
5845 }
5846 return NULL;
5847 }
5848
5849
5850 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5851 PyObject *resultobj = 0;
5852 wxBitmap *arg1 = (wxBitmap *) 0 ;
5853 void *argp1 = 0 ;
5854 int res1 = 0 ;
5855 PyObject *swig_obj[1] ;
5856
5857 if (!args) SWIG_fail;
5858 swig_obj[0] = args;
5859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5860 if (!SWIG_IsOK(res1)) {
5861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5862 }
5863 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5864 {
5865 delete arg1;
5866
5867 if (PyErr_Occurred()) SWIG_fail;
5868 }
5869 resultobj = SWIG_Py_Void();
5870 return resultobj;
5871 fail:
5872 return NULL;
5873 }
5874
5875
5876 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5877 PyObject *resultobj = 0;
5878 int arg1 ;
5879 int arg2 ;
5880 int arg3 = (int) -1 ;
5881 wxBitmap *result = 0 ;
5882 int val1 ;
5883 int ecode1 = 0 ;
5884 int val2 ;
5885 int ecode2 = 0 ;
5886 int val3 ;
5887 int ecode3 = 0 ;
5888 PyObject * obj0 = 0 ;
5889 PyObject * obj1 = 0 ;
5890 PyObject * obj2 = 0 ;
5891 char * kwnames[] = {
5892 (char *) "width",(char *) "height",(char *) "depth", NULL
5893 };
5894
5895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5896 ecode1 = SWIG_AsVal_int(obj0, &val1);
5897 if (!SWIG_IsOK(ecode1)) {
5898 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5899 }
5900 arg1 = static_cast< int >(val1);
5901 ecode2 = SWIG_AsVal_int(obj1, &val2);
5902 if (!SWIG_IsOK(ecode2)) {
5903 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5904 }
5905 arg2 = static_cast< int >(val2);
5906 if (obj2) {
5907 ecode3 = SWIG_AsVal_int(obj2, &val3);
5908 if (!SWIG_IsOK(ecode3)) {
5909 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5910 }
5911 arg3 = static_cast< int >(val3);
5912 }
5913 {
5914 if (!wxPyCheckForApp()) SWIG_fail;
5915 PyThreadState* __tstate = wxPyBeginAllowThreads();
5916 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5917 wxPyEndAllowThreads(__tstate);
5918 if (PyErr_Occurred()) SWIG_fail;
5919 }
5920 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5921 return resultobj;
5922 fail:
5923 return NULL;
5924 }
5925
5926
5927 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5928 PyObject *resultobj = 0;
5929 wxIcon *arg1 = 0 ;
5930 wxBitmap *result = 0 ;
5931 void *argp1 = 0 ;
5932 int res1 = 0 ;
5933 PyObject * obj0 = 0 ;
5934 char * kwnames[] = {
5935 (char *) "icon", NULL
5936 };
5937
5938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5939 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5940 if (!SWIG_IsOK(res1)) {
5941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5942 }
5943 if (!argp1) {
5944 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5945 }
5946 arg1 = reinterpret_cast< wxIcon * >(argp1);
5947 {
5948 if (!wxPyCheckForApp()) SWIG_fail;
5949 PyThreadState* __tstate = wxPyBeginAllowThreads();
5950 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5951 wxPyEndAllowThreads(__tstate);
5952 if (PyErr_Occurred()) SWIG_fail;
5953 }
5954 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5955 return resultobj;
5956 fail:
5957 return NULL;
5958 }
5959
5960
5961 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5962 PyObject *resultobj = 0;
5963 wxImage *arg1 = 0 ;
5964 int arg2 = (int) -1 ;
5965 wxBitmap *result = 0 ;
5966 void *argp1 = 0 ;
5967 int res1 = 0 ;
5968 int val2 ;
5969 int ecode2 = 0 ;
5970 PyObject * obj0 = 0 ;
5971 PyObject * obj1 = 0 ;
5972 char * kwnames[] = {
5973 (char *) "image",(char *) "depth", NULL
5974 };
5975
5976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5977 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5978 if (!SWIG_IsOK(res1)) {
5979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5980 }
5981 if (!argp1) {
5982 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5983 }
5984 arg1 = reinterpret_cast< wxImage * >(argp1);
5985 if (obj1) {
5986 ecode2 = SWIG_AsVal_int(obj1, &val2);
5987 if (!SWIG_IsOK(ecode2)) {
5988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5989 }
5990 arg2 = static_cast< int >(val2);
5991 }
5992 {
5993 if (!wxPyCheckForApp()) SWIG_fail;
5994 PyThreadState* __tstate = wxPyBeginAllowThreads();
5995 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
5996 wxPyEndAllowThreads(__tstate);
5997 if (PyErr_Occurred()) SWIG_fail;
5998 }
5999 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6000 return resultobj;
6001 fail:
6002 return NULL;
6003 }
6004
6005
6006 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6007 PyObject *resultobj = 0;
6008 PyObject *arg1 = (PyObject *) 0 ;
6009 wxBitmap *result = 0 ;
6010 PyObject * obj0 = 0 ;
6011 char * kwnames[] = {
6012 (char *) "listOfStrings", NULL
6013 };
6014
6015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6016 arg1 = obj0;
6017 {
6018 if (!wxPyCheckForApp()) SWIG_fail;
6019 PyThreadState* __tstate = wxPyBeginAllowThreads();
6020 result = (wxBitmap *)new_wxBitmap(arg1);
6021 wxPyEndAllowThreads(__tstate);
6022 if (PyErr_Occurred()) SWIG_fail;
6023 }
6024 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6025 return resultobj;
6026 fail:
6027 return NULL;
6028 }
6029
6030
6031 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6032 PyObject *resultobj = 0;
6033 PyObject *arg1 = (PyObject *) 0 ;
6034 int arg2 ;
6035 int arg3 ;
6036 int arg4 = (int) 1 ;
6037 wxBitmap *result = 0 ;
6038 int val2 ;
6039 int ecode2 = 0 ;
6040 int val3 ;
6041 int ecode3 = 0 ;
6042 int val4 ;
6043 int ecode4 = 0 ;
6044 PyObject * obj0 = 0 ;
6045 PyObject * obj1 = 0 ;
6046 PyObject * obj2 = 0 ;
6047 PyObject * obj3 = 0 ;
6048 char * kwnames[] = {
6049 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6050 };
6051
6052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6053 arg1 = obj0;
6054 ecode2 = SWIG_AsVal_int(obj1, &val2);
6055 if (!SWIG_IsOK(ecode2)) {
6056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6057 }
6058 arg2 = static_cast< int >(val2);
6059 ecode3 = SWIG_AsVal_int(obj2, &val3);
6060 if (!SWIG_IsOK(ecode3)) {
6061 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6062 }
6063 arg3 = static_cast< int >(val3);
6064 if (obj3) {
6065 ecode4 = SWIG_AsVal_int(obj3, &val4);
6066 if (!SWIG_IsOK(ecode4)) {
6067 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6068 }
6069 arg4 = static_cast< int >(val4);
6070 }
6071 {
6072 if (!wxPyCheckForApp()) SWIG_fail;
6073 PyThreadState* __tstate = wxPyBeginAllowThreads();
6074 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6075 wxPyEndAllowThreads(__tstate);
6076 if (PyErr_Occurred()) SWIG_fail;
6077 }
6078 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6079 return resultobj;
6080 fail:
6081 return NULL;
6082 }
6083
6084
6085 SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6086 PyObject *resultobj = 0;
6087 wxBitmap *arg1 = (wxBitmap *) 0 ;
6088 bool result;
6089 void *argp1 = 0 ;
6090 int res1 = 0 ;
6091 PyObject *swig_obj[1] ;
6092
6093 if (!args) SWIG_fail;
6094 swig_obj[0] = args;
6095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6096 if (!SWIG_IsOK(res1)) {
6097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
6098 }
6099 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6100 {
6101 result = (bool)(arg1)->IsOk();
6102 if (PyErr_Occurred()) SWIG_fail;
6103 }
6104 {
6105 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6106 }
6107 return resultobj;
6108 fail:
6109 return NULL;
6110 }
6111
6112
6113 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6114 PyObject *resultobj = 0;
6115 wxBitmap *arg1 = (wxBitmap *) 0 ;
6116 int result;
6117 void *argp1 = 0 ;
6118 int res1 = 0 ;
6119 PyObject *swig_obj[1] ;
6120
6121 if (!args) SWIG_fail;
6122 swig_obj[0] = args;
6123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6124 if (!SWIG_IsOK(res1)) {
6125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6126 }
6127 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6128 {
6129 result = (int)(arg1)->GetWidth();
6130 if (PyErr_Occurred()) SWIG_fail;
6131 }
6132 resultobj = SWIG_From_int(static_cast< int >(result));
6133 return resultobj;
6134 fail:
6135 return NULL;
6136 }
6137
6138
6139 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6140 PyObject *resultobj = 0;
6141 wxBitmap *arg1 = (wxBitmap *) 0 ;
6142 int result;
6143 void *argp1 = 0 ;
6144 int res1 = 0 ;
6145 PyObject *swig_obj[1] ;
6146
6147 if (!args) SWIG_fail;
6148 swig_obj[0] = args;
6149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6150 if (!SWIG_IsOK(res1)) {
6151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6152 }
6153 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6154 {
6155 result = (int)(arg1)->GetHeight();
6156 if (PyErr_Occurred()) SWIG_fail;
6157 }
6158 resultobj = SWIG_From_int(static_cast< int >(result));
6159 return resultobj;
6160 fail:
6161 return NULL;
6162 }
6163
6164
6165 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6166 PyObject *resultobj = 0;
6167 wxBitmap *arg1 = (wxBitmap *) 0 ;
6168 int result;
6169 void *argp1 = 0 ;
6170 int res1 = 0 ;
6171 PyObject *swig_obj[1] ;
6172
6173 if (!args) SWIG_fail;
6174 swig_obj[0] = args;
6175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6176 if (!SWIG_IsOK(res1)) {
6177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6178 }
6179 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6180 {
6181 result = (int)(arg1)->GetDepth();
6182 if (PyErr_Occurred()) SWIG_fail;
6183 }
6184 resultobj = SWIG_From_int(static_cast< int >(result));
6185 return resultobj;
6186 fail:
6187 return NULL;
6188 }
6189
6190
6191 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6192 PyObject *resultobj = 0;
6193 wxBitmap *arg1 = (wxBitmap *) 0 ;
6194 wxSize result;
6195 void *argp1 = 0 ;
6196 int res1 = 0 ;
6197 PyObject *swig_obj[1] ;
6198
6199 if (!args) SWIG_fail;
6200 swig_obj[0] = args;
6201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6202 if (!SWIG_IsOK(res1)) {
6203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6204 }
6205 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6206 {
6207 result = wxBitmap_GetSize(arg1);
6208 if (PyErr_Occurred()) SWIG_fail;
6209 }
6210 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6211 return resultobj;
6212 fail:
6213 return NULL;
6214 }
6215
6216
6217 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6218 PyObject *resultobj = 0;
6219 wxBitmap *arg1 = (wxBitmap *) 0 ;
6220 SwigValueWrapper<wxImage > result;
6221 void *argp1 = 0 ;
6222 int res1 = 0 ;
6223 PyObject *swig_obj[1] ;
6224
6225 if (!args) SWIG_fail;
6226 swig_obj[0] = args;
6227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6228 if (!SWIG_IsOK(res1)) {
6229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6230 }
6231 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6232 {
6233 result = ((wxBitmap const *)arg1)->ConvertToImage();
6234 if (PyErr_Occurred()) SWIG_fail;
6235 }
6236 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6237 return resultobj;
6238 fail:
6239 return NULL;
6240 }
6241
6242
6243 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6244 PyObject *resultobj = 0;
6245 wxBitmap *arg1 = (wxBitmap *) 0 ;
6246 wxMask *result = 0 ;
6247 void *argp1 = 0 ;
6248 int res1 = 0 ;
6249 PyObject *swig_obj[1] ;
6250
6251 if (!args) SWIG_fail;
6252 swig_obj[0] = args;
6253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6254 if (!SWIG_IsOK(res1)) {
6255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6256 }
6257 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6258 {
6259 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6260 if (PyErr_Occurred()) SWIG_fail;
6261 }
6262 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6263 return resultobj;
6264 fail:
6265 return NULL;
6266 }
6267
6268
6269 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6270 PyObject *resultobj = 0;
6271 wxBitmap *arg1 = (wxBitmap *) 0 ;
6272 wxMask *arg2 = (wxMask *) 0 ;
6273 void *argp1 = 0 ;
6274 int res1 = 0 ;
6275 int res2 = 0 ;
6276 PyObject * obj0 = 0 ;
6277 PyObject * obj1 = 0 ;
6278 char * kwnames[] = {
6279 (char *) "self",(char *) "mask", NULL
6280 };
6281
6282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6284 if (!SWIG_IsOK(res1)) {
6285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6286 }
6287 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6288 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6289 if (!SWIG_IsOK(res2)) {
6290 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6291 }
6292 {
6293 (arg1)->SetMask(arg2);
6294 if (PyErr_Occurred()) SWIG_fail;
6295 }
6296 resultobj = SWIG_Py_Void();
6297 return resultobj;
6298 fail:
6299 return NULL;
6300 }
6301
6302
6303 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6304 PyObject *resultobj = 0;
6305 wxBitmap *arg1 = (wxBitmap *) 0 ;
6306 wxColour *arg2 = 0 ;
6307 void *argp1 = 0 ;
6308 int res1 = 0 ;
6309 wxColour temp2 ;
6310 PyObject * obj0 = 0 ;
6311 PyObject * obj1 = 0 ;
6312 char * kwnames[] = {
6313 (char *) "self",(char *) "colour", NULL
6314 };
6315
6316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6318 if (!SWIG_IsOK(res1)) {
6319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6320 }
6321 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6322 {
6323 arg2 = &temp2;
6324 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6325 }
6326 {
6327 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6328 if (PyErr_Occurred()) SWIG_fail;
6329 }
6330 resultobj = SWIG_Py_Void();
6331 return resultobj;
6332 fail:
6333 return NULL;
6334 }
6335
6336
6337 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6338 PyObject *resultobj = 0;
6339 wxBitmap *arg1 = (wxBitmap *) 0 ;
6340 wxRect *arg2 = 0 ;
6341 SwigValueWrapper<wxBitmap > result;
6342 void *argp1 = 0 ;
6343 int res1 = 0 ;
6344 wxRect temp2 ;
6345 PyObject * obj0 = 0 ;
6346 PyObject * obj1 = 0 ;
6347 char * kwnames[] = {
6348 (char *) "self",(char *) "rect", NULL
6349 };
6350
6351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6353 if (!SWIG_IsOK(res1)) {
6354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6355 }
6356 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6357 {
6358 arg2 = &temp2;
6359 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6360 }
6361 {
6362 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6363 if (PyErr_Occurred()) SWIG_fail;
6364 }
6365 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6366 return resultobj;
6367 fail:
6368 return NULL;
6369 }
6370
6371
6372 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6373 PyObject *resultobj = 0;
6374 wxBitmap *arg1 = (wxBitmap *) 0 ;
6375 wxString *arg2 = 0 ;
6376 wxBitmapType arg3 ;
6377 wxPalette *arg4 = (wxPalette *) NULL ;
6378 bool result;
6379 void *argp1 = 0 ;
6380 int res1 = 0 ;
6381 bool temp2 = false ;
6382 int val3 ;
6383 int ecode3 = 0 ;
6384 void *argp4 = 0 ;
6385 int res4 = 0 ;
6386 PyObject * obj0 = 0 ;
6387 PyObject * obj1 = 0 ;
6388 PyObject * obj2 = 0 ;
6389 PyObject * obj3 = 0 ;
6390 char * kwnames[] = {
6391 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6392 };
6393
6394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6396 if (!SWIG_IsOK(res1)) {
6397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6398 }
6399 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6400 {
6401 arg2 = wxString_in_helper(obj1);
6402 if (arg2 == NULL) SWIG_fail;
6403 temp2 = true;
6404 }
6405 ecode3 = SWIG_AsVal_int(obj2, &val3);
6406 if (!SWIG_IsOK(ecode3)) {
6407 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6408 }
6409 arg3 = static_cast< wxBitmapType >(val3);
6410 if (obj3) {
6411 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6412 if (!SWIG_IsOK(res4)) {
6413 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6414 }
6415 arg4 = reinterpret_cast< wxPalette * >(argp4);
6416 }
6417 {
6418 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6419 if (PyErr_Occurred()) SWIG_fail;
6420 }
6421 {
6422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6423 }
6424 {
6425 if (temp2)
6426 delete arg2;
6427 }
6428 return resultobj;
6429 fail:
6430 {
6431 if (temp2)
6432 delete arg2;
6433 }
6434 return NULL;
6435 }
6436
6437
6438 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6439 PyObject *resultobj = 0;
6440 wxBitmap *arg1 = (wxBitmap *) 0 ;
6441 wxString *arg2 = 0 ;
6442 wxBitmapType arg3 ;
6443 bool result;
6444 void *argp1 = 0 ;
6445 int res1 = 0 ;
6446 bool temp2 = false ;
6447 int val3 ;
6448 int ecode3 = 0 ;
6449 PyObject * obj0 = 0 ;
6450 PyObject * obj1 = 0 ;
6451 PyObject * obj2 = 0 ;
6452 char * kwnames[] = {
6453 (char *) "self",(char *) "name",(char *) "type", NULL
6454 };
6455
6456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6458 if (!SWIG_IsOK(res1)) {
6459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6460 }
6461 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6462 {
6463 arg2 = wxString_in_helper(obj1);
6464 if (arg2 == NULL) SWIG_fail;
6465 temp2 = true;
6466 }
6467 ecode3 = SWIG_AsVal_int(obj2, &val3);
6468 if (!SWIG_IsOK(ecode3)) {
6469 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6470 }
6471 arg3 = static_cast< wxBitmapType >(val3);
6472 {
6473 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6474 if (PyErr_Occurred()) SWIG_fail;
6475 }
6476 {
6477 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6478 }
6479 {
6480 if (temp2)
6481 delete arg2;
6482 }
6483 return resultobj;
6484 fail:
6485 {
6486 if (temp2)
6487 delete arg2;
6488 }
6489 return NULL;
6490 }
6491
6492
6493 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6494 PyObject *resultobj = 0;
6495 wxBitmap *arg1 = (wxBitmap *) 0 ;
6496 wxPalette *result = 0 ;
6497 void *argp1 = 0 ;
6498 int res1 = 0 ;
6499 PyObject *swig_obj[1] ;
6500
6501 if (!args) SWIG_fail;
6502 swig_obj[0] = args;
6503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6504 if (!SWIG_IsOK(res1)) {
6505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6506 }
6507 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6508 {
6509 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6510 if (PyErr_Occurred()) SWIG_fail;
6511 }
6512 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6513 return resultobj;
6514 fail:
6515 return NULL;
6516 }
6517
6518
6519 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6520 PyObject *resultobj = 0;
6521 wxBitmap *arg1 = (wxBitmap *) 0 ;
6522 wxIcon *arg2 = 0 ;
6523 bool result;
6524 void *argp1 = 0 ;
6525 int res1 = 0 ;
6526 void *argp2 = 0 ;
6527 int res2 = 0 ;
6528 PyObject * obj0 = 0 ;
6529 PyObject * obj1 = 0 ;
6530 char * kwnames[] = {
6531 (char *) "self",(char *) "icon", NULL
6532 };
6533
6534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6536 if (!SWIG_IsOK(res1)) {
6537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6538 }
6539 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6540 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6541 if (!SWIG_IsOK(res2)) {
6542 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6543 }
6544 if (!argp2) {
6545 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6546 }
6547 arg2 = reinterpret_cast< wxIcon * >(argp2);
6548 {
6549 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6550 if (PyErr_Occurred()) SWIG_fail;
6551 }
6552 {
6553 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6554 }
6555 return resultobj;
6556 fail:
6557 return NULL;
6558 }
6559
6560
6561 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6562 PyObject *resultobj = 0;
6563 wxBitmap *arg1 = (wxBitmap *) 0 ;
6564 int arg2 ;
6565 void *argp1 = 0 ;
6566 int res1 = 0 ;
6567 int val2 ;
6568 int ecode2 = 0 ;
6569 PyObject * obj0 = 0 ;
6570 PyObject * obj1 = 0 ;
6571 char * kwnames[] = {
6572 (char *) "self",(char *) "height", NULL
6573 };
6574
6575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6577 if (!SWIG_IsOK(res1)) {
6578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6579 }
6580 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6581 ecode2 = SWIG_AsVal_int(obj1, &val2);
6582 if (!SWIG_IsOK(ecode2)) {
6583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6584 }
6585 arg2 = static_cast< int >(val2);
6586 {
6587 (arg1)->SetHeight(arg2);
6588 if (PyErr_Occurred()) SWIG_fail;
6589 }
6590 resultobj = SWIG_Py_Void();
6591 return resultobj;
6592 fail:
6593 return NULL;
6594 }
6595
6596
6597 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6598 PyObject *resultobj = 0;
6599 wxBitmap *arg1 = (wxBitmap *) 0 ;
6600 int arg2 ;
6601 void *argp1 = 0 ;
6602 int res1 = 0 ;
6603 int val2 ;
6604 int ecode2 = 0 ;
6605 PyObject * obj0 = 0 ;
6606 PyObject * obj1 = 0 ;
6607 char * kwnames[] = {
6608 (char *) "self",(char *) "width", NULL
6609 };
6610
6611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6613 if (!SWIG_IsOK(res1)) {
6614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6615 }
6616 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6617 ecode2 = SWIG_AsVal_int(obj1, &val2);
6618 if (!SWIG_IsOK(ecode2)) {
6619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6620 }
6621 arg2 = static_cast< int >(val2);
6622 {
6623 (arg1)->SetWidth(arg2);
6624 if (PyErr_Occurred()) SWIG_fail;
6625 }
6626 resultobj = SWIG_Py_Void();
6627 return resultobj;
6628 fail:
6629 return NULL;
6630 }
6631
6632
6633 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6634 PyObject *resultobj = 0;
6635 wxBitmap *arg1 = (wxBitmap *) 0 ;
6636 int arg2 ;
6637 void *argp1 = 0 ;
6638 int res1 = 0 ;
6639 int val2 ;
6640 int ecode2 = 0 ;
6641 PyObject * obj0 = 0 ;
6642 PyObject * obj1 = 0 ;
6643 char * kwnames[] = {
6644 (char *) "self",(char *) "depth", NULL
6645 };
6646
6647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6649 if (!SWIG_IsOK(res1)) {
6650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6651 }
6652 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6653 ecode2 = SWIG_AsVal_int(obj1, &val2);
6654 if (!SWIG_IsOK(ecode2)) {
6655 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6656 }
6657 arg2 = static_cast< int >(val2);
6658 {
6659 (arg1)->SetDepth(arg2);
6660 if (PyErr_Occurred()) SWIG_fail;
6661 }
6662 resultobj = SWIG_Py_Void();
6663 return resultobj;
6664 fail:
6665 return NULL;
6666 }
6667
6668
6669 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6670 PyObject *resultobj = 0;
6671 wxBitmap *arg1 = (wxBitmap *) 0 ;
6672 wxSize *arg2 = 0 ;
6673 void *argp1 = 0 ;
6674 int res1 = 0 ;
6675 wxSize temp2 ;
6676 PyObject * obj0 = 0 ;
6677 PyObject * obj1 = 0 ;
6678 char * kwnames[] = {
6679 (char *) "self",(char *) "size", NULL
6680 };
6681
6682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6684 if (!SWIG_IsOK(res1)) {
6685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6686 }
6687 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6688 {
6689 arg2 = &temp2;
6690 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6691 }
6692 {
6693 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6694 if (PyErr_Occurred()) SWIG_fail;
6695 }
6696 resultobj = SWIG_Py_Void();
6697 return resultobj;
6698 fail:
6699 return NULL;
6700 }
6701
6702
6703 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6704 PyObject *resultobj = 0;
6705 wxBitmap *arg1 = (wxBitmap *) 0 ;
6706 wxBitmap *arg2 = (wxBitmap *) 0 ;
6707 bool result;
6708 void *argp1 = 0 ;
6709 int res1 = 0 ;
6710 void *argp2 = 0 ;
6711 int res2 = 0 ;
6712 PyObject * obj0 = 0 ;
6713 PyObject * obj1 = 0 ;
6714 char * kwnames[] = {
6715 (char *) "self",(char *) "other", NULL
6716 };
6717
6718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6720 if (!SWIG_IsOK(res1)) {
6721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6722 }
6723 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6724 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6725 if (!SWIG_IsOK(res2)) {
6726 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6727 }
6728 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6729 {
6730 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6731 if (PyErr_Occurred()) SWIG_fail;
6732 }
6733 {
6734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6735 }
6736 return resultobj;
6737 fail:
6738 return NULL;
6739 }
6740
6741
6742 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6743 PyObject *resultobj = 0;
6744 wxBitmap *arg1 = (wxBitmap *) 0 ;
6745 wxBitmap *arg2 = (wxBitmap *) 0 ;
6746 bool result;
6747 void *argp1 = 0 ;
6748 int res1 = 0 ;
6749 void *argp2 = 0 ;
6750 int res2 = 0 ;
6751 PyObject * obj0 = 0 ;
6752 PyObject * obj1 = 0 ;
6753 char * kwnames[] = {
6754 (char *) "self",(char *) "other", NULL
6755 };
6756
6757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6759 if (!SWIG_IsOK(res1)) {
6760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6761 }
6762 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6763 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6764 if (!SWIG_IsOK(res2)) {
6765 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6766 }
6767 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6768 {
6769 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6770 if (PyErr_Occurred()) SWIG_fail;
6771 }
6772 {
6773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6774 }
6775 return resultobj;
6776 fail:
6777 return NULL;
6778 }
6779
6780
6781 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6782 PyObject *obj;
6783 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6784 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6785 return SWIG_Py_Void();
6786 }
6787
6788 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6789 return SWIG_Python_InitShadowInstance(args);
6790 }
6791
6792 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6793 PyObject *resultobj = 0;
6794 int arg1 ;
6795 int arg2 ;
6796 buffer arg3 ;
6797 int arg4 ;
6798 buffer arg5 ;
6799 int arg6 ;
6800 wxBitmap *result = 0 ;
6801 int val1 ;
6802 int ecode1 = 0 ;
6803 int val2 ;
6804 int ecode2 = 0 ;
6805 Py_ssize_t temp3 ;
6806 Py_ssize_t temp5 ;
6807 PyObject * obj0 = 0 ;
6808 PyObject * obj1 = 0 ;
6809 PyObject * obj2 = 0 ;
6810 PyObject * obj3 = 0 ;
6811 char * kwnames[] = {
6812 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
6813 };
6814
6815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6816 ecode1 = SWIG_AsVal_int(obj0, &val1);
6817 if (!SWIG_IsOK(ecode1)) {
6818 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
6819 }
6820 arg1 = static_cast< int >(val1);
6821 ecode2 = SWIG_AsVal_int(obj1, &val2);
6822 if (!SWIG_IsOK(ecode2)) {
6823 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
6824 }
6825 arg2 = static_cast< int >(val2);
6826 {
6827 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6828 arg4 = (int)temp3;
6829 }
6830 {
6831 if (obj3 != Py_None) {
6832 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
6833 arg6 = (int)temp5;
6834 }
6835 }
6836 {
6837 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
6838 if (PyErr_Occurred()) SWIG_fail;
6839 }
6840 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6841 return resultobj;
6842 fail:
6843 return NULL;
6844 }
6845
6846
6847 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6848 PyObject *resultobj = 0;
6849 int arg1 ;
6850 int arg2 ;
6851 buffer arg3 ;
6852 int arg4 ;
6853 wxBitmap *result = 0 ;
6854 int val1 ;
6855 int ecode1 = 0 ;
6856 int val2 ;
6857 int ecode2 = 0 ;
6858 Py_ssize_t temp3 ;
6859 PyObject * obj0 = 0 ;
6860 PyObject * obj1 = 0 ;
6861 PyObject * obj2 = 0 ;
6862 char * kwnames[] = {
6863 (char *) "width",(char *) "height",(char *) "data", NULL
6864 };
6865
6866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6867 ecode1 = SWIG_AsVal_int(obj0, &val1);
6868 if (!SWIG_IsOK(ecode1)) {
6869 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
6870 }
6871 arg1 = static_cast< int >(val1);
6872 ecode2 = SWIG_AsVal_int(obj1, &val2);
6873 if (!SWIG_IsOK(ecode2)) {
6874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
6875 }
6876 arg2 = static_cast< int >(val2);
6877 {
6878 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6879 arg4 = (int)temp3;
6880 }
6881 {
6882 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
6883 if (PyErr_Occurred()) SWIG_fail;
6884 }
6885 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6886 return resultobj;
6887 fail:
6888 return NULL;
6889 }
6890
6891
6892 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6893 PyObject *resultobj = 0;
6894 int arg1 ;
6895 int arg2 ;
6896 buffer arg3 ;
6897 int arg4 ;
6898 wxBitmap *result = 0 ;
6899 int val1 ;
6900 int ecode1 = 0 ;
6901 int val2 ;
6902 int ecode2 = 0 ;
6903 Py_ssize_t temp3 ;
6904 PyObject * obj0 = 0 ;
6905 PyObject * obj1 = 0 ;
6906 PyObject * obj2 = 0 ;
6907 char * kwnames[] = {
6908 (char *) "width",(char *) "height",(char *) "data", NULL
6909 };
6910
6911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6912 ecode1 = SWIG_AsVal_int(obj0, &val1);
6913 if (!SWIG_IsOK(ecode1)) {
6914 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
6915 }
6916 arg1 = static_cast< int >(val1);
6917 ecode2 = SWIG_AsVal_int(obj1, &val2);
6918 if (!SWIG_IsOK(ecode2)) {
6919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
6920 }
6921 arg2 = static_cast< int >(val2);
6922 {
6923 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6924 arg4 = (int)temp3;
6925 }
6926 {
6927 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
6928 if (PyErr_Occurred()) SWIG_fail;
6929 }
6930 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6931 return resultobj;
6932 fail:
6933 return NULL;
6934 }
6935
6936
6937 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6938 PyObject *resultobj = 0;
6939 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6940 wxPoint result;
6941 void *argp1 = 0 ;
6942 int res1 = 0 ;
6943 PyObject *swig_obj[1] ;
6944
6945 if (!args) SWIG_fail;
6946 swig_obj[0] = args;
6947 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6948 if (!SWIG_IsOK(res1)) {
6949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6950 }
6951 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6952 {
6953 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
6954 if (PyErr_Occurred()) SWIG_fail;
6955 }
6956 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
6957 return resultobj;
6958 fail:
6959 return NULL;
6960 }
6961
6962
6963 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6964 PyObject *resultobj = 0;
6965 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6966 int result;
6967 void *argp1 = 0 ;
6968 int res1 = 0 ;
6969 PyObject *swig_obj[1] ;
6970
6971 if (!args) SWIG_fail;
6972 swig_obj[0] = args;
6973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6974 if (!SWIG_IsOK(res1)) {
6975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6976 }
6977 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6978 {
6979 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
6980 if (PyErr_Occurred()) SWIG_fail;
6981 }
6982 resultobj = SWIG_From_int(static_cast< int >(result));
6983 return resultobj;
6984 fail:
6985 return NULL;
6986 }
6987
6988
6989 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6990 PyObject *resultobj = 0;
6991 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6992 int result;
6993 void *argp1 = 0 ;
6994 int res1 = 0 ;
6995 PyObject *swig_obj[1] ;
6996
6997 if (!args) SWIG_fail;
6998 swig_obj[0] = args;
6999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7000 if (!SWIG_IsOK(res1)) {
7001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7002 }
7003 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7004 {
7005 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7006 if (PyErr_Occurred()) SWIG_fail;
7007 }
7008 resultobj = SWIG_From_int(static_cast< int >(result));
7009 return resultobj;
7010 fail:
7011 return NULL;
7012 }
7013
7014
7015 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7016 PyObject *resultobj = 0;
7017 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7018 wxSize result;
7019 void *argp1 = 0 ;
7020 int res1 = 0 ;
7021 PyObject *swig_obj[1] ;
7022
7023 if (!args) SWIG_fail;
7024 swig_obj[0] = args;
7025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7026 if (!SWIG_IsOK(res1)) {
7027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7028 }
7029 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7030 {
7031 result = ((wxPixelDataBase const *)arg1)->GetSize();
7032 if (PyErr_Occurred()) SWIG_fail;
7033 }
7034 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7035 return resultobj;
7036 fail:
7037 return NULL;
7038 }
7039
7040
7041 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7042 PyObject *resultobj = 0;
7043 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7044 int result;
7045 void *argp1 = 0 ;
7046 int res1 = 0 ;
7047 PyObject *swig_obj[1] ;
7048
7049 if (!args) SWIG_fail;
7050 swig_obj[0] = args;
7051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7052 if (!SWIG_IsOK(res1)) {
7053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7054 }
7055 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7056 {
7057 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7058 if (PyErr_Occurred()) SWIG_fail;
7059 }
7060 resultobj = SWIG_From_int(static_cast< int >(result));
7061 return resultobj;
7062 fail:
7063 return NULL;
7064 }
7065
7066
7067 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7068 PyObject *obj;
7069 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7070 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7071 return SWIG_Py_Void();
7072 }
7073
7074 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7075 PyObject *resultobj = 0;
7076 wxBitmap *arg1 = 0 ;
7077 wxNativePixelData *result = 0 ;
7078 void *argp1 = 0 ;
7079 int res1 = 0 ;
7080
7081 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7083 if (!SWIG_IsOK(res1)) {
7084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7085 }
7086 if (!argp1) {
7087 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7088 }
7089 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7090 {
7091 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7092 if (PyErr_Occurred()) SWIG_fail;
7093 }
7094 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7095 return resultobj;
7096 fail:
7097 return NULL;
7098 }
7099
7100
7101 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7102 PyObject *resultobj = 0;
7103 wxBitmap *arg1 = 0 ;
7104 wxRect *arg2 = 0 ;
7105 wxNativePixelData *result = 0 ;
7106 void *argp1 = 0 ;
7107 int res1 = 0 ;
7108 wxRect temp2 ;
7109
7110 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7112 if (!SWIG_IsOK(res1)) {
7113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7114 }
7115 if (!argp1) {
7116 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7117 }
7118 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7119 {
7120 arg2 = &temp2;
7121 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7122 }
7123 {
7124 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7125 if (PyErr_Occurred()) SWIG_fail;
7126 }
7127 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7128 return resultobj;
7129 fail:
7130 return NULL;
7131 }
7132
7133
7134 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7135 PyObject *resultobj = 0;
7136 wxBitmap *arg1 = 0 ;
7137 wxPoint *arg2 = 0 ;
7138 wxSize *arg3 = 0 ;
7139 wxNativePixelData *result = 0 ;
7140 void *argp1 = 0 ;
7141 int res1 = 0 ;
7142 wxPoint temp2 ;
7143 wxSize temp3 ;
7144
7145 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7147 if (!SWIG_IsOK(res1)) {
7148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7149 }
7150 if (!argp1) {
7151 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7152 }
7153 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7154 {
7155 arg2 = &temp2;
7156 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7157 }
7158 {
7159 arg3 = &temp3;
7160 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7161 }
7162 {
7163 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7164 if (PyErr_Occurred()) SWIG_fail;
7165 }
7166 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7167 return resultobj;
7168 fail:
7169 return NULL;
7170 }
7171
7172
7173 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7174 int argc;
7175 PyObject *argv[4];
7176
7177 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7178 --argc;
7179 if (argc == 1) {
7180 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7181 }
7182 if (argc == 2) {
7183 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7184 }
7185 if (argc == 3) {
7186 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7187 }
7188
7189 fail:
7190 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7191 return NULL;
7192 }
7193
7194
7195 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7196 PyObject *resultobj = 0;
7197 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7198 void *argp1 = 0 ;
7199 int res1 = 0 ;
7200 PyObject *swig_obj[1] ;
7201
7202 if (!args) SWIG_fail;
7203 swig_obj[0] = args;
7204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7205 if (!SWIG_IsOK(res1)) {
7206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7207 }
7208 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7209 {
7210 delete arg1;
7211
7212 if (PyErr_Occurred()) SWIG_fail;
7213 }
7214 resultobj = SWIG_Py_Void();
7215 return resultobj;
7216 fail:
7217 return NULL;
7218 }
7219
7220
7221 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7222 PyObject *resultobj = 0;
7223 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7224 wxNativePixelData_Accessor result;
7225 void *argp1 = 0 ;
7226 int res1 = 0 ;
7227 PyObject *swig_obj[1] ;
7228
7229 if (!args) SWIG_fail;
7230 swig_obj[0] = args;
7231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7232 if (!SWIG_IsOK(res1)) {
7233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7234 }
7235 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7236 {
7237 result = ((wxNativePixelData const *)arg1)->GetPixels();
7238 if (PyErr_Occurred()) SWIG_fail;
7239 }
7240 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7241 return resultobj;
7242 fail:
7243 return NULL;
7244 }
7245
7246
7247 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7248 PyObject *resultobj = 0;
7249 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7250 void *argp1 = 0 ;
7251 int res1 = 0 ;
7252 PyObject *swig_obj[1] ;
7253
7254 if (!args) SWIG_fail;
7255 swig_obj[0] = args;
7256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7257 if (!SWIG_IsOK(res1)) {
7258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7259 }
7260 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7261 {
7262 (arg1)->UseAlpha();
7263 if (PyErr_Occurred()) SWIG_fail;
7264 }
7265 resultobj = SWIG_Py_Void();
7266 return resultobj;
7267 fail:
7268 return NULL;
7269 }
7270
7271
7272 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7273 PyObject *resultobj = 0;
7274 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7275 bool result;
7276 void *argp1 = 0 ;
7277 int res1 = 0 ;
7278 PyObject *swig_obj[1] ;
7279
7280 if (!args) SWIG_fail;
7281 swig_obj[0] = args;
7282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7283 if (!SWIG_IsOK(res1)) {
7284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7285 }
7286 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7287 {
7288 result = (bool)wxNativePixelData___nonzero__(arg1);
7289 if (PyErr_Occurred()) SWIG_fail;
7290 }
7291 {
7292 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7293 }
7294 return resultobj;
7295 fail:
7296 return NULL;
7297 }
7298
7299
7300 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7301 PyObject *obj;
7302 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7303 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7304 return SWIG_Py_Void();
7305 }
7306
7307 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7308 return SWIG_Python_InitShadowInstance(args);
7309 }
7310
7311 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7312 PyObject *resultobj = 0;
7313 wxNativePixelData *arg1 = 0 ;
7314 wxNativePixelData_Accessor *result = 0 ;
7315 void *argp1 = 0 ;
7316 int res1 = 0 ;
7317
7318 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7320 if (!SWIG_IsOK(res1)) {
7321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7322 }
7323 if (!argp1) {
7324 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7325 }
7326 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7327 {
7328 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7329 if (PyErr_Occurred()) SWIG_fail;
7330 }
7331 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7332 return resultobj;
7333 fail:
7334 return NULL;
7335 }
7336
7337
7338 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7339 PyObject *resultobj = 0;
7340 wxBitmap *arg1 = 0 ;
7341 wxNativePixelData *arg2 = 0 ;
7342 wxNativePixelData_Accessor *result = 0 ;
7343 void *argp1 = 0 ;
7344 int res1 = 0 ;
7345 void *argp2 = 0 ;
7346 int res2 = 0 ;
7347
7348 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7350 if (!SWIG_IsOK(res1)) {
7351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7352 }
7353 if (!argp1) {
7354 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7355 }
7356 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7357 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7358 if (!SWIG_IsOK(res2)) {
7359 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7360 }
7361 if (!argp2) {
7362 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7363 }
7364 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7365 {
7366 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7367 if (PyErr_Occurred()) SWIG_fail;
7368 }
7369 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7370 return resultobj;
7371 fail:
7372 return NULL;
7373 }
7374
7375
7376 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7377 PyObject *resultobj = 0;
7378 wxNativePixelData_Accessor *result = 0 ;
7379
7380 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7381 {
7382 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7383 if (PyErr_Occurred()) SWIG_fail;
7384 }
7385 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7386 return resultobj;
7387 fail:
7388 return NULL;
7389 }
7390
7391
7392 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7393 int argc;
7394 PyObject *argv[3];
7395
7396 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7397 --argc;
7398 if (argc == 0) {
7399 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7400 }
7401 if (argc == 1) {
7402 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7403 }
7404 if (argc == 2) {
7405 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7406 }
7407
7408 fail:
7409 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7410 return NULL;
7411 }
7412
7413
7414 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7415 PyObject *resultobj = 0;
7416 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7417 void *argp1 = 0 ;
7418 int res1 = 0 ;
7419 PyObject *swig_obj[1] ;
7420
7421 if (!args) SWIG_fail;
7422 swig_obj[0] = args;
7423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7424 if (!SWIG_IsOK(res1)) {
7425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7426 }
7427 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7428 {
7429 delete arg1;
7430
7431 if (PyErr_Occurred()) SWIG_fail;
7432 }
7433 resultobj = SWIG_Py_Void();
7434 return resultobj;
7435 fail:
7436 return NULL;
7437 }
7438
7439
7440 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7441 PyObject *resultobj = 0;
7442 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7443 wxNativePixelData *arg2 = 0 ;
7444 void *argp1 = 0 ;
7445 int res1 = 0 ;
7446 void *argp2 = 0 ;
7447 int res2 = 0 ;
7448 PyObject * obj0 = 0 ;
7449 PyObject * obj1 = 0 ;
7450 char * kwnames[] = {
7451 (char *) "self",(char *) "data", NULL
7452 };
7453
7454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7456 if (!SWIG_IsOK(res1)) {
7457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7458 }
7459 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7460 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7461 if (!SWIG_IsOK(res2)) {
7462 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7463 }
7464 if (!argp2) {
7465 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7466 }
7467 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7468 {
7469 (arg1)->Reset((wxNativePixelData const &)*arg2);
7470 if (PyErr_Occurred()) SWIG_fail;
7471 }
7472 resultobj = SWIG_Py_Void();
7473 return resultobj;
7474 fail:
7475 return NULL;
7476 }
7477
7478
7479 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7480 PyObject *resultobj = 0;
7481 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7482 bool result;
7483 void *argp1 = 0 ;
7484 int res1 = 0 ;
7485 PyObject *swig_obj[1] ;
7486
7487 if (!args) SWIG_fail;
7488 swig_obj[0] = args;
7489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7490 if (!SWIG_IsOK(res1)) {
7491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7492 }
7493 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7494 {
7495 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7496 if (PyErr_Occurred()) SWIG_fail;
7497 }
7498 {
7499 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7500 }
7501 return resultobj;
7502 fail:
7503 return NULL;
7504 }
7505
7506
7507 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7508 PyObject *resultobj = 0;
7509 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7510 void *argp1 = 0 ;
7511 int res1 = 0 ;
7512 PyObject *swig_obj[1] ;
7513
7514 if (!args) SWIG_fail;
7515 swig_obj[0] = args;
7516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7517 if (!SWIG_IsOK(res1)) {
7518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7519 }
7520 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7521 {
7522 wxNativePixelData_Accessor_nextPixel(arg1);
7523 if (PyErr_Occurred()) SWIG_fail;
7524 }
7525 resultobj = SWIG_Py_Void();
7526 return resultobj;
7527 fail:
7528 return NULL;
7529 }
7530
7531
7532 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7533 PyObject *resultobj = 0;
7534 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7535 wxNativePixelData *arg2 = 0 ;
7536 int arg3 ;
7537 int arg4 ;
7538 void *argp1 = 0 ;
7539 int res1 = 0 ;
7540 void *argp2 = 0 ;
7541 int res2 = 0 ;
7542 int val3 ;
7543 int ecode3 = 0 ;
7544 int val4 ;
7545 int ecode4 = 0 ;
7546 PyObject * obj0 = 0 ;
7547 PyObject * obj1 = 0 ;
7548 PyObject * obj2 = 0 ;
7549 PyObject * obj3 = 0 ;
7550 char * kwnames[] = {
7551 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7552 };
7553
7554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7556 if (!SWIG_IsOK(res1)) {
7557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7558 }
7559 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7560 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7561 if (!SWIG_IsOK(res2)) {
7562 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7563 }
7564 if (!argp2) {
7565 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7566 }
7567 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7568 ecode3 = SWIG_AsVal_int(obj2, &val3);
7569 if (!SWIG_IsOK(ecode3)) {
7570 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7571 }
7572 arg3 = static_cast< int >(val3);
7573 ecode4 = SWIG_AsVal_int(obj3, &val4);
7574 if (!SWIG_IsOK(ecode4)) {
7575 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7576 }
7577 arg4 = static_cast< int >(val4);
7578 {
7579 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7580 if (PyErr_Occurred()) SWIG_fail;
7581 }
7582 resultobj = SWIG_Py_Void();
7583 return resultobj;
7584 fail:
7585 return NULL;
7586 }
7587
7588
7589 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7590 PyObject *resultobj = 0;
7591 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7592 wxNativePixelData *arg2 = 0 ;
7593 int arg3 ;
7594 void *argp1 = 0 ;
7595 int res1 = 0 ;
7596 void *argp2 = 0 ;
7597 int res2 = 0 ;
7598 int val3 ;
7599 int ecode3 = 0 ;
7600 PyObject * obj0 = 0 ;
7601 PyObject * obj1 = 0 ;
7602 PyObject * obj2 = 0 ;
7603 char * kwnames[] = {
7604 (char *) "self",(char *) "data",(char *) "x", NULL
7605 };
7606
7607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7609 if (!SWIG_IsOK(res1)) {
7610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7611 }
7612 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7613 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7614 if (!SWIG_IsOK(res2)) {
7615 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7616 }
7617 if (!argp2) {
7618 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7619 }
7620 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7621 ecode3 = SWIG_AsVal_int(obj2, &val3);
7622 if (!SWIG_IsOK(ecode3)) {
7623 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7624 }
7625 arg3 = static_cast< int >(val3);
7626 {
7627 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7628 if (PyErr_Occurred()) SWIG_fail;
7629 }
7630 resultobj = SWIG_Py_Void();
7631 return resultobj;
7632 fail:
7633 return NULL;
7634 }
7635
7636
7637 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7638 PyObject *resultobj = 0;
7639 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7640 wxNativePixelData *arg2 = 0 ;
7641 int arg3 ;
7642 void *argp1 = 0 ;
7643 int res1 = 0 ;
7644 void *argp2 = 0 ;
7645 int res2 = 0 ;
7646 int val3 ;
7647 int ecode3 = 0 ;
7648 PyObject * obj0 = 0 ;
7649 PyObject * obj1 = 0 ;
7650 PyObject * obj2 = 0 ;
7651 char * kwnames[] = {
7652 (char *) "self",(char *) "data",(char *) "y", NULL
7653 };
7654
7655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7657 if (!SWIG_IsOK(res1)) {
7658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7659 }
7660 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7661 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7662 if (!SWIG_IsOK(res2)) {
7663 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7664 }
7665 if (!argp2) {
7666 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7667 }
7668 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7669 ecode3 = SWIG_AsVal_int(obj2, &val3);
7670 if (!SWIG_IsOK(ecode3)) {
7671 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7672 }
7673 arg3 = static_cast< int >(val3);
7674 {
7675 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7676 if (PyErr_Occurred()) SWIG_fail;
7677 }
7678 resultobj = SWIG_Py_Void();
7679 return resultobj;
7680 fail:
7681 return NULL;
7682 }
7683
7684
7685 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7686 PyObject *resultobj = 0;
7687 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7688 wxNativePixelData *arg2 = 0 ;
7689 int arg3 ;
7690 int arg4 ;
7691 void *argp1 = 0 ;
7692 int res1 = 0 ;
7693 void *argp2 = 0 ;
7694 int res2 = 0 ;
7695 int val3 ;
7696 int ecode3 = 0 ;
7697 int val4 ;
7698 int ecode4 = 0 ;
7699 PyObject * obj0 = 0 ;
7700 PyObject * obj1 = 0 ;
7701 PyObject * obj2 = 0 ;
7702 PyObject * obj3 = 0 ;
7703 char * kwnames[] = {
7704 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7705 };
7706
7707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7709 if (!SWIG_IsOK(res1)) {
7710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7711 }
7712 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7713 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7714 if (!SWIG_IsOK(res2)) {
7715 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7716 }
7717 if (!argp2) {
7718 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7719 }
7720 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7721 ecode3 = SWIG_AsVal_int(obj2, &val3);
7722 if (!SWIG_IsOK(ecode3)) {
7723 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7724 }
7725 arg3 = static_cast< int >(val3);
7726 ecode4 = SWIG_AsVal_int(obj3, &val4);
7727 if (!SWIG_IsOK(ecode4)) {
7728 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7729 }
7730 arg4 = static_cast< int >(val4);
7731 {
7732 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7733 if (PyErr_Occurred()) SWIG_fail;
7734 }
7735 resultobj = SWIG_Py_Void();
7736 return resultobj;
7737 fail:
7738 return NULL;
7739 }
7740
7741
7742 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7743 PyObject *resultobj = 0;
7744 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7745 byte arg2 ;
7746 byte arg3 ;
7747 byte arg4 ;
7748 void *argp1 = 0 ;
7749 int res1 = 0 ;
7750 unsigned char val2 ;
7751 int ecode2 = 0 ;
7752 unsigned char val3 ;
7753 int ecode3 = 0 ;
7754 unsigned char val4 ;
7755 int ecode4 = 0 ;
7756 PyObject * obj0 = 0 ;
7757 PyObject * obj1 = 0 ;
7758 PyObject * obj2 = 0 ;
7759 PyObject * obj3 = 0 ;
7760 char * kwnames[] = {
7761 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7762 };
7763
7764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7766 if (!SWIG_IsOK(res1)) {
7767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7768 }
7769 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7770 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7771 if (!SWIG_IsOK(ecode2)) {
7772 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
7773 }
7774 arg2 = static_cast< byte >(val2);
7775 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7776 if (!SWIG_IsOK(ecode3)) {
7777 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
7778 }
7779 arg3 = static_cast< byte >(val3);
7780 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
7781 if (!SWIG_IsOK(ecode4)) {
7782 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
7783 }
7784 arg4 = static_cast< byte >(val4);
7785 {
7786 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
7787 if (PyErr_Occurred()) SWIG_fail;
7788 }
7789 resultobj = SWIG_Py_Void();
7790 return resultobj;
7791 fail:
7792 return NULL;
7793 }
7794
7795
7796 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7797 PyObject *resultobj = 0;
7798 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7799 PyObject *result = 0 ;
7800 void *argp1 = 0 ;
7801 int res1 = 0 ;
7802 PyObject *swig_obj[1] ;
7803
7804 if (!args) SWIG_fail;
7805 swig_obj[0] = args;
7806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7807 if (!SWIG_IsOK(res1)) {
7808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7809 }
7810 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7811 {
7812 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
7813 if (PyErr_Occurred()) SWIG_fail;
7814 }
7815 resultobj = result;
7816 return resultobj;
7817 fail:
7818 return NULL;
7819 }
7820
7821
7822 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7823 PyObject *obj;
7824 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7825 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
7826 return SWIG_Py_Void();
7827 }
7828
7829 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7830 return SWIG_Python_InitShadowInstance(args);
7831 }
7832
7833 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7834 PyObject *resultobj = 0;
7835 wxBitmap *arg1 = 0 ;
7836 wxAlphaPixelData *result = 0 ;
7837 void *argp1 = 0 ;
7838 int res1 = 0 ;
7839
7840 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7842 if (!SWIG_IsOK(res1)) {
7843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7844 }
7845 if (!argp1) {
7846 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7847 }
7848 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7849 {
7850 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
7851 if (PyErr_Occurred()) SWIG_fail;
7852 }
7853 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7854 return resultobj;
7855 fail:
7856 return NULL;
7857 }
7858
7859
7860 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7861 PyObject *resultobj = 0;
7862 wxBitmap *arg1 = 0 ;
7863 wxRect *arg2 = 0 ;
7864 wxAlphaPixelData *result = 0 ;
7865 void *argp1 = 0 ;
7866 int res1 = 0 ;
7867 wxRect temp2 ;
7868
7869 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7871 if (!SWIG_IsOK(res1)) {
7872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7873 }
7874 if (!argp1) {
7875 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7876 }
7877 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7878 {
7879 arg2 = &temp2;
7880 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7881 }
7882 {
7883 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
7884 if (PyErr_Occurred()) SWIG_fail;
7885 }
7886 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7887 return resultobj;
7888 fail:
7889 return NULL;
7890 }
7891
7892
7893 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7894 PyObject *resultobj = 0;
7895 wxBitmap *arg1 = 0 ;
7896 wxPoint *arg2 = 0 ;
7897 wxSize *arg3 = 0 ;
7898 wxAlphaPixelData *result = 0 ;
7899 void *argp1 = 0 ;
7900 int res1 = 0 ;
7901 wxPoint temp2 ;
7902 wxSize temp3 ;
7903
7904 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7906 if (!SWIG_IsOK(res1)) {
7907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7908 }
7909 if (!argp1) {
7910 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7911 }
7912 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7913 {
7914 arg2 = &temp2;
7915 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7916 }
7917 {
7918 arg3 = &temp3;
7919 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7920 }
7921 {
7922 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7923 if (PyErr_Occurred()) SWIG_fail;
7924 }
7925 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7926 return resultobj;
7927 fail:
7928 return NULL;
7929 }
7930
7931
7932 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
7933 int argc;
7934 PyObject *argv[4];
7935
7936 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
7937 --argc;
7938 if (argc == 1) {
7939 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
7940 }
7941 if (argc == 2) {
7942 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
7943 }
7944 if (argc == 3) {
7945 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
7946 }
7947
7948 fail:
7949 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
7950 return NULL;
7951 }
7952
7953
7954 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7955 PyObject *resultobj = 0;
7956 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7957 void *argp1 = 0 ;
7958 int res1 = 0 ;
7959 PyObject *swig_obj[1] ;
7960
7961 if (!args) SWIG_fail;
7962 swig_obj[0] = args;
7963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
7964 if (!SWIG_IsOK(res1)) {
7965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
7966 }
7967 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7968 {
7969 delete arg1;
7970
7971 if (PyErr_Occurred()) SWIG_fail;
7972 }
7973 resultobj = SWIG_Py_Void();
7974 return resultobj;
7975 fail:
7976 return NULL;
7977 }
7978
7979
7980 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7981 PyObject *resultobj = 0;
7982 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7983 wxAlphaPixelData_Accessor result;
7984 void *argp1 = 0 ;
7985 int res1 = 0 ;
7986 PyObject *swig_obj[1] ;
7987
7988 if (!args) SWIG_fail;
7989 swig_obj[0] = args;
7990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
7991 if (!SWIG_IsOK(res1)) {
7992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
7993 }
7994 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7995 {
7996 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
7997 if (PyErr_Occurred()) SWIG_fail;
7998 }
7999 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8000 return resultobj;
8001 fail:
8002 return NULL;
8003 }
8004
8005
8006 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8007 PyObject *resultobj = 0;
8008 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8009 void *argp1 = 0 ;
8010 int res1 = 0 ;
8011 PyObject *swig_obj[1] ;
8012
8013 if (!args) SWIG_fail;
8014 swig_obj[0] = args;
8015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8016 if (!SWIG_IsOK(res1)) {
8017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8018 }
8019 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8020 {
8021 (arg1)->UseAlpha();
8022 if (PyErr_Occurred()) SWIG_fail;
8023 }
8024 resultobj = SWIG_Py_Void();
8025 return resultobj;
8026 fail:
8027 return NULL;
8028 }
8029
8030
8031 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8032 PyObject *resultobj = 0;
8033 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8034 bool result;
8035 void *argp1 = 0 ;
8036 int res1 = 0 ;
8037 PyObject *swig_obj[1] ;
8038
8039 if (!args) SWIG_fail;
8040 swig_obj[0] = args;
8041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8042 if (!SWIG_IsOK(res1)) {
8043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8044 }
8045 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8046 {
8047 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8048 if (PyErr_Occurred()) SWIG_fail;
8049 }
8050 {
8051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8052 }
8053 return resultobj;
8054 fail:
8055 return NULL;
8056 }
8057
8058
8059 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8060 PyObject *obj;
8061 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8062 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8063 return SWIG_Py_Void();
8064 }
8065
8066 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8067 return SWIG_Python_InitShadowInstance(args);
8068 }
8069
8070 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8071 PyObject *resultobj = 0;
8072 wxAlphaPixelData *arg1 = 0 ;
8073 wxAlphaPixelData_Accessor *result = 0 ;
8074 void *argp1 = 0 ;
8075 int res1 = 0 ;
8076
8077 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8079 if (!SWIG_IsOK(res1)) {
8080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8081 }
8082 if (!argp1) {
8083 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8084 }
8085 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8086 {
8087 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8088 if (PyErr_Occurred()) SWIG_fail;
8089 }
8090 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8091 return resultobj;
8092 fail:
8093 return NULL;
8094 }
8095
8096
8097 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8098 PyObject *resultobj = 0;
8099 wxBitmap *arg1 = 0 ;
8100 wxAlphaPixelData *arg2 = 0 ;
8101 wxAlphaPixelData_Accessor *result = 0 ;
8102 void *argp1 = 0 ;
8103 int res1 = 0 ;
8104 void *argp2 = 0 ;
8105 int res2 = 0 ;
8106
8107 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8109 if (!SWIG_IsOK(res1)) {
8110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8111 }
8112 if (!argp1) {
8113 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8114 }
8115 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8116 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8117 if (!SWIG_IsOK(res2)) {
8118 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8119 }
8120 if (!argp2) {
8121 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8122 }
8123 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8124 {
8125 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8126 if (PyErr_Occurred()) SWIG_fail;
8127 }
8128 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8129 return resultobj;
8130 fail:
8131 return NULL;
8132 }
8133
8134
8135 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8136 PyObject *resultobj = 0;
8137 wxAlphaPixelData_Accessor *result = 0 ;
8138
8139 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8140 {
8141 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8142 if (PyErr_Occurred()) SWIG_fail;
8143 }
8144 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8145 return resultobj;
8146 fail:
8147 return NULL;
8148 }
8149
8150
8151 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8152 int argc;
8153 PyObject *argv[3];
8154
8155 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8156 --argc;
8157 if (argc == 0) {
8158 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8159 }
8160 if (argc == 1) {
8161 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8162 }
8163 if (argc == 2) {
8164 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8165 }
8166
8167 fail:
8168 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8169 return NULL;
8170 }
8171
8172
8173 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8174 PyObject *resultobj = 0;
8175 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8176 void *argp1 = 0 ;
8177 int res1 = 0 ;
8178 PyObject *swig_obj[1] ;
8179
8180 if (!args) SWIG_fail;
8181 swig_obj[0] = args;
8182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8183 if (!SWIG_IsOK(res1)) {
8184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8185 }
8186 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8187 {
8188 delete arg1;
8189
8190 if (PyErr_Occurred()) SWIG_fail;
8191 }
8192 resultobj = SWIG_Py_Void();
8193 return resultobj;
8194 fail:
8195 return NULL;
8196 }
8197
8198
8199 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8200 PyObject *resultobj = 0;
8201 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8202 wxAlphaPixelData *arg2 = 0 ;
8203 void *argp1 = 0 ;
8204 int res1 = 0 ;
8205 void *argp2 = 0 ;
8206 int res2 = 0 ;
8207 PyObject * obj0 = 0 ;
8208 PyObject * obj1 = 0 ;
8209 char * kwnames[] = {
8210 (char *) "self",(char *) "data", NULL
8211 };
8212
8213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8215 if (!SWIG_IsOK(res1)) {
8216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8217 }
8218 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8219 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8220 if (!SWIG_IsOK(res2)) {
8221 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8222 }
8223 if (!argp2) {
8224 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8225 }
8226 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8227 {
8228 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8229 if (PyErr_Occurred()) SWIG_fail;
8230 }
8231 resultobj = SWIG_Py_Void();
8232 return resultobj;
8233 fail:
8234 return NULL;
8235 }
8236
8237
8238 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8239 PyObject *resultobj = 0;
8240 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8241 bool result;
8242 void *argp1 = 0 ;
8243 int res1 = 0 ;
8244 PyObject *swig_obj[1] ;
8245
8246 if (!args) SWIG_fail;
8247 swig_obj[0] = args;
8248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8249 if (!SWIG_IsOK(res1)) {
8250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8251 }
8252 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8253 {
8254 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8255 if (PyErr_Occurred()) SWIG_fail;
8256 }
8257 {
8258 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8259 }
8260 return resultobj;
8261 fail:
8262 return NULL;
8263 }
8264
8265
8266 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8267 PyObject *resultobj = 0;
8268 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8269 void *argp1 = 0 ;
8270 int res1 = 0 ;
8271 PyObject *swig_obj[1] ;
8272
8273 if (!args) SWIG_fail;
8274 swig_obj[0] = args;
8275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8276 if (!SWIG_IsOK(res1)) {
8277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8278 }
8279 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8280 {
8281 wxAlphaPixelData_Accessor_nextPixel(arg1);
8282 if (PyErr_Occurred()) SWIG_fail;
8283 }
8284 resultobj = SWIG_Py_Void();
8285 return resultobj;
8286 fail:
8287 return NULL;
8288 }
8289
8290
8291 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8292 PyObject *resultobj = 0;
8293 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8294 wxAlphaPixelData *arg2 = 0 ;
8295 int arg3 ;
8296 int arg4 ;
8297 void *argp1 = 0 ;
8298 int res1 = 0 ;
8299 void *argp2 = 0 ;
8300 int res2 = 0 ;
8301 int val3 ;
8302 int ecode3 = 0 ;
8303 int val4 ;
8304 int ecode4 = 0 ;
8305 PyObject * obj0 = 0 ;
8306 PyObject * obj1 = 0 ;
8307 PyObject * obj2 = 0 ;
8308 PyObject * obj3 = 0 ;
8309 char * kwnames[] = {
8310 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8311 };
8312
8313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8315 if (!SWIG_IsOK(res1)) {
8316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8317 }
8318 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8319 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8320 if (!SWIG_IsOK(res2)) {
8321 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8322 }
8323 if (!argp2) {
8324 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8325 }
8326 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8327 ecode3 = SWIG_AsVal_int(obj2, &val3);
8328 if (!SWIG_IsOK(ecode3)) {
8329 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8330 }
8331 arg3 = static_cast< int >(val3);
8332 ecode4 = SWIG_AsVal_int(obj3, &val4);
8333 if (!SWIG_IsOK(ecode4)) {
8334 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8335 }
8336 arg4 = static_cast< int >(val4);
8337 {
8338 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8339 if (PyErr_Occurred()) SWIG_fail;
8340 }
8341 resultobj = SWIG_Py_Void();
8342 return resultobj;
8343 fail:
8344 return NULL;
8345 }
8346
8347
8348 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8349 PyObject *resultobj = 0;
8350 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8351 wxAlphaPixelData *arg2 = 0 ;
8352 int arg3 ;
8353 void *argp1 = 0 ;
8354 int res1 = 0 ;
8355 void *argp2 = 0 ;
8356 int res2 = 0 ;
8357 int val3 ;
8358 int ecode3 = 0 ;
8359 PyObject * obj0 = 0 ;
8360 PyObject * obj1 = 0 ;
8361 PyObject * obj2 = 0 ;
8362 char * kwnames[] = {
8363 (char *) "self",(char *) "data",(char *) "x", NULL
8364 };
8365
8366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8368 if (!SWIG_IsOK(res1)) {
8369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8370 }
8371 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8372 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8373 if (!SWIG_IsOK(res2)) {
8374 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8375 }
8376 if (!argp2) {
8377 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8378 }
8379 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8380 ecode3 = SWIG_AsVal_int(obj2, &val3);
8381 if (!SWIG_IsOK(ecode3)) {
8382 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8383 }
8384 arg3 = static_cast< int >(val3);
8385 {
8386 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8387 if (PyErr_Occurred()) SWIG_fail;
8388 }
8389 resultobj = SWIG_Py_Void();
8390 return resultobj;
8391 fail:
8392 return NULL;
8393 }
8394
8395
8396 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8397 PyObject *resultobj = 0;
8398 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8399 wxAlphaPixelData *arg2 = 0 ;
8400 int arg3 ;
8401 void *argp1 = 0 ;
8402 int res1 = 0 ;
8403 void *argp2 = 0 ;
8404 int res2 = 0 ;
8405 int val3 ;
8406 int ecode3 = 0 ;
8407 PyObject * obj0 = 0 ;
8408 PyObject * obj1 = 0 ;
8409 PyObject * obj2 = 0 ;
8410 char * kwnames[] = {
8411 (char *) "self",(char *) "data",(char *) "y", NULL
8412 };
8413
8414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8416 if (!SWIG_IsOK(res1)) {
8417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8418 }
8419 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8420 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8421 if (!SWIG_IsOK(res2)) {
8422 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8423 }
8424 if (!argp2) {
8425 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8426 }
8427 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8428 ecode3 = SWIG_AsVal_int(obj2, &val3);
8429 if (!SWIG_IsOK(ecode3)) {
8430 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8431 }
8432 arg3 = static_cast< int >(val3);
8433 {
8434 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8435 if (PyErr_Occurred()) SWIG_fail;
8436 }
8437 resultobj = SWIG_Py_Void();
8438 return resultobj;
8439 fail:
8440 return NULL;
8441 }
8442
8443
8444 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8445 PyObject *resultobj = 0;
8446 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8447 wxAlphaPixelData *arg2 = 0 ;
8448 int arg3 ;
8449 int arg4 ;
8450 void *argp1 = 0 ;
8451 int res1 = 0 ;
8452 void *argp2 = 0 ;
8453 int res2 = 0 ;
8454 int val3 ;
8455 int ecode3 = 0 ;
8456 int val4 ;
8457 int ecode4 = 0 ;
8458 PyObject * obj0 = 0 ;
8459 PyObject * obj1 = 0 ;
8460 PyObject * obj2 = 0 ;
8461 PyObject * obj3 = 0 ;
8462 char * kwnames[] = {
8463 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8464 };
8465
8466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8468 if (!SWIG_IsOK(res1)) {
8469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8470 }
8471 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8472 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8473 if (!SWIG_IsOK(res2)) {
8474 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8475 }
8476 if (!argp2) {
8477 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8478 }
8479 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8480 ecode3 = SWIG_AsVal_int(obj2, &val3);
8481 if (!SWIG_IsOK(ecode3)) {
8482 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8483 }
8484 arg3 = static_cast< int >(val3);
8485 ecode4 = SWIG_AsVal_int(obj3, &val4);
8486 if (!SWIG_IsOK(ecode4)) {
8487 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8488 }
8489 arg4 = static_cast< int >(val4);
8490 {
8491 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8492 if (PyErr_Occurred()) SWIG_fail;
8493 }
8494 resultobj = SWIG_Py_Void();
8495 return resultobj;
8496 fail:
8497 return NULL;
8498 }
8499
8500
8501 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8502 PyObject *resultobj = 0;
8503 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8504 byte arg2 ;
8505 byte arg3 ;
8506 byte arg4 ;
8507 byte arg5 ;
8508 void *argp1 = 0 ;
8509 int res1 = 0 ;
8510 unsigned char val2 ;
8511 int ecode2 = 0 ;
8512 unsigned char val3 ;
8513 int ecode3 = 0 ;
8514 unsigned char val4 ;
8515 int ecode4 = 0 ;
8516 unsigned char val5 ;
8517 int ecode5 = 0 ;
8518 PyObject * obj0 = 0 ;
8519 PyObject * obj1 = 0 ;
8520 PyObject * obj2 = 0 ;
8521 PyObject * obj3 = 0 ;
8522 PyObject * obj4 = 0 ;
8523 char * kwnames[] = {
8524 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8525 };
8526
8527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8529 if (!SWIG_IsOK(res1)) {
8530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8531 }
8532 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8533 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8534 if (!SWIG_IsOK(ecode2)) {
8535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8536 }
8537 arg2 = static_cast< byte >(val2);
8538 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8539 if (!SWIG_IsOK(ecode3)) {
8540 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8541 }
8542 arg3 = static_cast< byte >(val3);
8543 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8544 if (!SWIG_IsOK(ecode4)) {
8545 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8546 }
8547 arg4 = static_cast< byte >(val4);
8548 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8549 if (!SWIG_IsOK(ecode5)) {
8550 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8551 }
8552 arg5 = static_cast< byte >(val5);
8553 {
8554 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8555 if (PyErr_Occurred()) SWIG_fail;
8556 }
8557 resultobj = SWIG_Py_Void();
8558 return resultobj;
8559 fail:
8560 return NULL;
8561 }
8562
8563
8564 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8565 PyObject *resultobj = 0;
8566 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8567 PyObject *result = 0 ;
8568 void *argp1 = 0 ;
8569 int res1 = 0 ;
8570 PyObject *swig_obj[1] ;
8571
8572 if (!args) SWIG_fail;
8573 swig_obj[0] = args;
8574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8575 if (!SWIG_IsOK(res1)) {
8576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8577 }
8578 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8579 {
8580 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
8581 if (PyErr_Occurred()) SWIG_fail;
8582 }
8583 resultobj = result;
8584 return resultobj;
8585 fail:
8586 return NULL;
8587 }
8588
8589
8590 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8591 PyObject *obj;
8592 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8593 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
8594 return SWIG_Py_Void();
8595 }
8596
8597 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8598 return SWIG_Python_InitShadowInstance(args);
8599 }
8600
8601 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8602 PyObject *resultobj = 0;
8603 wxBitmap *arg1 = 0 ;
8604 wxColour const &arg2_defvalue = wxNullColour ;
8605 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8606 wxMask *result = 0 ;
8607 void *argp1 = 0 ;
8608 int res1 = 0 ;
8609 wxColour temp2 ;
8610 PyObject * obj0 = 0 ;
8611 PyObject * obj1 = 0 ;
8612 char * kwnames[] = {
8613 (char *) "bitmap",(char *) "colour", NULL
8614 };
8615
8616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8617 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8618 if (!SWIG_IsOK(res1)) {
8619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8620 }
8621 if (!argp1) {
8622 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8623 }
8624 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8625 if (obj1) {
8626 {
8627 arg2 = &temp2;
8628 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8629 }
8630 }
8631 {
8632 if (!wxPyCheckForApp()) SWIG_fail;
8633 PyThreadState* __tstate = wxPyBeginAllowThreads();
8634 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8635 wxPyEndAllowThreads(__tstate);
8636 if (PyErr_Occurred()) SWIG_fail;
8637 }
8638 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8639 return resultobj;
8640 fail:
8641 return NULL;
8642 }
8643
8644
8645 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8646 PyObject *resultobj = 0;
8647 wxMask *arg1 = (wxMask *) 0 ;
8648 void *argp1 = 0 ;
8649 int res1 = 0 ;
8650 PyObject *swig_obj[1] ;
8651
8652 if (!args) SWIG_fail;
8653 swig_obj[0] = args;
8654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8655 if (!SWIG_IsOK(res1)) {
8656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8657 }
8658 arg1 = reinterpret_cast< wxMask * >(argp1);
8659 {
8660 delete arg1;
8661
8662 if (PyErr_Occurred()) SWIG_fail;
8663 }
8664 resultobj = SWIG_Py_Void();
8665 return resultobj;
8666 fail:
8667 return NULL;
8668 }
8669
8670
8671 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8672 PyObject *obj;
8673 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8674 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8675 return SWIG_Py_Void();
8676 }
8677
8678 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8679 return SWIG_Python_InitShadowInstance(args);
8680 }
8681
8682 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8683 PyObject *resultobj = 0;
8684 wxString *arg1 = 0 ;
8685 wxBitmapType arg2 ;
8686 int arg3 = (int) -1 ;
8687 int arg4 = (int) -1 ;
8688 wxIcon *result = 0 ;
8689 bool temp1 = false ;
8690 int val2 ;
8691 int ecode2 = 0 ;
8692 int val3 ;
8693 int ecode3 = 0 ;
8694 int val4 ;
8695 int ecode4 = 0 ;
8696 PyObject * obj0 = 0 ;
8697 PyObject * obj1 = 0 ;
8698 PyObject * obj2 = 0 ;
8699 PyObject * obj3 = 0 ;
8700 char * kwnames[] = {
8701 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8702 };
8703
8704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8705 {
8706 arg1 = wxString_in_helper(obj0);
8707 if (arg1 == NULL) SWIG_fail;
8708 temp1 = true;
8709 }
8710 ecode2 = SWIG_AsVal_int(obj1, &val2);
8711 if (!SWIG_IsOK(ecode2)) {
8712 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8713 }
8714 arg2 = static_cast< wxBitmapType >(val2);
8715 if (obj2) {
8716 ecode3 = SWIG_AsVal_int(obj2, &val3);
8717 if (!SWIG_IsOK(ecode3)) {
8718 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8719 }
8720 arg3 = static_cast< int >(val3);
8721 }
8722 if (obj3) {
8723 ecode4 = SWIG_AsVal_int(obj3, &val4);
8724 if (!SWIG_IsOK(ecode4)) {
8725 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8726 }
8727 arg4 = static_cast< int >(val4);
8728 }
8729 {
8730 if (!wxPyCheckForApp()) SWIG_fail;
8731 PyThreadState* __tstate = wxPyBeginAllowThreads();
8732 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8733 wxPyEndAllowThreads(__tstate);
8734 if (PyErr_Occurred()) SWIG_fail;
8735 }
8736 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8737 {
8738 if (temp1)
8739 delete arg1;
8740 }
8741 return resultobj;
8742 fail:
8743 {
8744 if (temp1)
8745 delete arg1;
8746 }
8747 return NULL;
8748 }
8749
8750
8751 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8752 PyObject *resultobj = 0;
8753 wxIcon *arg1 = (wxIcon *) 0 ;
8754 void *argp1 = 0 ;
8755 int res1 = 0 ;
8756 PyObject *swig_obj[1] ;
8757
8758 if (!args) SWIG_fail;
8759 swig_obj[0] = args;
8760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8761 if (!SWIG_IsOK(res1)) {
8762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8763 }
8764 arg1 = reinterpret_cast< wxIcon * >(argp1);
8765 {
8766 PyThreadState* __tstate = wxPyBeginAllowThreads();
8767 delete arg1;
8768
8769 wxPyEndAllowThreads(__tstate);
8770 if (PyErr_Occurred()) SWIG_fail;
8771 }
8772 resultobj = SWIG_Py_Void();
8773 return resultobj;
8774 fail:
8775 return NULL;
8776 }
8777
8778
8779 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8780 PyObject *resultobj = 0;
8781 wxIcon *result = 0 ;
8782
8783 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
8784 {
8785 if (!wxPyCheckForApp()) SWIG_fail;
8786 PyThreadState* __tstate = wxPyBeginAllowThreads();
8787 result = (wxIcon *)new wxIcon();
8788 wxPyEndAllowThreads(__tstate);
8789 if (PyErr_Occurred()) SWIG_fail;
8790 }
8791 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8792 return resultobj;
8793 fail:
8794 return NULL;
8795 }
8796
8797
8798 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8799 PyObject *resultobj = 0;
8800 wxIconLocation *arg1 = 0 ;
8801 wxIcon *result = 0 ;
8802 void *argp1 = 0 ;
8803 int res1 = 0 ;
8804 PyObject * obj0 = 0 ;
8805 char * kwnames[] = {
8806 (char *) "loc", NULL
8807 };
8808
8809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
8810 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
8811 if (!SWIG_IsOK(res1)) {
8812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8813 }
8814 if (!argp1) {
8815 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8816 }
8817 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
8818 {
8819 if (!wxPyCheckForApp()) SWIG_fail;
8820 PyThreadState* __tstate = wxPyBeginAllowThreads();
8821 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
8822 wxPyEndAllowThreads(__tstate);
8823 if (PyErr_Occurred()) SWIG_fail;
8824 }
8825 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8826 return resultobj;
8827 fail:
8828 return NULL;
8829 }
8830
8831
8832 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8833 PyObject *resultobj = 0;
8834 wxBitmap *arg1 = 0 ;
8835 wxIcon *result = 0 ;
8836 void *argp1 = 0 ;
8837 int res1 = 0 ;
8838 PyObject * obj0 = 0 ;
8839 char * kwnames[] = {
8840 (char *) "bmp", NULL
8841 };
8842
8843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
8844 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8845 if (!SWIG_IsOK(res1)) {
8846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8847 }
8848 if (!argp1) {
8849 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8850 }
8851 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8852 {
8853 if (!wxPyCheckForApp()) SWIG_fail;
8854 PyThreadState* __tstate = wxPyBeginAllowThreads();
8855 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
8856 wxPyEndAllowThreads(__tstate);
8857 if (PyErr_Occurred()) SWIG_fail;
8858 }
8859 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8860 return resultobj;
8861 fail:
8862 return NULL;
8863 }
8864
8865
8866 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8867 PyObject *resultobj = 0;
8868 PyObject *arg1 = (PyObject *) 0 ;
8869 wxIcon *result = 0 ;
8870 PyObject * obj0 = 0 ;
8871 char * kwnames[] = {
8872 (char *) "listOfStrings", NULL
8873 };
8874
8875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
8876 arg1 = obj0;
8877 {
8878 if (!wxPyCheckForApp()) SWIG_fail;
8879 PyThreadState* __tstate = wxPyBeginAllowThreads();
8880 result = (wxIcon *)new_wxIcon(arg1);
8881 wxPyEndAllowThreads(__tstate);
8882 if (PyErr_Occurred()) SWIG_fail;
8883 }
8884 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8885 return resultobj;
8886 fail:
8887 return NULL;
8888 }
8889
8890
8891 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8892 PyObject *resultobj = 0;
8893 wxIcon *arg1 = (wxIcon *) 0 ;
8894 wxString *arg2 = 0 ;
8895 wxBitmapType arg3 ;
8896 bool result;
8897 void *argp1 = 0 ;
8898 int res1 = 0 ;
8899 bool temp2 = false ;
8900 int val3 ;
8901 int ecode3 = 0 ;
8902 PyObject * obj0 = 0 ;
8903 PyObject * obj1 = 0 ;
8904 PyObject * obj2 = 0 ;
8905 char * kwnames[] = {
8906 (char *) "self",(char *) "name",(char *) "type", NULL
8907 };
8908
8909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8911 if (!SWIG_IsOK(res1)) {
8912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
8913 }
8914 arg1 = reinterpret_cast< wxIcon * >(argp1);
8915 {
8916 arg2 = wxString_in_helper(obj1);
8917 if (arg2 == NULL) SWIG_fail;
8918 temp2 = true;
8919 }
8920 ecode3 = SWIG_AsVal_int(obj2, &val3);
8921 if (!SWIG_IsOK(ecode3)) {
8922 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
8923 }
8924 arg3 = static_cast< wxBitmapType >(val3);
8925 {
8926 PyThreadState* __tstate = wxPyBeginAllowThreads();
8927 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
8928 wxPyEndAllowThreads(__tstate);
8929 if (PyErr_Occurred()) SWIG_fail;
8930 }
8931 {
8932 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8933 }
8934 {
8935 if (temp2)
8936 delete arg2;
8937 }
8938 return resultobj;
8939 fail:
8940 {
8941 if (temp2)
8942 delete arg2;
8943 }
8944 return NULL;
8945 }
8946
8947
8948 SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8949 PyObject *resultobj = 0;
8950 wxIcon *arg1 = (wxIcon *) 0 ;
8951 bool result;
8952 void *argp1 = 0 ;
8953 int res1 = 0 ;
8954 PyObject *swig_obj[1] ;
8955
8956 if (!args) SWIG_fail;
8957 swig_obj[0] = args;
8958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8959 if (!SWIG_IsOK(res1)) {
8960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
8961 }
8962 arg1 = reinterpret_cast< wxIcon * >(argp1);
8963 {
8964 PyThreadState* __tstate = wxPyBeginAllowThreads();
8965 result = (bool)(arg1)->IsOk();
8966 wxPyEndAllowThreads(__tstate);
8967 if (PyErr_Occurred()) SWIG_fail;
8968 }
8969 {
8970 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8971 }
8972 return resultobj;
8973 fail:
8974 return NULL;
8975 }
8976
8977
8978 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8979 PyObject *resultobj = 0;
8980 wxIcon *arg1 = (wxIcon *) 0 ;
8981 int result;
8982 void *argp1 = 0 ;
8983 int res1 = 0 ;
8984 PyObject *swig_obj[1] ;
8985
8986 if (!args) SWIG_fail;
8987 swig_obj[0] = args;
8988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8989 if (!SWIG_IsOK(res1)) {
8990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
8991 }
8992 arg1 = reinterpret_cast< wxIcon * >(argp1);
8993 {
8994 PyThreadState* __tstate = wxPyBeginAllowThreads();
8995 result = (int)(arg1)->GetWidth();
8996 wxPyEndAllowThreads(__tstate);
8997 if (PyErr_Occurred()) SWIG_fail;
8998 }
8999 resultobj = SWIG_From_int(static_cast< int >(result));
9000 return resultobj;
9001 fail:
9002 return NULL;
9003 }
9004
9005
9006 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9007 PyObject *resultobj = 0;
9008 wxIcon *arg1 = (wxIcon *) 0 ;
9009 int result;
9010 void *argp1 = 0 ;
9011 int res1 = 0 ;
9012 PyObject *swig_obj[1] ;
9013
9014 if (!args) SWIG_fail;
9015 swig_obj[0] = args;
9016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9017 if (!SWIG_IsOK(res1)) {
9018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9019 }
9020 arg1 = reinterpret_cast< wxIcon * >(argp1);
9021 {
9022 PyThreadState* __tstate = wxPyBeginAllowThreads();
9023 result = (int)(arg1)->GetHeight();
9024 wxPyEndAllowThreads(__tstate);
9025 if (PyErr_Occurred()) SWIG_fail;
9026 }
9027 resultobj = SWIG_From_int(static_cast< int >(result));
9028 return resultobj;
9029 fail:
9030 return NULL;
9031 }
9032
9033
9034 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9035 PyObject *resultobj = 0;
9036 wxIcon *arg1 = (wxIcon *) 0 ;
9037 int result;
9038 void *argp1 = 0 ;
9039 int res1 = 0 ;
9040 PyObject *swig_obj[1] ;
9041
9042 if (!args) SWIG_fail;
9043 swig_obj[0] = args;
9044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9045 if (!SWIG_IsOK(res1)) {
9046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9047 }
9048 arg1 = reinterpret_cast< wxIcon * >(argp1);
9049 {
9050 PyThreadState* __tstate = wxPyBeginAllowThreads();
9051 result = (int)(arg1)->GetDepth();
9052 wxPyEndAllowThreads(__tstate);
9053 if (PyErr_Occurred()) SWIG_fail;
9054 }
9055 resultobj = SWIG_From_int(static_cast< int >(result));
9056 return resultobj;
9057 fail:
9058 return NULL;
9059 }
9060
9061
9062 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9063 PyObject *resultobj = 0;
9064 wxIcon *arg1 = (wxIcon *) 0 ;
9065 int arg2 ;
9066 void *argp1 = 0 ;
9067 int res1 = 0 ;
9068 int val2 ;
9069 int ecode2 = 0 ;
9070 PyObject * obj0 = 0 ;
9071 PyObject * obj1 = 0 ;
9072 char * kwnames[] = {
9073 (char *) "self",(char *) "w", NULL
9074 };
9075
9076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9078 if (!SWIG_IsOK(res1)) {
9079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9080 }
9081 arg1 = reinterpret_cast< wxIcon * >(argp1);
9082 ecode2 = SWIG_AsVal_int(obj1, &val2);
9083 if (!SWIG_IsOK(ecode2)) {
9084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9085 }
9086 arg2 = static_cast< int >(val2);
9087 {
9088 PyThreadState* __tstate = wxPyBeginAllowThreads();
9089 (arg1)->SetWidth(arg2);
9090 wxPyEndAllowThreads(__tstate);
9091 if (PyErr_Occurred()) SWIG_fail;
9092 }
9093 resultobj = SWIG_Py_Void();
9094 return resultobj;
9095 fail:
9096 return NULL;
9097 }
9098
9099
9100 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9101 PyObject *resultobj = 0;
9102 wxIcon *arg1 = (wxIcon *) 0 ;
9103 int arg2 ;
9104 void *argp1 = 0 ;
9105 int res1 = 0 ;
9106 int val2 ;
9107 int ecode2 = 0 ;
9108 PyObject * obj0 = 0 ;
9109 PyObject * obj1 = 0 ;
9110 char * kwnames[] = {
9111 (char *) "self",(char *) "h", NULL
9112 };
9113
9114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9116 if (!SWIG_IsOK(res1)) {
9117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9118 }
9119 arg1 = reinterpret_cast< wxIcon * >(argp1);
9120 ecode2 = SWIG_AsVal_int(obj1, &val2);
9121 if (!SWIG_IsOK(ecode2)) {
9122 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9123 }
9124 arg2 = static_cast< int >(val2);
9125 {
9126 PyThreadState* __tstate = wxPyBeginAllowThreads();
9127 (arg1)->SetHeight(arg2);
9128 wxPyEndAllowThreads(__tstate);
9129 if (PyErr_Occurred()) SWIG_fail;
9130 }
9131 resultobj = SWIG_Py_Void();
9132 return resultobj;
9133 fail:
9134 return NULL;
9135 }
9136
9137
9138 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9139 PyObject *resultobj = 0;
9140 wxIcon *arg1 = (wxIcon *) 0 ;
9141 int arg2 ;
9142 void *argp1 = 0 ;
9143 int res1 = 0 ;
9144 int val2 ;
9145 int ecode2 = 0 ;
9146 PyObject * obj0 = 0 ;
9147 PyObject * obj1 = 0 ;
9148 char * kwnames[] = {
9149 (char *) "self",(char *) "d", NULL
9150 };
9151
9152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9154 if (!SWIG_IsOK(res1)) {
9155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9156 }
9157 arg1 = reinterpret_cast< wxIcon * >(argp1);
9158 ecode2 = SWIG_AsVal_int(obj1, &val2);
9159 if (!SWIG_IsOK(ecode2)) {
9160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9161 }
9162 arg2 = static_cast< int >(val2);
9163 {
9164 PyThreadState* __tstate = wxPyBeginAllowThreads();
9165 (arg1)->SetDepth(arg2);
9166 wxPyEndAllowThreads(__tstate);
9167 if (PyErr_Occurred()) SWIG_fail;
9168 }
9169 resultobj = SWIG_Py_Void();
9170 return resultobj;
9171 fail:
9172 return NULL;
9173 }
9174
9175
9176 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9177 PyObject *resultobj = 0;
9178 wxIcon *arg1 = (wxIcon *) 0 ;
9179 wxBitmap *arg2 = 0 ;
9180 void *argp1 = 0 ;
9181 int res1 = 0 ;
9182 void *argp2 = 0 ;
9183 int res2 = 0 ;
9184 PyObject * obj0 = 0 ;
9185 PyObject * obj1 = 0 ;
9186 char * kwnames[] = {
9187 (char *) "self",(char *) "bmp", NULL
9188 };
9189
9190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9192 if (!SWIG_IsOK(res1)) {
9193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9194 }
9195 arg1 = reinterpret_cast< wxIcon * >(argp1);
9196 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9197 if (!SWIG_IsOK(res2)) {
9198 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9199 }
9200 if (!argp2) {
9201 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9202 }
9203 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9204 {
9205 PyThreadState* __tstate = wxPyBeginAllowThreads();
9206 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9207 wxPyEndAllowThreads(__tstate);
9208 if (PyErr_Occurred()) SWIG_fail;
9209 }
9210 resultobj = SWIG_Py_Void();
9211 return resultobj;
9212 fail:
9213 return NULL;
9214 }
9215
9216
9217 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9218 PyObject *obj;
9219 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9220 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9221 return SWIG_Py_Void();
9222 }
9223
9224 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9225 return SWIG_Python_InitShadowInstance(args);
9226 }
9227
9228 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9229 PyObject *resultobj = 0;
9230 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9231 int arg2 = (int) 0 ;
9232 wxIconLocation *result = 0 ;
9233 bool temp1 = false ;
9234 int val2 ;
9235 int ecode2 = 0 ;
9236 PyObject * obj0 = 0 ;
9237 PyObject * obj1 = 0 ;
9238 char * kwnames[] = {
9239 (char *) "filename",(char *) "num", NULL
9240 };
9241
9242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9243 if (obj0) {
9244 {
9245 arg1 = wxString_in_helper(obj0);
9246 if (arg1 == NULL) SWIG_fail;
9247 temp1 = true;
9248 }
9249 }
9250 if (obj1) {
9251 ecode2 = SWIG_AsVal_int(obj1, &val2);
9252 if (!SWIG_IsOK(ecode2)) {
9253 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9254 }
9255 arg2 = static_cast< int >(val2);
9256 }
9257 {
9258 PyThreadState* __tstate = wxPyBeginAllowThreads();
9259 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9260 wxPyEndAllowThreads(__tstate);
9261 if (PyErr_Occurred()) SWIG_fail;
9262 }
9263 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9264 {
9265 if (temp1)
9266 delete arg1;
9267 }
9268 return resultobj;
9269 fail:
9270 {
9271 if (temp1)
9272 delete arg1;
9273 }
9274 return NULL;
9275 }
9276
9277
9278 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9279 PyObject *resultobj = 0;
9280 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9281 void *argp1 = 0 ;
9282 int res1 = 0 ;
9283 PyObject *swig_obj[1] ;
9284
9285 if (!args) SWIG_fail;
9286 swig_obj[0] = args;
9287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9288 if (!SWIG_IsOK(res1)) {
9289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9290 }
9291 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9292 {
9293 PyThreadState* __tstate = wxPyBeginAllowThreads();
9294 delete arg1;
9295
9296 wxPyEndAllowThreads(__tstate);
9297 if (PyErr_Occurred()) SWIG_fail;
9298 }
9299 resultobj = SWIG_Py_Void();
9300 return resultobj;
9301 fail:
9302 return NULL;
9303 }
9304
9305
9306 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9307 PyObject *resultobj = 0;
9308 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9309 bool result;
9310 void *argp1 = 0 ;
9311 int res1 = 0 ;
9312 PyObject *swig_obj[1] ;
9313
9314 if (!args) SWIG_fail;
9315 swig_obj[0] = args;
9316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9317 if (!SWIG_IsOK(res1)) {
9318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9319 }
9320 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9321 {
9322 PyThreadState* __tstate = wxPyBeginAllowThreads();
9323 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9324 wxPyEndAllowThreads(__tstate);
9325 if (PyErr_Occurred()) SWIG_fail;
9326 }
9327 {
9328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9329 }
9330 return resultobj;
9331 fail:
9332 return NULL;
9333 }
9334
9335
9336 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9337 PyObject *resultobj = 0;
9338 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9339 wxString *arg2 = 0 ;
9340 void *argp1 = 0 ;
9341 int res1 = 0 ;
9342 bool temp2 = false ;
9343 PyObject * obj0 = 0 ;
9344 PyObject * obj1 = 0 ;
9345 char * kwnames[] = {
9346 (char *) "self",(char *) "filename", NULL
9347 };
9348
9349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9351 if (!SWIG_IsOK(res1)) {
9352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9353 }
9354 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9355 {
9356 arg2 = wxString_in_helper(obj1);
9357 if (arg2 == NULL) SWIG_fail;
9358 temp2 = true;
9359 }
9360 {
9361 PyThreadState* __tstate = wxPyBeginAllowThreads();
9362 (arg1)->SetFileName((wxString const &)*arg2);
9363 wxPyEndAllowThreads(__tstate);
9364 if (PyErr_Occurred()) SWIG_fail;
9365 }
9366 resultobj = SWIG_Py_Void();
9367 {
9368 if (temp2)
9369 delete arg2;
9370 }
9371 return resultobj;
9372 fail:
9373 {
9374 if (temp2)
9375 delete arg2;
9376 }
9377 return NULL;
9378 }
9379
9380
9381 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9382 PyObject *resultobj = 0;
9383 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9384 wxString *result = 0 ;
9385 void *argp1 = 0 ;
9386 int res1 = 0 ;
9387 PyObject *swig_obj[1] ;
9388
9389 if (!args) SWIG_fail;
9390 swig_obj[0] = args;
9391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9392 if (!SWIG_IsOK(res1)) {
9393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9394 }
9395 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9396 {
9397 PyThreadState* __tstate = wxPyBeginAllowThreads();
9398 {
9399 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9400 result = (wxString *) &_result_ref;
9401 }
9402 wxPyEndAllowThreads(__tstate);
9403 if (PyErr_Occurred()) SWIG_fail;
9404 }
9405 {
9406 #if wxUSE_UNICODE
9407 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9408 #else
9409 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9410 #endif
9411 }
9412 return resultobj;
9413 fail:
9414 return NULL;
9415 }
9416
9417
9418 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9419 PyObject *resultobj = 0;
9420 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9421 int arg2 ;
9422 void *argp1 = 0 ;
9423 int res1 = 0 ;
9424 int val2 ;
9425 int ecode2 = 0 ;
9426 PyObject * obj0 = 0 ;
9427 PyObject * obj1 = 0 ;
9428 char * kwnames[] = {
9429 (char *) "self",(char *) "num", NULL
9430 };
9431
9432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9434 if (!SWIG_IsOK(res1)) {
9435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9436 }
9437 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9438 ecode2 = SWIG_AsVal_int(obj1, &val2);
9439 if (!SWIG_IsOK(ecode2)) {
9440 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9441 }
9442 arg2 = static_cast< int >(val2);
9443 {
9444 PyThreadState* __tstate = wxPyBeginAllowThreads();
9445 wxIconLocation_SetIndex(arg1,arg2);
9446 wxPyEndAllowThreads(__tstate);
9447 if (PyErr_Occurred()) SWIG_fail;
9448 }
9449 resultobj = SWIG_Py_Void();
9450 return resultobj;
9451 fail:
9452 return NULL;
9453 }
9454
9455
9456 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9457 PyObject *resultobj = 0;
9458 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9459 int result;
9460 void *argp1 = 0 ;
9461 int res1 = 0 ;
9462 PyObject *swig_obj[1] ;
9463
9464 if (!args) SWIG_fail;
9465 swig_obj[0] = args;
9466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9467 if (!SWIG_IsOK(res1)) {
9468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9469 }
9470 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9471 {
9472 PyThreadState* __tstate = wxPyBeginAllowThreads();
9473 result = (int)wxIconLocation_GetIndex(arg1);
9474 wxPyEndAllowThreads(__tstate);
9475 if (PyErr_Occurred()) SWIG_fail;
9476 }
9477 resultobj = SWIG_From_int(static_cast< int >(result));
9478 return resultobj;
9479 fail:
9480 return NULL;
9481 }
9482
9483
9484 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9485 PyObject *obj;
9486 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9487 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9488 return SWIG_Py_Void();
9489 }
9490
9491 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9492 return SWIG_Python_InitShadowInstance(args);
9493 }
9494
9495 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9496 PyObject *resultobj = 0;
9497 wxIconBundle *result = 0 ;
9498
9499 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9500 {
9501 PyThreadState* __tstate = wxPyBeginAllowThreads();
9502 result = (wxIconBundle *)new wxIconBundle();
9503 wxPyEndAllowThreads(__tstate);
9504 if (PyErr_Occurred()) SWIG_fail;
9505 }
9506 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9507 return resultobj;
9508 fail:
9509 return NULL;
9510 }
9511
9512
9513 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9514 PyObject *resultobj = 0;
9515 wxString *arg1 = 0 ;
9516 long arg2 ;
9517 wxIconBundle *result = 0 ;
9518 bool temp1 = false ;
9519 long val2 ;
9520 int ecode2 = 0 ;
9521 PyObject * obj0 = 0 ;
9522 PyObject * obj1 = 0 ;
9523 char * kwnames[] = {
9524 (char *) "file",(char *) "type", NULL
9525 };
9526
9527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9528 {
9529 arg1 = wxString_in_helper(obj0);
9530 if (arg1 == NULL) SWIG_fail;
9531 temp1 = true;
9532 }
9533 ecode2 = SWIG_AsVal_long(obj1, &val2);
9534 if (!SWIG_IsOK(ecode2)) {
9535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9536 }
9537 arg2 = static_cast< long >(val2);
9538 {
9539 PyThreadState* __tstate = wxPyBeginAllowThreads();
9540 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9541 wxPyEndAllowThreads(__tstate);
9542 if (PyErr_Occurred()) SWIG_fail;
9543 }
9544 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9545 {
9546 if (temp1)
9547 delete arg1;
9548 }
9549 return resultobj;
9550 fail:
9551 {
9552 if (temp1)
9553 delete arg1;
9554 }
9555 return NULL;
9556 }
9557
9558
9559 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9560 PyObject *resultobj = 0;
9561 wxIcon *arg1 = 0 ;
9562 wxIconBundle *result = 0 ;
9563 void *argp1 = 0 ;
9564 int res1 = 0 ;
9565 PyObject * obj0 = 0 ;
9566 char * kwnames[] = {
9567 (char *) "icon", NULL
9568 };
9569
9570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9571 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9572 if (!SWIG_IsOK(res1)) {
9573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9574 }
9575 if (!argp1) {
9576 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9577 }
9578 arg1 = reinterpret_cast< wxIcon * >(argp1);
9579 {
9580 PyThreadState* __tstate = wxPyBeginAllowThreads();
9581 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9582 wxPyEndAllowThreads(__tstate);
9583 if (PyErr_Occurred()) SWIG_fail;
9584 }
9585 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9586 return resultobj;
9587 fail:
9588 return NULL;
9589 }
9590
9591
9592 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9593 PyObject *resultobj = 0;
9594 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9595 void *argp1 = 0 ;
9596 int res1 = 0 ;
9597 PyObject *swig_obj[1] ;
9598
9599 if (!args) SWIG_fail;
9600 swig_obj[0] = args;
9601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9602 if (!SWIG_IsOK(res1)) {
9603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9604 }
9605 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9606 {
9607 PyThreadState* __tstate = wxPyBeginAllowThreads();
9608 delete arg1;
9609
9610 wxPyEndAllowThreads(__tstate);
9611 if (PyErr_Occurred()) SWIG_fail;
9612 }
9613 resultobj = SWIG_Py_Void();
9614 return resultobj;
9615 fail:
9616 return NULL;
9617 }
9618
9619
9620 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9621 PyObject *resultobj = 0;
9622 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9623 wxIcon *arg2 = 0 ;
9624 void *argp1 = 0 ;
9625 int res1 = 0 ;
9626 void *argp2 = 0 ;
9627 int res2 = 0 ;
9628 PyObject * obj0 = 0 ;
9629 PyObject * obj1 = 0 ;
9630 char * kwnames[] = {
9631 (char *) "self",(char *) "icon", NULL
9632 };
9633
9634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9636 if (!SWIG_IsOK(res1)) {
9637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9638 }
9639 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9640 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9641 if (!SWIG_IsOK(res2)) {
9642 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9643 }
9644 if (!argp2) {
9645 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9646 }
9647 arg2 = reinterpret_cast< wxIcon * >(argp2);
9648 {
9649 PyThreadState* __tstate = wxPyBeginAllowThreads();
9650 (arg1)->AddIcon((wxIcon const &)*arg2);
9651 wxPyEndAllowThreads(__tstate);
9652 if (PyErr_Occurred()) SWIG_fail;
9653 }
9654 resultobj = SWIG_Py_Void();
9655 return resultobj;
9656 fail:
9657 return NULL;
9658 }
9659
9660
9661 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9662 PyObject *resultobj = 0;
9663 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9664 wxString *arg2 = 0 ;
9665 long arg3 ;
9666 void *argp1 = 0 ;
9667 int res1 = 0 ;
9668 bool temp2 = false ;
9669 long val3 ;
9670 int ecode3 = 0 ;
9671 PyObject * obj0 = 0 ;
9672 PyObject * obj1 = 0 ;
9673 PyObject * obj2 = 0 ;
9674 char * kwnames[] = {
9675 (char *) "self",(char *) "file",(char *) "type", NULL
9676 };
9677
9678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9680 if (!SWIG_IsOK(res1)) {
9681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9682 }
9683 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9684 {
9685 arg2 = wxString_in_helper(obj1);
9686 if (arg2 == NULL) SWIG_fail;
9687 temp2 = true;
9688 }
9689 ecode3 = SWIG_AsVal_long(obj2, &val3);
9690 if (!SWIG_IsOK(ecode3)) {
9691 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9692 }
9693 arg3 = static_cast< long >(val3);
9694 {
9695 PyThreadState* __tstate = wxPyBeginAllowThreads();
9696 (arg1)->AddIcon((wxString const &)*arg2,arg3);
9697 wxPyEndAllowThreads(__tstate);
9698 if (PyErr_Occurred()) SWIG_fail;
9699 }
9700 resultobj = SWIG_Py_Void();
9701 {
9702 if (temp2)
9703 delete arg2;
9704 }
9705 return resultobj;
9706 fail:
9707 {
9708 if (temp2)
9709 delete arg2;
9710 }
9711 return NULL;
9712 }
9713
9714
9715 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9716 PyObject *resultobj = 0;
9717 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9718 wxSize *arg2 = 0 ;
9719 wxIcon *result = 0 ;
9720 void *argp1 = 0 ;
9721 int res1 = 0 ;
9722 wxSize temp2 ;
9723 PyObject * obj0 = 0 ;
9724 PyObject * obj1 = 0 ;
9725 char * kwnames[] = {
9726 (char *) "self",(char *) "size", NULL
9727 };
9728
9729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9731 if (!SWIG_IsOK(res1)) {
9732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
9733 }
9734 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9735 {
9736 arg2 = &temp2;
9737 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9738 }
9739 {
9740 PyThreadState* __tstate = wxPyBeginAllowThreads();
9741 {
9742 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
9743 result = (wxIcon *) &_result_ref;
9744 }
9745 wxPyEndAllowThreads(__tstate);
9746 if (PyErr_Occurred()) SWIG_fail;
9747 }
9748 {
9749 wxIcon* resultptr = new wxIcon(*result);
9750 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
9751 }
9752 return resultobj;
9753 fail:
9754 return NULL;
9755 }
9756
9757
9758 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9759 PyObject *obj;
9760 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9761 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
9762 return SWIG_Py_Void();
9763 }
9764
9765 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9766 return SWIG_Python_InitShadowInstance(args);
9767 }
9768
9769 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9770 PyObject *resultobj = 0;
9771 wxString *arg1 = 0 ;
9772 long arg2 ;
9773 int arg3 = (int) 0 ;
9774 int arg4 = (int) 0 ;
9775 wxCursor *result = 0 ;
9776 bool temp1 = false ;
9777 long val2 ;
9778 int ecode2 = 0 ;
9779 int val3 ;
9780 int ecode3 = 0 ;
9781 int val4 ;
9782 int ecode4 = 0 ;
9783 PyObject * obj0 = 0 ;
9784 PyObject * obj1 = 0 ;
9785 PyObject * obj2 = 0 ;
9786 PyObject * obj3 = 0 ;
9787 char * kwnames[] = {
9788 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
9789 };
9790
9791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9792 {
9793 arg1 = wxString_in_helper(obj0);
9794 if (arg1 == NULL) SWIG_fail;
9795 temp1 = true;
9796 }
9797 ecode2 = SWIG_AsVal_long(obj1, &val2);
9798 if (!SWIG_IsOK(ecode2)) {
9799 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
9800 }
9801 arg2 = static_cast< long >(val2);
9802 if (obj2) {
9803 ecode3 = SWIG_AsVal_int(obj2, &val3);
9804 if (!SWIG_IsOK(ecode3)) {
9805 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
9806 }
9807 arg3 = static_cast< int >(val3);
9808 }
9809 if (obj3) {
9810 ecode4 = SWIG_AsVal_int(obj3, &val4);
9811 if (!SWIG_IsOK(ecode4)) {
9812 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
9813 }
9814 arg4 = static_cast< int >(val4);
9815 }
9816 {
9817 if (!wxPyCheckForApp()) SWIG_fail;
9818 PyThreadState* __tstate = wxPyBeginAllowThreads();
9819 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
9820 wxPyEndAllowThreads(__tstate);
9821 if (PyErr_Occurred()) SWIG_fail;
9822 }
9823 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
9824 {
9825 if (temp1)
9826 delete arg1;
9827 }
9828 return resultobj;
9829 fail:
9830 {
9831 if (temp1)
9832 delete arg1;
9833 }
9834 return NULL;
9835 }
9836
9837
9838 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9839 PyObject *resultobj = 0;
9840 wxCursor *arg1 = (wxCursor *) 0 ;
9841 void *argp1 = 0 ;
9842 int res1 = 0 ;
9843 PyObject *swig_obj[1] ;
9844
9845 if (!args) SWIG_fail;
9846 swig_obj[0] = args;
9847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
9848 if (!SWIG_IsOK(res1)) {
9849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
9850 }
9851 arg1 = reinterpret_cast< wxCursor * >(argp1);
9852 {
9853 PyThreadState* __tstate = wxPyBeginAllowThreads();
9854 delete arg1;
9855
9856 wxPyEndAllowThreads(__tstate);
9857 if (PyErr_Occurred()) SWIG_fail;
9858 }
9859 resultobj = SWIG_Py_Void();
9860 return resultobj;
9861 fail:
9862 return NULL;
9863 }
9864
9865
9866 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9867 PyObject *resultobj = 0;
9868 int arg1 ;
9869 wxCursor *result = 0 ;
9870 int val1 ;
9871 int ecode1 = 0 ;
9872 PyObject * obj0 = 0 ;
9873 char * kwnames[] = {
9874 (char *) "id", NULL
9875 };
9876
9877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
9878 ecode1 = SWIG_AsVal_int(obj0, &val1);
9879 if (!SWIG_IsOK(ecode1)) {
9880 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
9881 }
9882 arg1 = static_cast< int >(val1);
9883 {
9884 if (!wxPyCheckForApp()) SWIG_fail;
9885 PyThreadState* __tstate = wxPyBeginAllowThreads();
9886 result = (wxCursor *)new wxCursor(arg1);
9887 wxPyEndAllowThreads(__tstate);
9888 if (PyErr_Occurred()) SWIG_fail;
9889 }
9890 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9891 return resultobj;
9892 fail:
9893 return NULL;
9894 }
9895
9896
9897 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9898 PyObject *resultobj = 0;
9899 wxImage *arg1 = 0 ;
9900 wxCursor *result = 0 ;
9901 void *argp1 = 0 ;
9902 int res1 = 0 ;
9903 PyObject * obj0 = 0 ;
9904 char * kwnames[] = {
9905 (char *) "image", NULL
9906 };
9907
9908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
9909 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
9910 if (!SWIG_IsOK(res1)) {
9911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9912 }
9913 if (!argp1) {
9914 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9915 }
9916 arg1 = reinterpret_cast< wxImage * >(argp1);
9917 {
9918 if (!wxPyCheckForApp()) SWIG_fail;
9919 PyThreadState* __tstate = wxPyBeginAllowThreads();
9920 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
9921 wxPyEndAllowThreads(__tstate);
9922 if (PyErr_Occurred()) SWIG_fail;
9923 }
9924 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9925 return resultobj;
9926 fail:
9927 return NULL;
9928 }
9929
9930
9931 SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9932 PyObject *resultobj = 0;
9933 wxCursor *arg1 = (wxCursor *) 0 ;
9934 bool result;
9935 void *argp1 = 0 ;
9936 int res1 = 0 ;
9937 PyObject *swig_obj[1] ;
9938
9939 if (!args) SWIG_fail;
9940 swig_obj[0] = args;
9941 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
9942 if (!SWIG_IsOK(res1)) {
9943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
9944 }
9945 arg1 = reinterpret_cast< wxCursor * >(argp1);
9946 {
9947 PyThreadState* __tstate = wxPyBeginAllowThreads();
9948 result = (bool)(arg1)->IsOk();
9949 wxPyEndAllowThreads(__tstate);
9950 if (PyErr_Occurred()) SWIG_fail;
9951 }
9952 {
9953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9954 }
9955 return resultobj;
9956 fail:
9957 return NULL;
9958 }
9959
9960
9961 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9962 PyObject *obj;
9963 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9964 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
9965 return SWIG_Py_Void();
9966 }
9967
9968 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9969 return SWIG_Python_InitShadowInstance(args);
9970 }
9971
9972 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9973 PyObject *resultobj = 0;
9974 int arg1 = (int) 0 ;
9975 int arg2 = (int) 0 ;
9976 int arg3 = (int) 0 ;
9977 int arg4 = (int) 0 ;
9978 wxRegion *result = 0 ;
9979 int val1 ;
9980 int ecode1 = 0 ;
9981 int val2 ;
9982 int ecode2 = 0 ;
9983 int val3 ;
9984 int ecode3 = 0 ;
9985 int val4 ;
9986 int ecode4 = 0 ;
9987 PyObject * obj0 = 0 ;
9988 PyObject * obj1 = 0 ;
9989 PyObject * obj2 = 0 ;
9990 PyObject * obj3 = 0 ;
9991 char * kwnames[] = {
9992 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9993 };
9994
9995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9996 if (obj0) {
9997 ecode1 = SWIG_AsVal_int(obj0, &val1);
9998 if (!SWIG_IsOK(ecode1)) {
9999 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10000 }
10001 arg1 = static_cast< int >(val1);
10002 }
10003 if (obj1) {
10004 ecode2 = SWIG_AsVal_int(obj1, &val2);
10005 if (!SWIG_IsOK(ecode2)) {
10006 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10007 }
10008 arg2 = static_cast< int >(val2);
10009 }
10010 if (obj2) {
10011 ecode3 = SWIG_AsVal_int(obj2, &val3);
10012 if (!SWIG_IsOK(ecode3)) {
10013 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10014 }
10015 arg3 = static_cast< int >(val3);
10016 }
10017 if (obj3) {
10018 ecode4 = SWIG_AsVal_int(obj3, &val4);
10019 if (!SWIG_IsOK(ecode4)) {
10020 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10021 }
10022 arg4 = static_cast< int >(val4);
10023 }
10024 {
10025 if (!wxPyCheckForApp()) SWIG_fail;
10026 PyThreadState* __tstate = wxPyBeginAllowThreads();
10027 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10028 wxPyEndAllowThreads(__tstate);
10029 if (PyErr_Occurred()) SWIG_fail;
10030 }
10031 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10032 return resultobj;
10033 fail:
10034 return NULL;
10035 }
10036
10037
10038 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10039 PyObject *resultobj = 0;
10040 wxBitmap *arg1 = 0 ;
10041 wxRegion *result = 0 ;
10042 void *argp1 = 0 ;
10043 int res1 = 0 ;
10044 PyObject * obj0 = 0 ;
10045 char * kwnames[] = {
10046 (char *) "bmp", NULL
10047 };
10048
10049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10050 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10051 if (!SWIG_IsOK(res1)) {
10052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10053 }
10054 if (!argp1) {
10055 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10056 }
10057 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10058 {
10059 if (!wxPyCheckForApp()) SWIG_fail;
10060 PyThreadState* __tstate = wxPyBeginAllowThreads();
10061 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10062 wxPyEndAllowThreads(__tstate);
10063 if (PyErr_Occurred()) SWIG_fail;
10064 }
10065 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10066 return resultobj;
10067 fail:
10068 return NULL;
10069 }
10070
10071
10072 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10073 PyObject *resultobj = 0;
10074 wxBitmap *arg1 = 0 ;
10075 wxColour *arg2 = 0 ;
10076 int arg3 = (int) 0 ;
10077 wxRegion *result = 0 ;
10078 void *argp1 = 0 ;
10079 int res1 = 0 ;
10080 wxColour temp2 ;
10081 int val3 ;
10082 int ecode3 = 0 ;
10083 PyObject * obj0 = 0 ;
10084 PyObject * obj1 = 0 ;
10085 PyObject * obj2 = 0 ;
10086 char * kwnames[] = {
10087 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10088 };
10089
10090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10091 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10092 if (!SWIG_IsOK(res1)) {
10093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10094 }
10095 if (!argp1) {
10096 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10097 }
10098 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10099 {
10100 arg2 = &temp2;
10101 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10102 }
10103 if (obj2) {
10104 ecode3 = SWIG_AsVal_int(obj2, &val3);
10105 if (!SWIG_IsOK(ecode3)) {
10106 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10107 }
10108 arg3 = static_cast< int >(val3);
10109 }
10110 {
10111 if (!wxPyCheckForApp()) SWIG_fail;
10112 PyThreadState* __tstate = wxPyBeginAllowThreads();
10113 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10114 wxPyEndAllowThreads(__tstate);
10115 if (PyErr_Occurred()) SWIG_fail;
10116 }
10117 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10118 return resultobj;
10119 fail:
10120 return NULL;
10121 }
10122
10123
10124 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10125 PyObject *resultobj = 0;
10126 int arg1 ;
10127 wxPoint *arg2 = (wxPoint *) 0 ;
10128 int arg3 = (int) wxWINDING_RULE ;
10129 wxRegion *result = 0 ;
10130 int val3 ;
10131 int ecode3 = 0 ;
10132 PyObject * obj0 = 0 ;
10133 PyObject * obj1 = 0 ;
10134 char * kwnames[] = {
10135 (char *) "points",(char *) "fillStyle", NULL
10136 };
10137
10138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10139 {
10140 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10141 if (arg2 == NULL) SWIG_fail;
10142 }
10143 if (obj1) {
10144 ecode3 = SWIG_AsVal_int(obj1, &val3);
10145 if (!SWIG_IsOK(ecode3)) {
10146 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10147 }
10148 arg3 = static_cast< int >(val3);
10149 }
10150 {
10151 if (!wxPyCheckForApp()) SWIG_fail;
10152 PyThreadState* __tstate = wxPyBeginAllowThreads();
10153 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10154 wxPyEndAllowThreads(__tstate);
10155 if (PyErr_Occurred()) SWIG_fail;
10156 }
10157 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10158 {
10159 if (arg2) delete [] arg2;
10160 }
10161 return resultobj;
10162 fail:
10163 {
10164 if (arg2) delete [] arg2;
10165 }
10166 return NULL;
10167 }
10168
10169
10170 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10171 PyObject *resultobj = 0;
10172 wxRegion *arg1 = (wxRegion *) 0 ;
10173 void *argp1 = 0 ;
10174 int res1 = 0 ;
10175 PyObject *swig_obj[1] ;
10176
10177 if (!args) SWIG_fail;
10178 swig_obj[0] = args;
10179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10180 if (!SWIG_IsOK(res1)) {
10181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10182 }
10183 arg1 = reinterpret_cast< wxRegion * >(argp1);
10184 {
10185 PyThreadState* __tstate = wxPyBeginAllowThreads();
10186 delete arg1;
10187
10188 wxPyEndAllowThreads(__tstate);
10189 if (PyErr_Occurred()) SWIG_fail;
10190 }
10191 resultobj = SWIG_Py_Void();
10192 return resultobj;
10193 fail:
10194 return NULL;
10195 }
10196
10197
10198 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10199 PyObject *resultobj = 0;
10200 wxRegion *arg1 = (wxRegion *) 0 ;
10201 void *argp1 = 0 ;
10202 int res1 = 0 ;
10203 PyObject *swig_obj[1] ;
10204
10205 if (!args) SWIG_fail;
10206 swig_obj[0] = args;
10207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10208 if (!SWIG_IsOK(res1)) {
10209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10210 }
10211 arg1 = reinterpret_cast< wxRegion * >(argp1);
10212 {
10213 PyThreadState* __tstate = wxPyBeginAllowThreads();
10214 (arg1)->Clear();
10215 wxPyEndAllowThreads(__tstate);
10216 if (PyErr_Occurred()) SWIG_fail;
10217 }
10218 resultobj = SWIG_Py_Void();
10219 return resultobj;
10220 fail:
10221 return NULL;
10222 }
10223
10224
10225 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10226 PyObject *resultobj = 0;
10227 wxRegion *arg1 = (wxRegion *) 0 ;
10228 int arg2 ;
10229 int arg3 ;
10230 bool result;
10231 void *argp1 = 0 ;
10232 int res1 = 0 ;
10233 int val2 ;
10234 int ecode2 = 0 ;
10235 int val3 ;
10236 int ecode3 = 0 ;
10237 PyObject * obj0 = 0 ;
10238 PyObject * obj1 = 0 ;
10239 PyObject * obj2 = 0 ;
10240 char * kwnames[] = {
10241 (char *) "self",(char *) "x",(char *) "y", NULL
10242 };
10243
10244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10246 if (!SWIG_IsOK(res1)) {
10247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10248 }
10249 arg1 = reinterpret_cast< wxRegion * >(argp1);
10250 ecode2 = SWIG_AsVal_int(obj1, &val2);
10251 if (!SWIG_IsOK(ecode2)) {
10252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10253 }
10254 arg2 = static_cast< int >(val2);
10255 ecode3 = SWIG_AsVal_int(obj2, &val3);
10256 if (!SWIG_IsOK(ecode3)) {
10257 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10258 }
10259 arg3 = static_cast< int >(val3);
10260 {
10261 PyThreadState* __tstate = wxPyBeginAllowThreads();
10262 result = (bool)(arg1)->Offset(arg2,arg3);
10263 wxPyEndAllowThreads(__tstate);
10264 if (PyErr_Occurred()) SWIG_fail;
10265 }
10266 {
10267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10268 }
10269 return resultobj;
10270 fail:
10271 return NULL;
10272 }
10273
10274
10275 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10276 PyObject *resultobj = 0;
10277 wxRegion *arg1 = (wxRegion *) 0 ;
10278 int arg2 ;
10279 int arg3 ;
10280 wxRegionContain result;
10281 void *argp1 = 0 ;
10282 int res1 = 0 ;
10283 int val2 ;
10284 int ecode2 = 0 ;
10285 int val3 ;
10286 int ecode3 = 0 ;
10287 PyObject * obj0 = 0 ;
10288 PyObject * obj1 = 0 ;
10289 PyObject * obj2 = 0 ;
10290 char * kwnames[] = {
10291 (char *) "self",(char *) "x",(char *) "y", NULL
10292 };
10293
10294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10296 if (!SWIG_IsOK(res1)) {
10297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10298 }
10299 arg1 = reinterpret_cast< wxRegion * >(argp1);
10300 ecode2 = SWIG_AsVal_int(obj1, &val2);
10301 if (!SWIG_IsOK(ecode2)) {
10302 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10303 }
10304 arg2 = static_cast< int >(val2);
10305 ecode3 = SWIG_AsVal_int(obj2, &val3);
10306 if (!SWIG_IsOK(ecode3)) {
10307 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10308 }
10309 arg3 = static_cast< int >(val3);
10310 {
10311 PyThreadState* __tstate = wxPyBeginAllowThreads();
10312 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10313 wxPyEndAllowThreads(__tstate);
10314 if (PyErr_Occurred()) SWIG_fail;
10315 }
10316 resultobj = SWIG_From_int(static_cast< int >(result));
10317 return resultobj;
10318 fail:
10319 return NULL;
10320 }
10321
10322
10323 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10324 PyObject *resultobj = 0;
10325 wxRegion *arg1 = (wxRegion *) 0 ;
10326 wxPoint *arg2 = 0 ;
10327 wxRegionContain result;
10328 void *argp1 = 0 ;
10329 int res1 = 0 ;
10330 wxPoint temp2 ;
10331 PyObject * obj0 = 0 ;
10332 PyObject * obj1 = 0 ;
10333 char * kwnames[] = {
10334 (char *) "self",(char *) "pt", NULL
10335 };
10336
10337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10339 if (!SWIG_IsOK(res1)) {
10340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10341 }
10342 arg1 = reinterpret_cast< wxRegion * >(argp1);
10343 {
10344 arg2 = &temp2;
10345 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10346 }
10347 {
10348 PyThreadState* __tstate = wxPyBeginAllowThreads();
10349 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10350 wxPyEndAllowThreads(__tstate);
10351 if (PyErr_Occurred()) SWIG_fail;
10352 }
10353 resultobj = SWIG_From_int(static_cast< int >(result));
10354 return resultobj;
10355 fail:
10356 return NULL;
10357 }
10358
10359
10360 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10361 PyObject *resultobj = 0;
10362 wxRegion *arg1 = (wxRegion *) 0 ;
10363 wxRect *arg2 = 0 ;
10364 wxRegionContain result;
10365 void *argp1 = 0 ;
10366 int res1 = 0 ;
10367 wxRect temp2 ;
10368 PyObject * obj0 = 0 ;
10369 PyObject * obj1 = 0 ;
10370 char * kwnames[] = {
10371 (char *) "self",(char *) "rect", NULL
10372 };
10373
10374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10376 if (!SWIG_IsOK(res1)) {
10377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10378 }
10379 arg1 = reinterpret_cast< wxRegion * >(argp1);
10380 {
10381 arg2 = &temp2;
10382 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10383 }
10384 {
10385 PyThreadState* __tstate = wxPyBeginAllowThreads();
10386 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10387 wxPyEndAllowThreads(__tstate);
10388 if (PyErr_Occurred()) SWIG_fail;
10389 }
10390 resultobj = SWIG_From_int(static_cast< int >(result));
10391 return resultobj;
10392 fail:
10393 return NULL;
10394 }
10395
10396
10397 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10398 PyObject *resultobj = 0;
10399 wxRegion *arg1 = (wxRegion *) 0 ;
10400 int arg2 ;
10401 int arg3 ;
10402 int arg4 ;
10403 int arg5 ;
10404 wxRegionContain result;
10405 void *argp1 = 0 ;
10406 int res1 = 0 ;
10407 int val2 ;
10408 int ecode2 = 0 ;
10409 int val3 ;
10410 int ecode3 = 0 ;
10411 int val4 ;
10412 int ecode4 = 0 ;
10413 int val5 ;
10414 int ecode5 = 0 ;
10415 PyObject * obj0 = 0 ;
10416 PyObject * obj1 = 0 ;
10417 PyObject * obj2 = 0 ;
10418 PyObject * obj3 = 0 ;
10419 PyObject * obj4 = 0 ;
10420 char * kwnames[] = {
10421 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10422 };
10423
10424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10426 if (!SWIG_IsOK(res1)) {
10427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10428 }
10429 arg1 = reinterpret_cast< wxRegion * >(argp1);
10430 ecode2 = SWIG_AsVal_int(obj1, &val2);
10431 if (!SWIG_IsOK(ecode2)) {
10432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10433 }
10434 arg2 = static_cast< int >(val2);
10435 ecode3 = SWIG_AsVal_int(obj2, &val3);
10436 if (!SWIG_IsOK(ecode3)) {
10437 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10438 }
10439 arg3 = static_cast< int >(val3);
10440 ecode4 = SWIG_AsVal_int(obj3, &val4);
10441 if (!SWIG_IsOK(ecode4)) {
10442 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10443 }
10444 arg4 = static_cast< int >(val4);
10445 ecode5 = SWIG_AsVal_int(obj4, &val5);
10446 if (!SWIG_IsOK(ecode5)) {
10447 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10448 }
10449 arg5 = static_cast< int >(val5);
10450 {
10451 PyThreadState* __tstate = wxPyBeginAllowThreads();
10452 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10453 wxPyEndAllowThreads(__tstate);
10454 if (PyErr_Occurred()) SWIG_fail;
10455 }
10456 resultobj = SWIG_From_int(static_cast< int >(result));
10457 return resultobj;
10458 fail:
10459 return NULL;
10460 }
10461
10462
10463 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10464 PyObject *resultobj = 0;
10465 wxRegion *arg1 = (wxRegion *) 0 ;
10466 wxRect result;
10467 void *argp1 = 0 ;
10468 int res1 = 0 ;
10469 PyObject *swig_obj[1] ;
10470
10471 if (!args) SWIG_fail;
10472 swig_obj[0] = args;
10473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10474 if (!SWIG_IsOK(res1)) {
10475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10476 }
10477 arg1 = reinterpret_cast< wxRegion * >(argp1);
10478 {
10479 PyThreadState* __tstate = wxPyBeginAllowThreads();
10480 result = (arg1)->GetBox();
10481 wxPyEndAllowThreads(__tstate);
10482 if (PyErr_Occurred()) SWIG_fail;
10483 }
10484 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10485 return resultobj;
10486 fail:
10487 return NULL;
10488 }
10489
10490
10491 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10492 PyObject *resultobj = 0;
10493 wxRegion *arg1 = (wxRegion *) 0 ;
10494 int arg2 ;
10495 int arg3 ;
10496 int arg4 ;
10497 int arg5 ;
10498 bool result;
10499 void *argp1 = 0 ;
10500 int res1 = 0 ;
10501 int val2 ;
10502 int ecode2 = 0 ;
10503 int val3 ;
10504 int ecode3 = 0 ;
10505 int val4 ;
10506 int ecode4 = 0 ;
10507 int val5 ;
10508 int ecode5 = 0 ;
10509 PyObject * obj0 = 0 ;
10510 PyObject * obj1 = 0 ;
10511 PyObject * obj2 = 0 ;
10512 PyObject * obj3 = 0 ;
10513 PyObject * obj4 = 0 ;
10514 char * kwnames[] = {
10515 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10516 };
10517
10518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10520 if (!SWIG_IsOK(res1)) {
10521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10522 }
10523 arg1 = reinterpret_cast< wxRegion * >(argp1);
10524 ecode2 = SWIG_AsVal_int(obj1, &val2);
10525 if (!SWIG_IsOK(ecode2)) {
10526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10527 }
10528 arg2 = static_cast< int >(val2);
10529 ecode3 = SWIG_AsVal_int(obj2, &val3);
10530 if (!SWIG_IsOK(ecode3)) {
10531 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10532 }
10533 arg3 = static_cast< int >(val3);
10534 ecode4 = SWIG_AsVal_int(obj3, &val4);
10535 if (!SWIG_IsOK(ecode4)) {
10536 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10537 }
10538 arg4 = static_cast< int >(val4);
10539 ecode5 = SWIG_AsVal_int(obj4, &val5);
10540 if (!SWIG_IsOK(ecode5)) {
10541 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10542 }
10543 arg5 = static_cast< int >(val5);
10544 {
10545 PyThreadState* __tstate = wxPyBeginAllowThreads();
10546 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10547 wxPyEndAllowThreads(__tstate);
10548 if (PyErr_Occurred()) SWIG_fail;
10549 }
10550 {
10551 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10552 }
10553 return resultobj;
10554 fail:
10555 return NULL;
10556 }
10557
10558
10559 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10560 PyObject *resultobj = 0;
10561 wxRegion *arg1 = (wxRegion *) 0 ;
10562 wxRect *arg2 = 0 ;
10563 bool result;
10564 void *argp1 = 0 ;
10565 int res1 = 0 ;
10566 wxRect temp2 ;
10567 PyObject * obj0 = 0 ;
10568 PyObject * obj1 = 0 ;
10569 char * kwnames[] = {
10570 (char *) "self",(char *) "rect", NULL
10571 };
10572
10573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10575 if (!SWIG_IsOK(res1)) {
10576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10577 }
10578 arg1 = reinterpret_cast< wxRegion * >(argp1);
10579 {
10580 arg2 = &temp2;
10581 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10582 }
10583 {
10584 PyThreadState* __tstate = wxPyBeginAllowThreads();
10585 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10586 wxPyEndAllowThreads(__tstate);
10587 if (PyErr_Occurred()) SWIG_fail;
10588 }
10589 {
10590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10591 }
10592 return resultobj;
10593 fail:
10594 return NULL;
10595 }
10596
10597
10598 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10599 PyObject *resultobj = 0;
10600 wxRegion *arg1 = (wxRegion *) 0 ;
10601 wxRegion *arg2 = 0 ;
10602 bool result;
10603 void *argp1 = 0 ;
10604 int res1 = 0 ;
10605 void *argp2 = 0 ;
10606 int res2 = 0 ;
10607 PyObject * obj0 = 0 ;
10608 PyObject * obj1 = 0 ;
10609 char * kwnames[] = {
10610 (char *) "self",(char *) "region", NULL
10611 };
10612
10613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10615 if (!SWIG_IsOK(res1)) {
10616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10617 }
10618 arg1 = reinterpret_cast< wxRegion * >(argp1);
10619 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10620 if (!SWIG_IsOK(res2)) {
10621 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10622 }
10623 if (!argp2) {
10624 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10625 }
10626 arg2 = reinterpret_cast< wxRegion * >(argp2);
10627 {
10628 PyThreadState* __tstate = wxPyBeginAllowThreads();
10629 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10630 wxPyEndAllowThreads(__tstate);
10631 if (PyErr_Occurred()) SWIG_fail;
10632 }
10633 {
10634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10635 }
10636 return resultobj;
10637 fail:
10638 return NULL;
10639 }
10640
10641
10642 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10643 PyObject *resultobj = 0;
10644 wxRegion *arg1 = (wxRegion *) 0 ;
10645 bool result;
10646 void *argp1 = 0 ;
10647 int res1 = 0 ;
10648 PyObject *swig_obj[1] ;
10649
10650 if (!args) SWIG_fail;
10651 swig_obj[0] = args;
10652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10653 if (!SWIG_IsOK(res1)) {
10654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10655 }
10656 arg1 = reinterpret_cast< wxRegion * >(argp1);
10657 {
10658 PyThreadState* __tstate = wxPyBeginAllowThreads();
10659 result = (bool)(arg1)->IsEmpty();
10660 wxPyEndAllowThreads(__tstate);
10661 if (PyErr_Occurred()) SWIG_fail;
10662 }
10663 {
10664 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10665 }
10666 return resultobj;
10667 fail:
10668 return NULL;
10669 }
10670
10671
10672 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10673 PyObject *resultobj = 0;
10674 wxRegion *arg1 = (wxRegion *) 0 ;
10675 wxRegion *arg2 = 0 ;
10676 bool result;
10677 void *argp1 = 0 ;
10678 int res1 = 0 ;
10679 void *argp2 = 0 ;
10680 int res2 = 0 ;
10681 PyObject * obj0 = 0 ;
10682 PyObject * obj1 = 0 ;
10683 char * kwnames[] = {
10684 (char *) "self",(char *) "region", NULL
10685 };
10686
10687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
10688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10689 if (!SWIG_IsOK(res1)) {
10690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
10691 }
10692 arg1 = reinterpret_cast< wxRegion * >(argp1);
10693 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10694 if (!SWIG_IsOK(res2)) {
10695 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10696 }
10697 if (!argp2) {
10698 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10699 }
10700 arg2 = reinterpret_cast< wxRegion * >(argp2);
10701 {
10702 PyThreadState* __tstate = wxPyBeginAllowThreads();
10703 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
10704 wxPyEndAllowThreads(__tstate);
10705 if (PyErr_Occurred()) SWIG_fail;
10706 }
10707 {
10708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10709 }
10710 return resultobj;
10711 fail:
10712 return NULL;
10713 }
10714
10715
10716 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10717 PyObject *resultobj = 0;
10718 wxRegion *arg1 = (wxRegion *) 0 ;
10719 int arg2 ;
10720 int arg3 ;
10721 int arg4 ;
10722 int arg5 ;
10723 bool result;
10724 void *argp1 = 0 ;
10725 int res1 = 0 ;
10726 int val2 ;
10727 int ecode2 = 0 ;
10728 int val3 ;
10729 int ecode3 = 0 ;
10730 int val4 ;
10731 int ecode4 = 0 ;
10732 int val5 ;
10733 int ecode5 = 0 ;
10734 PyObject * obj0 = 0 ;
10735 PyObject * obj1 = 0 ;
10736 PyObject * obj2 = 0 ;
10737 PyObject * obj3 = 0 ;
10738 PyObject * obj4 = 0 ;
10739 char * kwnames[] = {
10740 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10741 };
10742
10743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10745 if (!SWIG_IsOK(res1)) {
10746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
10747 }
10748 arg1 = reinterpret_cast< wxRegion * >(argp1);
10749 ecode2 = SWIG_AsVal_int(obj1, &val2);
10750 if (!SWIG_IsOK(ecode2)) {
10751 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
10752 }
10753 arg2 = static_cast< int >(val2);
10754 ecode3 = SWIG_AsVal_int(obj2, &val3);
10755 if (!SWIG_IsOK(ecode3)) {
10756 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
10757 }
10758 arg3 = static_cast< int >(val3);
10759 ecode4 = SWIG_AsVal_int(obj3, &val4);
10760 if (!SWIG_IsOK(ecode4)) {
10761 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
10762 }
10763 arg4 = static_cast< int >(val4);
10764 ecode5 = SWIG_AsVal_int(obj4, &val5);
10765 if (!SWIG_IsOK(ecode5)) {
10766 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
10767 }
10768 arg5 = static_cast< int >(val5);
10769 {
10770 PyThreadState* __tstate = wxPyBeginAllowThreads();
10771 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
10772 wxPyEndAllowThreads(__tstate);
10773 if (PyErr_Occurred()) SWIG_fail;
10774 }
10775 {
10776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10777 }
10778 return resultobj;
10779 fail:
10780 return NULL;
10781 }
10782
10783
10784 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10785 PyObject *resultobj = 0;
10786 wxRegion *arg1 = (wxRegion *) 0 ;
10787 wxRect *arg2 = 0 ;
10788 bool result;
10789 void *argp1 = 0 ;
10790 int res1 = 0 ;
10791 wxRect temp2 ;
10792 PyObject * obj0 = 0 ;
10793 PyObject * obj1 = 0 ;
10794 char * kwnames[] = {
10795 (char *) "self",(char *) "rect", NULL
10796 };
10797
10798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
10799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10800 if (!SWIG_IsOK(res1)) {
10801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10802 }
10803 arg1 = reinterpret_cast< wxRegion * >(argp1);
10804 {
10805 arg2 = &temp2;
10806 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10807 }
10808 {
10809 PyThreadState* __tstate = wxPyBeginAllowThreads();
10810 result = (bool)(arg1)->Union((wxRect const &)*arg2);
10811 wxPyEndAllowThreads(__tstate);
10812 if (PyErr_Occurred()) SWIG_fail;
10813 }
10814 {
10815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10816 }
10817 return resultobj;
10818 fail:
10819 return NULL;
10820 }
10821
10822
10823 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10824 PyObject *resultobj = 0;
10825 wxRegion *arg1 = (wxRegion *) 0 ;
10826 wxRegion *arg2 = 0 ;
10827 bool result;
10828 void *argp1 = 0 ;
10829 int res1 = 0 ;
10830 void *argp2 = 0 ;
10831 int res2 = 0 ;
10832 PyObject * obj0 = 0 ;
10833 PyObject * obj1 = 0 ;
10834 char * kwnames[] = {
10835 (char *) "self",(char *) "region", NULL
10836 };
10837
10838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10840 if (!SWIG_IsOK(res1)) {
10841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10842 }
10843 arg1 = reinterpret_cast< wxRegion * >(argp1);
10844 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10845 if (!SWIG_IsOK(res2)) {
10846 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10847 }
10848 if (!argp2) {
10849 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10850 }
10851 arg2 = reinterpret_cast< wxRegion * >(argp2);
10852 {
10853 PyThreadState* __tstate = wxPyBeginAllowThreads();
10854 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
10855 wxPyEndAllowThreads(__tstate);
10856 if (PyErr_Occurred()) SWIG_fail;
10857 }
10858 {
10859 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10860 }
10861 return resultobj;
10862 fail:
10863 return NULL;
10864 }
10865
10866
10867 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10868 PyObject *resultobj = 0;
10869 wxRegion *arg1 = (wxRegion *) 0 ;
10870 int arg2 ;
10871 int arg3 ;
10872 int arg4 ;
10873 int arg5 ;
10874 bool result;
10875 void *argp1 = 0 ;
10876 int res1 = 0 ;
10877 int val2 ;
10878 int ecode2 = 0 ;
10879 int val3 ;
10880 int ecode3 = 0 ;
10881 int val4 ;
10882 int ecode4 = 0 ;
10883 int val5 ;
10884 int ecode5 = 0 ;
10885 PyObject * obj0 = 0 ;
10886 PyObject * obj1 = 0 ;
10887 PyObject * obj2 = 0 ;
10888 PyObject * obj3 = 0 ;
10889 PyObject * obj4 = 0 ;
10890 char * kwnames[] = {
10891 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10892 };
10893
10894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10896 if (!SWIG_IsOK(res1)) {
10897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
10898 }
10899 arg1 = reinterpret_cast< wxRegion * >(argp1);
10900 ecode2 = SWIG_AsVal_int(obj1, &val2);
10901 if (!SWIG_IsOK(ecode2)) {
10902 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
10903 }
10904 arg2 = static_cast< int >(val2);
10905 ecode3 = SWIG_AsVal_int(obj2, &val3);
10906 if (!SWIG_IsOK(ecode3)) {
10907 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
10908 }
10909 arg3 = static_cast< int >(val3);
10910 ecode4 = SWIG_AsVal_int(obj3, &val4);
10911 if (!SWIG_IsOK(ecode4)) {
10912 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
10913 }
10914 arg4 = static_cast< int >(val4);
10915 ecode5 = SWIG_AsVal_int(obj4, &val5);
10916 if (!SWIG_IsOK(ecode5)) {
10917 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
10918 }
10919 arg5 = static_cast< int >(val5);
10920 {
10921 PyThreadState* __tstate = wxPyBeginAllowThreads();
10922 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
10923 wxPyEndAllowThreads(__tstate);
10924 if (PyErr_Occurred()) SWIG_fail;
10925 }
10926 {
10927 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10928 }
10929 return resultobj;
10930 fail:
10931 return NULL;
10932 }
10933
10934
10935 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10936 PyObject *resultobj = 0;
10937 wxRegion *arg1 = (wxRegion *) 0 ;
10938 wxRect *arg2 = 0 ;
10939 bool result;
10940 void *argp1 = 0 ;
10941 int res1 = 0 ;
10942 wxRect temp2 ;
10943 PyObject * obj0 = 0 ;
10944 PyObject * obj1 = 0 ;
10945 char * kwnames[] = {
10946 (char *) "self",(char *) "rect", NULL
10947 };
10948
10949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
10950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10951 if (!SWIG_IsOK(res1)) {
10952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10953 }
10954 arg1 = reinterpret_cast< wxRegion * >(argp1);
10955 {
10956 arg2 = &temp2;
10957 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10958 }
10959 {
10960 PyThreadState* __tstate = wxPyBeginAllowThreads();
10961 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
10962 wxPyEndAllowThreads(__tstate);
10963 if (PyErr_Occurred()) SWIG_fail;
10964 }
10965 {
10966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10967 }
10968 return resultobj;
10969 fail:
10970 return NULL;
10971 }
10972
10973
10974 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10975 PyObject *resultobj = 0;
10976 wxRegion *arg1 = (wxRegion *) 0 ;
10977 wxRegion *arg2 = 0 ;
10978 bool result;
10979 void *argp1 = 0 ;
10980 int res1 = 0 ;
10981 void *argp2 = 0 ;
10982 int res2 = 0 ;
10983 PyObject * obj0 = 0 ;
10984 PyObject * obj1 = 0 ;
10985 char * kwnames[] = {
10986 (char *) "self",(char *) "region", NULL
10987 };
10988
10989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10991 if (!SWIG_IsOK(res1)) {
10992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10993 }
10994 arg1 = reinterpret_cast< wxRegion * >(argp1);
10995 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10996 if (!SWIG_IsOK(res2)) {
10997 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10998 }
10999 if (!argp2) {
11000 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11001 }
11002 arg2 = reinterpret_cast< wxRegion * >(argp2);
11003 {
11004 PyThreadState* __tstate = wxPyBeginAllowThreads();
11005 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11006 wxPyEndAllowThreads(__tstate);
11007 if (PyErr_Occurred()) SWIG_fail;
11008 }
11009 {
11010 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11011 }
11012 return resultobj;
11013 fail:
11014 return NULL;
11015 }
11016
11017
11018 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11019 PyObject *resultobj = 0;
11020 wxRegion *arg1 = (wxRegion *) 0 ;
11021 int arg2 ;
11022 int arg3 ;
11023 int arg4 ;
11024 int arg5 ;
11025 bool result;
11026 void *argp1 = 0 ;
11027 int res1 = 0 ;
11028 int val2 ;
11029 int ecode2 = 0 ;
11030 int val3 ;
11031 int ecode3 = 0 ;
11032 int val4 ;
11033 int ecode4 = 0 ;
11034 int val5 ;
11035 int ecode5 = 0 ;
11036 PyObject * obj0 = 0 ;
11037 PyObject * obj1 = 0 ;
11038 PyObject * obj2 = 0 ;
11039 PyObject * obj3 = 0 ;
11040 PyObject * obj4 = 0 ;
11041 char * kwnames[] = {
11042 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11043 };
11044
11045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11047 if (!SWIG_IsOK(res1)) {
11048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11049 }
11050 arg1 = reinterpret_cast< wxRegion * >(argp1);
11051 ecode2 = SWIG_AsVal_int(obj1, &val2);
11052 if (!SWIG_IsOK(ecode2)) {
11053 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11054 }
11055 arg2 = static_cast< int >(val2);
11056 ecode3 = SWIG_AsVal_int(obj2, &val3);
11057 if (!SWIG_IsOK(ecode3)) {
11058 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11059 }
11060 arg3 = static_cast< int >(val3);
11061 ecode4 = SWIG_AsVal_int(obj3, &val4);
11062 if (!SWIG_IsOK(ecode4)) {
11063 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11064 }
11065 arg4 = static_cast< int >(val4);
11066 ecode5 = SWIG_AsVal_int(obj4, &val5);
11067 if (!SWIG_IsOK(ecode5)) {
11068 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11069 }
11070 arg5 = static_cast< int >(val5);
11071 {
11072 PyThreadState* __tstate = wxPyBeginAllowThreads();
11073 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11074 wxPyEndAllowThreads(__tstate);
11075 if (PyErr_Occurred()) SWIG_fail;
11076 }
11077 {
11078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11079 }
11080 return resultobj;
11081 fail:
11082 return NULL;
11083 }
11084
11085
11086 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11087 PyObject *resultobj = 0;
11088 wxRegion *arg1 = (wxRegion *) 0 ;
11089 wxRect *arg2 = 0 ;
11090 bool result;
11091 void *argp1 = 0 ;
11092 int res1 = 0 ;
11093 wxRect temp2 ;
11094 PyObject * obj0 = 0 ;
11095 PyObject * obj1 = 0 ;
11096 char * kwnames[] = {
11097 (char *) "self",(char *) "rect", NULL
11098 };
11099
11100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11102 if (!SWIG_IsOK(res1)) {
11103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11104 }
11105 arg1 = reinterpret_cast< wxRegion * >(argp1);
11106 {
11107 arg2 = &temp2;
11108 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11109 }
11110 {
11111 PyThreadState* __tstate = wxPyBeginAllowThreads();
11112 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11113 wxPyEndAllowThreads(__tstate);
11114 if (PyErr_Occurred()) SWIG_fail;
11115 }
11116 {
11117 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11118 }
11119 return resultobj;
11120 fail:
11121 return NULL;
11122 }
11123
11124
11125 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11126 PyObject *resultobj = 0;
11127 wxRegion *arg1 = (wxRegion *) 0 ;
11128 wxRegion *arg2 = 0 ;
11129 bool result;
11130 void *argp1 = 0 ;
11131 int res1 = 0 ;
11132 void *argp2 = 0 ;
11133 int res2 = 0 ;
11134 PyObject * obj0 = 0 ;
11135 PyObject * obj1 = 0 ;
11136 char * kwnames[] = {
11137 (char *) "self",(char *) "region", NULL
11138 };
11139
11140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11142 if (!SWIG_IsOK(res1)) {
11143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11144 }
11145 arg1 = reinterpret_cast< wxRegion * >(argp1);
11146 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11147 if (!SWIG_IsOK(res2)) {
11148 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11149 }
11150 if (!argp2) {
11151 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11152 }
11153 arg2 = reinterpret_cast< wxRegion * >(argp2);
11154 {
11155 PyThreadState* __tstate = wxPyBeginAllowThreads();
11156 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11157 wxPyEndAllowThreads(__tstate);
11158 if (PyErr_Occurred()) SWIG_fail;
11159 }
11160 {
11161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11162 }
11163 return resultobj;
11164 fail:
11165 return NULL;
11166 }
11167
11168
11169 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11170 PyObject *resultobj = 0;
11171 wxRegion *arg1 = (wxRegion *) 0 ;
11172 SwigValueWrapper<wxBitmap > result;
11173 void *argp1 = 0 ;
11174 int res1 = 0 ;
11175 PyObject *swig_obj[1] ;
11176
11177 if (!args) SWIG_fail;
11178 swig_obj[0] = args;
11179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11180 if (!SWIG_IsOK(res1)) {
11181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11182 }
11183 arg1 = reinterpret_cast< wxRegion * >(argp1);
11184 {
11185 PyThreadState* __tstate = wxPyBeginAllowThreads();
11186 result = (arg1)->ConvertToBitmap();
11187 wxPyEndAllowThreads(__tstate);
11188 if (PyErr_Occurred()) SWIG_fail;
11189 }
11190 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11191 return resultobj;
11192 fail:
11193 return NULL;
11194 }
11195
11196
11197 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11198 PyObject *resultobj = 0;
11199 wxRegion *arg1 = (wxRegion *) 0 ;
11200 wxBitmap *arg2 = 0 ;
11201 bool result;
11202 void *argp1 = 0 ;
11203 int res1 = 0 ;
11204 void *argp2 = 0 ;
11205 int res2 = 0 ;
11206 PyObject * obj0 = 0 ;
11207 PyObject * obj1 = 0 ;
11208 char * kwnames[] = {
11209 (char *) "self",(char *) "bmp", NULL
11210 };
11211
11212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11214 if (!SWIG_IsOK(res1)) {
11215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11216 }
11217 arg1 = reinterpret_cast< wxRegion * >(argp1);
11218 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11219 if (!SWIG_IsOK(res2)) {
11220 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11221 }
11222 if (!argp2) {
11223 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11224 }
11225 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11226 {
11227 PyThreadState* __tstate = wxPyBeginAllowThreads();
11228 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11229 wxPyEndAllowThreads(__tstate);
11230 if (PyErr_Occurred()) SWIG_fail;
11231 }
11232 {
11233 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11234 }
11235 return resultobj;
11236 fail:
11237 return NULL;
11238 }
11239
11240
11241 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11242 PyObject *resultobj = 0;
11243 wxRegion *arg1 = (wxRegion *) 0 ;
11244 wxBitmap *arg2 = 0 ;
11245 wxColour *arg3 = 0 ;
11246 int arg4 = (int) 0 ;
11247 bool result;
11248 void *argp1 = 0 ;
11249 int res1 = 0 ;
11250 void *argp2 = 0 ;
11251 int res2 = 0 ;
11252 wxColour temp3 ;
11253 int val4 ;
11254 int ecode4 = 0 ;
11255 PyObject * obj0 = 0 ;
11256 PyObject * obj1 = 0 ;
11257 PyObject * obj2 = 0 ;
11258 PyObject * obj3 = 0 ;
11259 char * kwnames[] = {
11260 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11261 };
11262
11263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11265 if (!SWIG_IsOK(res1)) {
11266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11267 }
11268 arg1 = reinterpret_cast< wxRegion * >(argp1);
11269 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11270 if (!SWIG_IsOK(res2)) {
11271 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11272 }
11273 if (!argp2) {
11274 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11275 }
11276 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11277 {
11278 arg3 = &temp3;
11279 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11280 }
11281 if (obj3) {
11282 ecode4 = SWIG_AsVal_int(obj3, &val4);
11283 if (!SWIG_IsOK(ecode4)) {
11284 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11285 }
11286 arg4 = static_cast< int >(val4);
11287 }
11288 {
11289 PyThreadState* __tstate = wxPyBeginAllowThreads();
11290 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11291 wxPyEndAllowThreads(__tstate);
11292 if (PyErr_Occurred()) SWIG_fail;
11293 }
11294 {
11295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11296 }
11297 return resultobj;
11298 fail:
11299 return NULL;
11300 }
11301
11302
11303 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11304 PyObject *obj;
11305 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11306 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11307 return SWIG_Py_Void();
11308 }
11309
11310 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11311 return SWIG_Python_InitShadowInstance(args);
11312 }
11313
11314 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11315 PyObject *resultobj = 0;
11316 wxRegion *arg1 = 0 ;
11317 wxRegionIterator *result = 0 ;
11318 void *argp1 = 0 ;
11319 int res1 = 0 ;
11320 PyObject * obj0 = 0 ;
11321 char * kwnames[] = {
11322 (char *) "region", NULL
11323 };
11324
11325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11326 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11327 if (!SWIG_IsOK(res1)) {
11328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11329 }
11330 if (!argp1) {
11331 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11332 }
11333 arg1 = reinterpret_cast< wxRegion * >(argp1);
11334 {
11335 if (!wxPyCheckForApp()) SWIG_fail;
11336 PyThreadState* __tstate = wxPyBeginAllowThreads();
11337 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11338 wxPyEndAllowThreads(__tstate);
11339 if (PyErr_Occurred()) SWIG_fail;
11340 }
11341 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11342 return resultobj;
11343 fail:
11344 return NULL;
11345 }
11346
11347
11348 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11349 PyObject *resultobj = 0;
11350 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11351 void *argp1 = 0 ;
11352 int res1 = 0 ;
11353 PyObject *swig_obj[1] ;
11354
11355 if (!args) SWIG_fail;
11356 swig_obj[0] = args;
11357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11358 if (!SWIG_IsOK(res1)) {
11359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11360 }
11361 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11362 {
11363 PyThreadState* __tstate = wxPyBeginAllowThreads();
11364 delete arg1;
11365
11366 wxPyEndAllowThreads(__tstate);
11367 if (PyErr_Occurred()) SWIG_fail;
11368 }
11369 resultobj = SWIG_Py_Void();
11370 return resultobj;
11371 fail:
11372 return NULL;
11373 }
11374
11375
11376 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11377 PyObject *resultobj = 0;
11378 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11379 int result;
11380 void *argp1 = 0 ;
11381 int res1 = 0 ;
11382 PyObject *swig_obj[1] ;
11383
11384 if (!args) SWIG_fail;
11385 swig_obj[0] = args;
11386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11387 if (!SWIG_IsOK(res1)) {
11388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11389 }
11390 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11391 {
11392 PyThreadState* __tstate = wxPyBeginAllowThreads();
11393 result = (int)(arg1)->GetX();
11394 wxPyEndAllowThreads(__tstate);
11395 if (PyErr_Occurred()) SWIG_fail;
11396 }
11397 resultobj = SWIG_From_int(static_cast< int >(result));
11398 return resultobj;
11399 fail:
11400 return NULL;
11401 }
11402
11403
11404 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11405 PyObject *resultobj = 0;
11406 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11407 int result;
11408 void *argp1 = 0 ;
11409 int res1 = 0 ;
11410 PyObject *swig_obj[1] ;
11411
11412 if (!args) SWIG_fail;
11413 swig_obj[0] = args;
11414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11415 if (!SWIG_IsOK(res1)) {
11416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11417 }
11418 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11419 {
11420 PyThreadState* __tstate = wxPyBeginAllowThreads();
11421 result = (int)(arg1)->GetY();
11422 wxPyEndAllowThreads(__tstate);
11423 if (PyErr_Occurred()) SWIG_fail;
11424 }
11425 resultobj = SWIG_From_int(static_cast< int >(result));
11426 return resultobj;
11427 fail:
11428 return NULL;
11429 }
11430
11431
11432 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11433 PyObject *resultobj = 0;
11434 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11435 int result;
11436 void *argp1 = 0 ;
11437 int res1 = 0 ;
11438 PyObject *swig_obj[1] ;
11439
11440 if (!args) SWIG_fail;
11441 swig_obj[0] = args;
11442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11443 if (!SWIG_IsOK(res1)) {
11444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11445 }
11446 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11447 {
11448 PyThreadState* __tstate = wxPyBeginAllowThreads();
11449 result = (int)(arg1)->GetW();
11450 wxPyEndAllowThreads(__tstate);
11451 if (PyErr_Occurred()) SWIG_fail;
11452 }
11453 resultobj = SWIG_From_int(static_cast< int >(result));
11454 return resultobj;
11455 fail:
11456 return NULL;
11457 }
11458
11459
11460 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11461 PyObject *resultobj = 0;
11462 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11463 int result;
11464 void *argp1 = 0 ;
11465 int res1 = 0 ;
11466 PyObject *swig_obj[1] ;
11467
11468 if (!args) SWIG_fail;
11469 swig_obj[0] = args;
11470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11471 if (!SWIG_IsOK(res1)) {
11472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11473 }
11474 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11475 {
11476 PyThreadState* __tstate = wxPyBeginAllowThreads();
11477 result = (int)(arg1)->GetWidth();
11478 wxPyEndAllowThreads(__tstate);
11479 if (PyErr_Occurred()) SWIG_fail;
11480 }
11481 resultobj = SWIG_From_int(static_cast< int >(result));
11482 return resultobj;
11483 fail:
11484 return NULL;
11485 }
11486
11487
11488 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11489 PyObject *resultobj = 0;
11490 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11491 int result;
11492 void *argp1 = 0 ;
11493 int res1 = 0 ;
11494 PyObject *swig_obj[1] ;
11495
11496 if (!args) SWIG_fail;
11497 swig_obj[0] = args;
11498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11499 if (!SWIG_IsOK(res1)) {
11500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11501 }
11502 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11503 {
11504 PyThreadState* __tstate = wxPyBeginAllowThreads();
11505 result = (int)(arg1)->GetH();
11506 wxPyEndAllowThreads(__tstate);
11507 if (PyErr_Occurred()) SWIG_fail;
11508 }
11509 resultobj = SWIG_From_int(static_cast< int >(result));
11510 return resultobj;
11511 fail:
11512 return NULL;
11513 }
11514
11515
11516 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11517 PyObject *resultobj = 0;
11518 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11519 int result;
11520 void *argp1 = 0 ;
11521 int res1 = 0 ;
11522 PyObject *swig_obj[1] ;
11523
11524 if (!args) SWIG_fail;
11525 swig_obj[0] = args;
11526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11527 if (!SWIG_IsOK(res1)) {
11528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11529 }
11530 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11531 {
11532 PyThreadState* __tstate = wxPyBeginAllowThreads();
11533 result = (int)(arg1)->GetHeight();
11534 wxPyEndAllowThreads(__tstate);
11535 if (PyErr_Occurred()) SWIG_fail;
11536 }
11537 resultobj = SWIG_From_int(static_cast< int >(result));
11538 return resultobj;
11539 fail:
11540 return NULL;
11541 }
11542
11543
11544 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11545 PyObject *resultobj = 0;
11546 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11547 wxRect result;
11548 void *argp1 = 0 ;
11549 int res1 = 0 ;
11550 PyObject *swig_obj[1] ;
11551
11552 if (!args) SWIG_fail;
11553 swig_obj[0] = args;
11554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11555 if (!SWIG_IsOK(res1)) {
11556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11557 }
11558 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11559 {
11560 PyThreadState* __tstate = wxPyBeginAllowThreads();
11561 result = (arg1)->GetRect();
11562 wxPyEndAllowThreads(__tstate);
11563 if (PyErr_Occurred()) SWIG_fail;
11564 }
11565 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11566 return resultobj;
11567 fail:
11568 return NULL;
11569 }
11570
11571
11572 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11573 PyObject *resultobj = 0;
11574 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11575 bool result;
11576 void *argp1 = 0 ;
11577 int res1 = 0 ;
11578 PyObject *swig_obj[1] ;
11579
11580 if (!args) SWIG_fail;
11581 swig_obj[0] = args;
11582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11583 if (!SWIG_IsOK(res1)) {
11584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11585 }
11586 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11587 {
11588 PyThreadState* __tstate = wxPyBeginAllowThreads();
11589 result = (bool)(arg1)->HaveRects();
11590 wxPyEndAllowThreads(__tstate);
11591 if (PyErr_Occurred()) SWIG_fail;
11592 }
11593 {
11594 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11595 }
11596 return resultobj;
11597 fail:
11598 return NULL;
11599 }
11600
11601
11602 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11603 PyObject *resultobj = 0;
11604 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11605 void *argp1 = 0 ;
11606 int res1 = 0 ;
11607 PyObject *swig_obj[1] ;
11608
11609 if (!args) SWIG_fail;
11610 swig_obj[0] = args;
11611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11612 if (!SWIG_IsOK(res1)) {
11613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11614 }
11615 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11616 {
11617 PyThreadState* __tstate = wxPyBeginAllowThreads();
11618 (arg1)->Reset();
11619 wxPyEndAllowThreads(__tstate);
11620 if (PyErr_Occurred()) SWIG_fail;
11621 }
11622 resultobj = SWIG_Py_Void();
11623 return resultobj;
11624 fail:
11625 return NULL;
11626 }
11627
11628
11629 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11630 PyObject *resultobj = 0;
11631 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11632 void *argp1 = 0 ;
11633 int res1 = 0 ;
11634 PyObject *swig_obj[1] ;
11635
11636 if (!args) SWIG_fail;
11637 swig_obj[0] = args;
11638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11639 if (!SWIG_IsOK(res1)) {
11640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11641 }
11642 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11643 {
11644 PyThreadState* __tstate = wxPyBeginAllowThreads();
11645 wxRegionIterator_Next(arg1);
11646 wxPyEndAllowThreads(__tstate);
11647 if (PyErr_Occurred()) SWIG_fail;
11648 }
11649 resultobj = SWIG_Py_Void();
11650 return resultobj;
11651 fail:
11652 return NULL;
11653 }
11654
11655
11656 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11657 PyObject *resultobj = 0;
11658 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11659 bool result;
11660 void *argp1 = 0 ;
11661 int res1 = 0 ;
11662 PyObject *swig_obj[1] ;
11663
11664 if (!args) SWIG_fail;
11665 swig_obj[0] = args;
11666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11667 if (!SWIG_IsOK(res1)) {
11668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11669 }
11670 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11671 {
11672 PyThreadState* __tstate = wxPyBeginAllowThreads();
11673 result = (bool)wxRegionIterator___nonzero__(arg1);
11674 wxPyEndAllowThreads(__tstate);
11675 if (PyErr_Occurred()) SWIG_fail;
11676 }
11677 {
11678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11679 }
11680 return resultobj;
11681 fail:
11682 return NULL;
11683 }
11684
11685
11686 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11687 PyObject *obj;
11688 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11689 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
11690 return SWIG_Py_Void();
11691 }
11692
11693 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11694 return SWIG_Python_InitShadowInstance(args);
11695 }
11696
11697 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11698 PyObject *resultobj = 0;
11699 wxNativeFontInfo *result = 0 ;
11700
11701 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
11702 {
11703 PyThreadState* __tstate = wxPyBeginAllowThreads();
11704 result = (wxNativeFontInfo *)new wxNativeFontInfo();
11705 wxPyEndAllowThreads(__tstate);
11706 if (PyErr_Occurred()) SWIG_fail;
11707 }
11708 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
11709 return resultobj;
11710 fail:
11711 return NULL;
11712 }
11713
11714
11715 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11716 PyObject *resultobj = 0;
11717 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11718 void *argp1 = 0 ;
11719 int res1 = 0 ;
11720 PyObject *swig_obj[1] ;
11721
11722 if (!args) SWIG_fail;
11723 swig_obj[0] = args;
11724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
11725 if (!SWIG_IsOK(res1)) {
11726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11727 }
11728 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11729 {
11730 PyThreadState* __tstate = wxPyBeginAllowThreads();
11731 delete arg1;
11732
11733 wxPyEndAllowThreads(__tstate);
11734 if (PyErr_Occurred()) SWIG_fail;
11735 }
11736 resultobj = SWIG_Py_Void();
11737 return resultobj;
11738 fail:
11739 return NULL;
11740 }
11741
11742
11743 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11744 PyObject *resultobj = 0;
11745 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11746 void *argp1 = 0 ;
11747 int res1 = 0 ;
11748 PyObject *swig_obj[1] ;
11749
11750 if (!args) SWIG_fail;
11751 swig_obj[0] = args;
11752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11753 if (!SWIG_IsOK(res1)) {
11754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11755 }
11756 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11757 {
11758 PyThreadState* __tstate = wxPyBeginAllowThreads();
11759 (arg1)->Init();
11760 wxPyEndAllowThreads(__tstate);
11761 if (PyErr_Occurred()) SWIG_fail;
11762 }
11763 resultobj = SWIG_Py_Void();
11764 return resultobj;
11765 fail:
11766 return NULL;
11767 }
11768
11769
11770 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11771 PyObject *resultobj = 0;
11772 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11773 wxFont *arg2 = 0 ;
11774 void *argp1 = 0 ;
11775 int res1 = 0 ;
11776 void *argp2 = 0 ;
11777 int res2 = 0 ;
11778 PyObject * obj0 = 0 ;
11779 PyObject * obj1 = 0 ;
11780 char * kwnames[] = {
11781 (char *) "self",(char *) "font", NULL
11782 };
11783
11784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
11785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11786 if (!SWIG_IsOK(res1)) {
11787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11788 }
11789 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11790 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
11791 if (!SWIG_IsOK(res2)) {
11792 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11793 }
11794 if (!argp2) {
11795 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11796 }
11797 arg2 = reinterpret_cast< wxFont * >(argp2);
11798 {
11799 PyThreadState* __tstate = wxPyBeginAllowThreads();
11800 (arg1)->InitFromFont((wxFont const &)*arg2);
11801 wxPyEndAllowThreads(__tstate);
11802 if (PyErr_Occurred()) SWIG_fail;
11803 }
11804 resultobj = SWIG_Py_Void();
11805 return resultobj;
11806 fail:
11807 return NULL;
11808 }
11809
11810
11811 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11812 PyObject *resultobj = 0;
11813 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11814 int result;
11815 void *argp1 = 0 ;
11816 int res1 = 0 ;
11817 PyObject *swig_obj[1] ;
11818
11819 if (!args) SWIG_fail;
11820 swig_obj[0] = args;
11821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11822 if (!SWIG_IsOK(res1)) {
11823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11824 }
11825 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11826 {
11827 PyThreadState* __tstate = wxPyBeginAllowThreads();
11828 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
11829 wxPyEndAllowThreads(__tstate);
11830 if (PyErr_Occurred()) SWIG_fail;
11831 }
11832 resultobj = SWIG_From_int(static_cast< int >(result));
11833 return resultobj;
11834 fail:
11835 return NULL;
11836 }
11837
11838
11839 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11840 PyObject *resultobj = 0;
11841 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11842 wxFontStyle result;
11843 void *argp1 = 0 ;
11844 int res1 = 0 ;
11845 PyObject *swig_obj[1] ;
11846
11847 if (!args) SWIG_fail;
11848 swig_obj[0] = args;
11849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11850 if (!SWIG_IsOK(res1)) {
11851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11852 }
11853 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11854 {
11855 PyThreadState* __tstate = wxPyBeginAllowThreads();
11856 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
11857 wxPyEndAllowThreads(__tstate);
11858 if (PyErr_Occurred()) SWIG_fail;
11859 }
11860 resultobj = SWIG_From_int(static_cast< int >(result));
11861 return resultobj;
11862 fail:
11863 return NULL;
11864 }
11865
11866
11867 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11868 PyObject *resultobj = 0;
11869 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11870 wxFontWeight result;
11871 void *argp1 = 0 ;
11872 int res1 = 0 ;
11873 PyObject *swig_obj[1] ;
11874
11875 if (!args) SWIG_fail;
11876 swig_obj[0] = args;
11877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11878 if (!SWIG_IsOK(res1)) {
11879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11880 }
11881 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11882 {
11883 PyThreadState* __tstate = wxPyBeginAllowThreads();
11884 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
11885 wxPyEndAllowThreads(__tstate);
11886 if (PyErr_Occurred()) SWIG_fail;
11887 }
11888 resultobj = SWIG_From_int(static_cast< int >(result));
11889 return resultobj;
11890 fail:
11891 return NULL;
11892 }
11893
11894
11895 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11896 PyObject *resultobj = 0;
11897 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11898 bool result;
11899 void *argp1 = 0 ;
11900 int res1 = 0 ;
11901 PyObject *swig_obj[1] ;
11902
11903 if (!args) SWIG_fail;
11904 swig_obj[0] = args;
11905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11906 if (!SWIG_IsOK(res1)) {
11907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11908 }
11909 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11910 {
11911 PyThreadState* __tstate = wxPyBeginAllowThreads();
11912 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
11913 wxPyEndAllowThreads(__tstate);
11914 if (PyErr_Occurred()) SWIG_fail;
11915 }
11916 {
11917 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11918 }
11919 return resultobj;
11920 fail:
11921 return NULL;
11922 }
11923
11924
11925 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11926 PyObject *resultobj = 0;
11927 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11928 wxString result;
11929 void *argp1 = 0 ;
11930 int res1 = 0 ;
11931 PyObject *swig_obj[1] ;
11932
11933 if (!args) SWIG_fail;
11934 swig_obj[0] = args;
11935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11936 if (!SWIG_IsOK(res1)) {
11937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11938 }
11939 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11940 {
11941 PyThreadState* __tstate = wxPyBeginAllowThreads();
11942 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
11943 wxPyEndAllowThreads(__tstate);
11944 if (PyErr_Occurred()) SWIG_fail;
11945 }
11946 {
11947 #if wxUSE_UNICODE
11948 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11949 #else
11950 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11951 #endif
11952 }
11953 return resultobj;
11954 fail:
11955 return NULL;
11956 }
11957
11958
11959 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11960 PyObject *resultobj = 0;
11961 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11962 wxFontFamily result;
11963 void *argp1 = 0 ;
11964 int res1 = 0 ;
11965 PyObject *swig_obj[1] ;
11966
11967 if (!args) SWIG_fail;
11968 swig_obj[0] = args;
11969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11970 if (!SWIG_IsOK(res1)) {
11971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11972 }
11973 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11974 {
11975 PyThreadState* __tstate = wxPyBeginAllowThreads();
11976 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
11977 wxPyEndAllowThreads(__tstate);
11978 if (PyErr_Occurred()) SWIG_fail;
11979 }
11980 resultobj = SWIG_From_int(static_cast< int >(result));
11981 return resultobj;
11982 fail:
11983 return NULL;
11984 }
11985
11986
11987 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11988 PyObject *resultobj = 0;
11989 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11990 wxFontEncoding result;
11991 void *argp1 = 0 ;
11992 int res1 = 0 ;
11993 PyObject *swig_obj[1] ;
11994
11995 if (!args) SWIG_fail;
11996 swig_obj[0] = args;
11997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11998 if (!SWIG_IsOK(res1)) {
11999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12000 }
12001 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12002 {
12003 PyThreadState* __tstate = wxPyBeginAllowThreads();
12004 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12005 wxPyEndAllowThreads(__tstate);
12006 if (PyErr_Occurred()) SWIG_fail;
12007 }
12008 resultobj = SWIG_From_int(static_cast< int >(result));
12009 return resultobj;
12010 fail:
12011 return NULL;
12012 }
12013
12014
12015 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12016 PyObject *resultobj = 0;
12017 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12018 int arg2 ;
12019 void *argp1 = 0 ;
12020 int res1 = 0 ;
12021 int val2 ;
12022 int ecode2 = 0 ;
12023 PyObject * obj0 = 0 ;
12024 PyObject * obj1 = 0 ;
12025 char * kwnames[] = {
12026 (char *) "self",(char *) "pointsize", NULL
12027 };
12028
12029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12031 if (!SWIG_IsOK(res1)) {
12032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12033 }
12034 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12035 ecode2 = SWIG_AsVal_int(obj1, &val2);
12036 if (!SWIG_IsOK(ecode2)) {
12037 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12038 }
12039 arg2 = static_cast< int >(val2);
12040 {
12041 PyThreadState* __tstate = wxPyBeginAllowThreads();
12042 (arg1)->SetPointSize(arg2);
12043 wxPyEndAllowThreads(__tstate);
12044 if (PyErr_Occurred()) SWIG_fail;
12045 }
12046 resultobj = SWIG_Py_Void();
12047 return resultobj;
12048 fail:
12049 return NULL;
12050 }
12051
12052
12053 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12054 PyObject *resultobj = 0;
12055 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12056 wxFontStyle arg2 ;
12057 void *argp1 = 0 ;
12058 int res1 = 0 ;
12059 int val2 ;
12060 int ecode2 = 0 ;
12061 PyObject * obj0 = 0 ;
12062 PyObject * obj1 = 0 ;
12063 char * kwnames[] = {
12064 (char *) "self",(char *) "style", NULL
12065 };
12066
12067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12069 if (!SWIG_IsOK(res1)) {
12070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12071 }
12072 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12073 ecode2 = SWIG_AsVal_int(obj1, &val2);
12074 if (!SWIG_IsOK(ecode2)) {
12075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12076 }
12077 arg2 = static_cast< wxFontStyle >(val2);
12078 {
12079 PyThreadState* __tstate = wxPyBeginAllowThreads();
12080 (arg1)->SetStyle(arg2);
12081 wxPyEndAllowThreads(__tstate);
12082 if (PyErr_Occurred()) SWIG_fail;
12083 }
12084 resultobj = SWIG_Py_Void();
12085 return resultobj;
12086 fail:
12087 return NULL;
12088 }
12089
12090
12091 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12092 PyObject *resultobj = 0;
12093 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12094 wxFontWeight arg2 ;
12095 void *argp1 = 0 ;
12096 int res1 = 0 ;
12097 int val2 ;
12098 int ecode2 = 0 ;
12099 PyObject * obj0 = 0 ;
12100 PyObject * obj1 = 0 ;
12101 char * kwnames[] = {
12102 (char *) "self",(char *) "weight", NULL
12103 };
12104
12105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12107 if (!SWIG_IsOK(res1)) {
12108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12109 }
12110 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12111 ecode2 = SWIG_AsVal_int(obj1, &val2);
12112 if (!SWIG_IsOK(ecode2)) {
12113 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12114 }
12115 arg2 = static_cast< wxFontWeight >(val2);
12116 {
12117 PyThreadState* __tstate = wxPyBeginAllowThreads();
12118 (arg1)->SetWeight(arg2);
12119 wxPyEndAllowThreads(__tstate);
12120 if (PyErr_Occurred()) SWIG_fail;
12121 }
12122 resultobj = SWIG_Py_Void();
12123 return resultobj;
12124 fail:
12125 return NULL;
12126 }
12127
12128
12129 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12130 PyObject *resultobj = 0;
12131 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12132 bool arg2 ;
12133 void *argp1 = 0 ;
12134 int res1 = 0 ;
12135 bool val2 ;
12136 int ecode2 = 0 ;
12137 PyObject * obj0 = 0 ;
12138 PyObject * obj1 = 0 ;
12139 char * kwnames[] = {
12140 (char *) "self",(char *) "underlined", NULL
12141 };
12142
12143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12145 if (!SWIG_IsOK(res1)) {
12146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12147 }
12148 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12149 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12150 if (!SWIG_IsOK(ecode2)) {
12151 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12152 }
12153 arg2 = static_cast< bool >(val2);
12154 {
12155 PyThreadState* __tstate = wxPyBeginAllowThreads();
12156 (arg1)->SetUnderlined(arg2);
12157 wxPyEndAllowThreads(__tstate);
12158 if (PyErr_Occurred()) SWIG_fail;
12159 }
12160 resultobj = SWIG_Py_Void();
12161 return resultobj;
12162 fail:
12163 return NULL;
12164 }
12165
12166
12167 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12168 PyObject *resultobj = 0;
12169 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12170 wxString arg2 ;
12171 bool result;
12172 void *argp1 = 0 ;
12173 int res1 = 0 ;
12174 PyObject * obj0 = 0 ;
12175 PyObject * obj1 = 0 ;
12176 char * kwnames[] = {
12177 (char *) "self",(char *) "facename", NULL
12178 };
12179
12180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12182 if (!SWIG_IsOK(res1)) {
12183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12184 }
12185 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12186 {
12187 wxString* sptr = wxString_in_helper(obj1);
12188 if (sptr == NULL) SWIG_fail;
12189 arg2 = *sptr;
12190 delete sptr;
12191 }
12192 {
12193 PyThreadState* __tstate = wxPyBeginAllowThreads();
12194 result = (bool)(arg1)->SetFaceName(arg2);
12195 wxPyEndAllowThreads(__tstate);
12196 if (PyErr_Occurred()) SWIG_fail;
12197 }
12198 {
12199 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12200 }
12201 return resultobj;
12202 fail:
12203 return NULL;
12204 }
12205
12206
12207 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12208 PyObject *resultobj = 0;
12209 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12210 wxFontFamily arg2 ;
12211 void *argp1 = 0 ;
12212 int res1 = 0 ;
12213 int val2 ;
12214 int ecode2 = 0 ;
12215 PyObject * obj0 = 0 ;
12216 PyObject * obj1 = 0 ;
12217 char * kwnames[] = {
12218 (char *) "self",(char *) "family", NULL
12219 };
12220
12221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12223 if (!SWIG_IsOK(res1)) {
12224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12225 }
12226 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12227 ecode2 = SWIG_AsVal_int(obj1, &val2);
12228 if (!SWIG_IsOK(ecode2)) {
12229 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12230 }
12231 arg2 = static_cast< wxFontFamily >(val2);
12232 {
12233 PyThreadState* __tstate = wxPyBeginAllowThreads();
12234 (arg1)->SetFamily(arg2);
12235 wxPyEndAllowThreads(__tstate);
12236 if (PyErr_Occurred()) SWIG_fail;
12237 }
12238 resultobj = SWIG_Py_Void();
12239 return resultobj;
12240 fail:
12241 return NULL;
12242 }
12243
12244
12245 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12246 PyObject *resultobj = 0;
12247 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12248 wxFontEncoding arg2 ;
12249 void *argp1 = 0 ;
12250 int res1 = 0 ;
12251 int val2 ;
12252 int ecode2 = 0 ;
12253 PyObject * obj0 = 0 ;
12254 PyObject * obj1 = 0 ;
12255 char * kwnames[] = {
12256 (char *) "self",(char *) "encoding", NULL
12257 };
12258
12259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12261 if (!SWIG_IsOK(res1)) {
12262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12263 }
12264 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12265 ecode2 = SWIG_AsVal_int(obj1, &val2);
12266 if (!SWIG_IsOK(ecode2)) {
12267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12268 }
12269 arg2 = static_cast< wxFontEncoding >(val2);
12270 {
12271 PyThreadState* __tstate = wxPyBeginAllowThreads();
12272 (arg1)->SetEncoding(arg2);
12273 wxPyEndAllowThreads(__tstate);
12274 if (PyErr_Occurred()) SWIG_fail;
12275 }
12276 resultobj = SWIG_Py_Void();
12277 return resultobj;
12278 fail:
12279 return NULL;
12280 }
12281
12282
12283 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12284 PyObject *resultobj = 0;
12285 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12286 wxString *arg2 = 0 ;
12287 bool result;
12288 void *argp1 = 0 ;
12289 int res1 = 0 ;
12290 bool temp2 = false ;
12291 PyObject * obj0 = 0 ;
12292 PyObject * obj1 = 0 ;
12293 char * kwnames[] = {
12294 (char *) "self",(char *) "s", NULL
12295 };
12296
12297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12299 if (!SWIG_IsOK(res1)) {
12300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12301 }
12302 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12303 {
12304 arg2 = wxString_in_helper(obj1);
12305 if (arg2 == NULL) SWIG_fail;
12306 temp2 = true;
12307 }
12308 {
12309 PyThreadState* __tstate = wxPyBeginAllowThreads();
12310 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12311 wxPyEndAllowThreads(__tstate);
12312 if (PyErr_Occurred()) SWIG_fail;
12313 }
12314 {
12315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12316 }
12317 {
12318 if (temp2)
12319 delete arg2;
12320 }
12321 return resultobj;
12322 fail:
12323 {
12324 if (temp2)
12325 delete arg2;
12326 }
12327 return NULL;
12328 }
12329
12330
12331 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12332 PyObject *resultobj = 0;
12333 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12334 wxString result;
12335 void *argp1 = 0 ;
12336 int res1 = 0 ;
12337 PyObject *swig_obj[1] ;
12338
12339 if (!args) SWIG_fail;
12340 swig_obj[0] = args;
12341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12342 if (!SWIG_IsOK(res1)) {
12343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12344 }
12345 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12346 {
12347 PyThreadState* __tstate = wxPyBeginAllowThreads();
12348 result = ((wxNativeFontInfo const *)arg1)->ToString();
12349 wxPyEndAllowThreads(__tstate);
12350 if (PyErr_Occurred()) SWIG_fail;
12351 }
12352 {
12353 #if wxUSE_UNICODE
12354 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12355 #else
12356 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12357 #endif
12358 }
12359 return resultobj;
12360 fail:
12361 return NULL;
12362 }
12363
12364
12365 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12366 PyObject *resultobj = 0;
12367 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12368 wxString result;
12369 void *argp1 = 0 ;
12370 int res1 = 0 ;
12371 PyObject *swig_obj[1] ;
12372
12373 if (!args) SWIG_fail;
12374 swig_obj[0] = args;
12375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12376 if (!SWIG_IsOK(res1)) {
12377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12378 }
12379 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12380 {
12381 PyThreadState* __tstate = wxPyBeginAllowThreads();
12382 result = wxNativeFontInfo___str__(arg1);
12383 wxPyEndAllowThreads(__tstate);
12384 if (PyErr_Occurred()) SWIG_fail;
12385 }
12386 {
12387 #if wxUSE_UNICODE
12388 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12389 #else
12390 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12391 #endif
12392 }
12393 return resultobj;
12394 fail:
12395 return NULL;
12396 }
12397
12398
12399 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12400 PyObject *resultobj = 0;
12401 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12402 wxString *arg2 = 0 ;
12403 bool result;
12404 void *argp1 = 0 ;
12405 int res1 = 0 ;
12406 bool temp2 = false ;
12407 PyObject * obj0 = 0 ;
12408 PyObject * obj1 = 0 ;
12409 char * kwnames[] = {
12410 (char *) "self",(char *) "s", NULL
12411 };
12412
12413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12415 if (!SWIG_IsOK(res1)) {
12416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12417 }
12418 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12419 {
12420 arg2 = wxString_in_helper(obj1);
12421 if (arg2 == NULL) SWIG_fail;
12422 temp2 = true;
12423 }
12424 {
12425 PyThreadState* __tstate = wxPyBeginAllowThreads();
12426 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12427 wxPyEndAllowThreads(__tstate);
12428 if (PyErr_Occurred()) SWIG_fail;
12429 }
12430 {
12431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12432 }
12433 {
12434 if (temp2)
12435 delete arg2;
12436 }
12437 return resultobj;
12438 fail:
12439 {
12440 if (temp2)
12441 delete arg2;
12442 }
12443 return NULL;
12444 }
12445
12446
12447 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12448 PyObject *resultobj = 0;
12449 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12450 wxString result;
12451 void *argp1 = 0 ;
12452 int res1 = 0 ;
12453 PyObject *swig_obj[1] ;
12454
12455 if (!args) SWIG_fail;
12456 swig_obj[0] = args;
12457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12458 if (!SWIG_IsOK(res1)) {
12459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12460 }
12461 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12462 {
12463 PyThreadState* __tstate = wxPyBeginAllowThreads();
12464 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12465 wxPyEndAllowThreads(__tstate);
12466 if (PyErr_Occurred()) SWIG_fail;
12467 }
12468 {
12469 #if wxUSE_UNICODE
12470 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12471 #else
12472 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12473 #endif
12474 }
12475 return resultobj;
12476 fail:
12477 return NULL;
12478 }
12479
12480
12481 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12482 PyObject *obj;
12483 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12484 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12485 return SWIG_Py_Void();
12486 }
12487
12488 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12489 return SWIG_Python_InitShadowInstance(args);
12490 }
12491
12492 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12493 PyObject *resultobj = 0;
12494 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12495 wxString *arg2 = (wxString *) 0 ;
12496 void *argp1 = 0 ;
12497 int res1 = 0 ;
12498 bool temp2 = false ;
12499 PyObject *swig_obj[2] ;
12500
12501 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12503 if (!SWIG_IsOK(res1)) {
12504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12505 }
12506 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12507 {
12508 arg2 = wxString_in_helper(swig_obj[1]);
12509 if (arg2 == NULL) SWIG_fail;
12510 temp2 = true;
12511 }
12512 if (arg1) (arg1)->facename = *arg2;
12513
12514 resultobj = SWIG_Py_Void();
12515 {
12516 if (temp2)
12517 delete arg2;
12518 }
12519 return resultobj;
12520 fail:
12521 {
12522 if (temp2)
12523 delete arg2;
12524 }
12525 return NULL;
12526 }
12527
12528
12529 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12530 PyObject *resultobj = 0;
12531 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12532 wxString *result = 0 ;
12533 void *argp1 = 0 ;
12534 int res1 = 0 ;
12535 PyObject *swig_obj[1] ;
12536
12537 if (!args) SWIG_fail;
12538 swig_obj[0] = args;
12539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12540 if (!SWIG_IsOK(res1)) {
12541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12542 }
12543 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12544 result = (wxString *)& ((arg1)->facename);
12545 {
12546 #if wxUSE_UNICODE
12547 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12548 #else
12549 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12550 #endif
12551 }
12552 return resultobj;
12553 fail:
12554 return NULL;
12555 }
12556
12557
12558 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12559 PyObject *resultobj = 0;
12560 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12561 wxFontEncoding arg2 ;
12562 void *argp1 = 0 ;
12563 int res1 = 0 ;
12564 int val2 ;
12565 int ecode2 = 0 ;
12566 PyObject *swig_obj[2] ;
12567
12568 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12570 if (!SWIG_IsOK(res1)) {
12571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12572 }
12573 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12574 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12575 if (!SWIG_IsOK(ecode2)) {
12576 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12577 }
12578 arg2 = static_cast< wxFontEncoding >(val2);
12579 if (arg1) (arg1)->encoding = arg2;
12580
12581 resultobj = SWIG_Py_Void();
12582 return resultobj;
12583 fail:
12584 return NULL;
12585 }
12586
12587
12588 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12589 PyObject *resultobj = 0;
12590 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12591 wxFontEncoding result;
12592 void *argp1 = 0 ;
12593 int res1 = 0 ;
12594 PyObject *swig_obj[1] ;
12595
12596 if (!args) SWIG_fail;
12597 swig_obj[0] = args;
12598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12599 if (!SWIG_IsOK(res1)) {
12600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12601 }
12602 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12603 result = (wxFontEncoding) ((arg1)->encoding);
12604 resultobj = SWIG_From_int(static_cast< int >(result));
12605 return resultobj;
12606 fail:
12607 return NULL;
12608 }
12609
12610
12611 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12612 PyObject *resultobj = 0;
12613 wxNativeEncodingInfo *result = 0 ;
12614
12615 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12616 {
12617 PyThreadState* __tstate = wxPyBeginAllowThreads();
12618 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12619 wxPyEndAllowThreads(__tstate);
12620 if (PyErr_Occurred()) SWIG_fail;
12621 }
12622 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12623 return resultobj;
12624 fail:
12625 return NULL;
12626 }
12627
12628
12629 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12630 PyObject *resultobj = 0;
12631 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12632 void *argp1 = 0 ;
12633 int res1 = 0 ;
12634 PyObject *swig_obj[1] ;
12635
12636 if (!args) SWIG_fail;
12637 swig_obj[0] = args;
12638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12639 if (!SWIG_IsOK(res1)) {
12640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12641 }
12642 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12643 {
12644 PyThreadState* __tstate = wxPyBeginAllowThreads();
12645 delete arg1;
12646
12647 wxPyEndAllowThreads(__tstate);
12648 if (PyErr_Occurred()) SWIG_fail;
12649 }
12650 resultobj = SWIG_Py_Void();
12651 return resultobj;
12652 fail:
12653 return NULL;
12654 }
12655
12656
12657 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12658 PyObject *resultobj = 0;
12659 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12660 wxString *arg2 = 0 ;
12661 bool result;
12662 void *argp1 = 0 ;
12663 int res1 = 0 ;
12664 bool temp2 = false ;
12665 PyObject * obj0 = 0 ;
12666 PyObject * obj1 = 0 ;
12667 char * kwnames[] = {
12668 (char *) "self",(char *) "s", NULL
12669 };
12670
12671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12673 if (!SWIG_IsOK(res1)) {
12674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12675 }
12676 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12677 {
12678 arg2 = wxString_in_helper(obj1);
12679 if (arg2 == NULL) SWIG_fail;
12680 temp2 = true;
12681 }
12682 {
12683 PyThreadState* __tstate = wxPyBeginAllowThreads();
12684 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12685 wxPyEndAllowThreads(__tstate);
12686 if (PyErr_Occurred()) SWIG_fail;
12687 }
12688 {
12689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12690 }
12691 {
12692 if (temp2)
12693 delete arg2;
12694 }
12695 return resultobj;
12696 fail:
12697 {
12698 if (temp2)
12699 delete arg2;
12700 }
12701 return NULL;
12702 }
12703
12704
12705 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12706 PyObject *resultobj = 0;
12707 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12708 wxString result;
12709 void *argp1 = 0 ;
12710 int res1 = 0 ;
12711 PyObject *swig_obj[1] ;
12712
12713 if (!args) SWIG_fail;
12714 swig_obj[0] = args;
12715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12716 if (!SWIG_IsOK(res1)) {
12717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
12718 }
12719 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12720 {
12721 PyThreadState* __tstate = wxPyBeginAllowThreads();
12722 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
12723 wxPyEndAllowThreads(__tstate);
12724 if (PyErr_Occurred()) SWIG_fail;
12725 }
12726 {
12727 #if wxUSE_UNICODE
12728 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12729 #else
12730 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12731 #endif
12732 }
12733 return resultobj;
12734 fail:
12735 return NULL;
12736 }
12737
12738
12739 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12740 PyObject *obj;
12741 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12742 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
12743 return SWIG_Py_Void();
12744 }
12745
12746 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12747 return SWIG_Python_InitShadowInstance(args);
12748 }
12749
12750 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12751 PyObject *resultobj = 0;
12752 wxFontEncoding arg1 ;
12753 wxNativeEncodingInfo *result = 0 ;
12754 int val1 ;
12755 int ecode1 = 0 ;
12756 PyObject * obj0 = 0 ;
12757 char * kwnames[] = {
12758 (char *) "encoding", NULL
12759 };
12760
12761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
12762 ecode1 = SWIG_AsVal_int(obj0, &val1);
12763 if (!SWIG_IsOK(ecode1)) {
12764 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12765 }
12766 arg1 = static_cast< wxFontEncoding >(val1);
12767 {
12768 PyThreadState* __tstate = wxPyBeginAllowThreads();
12769 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
12770 wxPyEndAllowThreads(__tstate);
12771 if (PyErr_Occurred()) SWIG_fail;
12772 }
12773 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12774 return resultobj;
12775 fail:
12776 return NULL;
12777 }
12778
12779
12780 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12781 PyObject *resultobj = 0;
12782 wxNativeEncodingInfo *arg1 = 0 ;
12783 bool result;
12784 void *argp1 = 0 ;
12785 int res1 = 0 ;
12786 PyObject * obj0 = 0 ;
12787 char * kwnames[] = {
12788 (char *) "info", NULL
12789 };
12790
12791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
12792 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
12793 if (!SWIG_IsOK(res1)) {
12794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12795 }
12796 if (!argp1) {
12797 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12798 }
12799 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12800 {
12801 PyThreadState* __tstate = wxPyBeginAllowThreads();
12802 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
12803 wxPyEndAllowThreads(__tstate);
12804 if (PyErr_Occurred()) SWIG_fail;
12805 }
12806 {
12807 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12808 }
12809 return resultobj;
12810 fail:
12811 return NULL;
12812 }
12813
12814
12815 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12816 PyObject *resultobj = 0;
12817 wxFontMapper *result = 0 ;
12818
12819 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
12820 {
12821 PyThreadState* __tstate = wxPyBeginAllowThreads();
12822 result = (wxFontMapper *)new wxFontMapper();
12823 wxPyEndAllowThreads(__tstate);
12824 if (PyErr_Occurred()) SWIG_fail;
12825 }
12826 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
12827 return resultobj;
12828 fail:
12829 return NULL;
12830 }
12831
12832
12833 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12834 PyObject *resultobj = 0;
12835 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12836 void *argp1 = 0 ;
12837 int res1 = 0 ;
12838 PyObject *swig_obj[1] ;
12839
12840 if (!args) SWIG_fail;
12841 swig_obj[0] = args;
12842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
12843 if (!SWIG_IsOK(res1)) {
12844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12845 }
12846 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12847 {
12848 PyThreadState* __tstate = wxPyBeginAllowThreads();
12849 delete arg1;
12850
12851 wxPyEndAllowThreads(__tstate);
12852 if (PyErr_Occurred()) SWIG_fail;
12853 }
12854 resultobj = SWIG_Py_Void();
12855 return resultobj;
12856 fail:
12857 return NULL;
12858 }
12859
12860
12861 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12862 PyObject *resultobj = 0;
12863 wxFontMapper *result = 0 ;
12864
12865 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
12866 {
12867 PyThreadState* __tstate = wxPyBeginAllowThreads();
12868 result = (wxFontMapper *)wxFontMapper::Get();
12869 wxPyEndAllowThreads(__tstate);
12870 if (PyErr_Occurred()) SWIG_fail;
12871 }
12872 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12873 return resultobj;
12874 fail:
12875 return NULL;
12876 }
12877
12878
12879 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12880 PyObject *resultobj = 0;
12881 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12882 wxFontMapper *result = 0 ;
12883 void *argp1 = 0 ;
12884 int res1 = 0 ;
12885 PyObject * obj0 = 0 ;
12886 char * kwnames[] = {
12887 (char *) "mapper", NULL
12888 };
12889
12890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
12891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12892 if (!SWIG_IsOK(res1)) {
12893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12894 }
12895 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12896 {
12897 PyThreadState* __tstate = wxPyBeginAllowThreads();
12898 result = (wxFontMapper *)wxFontMapper::Set(arg1);
12899 wxPyEndAllowThreads(__tstate);
12900 if (PyErr_Occurred()) SWIG_fail;
12901 }
12902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12903 return resultobj;
12904 fail:
12905 return NULL;
12906 }
12907
12908
12909 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12910 PyObject *resultobj = 0;
12911 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12912 wxString *arg2 = 0 ;
12913 bool arg3 = (bool) true ;
12914 wxFontEncoding result;
12915 void *argp1 = 0 ;
12916 int res1 = 0 ;
12917 bool temp2 = false ;
12918 bool val3 ;
12919 int ecode3 = 0 ;
12920 PyObject * obj0 = 0 ;
12921 PyObject * obj1 = 0 ;
12922 PyObject * obj2 = 0 ;
12923 char * kwnames[] = {
12924 (char *) "self",(char *) "charset",(char *) "interactive", NULL
12925 };
12926
12927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12929 if (!SWIG_IsOK(res1)) {
12930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12931 }
12932 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12933 {
12934 arg2 = wxString_in_helper(obj1);
12935 if (arg2 == NULL) SWIG_fail;
12936 temp2 = true;
12937 }
12938 if (obj2) {
12939 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12940 if (!SWIG_IsOK(ecode3)) {
12941 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
12942 }
12943 arg3 = static_cast< bool >(val3);
12944 }
12945 {
12946 PyThreadState* __tstate = wxPyBeginAllowThreads();
12947 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
12948 wxPyEndAllowThreads(__tstate);
12949 if (PyErr_Occurred()) SWIG_fail;
12950 }
12951 resultobj = SWIG_From_int(static_cast< int >(result));
12952 {
12953 if (temp2)
12954 delete arg2;
12955 }
12956 return resultobj;
12957 fail:
12958 {
12959 if (temp2)
12960 delete arg2;
12961 }
12962 return NULL;
12963 }
12964
12965
12966 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12967 PyObject *resultobj = 0;
12968 size_t result;
12969
12970 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
12971 {
12972 PyThreadState* __tstate = wxPyBeginAllowThreads();
12973 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
12974 wxPyEndAllowThreads(__tstate);
12975 if (PyErr_Occurred()) SWIG_fail;
12976 }
12977 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
12978 return resultobj;
12979 fail:
12980 return NULL;
12981 }
12982
12983
12984 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12985 PyObject *resultobj = 0;
12986 size_t arg1 ;
12987 wxFontEncoding result;
12988 size_t val1 ;
12989 int ecode1 = 0 ;
12990 PyObject * obj0 = 0 ;
12991 char * kwnames[] = {
12992 (char *) "n", NULL
12993 };
12994
12995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
12996 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
12997 if (!SWIG_IsOK(ecode1)) {
12998 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
12999 }
13000 arg1 = static_cast< size_t >(val1);
13001 {
13002 PyThreadState* __tstate = wxPyBeginAllowThreads();
13003 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13004 wxPyEndAllowThreads(__tstate);
13005 if (PyErr_Occurred()) SWIG_fail;
13006 }
13007 resultobj = SWIG_From_int(static_cast< int >(result));
13008 return resultobj;
13009 fail:
13010 return NULL;
13011 }
13012
13013
13014 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13015 PyObject *resultobj = 0;
13016 wxFontEncoding arg1 ;
13017 wxString result;
13018 int val1 ;
13019 int ecode1 = 0 ;
13020 PyObject * obj0 = 0 ;
13021 char * kwnames[] = {
13022 (char *) "encoding", NULL
13023 };
13024
13025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13026 ecode1 = SWIG_AsVal_int(obj0, &val1);
13027 if (!SWIG_IsOK(ecode1)) {
13028 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13029 }
13030 arg1 = static_cast< wxFontEncoding >(val1);
13031 {
13032 PyThreadState* __tstate = wxPyBeginAllowThreads();
13033 result = wxFontMapper::GetEncodingName(arg1);
13034 wxPyEndAllowThreads(__tstate);
13035 if (PyErr_Occurred()) SWIG_fail;
13036 }
13037 {
13038 #if wxUSE_UNICODE
13039 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13040 #else
13041 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13042 #endif
13043 }
13044 return resultobj;
13045 fail:
13046 return NULL;
13047 }
13048
13049
13050 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13051 PyObject *resultobj = 0;
13052 wxFontEncoding arg1 ;
13053 wxString result;
13054 int val1 ;
13055 int ecode1 = 0 ;
13056 PyObject * obj0 = 0 ;
13057 char * kwnames[] = {
13058 (char *) "encoding", NULL
13059 };
13060
13061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13062 ecode1 = SWIG_AsVal_int(obj0, &val1);
13063 if (!SWIG_IsOK(ecode1)) {
13064 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13065 }
13066 arg1 = static_cast< wxFontEncoding >(val1);
13067 {
13068 PyThreadState* __tstate = wxPyBeginAllowThreads();
13069 result = wxFontMapper::GetEncodingDescription(arg1);
13070 wxPyEndAllowThreads(__tstate);
13071 if (PyErr_Occurred()) SWIG_fail;
13072 }
13073 {
13074 #if wxUSE_UNICODE
13075 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13076 #else
13077 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13078 #endif
13079 }
13080 return resultobj;
13081 fail:
13082 return NULL;
13083 }
13084
13085
13086 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13087 PyObject *resultobj = 0;
13088 wxString *arg1 = 0 ;
13089 wxFontEncoding result;
13090 bool temp1 = false ;
13091 PyObject * obj0 = 0 ;
13092 char * kwnames[] = {
13093 (char *) "name", NULL
13094 };
13095
13096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13097 {
13098 arg1 = wxString_in_helper(obj0);
13099 if (arg1 == NULL) SWIG_fail;
13100 temp1 = true;
13101 }
13102 {
13103 PyThreadState* __tstate = wxPyBeginAllowThreads();
13104 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13105 wxPyEndAllowThreads(__tstate);
13106 if (PyErr_Occurred()) SWIG_fail;
13107 }
13108 resultobj = SWIG_From_int(static_cast< int >(result));
13109 {
13110 if (temp1)
13111 delete arg1;
13112 }
13113 return resultobj;
13114 fail:
13115 {
13116 if (temp1)
13117 delete arg1;
13118 }
13119 return NULL;
13120 }
13121
13122
13123 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13124 PyObject *resultobj = 0;
13125 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13126 wxString *arg2 = 0 ;
13127 void *argp1 = 0 ;
13128 int res1 = 0 ;
13129 bool temp2 = false ;
13130 PyObject * obj0 = 0 ;
13131 PyObject * obj1 = 0 ;
13132 char * kwnames[] = {
13133 (char *) "self",(char *) "prefix", NULL
13134 };
13135
13136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13138 if (!SWIG_IsOK(res1)) {
13139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13140 }
13141 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13142 {
13143 arg2 = wxString_in_helper(obj1);
13144 if (arg2 == NULL) SWIG_fail;
13145 temp2 = true;
13146 }
13147 {
13148 PyThreadState* __tstate = wxPyBeginAllowThreads();
13149 (arg1)->SetConfigPath((wxString const &)*arg2);
13150 wxPyEndAllowThreads(__tstate);
13151 if (PyErr_Occurred()) SWIG_fail;
13152 }
13153 resultobj = SWIG_Py_Void();
13154 {
13155 if (temp2)
13156 delete arg2;
13157 }
13158 return resultobj;
13159 fail:
13160 {
13161 if (temp2)
13162 delete arg2;
13163 }
13164 return NULL;
13165 }
13166
13167
13168 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13169 PyObject *resultobj = 0;
13170 wxString result;
13171
13172 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13173 {
13174 PyThreadState* __tstate = wxPyBeginAllowThreads();
13175 result = wxFontMapper::GetDefaultConfigPath();
13176 wxPyEndAllowThreads(__tstate);
13177 if (PyErr_Occurred()) SWIG_fail;
13178 }
13179 {
13180 #if wxUSE_UNICODE
13181 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13182 #else
13183 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13184 #endif
13185 }
13186 return resultobj;
13187 fail:
13188 return NULL;
13189 }
13190
13191
13192 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13193 PyObject *resultobj = 0;
13194 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13195 wxFontEncoding arg2 ;
13196 wxString const &arg3_defvalue = wxPyEmptyString ;
13197 wxString *arg3 = (wxString *) &arg3_defvalue ;
13198 bool arg4 = (bool) true ;
13199 PyObject *result = 0 ;
13200 void *argp1 = 0 ;
13201 int res1 = 0 ;
13202 int val2 ;
13203 int ecode2 = 0 ;
13204 bool temp3 = false ;
13205 bool val4 ;
13206 int ecode4 = 0 ;
13207 PyObject * obj0 = 0 ;
13208 PyObject * obj1 = 0 ;
13209 PyObject * obj2 = 0 ;
13210 PyObject * obj3 = 0 ;
13211 char * kwnames[] = {
13212 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13213 };
13214
13215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13217 if (!SWIG_IsOK(res1)) {
13218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13219 }
13220 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13221 ecode2 = SWIG_AsVal_int(obj1, &val2);
13222 if (!SWIG_IsOK(ecode2)) {
13223 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13224 }
13225 arg2 = static_cast< wxFontEncoding >(val2);
13226 if (obj2) {
13227 {
13228 arg3 = wxString_in_helper(obj2);
13229 if (arg3 == NULL) SWIG_fail;
13230 temp3 = true;
13231 }
13232 }
13233 if (obj3) {
13234 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13235 if (!SWIG_IsOK(ecode4)) {
13236 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13237 }
13238 arg4 = static_cast< bool >(val4);
13239 }
13240 {
13241 PyThreadState* __tstate = wxPyBeginAllowThreads();
13242 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13243 wxPyEndAllowThreads(__tstate);
13244 if (PyErr_Occurred()) SWIG_fail;
13245 }
13246 resultobj = result;
13247 {
13248 if (temp3)
13249 delete arg3;
13250 }
13251 return resultobj;
13252 fail:
13253 {
13254 if (temp3)
13255 delete arg3;
13256 }
13257 return NULL;
13258 }
13259
13260
13261 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13262 PyObject *resultobj = 0;
13263 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13264 wxFontEncoding arg2 ;
13265 wxString const &arg3_defvalue = wxPyEmptyString ;
13266 wxString *arg3 = (wxString *) &arg3_defvalue ;
13267 bool result;
13268 void *argp1 = 0 ;
13269 int res1 = 0 ;
13270 int val2 ;
13271 int ecode2 = 0 ;
13272 bool temp3 = false ;
13273 PyObject * obj0 = 0 ;
13274 PyObject * obj1 = 0 ;
13275 PyObject * obj2 = 0 ;
13276 char * kwnames[] = {
13277 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13278 };
13279
13280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13282 if (!SWIG_IsOK(res1)) {
13283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13284 }
13285 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13286 ecode2 = SWIG_AsVal_int(obj1, &val2);
13287 if (!SWIG_IsOK(ecode2)) {
13288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13289 }
13290 arg2 = static_cast< wxFontEncoding >(val2);
13291 if (obj2) {
13292 {
13293 arg3 = wxString_in_helper(obj2);
13294 if (arg3 == NULL) SWIG_fail;
13295 temp3 = true;
13296 }
13297 }
13298 {
13299 PyThreadState* __tstate = wxPyBeginAllowThreads();
13300 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13301 wxPyEndAllowThreads(__tstate);
13302 if (PyErr_Occurred()) SWIG_fail;
13303 }
13304 {
13305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13306 }
13307 {
13308 if (temp3)
13309 delete arg3;
13310 }
13311 return resultobj;
13312 fail:
13313 {
13314 if (temp3)
13315 delete arg3;
13316 }
13317 return NULL;
13318 }
13319
13320
13321 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13322 PyObject *resultobj = 0;
13323 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13324 wxWindow *arg2 = (wxWindow *) 0 ;
13325 void *argp1 = 0 ;
13326 int res1 = 0 ;
13327 void *argp2 = 0 ;
13328 int res2 = 0 ;
13329 PyObject * obj0 = 0 ;
13330 PyObject * obj1 = 0 ;
13331 char * kwnames[] = {
13332 (char *) "self",(char *) "parent", NULL
13333 };
13334
13335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13337 if (!SWIG_IsOK(res1)) {
13338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13339 }
13340 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13341 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13342 if (!SWIG_IsOK(res2)) {
13343 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13344 }
13345 arg2 = reinterpret_cast< wxWindow * >(argp2);
13346 {
13347 PyThreadState* __tstate = wxPyBeginAllowThreads();
13348 (arg1)->SetDialogParent(arg2);
13349 wxPyEndAllowThreads(__tstate);
13350 if (PyErr_Occurred()) SWIG_fail;
13351 }
13352 resultobj = SWIG_Py_Void();
13353 return resultobj;
13354 fail:
13355 return NULL;
13356 }
13357
13358
13359 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13360 PyObject *resultobj = 0;
13361 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13362 wxString *arg2 = 0 ;
13363 void *argp1 = 0 ;
13364 int res1 = 0 ;
13365 bool temp2 = false ;
13366 PyObject * obj0 = 0 ;
13367 PyObject * obj1 = 0 ;
13368 char * kwnames[] = {
13369 (char *) "self",(char *) "title", NULL
13370 };
13371
13372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13374 if (!SWIG_IsOK(res1)) {
13375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13376 }
13377 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13378 {
13379 arg2 = wxString_in_helper(obj1);
13380 if (arg2 == NULL) SWIG_fail;
13381 temp2 = true;
13382 }
13383 {
13384 PyThreadState* __tstate = wxPyBeginAllowThreads();
13385 (arg1)->SetDialogTitle((wxString const &)*arg2);
13386 wxPyEndAllowThreads(__tstate);
13387 if (PyErr_Occurred()) SWIG_fail;
13388 }
13389 resultobj = SWIG_Py_Void();
13390 {
13391 if (temp2)
13392 delete arg2;
13393 }
13394 return resultobj;
13395 fail:
13396 {
13397 if (temp2)
13398 delete arg2;
13399 }
13400 return NULL;
13401 }
13402
13403
13404 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13405 PyObject *obj;
13406 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13407 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13408 return SWIG_Py_Void();
13409 }
13410
13411 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13412 return SWIG_Python_InitShadowInstance(args);
13413 }
13414
13415 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13416 PyObject *resultobj = 0;
13417 int arg1 ;
13418 int arg2 ;
13419 int arg3 ;
13420 int arg4 ;
13421 bool arg5 = (bool) false ;
13422 wxString const &arg6_defvalue = wxPyEmptyString ;
13423 wxString *arg6 = (wxString *) &arg6_defvalue ;
13424 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13425 wxFont *result = 0 ;
13426 int val1 ;
13427 int ecode1 = 0 ;
13428 int val2 ;
13429 int ecode2 = 0 ;
13430 int val3 ;
13431 int ecode3 = 0 ;
13432 int val4 ;
13433 int ecode4 = 0 ;
13434 bool val5 ;
13435 int ecode5 = 0 ;
13436 bool temp6 = false ;
13437 int val7 ;
13438 int ecode7 = 0 ;
13439 PyObject * obj0 = 0 ;
13440 PyObject * obj1 = 0 ;
13441 PyObject * obj2 = 0 ;
13442 PyObject * obj3 = 0 ;
13443 PyObject * obj4 = 0 ;
13444 PyObject * obj5 = 0 ;
13445 PyObject * obj6 = 0 ;
13446 char * kwnames[] = {
13447 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13448 };
13449
13450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13451 ecode1 = SWIG_AsVal_int(obj0, &val1);
13452 if (!SWIG_IsOK(ecode1)) {
13453 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13454 }
13455 arg1 = static_cast< int >(val1);
13456 ecode2 = SWIG_AsVal_int(obj1, &val2);
13457 if (!SWIG_IsOK(ecode2)) {
13458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13459 }
13460 arg2 = static_cast< int >(val2);
13461 ecode3 = SWIG_AsVal_int(obj2, &val3);
13462 if (!SWIG_IsOK(ecode3)) {
13463 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13464 }
13465 arg3 = static_cast< int >(val3);
13466 ecode4 = SWIG_AsVal_int(obj3, &val4);
13467 if (!SWIG_IsOK(ecode4)) {
13468 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13469 }
13470 arg4 = static_cast< int >(val4);
13471 if (obj4) {
13472 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13473 if (!SWIG_IsOK(ecode5)) {
13474 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13475 }
13476 arg5 = static_cast< bool >(val5);
13477 }
13478 if (obj5) {
13479 {
13480 arg6 = wxString_in_helper(obj5);
13481 if (arg6 == NULL) SWIG_fail;
13482 temp6 = true;
13483 }
13484 }
13485 if (obj6) {
13486 ecode7 = SWIG_AsVal_int(obj6, &val7);
13487 if (!SWIG_IsOK(ecode7)) {
13488 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13489 }
13490 arg7 = static_cast< wxFontEncoding >(val7);
13491 }
13492 {
13493 if (!wxPyCheckForApp()) SWIG_fail;
13494 PyThreadState* __tstate = wxPyBeginAllowThreads();
13495 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13496 wxPyEndAllowThreads(__tstate);
13497 if (PyErr_Occurred()) SWIG_fail;
13498 }
13499 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13500 {
13501 if (temp6)
13502 delete arg6;
13503 }
13504 return resultobj;
13505 fail:
13506 {
13507 if (temp6)
13508 delete arg6;
13509 }
13510 return NULL;
13511 }
13512
13513
13514 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13515 PyObject *resultobj = 0;
13516 wxFont *arg1 = (wxFont *) 0 ;
13517 void *argp1 = 0 ;
13518 int res1 = 0 ;
13519 PyObject *swig_obj[1] ;
13520
13521 if (!args) SWIG_fail;
13522 swig_obj[0] = args;
13523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13524 if (!SWIG_IsOK(res1)) {
13525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13526 }
13527 arg1 = reinterpret_cast< wxFont * >(argp1);
13528 {
13529 PyThreadState* __tstate = wxPyBeginAllowThreads();
13530 delete arg1;
13531
13532 wxPyEndAllowThreads(__tstate);
13533 if (PyErr_Occurred()) SWIG_fail;
13534 }
13535 resultobj = SWIG_Py_Void();
13536 return resultobj;
13537 fail:
13538 return NULL;
13539 }
13540
13541
13542 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13543 PyObject *resultobj = 0;
13544 wxNativeFontInfo *arg1 = 0 ;
13545 wxFont *result = 0 ;
13546 void *argp1 = 0 ;
13547 int res1 = 0 ;
13548 PyObject * obj0 = 0 ;
13549 char * kwnames[] = {
13550 (char *) "info", NULL
13551 };
13552
13553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13554 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13555 if (!SWIG_IsOK(res1)) {
13556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13557 }
13558 if (!argp1) {
13559 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13560 }
13561 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13562 {
13563 if (!wxPyCheckForApp()) SWIG_fail;
13564 PyThreadState* __tstate = wxPyBeginAllowThreads();
13565 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13566 wxPyEndAllowThreads(__tstate);
13567 if (PyErr_Occurred()) SWIG_fail;
13568 }
13569 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13570 return resultobj;
13571 fail:
13572 return NULL;
13573 }
13574
13575
13576 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13577 PyObject *resultobj = 0;
13578 wxString *arg1 = 0 ;
13579 wxFont *result = 0 ;
13580 bool temp1 = false ;
13581 PyObject * obj0 = 0 ;
13582 char * kwnames[] = {
13583 (char *) "info", NULL
13584 };
13585
13586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13587 {
13588 arg1 = wxString_in_helper(obj0);
13589 if (arg1 == NULL) SWIG_fail;
13590 temp1 = true;
13591 }
13592 {
13593 if (!wxPyCheckForApp()) SWIG_fail;
13594 PyThreadState* __tstate = wxPyBeginAllowThreads();
13595 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13596 wxPyEndAllowThreads(__tstate);
13597 if (PyErr_Occurred()) SWIG_fail;
13598 }
13599 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13600 {
13601 if (temp1)
13602 delete arg1;
13603 }
13604 return resultobj;
13605 fail:
13606 {
13607 if (temp1)
13608 delete arg1;
13609 }
13610 return NULL;
13611 }
13612
13613
13614 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13615 PyObject *resultobj = 0;
13616 int arg1 ;
13617 wxFontFamily arg2 ;
13618 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13619 wxString const &arg4_defvalue = wxPyEmptyString ;
13620 wxString *arg4 = (wxString *) &arg4_defvalue ;
13621 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13622 wxFont *result = 0 ;
13623 int val1 ;
13624 int ecode1 = 0 ;
13625 int val2 ;
13626 int ecode2 = 0 ;
13627 int val3 ;
13628 int ecode3 = 0 ;
13629 bool temp4 = false ;
13630 int val5 ;
13631 int ecode5 = 0 ;
13632 PyObject * obj0 = 0 ;
13633 PyObject * obj1 = 0 ;
13634 PyObject * obj2 = 0 ;
13635 PyObject * obj3 = 0 ;
13636 PyObject * obj4 = 0 ;
13637 char * kwnames[] = {
13638 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13639 };
13640
13641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13642 ecode1 = SWIG_AsVal_int(obj0, &val1);
13643 if (!SWIG_IsOK(ecode1)) {
13644 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13645 }
13646 arg1 = static_cast< int >(val1);
13647 ecode2 = SWIG_AsVal_int(obj1, &val2);
13648 if (!SWIG_IsOK(ecode2)) {
13649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13650 }
13651 arg2 = static_cast< wxFontFamily >(val2);
13652 if (obj2) {
13653 ecode3 = SWIG_AsVal_int(obj2, &val3);
13654 if (!SWIG_IsOK(ecode3)) {
13655 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13656 }
13657 arg3 = static_cast< int >(val3);
13658 }
13659 if (obj3) {
13660 {
13661 arg4 = wxString_in_helper(obj3);
13662 if (arg4 == NULL) SWIG_fail;
13663 temp4 = true;
13664 }
13665 }
13666 if (obj4) {
13667 ecode5 = SWIG_AsVal_int(obj4, &val5);
13668 if (!SWIG_IsOK(ecode5)) {
13669 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13670 }
13671 arg5 = static_cast< wxFontEncoding >(val5);
13672 }
13673 {
13674 if (!wxPyCheckForApp()) SWIG_fail;
13675 PyThreadState* __tstate = wxPyBeginAllowThreads();
13676 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13677 wxPyEndAllowThreads(__tstate);
13678 if (PyErr_Occurred()) SWIG_fail;
13679 }
13680 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13681 {
13682 if (temp4)
13683 delete arg4;
13684 }
13685 return resultobj;
13686 fail:
13687 {
13688 if (temp4)
13689 delete arg4;
13690 }
13691 return NULL;
13692 }
13693
13694
13695 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13696 PyObject *resultobj = 0;
13697 wxSize *arg1 = 0 ;
13698 int arg2 ;
13699 int arg3 ;
13700 int arg4 ;
13701 bool arg5 = (bool) false ;
13702 wxString const &arg6_defvalue = wxEmptyString ;
13703 wxString *arg6 = (wxString *) &arg6_defvalue ;
13704 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13705 wxFont *result = 0 ;
13706 wxSize temp1 ;
13707 int val2 ;
13708 int ecode2 = 0 ;
13709 int val3 ;
13710 int ecode3 = 0 ;
13711 int val4 ;
13712 int ecode4 = 0 ;
13713 bool val5 ;
13714 int ecode5 = 0 ;
13715 bool temp6 = false ;
13716 int val7 ;
13717 int ecode7 = 0 ;
13718 PyObject * obj0 = 0 ;
13719 PyObject * obj1 = 0 ;
13720 PyObject * obj2 = 0 ;
13721 PyObject * obj3 = 0 ;
13722 PyObject * obj4 = 0 ;
13723 PyObject * obj5 = 0 ;
13724 PyObject * obj6 = 0 ;
13725 char * kwnames[] = {
13726 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
13727 };
13728
13729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13730 {
13731 arg1 = &temp1;
13732 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13733 }
13734 ecode2 = SWIG_AsVal_int(obj1, &val2);
13735 if (!SWIG_IsOK(ecode2)) {
13736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
13737 }
13738 arg2 = static_cast< int >(val2);
13739 ecode3 = SWIG_AsVal_int(obj2, &val3);
13740 if (!SWIG_IsOK(ecode3)) {
13741 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13742 }
13743 arg3 = static_cast< int >(val3);
13744 ecode4 = SWIG_AsVal_int(obj3, &val4);
13745 if (!SWIG_IsOK(ecode4)) {
13746 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
13747 }
13748 arg4 = static_cast< int >(val4);
13749 if (obj4) {
13750 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13751 if (!SWIG_IsOK(ecode5)) {
13752 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
13753 }
13754 arg5 = static_cast< bool >(val5);
13755 }
13756 if (obj5) {
13757 {
13758 arg6 = wxString_in_helper(obj5);
13759 if (arg6 == NULL) SWIG_fail;
13760 temp6 = true;
13761 }
13762 }
13763 if (obj6) {
13764 ecode7 = SWIG_AsVal_int(obj6, &val7);
13765 if (!SWIG_IsOK(ecode7)) {
13766 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13767 }
13768 arg7 = static_cast< wxFontEncoding >(val7);
13769 }
13770 {
13771 if (!wxPyCheckForApp()) SWIG_fail;
13772 PyThreadState* __tstate = wxPyBeginAllowThreads();
13773 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13774 wxPyEndAllowThreads(__tstate);
13775 if (PyErr_Occurred()) SWIG_fail;
13776 }
13777 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13778 {
13779 if (temp6)
13780 delete arg6;
13781 }
13782 return resultobj;
13783 fail:
13784 {
13785 if (temp6)
13786 delete arg6;
13787 }
13788 return NULL;
13789 }
13790
13791
13792 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13793 PyObject *resultobj = 0;
13794 wxSize *arg1 = 0 ;
13795 wxFontFamily arg2 ;
13796 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13797 wxString const &arg4_defvalue = wxEmptyString ;
13798 wxString *arg4 = (wxString *) &arg4_defvalue ;
13799 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13800 wxFont *result = 0 ;
13801 wxSize temp1 ;
13802 int val2 ;
13803 int ecode2 = 0 ;
13804 int val3 ;
13805 int ecode3 = 0 ;
13806 bool temp4 = false ;
13807 int val5 ;
13808 int ecode5 = 0 ;
13809 PyObject * obj0 = 0 ;
13810 PyObject * obj1 = 0 ;
13811 PyObject * obj2 = 0 ;
13812 PyObject * obj3 = 0 ;
13813 PyObject * obj4 = 0 ;
13814 char * kwnames[] = {
13815 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13816 };
13817
13818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13819 {
13820 arg1 = &temp1;
13821 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13822 }
13823 ecode2 = SWIG_AsVal_int(obj1, &val2);
13824 if (!SWIG_IsOK(ecode2)) {
13825 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
13826 }
13827 arg2 = static_cast< wxFontFamily >(val2);
13828 if (obj2) {
13829 ecode3 = SWIG_AsVal_int(obj2, &val3);
13830 if (!SWIG_IsOK(ecode3)) {
13831 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13832 }
13833 arg3 = static_cast< int >(val3);
13834 }
13835 if (obj3) {
13836 {
13837 arg4 = wxString_in_helper(obj3);
13838 if (arg4 == NULL) SWIG_fail;
13839 temp4 = true;
13840 }
13841 }
13842 if (obj4) {
13843 ecode5 = SWIG_AsVal_int(obj4, &val5);
13844 if (!SWIG_IsOK(ecode5)) {
13845 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13846 }
13847 arg5 = static_cast< wxFontEncoding >(val5);
13848 }
13849 {
13850 if (!wxPyCheckForApp()) SWIG_fail;
13851 PyThreadState* __tstate = wxPyBeginAllowThreads();
13852 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13853 wxPyEndAllowThreads(__tstate);
13854 if (PyErr_Occurred()) SWIG_fail;
13855 }
13856 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13857 {
13858 if (temp4)
13859 delete arg4;
13860 }
13861 return resultobj;
13862 fail:
13863 {
13864 if (temp4)
13865 delete arg4;
13866 }
13867 return NULL;
13868 }
13869
13870
13871 SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13872 PyObject *resultobj = 0;
13873 wxFont *arg1 = (wxFont *) 0 ;
13874 bool result;
13875 void *argp1 = 0 ;
13876 int res1 = 0 ;
13877 PyObject *swig_obj[1] ;
13878
13879 if (!args) SWIG_fail;
13880 swig_obj[0] = args;
13881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13882 if (!SWIG_IsOK(res1)) {
13883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
13884 }
13885 arg1 = reinterpret_cast< wxFont * >(argp1);
13886 {
13887 PyThreadState* __tstate = wxPyBeginAllowThreads();
13888 result = (bool)((wxFont const *)arg1)->IsOk();
13889 wxPyEndAllowThreads(__tstate);
13890 if (PyErr_Occurred()) SWIG_fail;
13891 }
13892 {
13893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13894 }
13895 return resultobj;
13896 fail:
13897 return NULL;
13898 }
13899
13900
13901 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13902 PyObject *resultobj = 0;
13903 wxFont *arg1 = (wxFont *) 0 ;
13904 wxFont *arg2 = (wxFont *) 0 ;
13905 bool result;
13906 void *argp1 = 0 ;
13907 int res1 = 0 ;
13908 void *argp2 = 0 ;
13909 int res2 = 0 ;
13910 PyObject * obj0 = 0 ;
13911 PyObject * obj1 = 0 ;
13912 char * kwnames[] = {
13913 (char *) "self",(char *) "other", NULL
13914 };
13915
13916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
13917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13918 if (!SWIG_IsOK(res1)) {
13919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
13920 }
13921 arg1 = reinterpret_cast< wxFont * >(argp1);
13922 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13923 if (!SWIG_IsOK(res2)) {
13924 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
13925 }
13926 arg2 = reinterpret_cast< wxFont * >(argp2);
13927 {
13928 PyThreadState* __tstate = wxPyBeginAllowThreads();
13929 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
13930 wxPyEndAllowThreads(__tstate);
13931 if (PyErr_Occurred()) SWIG_fail;
13932 }
13933 {
13934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13935 }
13936 return resultobj;
13937 fail:
13938 return NULL;
13939 }
13940
13941
13942 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13943 PyObject *resultobj = 0;
13944 wxFont *arg1 = (wxFont *) 0 ;
13945 wxFont *arg2 = (wxFont *) 0 ;
13946 bool result;
13947 void *argp1 = 0 ;
13948 int res1 = 0 ;
13949 void *argp2 = 0 ;
13950 int res2 = 0 ;
13951 PyObject * obj0 = 0 ;
13952 PyObject * obj1 = 0 ;
13953 char * kwnames[] = {
13954 (char *) "self",(char *) "other", NULL
13955 };
13956
13957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
13958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13959 if (!SWIG_IsOK(res1)) {
13960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
13961 }
13962 arg1 = reinterpret_cast< wxFont * >(argp1);
13963 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13964 if (!SWIG_IsOK(res2)) {
13965 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
13966 }
13967 arg2 = reinterpret_cast< wxFont * >(argp2);
13968 {
13969 PyThreadState* __tstate = wxPyBeginAllowThreads();
13970 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
13971 wxPyEndAllowThreads(__tstate);
13972 if (PyErr_Occurred()) SWIG_fail;
13973 }
13974 {
13975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13976 }
13977 return resultobj;
13978 fail:
13979 return NULL;
13980 }
13981
13982
13983 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13984 PyObject *resultobj = 0;
13985 wxFont *arg1 = (wxFont *) 0 ;
13986 int result;
13987 void *argp1 = 0 ;
13988 int res1 = 0 ;
13989 PyObject *swig_obj[1] ;
13990
13991 if (!args) SWIG_fail;
13992 swig_obj[0] = args;
13993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13994 if (!SWIG_IsOK(res1)) {
13995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
13996 }
13997 arg1 = reinterpret_cast< wxFont * >(argp1);
13998 {
13999 PyThreadState* __tstate = wxPyBeginAllowThreads();
14000 result = (int)((wxFont const *)arg1)->GetPointSize();
14001 wxPyEndAllowThreads(__tstate);
14002 if (PyErr_Occurred()) SWIG_fail;
14003 }
14004 resultobj = SWIG_From_int(static_cast< int >(result));
14005 return resultobj;
14006 fail:
14007 return NULL;
14008 }
14009
14010
14011 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14012 PyObject *resultobj = 0;
14013 wxFont *arg1 = (wxFont *) 0 ;
14014 wxSize result;
14015 void *argp1 = 0 ;
14016 int res1 = 0 ;
14017 PyObject *swig_obj[1] ;
14018
14019 if (!args) SWIG_fail;
14020 swig_obj[0] = args;
14021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14022 if (!SWIG_IsOK(res1)) {
14023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14024 }
14025 arg1 = reinterpret_cast< wxFont * >(argp1);
14026 {
14027 PyThreadState* __tstate = wxPyBeginAllowThreads();
14028 result = ((wxFont const *)arg1)->GetPixelSize();
14029 wxPyEndAllowThreads(__tstate);
14030 if (PyErr_Occurred()) SWIG_fail;
14031 }
14032 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14033 return resultobj;
14034 fail:
14035 return NULL;
14036 }
14037
14038
14039 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14040 PyObject *resultobj = 0;
14041 wxFont *arg1 = (wxFont *) 0 ;
14042 bool result;
14043 void *argp1 = 0 ;
14044 int res1 = 0 ;
14045 PyObject *swig_obj[1] ;
14046
14047 if (!args) SWIG_fail;
14048 swig_obj[0] = args;
14049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14050 if (!SWIG_IsOK(res1)) {
14051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14052 }
14053 arg1 = reinterpret_cast< wxFont * >(argp1);
14054 {
14055 PyThreadState* __tstate = wxPyBeginAllowThreads();
14056 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14057 wxPyEndAllowThreads(__tstate);
14058 if (PyErr_Occurred()) SWIG_fail;
14059 }
14060 {
14061 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14062 }
14063 return resultobj;
14064 fail:
14065 return NULL;
14066 }
14067
14068
14069 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14070 PyObject *resultobj = 0;
14071 wxFont *arg1 = (wxFont *) 0 ;
14072 int result;
14073 void *argp1 = 0 ;
14074 int res1 = 0 ;
14075 PyObject *swig_obj[1] ;
14076
14077 if (!args) SWIG_fail;
14078 swig_obj[0] = args;
14079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14080 if (!SWIG_IsOK(res1)) {
14081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14082 }
14083 arg1 = reinterpret_cast< wxFont * >(argp1);
14084 {
14085 PyThreadState* __tstate = wxPyBeginAllowThreads();
14086 result = (int)((wxFont const *)arg1)->GetFamily();
14087 wxPyEndAllowThreads(__tstate);
14088 if (PyErr_Occurred()) SWIG_fail;
14089 }
14090 resultobj = SWIG_From_int(static_cast< int >(result));
14091 return resultobj;
14092 fail:
14093 return NULL;
14094 }
14095
14096
14097 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14098 PyObject *resultobj = 0;
14099 wxFont *arg1 = (wxFont *) 0 ;
14100 int result;
14101 void *argp1 = 0 ;
14102 int res1 = 0 ;
14103 PyObject *swig_obj[1] ;
14104
14105 if (!args) SWIG_fail;
14106 swig_obj[0] = args;
14107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14108 if (!SWIG_IsOK(res1)) {
14109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14110 }
14111 arg1 = reinterpret_cast< wxFont * >(argp1);
14112 {
14113 PyThreadState* __tstate = wxPyBeginAllowThreads();
14114 result = (int)((wxFont const *)arg1)->GetStyle();
14115 wxPyEndAllowThreads(__tstate);
14116 if (PyErr_Occurred()) SWIG_fail;
14117 }
14118 resultobj = SWIG_From_int(static_cast< int >(result));
14119 return resultobj;
14120 fail:
14121 return NULL;
14122 }
14123
14124
14125 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14126 PyObject *resultobj = 0;
14127 wxFont *arg1 = (wxFont *) 0 ;
14128 int result;
14129 void *argp1 = 0 ;
14130 int res1 = 0 ;
14131 PyObject *swig_obj[1] ;
14132
14133 if (!args) SWIG_fail;
14134 swig_obj[0] = args;
14135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14136 if (!SWIG_IsOK(res1)) {
14137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14138 }
14139 arg1 = reinterpret_cast< wxFont * >(argp1);
14140 {
14141 PyThreadState* __tstate = wxPyBeginAllowThreads();
14142 result = (int)((wxFont const *)arg1)->GetWeight();
14143 wxPyEndAllowThreads(__tstate);
14144 if (PyErr_Occurred()) SWIG_fail;
14145 }
14146 resultobj = SWIG_From_int(static_cast< int >(result));
14147 return resultobj;
14148 fail:
14149 return NULL;
14150 }
14151
14152
14153 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14154 PyObject *resultobj = 0;
14155 wxFont *arg1 = (wxFont *) 0 ;
14156 bool result;
14157 void *argp1 = 0 ;
14158 int res1 = 0 ;
14159 PyObject *swig_obj[1] ;
14160
14161 if (!args) SWIG_fail;
14162 swig_obj[0] = args;
14163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14164 if (!SWIG_IsOK(res1)) {
14165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14166 }
14167 arg1 = reinterpret_cast< wxFont * >(argp1);
14168 {
14169 PyThreadState* __tstate = wxPyBeginAllowThreads();
14170 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14171 wxPyEndAllowThreads(__tstate);
14172 if (PyErr_Occurred()) SWIG_fail;
14173 }
14174 {
14175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14176 }
14177 return resultobj;
14178 fail:
14179 return NULL;
14180 }
14181
14182
14183 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14184 PyObject *resultobj = 0;
14185 wxFont *arg1 = (wxFont *) 0 ;
14186 wxString result;
14187 void *argp1 = 0 ;
14188 int res1 = 0 ;
14189 PyObject *swig_obj[1] ;
14190
14191 if (!args) SWIG_fail;
14192 swig_obj[0] = args;
14193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14194 if (!SWIG_IsOK(res1)) {
14195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14196 }
14197 arg1 = reinterpret_cast< wxFont * >(argp1);
14198 {
14199 PyThreadState* __tstate = wxPyBeginAllowThreads();
14200 result = ((wxFont const *)arg1)->GetFaceName();
14201 wxPyEndAllowThreads(__tstate);
14202 if (PyErr_Occurred()) SWIG_fail;
14203 }
14204 {
14205 #if wxUSE_UNICODE
14206 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14207 #else
14208 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14209 #endif
14210 }
14211 return resultobj;
14212 fail:
14213 return NULL;
14214 }
14215
14216
14217 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14218 PyObject *resultobj = 0;
14219 wxFont *arg1 = (wxFont *) 0 ;
14220 wxFontEncoding result;
14221 void *argp1 = 0 ;
14222 int res1 = 0 ;
14223 PyObject *swig_obj[1] ;
14224
14225 if (!args) SWIG_fail;
14226 swig_obj[0] = args;
14227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14228 if (!SWIG_IsOK(res1)) {
14229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14230 }
14231 arg1 = reinterpret_cast< wxFont * >(argp1);
14232 {
14233 PyThreadState* __tstate = wxPyBeginAllowThreads();
14234 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14235 wxPyEndAllowThreads(__tstate);
14236 if (PyErr_Occurred()) SWIG_fail;
14237 }
14238 resultobj = SWIG_From_int(static_cast< int >(result));
14239 return resultobj;
14240 fail:
14241 return NULL;
14242 }
14243
14244
14245 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14246 PyObject *resultobj = 0;
14247 wxFont *arg1 = (wxFont *) 0 ;
14248 wxNativeFontInfo *result = 0 ;
14249 void *argp1 = 0 ;
14250 int res1 = 0 ;
14251 PyObject *swig_obj[1] ;
14252
14253 if (!args) SWIG_fail;
14254 swig_obj[0] = args;
14255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14256 if (!SWIG_IsOK(res1)) {
14257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14258 }
14259 arg1 = reinterpret_cast< wxFont * >(argp1);
14260 {
14261 PyThreadState* __tstate = wxPyBeginAllowThreads();
14262 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14263 wxPyEndAllowThreads(__tstate);
14264 if (PyErr_Occurred()) SWIG_fail;
14265 }
14266 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14267 return resultobj;
14268 fail:
14269 return NULL;
14270 }
14271
14272
14273 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14274 PyObject *resultobj = 0;
14275 wxFont *arg1 = (wxFont *) 0 ;
14276 bool result;
14277 void *argp1 = 0 ;
14278 int res1 = 0 ;
14279 PyObject *swig_obj[1] ;
14280
14281 if (!args) SWIG_fail;
14282 swig_obj[0] = args;
14283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14284 if (!SWIG_IsOK(res1)) {
14285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14286 }
14287 arg1 = reinterpret_cast< wxFont * >(argp1);
14288 {
14289 PyThreadState* __tstate = wxPyBeginAllowThreads();
14290 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14291 wxPyEndAllowThreads(__tstate);
14292 if (PyErr_Occurred()) SWIG_fail;
14293 }
14294 {
14295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14296 }
14297 return resultobj;
14298 fail:
14299 return NULL;
14300 }
14301
14302
14303 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14304 PyObject *resultobj = 0;
14305 wxFont *arg1 = (wxFont *) 0 ;
14306 wxString result;
14307 void *argp1 = 0 ;
14308 int res1 = 0 ;
14309 PyObject *swig_obj[1] ;
14310
14311 if (!args) SWIG_fail;
14312 swig_obj[0] = args;
14313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14314 if (!SWIG_IsOK(res1)) {
14315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14316 }
14317 arg1 = reinterpret_cast< wxFont * >(argp1);
14318 {
14319 PyThreadState* __tstate = wxPyBeginAllowThreads();
14320 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14321 wxPyEndAllowThreads(__tstate);
14322 if (PyErr_Occurred()) SWIG_fail;
14323 }
14324 {
14325 #if wxUSE_UNICODE
14326 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14327 #else
14328 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14329 #endif
14330 }
14331 return resultobj;
14332 fail:
14333 return NULL;
14334 }
14335
14336
14337 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14338 PyObject *resultobj = 0;
14339 wxFont *arg1 = (wxFont *) 0 ;
14340 wxString result;
14341 void *argp1 = 0 ;
14342 int res1 = 0 ;
14343 PyObject *swig_obj[1] ;
14344
14345 if (!args) SWIG_fail;
14346 swig_obj[0] = args;
14347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14348 if (!SWIG_IsOK(res1)) {
14349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14350 }
14351 arg1 = reinterpret_cast< wxFont * >(argp1);
14352 {
14353 PyThreadState* __tstate = wxPyBeginAllowThreads();
14354 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14355 wxPyEndAllowThreads(__tstate);
14356 if (PyErr_Occurred()) SWIG_fail;
14357 }
14358 {
14359 #if wxUSE_UNICODE
14360 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14361 #else
14362 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14363 #endif
14364 }
14365 return resultobj;
14366 fail:
14367 return NULL;
14368 }
14369
14370
14371 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14372 PyObject *resultobj = 0;
14373 wxFont *arg1 = (wxFont *) 0 ;
14374 int arg2 ;
14375 void *argp1 = 0 ;
14376 int res1 = 0 ;
14377 int val2 ;
14378 int ecode2 = 0 ;
14379 PyObject * obj0 = 0 ;
14380 PyObject * obj1 = 0 ;
14381 char * kwnames[] = {
14382 (char *) "self",(char *) "pointSize", NULL
14383 };
14384
14385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14387 if (!SWIG_IsOK(res1)) {
14388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14389 }
14390 arg1 = reinterpret_cast< wxFont * >(argp1);
14391 ecode2 = SWIG_AsVal_int(obj1, &val2);
14392 if (!SWIG_IsOK(ecode2)) {
14393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14394 }
14395 arg2 = static_cast< int >(val2);
14396 {
14397 PyThreadState* __tstate = wxPyBeginAllowThreads();
14398 (arg1)->SetPointSize(arg2);
14399 wxPyEndAllowThreads(__tstate);
14400 if (PyErr_Occurred()) SWIG_fail;
14401 }
14402 resultobj = SWIG_Py_Void();
14403 return resultobj;
14404 fail:
14405 return NULL;
14406 }
14407
14408
14409 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14410 PyObject *resultobj = 0;
14411 wxFont *arg1 = (wxFont *) 0 ;
14412 wxSize *arg2 = 0 ;
14413 void *argp1 = 0 ;
14414 int res1 = 0 ;
14415 wxSize temp2 ;
14416 PyObject * obj0 = 0 ;
14417 PyObject * obj1 = 0 ;
14418 char * kwnames[] = {
14419 (char *) "self",(char *) "pixelSize", NULL
14420 };
14421
14422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14424 if (!SWIG_IsOK(res1)) {
14425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14426 }
14427 arg1 = reinterpret_cast< wxFont * >(argp1);
14428 {
14429 arg2 = &temp2;
14430 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14431 }
14432 {
14433 PyThreadState* __tstate = wxPyBeginAllowThreads();
14434 (arg1)->SetPixelSize((wxSize const &)*arg2);
14435 wxPyEndAllowThreads(__tstate);
14436 if (PyErr_Occurred()) SWIG_fail;
14437 }
14438 resultobj = SWIG_Py_Void();
14439 return resultobj;
14440 fail:
14441 return NULL;
14442 }
14443
14444
14445 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14446 PyObject *resultobj = 0;
14447 wxFont *arg1 = (wxFont *) 0 ;
14448 int arg2 ;
14449 void *argp1 = 0 ;
14450 int res1 = 0 ;
14451 int val2 ;
14452 int ecode2 = 0 ;
14453 PyObject * obj0 = 0 ;
14454 PyObject * obj1 = 0 ;
14455 char * kwnames[] = {
14456 (char *) "self",(char *) "family", NULL
14457 };
14458
14459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14461 if (!SWIG_IsOK(res1)) {
14462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14463 }
14464 arg1 = reinterpret_cast< wxFont * >(argp1);
14465 ecode2 = SWIG_AsVal_int(obj1, &val2);
14466 if (!SWIG_IsOK(ecode2)) {
14467 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14468 }
14469 arg2 = static_cast< int >(val2);
14470 {
14471 PyThreadState* __tstate = wxPyBeginAllowThreads();
14472 (arg1)->SetFamily(arg2);
14473 wxPyEndAllowThreads(__tstate);
14474 if (PyErr_Occurred()) SWIG_fail;
14475 }
14476 resultobj = SWIG_Py_Void();
14477 return resultobj;
14478 fail:
14479 return NULL;
14480 }
14481
14482
14483 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14484 PyObject *resultobj = 0;
14485 wxFont *arg1 = (wxFont *) 0 ;
14486 int arg2 ;
14487 void *argp1 = 0 ;
14488 int res1 = 0 ;
14489 int val2 ;
14490 int ecode2 = 0 ;
14491 PyObject * obj0 = 0 ;
14492 PyObject * obj1 = 0 ;
14493 char * kwnames[] = {
14494 (char *) "self",(char *) "style", NULL
14495 };
14496
14497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14499 if (!SWIG_IsOK(res1)) {
14500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14501 }
14502 arg1 = reinterpret_cast< wxFont * >(argp1);
14503 ecode2 = SWIG_AsVal_int(obj1, &val2);
14504 if (!SWIG_IsOK(ecode2)) {
14505 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14506 }
14507 arg2 = static_cast< int >(val2);
14508 {
14509 PyThreadState* __tstate = wxPyBeginAllowThreads();
14510 (arg1)->SetStyle(arg2);
14511 wxPyEndAllowThreads(__tstate);
14512 if (PyErr_Occurred()) SWIG_fail;
14513 }
14514 resultobj = SWIG_Py_Void();
14515 return resultobj;
14516 fail:
14517 return NULL;
14518 }
14519
14520
14521 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14522 PyObject *resultobj = 0;
14523 wxFont *arg1 = (wxFont *) 0 ;
14524 int arg2 ;
14525 void *argp1 = 0 ;
14526 int res1 = 0 ;
14527 int val2 ;
14528 int ecode2 = 0 ;
14529 PyObject * obj0 = 0 ;
14530 PyObject * obj1 = 0 ;
14531 char * kwnames[] = {
14532 (char *) "self",(char *) "weight", NULL
14533 };
14534
14535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14537 if (!SWIG_IsOK(res1)) {
14538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14539 }
14540 arg1 = reinterpret_cast< wxFont * >(argp1);
14541 ecode2 = SWIG_AsVal_int(obj1, &val2);
14542 if (!SWIG_IsOK(ecode2)) {
14543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14544 }
14545 arg2 = static_cast< int >(val2);
14546 {
14547 PyThreadState* __tstate = wxPyBeginAllowThreads();
14548 (arg1)->SetWeight(arg2);
14549 wxPyEndAllowThreads(__tstate);
14550 if (PyErr_Occurred()) SWIG_fail;
14551 }
14552 resultobj = SWIG_Py_Void();
14553 return resultobj;
14554 fail:
14555 return NULL;
14556 }
14557
14558
14559 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14560 PyObject *resultobj = 0;
14561 wxFont *arg1 = (wxFont *) 0 ;
14562 wxString *arg2 = 0 ;
14563 bool result;
14564 void *argp1 = 0 ;
14565 int res1 = 0 ;
14566 bool temp2 = false ;
14567 PyObject * obj0 = 0 ;
14568 PyObject * obj1 = 0 ;
14569 char * kwnames[] = {
14570 (char *) "self",(char *) "faceName", NULL
14571 };
14572
14573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14575 if (!SWIG_IsOK(res1)) {
14576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14577 }
14578 arg1 = reinterpret_cast< wxFont * >(argp1);
14579 {
14580 arg2 = wxString_in_helper(obj1);
14581 if (arg2 == NULL) SWIG_fail;
14582 temp2 = true;
14583 }
14584 {
14585 PyThreadState* __tstate = wxPyBeginAllowThreads();
14586 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
14587 wxPyEndAllowThreads(__tstate);
14588 if (PyErr_Occurred()) SWIG_fail;
14589 }
14590 {
14591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14592 }
14593 {
14594 if (temp2)
14595 delete arg2;
14596 }
14597 return resultobj;
14598 fail:
14599 {
14600 if (temp2)
14601 delete arg2;
14602 }
14603 return NULL;
14604 }
14605
14606
14607 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14608 PyObject *resultobj = 0;
14609 wxFont *arg1 = (wxFont *) 0 ;
14610 bool arg2 ;
14611 void *argp1 = 0 ;
14612 int res1 = 0 ;
14613 bool val2 ;
14614 int ecode2 = 0 ;
14615 PyObject * obj0 = 0 ;
14616 PyObject * obj1 = 0 ;
14617 char * kwnames[] = {
14618 (char *) "self",(char *) "underlined", NULL
14619 };
14620
14621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14623 if (!SWIG_IsOK(res1)) {
14624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14625 }
14626 arg1 = reinterpret_cast< wxFont * >(argp1);
14627 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14628 if (!SWIG_IsOK(ecode2)) {
14629 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14630 }
14631 arg2 = static_cast< bool >(val2);
14632 {
14633 PyThreadState* __tstate = wxPyBeginAllowThreads();
14634 (arg1)->SetUnderlined(arg2);
14635 wxPyEndAllowThreads(__tstate);
14636 if (PyErr_Occurred()) SWIG_fail;
14637 }
14638 resultobj = SWIG_Py_Void();
14639 return resultobj;
14640 fail:
14641 return NULL;
14642 }
14643
14644
14645 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14646 PyObject *resultobj = 0;
14647 wxFont *arg1 = (wxFont *) 0 ;
14648 wxFontEncoding arg2 ;
14649 void *argp1 = 0 ;
14650 int res1 = 0 ;
14651 int val2 ;
14652 int ecode2 = 0 ;
14653 PyObject * obj0 = 0 ;
14654 PyObject * obj1 = 0 ;
14655 char * kwnames[] = {
14656 (char *) "self",(char *) "encoding", NULL
14657 };
14658
14659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14661 if (!SWIG_IsOK(res1)) {
14662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
14663 }
14664 arg1 = reinterpret_cast< wxFont * >(argp1);
14665 ecode2 = SWIG_AsVal_int(obj1, &val2);
14666 if (!SWIG_IsOK(ecode2)) {
14667 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14668 }
14669 arg2 = static_cast< wxFontEncoding >(val2);
14670 {
14671 PyThreadState* __tstate = wxPyBeginAllowThreads();
14672 (arg1)->SetEncoding(arg2);
14673 wxPyEndAllowThreads(__tstate);
14674 if (PyErr_Occurred()) SWIG_fail;
14675 }
14676 resultobj = SWIG_Py_Void();
14677 return resultobj;
14678 fail:
14679 return NULL;
14680 }
14681
14682
14683 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14684 PyObject *resultobj = 0;
14685 wxFont *arg1 = (wxFont *) 0 ;
14686 wxNativeFontInfo *arg2 = 0 ;
14687 void *argp1 = 0 ;
14688 int res1 = 0 ;
14689 void *argp2 = 0 ;
14690 int res2 = 0 ;
14691 PyObject * obj0 = 0 ;
14692 PyObject * obj1 = 0 ;
14693 char * kwnames[] = {
14694 (char *) "self",(char *) "info", NULL
14695 };
14696
14697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
14698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14699 if (!SWIG_IsOK(res1)) {
14700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
14701 }
14702 arg1 = reinterpret_cast< wxFont * >(argp1);
14703 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14704 if (!SWIG_IsOK(res2)) {
14705 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14706 }
14707 if (!argp2) {
14708 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14709 }
14710 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
14711 {
14712 PyThreadState* __tstate = wxPyBeginAllowThreads();
14713 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
14714 wxPyEndAllowThreads(__tstate);
14715 if (PyErr_Occurred()) SWIG_fail;
14716 }
14717 resultobj = SWIG_Py_Void();
14718 return resultobj;
14719 fail:
14720 return NULL;
14721 }
14722
14723
14724 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14725 PyObject *resultobj = 0;
14726 wxFont *arg1 = (wxFont *) 0 ;
14727 wxString *arg2 = 0 ;
14728 bool result;
14729 void *argp1 = 0 ;
14730 int res1 = 0 ;
14731 bool temp2 = false ;
14732 PyObject * obj0 = 0 ;
14733 PyObject * obj1 = 0 ;
14734 char * kwnames[] = {
14735 (char *) "self",(char *) "info", NULL
14736 };
14737
14738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",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_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
14742 }
14743 arg1 = reinterpret_cast< wxFont * >(argp1);
14744 {
14745 arg2 = wxString_in_helper(obj1);
14746 if (arg2 == NULL) SWIG_fail;
14747 temp2 = true;
14748 }
14749 {
14750 PyThreadState* __tstate = wxPyBeginAllowThreads();
14751 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
14752 wxPyEndAllowThreads(__tstate);
14753 if (PyErr_Occurred()) SWIG_fail;
14754 }
14755 {
14756 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14757 }
14758 {
14759 if (temp2)
14760 delete arg2;
14761 }
14762 return resultobj;
14763 fail:
14764 {
14765 if (temp2)
14766 delete arg2;
14767 }
14768 return NULL;
14769 }
14770
14771
14772 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14773 PyObject *resultobj = 0;
14774 wxFont *arg1 = (wxFont *) 0 ;
14775 wxString *arg2 = 0 ;
14776 bool result;
14777 void *argp1 = 0 ;
14778 int res1 = 0 ;
14779 bool temp2 = false ;
14780 PyObject * obj0 = 0 ;
14781 PyObject * obj1 = 0 ;
14782 char * kwnames[] = {
14783 (char *) "self",(char *) "info", NULL
14784 };
14785
14786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
14787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14788 if (!SWIG_IsOK(res1)) {
14789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
14790 }
14791 arg1 = reinterpret_cast< wxFont * >(argp1);
14792 {
14793 arg2 = wxString_in_helper(obj1);
14794 if (arg2 == NULL) SWIG_fail;
14795 temp2 = true;
14796 }
14797 {
14798 PyThreadState* __tstate = wxPyBeginAllowThreads();
14799 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
14800 wxPyEndAllowThreads(__tstate);
14801 if (PyErr_Occurred()) SWIG_fail;
14802 }
14803 {
14804 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14805 }
14806 {
14807 if (temp2)
14808 delete arg2;
14809 }
14810 return resultobj;
14811 fail:
14812 {
14813 if (temp2)
14814 delete arg2;
14815 }
14816 return NULL;
14817 }
14818
14819
14820 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14821 PyObject *resultobj = 0;
14822 wxFont *arg1 = (wxFont *) 0 ;
14823 wxString result;
14824 void *argp1 = 0 ;
14825 int res1 = 0 ;
14826 PyObject *swig_obj[1] ;
14827
14828 if (!args) SWIG_fail;
14829 swig_obj[0] = args;
14830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14831 if (!SWIG_IsOK(res1)) {
14832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
14833 }
14834 arg1 = reinterpret_cast< wxFont * >(argp1);
14835 {
14836 PyThreadState* __tstate = wxPyBeginAllowThreads();
14837 result = ((wxFont const *)arg1)->GetFamilyString();
14838 wxPyEndAllowThreads(__tstate);
14839 if (PyErr_Occurred()) SWIG_fail;
14840 }
14841 {
14842 #if wxUSE_UNICODE
14843 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14844 #else
14845 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14846 #endif
14847 }
14848 return resultobj;
14849 fail:
14850 return NULL;
14851 }
14852
14853
14854 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14855 PyObject *resultobj = 0;
14856 wxFont *arg1 = (wxFont *) 0 ;
14857 wxString result;
14858 void *argp1 = 0 ;
14859 int res1 = 0 ;
14860 PyObject *swig_obj[1] ;
14861
14862 if (!args) SWIG_fail;
14863 swig_obj[0] = args;
14864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14865 if (!SWIG_IsOK(res1)) {
14866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
14867 }
14868 arg1 = reinterpret_cast< wxFont * >(argp1);
14869 {
14870 PyThreadState* __tstate = wxPyBeginAllowThreads();
14871 result = ((wxFont const *)arg1)->GetStyleString();
14872 wxPyEndAllowThreads(__tstate);
14873 if (PyErr_Occurred()) SWIG_fail;
14874 }
14875 {
14876 #if wxUSE_UNICODE
14877 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14878 #else
14879 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14880 #endif
14881 }
14882 return resultobj;
14883 fail:
14884 return NULL;
14885 }
14886
14887
14888 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14889 PyObject *resultobj = 0;
14890 wxFont *arg1 = (wxFont *) 0 ;
14891 wxString result;
14892 void *argp1 = 0 ;
14893 int res1 = 0 ;
14894 PyObject *swig_obj[1] ;
14895
14896 if (!args) SWIG_fail;
14897 swig_obj[0] = args;
14898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14899 if (!SWIG_IsOK(res1)) {
14900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
14901 }
14902 arg1 = reinterpret_cast< wxFont * >(argp1);
14903 {
14904 PyThreadState* __tstate = wxPyBeginAllowThreads();
14905 result = ((wxFont const *)arg1)->GetWeightString();
14906 wxPyEndAllowThreads(__tstate);
14907 if (PyErr_Occurred()) SWIG_fail;
14908 }
14909 {
14910 #if wxUSE_UNICODE
14911 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14912 #else
14913 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14914 #endif
14915 }
14916 return resultobj;
14917 fail:
14918 return NULL;
14919 }
14920
14921
14922 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14923 PyObject *resultobj = 0;
14924 wxFont *arg1 = (wxFont *) 0 ;
14925 bool arg2 = (bool) true ;
14926 void *argp1 = 0 ;
14927 int res1 = 0 ;
14928 bool val2 ;
14929 int ecode2 = 0 ;
14930 PyObject * obj0 = 0 ;
14931 PyObject * obj1 = 0 ;
14932 char * kwnames[] = {
14933 (char *) "self",(char *) "no", NULL
14934 };
14935
14936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
14937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14938 if (!SWIG_IsOK(res1)) {
14939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
14940 }
14941 arg1 = reinterpret_cast< wxFont * >(argp1);
14942 if (obj1) {
14943 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14944 if (!SWIG_IsOK(ecode2)) {
14945 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
14946 }
14947 arg2 = static_cast< bool >(val2);
14948 }
14949 {
14950 PyThreadState* __tstate = wxPyBeginAllowThreads();
14951 (arg1)->SetNoAntiAliasing(arg2);
14952 wxPyEndAllowThreads(__tstate);
14953 if (PyErr_Occurred()) SWIG_fail;
14954 }
14955 resultobj = SWIG_Py_Void();
14956 return resultobj;
14957 fail:
14958 return NULL;
14959 }
14960
14961
14962 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14963 PyObject *resultobj = 0;
14964 wxFont *arg1 = (wxFont *) 0 ;
14965 bool result;
14966 void *argp1 = 0 ;
14967 int res1 = 0 ;
14968 PyObject *swig_obj[1] ;
14969
14970 if (!args) SWIG_fail;
14971 swig_obj[0] = args;
14972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14973 if (!SWIG_IsOK(res1)) {
14974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
14975 }
14976 arg1 = reinterpret_cast< wxFont * >(argp1);
14977 {
14978 PyThreadState* __tstate = wxPyBeginAllowThreads();
14979 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
14980 wxPyEndAllowThreads(__tstate);
14981 if (PyErr_Occurred()) SWIG_fail;
14982 }
14983 {
14984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14985 }
14986 return resultobj;
14987 fail:
14988 return NULL;
14989 }
14990
14991
14992 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14993 PyObject *resultobj = 0;
14994 wxFontEncoding result;
14995
14996 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
14997 {
14998 if (!wxPyCheckForApp()) SWIG_fail;
14999 PyThreadState* __tstate = wxPyBeginAllowThreads();
15000 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15001 wxPyEndAllowThreads(__tstate);
15002 if (PyErr_Occurred()) SWIG_fail;
15003 }
15004 resultobj = SWIG_From_int(static_cast< int >(result));
15005 return resultobj;
15006 fail:
15007 return NULL;
15008 }
15009
15010
15011 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15012 PyObject *resultobj = 0;
15013 wxFontEncoding arg1 ;
15014 int val1 ;
15015 int ecode1 = 0 ;
15016 PyObject * obj0 = 0 ;
15017 char * kwnames[] = {
15018 (char *) "encoding", NULL
15019 };
15020
15021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15022 ecode1 = SWIG_AsVal_int(obj0, &val1);
15023 if (!SWIG_IsOK(ecode1)) {
15024 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15025 }
15026 arg1 = static_cast< wxFontEncoding >(val1);
15027 {
15028 if (!wxPyCheckForApp()) SWIG_fail;
15029 PyThreadState* __tstate = wxPyBeginAllowThreads();
15030 wxFont::SetDefaultEncoding(arg1);
15031 wxPyEndAllowThreads(__tstate);
15032 if (PyErr_Occurred()) SWIG_fail;
15033 }
15034 resultobj = SWIG_Py_Void();
15035 return resultobj;
15036 fail:
15037 return NULL;
15038 }
15039
15040
15041 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15042 PyObject *obj;
15043 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15044 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15045 return SWIG_Py_Void();
15046 }
15047
15048 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15049 return SWIG_Python_InitShadowInstance(args);
15050 }
15051
15052 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15053 PyObject *resultobj = 0;
15054 wxPyFontEnumerator *result = 0 ;
15055
15056 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15057 {
15058 if (!wxPyCheckForApp()) SWIG_fail;
15059 PyThreadState* __tstate = wxPyBeginAllowThreads();
15060 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15061 wxPyEndAllowThreads(__tstate);
15062 if (PyErr_Occurred()) SWIG_fail;
15063 }
15064 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15065 return resultobj;
15066 fail:
15067 return NULL;
15068 }
15069
15070
15071 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15072 PyObject *resultobj = 0;
15073 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15074 void *argp1 = 0 ;
15075 int res1 = 0 ;
15076 PyObject *swig_obj[1] ;
15077
15078 if (!args) SWIG_fail;
15079 swig_obj[0] = args;
15080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15081 if (!SWIG_IsOK(res1)) {
15082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15083 }
15084 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15085 {
15086 PyThreadState* __tstate = wxPyBeginAllowThreads();
15087 delete arg1;
15088
15089 wxPyEndAllowThreads(__tstate);
15090 if (PyErr_Occurred()) SWIG_fail;
15091 }
15092 resultobj = SWIG_Py_Void();
15093 return resultobj;
15094 fail:
15095 return NULL;
15096 }
15097
15098
15099 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15100 PyObject *resultobj = 0;
15101 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15102 PyObject *arg2 = (PyObject *) 0 ;
15103 PyObject *arg3 = (PyObject *) 0 ;
15104 bool arg4 ;
15105 void *argp1 = 0 ;
15106 int res1 = 0 ;
15107 bool val4 ;
15108 int ecode4 = 0 ;
15109 PyObject * obj0 = 0 ;
15110 PyObject * obj1 = 0 ;
15111 PyObject * obj2 = 0 ;
15112 PyObject * obj3 = 0 ;
15113 char * kwnames[] = {
15114 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15115 };
15116
15117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15119 if (!SWIG_IsOK(res1)) {
15120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15121 }
15122 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15123 arg2 = obj1;
15124 arg3 = obj2;
15125 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15126 if (!SWIG_IsOK(ecode4)) {
15127 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15128 }
15129 arg4 = static_cast< bool >(val4);
15130 {
15131 PyThreadState* __tstate = wxPyBeginAllowThreads();
15132 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15133 wxPyEndAllowThreads(__tstate);
15134 if (PyErr_Occurred()) SWIG_fail;
15135 }
15136 resultobj = SWIG_Py_Void();
15137 return resultobj;
15138 fail:
15139 return NULL;
15140 }
15141
15142
15143 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15144 PyObject *resultobj = 0;
15145 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15146 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15147 bool arg3 = (bool) false ;
15148 bool result;
15149 void *argp1 = 0 ;
15150 int res1 = 0 ;
15151 int val2 ;
15152 int ecode2 = 0 ;
15153 bool val3 ;
15154 int ecode3 = 0 ;
15155 PyObject * obj0 = 0 ;
15156 PyObject * obj1 = 0 ;
15157 PyObject * obj2 = 0 ;
15158 char * kwnames[] = {
15159 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15160 };
15161
15162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15164 if (!SWIG_IsOK(res1)) {
15165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15166 }
15167 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15168 if (obj1) {
15169 ecode2 = SWIG_AsVal_int(obj1, &val2);
15170 if (!SWIG_IsOK(ecode2)) {
15171 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15172 }
15173 arg2 = static_cast< wxFontEncoding >(val2);
15174 }
15175 if (obj2) {
15176 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15177 if (!SWIG_IsOK(ecode3)) {
15178 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15179 }
15180 arg3 = static_cast< bool >(val3);
15181 }
15182 {
15183 PyThreadState* __tstate = wxPyBeginAllowThreads();
15184 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15185 wxPyEndAllowThreads(__tstate);
15186 if (PyErr_Occurred()) SWIG_fail;
15187 }
15188 {
15189 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15190 }
15191 return resultobj;
15192 fail:
15193 return NULL;
15194 }
15195
15196
15197 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15198 PyObject *resultobj = 0;
15199 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15200 wxString const &arg2_defvalue = wxPyEmptyString ;
15201 wxString *arg2 = (wxString *) &arg2_defvalue ;
15202 bool result;
15203 void *argp1 = 0 ;
15204 int res1 = 0 ;
15205 bool temp2 = false ;
15206 PyObject * obj0 = 0 ;
15207 PyObject * obj1 = 0 ;
15208 char * kwnames[] = {
15209 (char *) "self",(char *) "facename", NULL
15210 };
15211
15212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15214 if (!SWIG_IsOK(res1)) {
15215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15216 }
15217 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15218 if (obj1) {
15219 {
15220 arg2 = wxString_in_helper(obj1);
15221 if (arg2 == NULL) SWIG_fail;
15222 temp2 = true;
15223 }
15224 }
15225 {
15226 PyThreadState* __tstate = wxPyBeginAllowThreads();
15227 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15228 wxPyEndAllowThreads(__tstate);
15229 if (PyErr_Occurred()) SWIG_fail;
15230 }
15231 {
15232 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15233 }
15234 {
15235 if (temp2)
15236 delete arg2;
15237 }
15238 return resultobj;
15239 fail:
15240 {
15241 if (temp2)
15242 delete arg2;
15243 }
15244 return NULL;
15245 }
15246
15247
15248 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15249 PyObject *resultobj = 0;
15250 PyObject *result = 0 ;
15251
15252 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
15253 {
15254 PyThreadState* __tstate = wxPyBeginAllowThreads();
15255 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
15256 wxPyEndAllowThreads(__tstate);
15257 if (PyErr_Occurred()) SWIG_fail;
15258 }
15259 resultobj = result;
15260 return resultobj;
15261 fail:
15262 return NULL;
15263 }
15264
15265
15266 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15267 PyObject *resultobj = 0;
15268 PyObject *result = 0 ;
15269
15270 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
15271 {
15272 PyThreadState* __tstate = wxPyBeginAllowThreads();
15273 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
15274 wxPyEndAllowThreads(__tstate);
15275 if (PyErr_Occurred()) SWIG_fail;
15276 }
15277 resultobj = result;
15278 return resultobj;
15279 fail:
15280 return NULL;
15281 }
15282
15283
15284 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15285 PyObject *resultobj = 0;
15286 wxString *arg1 = 0 ;
15287 bool result;
15288 bool temp1 = false ;
15289 PyObject * obj0 = 0 ;
15290 char * kwnames[] = {
15291 (char *) "str", NULL
15292 };
15293
15294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15295 {
15296 arg1 = wxString_in_helper(obj0);
15297 if (arg1 == NULL) SWIG_fail;
15298 temp1 = true;
15299 }
15300 {
15301 PyThreadState* __tstate = wxPyBeginAllowThreads();
15302 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15303 wxPyEndAllowThreads(__tstate);
15304 if (PyErr_Occurred()) SWIG_fail;
15305 }
15306 {
15307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15308 }
15309 {
15310 if (temp1)
15311 delete arg1;
15312 }
15313 return resultobj;
15314 fail:
15315 {
15316 if (temp1)
15317 delete arg1;
15318 }
15319 return NULL;
15320 }
15321
15322
15323 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15324 PyObject *obj;
15325 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15326 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15327 return SWIG_Py_Void();
15328 }
15329
15330 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15331 return SWIG_Python_InitShadowInstance(args);
15332 }
15333
15334 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15335 PyObject *resultobj = 0;
15336 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15337 int arg2 ;
15338 void *argp1 = 0 ;
15339 int res1 = 0 ;
15340 int val2 ;
15341 int ecode2 = 0 ;
15342 PyObject *swig_obj[2] ;
15343
15344 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15346 if (!SWIG_IsOK(res1)) {
15347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15348 }
15349 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15350 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15351 if (!SWIG_IsOK(ecode2)) {
15352 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15353 }
15354 arg2 = static_cast< int >(val2);
15355 if (arg1) (arg1)->Language = arg2;
15356
15357 resultobj = SWIG_Py_Void();
15358 return resultobj;
15359 fail:
15360 return NULL;
15361 }
15362
15363
15364 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15365 PyObject *resultobj = 0;
15366 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15367 int result;
15368 void *argp1 = 0 ;
15369 int res1 = 0 ;
15370 PyObject *swig_obj[1] ;
15371
15372 if (!args) SWIG_fail;
15373 swig_obj[0] = args;
15374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15375 if (!SWIG_IsOK(res1)) {
15376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15377 }
15378 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15379 result = (int) ((arg1)->Language);
15380 resultobj = SWIG_From_int(static_cast< int >(result));
15381 return resultobj;
15382 fail:
15383 return NULL;
15384 }
15385
15386
15387 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15388 PyObject *resultobj = 0;
15389 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15390 wxString *arg2 = (wxString *) 0 ;
15391 void *argp1 = 0 ;
15392 int res1 = 0 ;
15393 bool temp2 = false ;
15394 PyObject *swig_obj[2] ;
15395
15396 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15397 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15398 if (!SWIG_IsOK(res1)) {
15399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15400 }
15401 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15402 {
15403 arg2 = wxString_in_helper(swig_obj[1]);
15404 if (arg2 == NULL) SWIG_fail;
15405 temp2 = true;
15406 }
15407 if (arg1) (arg1)->CanonicalName = *arg2;
15408
15409 resultobj = SWIG_Py_Void();
15410 {
15411 if (temp2)
15412 delete arg2;
15413 }
15414 return resultobj;
15415 fail:
15416 {
15417 if (temp2)
15418 delete arg2;
15419 }
15420 return NULL;
15421 }
15422
15423
15424 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15425 PyObject *resultobj = 0;
15426 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15427 wxString *result = 0 ;
15428 void *argp1 = 0 ;
15429 int res1 = 0 ;
15430 PyObject *swig_obj[1] ;
15431
15432 if (!args) SWIG_fail;
15433 swig_obj[0] = args;
15434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15435 if (!SWIG_IsOK(res1)) {
15436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15437 }
15438 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15439 result = (wxString *)& ((arg1)->CanonicalName);
15440 {
15441 #if wxUSE_UNICODE
15442 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15443 #else
15444 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15445 #endif
15446 }
15447 return resultobj;
15448 fail:
15449 return NULL;
15450 }
15451
15452
15453 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15454 PyObject *resultobj = 0;
15455 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15456 wxString *arg2 = (wxString *) 0 ;
15457 void *argp1 = 0 ;
15458 int res1 = 0 ;
15459 bool temp2 = false ;
15460 PyObject *swig_obj[2] ;
15461
15462 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15464 if (!SWIG_IsOK(res1)) {
15465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15466 }
15467 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15468 {
15469 arg2 = wxString_in_helper(swig_obj[1]);
15470 if (arg2 == NULL) SWIG_fail;
15471 temp2 = true;
15472 }
15473 if (arg1) (arg1)->Description = *arg2;
15474
15475 resultobj = SWIG_Py_Void();
15476 {
15477 if (temp2)
15478 delete arg2;
15479 }
15480 return resultobj;
15481 fail:
15482 {
15483 if (temp2)
15484 delete arg2;
15485 }
15486 return NULL;
15487 }
15488
15489
15490 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15491 PyObject *resultobj = 0;
15492 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15493 wxString *result = 0 ;
15494 void *argp1 = 0 ;
15495 int res1 = 0 ;
15496 PyObject *swig_obj[1] ;
15497
15498 if (!args) SWIG_fail;
15499 swig_obj[0] = args;
15500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15501 if (!SWIG_IsOK(res1)) {
15502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15503 }
15504 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15505 result = (wxString *)& ((arg1)->Description);
15506 {
15507 #if wxUSE_UNICODE
15508 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15509 #else
15510 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15511 #endif
15512 }
15513 return resultobj;
15514 fail:
15515 return NULL;
15516 }
15517
15518
15519 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15520 PyObject *obj;
15521 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15522 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15523 return SWIG_Py_Void();
15524 }
15525
15526 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15527 PyObject *resultobj = 0;
15528 int arg1 = (int) -1 ;
15529 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15530 wxLocale *result = 0 ;
15531 int val1 ;
15532 int ecode1 = 0 ;
15533 int val2 ;
15534 int ecode2 = 0 ;
15535 PyObject * obj0 = 0 ;
15536 PyObject * obj1 = 0 ;
15537 char * kwnames[] = {
15538 (char *) "language",(char *) "flags", NULL
15539 };
15540
15541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15542 if (obj0) {
15543 ecode1 = SWIG_AsVal_int(obj0, &val1);
15544 if (!SWIG_IsOK(ecode1)) {
15545 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15546 }
15547 arg1 = static_cast< int >(val1);
15548 }
15549 if (obj1) {
15550 ecode2 = SWIG_AsVal_int(obj1, &val2);
15551 if (!SWIG_IsOK(ecode2)) {
15552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15553 }
15554 arg2 = static_cast< int >(val2);
15555 }
15556 {
15557 PyThreadState* __tstate = wxPyBeginAllowThreads();
15558 result = (wxLocale *)new_wxLocale(arg1,arg2);
15559 wxPyEndAllowThreads(__tstate);
15560 if (PyErr_Occurred()) SWIG_fail;
15561 }
15562 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15563 return resultobj;
15564 fail:
15565 return NULL;
15566 }
15567
15568
15569 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15570 PyObject *resultobj = 0;
15571 wxLocale *arg1 = (wxLocale *) 0 ;
15572 void *argp1 = 0 ;
15573 int res1 = 0 ;
15574 PyObject *swig_obj[1] ;
15575
15576 if (!args) SWIG_fail;
15577 swig_obj[0] = args;
15578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15579 if (!SWIG_IsOK(res1)) {
15580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15581 }
15582 arg1 = reinterpret_cast< wxLocale * >(argp1);
15583 {
15584 PyThreadState* __tstate = wxPyBeginAllowThreads();
15585 delete arg1;
15586
15587 wxPyEndAllowThreads(__tstate);
15588 if (PyErr_Occurred()) SWIG_fail;
15589 }
15590 resultobj = SWIG_Py_Void();
15591 return resultobj;
15592 fail:
15593 return NULL;
15594 }
15595
15596
15597 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15598 PyObject *resultobj = 0;
15599 wxLocale *arg1 = (wxLocale *) 0 ;
15600 wxString *arg2 = 0 ;
15601 wxString const &arg3_defvalue = wxPyEmptyString ;
15602 wxString *arg3 = (wxString *) &arg3_defvalue ;
15603 wxString const &arg4_defvalue = wxPyEmptyString ;
15604 wxString *arg4 = (wxString *) &arg4_defvalue ;
15605 bool arg5 = (bool) true ;
15606 bool arg6 = (bool) false ;
15607 bool result;
15608 void *argp1 = 0 ;
15609 int res1 = 0 ;
15610 bool temp2 = false ;
15611 bool temp3 = false ;
15612 bool temp4 = false ;
15613 bool val5 ;
15614 int ecode5 = 0 ;
15615 bool val6 ;
15616 int ecode6 = 0 ;
15617 PyObject * obj0 = 0 ;
15618 PyObject * obj1 = 0 ;
15619 PyObject * obj2 = 0 ;
15620 PyObject * obj3 = 0 ;
15621 PyObject * obj4 = 0 ;
15622 PyObject * obj5 = 0 ;
15623 char * kwnames[] = {
15624 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15625 };
15626
15627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15629 if (!SWIG_IsOK(res1)) {
15630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15631 }
15632 arg1 = reinterpret_cast< wxLocale * >(argp1);
15633 {
15634 arg2 = wxString_in_helper(obj1);
15635 if (arg2 == NULL) SWIG_fail;
15636 temp2 = true;
15637 }
15638 if (obj2) {
15639 {
15640 arg3 = wxString_in_helper(obj2);
15641 if (arg3 == NULL) SWIG_fail;
15642 temp3 = true;
15643 }
15644 }
15645 if (obj3) {
15646 {
15647 arg4 = wxString_in_helper(obj3);
15648 if (arg4 == NULL) SWIG_fail;
15649 temp4 = true;
15650 }
15651 }
15652 if (obj4) {
15653 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15654 if (!SWIG_IsOK(ecode5)) {
15655 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15656 }
15657 arg5 = static_cast< bool >(val5);
15658 }
15659 if (obj5) {
15660 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15661 if (!SWIG_IsOK(ecode6)) {
15662 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
15663 }
15664 arg6 = static_cast< bool >(val6);
15665 }
15666 {
15667 PyThreadState* __tstate = wxPyBeginAllowThreads();
15668 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
15669 wxPyEndAllowThreads(__tstate);
15670 if (PyErr_Occurred()) SWIG_fail;
15671 }
15672 {
15673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15674 }
15675 {
15676 if (temp2)
15677 delete arg2;
15678 }
15679 {
15680 if (temp3)
15681 delete arg3;
15682 }
15683 {
15684 if (temp4)
15685 delete arg4;
15686 }
15687 return resultobj;
15688 fail:
15689 {
15690 if (temp2)
15691 delete arg2;
15692 }
15693 {
15694 if (temp3)
15695 delete arg3;
15696 }
15697 {
15698 if (temp4)
15699 delete arg4;
15700 }
15701 return NULL;
15702 }
15703
15704
15705 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15706 PyObject *resultobj = 0;
15707 wxLocale *arg1 = (wxLocale *) 0 ;
15708 int arg2 = (int) wxLANGUAGE_DEFAULT ;
15709 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15710 bool result;
15711 void *argp1 = 0 ;
15712 int res1 = 0 ;
15713 int val2 ;
15714 int ecode2 = 0 ;
15715 int val3 ;
15716 int ecode3 = 0 ;
15717 PyObject * obj0 = 0 ;
15718 PyObject * obj1 = 0 ;
15719 PyObject * obj2 = 0 ;
15720 char * kwnames[] = {
15721 (char *) "self",(char *) "language",(char *) "flags", NULL
15722 };
15723
15724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15726 if (!SWIG_IsOK(res1)) {
15727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
15728 }
15729 arg1 = reinterpret_cast< wxLocale * >(argp1);
15730 if (obj1) {
15731 ecode2 = SWIG_AsVal_int(obj1, &val2);
15732 if (!SWIG_IsOK(ecode2)) {
15733 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
15734 }
15735 arg2 = static_cast< int >(val2);
15736 }
15737 if (obj2) {
15738 ecode3 = SWIG_AsVal_int(obj2, &val3);
15739 if (!SWIG_IsOK(ecode3)) {
15740 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
15741 }
15742 arg3 = static_cast< int >(val3);
15743 }
15744 {
15745 PyThreadState* __tstate = wxPyBeginAllowThreads();
15746 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
15747 wxPyEndAllowThreads(__tstate);
15748 if (PyErr_Occurred()) SWIG_fail;
15749 }
15750 {
15751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15752 }
15753 return resultobj;
15754 fail:
15755 return NULL;
15756 }
15757
15758
15759 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15760 PyObject *resultobj = 0;
15761 int result;
15762
15763 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
15764 {
15765 PyThreadState* __tstate = wxPyBeginAllowThreads();
15766 result = (int)wxLocale::GetSystemLanguage();
15767 wxPyEndAllowThreads(__tstate);
15768 if (PyErr_Occurred()) SWIG_fail;
15769 }
15770 resultobj = SWIG_From_int(static_cast< int >(result));
15771 return resultobj;
15772 fail:
15773 return NULL;
15774 }
15775
15776
15777 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15778 PyObject *resultobj = 0;
15779 wxFontEncoding result;
15780
15781 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
15782 {
15783 PyThreadState* __tstate = wxPyBeginAllowThreads();
15784 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
15785 wxPyEndAllowThreads(__tstate);
15786 if (PyErr_Occurred()) SWIG_fail;
15787 }
15788 resultobj = SWIG_From_int(static_cast< int >(result));
15789 return resultobj;
15790 fail:
15791 return NULL;
15792 }
15793
15794
15795 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15796 PyObject *resultobj = 0;
15797 wxString result;
15798
15799 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
15800 {
15801 PyThreadState* __tstate = wxPyBeginAllowThreads();
15802 result = wxLocale::GetSystemEncodingName();
15803 wxPyEndAllowThreads(__tstate);
15804 if (PyErr_Occurred()) SWIG_fail;
15805 }
15806 {
15807 #if wxUSE_UNICODE
15808 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15809 #else
15810 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15811 #endif
15812 }
15813 return resultobj;
15814 fail:
15815 return NULL;
15816 }
15817
15818
15819 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15820 PyObject *resultobj = 0;
15821 wxLocale *arg1 = (wxLocale *) 0 ;
15822 bool result;
15823 void *argp1 = 0 ;
15824 int res1 = 0 ;
15825 PyObject *swig_obj[1] ;
15826
15827 if (!args) SWIG_fail;
15828 swig_obj[0] = args;
15829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15830 if (!SWIG_IsOK(res1)) {
15831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
15832 }
15833 arg1 = reinterpret_cast< wxLocale * >(argp1);
15834 {
15835 PyThreadState* __tstate = wxPyBeginAllowThreads();
15836 result = (bool)((wxLocale const *)arg1)->IsOk();
15837 wxPyEndAllowThreads(__tstate);
15838 if (PyErr_Occurred()) SWIG_fail;
15839 }
15840 {
15841 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15842 }
15843 return resultobj;
15844 fail:
15845 return NULL;
15846 }
15847
15848
15849 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15850 PyObject *resultobj = 0;
15851 wxLocale *arg1 = (wxLocale *) 0 ;
15852 wxString result;
15853 void *argp1 = 0 ;
15854 int res1 = 0 ;
15855 PyObject *swig_obj[1] ;
15856
15857 if (!args) SWIG_fail;
15858 swig_obj[0] = args;
15859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15860 if (!SWIG_IsOK(res1)) {
15861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
15862 }
15863 arg1 = reinterpret_cast< wxLocale * >(argp1);
15864 {
15865 PyThreadState* __tstate = wxPyBeginAllowThreads();
15866 result = ((wxLocale const *)arg1)->GetLocale();
15867 wxPyEndAllowThreads(__tstate);
15868 if (PyErr_Occurred()) SWIG_fail;
15869 }
15870 {
15871 #if wxUSE_UNICODE
15872 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15873 #else
15874 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15875 #endif
15876 }
15877 return resultobj;
15878 fail:
15879 return NULL;
15880 }
15881
15882
15883 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15884 PyObject *resultobj = 0;
15885 wxLocale *arg1 = (wxLocale *) 0 ;
15886 int result;
15887 void *argp1 = 0 ;
15888 int res1 = 0 ;
15889 PyObject *swig_obj[1] ;
15890
15891 if (!args) SWIG_fail;
15892 swig_obj[0] = args;
15893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15894 if (!SWIG_IsOK(res1)) {
15895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
15896 }
15897 arg1 = reinterpret_cast< wxLocale * >(argp1);
15898 {
15899 PyThreadState* __tstate = wxPyBeginAllowThreads();
15900 result = (int)((wxLocale const *)arg1)->GetLanguage();
15901 wxPyEndAllowThreads(__tstate);
15902 if (PyErr_Occurred()) SWIG_fail;
15903 }
15904 resultobj = SWIG_From_int(static_cast< int >(result));
15905 return resultobj;
15906 fail:
15907 return NULL;
15908 }
15909
15910
15911 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15912 PyObject *resultobj = 0;
15913 wxLocale *arg1 = (wxLocale *) 0 ;
15914 wxString result;
15915 void *argp1 = 0 ;
15916 int res1 = 0 ;
15917 PyObject *swig_obj[1] ;
15918
15919 if (!args) SWIG_fail;
15920 swig_obj[0] = args;
15921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15922 if (!SWIG_IsOK(res1)) {
15923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15924 }
15925 arg1 = reinterpret_cast< wxLocale * >(argp1);
15926 {
15927 PyThreadState* __tstate = wxPyBeginAllowThreads();
15928 result = ((wxLocale const *)arg1)->GetSysName();
15929 wxPyEndAllowThreads(__tstate);
15930 if (PyErr_Occurred()) SWIG_fail;
15931 }
15932 {
15933 #if wxUSE_UNICODE
15934 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15935 #else
15936 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15937 #endif
15938 }
15939 return resultobj;
15940 fail:
15941 return NULL;
15942 }
15943
15944
15945 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15946 PyObject *resultobj = 0;
15947 wxLocale *arg1 = (wxLocale *) 0 ;
15948 wxString result;
15949 void *argp1 = 0 ;
15950 int res1 = 0 ;
15951 PyObject *swig_obj[1] ;
15952
15953 if (!args) SWIG_fail;
15954 swig_obj[0] = args;
15955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15956 if (!SWIG_IsOK(res1)) {
15957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15958 }
15959 arg1 = reinterpret_cast< wxLocale * >(argp1);
15960 {
15961 PyThreadState* __tstate = wxPyBeginAllowThreads();
15962 result = ((wxLocale const *)arg1)->GetCanonicalName();
15963 wxPyEndAllowThreads(__tstate);
15964 if (PyErr_Occurred()) SWIG_fail;
15965 }
15966 {
15967 #if wxUSE_UNICODE
15968 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15969 #else
15970 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15971 #endif
15972 }
15973 return resultobj;
15974 fail:
15975 return NULL;
15976 }
15977
15978
15979 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15980 PyObject *resultobj = 0;
15981 wxString *arg1 = 0 ;
15982 bool temp1 = false ;
15983 PyObject * obj0 = 0 ;
15984 char * kwnames[] = {
15985 (char *) "prefix", NULL
15986 };
15987
15988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
15989 {
15990 arg1 = wxString_in_helper(obj0);
15991 if (arg1 == NULL) SWIG_fail;
15992 temp1 = true;
15993 }
15994 {
15995 PyThreadState* __tstate = wxPyBeginAllowThreads();
15996 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
15997 wxPyEndAllowThreads(__tstate);
15998 if (PyErr_Occurred()) SWIG_fail;
15999 }
16000 resultobj = SWIG_Py_Void();
16001 {
16002 if (temp1)
16003 delete arg1;
16004 }
16005 return resultobj;
16006 fail:
16007 {
16008 if (temp1)
16009 delete arg1;
16010 }
16011 return NULL;
16012 }
16013
16014
16015 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16016 PyObject *resultobj = 0;
16017 wxLocale *arg1 = (wxLocale *) 0 ;
16018 wxString *arg2 = 0 ;
16019 bool result;
16020 void *argp1 = 0 ;
16021 int res1 = 0 ;
16022 bool temp2 = false ;
16023 PyObject * obj0 = 0 ;
16024 PyObject * obj1 = 0 ;
16025 char * kwnames[] = {
16026 (char *) "self",(char *) "szDomain", NULL
16027 };
16028
16029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16031 if (!SWIG_IsOK(res1)) {
16032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16033 }
16034 arg1 = reinterpret_cast< wxLocale * >(argp1);
16035 {
16036 arg2 = wxString_in_helper(obj1);
16037 if (arg2 == NULL) SWIG_fail;
16038 temp2 = true;
16039 }
16040 {
16041 PyThreadState* __tstate = wxPyBeginAllowThreads();
16042 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16043 wxPyEndAllowThreads(__tstate);
16044 if (PyErr_Occurred()) SWIG_fail;
16045 }
16046 {
16047 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16048 }
16049 {
16050 if (temp2)
16051 delete arg2;
16052 }
16053 return resultobj;
16054 fail:
16055 {
16056 if (temp2)
16057 delete arg2;
16058 }
16059 return NULL;
16060 }
16061
16062
16063 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16064 PyObject *resultobj = 0;
16065 int arg1 ;
16066 bool result;
16067 int val1 ;
16068 int ecode1 = 0 ;
16069 PyObject * obj0 = 0 ;
16070 char * kwnames[] = {
16071 (char *) "lang", NULL
16072 };
16073
16074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16075 ecode1 = SWIG_AsVal_int(obj0, &val1);
16076 if (!SWIG_IsOK(ecode1)) {
16077 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16078 }
16079 arg1 = static_cast< int >(val1);
16080 {
16081 PyThreadState* __tstate = wxPyBeginAllowThreads();
16082 result = (bool)wxLocale::IsAvailable(arg1);
16083 wxPyEndAllowThreads(__tstate);
16084 if (PyErr_Occurred()) SWIG_fail;
16085 }
16086 {
16087 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16088 }
16089 return resultobj;
16090 fail:
16091 return NULL;
16092 }
16093
16094
16095 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16096 PyObject *resultobj = 0;
16097 wxLocale *arg1 = (wxLocale *) 0 ;
16098 wxString *arg2 = 0 ;
16099 bool result;
16100 void *argp1 = 0 ;
16101 int res1 = 0 ;
16102 bool temp2 = false ;
16103 PyObject * obj0 = 0 ;
16104 PyObject * obj1 = 0 ;
16105 char * kwnames[] = {
16106 (char *) "self",(char *) "szDomain", NULL
16107 };
16108
16109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16111 if (!SWIG_IsOK(res1)) {
16112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16113 }
16114 arg1 = reinterpret_cast< wxLocale * >(argp1);
16115 {
16116 arg2 = wxString_in_helper(obj1);
16117 if (arg2 == NULL) SWIG_fail;
16118 temp2 = true;
16119 }
16120 {
16121 PyThreadState* __tstate = wxPyBeginAllowThreads();
16122 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16123 wxPyEndAllowThreads(__tstate);
16124 if (PyErr_Occurred()) SWIG_fail;
16125 }
16126 {
16127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16128 }
16129 {
16130 if (temp2)
16131 delete arg2;
16132 }
16133 return resultobj;
16134 fail:
16135 {
16136 if (temp2)
16137 delete arg2;
16138 }
16139 return NULL;
16140 }
16141
16142
16143 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16144 PyObject *resultobj = 0;
16145 int arg1 ;
16146 wxLanguageInfo *result = 0 ;
16147 int val1 ;
16148 int ecode1 = 0 ;
16149 PyObject * obj0 = 0 ;
16150 char * kwnames[] = {
16151 (char *) "lang", NULL
16152 };
16153
16154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16155 ecode1 = SWIG_AsVal_int(obj0, &val1);
16156 if (!SWIG_IsOK(ecode1)) {
16157 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16158 }
16159 arg1 = static_cast< int >(val1);
16160 {
16161 PyThreadState* __tstate = wxPyBeginAllowThreads();
16162 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16163 wxPyEndAllowThreads(__tstate);
16164 if (PyErr_Occurred()) SWIG_fail;
16165 }
16166 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16167 return resultobj;
16168 fail:
16169 return NULL;
16170 }
16171
16172
16173 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16174 PyObject *resultobj = 0;
16175 int arg1 ;
16176 wxString result;
16177 int val1 ;
16178 int ecode1 = 0 ;
16179 PyObject * obj0 = 0 ;
16180 char * kwnames[] = {
16181 (char *) "lang", NULL
16182 };
16183
16184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16185 ecode1 = SWIG_AsVal_int(obj0, &val1);
16186 if (!SWIG_IsOK(ecode1)) {
16187 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16188 }
16189 arg1 = static_cast< int >(val1);
16190 {
16191 PyThreadState* __tstate = wxPyBeginAllowThreads();
16192 result = wxLocale::GetLanguageName(arg1);
16193 wxPyEndAllowThreads(__tstate);
16194 if (PyErr_Occurred()) SWIG_fail;
16195 }
16196 {
16197 #if wxUSE_UNICODE
16198 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16199 #else
16200 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16201 #endif
16202 }
16203 return resultobj;
16204 fail:
16205 return NULL;
16206 }
16207
16208
16209 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16210 PyObject *resultobj = 0;
16211 wxString *arg1 = 0 ;
16212 wxLanguageInfo *result = 0 ;
16213 bool temp1 = false ;
16214 PyObject * obj0 = 0 ;
16215 char * kwnames[] = {
16216 (char *) "locale", NULL
16217 };
16218
16219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16220 {
16221 arg1 = wxString_in_helper(obj0);
16222 if (arg1 == NULL) SWIG_fail;
16223 temp1 = true;
16224 }
16225 {
16226 PyThreadState* __tstate = wxPyBeginAllowThreads();
16227 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16228 wxPyEndAllowThreads(__tstate);
16229 if (PyErr_Occurred()) SWIG_fail;
16230 }
16231 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16232 {
16233 if (temp1)
16234 delete arg1;
16235 }
16236 return resultobj;
16237 fail:
16238 {
16239 if (temp1)
16240 delete arg1;
16241 }
16242 return NULL;
16243 }
16244
16245
16246 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16247 PyObject *resultobj = 0;
16248 wxLanguageInfo *arg1 = 0 ;
16249 void *argp1 = 0 ;
16250 int res1 = 0 ;
16251 PyObject * obj0 = 0 ;
16252 char * kwnames[] = {
16253 (char *) "info", NULL
16254 };
16255
16256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16257 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16258 if (!SWIG_IsOK(res1)) {
16259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16260 }
16261 if (!argp1) {
16262 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16263 }
16264 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16265 {
16266 PyThreadState* __tstate = wxPyBeginAllowThreads();
16267 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16268 wxPyEndAllowThreads(__tstate);
16269 if (PyErr_Occurred()) SWIG_fail;
16270 }
16271 resultobj = SWIG_Py_Void();
16272 return resultobj;
16273 fail:
16274 return NULL;
16275 }
16276
16277
16278 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16279 PyObject *resultobj = 0;
16280 wxLocale *arg1 = (wxLocale *) 0 ;
16281 wxString *arg2 = 0 ;
16282 wxString const &arg3_defvalue = wxPyEmptyString ;
16283 wxString *arg3 = (wxString *) &arg3_defvalue ;
16284 wxString result;
16285 void *argp1 = 0 ;
16286 int res1 = 0 ;
16287 bool temp2 = false ;
16288 bool temp3 = false ;
16289 PyObject * obj0 = 0 ;
16290 PyObject * obj1 = 0 ;
16291 PyObject * obj2 = 0 ;
16292 char * kwnames[] = {
16293 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16294 };
16295
16296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16298 if (!SWIG_IsOK(res1)) {
16299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16300 }
16301 arg1 = reinterpret_cast< wxLocale * >(argp1);
16302 {
16303 arg2 = wxString_in_helper(obj1);
16304 if (arg2 == NULL) SWIG_fail;
16305 temp2 = true;
16306 }
16307 if (obj2) {
16308 {
16309 arg3 = wxString_in_helper(obj2);
16310 if (arg3 == NULL) SWIG_fail;
16311 temp3 = true;
16312 }
16313 }
16314 {
16315 PyThreadState* __tstate = wxPyBeginAllowThreads();
16316 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16317 wxPyEndAllowThreads(__tstate);
16318 if (PyErr_Occurred()) SWIG_fail;
16319 }
16320 {
16321 #if wxUSE_UNICODE
16322 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16323 #else
16324 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16325 #endif
16326 }
16327 {
16328 if (temp2)
16329 delete arg2;
16330 }
16331 {
16332 if (temp3)
16333 delete arg3;
16334 }
16335 return resultobj;
16336 fail:
16337 {
16338 if (temp2)
16339 delete arg2;
16340 }
16341 {
16342 if (temp3)
16343 delete arg3;
16344 }
16345 return NULL;
16346 }
16347
16348
16349 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16350 PyObject *resultobj = 0;
16351 wxLocale *arg1 = (wxLocale *) 0 ;
16352 wxString *result = 0 ;
16353 void *argp1 = 0 ;
16354 int res1 = 0 ;
16355 PyObject *swig_obj[1] ;
16356
16357 if (!args) SWIG_fail;
16358 swig_obj[0] = args;
16359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16360 if (!SWIG_IsOK(res1)) {
16361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16362 }
16363 arg1 = reinterpret_cast< wxLocale * >(argp1);
16364 {
16365 PyThreadState* __tstate = wxPyBeginAllowThreads();
16366 {
16367 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16368 result = (wxString *) &_result_ref;
16369 }
16370 wxPyEndAllowThreads(__tstate);
16371 if (PyErr_Occurred()) SWIG_fail;
16372 }
16373 {
16374 #if wxUSE_UNICODE
16375 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16376 #else
16377 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16378 #endif
16379 }
16380 return resultobj;
16381 fail:
16382 return NULL;
16383 }
16384
16385
16386 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16387 PyObject *obj;
16388 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16389 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16390 return SWIG_Py_Void();
16391 }
16392
16393 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16394 return SWIG_Python_InitShadowInstance(args);
16395 }
16396
16397 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16398 PyObject *resultobj = 0;
16399 int arg1 = (int) -1 ;
16400 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16401 wxPyLocale *result = 0 ;
16402 int val1 ;
16403 int ecode1 = 0 ;
16404 int val2 ;
16405 int ecode2 = 0 ;
16406 PyObject * obj0 = 0 ;
16407 PyObject * obj1 = 0 ;
16408 char * kwnames[] = {
16409 (char *) "language",(char *) "flags", NULL
16410 };
16411
16412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16413 if (obj0) {
16414 ecode1 = SWIG_AsVal_int(obj0, &val1);
16415 if (!SWIG_IsOK(ecode1)) {
16416 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16417 }
16418 arg1 = static_cast< int >(val1);
16419 }
16420 if (obj1) {
16421 ecode2 = SWIG_AsVal_int(obj1, &val2);
16422 if (!SWIG_IsOK(ecode2)) {
16423 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16424 }
16425 arg2 = static_cast< int >(val2);
16426 }
16427 {
16428 PyThreadState* __tstate = wxPyBeginAllowThreads();
16429 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16430 wxPyEndAllowThreads(__tstate);
16431 if (PyErr_Occurred()) SWIG_fail;
16432 }
16433 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16434 return resultobj;
16435 fail:
16436 return NULL;
16437 }
16438
16439
16440 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16441 PyObject *resultobj = 0;
16442 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16443 void *argp1 = 0 ;
16444 int res1 = 0 ;
16445 PyObject *swig_obj[1] ;
16446
16447 if (!args) SWIG_fail;
16448 swig_obj[0] = args;
16449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16450 if (!SWIG_IsOK(res1)) {
16451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16452 }
16453 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16454 {
16455 PyThreadState* __tstate = wxPyBeginAllowThreads();
16456 delete arg1;
16457
16458 wxPyEndAllowThreads(__tstate);
16459 if (PyErr_Occurred()) SWIG_fail;
16460 }
16461 resultobj = SWIG_Py_Void();
16462 return resultobj;
16463 fail:
16464 return NULL;
16465 }
16466
16467
16468 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16469 PyObject *resultobj = 0;
16470 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16471 PyObject *arg2 = (PyObject *) 0 ;
16472 PyObject *arg3 = (PyObject *) 0 ;
16473 void *argp1 = 0 ;
16474 int res1 = 0 ;
16475 PyObject * obj0 = 0 ;
16476 PyObject * obj1 = 0 ;
16477 PyObject * obj2 = 0 ;
16478 char * kwnames[] = {
16479 (char *) "self",(char *) "self",(char *) "_class", NULL
16480 };
16481
16482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16484 if (!SWIG_IsOK(res1)) {
16485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16486 }
16487 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16488 arg2 = obj1;
16489 arg3 = obj2;
16490 {
16491 PyThreadState* __tstate = wxPyBeginAllowThreads();
16492 (arg1)->_setCallbackInfo(arg2,arg3);
16493 wxPyEndAllowThreads(__tstate);
16494 if (PyErr_Occurred()) SWIG_fail;
16495 }
16496 resultobj = SWIG_Py_Void();
16497 return resultobj;
16498 fail:
16499 return NULL;
16500 }
16501
16502
16503 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16504 PyObject *resultobj = 0;
16505 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16506 wxChar *arg2 = (wxChar *) 0 ;
16507 wxChar *arg3 = (wxChar *) NULL ;
16508 wxChar *result = 0 ;
16509 void *argp1 = 0 ;
16510 int res1 = 0 ;
16511 void *argp2 = 0 ;
16512 int res2 = 0 ;
16513 void *argp3 = 0 ;
16514 int res3 = 0 ;
16515 PyObject * obj0 = 0 ;
16516 PyObject * obj1 = 0 ;
16517 PyObject * obj2 = 0 ;
16518 char * kwnames[] = {
16519 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16520 };
16521
16522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16524 if (!SWIG_IsOK(res1)) {
16525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16526 }
16527 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16528 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16529 if (!SWIG_IsOK(res2)) {
16530 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
16531 }
16532 arg2 = reinterpret_cast< wxChar * >(argp2);
16533 if (obj2) {
16534 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16535 if (!SWIG_IsOK(res3)) {
16536 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
16537 }
16538 arg3 = reinterpret_cast< wxChar * >(argp3);
16539 }
16540 {
16541 PyThreadState* __tstate = wxPyBeginAllowThreads();
16542 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
16543 wxPyEndAllowThreads(__tstate);
16544 if (PyErr_Occurred()) SWIG_fail;
16545 }
16546 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16547 return resultobj;
16548 fail:
16549 return NULL;
16550 }
16551
16552
16553 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16554 PyObject *resultobj = 0;
16555 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16556 wxChar *arg2 = (wxChar *) 0 ;
16557 wxChar *arg3 = (wxChar *) 0 ;
16558 size_t arg4 ;
16559 wxChar *arg5 = (wxChar *) NULL ;
16560 wxChar *result = 0 ;
16561 void *argp1 = 0 ;
16562 int res1 = 0 ;
16563 void *argp2 = 0 ;
16564 int res2 = 0 ;
16565 void *argp3 = 0 ;
16566 int res3 = 0 ;
16567 size_t val4 ;
16568 int ecode4 = 0 ;
16569 void *argp5 = 0 ;
16570 int res5 = 0 ;
16571 PyObject * obj0 = 0 ;
16572 PyObject * obj1 = 0 ;
16573 PyObject * obj2 = 0 ;
16574 PyObject * obj3 = 0 ;
16575 PyObject * obj4 = 0 ;
16576 char * kwnames[] = {
16577 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16578 };
16579
16580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16582 if (!SWIG_IsOK(res1)) {
16583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16584 }
16585 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16586 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16587 if (!SWIG_IsOK(res2)) {
16588 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16589 }
16590 arg2 = reinterpret_cast< wxChar * >(argp2);
16591 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16592 if (!SWIG_IsOK(res3)) {
16593 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16594 }
16595 arg3 = reinterpret_cast< wxChar * >(argp3);
16596 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16597 if (!SWIG_IsOK(ecode4)) {
16598 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16599 }
16600 arg4 = static_cast< size_t >(val4);
16601 if (obj4) {
16602 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16603 if (!SWIG_IsOK(res5)) {
16604 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16605 }
16606 arg5 = reinterpret_cast< wxChar * >(argp5);
16607 }
16608 {
16609 PyThreadState* __tstate = wxPyBeginAllowThreads();
16610 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
16611 wxPyEndAllowThreads(__tstate);
16612 if (PyErr_Occurred()) SWIG_fail;
16613 }
16614 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16615 return resultobj;
16616 fail:
16617 return NULL;
16618 }
16619
16620
16621 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16622 PyObject *obj;
16623 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16624 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
16625 return SWIG_Py_Void();
16626 }
16627
16628 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16629 return SWIG_Python_InitShadowInstance(args);
16630 }
16631
16632 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16633 PyObject *resultobj = 0;
16634 wxLocale *result = 0 ;
16635
16636 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16637 {
16638 PyThreadState* __tstate = wxPyBeginAllowThreads();
16639 result = (wxLocale *)wxGetLocale();
16640 wxPyEndAllowThreads(__tstate);
16641 if (PyErr_Occurred()) SWIG_fail;
16642 }
16643 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16644 return resultobj;
16645 fail:
16646 return NULL;
16647 }
16648
16649
16650 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16651 PyObject *resultobj = 0;
16652 wxString *arg1 = 0 ;
16653 wxString result;
16654 bool temp1 = false ;
16655
16656 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16657 {
16658 arg1 = wxString_in_helper(swig_obj[0]);
16659 if (arg1 == NULL) SWIG_fail;
16660 temp1 = true;
16661 }
16662 {
16663 PyThreadState* __tstate = wxPyBeginAllowThreads();
16664 result = wxGetTranslation((wxString const &)*arg1);
16665 wxPyEndAllowThreads(__tstate);
16666 if (PyErr_Occurred()) SWIG_fail;
16667 }
16668 {
16669 #if wxUSE_UNICODE
16670 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16671 #else
16672 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16673 #endif
16674 }
16675 {
16676 if (temp1)
16677 delete arg1;
16678 }
16679 return resultobj;
16680 fail:
16681 {
16682 if (temp1)
16683 delete arg1;
16684 }
16685 return NULL;
16686 }
16687
16688
16689 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16690 PyObject *resultobj = 0;
16691 wxString *arg1 = 0 ;
16692 wxString *arg2 = 0 ;
16693 wxString result;
16694 bool temp1 = false ;
16695 bool temp2 = false ;
16696
16697 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
16698 {
16699 arg1 = wxString_in_helper(swig_obj[0]);
16700 if (arg1 == NULL) SWIG_fail;
16701 temp1 = true;
16702 }
16703 {
16704 arg2 = wxString_in_helper(swig_obj[1]);
16705 if (arg2 == NULL) SWIG_fail;
16706 temp2 = true;
16707 }
16708 {
16709 PyThreadState* __tstate = wxPyBeginAllowThreads();
16710 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
16711 wxPyEndAllowThreads(__tstate);
16712 if (PyErr_Occurred()) SWIG_fail;
16713 }
16714 {
16715 #if wxUSE_UNICODE
16716 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16717 #else
16718 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16719 #endif
16720 }
16721 {
16722 if (temp1)
16723 delete arg1;
16724 }
16725 {
16726 if (temp2)
16727 delete arg2;
16728 }
16729 return resultobj;
16730 fail:
16731 {
16732 if (temp1)
16733 delete arg1;
16734 }
16735 {
16736 if (temp2)
16737 delete arg2;
16738 }
16739 return NULL;
16740 }
16741
16742
16743 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16744 PyObject *resultobj = 0;
16745 wxString *arg1 = 0 ;
16746 wxString *arg2 = 0 ;
16747 size_t arg3 ;
16748 wxString result;
16749 bool temp1 = false ;
16750 bool temp2 = false ;
16751 size_t val3 ;
16752 int ecode3 = 0 ;
16753
16754 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
16755 {
16756 arg1 = wxString_in_helper(swig_obj[0]);
16757 if (arg1 == NULL) SWIG_fail;
16758 temp1 = true;
16759 }
16760 {
16761 arg2 = wxString_in_helper(swig_obj[1]);
16762 if (arg2 == NULL) SWIG_fail;
16763 temp2 = true;
16764 }
16765 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16766 if (!SWIG_IsOK(ecode3)) {
16767 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16768 }
16769 arg3 = static_cast< size_t >(val3);
16770 {
16771 PyThreadState* __tstate = wxPyBeginAllowThreads();
16772 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
16773 wxPyEndAllowThreads(__tstate);
16774 if (PyErr_Occurred()) SWIG_fail;
16775 }
16776 {
16777 #if wxUSE_UNICODE
16778 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16779 #else
16780 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16781 #endif
16782 }
16783 {
16784 if (temp1)
16785 delete arg1;
16786 }
16787 {
16788 if (temp2)
16789 delete arg2;
16790 }
16791 return resultobj;
16792 fail:
16793 {
16794 if (temp1)
16795 delete arg1;
16796 }
16797 {
16798 if (temp2)
16799 delete arg2;
16800 }
16801 return NULL;
16802 }
16803
16804
16805 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16806 PyObject *resultobj = 0;
16807 wxString *arg1 = 0 ;
16808 wxString *arg2 = 0 ;
16809 size_t arg3 ;
16810 wxString *arg4 = 0 ;
16811 wxString result;
16812 bool temp1 = false ;
16813 bool temp2 = false ;
16814 size_t val3 ;
16815 int ecode3 = 0 ;
16816 bool temp4 = false ;
16817
16818 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
16819 {
16820 arg1 = wxString_in_helper(swig_obj[0]);
16821 if (arg1 == NULL) SWIG_fail;
16822 temp1 = true;
16823 }
16824 {
16825 arg2 = wxString_in_helper(swig_obj[1]);
16826 if (arg2 == NULL) SWIG_fail;
16827 temp2 = true;
16828 }
16829 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16830 if (!SWIG_IsOK(ecode3)) {
16831 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16832 }
16833 arg3 = static_cast< size_t >(val3);
16834 {
16835 arg4 = wxString_in_helper(swig_obj[3]);
16836 if (arg4 == NULL) SWIG_fail;
16837 temp4 = true;
16838 }
16839 {
16840 PyThreadState* __tstate = wxPyBeginAllowThreads();
16841 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
16842 wxPyEndAllowThreads(__tstate);
16843 if (PyErr_Occurred()) SWIG_fail;
16844 }
16845 {
16846 #if wxUSE_UNICODE
16847 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16848 #else
16849 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16850 #endif
16851 }
16852 {
16853 if (temp1)
16854 delete arg1;
16855 }
16856 {
16857 if (temp2)
16858 delete arg2;
16859 }
16860 {
16861 if (temp4)
16862 delete arg4;
16863 }
16864 return resultobj;
16865 fail:
16866 {
16867 if (temp1)
16868 delete arg1;
16869 }
16870 {
16871 if (temp2)
16872 delete arg2;
16873 }
16874 {
16875 if (temp4)
16876 delete arg4;
16877 }
16878 return NULL;
16879 }
16880
16881
16882 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
16883 int argc;
16884 PyObject *argv[5];
16885
16886 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
16887 --argc;
16888 if (argc == 1) {
16889 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
16890 }
16891 if (argc == 2) {
16892 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
16893 }
16894 if (argc == 3) {
16895 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
16896 }
16897 if (argc == 4) {
16898 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
16899 }
16900
16901 fail:
16902 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
16903 return NULL;
16904 }
16905
16906
16907 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16908 PyObject *resultobj = 0;
16909 wxEncodingConverter *result = 0 ;
16910
16911 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
16912 {
16913 PyThreadState* __tstate = wxPyBeginAllowThreads();
16914 result = (wxEncodingConverter *)new wxEncodingConverter();
16915 wxPyEndAllowThreads(__tstate);
16916 if (PyErr_Occurred()) SWIG_fail;
16917 }
16918 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
16919 return resultobj;
16920 fail:
16921 return NULL;
16922 }
16923
16924
16925 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16926 PyObject *resultobj = 0;
16927 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16928 void *argp1 = 0 ;
16929 int res1 = 0 ;
16930 PyObject *swig_obj[1] ;
16931
16932 if (!args) SWIG_fail;
16933 swig_obj[0] = args;
16934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
16935 if (!SWIG_IsOK(res1)) {
16936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16937 }
16938 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16939 {
16940 PyThreadState* __tstate = wxPyBeginAllowThreads();
16941 delete arg1;
16942
16943 wxPyEndAllowThreads(__tstate);
16944 if (PyErr_Occurred()) SWIG_fail;
16945 }
16946 resultobj = SWIG_Py_Void();
16947 return resultobj;
16948 fail:
16949 return NULL;
16950 }
16951
16952
16953 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16954 PyObject *resultobj = 0;
16955 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16956 wxFontEncoding arg2 ;
16957 wxFontEncoding arg3 ;
16958 int arg4 = (int) wxCONVERT_STRICT ;
16959 bool result;
16960 void *argp1 = 0 ;
16961 int res1 = 0 ;
16962 int val2 ;
16963 int ecode2 = 0 ;
16964 int val3 ;
16965 int ecode3 = 0 ;
16966 int val4 ;
16967 int ecode4 = 0 ;
16968 PyObject * obj0 = 0 ;
16969 PyObject * obj1 = 0 ;
16970 PyObject * obj2 = 0 ;
16971 PyObject * obj3 = 0 ;
16972 char * kwnames[] = {
16973 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
16974 };
16975
16976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
16978 if (!SWIG_IsOK(res1)) {
16979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16980 }
16981 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16982 ecode2 = SWIG_AsVal_int(obj1, &val2);
16983 if (!SWIG_IsOK(ecode2)) {
16984 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16985 }
16986 arg2 = static_cast< wxFontEncoding >(val2);
16987 ecode3 = SWIG_AsVal_int(obj2, &val3);
16988 if (!SWIG_IsOK(ecode3)) {
16989 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
16990 }
16991 arg3 = static_cast< wxFontEncoding >(val3);
16992 if (obj3) {
16993 ecode4 = SWIG_AsVal_int(obj3, &val4);
16994 if (!SWIG_IsOK(ecode4)) {
16995 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
16996 }
16997 arg4 = static_cast< int >(val4);
16998 }
16999 {
17000 PyThreadState* __tstate = wxPyBeginAllowThreads();
17001 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17002 wxPyEndAllowThreads(__tstate);
17003 if (PyErr_Occurred()) SWIG_fail;
17004 }
17005 {
17006 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17007 }
17008 return resultobj;
17009 fail:
17010 return NULL;
17011 }
17012
17013
17014 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17015 PyObject *resultobj = 0;
17016 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17017 wxString *arg2 = 0 ;
17018 wxString result;
17019 void *argp1 = 0 ;
17020 int res1 = 0 ;
17021 bool temp2 = false ;
17022 PyObject * obj0 = 0 ;
17023 PyObject * obj1 = 0 ;
17024 char * kwnames[] = {
17025 (char *) "self",(char *) "input", NULL
17026 };
17027
17028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17030 if (!SWIG_IsOK(res1)) {
17031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17032 }
17033 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17034 {
17035 arg2 = wxString_in_helper(obj1);
17036 if (arg2 == NULL) SWIG_fail;
17037 temp2 = true;
17038 }
17039 {
17040 PyThreadState* __tstate = wxPyBeginAllowThreads();
17041 result = (arg1)->Convert((wxString const &)*arg2);
17042 wxPyEndAllowThreads(__tstate);
17043 if (PyErr_Occurred()) SWIG_fail;
17044 }
17045 {
17046 #if wxUSE_UNICODE
17047 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17048 #else
17049 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17050 #endif
17051 }
17052 {
17053 if (temp2)
17054 delete arg2;
17055 }
17056 return resultobj;
17057 fail:
17058 {
17059 if (temp2)
17060 delete arg2;
17061 }
17062 return NULL;
17063 }
17064
17065
17066 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17067 PyObject *resultobj = 0;
17068 wxFontEncoding arg1 ;
17069 int arg2 = (int) wxPLATFORM_CURRENT ;
17070 wxFontEncodingArray result;
17071 int val1 ;
17072 int ecode1 = 0 ;
17073 int val2 ;
17074 int ecode2 = 0 ;
17075 PyObject * obj0 = 0 ;
17076 PyObject * obj1 = 0 ;
17077 char * kwnames[] = {
17078 (char *) "enc",(char *) "platform", NULL
17079 };
17080
17081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17082 ecode1 = SWIG_AsVal_int(obj0, &val1);
17083 if (!SWIG_IsOK(ecode1)) {
17084 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17085 }
17086 arg1 = static_cast< wxFontEncoding >(val1);
17087 if (obj1) {
17088 ecode2 = SWIG_AsVal_int(obj1, &val2);
17089 if (!SWIG_IsOK(ecode2)) {
17090 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17091 }
17092 arg2 = static_cast< int >(val2);
17093 }
17094 {
17095 PyThreadState* __tstate = wxPyBeginAllowThreads();
17096 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17097 wxPyEndAllowThreads(__tstate);
17098 if (PyErr_Occurred()) SWIG_fail;
17099 }
17100 {
17101 resultobj = PyList_New(0);
17102 for (size_t i=0; i < (&result)->GetCount(); i++) {
17103 PyObject* number = PyInt_FromLong((&result)->Item(i));
17104 PyList_Append(resultobj, number);
17105 Py_DECREF(number);
17106 }
17107 }
17108 return resultobj;
17109 fail:
17110 return NULL;
17111 }
17112
17113
17114 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17115 PyObject *resultobj = 0;
17116 wxFontEncoding arg1 ;
17117 wxFontEncodingArray result;
17118 int val1 ;
17119 int ecode1 = 0 ;
17120 PyObject * obj0 = 0 ;
17121 char * kwnames[] = {
17122 (char *) "enc", NULL
17123 };
17124
17125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17126 ecode1 = SWIG_AsVal_int(obj0, &val1);
17127 if (!SWIG_IsOK(ecode1)) {
17128 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17129 }
17130 arg1 = static_cast< wxFontEncoding >(val1);
17131 {
17132 PyThreadState* __tstate = wxPyBeginAllowThreads();
17133 result = wxEncodingConverter::GetAllEquivalents(arg1);
17134 wxPyEndAllowThreads(__tstate);
17135 if (PyErr_Occurred()) SWIG_fail;
17136 }
17137 {
17138 resultobj = PyList_New(0);
17139 for (size_t i=0; i < (&result)->GetCount(); i++) {
17140 PyObject* number = PyInt_FromLong((&result)->Item(i));
17141 PyList_Append(resultobj, number);
17142 Py_DECREF(number);
17143 }
17144 }
17145 return resultobj;
17146 fail:
17147 return NULL;
17148 }
17149
17150
17151 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17152 PyObject *resultobj = 0;
17153 wxFontEncoding arg1 ;
17154 wxFontEncoding arg2 ;
17155 bool result;
17156 int val1 ;
17157 int ecode1 = 0 ;
17158 int val2 ;
17159 int ecode2 = 0 ;
17160 PyObject * obj0 = 0 ;
17161 PyObject * obj1 = 0 ;
17162 char * kwnames[] = {
17163 (char *) "encIn",(char *) "encOut", NULL
17164 };
17165
17166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17167 ecode1 = SWIG_AsVal_int(obj0, &val1);
17168 if (!SWIG_IsOK(ecode1)) {
17169 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17170 }
17171 arg1 = static_cast< wxFontEncoding >(val1);
17172 ecode2 = SWIG_AsVal_int(obj1, &val2);
17173 if (!SWIG_IsOK(ecode2)) {
17174 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17175 }
17176 arg2 = static_cast< wxFontEncoding >(val2);
17177 {
17178 PyThreadState* __tstate = wxPyBeginAllowThreads();
17179 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17180 wxPyEndAllowThreads(__tstate);
17181 if (PyErr_Occurred()) SWIG_fail;
17182 }
17183 {
17184 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17185 }
17186 return resultobj;
17187 fail:
17188 return NULL;
17189 }
17190
17191
17192 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17193 PyObject *obj;
17194 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17195 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17196 return SWIG_Py_Void();
17197 }
17198
17199 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17200 return SWIG_Python_InitShadowInstance(args);
17201 }
17202
17203 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17204 PyObject *resultobj = 0;
17205 wxDC *arg1 = (wxDC *) 0 ;
17206 void *argp1 = 0 ;
17207 int res1 = 0 ;
17208 PyObject *swig_obj[1] ;
17209
17210 if (!args) SWIG_fail;
17211 swig_obj[0] = args;
17212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17213 if (!SWIG_IsOK(res1)) {
17214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17215 }
17216 arg1 = reinterpret_cast< wxDC * >(argp1);
17217 {
17218 PyThreadState* __tstate = wxPyBeginAllowThreads();
17219 delete arg1;
17220
17221 wxPyEndAllowThreads(__tstate);
17222 if (PyErr_Occurred()) SWIG_fail;
17223 }
17224 resultobj = SWIG_Py_Void();
17225 return resultobj;
17226 fail:
17227 return NULL;
17228 }
17229
17230
17231 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17232 PyObject *resultobj = 0;
17233 wxDC *arg1 = (wxDC *) 0 ;
17234 int arg2 ;
17235 int arg3 ;
17236 wxColour *arg4 = 0 ;
17237 int arg5 = (int) wxFLOOD_SURFACE ;
17238 bool result;
17239 void *argp1 = 0 ;
17240 int res1 = 0 ;
17241 int val2 ;
17242 int ecode2 = 0 ;
17243 int val3 ;
17244 int ecode3 = 0 ;
17245 wxColour temp4 ;
17246 int val5 ;
17247 int ecode5 = 0 ;
17248 PyObject * obj0 = 0 ;
17249 PyObject * obj1 = 0 ;
17250 PyObject * obj2 = 0 ;
17251 PyObject * obj3 = 0 ;
17252 PyObject * obj4 = 0 ;
17253 char * kwnames[] = {
17254 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17255 };
17256
17257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17259 if (!SWIG_IsOK(res1)) {
17260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17261 }
17262 arg1 = reinterpret_cast< wxDC * >(argp1);
17263 ecode2 = SWIG_AsVal_int(obj1, &val2);
17264 if (!SWIG_IsOK(ecode2)) {
17265 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17266 }
17267 arg2 = static_cast< int >(val2);
17268 ecode3 = SWIG_AsVal_int(obj2, &val3);
17269 if (!SWIG_IsOK(ecode3)) {
17270 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17271 }
17272 arg3 = static_cast< int >(val3);
17273 {
17274 arg4 = &temp4;
17275 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17276 }
17277 if (obj4) {
17278 ecode5 = SWIG_AsVal_int(obj4, &val5);
17279 if (!SWIG_IsOK(ecode5)) {
17280 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17281 }
17282 arg5 = static_cast< int >(val5);
17283 }
17284 {
17285 PyThreadState* __tstate = wxPyBeginAllowThreads();
17286 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17287 wxPyEndAllowThreads(__tstate);
17288 if (PyErr_Occurred()) SWIG_fail;
17289 }
17290 {
17291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17292 }
17293 return resultobj;
17294 fail:
17295 return NULL;
17296 }
17297
17298
17299 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17300 PyObject *resultobj = 0;
17301 wxDC *arg1 = (wxDC *) 0 ;
17302 wxPoint *arg2 = 0 ;
17303 wxColour *arg3 = 0 ;
17304 int arg4 = (int) wxFLOOD_SURFACE ;
17305 bool result;
17306 void *argp1 = 0 ;
17307 int res1 = 0 ;
17308 wxPoint temp2 ;
17309 wxColour temp3 ;
17310 int val4 ;
17311 int ecode4 = 0 ;
17312 PyObject * obj0 = 0 ;
17313 PyObject * obj1 = 0 ;
17314 PyObject * obj2 = 0 ;
17315 PyObject * obj3 = 0 ;
17316 char * kwnames[] = {
17317 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17318 };
17319
17320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17322 if (!SWIG_IsOK(res1)) {
17323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17324 }
17325 arg1 = reinterpret_cast< wxDC * >(argp1);
17326 {
17327 arg2 = &temp2;
17328 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17329 }
17330 {
17331 arg3 = &temp3;
17332 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17333 }
17334 if (obj3) {
17335 ecode4 = SWIG_AsVal_int(obj3, &val4);
17336 if (!SWIG_IsOK(ecode4)) {
17337 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17338 }
17339 arg4 = static_cast< int >(val4);
17340 }
17341 {
17342 PyThreadState* __tstate = wxPyBeginAllowThreads();
17343 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17344 wxPyEndAllowThreads(__tstate);
17345 if (PyErr_Occurred()) SWIG_fail;
17346 }
17347 {
17348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17349 }
17350 return resultobj;
17351 fail:
17352 return NULL;
17353 }
17354
17355
17356 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17357 PyObject *resultobj = 0;
17358 wxDC *arg1 = (wxDC *) 0 ;
17359 wxRect *arg2 = 0 ;
17360 wxColour *arg3 = 0 ;
17361 wxColour *arg4 = 0 ;
17362 wxPoint *arg5 = 0 ;
17363 void *argp1 = 0 ;
17364 int res1 = 0 ;
17365 wxRect temp2 ;
17366 wxColour temp3 ;
17367 wxColour temp4 ;
17368 wxPoint temp5 ;
17369 PyObject * obj0 = 0 ;
17370 PyObject * obj1 = 0 ;
17371 PyObject * obj2 = 0 ;
17372 PyObject * obj3 = 0 ;
17373 PyObject * obj4 = 0 ;
17374 char * kwnames[] = {
17375 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17376 };
17377
17378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17380 if (!SWIG_IsOK(res1)) {
17381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17382 }
17383 arg1 = reinterpret_cast< wxDC * >(argp1);
17384 {
17385 arg2 = &temp2;
17386 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17387 }
17388 {
17389 arg3 = &temp3;
17390 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17391 }
17392 {
17393 arg4 = &temp4;
17394 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17395 }
17396 {
17397 arg5 = &temp5;
17398 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17399 }
17400 {
17401 PyThreadState* __tstate = wxPyBeginAllowThreads();
17402 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17403 wxPyEndAllowThreads(__tstate);
17404 if (PyErr_Occurred()) SWIG_fail;
17405 }
17406 resultobj = SWIG_Py_Void();
17407 return resultobj;
17408 fail:
17409 return NULL;
17410 }
17411
17412
17413 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17414 PyObject *resultobj = 0;
17415 wxDC *arg1 = (wxDC *) 0 ;
17416 wxRect *arg2 = 0 ;
17417 wxColour *arg3 = 0 ;
17418 wxColour *arg4 = 0 ;
17419 wxDirection arg5 = (wxDirection) wxEAST ;
17420 void *argp1 = 0 ;
17421 int res1 = 0 ;
17422 wxRect temp2 ;
17423 wxColour temp3 ;
17424 wxColour temp4 ;
17425 int val5 ;
17426 int ecode5 = 0 ;
17427 PyObject * obj0 = 0 ;
17428 PyObject * obj1 = 0 ;
17429 PyObject * obj2 = 0 ;
17430 PyObject * obj3 = 0 ;
17431 PyObject * obj4 = 0 ;
17432 char * kwnames[] = {
17433 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17434 };
17435
17436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17438 if (!SWIG_IsOK(res1)) {
17439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17440 }
17441 arg1 = reinterpret_cast< wxDC * >(argp1);
17442 {
17443 arg2 = &temp2;
17444 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17445 }
17446 {
17447 arg3 = &temp3;
17448 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17449 }
17450 {
17451 arg4 = &temp4;
17452 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17453 }
17454 if (obj4) {
17455 ecode5 = SWIG_AsVal_int(obj4, &val5);
17456 if (!SWIG_IsOK(ecode5)) {
17457 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17458 }
17459 arg5 = static_cast< wxDirection >(val5);
17460 }
17461 {
17462 PyThreadState* __tstate = wxPyBeginAllowThreads();
17463 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17464 wxPyEndAllowThreads(__tstate);
17465 if (PyErr_Occurred()) SWIG_fail;
17466 }
17467 resultobj = SWIG_Py_Void();
17468 return resultobj;
17469 fail:
17470 return NULL;
17471 }
17472
17473
17474 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17475 PyObject *resultobj = 0;
17476 wxDC *arg1 = (wxDC *) 0 ;
17477 int arg2 ;
17478 int arg3 ;
17479 wxColour result;
17480 void *argp1 = 0 ;
17481 int res1 = 0 ;
17482 int val2 ;
17483 int ecode2 = 0 ;
17484 int val3 ;
17485 int ecode3 = 0 ;
17486 PyObject * obj0 = 0 ;
17487 PyObject * obj1 = 0 ;
17488 PyObject * obj2 = 0 ;
17489 char * kwnames[] = {
17490 (char *) "self",(char *) "x",(char *) "y", NULL
17491 };
17492
17493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17495 if (!SWIG_IsOK(res1)) {
17496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17497 }
17498 arg1 = reinterpret_cast< wxDC * >(argp1);
17499 ecode2 = SWIG_AsVal_int(obj1, &val2);
17500 if (!SWIG_IsOK(ecode2)) {
17501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17502 }
17503 arg2 = static_cast< int >(val2);
17504 ecode3 = SWIG_AsVal_int(obj2, &val3);
17505 if (!SWIG_IsOK(ecode3)) {
17506 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17507 }
17508 arg3 = static_cast< int >(val3);
17509 {
17510 PyThreadState* __tstate = wxPyBeginAllowThreads();
17511 result = wxDC_GetPixel(arg1,arg2,arg3);
17512 wxPyEndAllowThreads(__tstate);
17513 if (PyErr_Occurred()) SWIG_fail;
17514 }
17515 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17516 return resultobj;
17517 fail:
17518 return NULL;
17519 }
17520
17521
17522 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17523 PyObject *resultobj = 0;
17524 wxDC *arg1 = (wxDC *) 0 ;
17525 wxPoint *arg2 = 0 ;
17526 wxColour result;
17527 void *argp1 = 0 ;
17528 int res1 = 0 ;
17529 wxPoint temp2 ;
17530 PyObject * obj0 = 0 ;
17531 PyObject * obj1 = 0 ;
17532 char * kwnames[] = {
17533 (char *) "self",(char *) "pt", NULL
17534 };
17535
17536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17538 if (!SWIG_IsOK(res1)) {
17539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17540 }
17541 arg1 = reinterpret_cast< wxDC * >(argp1);
17542 {
17543 arg2 = &temp2;
17544 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17545 }
17546 {
17547 PyThreadState* __tstate = wxPyBeginAllowThreads();
17548 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17549 wxPyEndAllowThreads(__tstate);
17550 if (PyErr_Occurred()) SWIG_fail;
17551 }
17552 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17553 return resultobj;
17554 fail:
17555 return NULL;
17556 }
17557
17558
17559 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17560 PyObject *resultobj = 0;
17561 wxDC *arg1 = (wxDC *) 0 ;
17562 int arg2 ;
17563 int arg3 ;
17564 int arg4 ;
17565 int arg5 ;
17566 void *argp1 = 0 ;
17567 int res1 = 0 ;
17568 int val2 ;
17569 int ecode2 = 0 ;
17570 int val3 ;
17571 int ecode3 = 0 ;
17572 int val4 ;
17573 int ecode4 = 0 ;
17574 int val5 ;
17575 int ecode5 = 0 ;
17576 PyObject * obj0 = 0 ;
17577 PyObject * obj1 = 0 ;
17578 PyObject * obj2 = 0 ;
17579 PyObject * obj3 = 0 ;
17580 PyObject * obj4 = 0 ;
17581 char * kwnames[] = {
17582 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17583 };
17584
17585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17587 if (!SWIG_IsOK(res1)) {
17588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17589 }
17590 arg1 = reinterpret_cast< wxDC * >(argp1);
17591 ecode2 = SWIG_AsVal_int(obj1, &val2);
17592 if (!SWIG_IsOK(ecode2)) {
17593 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17594 }
17595 arg2 = static_cast< int >(val2);
17596 ecode3 = SWIG_AsVal_int(obj2, &val3);
17597 if (!SWIG_IsOK(ecode3)) {
17598 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17599 }
17600 arg3 = static_cast< int >(val3);
17601 ecode4 = SWIG_AsVal_int(obj3, &val4);
17602 if (!SWIG_IsOK(ecode4)) {
17603 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17604 }
17605 arg4 = static_cast< int >(val4);
17606 ecode5 = SWIG_AsVal_int(obj4, &val5);
17607 if (!SWIG_IsOK(ecode5)) {
17608 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17609 }
17610 arg5 = static_cast< int >(val5);
17611 {
17612 PyThreadState* __tstate = wxPyBeginAllowThreads();
17613 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17614 wxPyEndAllowThreads(__tstate);
17615 if (PyErr_Occurred()) SWIG_fail;
17616 }
17617 resultobj = SWIG_Py_Void();
17618 return resultobj;
17619 fail:
17620 return NULL;
17621 }
17622
17623
17624 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17625 PyObject *resultobj = 0;
17626 wxDC *arg1 = (wxDC *) 0 ;
17627 wxPoint *arg2 = 0 ;
17628 wxPoint *arg3 = 0 ;
17629 void *argp1 = 0 ;
17630 int res1 = 0 ;
17631 wxPoint temp2 ;
17632 wxPoint temp3 ;
17633 PyObject * obj0 = 0 ;
17634 PyObject * obj1 = 0 ;
17635 PyObject * obj2 = 0 ;
17636 char * kwnames[] = {
17637 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17638 };
17639
17640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17642 if (!SWIG_IsOK(res1)) {
17643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17644 }
17645 arg1 = reinterpret_cast< wxDC * >(argp1);
17646 {
17647 arg2 = &temp2;
17648 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17649 }
17650 {
17651 arg3 = &temp3;
17652 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17653 }
17654 {
17655 PyThreadState* __tstate = wxPyBeginAllowThreads();
17656 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17657 wxPyEndAllowThreads(__tstate);
17658 if (PyErr_Occurred()) SWIG_fail;
17659 }
17660 resultobj = SWIG_Py_Void();
17661 return resultobj;
17662 fail:
17663 return NULL;
17664 }
17665
17666
17667 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17668 PyObject *resultobj = 0;
17669 wxDC *arg1 = (wxDC *) 0 ;
17670 int arg2 ;
17671 int arg3 ;
17672 void *argp1 = 0 ;
17673 int res1 = 0 ;
17674 int val2 ;
17675 int ecode2 = 0 ;
17676 int val3 ;
17677 int ecode3 = 0 ;
17678 PyObject * obj0 = 0 ;
17679 PyObject * obj1 = 0 ;
17680 PyObject * obj2 = 0 ;
17681 char * kwnames[] = {
17682 (char *) "self",(char *) "x",(char *) "y", NULL
17683 };
17684
17685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17687 if (!SWIG_IsOK(res1)) {
17688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
17689 }
17690 arg1 = reinterpret_cast< wxDC * >(argp1);
17691 ecode2 = SWIG_AsVal_int(obj1, &val2);
17692 if (!SWIG_IsOK(ecode2)) {
17693 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
17694 }
17695 arg2 = static_cast< int >(val2);
17696 ecode3 = SWIG_AsVal_int(obj2, &val3);
17697 if (!SWIG_IsOK(ecode3)) {
17698 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
17699 }
17700 arg3 = static_cast< int >(val3);
17701 {
17702 PyThreadState* __tstate = wxPyBeginAllowThreads();
17703 (arg1)->CrossHair(arg2,arg3);
17704 wxPyEndAllowThreads(__tstate);
17705 if (PyErr_Occurred()) SWIG_fail;
17706 }
17707 resultobj = SWIG_Py_Void();
17708 return resultobj;
17709 fail:
17710 return NULL;
17711 }
17712
17713
17714 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17715 PyObject *resultobj = 0;
17716 wxDC *arg1 = (wxDC *) 0 ;
17717 wxPoint *arg2 = 0 ;
17718 void *argp1 = 0 ;
17719 int res1 = 0 ;
17720 wxPoint temp2 ;
17721 PyObject * obj0 = 0 ;
17722 PyObject * obj1 = 0 ;
17723 char * kwnames[] = {
17724 (char *) "self",(char *) "pt", NULL
17725 };
17726
17727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17729 if (!SWIG_IsOK(res1)) {
17730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17731 }
17732 arg1 = reinterpret_cast< wxDC * >(argp1);
17733 {
17734 arg2 = &temp2;
17735 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17736 }
17737 {
17738 PyThreadState* __tstate = wxPyBeginAllowThreads();
17739 (arg1)->CrossHair((wxPoint const &)*arg2);
17740 wxPyEndAllowThreads(__tstate);
17741 if (PyErr_Occurred()) SWIG_fail;
17742 }
17743 resultobj = SWIG_Py_Void();
17744 return resultobj;
17745 fail:
17746 return NULL;
17747 }
17748
17749
17750 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17751 PyObject *resultobj = 0;
17752 wxDC *arg1 = (wxDC *) 0 ;
17753 int arg2 ;
17754 int arg3 ;
17755 int arg4 ;
17756 int arg5 ;
17757 int arg6 ;
17758 int arg7 ;
17759 void *argp1 = 0 ;
17760 int res1 = 0 ;
17761 int val2 ;
17762 int ecode2 = 0 ;
17763 int val3 ;
17764 int ecode3 = 0 ;
17765 int val4 ;
17766 int ecode4 = 0 ;
17767 int val5 ;
17768 int ecode5 = 0 ;
17769 int val6 ;
17770 int ecode6 = 0 ;
17771 int val7 ;
17772 int ecode7 = 0 ;
17773 PyObject * obj0 = 0 ;
17774 PyObject * obj1 = 0 ;
17775 PyObject * obj2 = 0 ;
17776 PyObject * obj3 = 0 ;
17777 PyObject * obj4 = 0 ;
17778 PyObject * obj5 = 0 ;
17779 PyObject * obj6 = 0 ;
17780 char * kwnames[] = {
17781 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
17782 };
17783
17784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
17785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17786 if (!SWIG_IsOK(res1)) {
17787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
17788 }
17789 arg1 = reinterpret_cast< wxDC * >(argp1);
17790 ecode2 = SWIG_AsVal_int(obj1, &val2);
17791 if (!SWIG_IsOK(ecode2)) {
17792 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
17793 }
17794 arg2 = static_cast< int >(val2);
17795 ecode3 = SWIG_AsVal_int(obj2, &val3);
17796 if (!SWIG_IsOK(ecode3)) {
17797 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
17798 }
17799 arg3 = static_cast< int >(val3);
17800 ecode4 = SWIG_AsVal_int(obj3, &val4);
17801 if (!SWIG_IsOK(ecode4)) {
17802 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
17803 }
17804 arg4 = static_cast< int >(val4);
17805 ecode5 = SWIG_AsVal_int(obj4, &val5);
17806 if (!SWIG_IsOK(ecode5)) {
17807 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
17808 }
17809 arg5 = static_cast< int >(val5);
17810 ecode6 = SWIG_AsVal_int(obj5, &val6);
17811 if (!SWIG_IsOK(ecode6)) {
17812 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
17813 }
17814 arg6 = static_cast< int >(val6);
17815 ecode7 = SWIG_AsVal_int(obj6, &val7);
17816 if (!SWIG_IsOK(ecode7)) {
17817 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
17818 }
17819 arg7 = static_cast< int >(val7);
17820 {
17821 PyThreadState* __tstate = wxPyBeginAllowThreads();
17822 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
17823 wxPyEndAllowThreads(__tstate);
17824 if (PyErr_Occurred()) SWIG_fail;
17825 }
17826 resultobj = SWIG_Py_Void();
17827 return resultobj;
17828 fail:
17829 return NULL;
17830 }
17831
17832
17833 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17834 PyObject *resultobj = 0;
17835 wxDC *arg1 = (wxDC *) 0 ;
17836 wxPoint *arg2 = 0 ;
17837 wxPoint *arg3 = 0 ;
17838 wxPoint *arg4 = 0 ;
17839 void *argp1 = 0 ;
17840 int res1 = 0 ;
17841 wxPoint temp2 ;
17842 wxPoint temp3 ;
17843 wxPoint temp4 ;
17844 PyObject * obj0 = 0 ;
17845 PyObject * obj1 = 0 ;
17846 PyObject * obj2 = 0 ;
17847 PyObject * obj3 = 0 ;
17848 char * kwnames[] = {
17849 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
17850 };
17851
17852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) 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_DrawArcPoint" "', 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 arg3 = &temp3;
17864 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17865 }
17866 {
17867 arg4 = &temp4;
17868 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17869 }
17870 {
17871 PyThreadState* __tstate = wxPyBeginAllowThreads();
17872 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
17873 wxPyEndAllowThreads(__tstate);
17874 if (PyErr_Occurred()) SWIG_fail;
17875 }
17876 resultobj = SWIG_Py_Void();
17877 return resultobj;
17878 fail:
17879 return NULL;
17880 }
17881
17882
17883 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17884 PyObject *resultobj = 0;
17885 wxDC *arg1 = (wxDC *) 0 ;
17886 int arg2 ;
17887 int arg3 ;
17888 int arg4 ;
17889 int arg5 ;
17890 void *argp1 = 0 ;
17891 int res1 = 0 ;
17892 int val2 ;
17893 int ecode2 = 0 ;
17894 int val3 ;
17895 int ecode3 = 0 ;
17896 int val4 ;
17897 int ecode4 = 0 ;
17898 int val5 ;
17899 int ecode5 = 0 ;
17900 PyObject * obj0 = 0 ;
17901 PyObject * obj1 = 0 ;
17902 PyObject * obj2 = 0 ;
17903 PyObject * obj3 = 0 ;
17904 PyObject * obj4 = 0 ;
17905 char * kwnames[] = {
17906 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
17907 };
17908
17909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17911 if (!SWIG_IsOK(res1)) {
17912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
17913 }
17914 arg1 = reinterpret_cast< wxDC * >(argp1);
17915 ecode2 = SWIG_AsVal_int(obj1, &val2);
17916 if (!SWIG_IsOK(ecode2)) {
17917 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
17918 }
17919 arg2 = static_cast< int >(val2);
17920 ecode3 = SWIG_AsVal_int(obj2, &val3);
17921 if (!SWIG_IsOK(ecode3)) {
17922 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
17923 }
17924 arg3 = static_cast< int >(val3);
17925 ecode4 = SWIG_AsVal_int(obj3, &val4);
17926 if (!SWIG_IsOK(ecode4)) {
17927 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
17928 }
17929 arg4 = static_cast< int >(val4);
17930 ecode5 = SWIG_AsVal_int(obj4, &val5);
17931 if (!SWIG_IsOK(ecode5)) {
17932 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
17933 }
17934 arg5 = static_cast< int >(val5);
17935 {
17936 PyThreadState* __tstate = wxPyBeginAllowThreads();
17937 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
17938 wxPyEndAllowThreads(__tstate);
17939 if (PyErr_Occurred()) SWIG_fail;
17940 }
17941 resultobj = SWIG_Py_Void();
17942 return resultobj;
17943 fail:
17944 return NULL;
17945 }
17946
17947
17948 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17949 PyObject *resultobj = 0;
17950 wxDC *arg1 = (wxDC *) 0 ;
17951 wxRect *arg2 = 0 ;
17952 void *argp1 = 0 ;
17953 int res1 = 0 ;
17954 wxRect temp2 ;
17955 PyObject * obj0 = 0 ;
17956 PyObject * obj1 = 0 ;
17957 char * kwnames[] = {
17958 (char *) "self",(char *) "rect", NULL
17959 };
17960
17961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
17962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17963 if (!SWIG_IsOK(res1)) {
17964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
17965 }
17966 arg1 = reinterpret_cast< wxDC * >(argp1);
17967 {
17968 arg2 = &temp2;
17969 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17970 }
17971 {
17972 PyThreadState* __tstate = wxPyBeginAllowThreads();
17973 (arg1)->DrawCheckMark((wxRect const &)*arg2);
17974 wxPyEndAllowThreads(__tstate);
17975 if (PyErr_Occurred()) SWIG_fail;
17976 }
17977 resultobj = SWIG_Py_Void();
17978 return resultobj;
17979 fail:
17980 return NULL;
17981 }
17982
17983
17984 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17985 PyObject *resultobj = 0;
17986 wxDC *arg1 = (wxDC *) 0 ;
17987 int arg2 ;
17988 int arg3 ;
17989 int arg4 ;
17990 int arg5 ;
17991 double arg6 ;
17992 double arg7 ;
17993 void *argp1 = 0 ;
17994 int res1 = 0 ;
17995 int val2 ;
17996 int ecode2 = 0 ;
17997 int val3 ;
17998 int ecode3 = 0 ;
17999 int val4 ;
18000 int ecode4 = 0 ;
18001 int val5 ;
18002 int ecode5 = 0 ;
18003 double val6 ;
18004 int ecode6 = 0 ;
18005 double val7 ;
18006 int ecode7 = 0 ;
18007 PyObject * obj0 = 0 ;
18008 PyObject * obj1 = 0 ;
18009 PyObject * obj2 = 0 ;
18010 PyObject * obj3 = 0 ;
18011 PyObject * obj4 = 0 ;
18012 PyObject * obj5 = 0 ;
18013 PyObject * obj6 = 0 ;
18014 char * kwnames[] = {
18015 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18016 };
18017
18018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18020 if (!SWIG_IsOK(res1)) {
18021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18022 }
18023 arg1 = reinterpret_cast< wxDC * >(argp1);
18024 ecode2 = SWIG_AsVal_int(obj1, &val2);
18025 if (!SWIG_IsOK(ecode2)) {
18026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18027 }
18028 arg2 = static_cast< int >(val2);
18029 ecode3 = SWIG_AsVal_int(obj2, &val3);
18030 if (!SWIG_IsOK(ecode3)) {
18031 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18032 }
18033 arg3 = static_cast< int >(val3);
18034 ecode4 = SWIG_AsVal_int(obj3, &val4);
18035 if (!SWIG_IsOK(ecode4)) {
18036 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18037 }
18038 arg4 = static_cast< int >(val4);
18039 ecode5 = SWIG_AsVal_int(obj4, &val5);
18040 if (!SWIG_IsOK(ecode5)) {
18041 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18042 }
18043 arg5 = static_cast< int >(val5);
18044 ecode6 = SWIG_AsVal_double(obj5, &val6);
18045 if (!SWIG_IsOK(ecode6)) {
18046 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18047 }
18048 arg6 = static_cast< double >(val6);
18049 ecode7 = SWIG_AsVal_double(obj6, &val7);
18050 if (!SWIG_IsOK(ecode7)) {
18051 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18052 }
18053 arg7 = static_cast< double >(val7);
18054 {
18055 PyThreadState* __tstate = wxPyBeginAllowThreads();
18056 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18057 wxPyEndAllowThreads(__tstate);
18058 if (PyErr_Occurred()) SWIG_fail;
18059 }
18060 resultobj = SWIG_Py_Void();
18061 return resultobj;
18062 fail:
18063 return NULL;
18064 }
18065
18066
18067 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18068 PyObject *resultobj = 0;
18069 wxDC *arg1 = (wxDC *) 0 ;
18070 wxPoint *arg2 = 0 ;
18071 wxSize *arg3 = 0 ;
18072 double arg4 ;
18073 double arg5 ;
18074 void *argp1 = 0 ;
18075 int res1 = 0 ;
18076 wxPoint temp2 ;
18077 wxSize temp3 ;
18078 double val4 ;
18079 int ecode4 = 0 ;
18080 double val5 ;
18081 int ecode5 = 0 ;
18082 PyObject * obj0 = 0 ;
18083 PyObject * obj1 = 0 ;
18084 PyObject * obj2 = 0 ;
18085 PyObject * obj3 = 0 ;
18086 PyObject * obj4 = 0 ;
18087 char * kwnames[] = {
18088 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18089 };
18090
18091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18093 if (!SWIG_IsOK(res1)) {
18094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18095 }
18096 arg1 = reinterpret_cast< wxDC * >(argp1);
18097 {
18098 arg2 = &temp2;
18099 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18100 }
18101 {
18102 arg3 = &temp3;
18103 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18104 }
18105 ecode4 = SWIG_AsVal_double(obj3, &val4);
18106 if (!SWIG_IsOK(ecode4)) {
18107 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18108 }
18109 arg4 = static_cast< double >(val4);
18110 ecode5 = SWIG_AsVal_double(obj4, &val5);
18111 if (!SWIG_IsOK(ecode5)) {
18112 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18113 }
18114 arg5 = static_cast< double >(val5);
18115 {
18116 PyThreadState* __tstate = wxPyBeginAllowThreads();
18117 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18118 wxPyEndAllowThreads(__tstate);
18119 if (PyErr_Occurred()) SWIG_fail;
18120 }
18121 resultobj = SWIG_Py_Void();
18122 return resultobj;
18123 fail:
18124 return NULL;
18125 }
18126
18127
18128 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18129 PyObject *resultobj = 0;
18130 wxDC *arg1 = (wxDC *) 0 ;
18131 int arg2 ;
18132 int arg3 ;
18133 void *argp1 = 0 ;
18134 int res1 = 0 ;
18135 int val2 ;
18136 int ecode2 = 0 ;
18137 int val3 ;
18138 int ecode3 = 0 ;
18139 PyObject * obj0 = 0 ;
18140 PyObject * obj1 = 0 ;
18141 PyObject * obj2 = 0 ;
18142 char * kwnames[] = {
18143 (char *) "self",(char *) "x",(char *) "y", NULL
18144 };
18145
18146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18148 if (!SWIG_IsOK(res1)) {
18149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18150 }
18151 arg1 = reinterpret_cast< wxDC * >(argp1);
18152 ecode2 = SWIG_AsVal_int(obj1, &val2);
18153 if (!SWIG_IsOK(ecode2)) {
18154 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18155 }
18156 arg2 = static_cast< int >(val2);
18157 ecode3 = SWIG_AsVal_int(obj2, &val3);
18158 if (!SWIG_IsOK(ecode3)) {
18159 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18160 }
18161 arg3 = static_cast< int >(val3);
18162 {
18163 PyThreadState* __tstate = wxPyBeginAllowThreads();
18164 (arg1)->DrawPoint(arg2,arg3);
18165 wxPyEndAllowThreads(__tstate);
18166 if (PyErr_Occurred()) SWIG_fail;
18167 }
18168 resultobj = SWIG_Py_Void();
18169 return resultobj;
18170 fail:
18171 return NULL;
18172 }
18173
18174
18175 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18176 PyObject *resultobj = 0;
18177 wxDC *arg1 = (wxDC *) 0 ;
18178 wxPoint *arg2 = 0 ;
18179 void *argp1 = 0 ;
18180 int res1 = 0 ;
18181 wxPoint temp2 ;
18182 PyObject * obj0 = 0 ;
18183 PyObject * obj1 = 0 ;
18184 char * kwnames[] = {
18185 (char *) "self",(char *) "pt", NULL
18186 };
18187
18188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18190 if (!SWIG_IsOK(res1)) {
18191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18192 }
18193 arg1 = reinterpret_cast< wxDC * >(argp1);
18194 {
18195 arg2 = &temp2;
18196 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18197 }
18198 {
18199 PyThreadState* __tstate = wxPyBeginAllowThreads();
18200 (arg1)->DrawPoint((wxPoint const &)*arg2);
18201 wxPyEndAllowThreads(__tstate);
18202 if (PyErr_Occurred()) SWIG_fail;
18203 }
18204 resultobj = SWIG_Py_Void();
18205 return resultobj;
18206 fail:
18207 return NULL;
18208 }
18209
18210
18211 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18212 PyObject *resultobj = 0;
18213 wxDC *arg1 = (wxDC *) 0 ;
18214 int arg2 ;
18215 int arg3 ;
18216 int arg4 ;
18217 int arg5 ;
18218 void *argp1 = 0 ;
18219 int res1 = 0 ;
18220 int val2 ;
18221 int ecode2 = 0 ;
18222 int val3 ;
18223 int ecode3 = 0 ;
18224 int val4 ;
18225 int ecode4 = 0 ;
18226 int val5 ;
18227 int ecode5 = 0 ;
18228 PyObject * obj0 = 0 ;
18229 PyObject * obj1 = 0 ;
18230 PyObject * obj2 = 0 ;
18231 PyObject * obj3 = 0 ;
18232 PyObject * obj4 = 0 ;
18233 char * kwnames[] = {
18234 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18235 };
18236
18237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18239 if (!SWIG_IsOK(res1)) {
18240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18241 }
18242 arg1 = reinterpret_cast< wxDC * >(argp1);
18243 ecode2 = SWIG_AsVal_int(obj1, &val2);
18244 if (!SWIG_IsOK(ecode2)) {
18245 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18246 }
18247 arg2 = static_cast< int >(val2);
18248 ecode3 = SWIG_AsVal_int(obj2, &val3);
18249 if (!SWIG_IsOK(ecode3)) {
18250 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18251 }
18252 arg3 = static_cast< int >(val3);
18253 ecode4 = SWIG_AsVal_int(obj3, &val4);
18254 if (!SWIG_IsOK(ecode4)) {
18255 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18256 }
18257 arg4 = static_cast< int >(val4);
18258 ecode5 = SWIG_AsVal_int(obj4, &val5);
18259 if (!SWIG_IsOK(ecode5)) {
18260 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18261 }
18262 arg5 = static_cast< int >(val5);
18263 {
18264 PyThreadState* __tstate = wxPyBeginAllowThreads();
18265 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18266 wxPyEndAllowThreads(__tstate);
18267 if (PyErr_Occurred()) SWIG_fail;
18268 }
18269 resultobj = SWIG_Py_Void();
18270 return resultobj;
18271 fail:
18272 return NULL;
18273 }
18274
18275
18276 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18277 PyObject *resultobj = 0;
18278 wxDC *arg1 = (wxDC *) 0 ;
18279 wxRect *arg2 = 0 ;
18280 void *argp1 = 0 ;
18281 int res1 = 0 ;
18282 wxRect temp2 ;
18283 PyObject * obj0 = 0 ;
18284 PyObject * obj1 = 0 ;
18285 char * kwnames[] = {
18286 (char *) "self",(char *) "rect", NULL
18287 };
18288
18289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18291 if (!SWIG_IsOK(res1)) {
18292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18293 }
18294 arg1 = reinterpret_cast< wxDC * >(argp1);
18295 {
18296 arg2 = &temp2;
18297 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18298 }
18299 {
18300 PyThreadState* __tstate = wxPyBeginAllowThreads();
18301 (arg1)->DrawRectangle((wxRect const &)*arg2);
18302 wxPyEndAllowThreads(__tstate);
18303 if (PyErr_Occurred()) SWIG_fail;
18304 }
18305 resultobj = SWIG_Py_Void();
18306 return resultobj;
18307 fail:
18308 return NULL;
18309 }
18310
18311
18312 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18313 PyObject *resultobj = 0;
18314 wxDC *arg1 = (wxDC *) 0 ;
18315 wxPoint *arg2 = 0 ;
18316 wxSize *arg3 = 0 ;
18317 void *argp1 = 0 ;
18318 int res1 = 0 ;
18319 wxPoint temp2 ;
18320 wxSize temp3 ;
18321 PyObject * obj0 = 0 ;
18322 PyObject * obj1 = 0 ;
18323 PyObject * obj2 = 0 ;
18324 char * kwnames[] = {
18325 (char *) "self",(char *) "pt",(char *) "sz", NULL
18326 };
18327
18328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18330 if (!SWIG_IsOK(res1)) {
18331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18332 }
18333 arg1 = reinterpret_cast< wxDC * >(argp1);
18334 {
18335 arg2 = &temp2;
18336 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18337 }
18338 {
18339 arg3 = &temp3;
18340 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18341 }
18342 {
18343 PyThreadState* __tstate = wxPyBeginAllowThreads();
18344 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18345 wxPyEndAllowThreads(__tstate);
18346 if (PyErr_Occurred()) SWIG_fail;
18347 }
18348 resultobj = SWIG_Py_Void();
18349 return resultobj;
18350 fail:
18351 return NULL;
18352 }
18353
18354
18355 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18356 PyObject *resultobj = 0;
18357 wxDC *arg1 = (wxDC *) 0 ;
18358 int arg2 ;
18359 int arg3 ;
18360 int arg4 ;
18361 int arg5 ;
18362 double arg6 ;
18363 void *argp1 = 0 ;
18364 int res1 = 0 ;
18365 int val2 ;
18366 int ecode2 = 0 ;
18367 int val3 ;
18368 int ecode3 = 0 ;
18369 int val4 ;
18370 int ecode4 = 0 ;
18371 int val5 ;
18372 int ecode5 = 0 ;
18373 double val6 ;
18374 int ecode6 = 0 ;
18375 PyObject * obj0 = 0 ;
18376 PyObject * obj1 = 0 ;
18377 PyObject * obj2 = 0 ;
18378 PyObject * obj3 = 0 ;
18379 PyObject * obj4 = 0 ;
18380 PyObject * obj5 = 0 ;
18381 char * kwnames[] = {
18382 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18383 };
18384
18385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18387 if (!SWIG_IsOK(res1)) {
18388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18389 }
18390 arg1 = reinterpret_cast< wxDC * >(argp1);
18391 ecode2 = SWIG_AsVal_int(obj1, &val2);
18392 if (!SWIG_IsOK(ecode2)) {
18393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18394 }
18395 arg2 = static_cast< int >(val2);
18396 ecode3 = SWIG_AsVal_int(obj2, &val3);
18397 if (!SWIG_IsOK(ecode3)) {
18398 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18399 }
18400 arg3 = static_cast< int >(val3);
18401 ecode4 = SWIG_AsVal_int(obj3, &val4);
18402 if (!SWIG_IsOK(ecode4)) {
18403 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18404 }
18405 arg4 = static_cast< int >(val4);
18406 ecode5 = SWIG_AsVal_int(obj4, &val5);
18407 if (!SWIG_IsOK(ecode5)) {
18408 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18409 }
18410 arg5 = static_cast< int >(val5);
18411 ecode6 = SWIG_AsVal_double(obj5, &val6);
18412 if (!SWIG_IsOK(ecode6)) {
18413 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18414 }
18415 arg6 = static_cast< double >(val6);
18416 {
18417 PyThreadState* __tstate = wxPyBeginAllowThreads();
18418 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18419 wxPyEndAllowThreads(__tstate);
18420 if (PyErr_Occurred()) SWIG_fail;
18421 }
18422 resultobj = SWIG_Py_Void();
18423 return resultobj;
18424 fail:
18425 return NULL;
18426 }
18427
18428
18429 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18430 PyObject *resultobj = 0;
18431 wxDC *arg1 = (wxDC *) 0 ;
18432 wxRect *arg2 = 0 ;
18433 double arg3 ;
18434 void *argp1 = 0 ;
18435 int res1 = 0 ;
18436 wxRect temp2 ;
18437 double val3 ;
18438 int ecode3 = 0 ;
18439 PyObject * obj0 = 0 ;
18440 PyObject * obj1 = 0 ;
18441 PyObject * obj2 = 0 ;
18442 char * kwnames[] = {
18443 (char *) "self",(char *) "r",(char *) "radius", NULL
18444 };
18445
18446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18448 if (!SWIG_IsOK(res1)) {
18449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18450 }
18451 arg1 = reinterpret_cast< wxDC * >(argp1);
18452 {
18453 arg2 = &temp2;
18454 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18455 }
18456 ecode3 = SWIG_AsVal_double(obj2, &val3);
18457 if (!SWIG_IsOK(ecode3)) {
18458 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18459 }
18460 arg3 = static_cast< double >(val3);
18461 {
18462 PyThreadState* __tstate = wxPyBeginAllowThreads();
18463 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18464 wxPyEndAllowThreads(__tstate);
18465 if (PyErr_Occurred()) SWIG_fail;
18466 }
18467 resultobj = SWIG_Py_Void();
18468 return resultobj;
18469 fail:
18470 return NULL;
18471 }
18472
18473
18474 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18475 PyObject *resultobj = 0;
18476 wxDC *arg1 = (wxDC *) 0 ;
18477 wxPoint *arg2 = 0 ;
18478 wxSize *arg3 = 0 ;
18479 double arg4 ;
18480 void *argp1 = 0 ;
18481 int res1 = 0 ;
18482 wxPoint temp2 ;
18483 wxSize temp3 ;
18484 double val4 ;
18485 int ecode4 = 0 ;
18486 PyObject * obj0 = 0 ;
18487 PyObject * obj1 = 0 ;
18488 PyObject * obj2 = 0 ;
18489 PyObject * obj3 = 0 ;
18490 char * kwnames[] = {
18491 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18492 };
18493
18494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18496 if (!SWIG_IsOK(res1)) {
18497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18498 }
18499 arg1 = reinterpret_cast< wxDC * >(argp1);
18500 {
18501 arg2 = &temp2;
18502 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18503 }
18504 {
18505 arg3 = &temp3;
18506 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18507 }
18508 ecode4 = SWIG_AsVal_double(obj3, &val4);
18509 if (!SWIG_IsOK(ecode4)) {
18510 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18511 }
18512 arg4 = static_cast< double >(val4);
18513 {
18514 PyThreadState* __tstate = wxPyBeginAllowThreads();
18515 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18516 wxPyEndAllowThreads(__tstate);
18517 if (PyErr_Occurred()) SWIG_fail;
18518 }
18519 resultobj = SWIG_Py_Void();
18520 return resultobj;
18521 fail:
18522 return NULL;
18523 }
18524
18525
18526 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18527 PyObject *resultobj = 0;
18528 wxDC *arg1 = (wxDC *) 0 ;
18529 int arg2 ;
18530 int arg3 ;
18531 int arg4 ;
18532 void *argp1 = 0 ;
18533 int res1 = 0 ;
18534 int val2 ;
18535 int ecode2 = 0 ;
18536 int val3 ;
18537 int ecode3 = 0 ;
18538 int val4 ;
18539 int ecode4 = 0 ;
18540 PyObject * obj0 = 0 ;
18541 PyObject * obj1 = 0 ;
18542 PyObject * obj2 = 0 ;
18543 PyObject * obj3 = 0 ;
18544 char * kwnames[] = {
18545 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18546 };
18547
18548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18550 if (!SWIG_IsOK(res1)) {
18551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18552 }
18553 arg1 = reinterpret_cast< wxDC * >(argp1);
18554 ecode2 = SWIG_AsVal_int(obj1, &val2);
18555 if (!SWIG_IsOK(ecode2)) {
18556 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18557 }
18558 arg2 = static_cast< int >(val2);
18559 ecode3 = SWIG_AsVal_int(obj2, &val3);
18560 if (!SWIG_IsOK(ecode3)) {
18561 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18562 }
18563 arg3 = static_cast< int >(val3);
18564 ecode4 = SWIG_AsVal_int(obj3, &val4);
18565 if (!SWIG_IsOK(ecode4)) {
18566 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18567 }
18568 arg4 = static_cast< int >(val4);
18569 {
18570 PyThreadState* __tstate = wxPyBeginAllowThreads();
18571 (arg1)->DrawCircle(arg2,arg3,arg4);
18572 wxPyEndAllowThreads(__tstate);
18573 if (PyErr_Occurred()) SWIG_fail;
18574 }
18575 resultobj = SWIG_Py_Void();
18576 return resultobj;
18577 fail:
18578 return NULL;
18579 }
18580
18581
18582 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18583 PyObject *resultobj = 0;
18584 wxDC *arg1 = (wxDC *) 0 ;
18585 wxPoint *arg2 = 0 ;
18586 int arg3 ;
18587 void *argp1 = 0 ;
18588 int res1 = 0 ;
18589 wxPoint temp2 ;
18590 int val3 ;
18591 int ecode3 = 0 ;
18592 PyObject * obj0 = 0 ;
18593 PyObject * obj1 = 0 ;
18594 PyObject * obj2 = 0 ;
18595 char * kwnames[] = {
18596 (char *) "self",(char *) "pt",(char *) "radius", NULL
18597 };
18598
18599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18601 if (!SWIG_IsOK(res1)) {
18602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18603 }
18604 arg1 = reinterpret_cast< wxDC * >(argp1);
18605 {
18606 arg2 = &temp2;
18607 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18608 }
18609 ecode3 = SWIG_AsVal_int(obj2, &val3);
18610 if (!SWIG_IsOK(ecode3)) {
18611 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18612 }
18613 arg3 = static_cast< int >(val3);
18614 {
18615 PyThreadState* __tstate = wxPyBeginAllowThreads();
18616 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18617 wxPyEndAllowThreads(__tstate);
18618 if (PyErr_Occurred()) SWIG_fail;
18619 }
18620 resultobj = SWIG_Py_Void();
18621 return resultobj;
18622 fail:
18623 return NULL;
18624 }
18625
18626
18627 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18628 PyObject *resultobj = 0;
18629 wxDC *arg1 = (wxDC *) 0 ;
18630 int arg2 ;
18631 int arg3 ;
18632 int arg4 ;
18633 int arg5 ;
18634 void *argp1 = 0 ;
18635 int res1 = 0 ;
18636 int val2 ;
18637 int ecode2 = 0 ;
18638 int val3 ;
18639 int ecode3 = 0 ;
18640 int val4 ;
18641 int ecode4 = 0 ;
18642 int val5 ;
18643 int ecode5 = 0 ;
18644 PyObject * obj0 = 0 ;
18645 PyObject * obj1 = 0 ;
18646 PyObject * obj2 = 0 ;
18647 PyObject * obj3 = 0 ;
18648 PyObject * obj4 = 0 ;
18649 char * kwnames[] = {
18650 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18651 };
18652
18653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18655 if (!SWIG_IsOK(res1)) {
18656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18657 }
18658 arg1 = reinterpret_cast< wxDC * >(argp1);
18659 ecode2 = SWIG_AsVal_int(obj1, &val2);
18660 if (!SWIG_IsOK(ecode2)) {
18661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
18662 }
18663 arg2 = static_cast< int >(val2);
18664 ecode3 = SWIG_AsVal_int(obj2, &val3);
18665 if (!SWIG_IsOK(ecode3)) {
18666 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
18667 }
18668 arg3 = static_cast< int >(val3);
18669 ecode4 = SWIG_AsVal_int(obj3, &val4);
18670 if (!SWIG_IsOK(ecode4)) {
18671 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
18672 }
18673 arg4 = static_cast< int >(val4);
18674 ecode5 = SWIG_AsVal_int(obj4, &val5);
18675 if (!SWIG_IsOK(ecode5)) {
18676 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
18677 }
18678 arg5 = static_cast< int >(val5);
18679 {
18680 PyThreadState* __tstate = wxPyBeginAllowThreads();
18681 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
18682 wxPyEndAllowThreads(__tstate);
18683 if (PyErr_Occurred()) SWIG_fail;
18684 }
18685 resultobj = SWIG_Py_Void();
18686 return resultobj;
18687 fail:
18688 return NULL;
18689 }
18690
18691
18692 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18693 PyObject *resultobj = 0;
18694 wxDC *arg1 = (wxDC *) 0 ;
18695 wxRect *arg2 = 0 ;
18696 void *argp1 = 0 ;
18697 int res1 = 0 ;
18698 wxRect temp2 ;
18699 PyObject * obj0 = 0 ;
18700 PyObject * obj1 = 0 ;
18701 char * kwnames[] = {
18702 (char *) "self",(char *) "rect", NULL
18703 };
18704
18705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
18706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18707 if (!SWIG_IsOK(res1)) {
18708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
18709 }
18710 arg1 = reinterpret_cast< wxDC * >(argp1);
18711 {
18712 arg2 = &temp2;
18713 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18714 }
18715 {
18716 PyThreadState* __tstate = wxPyBeginAllowThreads();
18717 (arg1)->DrawEllipse((wxRect const &)*arg2);
18718 wxPyEndAllowThreads(__tstate);
18719 if (PyErr_Occurred()) SWIG_fail;
18720 }
18721 resultobj = SWIG_Py_Void();
18722 return resultobj;
18723 fail:
18724 return NULL;
18725 }
18726
18727
18728 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18729 PyObject *resultobj = 0;
18730 wxDC *arg1 = (wxDC *) 0 ;
18731 wxPoint *arg2 = 0 ;
18732 wxSize *arg3 = 0 ;
18733 void *argp1 = 0 ;
18734 int res1 = 0 ;
18735 wxPoint temp2 ;
18736 wxSize temp3 ;
18737 PyObject * obj0 = 0 ;
18738 PyObject * obj1 = 0 ;
18739 PyObject * obj2 = 0 ;
18740 char * kwnames[] = {
18741 (char *) "self",(char *) "pt",(char *) "sz", NULL
18742 };
18743
18744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18746 if (!SWIG_IsOK(res1)) {
18747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18748 }
18749 arg1 = reinterpret_cast< wxDC * >(argp1);
18750 {
18751 arg2 = &temp2;
18752 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18753 }
18754 {
18755 arg3 = &temp3;
18756 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18757 }
18758 {
18759 PyThreadState* __tstate = wxPyBeginAllowThreads();
18760 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
18761 wxPyEndAllowThreads(__tstate);
18762 if (PyErr_Occurred()) SWIG_fail;
18763 }
18764 resultobj = SWIG_Py_Void();
18765 return resultobj;
18766 fail:
18767 return NULL;
18768 }
18769
18770
18771 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18772 PyObject *resultobj = 0;
18773 wxDC *arg1 = (wxDC *) 0 ;
18774 wxIcon *arg2 = 0 ;
18775 int arg3 ;
18776 int arg4 ;
18777 void *argp1 = 0 ;
18778 int res1 = 0 ;
18779 void *argp2 = 0 ;
18780 int res2 = 0 ;
18781 int val3 ;
18782 int ecode3 = 0 ;
18783 int val4 ;
18784 int ecode4 = 0 ;
18785 PyObject * obj0 = 0 ;
18786 PyObject * obj1 = 0 ;
18787 PyObject * obj2 = 0 ;
18788 PyObject * obj3 = 0 ;
18789 char * kwnames[] = {
18790 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
18791 };
18792
18793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18795 if (!SWIG_IsOK(res1)) {
18796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
18797 }
18798 arg1 = reinterpret_cast< wxDC * >(argp1);
18799 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18800 if (!SWIG_IsOK(res2)) {
18801 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18802 }
18803 if (!argp2) {
18804 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18805 }
18806 arg2 = reinterpret_cast< wxIcon * >(argp2);
18807 ecode3 = SWIG_AsVal_int(obj2, &val3);
18808 if (!SWIG_IsOK(ecode3)) {
18809 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
18810 }
18811 arg3 = static_cast< int >(val3);
18812 ecode4 = SWIG_AsVal_int(obj3, &val4);
18813 if (!SWIG_IsOK(ecode4)) {
18814 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
18815 }
18816 arg4 = static_cast< int >(val4);
18817 {
18818 PyThreadState* __tstate = wxPyBeginAllowThreads();
18819 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
18820 wxPyEndAllowThreads(__tstate);
18821 if (PyErr_Occurred()) SWIG_fail;
18822 }
18823 resultobj = SWIG_Py_Void();
18824 return resultobj;
18825 fail:
18826 return NULL;
18827 }
18828
18829
18830 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18831 PyObject *resultobj = 0;
18832 wxDC *arg1 = (wxDC *) 0 ;
18833 wxIcon *arg2 = 0 ;
18834 wxPoint *arg3 = 0 ;
18835 void *argp1 = 0 ;
18836 int res1 = 0 ;
18837 void *argp2 = 0 ;
18838 int res2 = 0 ;
18839 wxPoint temp3 ;
18840 PyObject * obj0 = 0 ;
18841 PyObject * obj1 = 0 ;
18842 PyObject * obj2 = 0 ;
18843 char * kwnames[] = {
18844 (char *) "self",(char *) "icon",(char *) "pt", NULL
18845 };
18846
18847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18849 if (!SWIG_IsOK(res1)) {
18850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18851 }
18852 arg1 = reinterpret_cast< wxDC * >(argp1);
18853 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18854 if (!SWIG_IsOK(res2)) {
18855 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18856 }
18857 if (!argp2) {
18858 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18859 }
18860 arg2 = reinterpret_cast< wxIcon * >(argp2);
18861 {
18862 arg3 = &temp3;
18863 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18864 }
18865 {
18866 PyThreadState* __tstate = wxPyBeginAllowThreads();
18867 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
18868 wxPyEndAllowThreads(__tstate);
18869 if (PyErr_Occurred()) SWIG_fail;
18870 }
18871 resultobj = SWIG_Py_Void();
18872 return resultobj;
18873 fail:
18874 return NULL;
18875 }
18876
18877
18878 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18879 PyObject *resultobj = 0;
18880 wxDC *arg1 = (wxDC *) 0 ;
18881 wxBitmap *arg2 = 0 ;
18882 int arg3 ;
18883 int arg4 ;
18884 bool arg5 = (bool) false ;
18885 void *argp1 = 0 ;
18886 int res1 = 0 ;
18887 void *argp2 = 0 ;
18888 int res2 = 0 ;
18889 int val3 ;
18890 int ecode3 = 0 ;
18891 int val4 ;
18892 int ecode4 = 0 ;
18893 bool val5 ;
18894 int ecode5 = 0 ;
18895 PyObject * obj0 = 0 ;
18896 PyObject * obj1 = 0 ;
18897 PyObject * obj2 = 0 ;
18898 PyObject * obj3 = 0 ;
18899 PyObject * obj4 = 0 ;
18900 char * kwnames[] = {
18901 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
18902 };
18903
18904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18906 if (!SWIG_IsOK(res1)) {
18907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
18908 }
18909 arg1 = reinterpret_cast< wxDC * >(argp1);
18910 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18911 if (!SWIG_IsOK(res2)) {
18912 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18913 }
18914 if (!argp2) {
18915 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18916 }
18917 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18918 ecode3 = SWIG_AsVal_int(obj2, &val3);
18919 if (!SWIG_IsOK(ecode3)) {
18920 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
18921 }
18922 arg3 = static_cast< int >(val3);
18923 ecode4 = SWIG_AsVal_int(obj3, &val4);
18924 if (!SWIG_IsOK(ecode4)) {
18925 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
18926 }
18927 arg4 = static_cast< int >(val4);
18928 if (obj4) {
18929 ecode5 = SWIG_AsVal_bool(obj4, &val5);
18930 if (!SWIG_IsOK(ecode5)) {
18931 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
18932 }
18933 arg5 = static_cast< bool >(val5);
18934 }
18935 {
18936 PyThreadState* __tstate = wxPyBeginAllowThreads();
18937 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
18938 wxPyEndAllowThreads(__tstate);
18939 if (PyErr_Occurred()) SWIG_fail;
18940 }
18941 resultobj = SWIG_Py_Void();
18942 return resultobj;
18943 fail:
18944 return NULL;
18945 }
18946
18947
18948 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18949 PyObject *resultobj = 0;
18950 wxDC *arg1 = (wxDC *) 0 ;
18951 wxBitmap *arg2 = 0 ;
18952 wxPoint *arg3 = 0 ;
18953 bool arg4 = (bool) false ;
18954 void *argp1 = 0 ;
18955 int res1 = 0 ;
18956 void *argp2 = 0 ;
18957 int res2 = 0 ;
18958 wxPoint temp3 ;
18959 bool val4 ;
18960 int ecode4 = 0 ;
18961 PyObject * obj0 = 0 ;
18962 PyObject * obj1 = 0 ;
18963 PyObject * obj2 = 0 ;
18964 PyObject * obj3 = 0 ;
18965 char * kwnames[] = {
18966 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
18967 };
18968
18969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) 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_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18973 }
18974 arg1 = reinterpret_cast< wxDC * >(argp1);
18975 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18976 if (!SWIG_IsOK(res2)) {
18977 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18978 }
18979 if (!argp2) {
18980 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18981 }
18982 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18983 {
18984 arg3 = &temp3;
18985 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18986 }
18987 if (obj3) {
18988 ecode4 = SWIG_AsVal_bool(obj3, &val4);
18989 if (!SWIG_IsOK(ecode4)) {
18990 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
18991 }
18992 arg4 = static_cast< bool >(val4);
18993 }
18994 {
18995 PyThreadState* __tstate = wxPyBeginAllowThreads();
18996 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
18997 wxPyEndAllowThreads(__tstate);
18998 if (PyErr_Occurred()) SWIG_fail;
18999 }
19000 resultobj = SWIG_Py_Void();
19001 return resultobj;
19002 fail:
19003 return NULL;
19004 }
19005
19006
19007 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19008 PyObject *resultobj = 0;
19009 wxDC *arg1 = (wxDC *) 0 ;
19010 wxString *arg2 = 0 ;
19011 int arg3 ;
19012 int arg4 ;
19013 void *argp1 = 0 ;
19014 int res1 = 0 ;
19015 bool temp2 = false ;
19016 int val3 ;
19017 int ecode3 = 0 ;
19018 int val4 ;
19019 int ecode4 = 0 ;
19020 PyObject * obj0 = 0 ;
19021 PyObject * obj1 = 0 ;
19022 PyObject * obj2 = 0 ;
19023 PyObject * obj3 = 0 ;
19024 char * kwnames[] = {
19025 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19026 };
19027
19028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19030 if (!SWIG_IsOK(res1)) {
19031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19032 }
19033 arg1 = reinterpret_cast< wxDC * >(argp1);
19034 {
19035 arg2 = wxString_in_helper(obj1);
19036 if (arg2 == NULL) SWIG_fail;
19037 temp2 = true;
19038 }
19039 ecode3 = SWIG_AsVal_int(obj2, &val3);
19040 if (!SWIG_IsOK(ecode3)) {
19041 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19042 }
19043 arg3 = static_cast< int >(val3);
19044 ecode4 = SWIG_AsVal_int(obj3, &val4);
19045 if (!SWIG_IsOK(ecode4)) {
19046 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19047 }
19048 arg4 = static_cast< int >(val4);
19049 {
19050 PyThreadState* __tstate = wxPyBeginAllowThreads();
19051 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19052 wxPyEndAllowThreads(__tstate);
19053 if (PyErr_Occurred()) SWIG_fail;
19054 }
19055 resultobj = SWIG_Py_Void();
19056 {
19057 if (temp2)
19058 delete arg2;
19059 }
19060 return resultobj;
19061 fail:
19062 {
19063 if (temp2)
19064 delete arg2;
19065 }
19066 return NULL;
19067 }
19068
19069
19070 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19071 PyObject *resultobj = 0;
19072 wxDC *arg1 = (wxDC *) 0 ;
19073 wxString *arg2 = 0 ;
19074 wxPoint *arg3 = 0 ;
19075 void *argp1 = 0 ;
19076 int res1 = 0 ;
19077 bool temp2 = false ;
19078 wxPoint temp3 ;
19079 PyObject * obj0 = 0 ;
19080 PyObject * obj1 = 0 ;
19081 PyObject * obj2 = 0 ;
19082 char * kwnames[] = {
19083 (char *) "self",(char *) "text",(char *) "pt", NULL
19084 };
19085
19086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19088 if (!SWIG_IsOK(res1)) {
19089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19090 }
19091 arg1 = reinterpret_cast< wxDC * >(argp1);
19092 {
19093 arg2 = wxString_in_helper(obj1);
19094 if (arg2 == NULL) SWIG_fail;
19095 temp2 = true;
19096 }
19097 {
19098 arg3 = &temp3;
19099 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19100 }
19101 {
19102 PyThreadState* __tstate = wxPyBeginAllowThreads();
19103 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19104 wxPyEndAllowThreads(__tstate);
19105 if (PyErr_Occurred()) SWIG_fail;
19106 }
19107 resultobj = SWIG_Py_Void();
19108 {
19109 if (temp2)
19110 delete arg2;
19111 }
19112 return resultobj;
19113 fail:
19114 {
19115 if (temp2)
19116 delete arg2;
19117 }
19118 return NULL;
19119 }
19120
19121
19122 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19123 PyObject *resultobj = 0;
19124 wxDC *arg1 = (wxDC *) 0 ;
19125 wxString *arg2 = 0 ;
19126 int arg3 ;
19127 int arg4 ;
19128 double arg5 ;
19129 void *argp1 = 0 ;
19130 int res1 = 0 ;
19131 bool temp2 = false ;
19132 int val3 ;
19133 int ecode3 = 0 ;
19134 int val4 ;
19135 int ecode4 = 0 ;
19136 double val5 ;
19137 int ecode5 = 0 ;
19138 PyObject * obj0 = 0 ;
19139 PyObject * obj1 = 0 ;
19140 PyObject * obj2 = 0 ;
19141 PyObject * obj3 = 0 ;
19142 PyObject * obj4 = 0 ;
19143 char * kwnames[] = {
19144 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19145 };
19146
19147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19149 if (!SWIG_IsOK(res1)) {
19150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19151 }
19152 arg1 = reinterpret_cast< wxDC * >(argp1);
19153 {
19154 arg2 = wxString_in_helper(obj1);
19155 if (arg2 == NULL) SWIG_fail;
19156 temp2 = true;
19157 }
19158 ecode3 = SWIG_AsVal_int(obj2, &val3);
19159 if (!SWIG_IsOK(ecode3)) {
19160 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19161 }
19162 arg3 = static_cast< int >(val3);
19163 ecode4 = SWIG_AsVal_int(obj3, &val4);
19164 if (!SWIG_IsOK(ecode4)) {
19165 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19166 }
19167 arg4 = static_cast< int >(val4);
19168 ecode5 = SWIG_AsVal_double(obj4, &val5);
19169 if (!SWIG_IsOK(ecode5)) {
19170 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19171 }
19172 arg5 = static_cast< double >(val5);
19173 {
19174 PyThreadState* __tstate = wxPyBeginAllowThreads();
19175 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19176 wxPyEndAllowThreads(__tstate);
19177 if (PyErr_Occurred()) SWIG_fail;
19178 }
19179 resultobj = SWIG_Py_Void();
19180 {
19181 if (temp2)
19182 delete arg2;
19183 }
19184 return resultobj;
19185 fail:
19186 {
19187 if (temp2)
19188 delete arg2;
19189 }
19190 return NULL;
19191 }
19192
19193
19194 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19195 PyObject *resultobj = 0;
19196 wxDC *arg1 = (wxDC *) 0 ;
19197 wxString *arg2 = 0 ;
19198 wxPoint *arg3 = 0 ;
19199 double arg4 ;
19200 void *argp1 = 0 ;
19201 int res1 = 0 ;
19202 bool temp2 = false ;
19203 wxPoint temp3 ;
19204 double val4 ;
19205 int ecode4 = 0 ;
19206 PyObject * obj0 = 0 ;
19207 PyObject * obj1 = 0 ;
19208 PyObject * obj2 = 0 ;
19209 PyObject * obj3 = 0 ;
19210 char * kwnames[] = {
19211 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19212 };
19213
19214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19216 if (!SWIG_IsOK(res1)) {
19217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19218 }
19219 arg1 = reinterpret_cast< wxDC * >(argp1);
19220 {
19221 arg2 = wxString_in_helper(obj1);
19222 if (arg2 == NULL) SWIG_fail;
19223 temp2 = true;
19224 }
19225 {
19226 arg3 = &temp3;
19227 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19228 }
19229 ecode4 = SWIG_AsVal_double(obj3, &val4);
19230 if (!SWIG_IsOK(ecode4)) {
19231 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19232 }
19233 arg4 = static_cast< double >(val4);
19234 {
19235 PyThreadState* __tstate = wxPyBeginAllowThreads();
19236 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19237 wxPyEndAllowThreads(__tstate);
19238 if (PyErr_Occurred()) SWIG_fail;
19239 }
19240 resultobj = SWIG_Py_Void();
19241 {
19242 if (temp2)
19243 delete arg2;
19244 }
19245 return resultobj;
19246 fail:
19247 {
19248 if (temp2)
19249 delete arg2;
19250 }
19251 return NULL;
19252 }
19253
19254
19255 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19256 PyObject *resultobj = 0;
19257 wxDC *arg1 = (wxDC *) 0 ;
19258 int arg2 ;
19259 int arg3 ;
19260 int arg4 ;
19261 int arg5 ;
19262 wxDC *arg6 = (wxDC *) 0 ;
19263 int arg7 ;
19264 int arg8 ;
19265 int arg9 = (int) wxCOPY ;
19266 bool arg10 = (bool) false ;
19267 int arg11 = (int) -1 ;
19268 int arg12 = (int) -1 ;
19269 bool result;
19270 void *argp1 = 0 ;
19271 int res1 = 0 ;
19272 int val2 ;
19273 int ecode2 = 0 ;
19274 int val3 ;
19275 int ecode3 = 0 ;
19276 int val4 ;
19277 int ecode4 = 0 ;
19278 int val5 ;
19279 int ecode5 = 0 ;
19280 void *argp6 = 0 ;
19281 int res6 = 0 ;
19282 int val7 ;
19283 int ecode7 = 0 ;
19284 int val8 ;
19285 int ecode8 = 0 ;
19286 int val9 ;
19287 int ecode9 = 0 ;
19288 bool val10 ;
19289 int ecode10 = 0 ;
19290 int val11 ;
19291 int ecode11 = 0 ;
19292 int val12 ;
19293 int ecode12 = 0 ;
19294 PyObject * obj0 = 0 ;
19295 PyObject * obj1 = 0 ;
19296 PyObject * obj2 = 0 ;
19297 PyObject * obj3 = 0 ;
19298 PyObject * obj4 = 0 ;
19299 PyObject * obj5 = 0 ;
19300 PyObject * obj6 = 0 ;
19301 PyObject * obj7 = 0 ;
19302 PyObject * obj8 = 0 ;
19303 PyObject * obj9 = 0 ;
19304 PyObject * obj10 = 0 ;
19305 PyObject * obj11 = 0 ;
19306 char * kwnames[] = {
19307 (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
19308 };
19309
19310 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;
19311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19312 if (!SWIG_IsOK(res1)) {
19313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19314 }
19315 arg1 = reinterpret_cast< wxDC * >(argp1);
19316 ecode2 = SWIG_AsVal_int(obj1, &val2);
19317 if (!SWIG_IsOK(ecode2)) {
19318 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19319 }
19320 arg2 = static_cast< int >(val2);
19321 ecode3 = SWIG_AsVal_int(obj2, &val3);
19322 if (!SWIG_IsOK(ecode3)) {
19323 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19324 }
19325 arg3 = static_cast< int >(val3);
19326 ecode4 = SWIG_AsVal_int(obj3, &val4);
19327 if (!SWIG_IsOK(ecode4)) {
19328 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19329 }
19330 arg4 = static_cast< int >(val4);
19331 ecode5 = SWIG_AsVal_int(obj4, &val5);
19332 if (!SWIG_IsOK(ecode5)) {
19333 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19334 }
19335 arg5 = static_cast< int >(val5);
19336 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19337 if (!SWIG_IsOK(res6)) {
19338 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19339 }
19340 arg6 = reinterpret_cast< wxDC * >(argp6);
19341 ecode7 = SWIG_AsVal_int(obj6, &val7);
19342 if (!SWIG_IsOK(ecode7)) {
19343 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19344 }
19345 arg7 = static_cast< int >(val7);
19346 ecode8 = SWIG_AsVal_int(obj7, &val8);
19347 if (!SWIG_IsOK(ecode8)) {
19348 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19349 }
19350 arg8 = static_cast< int >(val8);
19351 if (obj8) {
19352 ecode9 = SWIG_AsVal_int(obj8, &val9);
19353 if (!SWIG_IsOK(ecode9)) {
19354 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19355 }
19356 arg9 = static_cast< int >(val9);
19357 }
19358 if (obj9) {
19359 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19360 if (!SWIG_IsOK(ecode10)) {
19361 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19362 }
19363 arg10 = static_cast< bool >(val10);
19364 }
19365 if (obj10) {
19366 ecode11 = SWIG_AsVal_int(obj10, &val11);
19367 if (!SWIG_IsOK(ecode11)) {
19368 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19369 }
19370 arg11 = static_cast< int >(val11);
19371 }
19372 if (obj11) {
19373 ecode12 = SWIG_AsVal_int(obj11, &val12);
19374 if (!SWIG_IsOK(ecode12)) {
19375 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19376 }
19377 arg12 = static_cast< int >(val12);
19378 }
19379 {
19380 PyThreadState* __tstate = wxPyBeginAllowThreads();
19381 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19382 wxPyEndAllowThreads(__tstate);
19383 if (PyErr_Occurred()) SWIG_fail;
19384 }
19385 {
19386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19387 }
19388 return resultobj;
19389 fail:
19390 return NULL;
19391 }
19392
19393
19394 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19395 PyObject *resultobj = 0;
19396 wxDC *arg1 = (wxDC *) 0 ;
19397 wxPoint *arg2 = 0 ;
19398 wxSize *arg3 = 0 ;
19399 wxDC *arg4 = (wxDC *) 0 ;
19400 wxPoint *arg5 = 0 ;
19401 int arg6 = (int) wxCOPY ;
19402 bool arg7 = (bool) false ;
19403 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19404 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19405 bool result;
19406 void *argp1 = 0 ;
19407 int res1 = 0 ;
19408 wxPoint temp2 ;
19409 wxSize temp3 ;
19410 void *argp4 = 0 ;
19411 int res4 = 0 ;
19412 wxPoint temp5 ;
19413 int val6 ;
19414 int ecode6 = 0 ;
19415 bool val7 ;
19416 int ecode7 = 0 ;
19417 wxPoint temp8 ;
19418 PyObject * obj0 = 0 ;
19419 PyObject * obj1 = 0 ;
19420 PyObject * obj2 = 0 ;
19421 PyObject * obj3 = 0 ;
19422 PyObject * obj4 = 0 ;
19423 PyObject * obj5 = 0 ;
19424 PyObject * obj6 = 0 ;
19425 PyObject * obj7 = 0 ;
19426 char * kwnames[] = {
19427 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19428 };
19429
19430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19432 if (!SWIG_IsOK(res1)) {
19433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19434 }
19435 arg1 = reinterpret_cast< wxDC * >(argp1);
19436 {
19437 arg2 = &temp2;
19438 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19439 }
19440 {
19441 arg3 = &temp3;
19442 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19443 }
19444 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19445 if (!SWIG_IsOK(res4)) {
19446 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19447 }
19448 arg4 = reinterpret_cast< wxDC * >(argp4);
19449 {
19450 arg5 = &temp5;
19451 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19452 }
19453 if (obj5) {
19454 ecode6 = SWIG_AsVal_int(obj5, &val6);
19455 if (!SWIG_IsOK(ecode6)) {
19456 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19457 }
19458 arg6 = static_cast< int >(val6);
19459 }
19460 if (obj6) {
19461 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19462 if (!SWIG_IsOK(ecode7)) {
19463 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19464 }
19465 arg7 = static_cast< bool >(val7);
19466 }
19467 if (obj7) {
19468 {
19469 arg8 = &temp8;
19470 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
19471 }
19472 }
19473 {
19474 PyThreadState* __tstate = wxPyBeginAllowThreads();
19475 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19476 wxPyEndAllowThreads(__tstate);
19477 if (PyErr_Occurred()) SWIG_fail;
19478 }
19479 {
19480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19481 }
19482 return resultobj;
19483 fail:
19484 return NULL;
19485 }
19486
19487
19488 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19489 PyObject *resultobj = 0;
19490 wxDC *arg1 = (wxDC *) 0 ;
19491 int arg2 ;
19492 int arg3 ;
19493 int arg4 ;
19494 int arg5 ;
19495 void *argp1 = 0 ;
19496 int res1 = 0 ;
19497 int val2 ;
19498 int ecode2 = 0 ;
19499 int val3 ;
19500 int ecode3 = 0 ;
19501 int val4 ;
19502 int ecode4 = 0 ;
19503 int val5 ;
19504 int ecode5 = 0 ;
19505 PyObject * obj0 = 0 ;
19506 PyObject * obj1 = 0 ;
19507 PyObject * obj2 = 0 ;
19508 PyObject * obj3 = 0 ;
19509 PyObject * obj4 = 0 ;
19510 char * kwnames[] = {
19511 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19512 };
19513
19514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19516 if (!SWIG_IsOK(res1)) {
19517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19518 }
19519 arg1 = reinterpret_cast< wxDC * >(argp1);
19520 ecode2 = SWIG_AsVal_int(obj1, &val2);
19521 if (!SWIG_IsOK(ecode2)) {
19522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19523 }
19524 arg2 = static_cast< int >(val2);
19525 ecode3 = SWIG_AsVal_int(obj2, &val3);
19526 if (!SWIG_IsOK(ecode3)) {
19527 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19528 }
19529 arg3 = static_cast< int >(val3);
19530 ecode4 = SWIG_AsVal_int(obj3, &val4);
19531 if (!SWIG_IsOK(ecode4)) {
19532 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19533 }
19534 arg4 = static_cast< int >(val4);
19535 ecode5 = SWIG_AsVal_int(obj4, &val5);
19536 if (!SWIG_IsOK(ecode5)) {
19537 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19538 }
19539 arg5 = static_cast< int >(val5);
19540 {
19541 PyThreadState* __tstate = wxPyBeginAllowThreads();
19542 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19543 wxPyEndAllowThreads(__tstate);
19544 if (PyErr_Occurred()) SWIG_fail;
19545 }
19546 resultobj = SWIG_Py_Void();
19547 return resultobj;
19548 fail:
19549 return NULL;
19550 }
19551
19552
19553 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19554 PyObject *resultobj = 0;
19555 wxDC *arg1 = (wxDC *) 0 ;
19556 wxPoint *arg2 = 0 ;
19557 wxSize *arg3 = 0 ;
19558 void *argp1 = 0 ;
19559 int res1 = 0 ;
19560 wxPoint temp2 ;
19561 wxSize temp3 ;
19562 PyObject * obj0 = 0 ;
19563 PyObject * obj1 = 0 ;
19564 PyObject * obj2 = 0 ;
19565 char * kwnames[] = {
19566 (char *) "self",(char *) "pt",(char *) "sz", NULL
19567 };
19568
19569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19571 if (!SWIG_IsOK(res1)) {
19572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19573 }
19574 arg1 = reinterpret_cast< wxDC * >(argp1);
19575 {
19576 arg2 = &temp2;
19577 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19578 }
19579 {
19580 arg3 = &temp3;
19581 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19582 }
19583 {
19584 PyThreadState* __tstate = wxPyBeginAllowThreads();
19585 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19586 wxPyEndAllowThreads(__tstate);
19587 if (PyErr_Occurred()) SWIG_fail;
19588 }
19589 resultobj = SWIG_Py_Void();
19590 return resultobj;
19591 fail:
19592 return NULL;
19593 }
19594
19595
19596 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19597 PyObject *resultobj = 0;
19598 wxDC *arg1 = (wxDC *) 0 ;
19599 wxRegion *arg2 = 0 ;
19600 void *argp1 = 0 ;
19601 int res1 = 0 ;
19602 void *argp2 = 0 ;
19603 int res2 = 0 ;
19604 PyObject * obj0 = 0 ;
19605 PyObject * obj1 = 0 ;
19606 char * kwnames[] = {
19607 (char *) "self",(char *) "region", NULL
19608 };
19609
19610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19612 if (!SWIG_IsOK(res1)) {
19613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19614 }
19615 arg1 = reinterpret_cast< wxDC * >(argp1);
19616 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19617 if (!SWIG_IsOK(res2)) {
19618 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19619 }
19620 if (!argp2) {
19621 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19622 }
19623 arg2 = reinterpret_cast< wxRegion * >(argp2);
19624 {
19625 PyThreadState* __tstate = wxPyBeginAllowThreads();
19626 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
19627 wxPyEndAllowThreads(__tstate);
19628 if (PyErr_Occurred()) SWIG_fail;
19629 }
19630 resultobj = SWIG_Py_Void();
19631 return resultobj;
19632 fail:
19633 return NULL;
19634 }
19635
19636
19637 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19638 PyObject *resultobj = 0;
19639 wxDC *arg1 = (wxDC *) 0 ;
19640 wxRect *arg2 = 0 ;
19641 void *argp1 = 0 ;
19642 int res1 = 0 ;
19643 wxRect temp2 ;
19644 PyObject * obj0 = 0 ;
19645 PyObject * obj1 = 0 ;
19646 char * kwnames[] = {
19647 (char *) "self",(char *) "rect", NULL
19648 };
19649
19650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
19651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19652 if (!SWIG_IsOK(res1)) {
19653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
19654 }
19655 arg1 = reinterpret_cast< wxDC * >(argp1);
19656 {
19657 arg2 = &temp2;
19658 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19659 }
19660 {
19661 PyThreadState* __tstate = wxPyBeginAllowThreads();
19662 (arg1)->SetClippingRegion((wxRect const &)*arg2);
19663 wxPyEndAllowThreads(__tstate);
19664 if (PyErr_Occurred()) SWIG_fail;
19665 }
19666 resultobj = SWIG_Py_Void();
19667 return resultobj;
19668 fail:
19669 return NULL;
19670 }
19671
19672
19673 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19674 PyObject *resultobj = 0;
19675 wxDC *arg1 = (wxDC *) 0 ;
19676 int arg2 ;
19677 wxPoint *arg3 = (wxPoint *) 0 ;
19678 int arg4 = (int) 0 ;
19679 int arg5 = (int) 0 ;
19680 void *argp1 = 0 ;
19681 int res1 = 0 ;
19682 int val4 ;
19683 int ecode4 = 0 ;
19684 int val5 ;
19685 int ecode5 = 0 ;
19686 PyObject * obj0 = 0 ;
19687 PyObject * obj1 = 0 ;
19688 PyObject * obj2 = 0 ;
19689 PyObject * obj3 = 0 ;
19690 char * kwnames[] = {
19691 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
19692 };
19693
19694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19696 if (!SWIG_IsOK(res1)) {
19697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
19698 }
19699 arg1 = reinterpret_cast< wxDC * >(argp1);
19700 {
19701 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19702 if (arg3 == NULL) SWIG_fail;
19703 }
19704 if (obj2) {
19705 ecode4 = SWIG_AsVal_int(obj2, &val4);
19706 if (!SWIG_IsOK(ecode4)) {
19707 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
19708 }
19709 arg4 = static_cast< int >(val4);
19710 }
19711 if (obj3) {
19712 ecode5 = SWIG_AsVal_int(obj3, &val5);
19713 if (!SWIG_IsOK(ecode5)) {
19714 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
19715 }
19716 arg5 = static_cast< int >(val5);
19717 }
19718 {
19719 PyThreadState* __tstate = wxPyBeginAllowThreads();
19720 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
19721 wxPyEndAllowThreads(__tstate);
19722 if (PyErr_Occurred()) SWIG_fail;
19723 }
19724 resultobj = SWIG_Py_Void();
19725 {
19726 if (arg3) delete [] arg3;
19727 }
19728 return resultobj;
19729 fail:
19730 {
19731 if (arg3) delete [] arg3;
19732 }
19733 return NULL;
19734 }
19735
19736
19737 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19738 PyObject *resultobj = 0;
19739 wxDC *arg1 = (wxDC *) 0 ;
19740 int arg2 ;
19741 wxPoint *arg3 = (wxPoint *) 0 ;
19742 int arg4 = (int) 0 ;
19743 int arg5 = (int) 0 ;
19744 int arg6 = (int) wxODDEVEN_RULE ;
19745 void *argp1 = 0 ;
19746 int res1 = 0 ;
19747 int val4 ;
19748 int ecode4 = 0 ;
19749 int val5 ;
19750 int ecode5 = 0 ;
19751 int val6 ;
19752 int ecode6 = 0 ;
19753 PyObject * obj0 = 0 ;
19754 PyObject * obj1 = 0 ;
19755 PyObject * obj2 = 0 ;
19756 PyObject * obj3 = 0 ;
19757 PyObject * obj4 = 0 ;
19758 char * kwnames[] = {
19759 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
19760 };
19761
19762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19764 if (!SWIG_IsOK(res1)) {
19765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
19766 }
19767 arg1 = reinterpret_cast< wxDC * >(argp1);
19768 {
19769 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19770 if (arg3 == NULL) SWIG_fail;
19771 }
19772 if (obj2) {
19773 ecode4 = SWIG_AsVal_int(obj2, &val4);
19774 if (!SWIG_IsOK(ecode4)) {
19775 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
19776 }
19777 arg4 = static_cast< int >(val4);
19778 }
19779 if (obj3) {
19780 ecode5 = SWIG_AsVal_int(obj3, &val5);
19781 if (!SWIG_IsOK(ecode5)) {
19782 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
19783 }
19784 arg5 = static_cast< int >(val5);
19785 }
19786 if (obj4) {
19787 ecode6 = SWIG_AsVal_int(obj4, &val6);
19788 if (!SWIG_IsOK(ecode6)) {
19789 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
19790 }
19791 arg6 = static_cast< int >(val6);
19792 }
19793 {
19794 PyThreadState* __tstate = wxPyBeginAllowThreads();
19795 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
19796 wxPyEndAllowThreads(__tstate);
19797 if (PyErr_Occurred()) SWIG_fail;
19798 }
19799 resultobj = SWIG_Py_Void();
19800 {
19801 if (arg3) delete [] arg3;
19802 }
19803 return resultobj;
19804 fail:
19805 {
19806 if (arg3) delete [] arg3;
19807 }
19808 return NULL;
19809 }
19810
19811
19812 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19813 PyObject *resultobj = 0;
19814 wxDC *arg1 = (wxDC *) 0 ;
19815 wxString *arg2 = 0 ;
19816 wxRect *arg3 = 0 ;
19817 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19818 int arg5 = (int) -1 ;
19819 void *argp1 = 0 ;
19820 int res1 = 0 ;
19821 bool temp2 = false ;
19822 wxRect temp3 ;
19823 int val4 ;
19824 int ecode4 = 0 ;
19825 int val5 ;
19826 int ecode5 = 0 ;
19827 PyObject * obj0 = 0 ;
19828 PyObject * obj1 = 0 ;
19829 PyObject * obj2 = 0 ;
19830 PyObject * obj3 = 0 ;
19831 PyObject * obj4 = 0 ;
19832 char * kwnames[] = {
19833 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19834 };
19835
19836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19838 if (!SWIG_IsOK(res1)) {
19839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19840 }
19841 arg1 = reinterpret_cast< wxDC * >(argp1);
19842 {
19843 arg2 = wxString_in_helper(obj1);
19844 if (arg2 == NULL) SWIG_fail;
19845 temp2 = true;
19846 }
19847 {
19848 arg3 = &temp3;
19849 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
19850 }
19851 if (obj3) {
19852 ecode4 = SWIG_AsVal_int(obj3, &val4);
19853 if (!SWIG_IsOK(ecode4)) {
19854 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
19855 }
19856 arg4 = static_cast< int >(val4);
19857 }
19858 if (obj4) {
19859 ecode5 = SWIG_AsVal_int(obj4, &val5);
19860 if (!SWIG_IsOK(ecode5)) {
19861 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
19862 }
19863 arg5 = static_cast< int >(val5);
19864 }
19865 {
19866 PyThreadState* __tstate = wxPyBeginAllowThreads();
19867 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
19868 wxPyEndAllowThreads(__tstate);
19869 if (PyErr_Occurred()) SWIG_fail;
19870 }
19871 resultobj = SWIG_Py_Void();
19872 {
19873 if (temp2)
19874 delete arg2;
19875 }
19876 return resultobj;
19877 fail:
19878 {
19879 if (temp2)
19880 delete arg2;
19881 }
19882 return NULL;
19883 }
19884
19885
19886 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19887 PyObject *resultobj = 0;
19888 wxDC *arg1 = (wxDC *) 0 ;
19889 wxString *arg2 = 0 ;
19890 wxBitmap *arg3 = 0 ;
19891 wxRect *arg4 = 0 ;
19892 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19893 int arg6 = (int) -1 ;
19894 wxRect result;
19895 void *argp1 = 0 ;
19896 int res1 = 0 ;
19897 bool temp2 = false ;
19898 void *argp3 = 0 ;
19899 int res3 = 0 ;
19900 wxRect temp4 ;
19901 int val5 ;
19902 int ecode5 = 0 ;
19903 int val6 ;
19904 int ecode6 = 0 ;
19905 PyObject * obj0 = 0 ;
19906 PyObject * obj1 = 0 ;
19907 PyObject * obj2 = 0 ;
19908 PyObject * obj3 = 0 ;
19909 PyObject * obj4 = 0 ;
19910 PyObject * obj5 = 0 ;
19911 char * kwnames[] = {
19912 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19913 };
19914
19915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19917 if (!SWIG_IsOK(res1)) {
19918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19919 }
19920 arg1 = reinterpret_cast< wxDC * >(argp1);
19921 {
19922 arg2 = wxString_in_helper(obj1);
19923 if (arg2 == NULL) SWIG_fail;
19924 temp2 = true;
19925 }
19926 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
19927 if (!SWIG_IsOK(res3)) {
19928 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19929 }
19930 if (!argp3) {
19931 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19932 }
19933 arg3 = reinterpret_cast< wxBitmap * >(argp3);
19934 {
19935 arg4 = &temp4;
19936 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
19937 }
19938 if (obj4) {
19939 ecode5 = SWIG_AsVal_int(obj4, &val5);
19940 if (!SWIG_IsOK(ecode5)) {
19941 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
19942 }
19943 arg5 = static_cast< int >(val5);
19944 }
19945 if (obj5) {
19946 ecode6 = SWIG_AsVal_int(obj5, &val6);
19947 if (!SWIG_IsOK(ecode6)) {
19948 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
19949 }
19950 arg6 = static_cast< int >(val6);
19951 }
19952 {
19953 PyThreadState* __tstate = wxPyBeginAllowThreads();
19954 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
19955 wxPyEndAllowThreads(__tstate);
19956 if (PyErr_Occurred()) SWIG_fail;
19957 }
19958 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
19959 {
19960 if (temp2)
19961 delete arg2;
19962 }
19963 return resultobj;
19964 fail:
19965 {
19966 if (temp2)
19967 delete arg2;
19968 }
19969 return NULL;
19970 }
19971
19972
19973 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19974 PyObject *resultobj = 0;
19975 wxDC *arg1 = (wxDC *) 0 ;
19976 int arg2 ;
19977 wxPoint *arg3 = (wxPoint *) 0 ;
19978 void *argp1 = 0 ;
19979 int res1 = 0 ;
19980 PyObject * obj0 = 0 ;
19981 PyObject * obj1 = 0 ;
19982 char * kwnames[] = {
19983 (char *) "self",(char *) "points", NULL
19984 };
19985
19986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
19987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19988 if (!SWIG_IsOK(res1)) {
19989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
19990 }
19991 arg1 = reinterpret_cast< wxDC * >(argp1);
19992 {
19993 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19994 if (arg3 == NULL) SWIG_fail;
19995 }
19996 {
19997 PyThreadState* __tstate = wxPyBeginAllowThreads();
19998 (arg1)->DrawSpline(arg2,arg3);
19999 wxPyEndAllowThreads(__tstate);
20000 if (PyErr_Occurred()) SWIG_fail;
20001 }
20002 resultobj = SWIG_Py_Void();
20003 {
20004 if (arg3) delete [] arg3;
20005 }
20006 return resultobj;
20007 fail:
20008 {
20009 if (arg3) delete [] arg3;
20010 }
20011 return NULL;
20012 }
20013
20014
20015 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20016 PyObject *resultobj = 0;
20017 wxDC *arg1 = (wxDC *) 0 ;
20018 void *argp1 = 0 ;
20019 int res1 = 0 ;
20020 PyObject *swig_obj[1] ;
20021
20022 if (!args) SWIG_fail;
20023 swig_obj[0] = args;
20024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20025 if (!SWIG_IsOK(res1)) {
20026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20027 }
20028 arg1 = reinterpret_cast< wxDC * >(argp1);
20029 {
20030 PyThreadState* __tstate = wxPyBeginAllowThreads();
20031 (arg1)->Clear();
20032 wxPyEndAllowThreads(__tstate);
20033 if (PyErr_Occurred()) SWIG_fail;
20034 }
20035 resultobj = SWIG_Py_Void();
20036 return resultobj;
20037 fail:
20038 return NULL;
20039 }
20040
20041
20042 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20043 PyObject *resultobj = 0;
20044 wxDC *arg1 = (wxDC *) 0 ;
20045 wxString *arg2 = 0 ;
20046 bool result;
20047 void *argp1 = 0 ;
20048 int res1 = 0 ;
20049 bool temp2 = false ;
20050 PyObject * obj0 = 0 ;
20051 PyObject * obj1 = 0 ;
20052 char * kwnames[] = {
20053 (char *) "self",(char *) "message", NULL
20054 };
20055
20056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20058 if (!SWIG_IsOK(res1)) {
20059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20060 }
20061 arg1 = reinterpret_cast< wxDC * >(argp1);
20062 {
20063 arg2 = wxString_in_helper(obj1);
20064 if (arg2 == NULL) SWIG_fail;
20065 temp2 = true;
20066 }
20067 {
20068 PyThreadState* __tstate = wxPyBeginAllowThreads();
20069 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20070 wxPyEndAllowThreads(__tstate);
20071 if (PyErr_Occurred()) SWIG_fail;
20072 }
20073 {
20074 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20075 }
20076 {
20077 if (temp2)
20078 delete arg2;
20079 }
20080 return resultobj;
20081 fail:
20082 {
20083 if (temp2)
20084 delete arg2;
20085 }
20086 return NULL;
20087 }
20088
20089
20090 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20091 PyObject *resultobj = 0;
20092 wxDC *arg1 = (wxDC *) 0 ;
20093 void *argp1 = 0 ;
20094 int res1 = 0 ;
20095 PyObject *swig_obj[1] ;
20096
20097 if (!args) SWIG_fail;
20098 swig_obj[0] = args;
20099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20100 if (!SWIG_IsOK(res1)) {
20101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20102 }
20103 arg1 = reinterpret_cast< wxDC * >(argp1);
20104 {
20105 PyThreadState* __tstate = wxPyBeginAllowThreads();
20106 (arg1)->EndDoc();
20107 wxPyEndAllowThreads(__tstate);
20108 if (PyErr_Occurred()) SWIG_fail;
20109 }
20110 resultobj = SWIG_Py_Void();
20111 return resultobj;
20112 fail:
20113 return NULL;
20114 }
20115
20116
20117 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20118 PyObject *resultobj = 0;
20119 wxDC *arg1 = (wxDC *) 0 ;
20120 void *argp1 = 0 ;
20121 int res1 = 0 ;
20122 PyObject *swig_obj[1] ;
20123
20124 if (!args) SWIG_fail;
20125 swig_obj[0] = args;
20126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20127 if (!SWIG_IsOK(res1)) {
20128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20129 }
20130 arg1 = reinterpret_cast< wxDC * >(argp1);
20131 {
20132 PyThreadState* __tstate = wxPyBeginAllowThreads();
20133 (arg1)->StartPage();
20134 wxPyEndAllowThreads(__tstate);
20135 if (PyErr_Occurred()) SWIG_fail;
20136 }
20137 resultobj = SWIG_Py_Void();
20138 return resultobj;
20139 fail:
20140 return NULL;
20141 }
20142
20143
20144 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20145 PyObject *resultobj = 0;
20146 wxDC *arg1 = (wxDC *) 0 ;
20147 void *argp1 = 0 ;
20148 int res1 = 0 ;
20149 PyObject *swig_obj[1] ;
20150
20151 if (!args) SWIG_fail;
20152 swig_obj[0] = args;
20153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20154 if (!SWIG_IsOK(res1)) {
20155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20156 }
20157 arg1 = reinterpret_cast< wxDC * >(argp1);
20158 {
20159 PyThreadState* __tstate = wxPyBeginAllowThreads();
20160 (arg1)->EndPage();
20161 wxPyEndAllowThreads(__tstate);
20162 if (PyErr_Occurred()) SWIG_fail;
20163 }
20164 resultobj = SWIG_Py_Void();
20165 return resultobj;
20166 fail:
20167 return NULL;
20168 }
20169
20170
20171 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20172 PyObject *resultobj = 0;
20173 wxDC *arg1 = (wxDC *) 0 ;
20174 wxFont *arg2 = 0 ;
20175 void *argp1 = 0 ;
20176 int res1 = 0 ;
20177 void *argp2 = 0 ;
20178 int res2 = 0 ;
20179 PyObject * obj0 = 0 ;
20180 PyObject * obj1 = 0 ;
20181 char * kwnames[] = {
20182 (char *) "self",(char *) "font", NULL
20183 };
20184
20185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20187 if (!SWIG_IsOK(res1)) {
20188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20189 }
20190 arg1 = reinterpret_cast< wxDC * >(argp1);
20191 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20192 if (!SWIG_IsOK(res2)) {
20193 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20194 }
20195 if (!argp2) {
20196 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20197 }
20198 arg2 = reinterpret_cast< wxFont * >(argp2);
20199 {
20200 PyThreadState* __tstate = wxPyBeginAllowThreads();
20201 (arg1)->SetFont((wxFont const &)*arg2);
20202 wxPyEndAllowThreads(__tstate);
20203 if (PyErr_Occurred()) SWIG_fail;
20204 }
20205 resultobj = SWIG_Py_Void();
20206 return resultobj;
20207 fail:
20208 return NULL;
20209 }
20210
20211
20212 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20213 PyObject *resultobj = 0;
20214 wxDC *arg1 = (wxDC *) 0 ;
20215 wxPen *arg2 = 0 ;
20216 void *argp1 = 0 ;
20217 int res1 = 0 ;
20218 void *argp2 = 0 ;
20219 int res2 = 0 ;
20220 PyObject * obj0 = 0 ;
20221 PyObject * obj1 = 0 ;
20222 char * kwnames[] = {
20223 (char *) "self",(char *) "pen", NULL
20224 };
20225
20226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20228 if (!SWIG_IsOK(res1)) {
20229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20230 }
20231 arg1 = reinterpret_cast< wxDC * >(argp1);
20232 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20233 if (!SWIG_IsOK(res2)) {
20234 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20235 }
20236 if (!argp2) {
20237 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20238 }
20239 arg2 = reinterpret_cast< wxPen * >(argp2);
20240 {
20241 PyThreadState* __tstate = wxPyBeginAllowThreads();
20242 (arg1)->SetPen((wxPen const &)*arg2);
20243 wxPyEndAllowThreads(__tstate);
20244 if (PyErr_Occurred()) SWIG_fail;
20245 }
20246 resultobj = SWIG_Py_Void();
20247 return resultobj;
20248 fail:
20249 return NULL;
20250 }
20251
20252
20253 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20254 PyObject *resultobj = 0;
20255 wxDC *arg1 = (wxDC *) 0 ;
20256 wxBrush *arg2 = 0 ;
20257 void *argp1 = 0 ;
20258 int res1 = 0 ;
20259 void *argp2 = 0 ;
20260 int res2 = 0 ;
20261 PyObject * obj0 = 0 ;
20262 PyObject * obj1 = 0 ;
20263 char * kwnames[] = {
20264 (char *) "self",(char *) "brush", NULL
20265 };
20266
20267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20269 if (!SWIG_IsOK(res1)) {
20270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20271 }
20272 arg1 = reinterpret_cast< wxDC * >(argp1);
20273 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20274 if (!SWIG_IsOK(res2)) {
20275 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20276 }
20277 if (!argp2) {
20278 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20279 }
20280 arg2 = reinterpret_cast< wxBrush * >(argp2);
20281 {
20282 PyThreadState* __tstate = wxPyBeginAllowThreads();
20283 (arg1)->SetBrush((wxBrush const &)*arg2);
20284 wxPyEndAllowThreads(__tstate);
20285 if (PyErr_Occurred()) SWIG_fail;
20286 }
20287 resultobj = SWIG_Py_Void();
20288 return resultobj;
20289 fail:
20290 return NULL;
20291 }
20292
20293
20294 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20295 PyObject *resultobj = 0;
20296 wxDC *arg1 = (wxDC *) 0 ;
20297 wxBrush *arg2 = 0 ;
20298 void *argp1 = 0 ;
20299 int res1 = 0 ;
20300 void *argp2 = 0 ;
20301 int res2 = 0 ;
20302 PyObject * obj0 = 0 ;
20303 PyObject * obj1 = 0 ;
20304 char * kwnames[] = {
20305 (char *) "self",(char *) "brush", NULL
20306 };
20307
20308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20310 if (!SWIG_IsOK(res1)) {
20311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20312 }
20313 arg1 = reinterpret_cast< wxDC * >(argp1);
20314 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20315 if (!SWIG_IsOK(res2)) {
20316 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20317 }
20318 if (!argp2) {
20319 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20320 }
20321 arg2 = reinterpret_cast< wxBrush * >(argp2);
20322 {
20323 PyThreadState* __tstate = wxPyBeginAllowThreads();
20324 (arg1)->SetBackground((wxBrush const &)*arg2);
20325 wxPyEndAllowThreads(__tstate);
20326 if (PyErr_Occurred()) SWIG_fail;
20327 }
20328 resultobj = SWIG_Py_Void();
20329 return resultobj;
20330 fail:
20331 return NULL;
20332 }
20333
20334
20335 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20336 PyObject *resultobj = 0;
20337 wxDC *arg1 = (wxDC *) 0 ;
20338 int arg2 ;
20339 void *argp1 = 0 ;
20340 int res1 = 0 ;
20341 int val2 ;
20342 int ecode2 = 0 ;
20343 PyObject * obj0 = 0 ;
20344 PyObject * obj1 = 0 ;
20345 char * kwnames[] = {
20346 (char *) "self",(char *) "mode", NULL
20347 };
20348
20349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20351 if (!SWIG_IsOK(res1)) {
20352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20353 }
20354 arg1 = reinterpret_cast< wxDC * >(argp1);
20355 ecode2 = SWIG_AsVal_int(obj1, &val2);
20356 if (!SWIG_IsOK(ecode2)) {
20357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20358 }
20359 arg2 = static_cast< int >(val2);
20360 {
20361 PyThreadState* __tstate = wxPyBeginAllowThreads();
20362 (arg1)->SetBackgroundMode(arg2);
20363 wxPyEndAllowThreads(__tstate);
20364 if (PyErr_Occurred()) SWIG_fail;
20365 }
20366 resultobj = SWIG_Py_Void();
20367 return resultobj;
20368 fail:
20369 return NULL;
20370 }
20371
20372
20373 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20374 PyObject *resultobj = 0;
20375 wxDC *arg1 = (wxDC *) 0 ;
20376 wxPalette *arg2 = 0 ;
20377 void *argp1 = 0 ;
20378 int res1 = 0 ;
20379 void *argp2 = 0 ;
20380 int res2 = 0 ;
20381 PyObject * obj0 = 0 ;
20382 PyObject * obj1 = 0 ;
20383 char * kwnames[] = {
20384 (char *) "self",(char *) "palette", NULL
20385 };
20386
20387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20389 if (!SWIG_IsOK(res1)) {
20390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20391 }
20392 arg1 = reinterpret_cast< wxDC * >(argp1);
20393 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20394 if (!SWIG_IsOK(res2)) {
20395 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20396 }
20397 if (!argp2) {
20398 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20399 }
20400 arg2 = reinterpret_cast< wxPalette * >(argp2);
20401 {
20402 PyThreadState* __tstate = wxPyBeginAllowThreads();
20403 (arg1)->SetPalette((wxPalette const &)*arg2);
20404 wxPyEndAllowThreads(__tstate);
20405 if (PyErr_Occurred()) SWIG_fail;
20406 }
20407 resultobj = SWIG_Py_Void();
20408 return resultobj;
20409 fail:
20410 return NULL;
20411 }
20412
20413
20414 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20415 PyObject *resultobj = 0;
20416 wxDC *arg1 = (wxDC *) 0 ;
20417 void *argp1 = 0 ;
20418 int res1 = 0 ;
20419 PyObject *swig_obj[1] ;
20420
20421 if (!args) SWIG_fail;
20422 swig_obj[0] = args;
20423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20424 if (!SWIG_IsOK(res1)) {
20425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20426 }
20427 arg1 = reinterpret_cast< wxDC * >(argp1);
20428 {
20429 PyThreadState* __tstate = wxPyBeginAllowThreads();
20430 (arg1)->DestroyClippingRegion();
20431 wxPyEndAllowThreads(__tstate);
20432 if (PyErr_Occurred()) SWIG_fail;
20433 }
20434 resultobj = SWIG_Py_Void();
20435 return resultobj;
20436 fail:
20437 return NULL;
20438 }
20439
20440
20441 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20442 PyObject *resultobj = 0;
20443 wxDC *arg1 = (wxDC *) 0 ;
20444 int *arg2 = (int *) 0 ;
20445 int *arg3 = (int *) 0 ;
20446 int *arg4 = (int *) 0 ;
20447 int *arg5 = (int *) 0 ;
20448 void *argp1 = 0 ;
20449 int res1 = 0 ;
20450 int temp2 ;
20451 int res2 = SWIG_TMPOBJ ;
20452 int temp3 ;
20453 int res3 = SWIG_TMPOBJ ;
20454 int temp4 ;
20455 int res4 = SWIG_TMPOBJ ;
20456 int temp5 ;
20457 int res5 = SWIG_TMPOBJ ;
20458 PyObject *swig_obj[1] ;
20459
20460 arg2 = &temp2;
20461 arg3 = &temp3;
20462 arg4 = &temp4;
20463 arg5 = &temp5;
20464 if (!args) SWIG_fail;
20465 swig_obj[0] = args;
20466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20467 if (!SWIG_IsOK(res1)) {
20468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20469 }
20470 arg1 = reinterpret_cast< wxDC * >(argp1);
20471 {
20472 PyThreadState* __tstate = wxPyBeginAllowThreads();
20473 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20474 wxPyEndAllowThreads(__tstate);
20475 if (PyErr_Occurred()) SWIG_fail;
20476 }
20477 resultobj = SWIG_Py_Void();
20478 if (SWIG_IsTmpObj(res2)) {
20479 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20480 } else {
20481 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20482 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20483 }
20484 if (SWIG_IsTmpObj(res3)) {
20485 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20486 } else {
20487 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20488 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20489 }
20490 if (SWIG_IsTmpObj(res4)) {
20491 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20492 } else {
20493 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20494 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20495 }
20496 if (SWIG_IsTmpObj(res5)) {
20497 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20498 } else {
20499 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20500 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20501 }
20502 return resultobj;
20503 fail:
20504 return NULL;
20505 }
20506
20507
20508 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20509 PyObject *resultobj = 0;
20510 wxDC *arg1 = (wxDC *) 0 ;
20511 wxRect result;
20512 void *argp1 = 0 ;
20513 int res1 = 0 ;
20514 PyObject *swig_obj[1] ;
20515
20516 if (!args) SWIG_fail;
20517 swig_obj[0] = args;
20518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20519 if (!SWIG_IsOK(res1)) {
20520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20521 }
20522 arg1 = reinterpret_cast< wxDC * >(argp1);
20523 {
20524 PyThreadState* __tstate = wxPyBeginAllowThreads();
20525 result = wxDC_GetClippingRect(arg1);
20526 wxPyEndAllowThreads(__tstate);
20527 if (PyErr_Occurred()) SWIG_fail;
20528 }
20529 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20530 return resultobj;
20531 fail:
20532 return NULL;
20533 }
20534
20535
20536 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20537 PyObject *resultobj = 0;
20538 wxDC *arg1 = (wxDC *) 0 ;
20539 int result;
20540 void *argp1 = 0 ;
20541 int res1 = 0 ;
20542 PyObject *swig_obj[1] ;
20543
20544 if (!args) SWIG_fail;
20545 swig_obj[0] = args;
20546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20547 if (!SWIG_IsOK(res1)) {
20548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20549 }
20550 arg1 = reinterpret_cast< wxDC * >(argp1);
20551 {
20552 PyThreadState* __tstate = wxPyBeginAllowThreads();
20553 result = (int)((wxDC const *)arg1)->GetCharHeight();
20554 wxPyEndAllowThreads(__tstate);
20555 if (PyErr_Occurred()) SWIG_fail;
20556 }
20557 resultobj = SWIG_From_int(static_cast< int >(result));
20558 return resultobj;
20559 fail:
20560 return NULL;
20561 }
20562
20563
20564 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20565 PyObject *resultobj = 0;
20566 wxDC *arg1 = (wxDC *) 0 ;
20567 int result;
20568 void *argp1 = 0 ;
20569 int res1 = 0 ;
20570 PyObject *swig_obj[1] ;
20571
20572 if (!args) SWIG_fail;
20573 swig_obj[0] = args;
20574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20575 if (!SWIG_IsOK(res1)) {
20576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20577 }
20578 arg1 = reinterpret_cast< wxDC * >(argp1);
20579 {
20580 PyThreadState* __tstate = wxPyBeginAllowThreads();
20581 result = (int)((wxDC const *)arg1)->GetCharWidth();
20582 wxPyEndAllowThreads(__tstate);
20583 if (PyErr_Occurred()) SWIG_fail;
20584 }
20585 resultobj = SWIG_From_int(static_cast< int >(result));
20586 return resultobj;
20587 fail:
20588 return NULL;
20589 }
20590
20591
20592 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20593 PyObject *resultobj = 0;
20594 wxDC *arg1 = (wxDC *) 0 ;
20595 wxString *arg2 = 0 ;
20596 int *arg3 = (int *) 0 ;
20597 int *arg4 = (int *) 0 ;
20598 void *argp1 = 0 ;
20599 int res1 = 0 ;
20600 bool temp2 = false ;
20601 int temp3 ;
20602 int res3 = SWIG_TMPOBJ ;
20603 int temp4 ;
20604 int res4 = SWIG_TMPOBJ ;
20605 PyObject * obj0 = 0 ;
20606 PyObject * obj1 = 0 ;
20607 char * kwnames[] = {
20608 (char *) "self",(char *) "string", NULL
20609 };
20610
20611 arg3 = &temp3;
20612 arg4 = &temp4;
20613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20615 if (!SWIG_IsOK(res1)) {
20616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20617 }
20618 arg1 = reinterpret_cast< wxDC * >(argp1);
20619 {
20620 arg2 = wxString_in_helper(obj1);
20621 if (arg2 == NULL) SWIG_fail;
20622 temp2 = true;
20623 }
20624 {
20625 PyThreadState* __tstate = wxPyBeginAllowThreads();
20626 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
20627 wxPyEndAllowThreads(__tstate);
20628 if (PyErr_Occurred()) SWIG_fail;
20629 }
20630 resultobj = SWIG_Py_Void();
20631 if (SWIG_IsTmpObj(res3)) {
20632 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20633 } else {
20634 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20635 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20636 }
20637 if (SWIG_IsTmpObj(res4)) {
20638 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20639 } else {
20640 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20641 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20642 }
20643 {
20644 if (temp2)
20645 delete arg2;
20646 }
20647 return resultobj;
20648 fail:
20649 {
20650 if (temp2)
20651 delete arg2;
20652 }
20653 return NULL;
20654 }
20655
20656
20657 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20658 PyObject *resultobj = 0;
20659 wxDC *arg1 = (wxDC *) 0 ;
20660 wxString *arg2 = 0 ;
20661 int *arg3 = (int *) 0 ;
20662 int *arg4 = (int *) 0 ;
20663 int *arg5 = (int *) 0 ;
20664 int *arg6 = (int *) 0 ;
20665 wxFont *arg7 = (wxFont *) NULL ;
20666 void *argp1 = 0 ;
20667 int res1 = 0 ;
20668 bool temp2 = false ;
20669 int temp3 ;
20670 int res3 = SWIG_TMPOBJ ;
20671 int temp4 ;
20672 int res4 = SWIG_TMPOBJ ;
20673 int temp5 ;
20674 int res5 = SWIG_TMPOBJ ;
20675 int temp6 ;
20676 int res6 = SWIG_TMPOBJ ;
20677 void *argp7 = 0 ;
20678 int res7 = 0 ;
20679 PyObject * obj0 = 0 ;
20680 PyObject * obj1 = 0 ;
20681 PyObject * obj2 = 0 ;
20682 char * kwnames[] = {
20683 (char *) "self",(char *) "string",(char *) "font", NULL
20684 };
20685
20686 arg3 = &temp3;
20687 arg4 = &temp4;
20688 arg5 = &temp5;
20689 arg6 = &temp6;
20690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20692 if (!SWIG_IsOK(res1)) {
20693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20694 }
20695 arg1 = reinterpret_cast< wxDC * >(argp1);
20696 {
20697 arg2 = wxString_in_helper(obj1);
20698 if (arg2 == NULL) SWIG_fail;
20699 temp2 = true;
20700 }
20701 if (obj2) {
20702 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
20703 if (!SWIG_IsOK(res7)) {
20704 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
20705 }
20706 arg7 = reinterpret_cast< wxFont * >(argp7);
20707 }
20708 {
20709 PyThreadState* __tstate = wxPyBeginAllowThreads();
20710 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
20711 wxPyEndAllowThreads(__tstate);
20712 if (PyErr_Occurred()) SWIG_fail;
20713 }
20714 resultobj = SWIG_Py_Void();
20715 if (SWIG_IsTmpObj(res3)) {
20716 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20717 } else {
20718 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20719 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20720 }
20721 if (SWIG_IsTmpObj(res4)) {
20722 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20723 } else {
20724 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20725 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20726 }
20727 if (SWIG_IsTmpObj(res5)) {
20728 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20729 } else {
20730 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20731 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20732 }
20733 if (SWIG_IsTmpObj(res6)) {
20734 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
20735 } else {
20736 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20737 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
20738 }
20739 {
20740 if (temp2)
20741 delete arg2;
20742 }
20743 return resultobj;
20744 fail:
20745 {
20746 if (temp2)
20747 delete arg2;
20748 }
20749 return NULL;
20750 }
20751
20752
20753 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20754 PyObject *resultobj = 0;
20755 wxDC *arg1 = (wxDC *) 0 ;
20756 wxString *arg2 = 0 ;
20757 int *arg3 = (int *) 0 ;
20758 int *arg4 = (int *) 0 ;
20759 int *arg5 = (int *) 0 ;
20760 wxFont *arg6 = (wxFont *) NULL ;
20761 void *argp1 = 0 ;
20762 int res1 = 0 ;
20763 bool temp2 = false ;
20764 int temp3 ;
20765 int res3 = SWIG_TMPOBJ ;
20766 int temp4 ;
20767 int res4 = SWIG_TMPOBJ ;
20768 int temp5 ;
20769 int res5 = SWIG_TMPOBJ ;
20770 void *argp6 = 0 ;
20771 int res6 = 0 ;
20772 PyObject * obj0 = 0 ;
20773 PyObject * obj1 = 0 ;
20774 PyObject * obj2 = 0 ;
20775 char * kwnames[] = {
20776 (char *) "self",(char *) "text",(char *) "font", NULL
20777 };
20778
20779 arg3 = &temp3;
20780 arg4 = &temp4;
20781 arg5 = &temp5;
20782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20784 if (!SWIG_IsOK(res1)) {
20785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20786 }
20787 arg1 = reinterpret_cast< wxDC * >(argp1);
20788 {
20789 arg2 = wxString_in_helper(obj1);
20790 if (arg2 == NULL) SWIG_fail;
20791 temp2 = true;
20792 }
20793 if (obj2) {
20794 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
20795 if (!SWIG_IsOK(res6)) {
20796 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
20797 }
20798 arg6 = reinterpret_cast< wxFont * >(argp6);
20799 }
20800 {
20801 PyThreadState* __tstate = wxPyBeginAllowThreads();
20802 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
20803 wxPyEndAllowThreads(__tstate);
20804 if (PyErr_Occurred()) SWIG_fail;
20805 }
20806 resultobj = SWIG_Py_Void();
20807 if (SWIG_IsTmpObj(res3)) {
20808 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20809 } else {
20810 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20811 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20812 }
20813 if (SWIG_IsTmpObj(res4)) {
20814 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20815 } else {
20816 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20817 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20818 }
20819 if (SWIG_IsTmpObj(res5)) {
20820 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20821 } else {
20822 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20823 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20824 }
20825 {
20826 if (temp2)
20827 delete arg2;
20828 }
20829 return resultobj;
20830 fail:
20831 {
20832 if (temp2)
20833 delete arg2;
20834 }
20835 return NULL;
20836 }
20837
20838
20839 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20840 PyObject *resultobj = 0;
20841 wxDC *arg1 = (wxDC *) 0 ;
20842 wxString *arg2 = 0 ;
20843 wxArrayInt result;
20844 void *argp1 = 0 ;
20845 int res1 = 0 ;
20846 bool temp2 = false ;
20847 PyObject * obj0 = 0 ;
20848 PyObject * obj1 = 0 ;
20849 char * kwnames[] = {
20850 (char *) "self",(char *) "text", NULL
20851 };
20852
20853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
20854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20855 if (!SWIG_IsOK(res1)) {
20856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
20857 }
20858 arg1 = reinterpret_cast< wxDC * >(argp1);
20859 {
20860 arg2 = wxString_in_helper(obj1);
20861 if (arg2 == NULL) SWIG_fail;
20862 temp2 = true;
20863 }
20864 {
20865 PyThreadState* __tstate = wxPyBeginAllowThreads();
20866 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
20867 wxPyEndAllowThreads(__tstate);
20868 if (PyErr_Occurred()) SWIG_fail;
20869 }
20870 {
20871 resultobj = wxArrayInt2PyList_helper(result);
20872 }
20873 {
20874 if (temp2)
20875 delete arg2;
20876 }
20877 return resultobj;
20878 fail:
20879 {
20880 if (temp2)
20881 delete arg2;
20882 }
20883 return NULL;
20884 }
20885
20886
20887 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20888 PyObject *resultobj = 0;
20889 wxDC *arg1 = (wxDC *) 0 ;
20890 wxSize result;
20891 void *argp1 = 0 ;
20892 int res1 = 0 ;
20893 PyObject *swig_obj[1] ;
20894
20895 if (!args) SWIG_fail;
20896 swig_obj[0] = args;
20897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20898 if (!SWIG_IsOK(res1)) {
20899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
20900 }
20901 arg1 = reinterpret_cast< wxDC * >(argp1);
20902 {
20903 PyThreadState* __tstate = wxPyBeginAllowThreads();
20904 result = (arg1)->GetSize();
20905 wxPyEndAllowThreads(__tstate);
20906 if (PyErr_Occurred()) SWIG_fail;
20907 }
20908 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20909 return resultobj;
20910 fail:
20911 return NULL;
20912 }
20913
20914
20915 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20916 PyObject *resultobj = 0;
20917 wxDC *arg1 = (wxDC *) 0 ;
20918 int *arg2 = (int *) 0 ;
20919 int *arg3 = (int *) 0 ;
20920 void *argp1 = 0 ;
20921 int res1 = 0 ;
20922 int temp2 ;
20923 int res2 = SWIG_TMPOBJ ;
20924 int temp3 ;
20925 int res3 = SWIG_TMPOBJ ;
20926 PyObject *swig_obj[1] ;
20927
20928 arg2 = &temp2;
20929 arg3 = &temp3;
20930 if (!args) SWIG_fail;
20931 swig_obj[0] = args;
20932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20933 if (!SWIG_IsOK(res1)) {
20934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
20935 }
20936 arg1 = reinterpret_cast< wxDC * >(argp1);
20937 {
20938 PyThreadState* __tstate = wxPyBeginAllowThreads();
20939 (arg1)->GetSize(arg2,arg3);
20940 wxPyEndAllowThreads(__tstate);
20941 if (PyErr_Occurred()) SWIG_fail;
20942 }
20943 resultobj = SWIG_Py_Void();
20944 if (SWIG_IsTmpObj(res2)) {
20945 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20946 } else {
20947 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20948 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20949 }
20950 if (SWIG_IsTmpObj(res3)) {
20951 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20952 } else {
20953 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20954 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20955 }
20956 return resultobj;
20957 fail:
20958 return NULL;
20959 }
20960
20961
20962 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20963 PyObject *resultobj = 0;
20964 wxDC *arg1 = (wxDC *) 0 ;
20965 wxSize result;
20966 void *argp1 = 0 ;
20967 int res1 = 0 ;
20968 PyObject *swig_obj[1] ;
20969
20970 if (!args) SWIG_fail;
20971 swig_obj[0] = args;
20972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20973 if (!SWIG_IsOK(res1)) {
20974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
20975 }
20976 arg1 = reinterpret_cast< wxDC * >(argp1);
20977 {
20978 PyThreadState* __tstate = wxPyBeginAllowThreads();
20979 result = ((wxDC const *)arg1)->GetSizeMM();
20980 wxPyEndAllowThreads(__tstate);
20981 if (PyErr_Occurred()) SWIG_fail;
20982 }
20983 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20984 return resultobj;
20985 fail:
20986 return NULL;
20987 }
20988
20989
20990 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20991 PyObject *resultobj = 0;
20992 wxDC *arg1 = (wxDC *) 0 ;
20993 int *arg2 = (int *) 0 ;
20994 int *arg3 = (int *) 0 ;
20995 void *argp1 = 0 ;
20996 int res1 = 0 ;
20997 int temp2 ;
20998 int res2 = SWIG_TMPOBJ ;
20999 int temp3 ;
21000 int res3 = SWIG_TMPOBJ ;
21001 PyObject *swig_obj[1] ;
21002
21003 arg2 = &temp2;
21004 arg3 = &temp3;
21005 if (!args) SWIG_fail;
21006 swig_obj[0] = args;
21007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21008 if (!SWIG_IsOK(res1)) {
21009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21010 }
21011 arg1 = reinterpret_cast< wxDC * >(argp1);
21012 {
21013 PyThreadState* __tstate = wxPyBeginAllowThreads();
21014 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21015 wxPyEndAllowThreads(__tstate);
21016 if (PyErr_Occurred()) SWIG_fail;
21017 }
21018 resultobj = SWIG_Py_Void();
21019 if (SWIG_IsTmpObj(res2)) {
21020 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21021 } else {
21022 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21023 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21024 }
21025 if (SWIG_IsTmpObj(res3)) {
21026 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21027 } else {
21028 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21029 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21030 }
21031 return resultobj;
21032 fail:
21033 return NULL;
21034 }
21035
21036
21037 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21038 PyObject *resultobj = 0;
21039 wxDC *arg1 = (wxDC *) 0 ;
21040 int arg2 ;
21041 int result;
21042 void *argp1 = 0 ;
21043 int res1 = 0 ;
21044 int val2 ;
21045 int ecode2 = 0 ;
21046 PyObject * obj0 = 0 ;
21047 PyObject * obj1 = 0 ;
21048 char * kwnames[] = {
21049 (char *) "self",(char *) "x", NULL
21050 };
21051
21052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21054 if (!SWIG_IsOK(res1)) {
21055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21056 }
21057 arg1 = reinterpret_cast< wxDC * >(argp1);
21058 ecode2 = SWIG_AsVal_int(obj1, &val2);
21059 if (!SWIG_IsOK(ecode2)) {
21060 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21061 }
21062 arg2 = static_cast< int >(val2);
21063 {
21064 PyThreadState* __tstate = wxPyBeginAllowThreads();
21065 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21066 wxPyEndAllowThreads(__tstate);
21067 if (PyErr_Occurred()) SWIG_fail;
21068 }
21069 resultobj = SWIG_From_int(static_cast< int >(result));
21070 return resultobj;
21071 fail:
21072 return NULL;
21073 }
21074
21075
21076 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21077 PyObject *resultobj = 0;
21078 wxDC *arg1 = (wxDC *) 0 ;
21079 int arg2 ;
21080 int result;
21081 void *argp1 = 0 ;
21082 int res1 = 0 ;
21083 int val2 ;
21084 int ecode2 = 0 ;
21085 PyObject * obj0 = 0 ;
21086 PyObject * obj1 = 0 ;
21087 char * kwnames[] = {
21088 (char *) "self",(char *) "y", NULL
21089 };
21090
21091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21093 if (!SWIG_IsOK(res1)) {
21094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21095 }
21096 arg1 = reinterpret_cast< wxDC * >(argp1);
21097 ecode2 = SWIG_AsVal_int(obj1, &val2);
21098 if (!SWIG_IsOK(ecode2)) {
21099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21100 }
21101 arg2 = static_cast< int >(val2);
21102 {
21103 PyThreadState* __tstate = wxPyBeginAllowThreads();
21104 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21105 wxPyEndAllowThreads(__tstate);
21106 if (PyErr_Occurred()) SWIG_fail;
21107 }
21108 resultobj = SWIG_From_int(static_cast< int >(result));
21109 return resultobj;
21110 fail:
21111 return NULL;
21112 }
21113
21114
21115 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21116 PyObject *resultobj = 0;
21117 wxDC *arg1 = (wxDC *) 0 ;
21118 int arg2 ;
21119 int result;
21120 void *argp1 = 0 ;
21121 int res1 = 0 ;
21122 int val2 ;
21123 int ecode2 = 0 ;
21124 PyObject * obj0 = 0 ;
21125 PyObject * obj1 = 0 ;
21126 char * kwnames[] = {
21127 (char *) "self",(char *) "x", NULL
21128 };
21129
21130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21132 if (!SWIG_IsOK(res1)) {
21133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21134 }
21135 arg1 = reinterpret_cast< wxDC * >(argp1);
21136 ecode2 = SWIG_AsVal_int(obj1, &val2);
21137 if (!SWIG_IsOK(ecode2)) {
21138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21139 }
21140 arg2 = static_cast< int >(val2);
21141 {
21142 PyThreadState* __tstate = wxPyBeginAllowThreads();
21143 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21144 wxPyEndAllowThreads(__tstate);
21145 if (PyErr_Occurred()) SWIG_fail;
21146 }
21147 resultobj = SWIG_From_int(static_cast< int >(result));
21148 return resultobj;
21149 fail:
21150 return NULL;
21151 }
21152
21153
21154 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21155 PyObject *resultobj = 0;
21156 wxDC *arg1 = (wxDC *) 0 ;
21157 int arg2 ;
21158 int result;
21159 void *argp1 = 0 ;
21160 int res1 = 0 ;
21161 int val2 ;
21162 int ecode2 = 0 ;
21163 PyObject * obj0 = 0 ;
21164 PyObject * obj1 = 0 ;
21165 char * kwnames[] = {
21166 (char *) "self",(char *) "y", NULL
21167 };
21168
21169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21171 if (!SWIG_IsOK(res1)) {
21172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21173 }
21174 arg1 = reinterpret_cast< wxDC * >(argp1);
21175 ecode2 = SWIG_AsVal_int(obj1, &val2);
21176 if (!SWIG_IsOK(ecode2)) {
21177 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21178 }
21179 arg2 = static_cast< int >(val2);
21180 {
21181 PyThreadState* __tstate = wxPyBeginAllowThreads();
21182 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21183 wxPyEndAllowThreads(__tstate);
21184 if (PyErr_Occurred()) SWIG_fail;
21185 }
21186 resultobj = SWIG_From_int(static_cast< int >(result));
21187 return resultobj;
21188 fail:
21189 return NULL;
21190 }
21191
21192
21193 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21194 PyObject *resultobj = 0;
21195 wxDC *arg1 = (wxDC *) 0 ;
21196 int arg2 ;
21197 int result;
21198 void *argp1 = 0 ;
21199 int res1 = 0 ;
21200 int val2 ;
21201 int ecode2 = 0 ;
21202 PyObject * obj0 = 0 ;
21203 PyObject * obj1 = 0 ;
21204 char * kwnames[] = {
21205 (char *) "self",(char *) "x", NULL
21206 };
21207
21208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21210 if (!SWIG_IsOK(res1)) {
21211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21212 }
21213 arg1 = reinterpret_cast< wxDC * >(argp1);
21214 ecode2 = SWIG_AsVal_int(obj1, &val2);
21215 if (!SWIG_IsOK(ecode2)) {
21216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21217 }
21218 arg2 = static_cast< int >(val2);
21219 {
21220 PyThreadState* __tstate = wxPyBeginAllowThreads();
21221 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21222 wxPyEndAllowThreads(__tstate);
21223 if (PyErr_Occurred()) SWIG_fail;
21224 }
21225 resultobj = SWIG_From_int(static_cast< int >(result));
21226 return resultobj;
21227 fail:
21228 return NULL;
21229 }
21230
21231
21232 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21233 PyObject *resultobj = 0;
21234 wxDC *arg1 = (wxDC *) 0 ;
21235 int arg2 ;
21236 int result;
21237 void *argp1 = 0 ;
21238 int res1 = 0 ;
21239 int val2 ;
21240 int ecode2 = 0 ;
21241 PyObject * obj0 = 0 ;
21242 PyObject * obj1 = 0 ;
21243 char * kwnames[] = {
21244 (char *) "self",(char *) "y", NULL
21245 };
21246
21247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21249 if (!SWIG_IsOK(res1)) {
21250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21251 }
21252 arg1 = reinterpret_cast< wxDC * >(argp1);
21253 ecode2 = SWIG_AsVal_int(obj1, &val2);
21254 if (!SWIG_IsOK(ecode2)) {
21255 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21256 }
21257 arg2 = static_cast< int >(val2);
21258 {
21259 PyThreadState* __tstate = wxPyBeginAllowThreads();
21260 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21261 wxPyEndAllowThreads(__tstate);
21262 if (PyErr_Occurred()) SWIG_fail;
21263 }
21264 resultobj = SWIG_From_int(static_cast< int >(result));
21265 return resultobj;
21266 fail:
21267 return NULL;
21268 }
21269
21270
21271 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21272 PyObject *resultobj = 0;
21273 wxDC *arg1 = (wxDC *) 0 ;
21274 int arg2 ;
21275 int result;
21276 void *argp1 = 0 ;
21277 int res1 = 0 ;
21278 int val2 ;
21279 int ecode2 = 0 ;
21280 PyObject * obj0 = 0 ;
21281 PyObject * obj1 = 0 ;
21282 char * kwnames[] = {
21283 (char *) "self",(char *) "x", NULL
21284 };
21285
21286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21288 if (!SWIG_IsOK(res1)) {
21289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21290 }
21291 arg1 = reinterpret_cast< wxDC * >(argp1);
21292 ecode2 = SWIG_AsVal_int(obj1, &val2);
21293 if (!SWIG_IsOK(ecode2)) {
21294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21295 }
21296 arg2 = static_cast< int >(val2);
21297 {
21298 PyThreadState* __tstate = wxPyBeginAllowThreads();
21299 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21300 wxPyEndAllowThreads(__tstate);
21301 if (PyErr_Occurred()) SWIG_fail;
21302 }
21303 resultobj = SWIG_From_int(static_cast< int >(result));
21304 return resultobj;
21305 fail:
21306 return NULL;
21307 }
21308
21309
21310 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21311 PyObject *resultobj = 0;
21312 wxDC *arg1 = (wxDC *) 0 ;
21313 int arg2 ;
21314 int result;
21315 void *argp1 = 0 ;
21316 int res1 = 0 ;
21317 int val2 ;
21318 int ecode2 = 0 ;
21319 PyObject * obj0 = 0 ;
21320 PyObject * obj1 = 0 ;
21321 char * kwnames[] = {
21322 (char *) "self",(char *) "y", NULL
21323 };
21324
21325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21327 if (!SWIG_IsOK(res1)) {
21328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21329 }
21330 arg1 = reinterpret_cast< wxDC * >(argp1);
21331 ecode2 = SWIG_AsVal_int(obj1, &val2);
21332 if (!SWIG_IsOK(ecode2)) {
21333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21334 }
21335 arg2 = static_cast< int >(val2);
21336 {
21337 PyThreadState* __tstate = wxPyBeginAllowThreads();
21338 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21339 wxPyEndAllowThreads(__tstate);
21340 if (PyErr_Occurred()) SWIG_fail;
21341 }
21342 resultobj = SWIG_From_int(static_cast< int >(result));
21343 return resultobj;
21344 fail:
21345 return NULL;
21346 }
21347
21348
21349 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21350 PyObject *resultobj = 0;
21351 wxDC *arg1 = (wxDC *) 0 ;
21352 bool result;
21353 void *argp1 = 0 ;
21354 int res1 = 0 ;
21355 PyObject *swig_obj[1] ;
21356
21357 if (!args) SWIG_fail;
21358 swig_obj[0] = args;
21359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21360 if (!SWIG_IsOK(res1)) {
21361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21362 }
21363 arg1 = reinterpret_cast< wxDC * >(argp1);
21364 {
21365 PyThreadState* __tstate = wxPyBeginAllowThreads();
21366 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21367 wxPyEndAllowThreads(__tstate);
21368 if (PyErr_Occurred()) SWIG_fail;
21369 }
21370 {
21371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21372 }
21373 return resultobj;
21374 fail:
21375 return NULL;
21376 }
21377
21378
21379 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21380 PyObject *resultobj = 0;
21381 wxDC *arg1 = (wxDC *) 0 ;
21382 bool result;
21383 void *argp1 = 0 ;
21384 int res1 = 0 ;
21385 PyObject *swig_obj[1] ;
21386
21387 if (!args) SWIG_fail;
21388 swig_obj[0] = args;
21389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21390 if (!SWIG_IsOK(res1)) {
21391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21392 }
21393 arg1 = reinterpret_cast< wxDC * >(argp1);
21394 {
21395 PyThreadState* __tstate = wxPyBeginAllowThreads();
21396 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21397 wxPyEndAllowThreads(__tstate);
21398 if (PyErr_Occurred()) SWIG_fail;
21399 }
21400 {
21401 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21402 }
21403 return resultobj;
21404 fail:
21405 return NULL;
21406 }
21407
21408
21409 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21410 PyObject *resultobj = 0;
21411 wxDC *arg1 = (wxDC *) 0 ;
21412 int result;
21413 void *argp1 = 0 ;
21414 int res1 = 0 ;
21415 PyObject *swig_obj[1] ;
21416
21417 if (!args) SWIG_fail;
21418 swig_obj[0] = args;
21419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21420 if (!SWIG_IsOK(res1)) {
21421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21422 }
21423 arg1 = reinterpret_cast< wxDC * >(argp1);
21424 {
21425 PyThreadState* __tstate = wxPyBeginAllowThreads();
21426 result = (int)((wxDC const *)arg1)->GetDepth();
21427 wxPyEndAllowThreads(__tstate);
21428 if (PyErr_Occurred()) SWIG_fail;
21429 }
21430 resultobj = SWIG_From_int(static_cast< int >(result));
21431 return resultobj;
21432 fail:
21433 return NULL;
21434 }
21435
21436
21437 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21438 PyObject *resultobj = 0;
21439 wxDC *arg1 = (wxDC *) 0 ;
21440 wxSize result;
21441 void *argp1 = 0 ;
21442 int res1 = 0 ;
21443 PyObject *swig_obj[1] ;
21444
21445 if (!args) SWIG_fail;
21446 swig_obj[0] = args;
21447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21448 if (!SWIG_IsOK(res1)) {
21449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21450 }
21451 arg1 = reinterpret_cast< wxDC * >(argp1);
21452 {
21453 PyThreadState* __tstate = wxPyBeginAllowThreads();
21454 result = ((wxDC const *)arg1)->GetPPI();
21455 wxPyEndAllowThreads(__tstate);
21456 if (PyErr_Occurred()) SWIG_fail;
21457 }
21458 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21459 return resultobj;
21460 fail:
21461 return NULL;
21462 }
21463
21464
21465 SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21466 PyObject *resultobj = 0;
21467 wxDC *arg1 = (wxDC *) 0 ;
21468 bool result;
21469 void *argp1 = 0 ;
21470 int res1 = 0 ;
21471 PyObject *swig_obj[1] ;
21472
21473 if (!args) SWIG_fail;
21474 swig_obj[0] = args;
21475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21476 if (!SWIG_IsOK(res1)) {
21477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
21478 }
21479 arg1 = reinterpret_cast< wxDC * >(argp1);
21480 {
21481 PyThreadState* __tstate = wxPyBeginAllowThreads();
21482 result = (bool)((wxDC const *)arg1)->IsOk();
21483 wxPyEndAllowThreads(__tstate);
21484 if (PyErr_Occurred()) SWIG_fail;
21485 }
21486 {
21487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21488 }
21489 return resultobj;
21490 fail:
21491 return NULL;
21492 }
21493
21494
21495 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21496 PyObject *resultobj = 0;
21497 wxDC *arg1 = (wxDC *) 0 ;
21498 int result;
21499 void *argp1 = 0 ;
21500 int res1 = 0 ;
21501 PyObject *swig_obj[1] ;
21502
21503 if (!args) SWIG_fail;
21504 swig_obj[0] = args;
21505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21506 if (!SWIG_IsOK(res1)) {
21507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21508 }
21509 arg1 = reinterpret_cast< wxDC * >(argp1);
21510 {
21511 PyThreadState* __tstate = wxPyBeginAllowThreads();
21512 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21513 wxPyEndAllowThreads(__tstate);
21514 if (PyErr_Occurred()) SWIG_fail;
21515 }
21516 resultobj = SWIG_From_int(static_cast< int >(result));
21517 return resultobj;
21518 fail:
21519 return NULL;
21520 }
21521
21522
21523 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21524 PyObject *resultobj = 0;
21525 wxDC *arg1 = (wxDC *) 0 ;
21526 wxBrush *result = 0 ;
21527 void *argp1 = 0 ;
21528 int res1 = 0 ;
21529 PyObject *swig_obj[1] ;
21530
21531 if (!args) SWIG_fail;
21532 swig_obj[0] = args;
21533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21534 if (!SWIG_IsOK(res1)) {
21535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21536 }
21537 arg1 = reinterpret_cast< wxDC * >(argp1);
21538 {
21539 PyThreadState* __tstate = wxPyBeginAllowThreads();
21540 {
21541 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21542 result = (wxBrush *) &_result_ref;
21543 }
21544 wxPyEndAllowThreads(__tstate);
21545 if (PyErr_Occurred()) SWIG_fail;
21546 }
21547 {
21548 wxBrush* resultptr = new wxBrush(*result);
21549 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21550 }
21551 return resultobj;
21552 fail:
21553 return NULL;
21554 }
21555
21556
21557 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21558 PyObject *resultobj = 0;
21559 wxDC *arg1 = (wxDC *) 0 ;
21560 wxBrush *result = 0 ;
21561 void *argp1 = 0 ;
21562 int res1 = 0 ;
21563 PyObject *swig_obj[1] ;
21564
21565 if (!args) SWIG_fail;
21566 swig_obj[0] = args;
21567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21568 if (!SWIG_IsOK(res1)) {
21569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21570 }
21571 arg1 = reinterpret_cast< wxDC * >(argp1);
21572 {
21573 PyThreadState* __tstate = wxPyBeginAllowThreads();
21574 {
21575 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21576 result = (wxBrush *) &_result_ref;
21577 }
21578 wxPyEndAllowThreads(__tstate);
21579 if (PyErr_Occurred()) SWIG_fail;
21580 }
21581 {
21582 wxBrush* resultptr = new wxBrush(*result);
21583 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21584 }
21585 return resultobj;
21586 fail:
21587 return NULL;
21588 }
21589
21590
21591 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21592 PyObject *resultobj = 0;
21593 wxDC *arg1 = (wxDC *) 0 ;
21594 wxFont *result = 0 ;
21595 void *argp1 = 0 ;
21596 int res1 = 0 ;
21597 PyObject *swig_obj[1] ;
21598
21599 if (!args) SWIG_fail;
21600 swig_obj[0] = args;
21601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21602 if (!SWIG_IsOK(res1)) {
21603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21604 }
21605 arg1 = reinterpret_cast< wxDC * >(argp1);
21606 {
21607 PyThreadState* __tstate = wxPyBeginAllowThreads();
21608 {
21609 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21610 result = (wxFont *) &_result_ref;
21611 }
21612 wxPyEndAllowThreads(__tstate);
21613 if (PyErr_Occurred()) SWIG_fail;
21614 }
21615 {
21616 wxFont* resultptr = new wxFont(*result);
21617 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21618 }
21619 return resultobj;
21620 fail:
21621 return NULL;
21622 }
21623
21624
21625 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21626 PyObject *resultobj = 0;
21627 wxDC *arg1 = (wxDC *) 0 ;
21628 wxPen *result = 0 ;
21629 void *argp1 = 0 ;
21630 int res1 = 0 ;
21631 PyObject *swig_obj[1] ;
21632
21633 if (!args) SWIG_fail;
21634 swig_obj[0] = args;
21635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21636 if (!SWIG_IsOK(res1)) {
21637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
21638 }
21639 arg1 = reinterpret_cast< wxDC * >(argp1);
21640 {
21641 PyThreadState* __tstate = wxPyBeginAllowThreads();
21642 {
21643 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
21644 result = (wxPen *) &_result_ref;
21645 }
21646 wxPyEndAllowThreads(__tstate);
21647 if (PyErr_Occurred()) SWIG_fail;
21648 }
21649 {
21650 wxPen* resultptr = new wxPen(*result);
21651 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
21652 }
21653 return resultobj;
21654 fail:
21655 return NULL;
21656 }
21657
21658
21659 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21660 PyObject *resultobj = 0;
21661 wxDC *arg1 = (wxDC *) 0 ;
21662 wxColour *result = 0 ;
21663 void *argp1 = 0 ;
21664 int res1 = 0 ;
21665 PyObject *swig_obj[1] ;
21666
21667 if (!args) SWIG_fail;
21668 swig_obj[0] = args;
21669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21670 if (!SWIG_IsOK(res1)) {
21671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21672 }
21673 arg1 = reinterpret_cast< wxDC * >(argp1);
21674 {
21675 PyThreadState* __tstate = wxPyBeginAllowThreads();
21676 {
21677 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
21678 result = (wxColour *) &_result_ref;
21679 }
21680 wxPyEndAllowThreads(__tstate);
21681 if (PyErr_Occurred()) SWIG_fail;
21682 }
21683 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21684 return resultobj;
21685 fail:
21686 return NULL;
21687 }
21688
21689
21690 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21691 PyObject *resultobj = 0;
21692 wxDC *arg1 = (wxDC *) 0 ;
21693 wxColour *result = 0 ;
21694 void *argp1 = 0 ;
21695 int res1 = 0 ;
21696 PyObject *swig_obj[1] ;
21697
21698 if (!args) SWIG_fail;
21699 swig_obj[0] = args;
21700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21701 if (!SWIG_IsOK(res1)) {
21702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
21703 }
21704 arg1 = reinterpret_cast< wxDC * >(argp1);
21705 {
21706 PyThreadState* __tstate = wxPyBeginAllowThreads();
21707 {
21708 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
21709 result = (wxColour *) &_result_ref;
21710 }
21711 wxPyEndAllowThreads(__tstate);
21712 if (PyErr_Occurred()) SWIG_fail;
21713 }
21714 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21715 return resultobj;
21716 fail:
21717 return NULL;
21718 }
21719
21720
21721 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21722 PyObject *resultobj = 0;
21723 wxDC *arg1 = (wxDC *) 0 ;
21724 wxColour *arg2 = 0 ;
21725 void *argp1 = 0 ;
21726 int res1 = 0 ;
21727 wxColour temp2 ;
21728 PyObject * obj0 = 0 ;
21729 PyObject * obj1 = 0 ;
21730 char * kwnames[] = {
21731 (char *) "self",(char *) "colour", NULL
21732 };
21733
21734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
21735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21736 if (!SWIG_IsOK(res1)) {
21737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
21738 }
21739 arg1 = reinterpret_cast< wxDC * >(argp1);
21740 {
21741 arg2 = &temp2;
21742 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21743 }
21744 {
21745 PyThreadState* __tstate = wxPyBeginAllowThreads();
21746 (arg1)->SetTextForeground((wxColour const &)*arg2);
21747 wxPyEndAllowThreads(__tstate);
21748 if (PyErr_Occurred()) SWIG_fail;
21749 }
21750 resultobj = SWIG_Py_Void();
21751 return resultobj;
21752 fail:
21753 return NULL;
21754 }
21755
21756
21757 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21758 PyObject *resultobj = 0;
21759 wxDC *arg1 = (wxDC *) 0 ;
21760 wxColour *arg2 = 0 ;
21761 void *argp1 = 0 ;
21762 int res1 = 0 ;
21763 wxColour temp2 ;
21764 PyObject * obj0 = 0 ;
21765 PyObject * obj1 = 0 ;
21766 char * kwnames[] = {
21767 (char *) "self",(char *) "colour", NULL
21768 };
21769
21770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21772 if (!SWIG_IsOK(res1)) {
21773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21774 }
21775 arg1 = reinterpret_cast< wxDC * >(argp1);
21776 {
21777 arg2 = &temp2;
21778 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21779 }
21780 {
21781 PyThreadState* __tstate = wxPyBeginAllowThreads();
21782 (arg1)->SetTextBackground((wxColour const &)*arg2);
21783 wxPyEndAllowThreads(__tstate);
21784 if (PyErr_Occurred()) SWIG_fail;
21785 }
21786 resultobj = SWIG_Py_Void();
21787 return resultobj;
21788 fail:
21789 return NULL;
21790 }
21791
21792
21793 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21794 PyObject *resultobj = 0;
21795 wxDC *arg1 = (wxDC *) 0 ;
21796 int result;
21797 void *argp1 = 0 ;
21798 int res1 = 0 ;
21799 PyObject *swig_obj[1] ;
21800
21801 if (!args) SWIG_fail;
21802 swig_obj[0] = args;
21803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21804 if (!SWIG_IsOK(res1)) {
21805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21806 }
21807 arg1 = reinterpret_cast< wxDC * >(argp1);
21808 {
21809 PyThreadState* __tstate = wxPyBeginAllowThreads();
21810 result = (int)((wxDC const *)arg1)->GetMapMode();
21811 wxPyEndAllowThreads(__tstate);
21812 if (PyErr_Occurred()) SWIG_fail;
21813 }
21814 resultobj = SWIG_From_int(static_cast< int >(result));
21815 return resultobj;
21816 fail:
21817 return NULL;
21818 }
21819
21820
21821 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21822 PyObject *resultobj = 0;
21823 wxDC *arg1 = (wxDC *) 0 ;
21824 int arg2 ;
21825 void *argp1 = 0 ;
21826 int res1 = 0 ;
21827 int val2 ;
21828 int ecode2 = 0 ;
21829 PyObject * obj0 = 0 ;
21830 PyObject * obj1 = 0 ;
21831 char * kwnames[] = {
21832 (char *) "self",(char *) "mode", NULL
21833 };
21834
21835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
21836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21837 if (!SWIG_IsOK(res1)) {
21838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
21839 }
21840 arg1 = reinterpret_cast< wxDC * >(argp1);
21841 ecode2 = SWIG_AsVal_int(obj1, &val2);
21842 if (!SWIG_IsOK(ecode2)) {
21843 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
21844 }
21845 arg2 = static_cast< int >(val2);
21846 {
21847 PyThreadState* __tstate = wxPyBeginAllowThreads();
21848 (arg1)->SetMapMode(arg2);
21849 wxPyEndAllowThreads(__tstate);
21850 if (PyErr_Occurred()) SWIG_fail;
21851 }
21852 resultobj = SWIG_Py_Void();
21853 return resultobj;
21854 fail:
21855 return NULL;
21856 }
21857
21858
21859 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21860 PyObject *resultobj = 0;
21861 wxDC *arg1 = (wxDC *) 0 ;
21862 double *arg2 = (double *) 0 ;
21863 double *arg3 = (double *) 0 ;
21864 void *argp1 = 0 ;
21865 int res1 = 0 ;
21866 double temp2 ;
21867 int res2 = SWIG_TMPOBJ ;
21868 double temp3 ;
21869 int res3 = SWIG_TMPOBJ ;
21870 PyObject *swig_obj[1] ;
21871
21872 arg2 = &temp2;
21873 arg3 = &temp3;
21874 if (!args) SWIG_fail;
21875 swig_obj[0] = args;
21876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21877 if (!SWIG_IsOK(res1)) {
21878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
21879 }
21880 arg1 = reinterpret_cast< wxDC * >(argp1);
21881 {
21882 PyThreadState* __tstate = wxPyBeginAllowThreads();
21883 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
21884 wxPyEndAllowThreads(__tstate);
21885 if (PyErr_Occurred()) SWIG_fail;
21886 }
21887 resultobj = SWIG_Py_Void();
21888 if (SWIG_IsTmpObj(res2)) {
21889 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21890 } else {
21891 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21892 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21893 }
21894 if (SWIG_IsTmpObj(res3)) {
21895 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21896 } else {
21897 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21898 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21899 }
21900 return resultobj;
21901 fail:
21902 return NULL;
21903 }
21904
21905
21906 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21907 PyObject *resultobj = 0;
21908 wxDC *arg1 = (wxDC *) 0 ;
21909 double arg2 ;
21910 double arg3 ;
21911 void *argp1 = 0 ;
21912 int res1 = 0 ;
21913 double val2 ;
21914 int ecode2 = 0 ;
21915 double val3 ;
21916 int ecode3 = 0 ;
21917 PyObject * obj0 = 0 ;
21918 PyObject * obj1 = 0 ;
21919 PyObject * obj2 = 0 ;
21920 char * kwnames[] = {
21921 (char *) "self",(char *) "x",(char *) "y", NULL
21922 };
21923
21924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21926 if (!SWIG_IsOK(res1)) {
21927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
21928 }
21929 arg1 = reinterpret_cast< wxDC * >(argp1);
21930 ecode2 = SWIG_AsVal_double(obj1, &val2);
21931 if (!SWIG_IsOK(ecode2)) {
21932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
21933 }
21934 arg2 = static_cast< double >(val2);
21935 ecode3 = SWIG_AsVal_double(obj2, &val3);
21936 if (!SWIG_IsOK(ecode3)) {
21937 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
21938 }
21939 arg3 = static_cast< double >(val3);
21940 {
21941 PyThreadState* __tstate = wxPyBeginAllowThreads();
21942 (arg1)->SetUserScale(arg2,arg3);
21943 wxPyEndAllowThreads(__tstate);
21944 if (PyErr_Occurred()) SWIG_fail;
21945 }
21946 resultobj = SWIG_Py_Void();
21947 return resultobj;
21948 fail:
21949 return NULL;
21950 }
21951
21952
21953 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21954 PyObject *resultobj = 0;
21955 wxDC *arg1 = (wxDC *) 0 ;
21956 double *arg2 = (double *) 0 ;
21957 double *arg3 = (double *) 0 ;
21958 void *argp1 = 0 ;
21959 int res1 = 0 ;
21960 double temp2 ;
21961 int res2 = SWIG_TMPOBJ ;
21962 double temp3 ;
21963 int res3 = SWIG_TMPOBJ ;
21964 PyObject *swig_obj[1] ;
21965
21966 arg2 = &temp2;
21967 arg3 = &temp3;
21968 if (!args) SWIG_fail;
21969 swig_obj[0] = args;
21970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21971 if (!SWIG_IsOK(res1)) {
21972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
21973 }
21974 arg1 = reinterpret_cast< wxDC * >(argp1);
21975 {
21976 PyThreadState* __tstate = wxPyBeginAllowThreads();
21977 (arg1)->GetLogicalScale(arg2,arg3);
21978 wxPyEndAllowThreads(__tstate);
21979 if (PyErr_Occurred()) SWIG_fail;
21980 }
21981 resultobj = SWIG_Py_Void();
21982 if (SWIG_IsTmpObj(res2)) {
21983 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21984 } else {
21985 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21986 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21987 }
21988 if (SWIG_IsTmpObj(res3)) {
21989 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21990 } else {
21991 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21992 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21993 }
21994 return resultobj;
21995 fail:
21996 return NULL;
21997 }
21998
21999
22000 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22001 PyObject *resultobj = 0;
22002 wxDC *arg1 = (wxDC *) 0 ;
22003 double arg2 ;
22004 double arg3 ;
22005 void *argp1 = 0 ;
22006 int res1 = 0 ;
22007 double val2 ;
22008 int ecode2 = 0 ;
22009 double val3 ;
22010 int ecode3 = 0 ;
22011 PyObject * obj0 = 0 ;
22012 PyObject * obj1 = 0 ;
22013 PyObject * obj2 = 0 ;
22014 char * kwnames[] = {
22015 (char *) "self",(char *) "x",(char *) "y", NULL
22016 };
22017
22018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22020 if (!SWIG_IsOK(res1)) {
22021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22022 }
22023 arg1 = reinterpret_cast< wxDC * >(argp1);
22024 ecode2 = SWIG_AsVal_double(obj1, &val2);
22025 if (!SWIG_IsOK(ecode2)) {
22026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22027 }
22028 arg2 = static_cast< double >(val2);
22029 ecode3 = SWIG_AsVal_double(obj2, &val3);
22030 if (!SWIG_IsOK(ecode3)) {
22031 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22032 }
22033 arg3 = static_cast< double >(val3);
22034 {
22035 PyThreadState* __tstate = wxPyBeginAllowThreads();
22036 (arg1)->SetLogicalScale(arg2,arg3);
22037 wxPyEndAllowThreads(__tstate);
22038 if (PyErr_Occurred()) SWIG_fail;
22039 }
22040 resultobj = SWIG_Py_Void();
22041 return resultobj;
22042 fail:
22043 return NULL;
22044 }
22045
22046
22047 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22048 PyObject *resultobj = 0;
22049 wxDC *arg1 = (wxDC *) 0 ;
22050 wxPoint result;
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_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22060 }
22061 arg1 = reinterpret_cast< wxDC * >(argp1);
22062 {
22063 PyThreadState* __tstate = wxPyBeginAllowThreads();
22064 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22065 wxPyEndAllowThreads(__tstate);
22066 if (PyErr_Occurred()) SWIG_fail;
22067 }
22068 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22069 return resultobj;
22070 fail:
22071 return NULL;
22072 }
22073
22074
22075 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22076 PyObject *resultobj = 0;
22077 wxDC *arg1 = (wxDC *) 0 ;
22078 int *arg2 = (int *) 0 ;
22079 int *arg3 = (int *) 0 ;
22080 void *argp1 = 0 ;
22081 int res1 = 0 ;
22082 int temp2 ;
22083 int res2 = SWIG_TMPOBJ ;
22084 int temp3 ;
22085 int res3 = SWIG_TMPOBJ ;
22086 PyObject *swig_obj[1] ;
22087
22088 arg2 = &temp2;
22089 arg3 = &temp3;
22090 if (!args) SWIG_fail;
22091 swig_obj[0] = args;
22092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22093 if (!SWIG_IsOK(res1)) {
22094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22095 }
22096 arg1 = reinterpret_cast< wxDC * >(argp1);
22097 {
22098 PyThreadState* __tstate = wxPyBeginAllowThreads();
22099 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22100 wxPyEndAllowThreads(__tstate);
22101 if (PyErr_Occurred()) SWIG_fail;
22102 }
22103 resultobj = SWIG_Py_Void();
22104 if (SWIG_IsTmpObj(res2)) {
22105 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22106 } else {
22107 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22108 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22109 }
22110 if (SWIG_IsTmpObj(res3)) {
22111 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22112 } else {
22113 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22114 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22115 }
22116 return resultobj;
22117 fail:
22118 return NULL;
22119 }
22120
22121
22122 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22123 PyObject *resultobj = 0;
22124 wxDC *arg1 = (wxDC *) 0 ;
22125 int arg2 ;
22126 int arg3 ;
22127 void *argp1 = 0 ;
22128 int res1 = 0 ;
22129 int val2 ;
22130 int ecode2 = 0 ;
22131 int val3 ;
22132 int ecode3 = 0 ;
22133 PyObject * obj0 = 0 ;
22134 PyObject * obj1 = 0 ;
22135 PyObject * obj2 = 0 ;
22136 char * kwnames[] = {
22137 (char *) "self",(char *) "x",(char *) "y", NULL
22138 };
22139
22140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22142 if (!SWIG_IsOK(res1)) {
22143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22144 }
22145 arg1 = reinterpret_cast< wxDC * >(argp1);
22146 ecode2 = SWIG_AsVal_int(obj1, &val2);
22147 if (!SWIG_IsOK(ecode2)) {
22148 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22149 }
22150 arg2 = static_cast< int >(val2);
22151 ecode3 = SWIG_AsVal_int(obj2, &val3);
22152 if (!SWIG_IsOK(ecode3)) {
22153 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22154 }
22155 arg3 = static_cast< int >(val3);
22156 {
22157 PyThreadState* __tstate = wxPyBeginAllowThreads();
22158 (arg1)->SetLogicalOrigin(arg2,arg3);
22159 wxPyEndAllowThreads(__tstate);
22160 if (PyErr_Occurred()) SWIG_fail;
22161 }
22162 resultobj = SWIG_Py_Void();
22163 return resultobj;
22164 fail:
22165 return NULL;
22166 }
22167
22168
22169 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22170 PyObject *resultobj = 0;
22171 wxDC *arg1 = (wxDC *) 0 ;
22172 wxPoint *arg2 = 0 ;
22173 void *argp1 = 0 ;
22174 int res1 = 0 ;
22175 wxPoint temp2 ;
22176 PyObject * obj0 = 0 ;
22177 PyObject * obj1 = 0 ;
22178 char * kwnames[] = {
22179 (char *) "self",(char *) "point", NULL
22180 };
22181
22182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22184 if (!SWIG_IsOK(res1)) {
22185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22186 }
22187 arg1 = reinterpret_cast< wxDC * >(argp1);
22188 {
22189 arg2 = &temp2;
22190 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22191 }
22192 {
22193 PyThreadState* __tstate = wxPyBeginAllowThreads();
22194 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22195 wxPyEndAllowThreads(__tstate);
22196 if (PyErr_Occurred()) SWIG_fail;
22197 }
22198 resultobj = SWIG_Py_Void();
22199 return resultobj;
22200 fail:
22201 return NULL;
22202 }
22203
22204
22205 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22206 PyObject *resultobj = 0;
22207 wxDC *arg1 = (wxDC *) 0 ;
22208 wxPoint result;
22209 void *argp1 = 0 ;
22210 int res1 = 0 ;
22211 PyObject *swig_obj[1] ;
22212
22213 if (!args) SWIG_fail;
22214 swig_obj[0] = args;
22215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22216 if (!SWIG_IsOK(res1)) {
22217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22218 }
22219 arg1 = reinterpret_cast< wxDC * >(argp1);
22220 {
22221 PyThreadState* __tstate = wxPyBeginAllowThreads();
22222 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22223 wxPyEndAllowThreads(__tstate);
22224 if (PyErr_Occurred()) SWIG_fail;
22225 }
22226 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22227 return resultobj;
22228 fail:
22229 return NULL;
22230 }
22231
22232
22233 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22234 PyObject *resultobj = 0;
22235 wxDC *arg1 = (wxDC *) 0 ;
22236 int *arg2 = (int *) 0 ;
22237 int *arg3 = (int *) 0 ;
22238 void *argp1 = 0 ;
22239 int res1 = 0 ;
22240 int temp2 ;
22241 int res2 = SWIG_TMPOBJ ;
22242 int temp3 ;
22243 int res3 = SWIG_TMPOBJ ;
22244 PyObject *swig_obj[1] ;
22245
22246 arg2 = &temp2;
22247 arg3 = &temp3;
22248 if (!args) SWIG_fail;
22249 swig_obj[0] = args;
22250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22251 if (!SWIG_IsOK(res1)) {
22252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22253 }
22254 arg1 = reinterpret_cast< wxDC * >(argp1);
22255 {
22256 PyThreadState* __tstate = wxPyBeginAllowThreads();
22257 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22258 wxPyEndAllowThreads(__tstate);
22259 if (PyErr_Occurred()) SWIG_fail;
22260 }
22261 resultobj = SWIG_Py_Void();
22262 if (SWIG_IsTmpObj(res2)) {
22263 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22264 } else {
22265 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22266 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22267 }
22268 if (SWIG_IsTmpObj(res3)) {
22269 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22270 } else {
22271 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22272 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22273 }
22274 return resultobj;
22275 fail:
22276 return NULL;
22277 }
22278
22279
22280 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22281 PyObject *resultobj = 0;
22282 wxDC *arg1 = (wxDC *) 0 ;
22283 int arg2 ;
22284 int arg3 ;
22285 void *argp1 = 0 ;
22286 int res1 = 0 ;
22287 int val2 ;
22288 int ecode2 = 0 ;
22289 int val3 ;
22290 int ecode3 = 0 ;
22291 PyObject * obj0 = 0 ;
22292 PyObject * obj1 = 0 ;
22293 PyObject * obj2 = 0 ;
22294 char * kwnames[] = {
22295 (char *) "self",(char *) "x",(char *) "y", NULL
22296 };
22297
22298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22300 if (!SWIG_IsOK(res1)) {
22301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22302 }
22303 arg1 = reinterpret_cast< wxDC * >(argp1);
22304 ecode2 = SWIG_AsVal_int(obj1, &val2);
22305 if (!SWIG_IsOK(ecode2)) {
22306 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22307 }
22308 arg2 = static_cast< int >(val2);
22309 ecode3 = SWIG_AsVal_int(obj2, &val3);
22310 if (!SWIG_IsOK(ecode3)) {
22311 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22312 }
22313 arg3 = static_cast< int >(val3);
22314 {
22315 PyThreadState* __tstate = wxPyBeginAllowThreads();
22316 (arg1)->SetDeviceOrigin(arg2,arg3);
22317 wxPyEndAllowThreads(__tstate);
22318 if (PyErr_Occurred()) SWIG_fail;
22319 }
22320 resultobj = SWIG_Py_Void();
22321 return resultobj;
22322 fail:
22323 return NULL;
22324 }
22325
22326
22327 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22328 PyObject *resultobj = 0;
22329 wxDC *arg1 = (wxDC *) 0 ;
22330 wxPoint *arg2 = 0 ;
22331 void *argp1 = 0 ;
22332 int res1 = 0 ;
22333 wxPoint temp2 ;
22334 PyObject * obj0 = 0 ;
22335 PyObject * obj1 = 0 ;
22336 char * kwnames[] = {
22337 (char *) "self",(char *) "point", NULL
22338 };
22339
22340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22342 if (!SWIG_IsOK(res1)) {
22343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22344 }
22345 arg1 = reinterpret_cast< wxDC * >(argp1);
22346 {
22347 arg2 = &temp2;
22348 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22349 }
22350 {
22351 PyThreadState* __tstate = wxPyBeginAllowThreads();
22352 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22353 wxPyEndAllowThreads(__tstate);
22354 if (PyErr_Occurred()) SWIG_fail;
22355 }
22356 resultobj = SWIG_Py_Void();
22357 return resultobj;
22358 fail:
22359 return NULL;
22360 }
22361
22362
22363 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22364 PyObject *resultobj = 0;
22365 wxDC *arg1 = (wxDC *) 0 ;
22366 bool arg2 ;
22367 bool arg3 ;
22368 void *argp1 = 0 ;
22369 int res1 = 0 ;
22370 bool val2 ;
22371 int ecode2 = 0 ;
22372 bool val3 ;
22373 int ecode3 = 0 ;
22374 PyObject * obj0 = 0 ;
22375 PyObject * obj1 = 0 ;
22376 PyObject * obj2 = 0 ;
22377 char * kwnames[] = {
22378 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22379 };
22380
22381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22383 if (!SWIG_IsOK(res1)) {
22384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22385 }
22386 arg1 = reinterpret_cast< wxDC * >(argp1);
22387 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22388 if (!SWIG_IsOK(ecode2)) {
22389 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22390 }
22391 arg2 = static_cast< bool >(val2);
22392 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22393 if (!SWIG_IsOK(ecode3)) {
22394 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22395 }
22396 arg3 = static_cast< bool >(val3);
22397 {
22398 PyThreadState* __tstate = wxPyBeginAllowThreads();
22399 (arg1)->SetAxisOrientation(arg2,arg3);
22400 wxPyEndAllowThreads(__tstate);
22401 if (PyErr_Occurred()) SWIG_fail;
22402 }
22403 resultobj = SWIG_Py_Void();
22404 return resultobj;
22405 fail:
22406 return NULL;
22407 }
22408
22409
22410 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22411 PyObject *resultobj = 0;
22412 wxDC *arg1 = (wxDC *) 0 ;
22413 int result;
22414 void *argp1 = 0 ;
22415 int res1 = 0 ;
22416 PyObject *swig_obj[1] ;
22417
22418 if (!args) SWIG_fail;
22419 swig_obj[0] = args;
22420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22421 if (!SWIG_IsOK(res1)) {
22422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22423 }
22424 arg1 = reinterpret_cast< wxDC * >(argp1);
22425 {
22426 PyThreadState* __tstate = wxPyBeginAllowThreads();
22427 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22428 wxPyEndAllowThreads(__tstate);
22429 if (PyErr_Occurred()) SWIG_fail;
22430 }
22431 resultobj = SWIG_From_int(static_cast< int >(result));
22432 return resultobj;
22433 fail:
22434 return NULL;
22435 }
22436
22437
22438 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22439 PyObject *resultobj = 0;
22440 wxDC *arg1 = (wxDC *) 0 ;
22441 int arg2 ;
22442 void *argp1 = 0 ;
22443 int res1 = 0 ;
22444 int val2 ;
22445 int ecode2 = 0 ;
22446 PyObject * obj0 = 0 ;
22447 PyObject * obj1 = 0 ;
22448 char * kwnames[] = {
22449 (char *) "self",(char *) "function", NULL
22450 };
22451
22452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22454 if (!SWIG_IsOK(res1)) {
22455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22456 }
22457 arg1 = reinterpret_cast< wxDC * >(argp1);
22458 ecode2 = SWIG_AsVal_int(obj1, &val2);
22459 if (!SWIG_IsOK(ecode2)) {
22460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22461 }
22462 arg2 = static_cast< int >(val2);
22463 {
22464 PyThreadState* __tstate = wxPyBeginAllowThreads();
22465 (arg1)->SetLogicalFunction(arg2);
22466 wxPyEndAllowThreads(__tstate);
22467 if (PyErr_Occurred()) SWIG_fail;
22468 }
22469 resultobj = SWIG_Py_Void();
22470 return resultobj;
22471 fail:
22472 return NULL;
22473 }
22474
22475
22476 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22477 PyObject *resultobj = 0;
22478 wxDC *arg1 = (wxDC *) 0 ;
22479 void *argp1 = 0 ;
22480 int res1 = 0 ;
22481 PyObject *swig_obj[1] ;
22482
22483 if (!args) SWIG_fail;
22484 swig_obj[0] = args;
22485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22486 if (!SWIG_IsOK(res1)) {
22487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22488 }
22489 arg1 = reinterpret_cast< wxDC * >(argp1);
22490 {
22491 PyThreadState* __tstate = wxPyBeginAllowThreads();
22492 (arg1)->ComputeScaleAndOrigin();
22493 wxPyEndAllowThreads(__tstate);
22494 if (PyErr_Occurred()) SWIG_fail;
22495 }
22496 resultobj = SWIG_Py_Void();
22497 return resultobj;
22498 fail:
22499 return NULL;
22500 }
22501
22502
22503 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22504 PyObject *resultobj = 0;
22505 wxDC *arg1 = (wxDC *) 0 ;
22506 int arg2 ;
22507 int arg3 ;
22508 void *argp1 = 0 ;
22509 int res1 = 0 ;
22510 int val2 ;
22511 int ecode2 = 0 ;
22512 int val3 ;
22513 int ecode3 = 0 ;
22514 PyObject * obj0 = 0 ;
22515 PyObject * obj1 = 0 ;
22516 PyObject * obj2 = 0 ;
22517 char * kwnames[] = {
22518 (char *) "self",(char *) "x",(char *) "y", NULL
22519 };
22520
22521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22523 if (!SWIG_IsOK(res1)) {
22524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22525 }
22526 arg1 = reinterpret_cast< wxDC * >(argp1);
22527 ecode2 = SWIG_AsVal_int(obj1, &val2);
22528 if (!SWIG_IsOK(ecode2)) {
22529 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22530 }
22531 arg2 = static_cast< int >(val2);
22532 ecode3 = SWIG_AsVal_int(obj2, &val3);
22533 if (!SWIG_IsOK(ecode3)) {
22534 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22535 }
22536 arg3 = static_cast< int >(val3);
22537 {
22538 PyThreadState* __tstate = wxPyBeginAllowThreads();
22539 (arg1)->CalcBoundingBox(arg2,arg3);
22540 wxPyEndAllowThreads(__tstate);
22541 if (PyErr_Occurred()) SWIG_fail;
22542 }
22543 resultobj = SWIG_Py_Void();
22544 return resultobj;
22545 fail:
22546 return NULL;
22547 }
22548
22549
22550 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22551 PyObject *resultobj = 0;
22552 wxDC *arg1 = (wxDC *) 0 ;
22553 wxPoint *arg2 = 0 ;
22554 void *argp1 = 0 ;
22555 int res1 = 0 ;
22556 wxPoint temp2 ;
22557 PyObject * obj0 = 0 ;
22558 PyObject * obj1 = 0 ;
22559 char * kwnames[] = {
22560 (char *) "self",(char *) "point", NULL
22561 };
22562
22563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22565 if (!SWIG_IsOK(res1)) {
22566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22567 }
22568 arg1 = reinterpret_cast< wxDC * >(argp1);
22569 {
22570 arg2 = &temp2;
22571 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22572 }
22573 {
22574 PyThreadState* __tstate = wxPyBeginAllowThreads();
22575 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22576 wxPyEndAllowThreads(__tstate);
22577 if (PyErr_Occurred()) SWIG_fail;
22578 }
22579 resultobj = SWIG_Py_Void();
22580 return resultobj;
22581 fail:
22582 return NULL;
22583 }
22584
22585
22586 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22587 PyObject *resultobj = 0;
22588 wxDC *arg1 = (wxDC *) 0 ;
22589 void *argp1 = 0 ;
22590 int res1 = 0 ;
22591 PyObject *swig_obj[1] ;
22592
22593 if (!args) SWIG_fail;
22594 swig_obj[0] = args;
22595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22596 if (!SWIG_IsOK(res1)) {
22597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22598 }
22599 arg1 = reinterpret_cast< wxDC * >(argp1);
22600 {
22601 PyThreadState* __tstate = wxPyBeginAllowThreads();
22602 (arg1)->ResetBoundingBox();
22603 wxPyEndAllowThreads(__tstate);
22604 if (PyErr_Occurred()) SWIG_fail;
22605 }
22606 resultobj = SWIG_Py_Void();
22607 return resultobj;
22608 fail:
22609 return NULL;
22610 }
22611
22612
22613 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22614 PyObject *resultobj = 0;
22615 wxDC *arg1 = (wxDC *) 0 ;
22616 int result;
22617 void *argp1 = 0 ;
22618 int res1 = 0 ;
22619 PyObject *swig_obj[1] ;
22620
22621 if (!args) SWIG_fail;
22622 swig_obj[0] = args;
22623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22624 if (!SWIG_IsOK(res1)) {
22625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
22626 }
22627 arg1 = reinterpret_cast< wxDC * >(argp1);
22628 {
22629 PyThreadState* __tstate = wxPyBeginAllowThreads();
22630 result = (int)((wxDC const *)arg1)->MinX();
22631 wxPyEndAllowThreads(__tstate);
22632 if (PyErr_Occurred()) SWIG_fail;
22633 }
22634 resultobj = SWIG_From_int(static_cast< int >(result));
22635 return resultobj;
22636 fail:
22637 return NULL;
22638 }
22639
22640
22641 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22642 PyObject *resultobj = 0;
22643 wxDC *arg1 = (wxDC *) 0 ;
22644 int result;
22645 void *argp1 = 0 ;
22646 int res1 = 0 ;
22647 PyObject *swig_obj[1] ;
22648
22649 if (!args) SWIG_fail;
22650 swig_obj[0] = args;
22651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22652 if (!SWIG_IsOK(res1)) {
22653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
22654 }
22655 arg1 = reinterpret_cast< wxDC * >(argp1);
22656 {
22657 PyThreadState* __tstate = wxPyBeginAllowThreads();
22658 result = (int)((wxDC const *)arg1)->MaxX();
22659 wxPyEndAllowThreads(__tstate);
22660 if (PyErr_Occurred()) SWIG_fail;
22661 }
22662 resultobj = SWIG_From_int(static_cast< int >(result));
22663 return resultobj;
22664 fail:
22665 return NULL;
22666 }
22667
22668
22669 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22670 PyObject *resultobj = 0;
22671 wxDC *arg1 = (wxDC *) 0 ;
22672 int result;
22673 void *argp1 = 0 ;
22674 int res1 = 0 ;
22675 PyObject *swig_obj[1] ;
22676
22677 if (!args) SWIG_fail;
22678 swig_obj[0] = args;
22679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22680 if (!SWIG_IsOK(res1)) {
22681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
22682 }
22683 arg1 = reinterpret_cast< wxDC * >(argp1);
22684 {
22685 PyThreadState* __tstate = wxPyBeginAllowThreads();
22686 result = (int)((wxDC const *)arg1)->MinY();
22687 wxPyEndAllowThreads(__tstate);
22688 if (PyErr_Occurred()) SWIG_fail;
22689 }
22690 resultobj = SWIG_From_int(static_cast< int >(result));
22691 return resultobj;
22692 fail:
22693 return NULL;
22694 }
22695
22696
22697 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22698 PyObject *resultobj = 0;
22699 wxDC *arg1 = (wxDC *) 0 ;
22700 int result;
22701 void *argp1 = 0 ;
22702 int res1 = 0 ;
22703 PyObject *swig_obj[1] ;
22704
22705 if (!args) SWIG_fail;
22706 swig_obj[0] = args;
22707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22708 if (!SWIG_IsOK(res1)) {
22709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
22710 }
22711 arg1 = reinterpret_cast< wxDC * >(argp1);
22712 {
22713 PyThreadState* __tstate = wxPyBeginAllowThreads();
22714 result = (int)((wxDC const *)arg1)->MaxY();
22715 wxPyEndAllowThreads(__tstate);
22716 if (PyErr_Occurred()) SWIG_fail;
22717 }
22718 resultobj = SWIG_From_int(static_cast< int >(result));
22719 return resultobj;
22720 fail:
22721 return NULL;
22722 }
22723
22724
22725 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22726 PyObject *resultobj = 0;
22727 wxDC *arg1 = (wxDC *) 0 ;
22728 int *arg2 = (int *) 0 ;
22729 int *arg3 = (int *) 0 ;
22730 int *arg4 = (int *) 0 ;
22731 int *arg5 = (int *) 0 ;
22732 void *argp1 = 0 ;
22733 int res1 = 0 ;
22734 int temp2 ;
22735 int res2 = SWIG_TMPOBJ ;
22736 int temp3 ;
22737 int res3 = SWIG_TMPOBJ ;
22738 int temp4 ;
22739 int res4 = SWIG_TMPOBJ ;
22740 int temp5 ;
22741 int res5 = SWIG_TMPOBJ ;
22742 PyObject *swig_obj[1] ;
22743
22744 arg2 = &temp2;
22745 arg3 = &temp3;
22746 arg4 = &temp4;
22747 arg5 = &temp5;
22748 if (!args) SWIG_fail;
22749 swig_obj[0] = args;
22750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22751 if (!SWIG_IsOK(res1)) {
22752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22753 }
22754 arg1 = reinterpret_cast< wxDC * >(argp1);
22755 {
22756 PyThreadState* __tstate = wxPyBeginAllowThreads();
22757 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
22758 wxPyEndAllowThreads(__tstate);
22759 if (PyErr_Occurred()) SWIG_fail;
22760 }
22761 resultobj = SWIG_Py_Void();
22762 if (SWIG_IsTmpObj(res2)) {
22763 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22764 } else {
22765 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22766 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22767 }
22768 if (SWIG_IsTmpObj(res3)) {
22769 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22770 } else {
22771 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22772 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22773 }
22774 if (SWIG_IsTmpObj(res4)) {
22775 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22776 } else {
22777 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22778 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22779 }
22780 if (SWIG_IsTmpObj(res5)) {
22781 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
22782 } else {
22783 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22784 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
22785 }
22786 return resultobj;
22787 fail:
22788 return NULL;
22789 }
22790
22791
22792 SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22793 PyObject *resultobj = 0;
22794 wxDC *arg1 = (wxDC *) 0 ;
22795 wxLayoutDirection result;
22796 void *argp1 = 0 ;
22797 int res1 = 0 ;
22798 PyObject *swig_obj[1] ;
22799
22800 if (!args) SWIG_fail;
22801 swig_obj[0] = args;
22802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22803 if (!SWIG_IsOK(res1)) {
22804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
22805 }
22806 arg1 = reinterpret_cast< wxDC * >(argp1);
22807 {
22808 PyThreadState* __tstate = wxPyBeginAllowThreads();
22809 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
22810 wxPyEndAllowThreads(__tstate);
22811 if (PyErr_Occurred()) SWIG_fail;
22812 }
22813 resultobj = SWIG_From_int(static_cast< int >(result));
22814 return resultobj;
22815 fail:
22816 return NULL;
22817 }
22818
22819
22820 SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22821 PyObject *resultobj = 0;
22822 wxDC *arg1 = (wxDC *) 0 ;
22823 wxLayoutDirection arg2 ;
22824 void *argp1 = 0 ;
22825 int res1 = 0 ;
22826 int val2 ;
22827 int ecode2 = 0 ;
22828 PyObject * obj0 = 0 ;
22829 PyObject * obj1 = 0 ;
22830 char * kwnames[] = {
22831 (char *) "self",(char *) "dir", NULL
22832 };
22833
22834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
22835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22836 if (!SWIG_IsOK(res1)) {
22837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
22838 }
22839 arg1 = reinterpret_cast< wxDC * >(argp1);
22840 ecode2 = SWIG_AsVal_int(obj1, &val2);
22841 if (!SWIG_IsOK(ecode2)) {
22842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
22843 }
22844 arg2 = static_cast< wxLayoutDirection >(val2);
22845 {
22846 PyThreadState* __tstate = wxPyBeginAllowThreads();
22847 (arg1)->SetLayoutDirection(arg2);
22848 wxPyEndAllowThreads(__tstate);
22849 if (PyErr_Occurred()) SWIG_fail;
22850 }
22851 resultobj = SWIG_Py_Void();
22852 return resultobj;
22853 fail:
22854 return NULL;
22855 }
22856
22857
22858 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22859 PyObject *resultobj = 0;
22860 wxDC *arg1 = (wxDC *) 0 ;
22861 PyObject *arg2 = (PyObject *) 0 ;
22862 PyObject *arg3 = (PyObject *) 0 ;
22863 PyObject *arg4 = (PyObject *) 0 ;
22864 PyObject *result = 0 ;
22865 void *argp1 = 0 ;
22866 int res1 = 0 ;
22867 PyObject * obj0 = 0 ;
22868 PyObject * obj1 = 0 ;
22869 PyObject * obj2 = 0 ;
22870 PyObject * obj3 = 0 ;
22871 char * kwnames[] = {
22872 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22873 };
22874
22875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22877 if (!SWIG_IsOK(res1)) {
22878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
22879 }
22880 arg1 = reinterpret_cast< wxDC * >(argp1);
22881 arg2 = obj1;
22882 arg3 = obj2;
22883 arg4 = obj3;
22884 {
22885 PyThreadState* __tstate = wxPyBeginAllowThreads();
22886 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
22887 wxPyEndAllowThreads(__tstate);
22888 if (PyErr_Occurred()) SWIG_fail;
22889 }
22890 resultobj = result;
22891 return resultobj;
22892 fail:
22893 return NULL;
22894 }
22895
22896
22897 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22898 PyObject *resultobj = 0;
22899 wxDC *arg1 = (wxDC *) 0 ;
22900 PyObject *arg2 = (PyObject *) 0 ;
22901 PyObject *arg3 = (PyObject *) 0 ;
22902 PyObject *arg4 = (PyObject *) 0 ;
22903 PyObject *result = 0 ;
22904 void *argp1 = 0 ;
22905 int res1 = 0 ;
22906 PyObject * obj0 = 0 ;
22907 PyObject * obj1 = 0 ;
22908 PyObject * obj2 = 0 ;
22909 PyObject * obj3 = 0 ;
22910 char * kwnames[] = {
22911 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22912 };
22913
22914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22916 if (!SWIG_IsOK(res1)) {
22917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
22918 }
22919 arg1 = reinterpret_cast< wxDC * >(argp1);
22920 arg2 = obj1;
22921 arg3 = obj2;
22922 arg4 = obj3;
22923 {
22924 PyThreadState* __tstate = wxPyBeginAllowThreads();
22925 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
22926 wxPyEndAllowThreads(__tstate);
22927 if (PyErr_Occurred()) SWIG_fail;
22928 }
22929 resultobj = result;
22930 return resultobj;
22931 fail:
22932 return NULL;
22933 }
22934
22935
22936 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22937 PyObject *resultobj = 0;
22938 wxDC *arg1 = (wxDC *) 0 ;
22939 PyObject *arg2 = (PyObject *) 0 ;
22940 PyObject *arg3 = (PyObject *) 0 ;
22941 PyObject *arg4 = (PyObject *) 0 ;
22942 PyObject *result = 0 ;
22943 void *argp1 = 0 ;
22944 int res1 = 0 ;
22945 PyObject * obj0 = 0 ;
22946 PyObject * obj1 = 0 ;
22947 PyObject * obj2 = 0 ;
22948 PyObject * obj3 = 0 ;
22949 char * kwnames[] = {
22950 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22951 };
22952
22953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22955 if (!SWIG_IsOK(res1)) {
22956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
22957 }
22958 arg1 = reinterpret_cast< wxDC * >(argp1);
22959 arg2 = obj1;
22960 arg3 = obj2;
22961 arg4 = obj3;
22962 {
22963 PyThreadState* __tstate = wxPyBeginAllowThreads();
22964 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
22965 wxPyEndAllowThreads(__tstate);
22966 if (PyErr_Occurred()) SWIG_fail;
22967 }
22968 resultobj = result;
22969 return resultobj;
22970 fail:
22971 return NULL;
22972 }
22973
22974
22975 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22976 PyObject *resultobj = 0;
22977 wxDC *arg1 = (wxDC *) 0 ;
22978 PyObject *arg2 = (PyObject *) 0 ;
22979 PyObject *arg3 = (PyObject *) 0 ;
22980 PyObject *arg4 = (PyObject *) 0 ;
22981 PyObject *result = 0 ;
22982 void *argp1 = 0 ;
22983 int res1 = 0 ;
22984 PyObject * obj0 = 0 ;
22985 PyObject * obj1 = 0 ;
22986 PyObject * obj2 = 0 ;
22987 PyObject * obj3 = 0 ;
22988 char * kwnames[] = {
22989 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22990 };
22991
22992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22994 if (!SWIG_IsOK(res1)) {
22995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
22996 }
22997 arg1 = reinterpret_cast< wxDC * >(argp1);
22998 arg2 = obj1;
22999 arg3 = obj2;
23000 arg4 = obj3;
23001 {
23002 PyThreadState* __tstate = wxPyBeginAllowThreads();
23003 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23004 wxPyEndAllowThreads(__tstate);
23005 if (PyErr_Occurred()) SWIG_fail;
23006 }
23007 resultobj = result;
23008 return resultobj;
23009 fail:
23010 return NULL;
23011 }
23012
23013
23014 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23015 PyObject *resultobj = 0;
23016 wxDC *arg1 = (wxDC *) 0 ;
23017 PyObject *arg2 = (PyObject *) 0 ;
23018 PyObject *arg3 = (PyObject *) 0 ;
23019 PyObject *arg4 = (PyObject *) 0 ;
23020 PyObject *result = 0 ;
23021 void *argp1 = 0 ;
23022 int res1 = 0 ;
23023 PyObject * obj0 = 0 ;
23024 PyObject * obj1 = 0 ;
23025 PyObject * obj2 = 0 ;
23026 PyObject * obj3 = 0 ;
23027 char * kwnames[] = {
23028 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23029 };
23030
23031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23033 if (!SWIG_IsOK(res1)) {
23034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23035 }
23036 arg1 = reinterpret_cast< wxDC * >(argp1);
23037 arg2 = obj1;
23038 arg3 = obj2;
23039 arg4 = obj3;
23040 {
23041 PyThreadState* __tstate = wxPyBeginAllowThreads();
23042 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23043 wxPyEndAllowThreads(__tstate);
23044 if (PyErr_Occurred()) SWIG_fail;
23045 }
23046 resultobj = result;
23047 return resultobj;
23048 fail:
23049 return NULL;
23050 }
23051
23052
23053 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23054 PyObject *resultobj = 0;
23055 wxDC *arg1 = (wxDC *) 0 ;
23056 PyObject *arg2 = (PyObject *) 0 ;
23057 PyObject *arg3 = (PyObject *) 0 ;
23058 PyObject *arg4 = (PyObject *) 0 ;
23059 PyObject *arg5 = (PyObject *) 0 ;
23060 PyObject *result = 0 ;
23061 void *argp1 = 0 ;
23062 int res1 = 0 ;
23063 PyObject * obj0 = 0 ;
23064 PyObject * obj1 = 0 ;
23065 PyObject * obj2 = 0 ;
23066 PyObject * obj3 = 0 ;
23067 PyObject * obj4 = 0 ;
23068 char * kwnames[] = {
23069 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23070 };
23071
23072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23074 if (!SWIG_IsOK(res1)) {
23075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23076 }
23077 arg1 = reinterpret_cast< wxDC * >(argp1);
23078 arg2 = obj1;
23079 arg3 = obj2;
23080 arg4 = obj3;
23081 arg5 = obj4;
23082 {
23083 PyThreadState* __tstate = wxPyBeginAllowThreads();
23084 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23085 wxPyEndAllowThreads(__tstate);
23086 if (PyErr_Occurred()) SWIG_fail;
23087 }
23088 resultobj = result;
23089 return resultobj;
23090 fail:
23091 return NULL;
23092 }
23093
23094
23095 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23096 PyObject *obj;
23097 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23098 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23099 return SWIG_Py_Void();
23100 }
23101
23102 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23103 PyObject *resultobj = 0;
23104 wxMemoryDC *result = 0 ;
23105
23106 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
23107 {
23108 if (!wxPyCheckForApp()) SWIG_fail;
23109 PyThreadState* __tstate = wxPyBeginAllowThreads();
23110 result = (wxMemoryDC *)new wxMemoryDC();
23111 wxPyEndAllowThreads(__tstate);
23112 if (PyErr_Occurred()) SWIG_fail;
23113 }
23114 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
23115 return resultobj;
23116 fail:
23117 return NULL;
23118 }
23119
23120
23121 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23122 PyObject *resultobj = 0;
23123 wxDC *arg1 = (wxDC *) 0 ;
23124 wxMemoryDC *result = 0 ;
23125 void *argp1 = 0 ;
23126 int res1 = 0 ;
23127 PyObject * obj0 = 0 ;
23128 char * kwnames[] = {
23129 (char *) "oldDC", NULL
23130 };
23131
23132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
23133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23134 if (!SWIG_IsOK(res1)) {
23135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
23136 }
23137 arg1 = reinterpret_cast< wxDC * >(argp1);
23138 {
23139 if (!wxPyCheckForApp()) SWIG_fail;
23140 PyThreadState* __tstate = wxPyBeginAllowThreads();
23141 result = (wxMemoryDC *)new wxMemoryDC(arg1);
23142 wxPyEndAllowThreads(__tstate);
23143 if (PyErr_Occurred()) SWIG_fail;
23144 }
23145 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
23146 return resultobj;
23147 fail:
23148 return NULL;
23149 }
23150
23151
23152 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23153 PyObject *resultobj = 0;
23154 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
23155 wxBitmap *arg2 = 0 ;
23156 void *argp1 = 0 ;
23157 int res1 = 0 ;
23158 void *argp2 = 0 ;
23159 int res2 = 0 ;
23160 PyObject * obj0 = 0 ;
23161 PyObject * obj1 = 0 ;
23162 char * kwnames[] = {
23163 (char *) "self",(char *) "bitmap", NULL
23164 };
23165
23166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
23167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
23168 if (!SWIG_IsOK(res1)) {
23169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
23170 }
23171 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
23172 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23173 if (!SWIG_IsOK(res2)) {
23174 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23175 }
23176 if (!argp2) {
23177 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23178 }
23179 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23180 {
23181 PyThreadState* __tstate = wxPyBeginAllowThreads();
23182 (arg1)->SelectObject((wxBitmap const &)*arg2);
23183 wxPyEndAllowThreads(__tstate);
23184 if (PyErr_Occurred()) SWIG_fail;
23185 }
23186 resultobj = SWIG_Py_Void();
23187 return resultobj;
23188 fail:
23189 return NULL;
23190 }
23191
23192
23193 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23194 PyObject *obj;
23195 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23196 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
23197 return SWIG_Py_Void();
23198 }
23199
23200 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23201 return SWIG_Python_InitShadowInstance(args);
23202 }
23203
23204 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23205 PyObject *resultobj = 0;
23206 wxDC *arg1 = (wxDC *) 0 ;
23207 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23208 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23209 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23210 wxBufferedDC *result = 0 ;
23211 void *argp1 = 0 ;
23212 int res1 = 0 ;
23213 void *argp2 = 0 ;
23214 int res2 = 0 ;
23215 int val3 ;
23216 int ecode3 = 0 ;
23217
23218 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
23219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23220 if (!SWIG_IsOK(res1)) {
23221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23222 }
23223 arg1 = reinterpret_cast< wxDC * >(argp1);
23224 if (swig_obj[1]) {
23225 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23226 if (!SWIG_IsOK(res2)) {
23227 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23228 }
23229 if (!argp2) {
23230 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23231 }
23232 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23233 }
23234 if (swig_obj[2]) {
23235 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23236 if (!SWIG_IsOK(ecode3)) {
23237 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23238 }
23239 arg3 = static_cast< int >(val3);
23240 }
23241 {
23242 if (!wxPyCheckForApp()) SWIG_fail;
23243 PyThreadState* __tstate = wxPyBeginAllowThreads();
23244 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
23245 wxPyEndAllowThreads(__tstate);
23246 if (PyErr_Occurred()) SWIG_fail;
23247 }
23248 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23249 return resultobj;
23250 fail:
23251 return NULL;
23252 }
23253
23254
23255 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23256 PyObject *resultobj = 0;
23257 wxDC *arg1 = (wxDC *) 0 ;
23258 wxSize *arg2 = 0 ;
23259 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23260 wxBufferedDC *result = 0 ;
23261 void *argp1 = 0 ;
23262 int res1 = 0 ;
23263 wxSize temp2 ;
23264 int val3 ;
23265 int ecode3 = 0 ;
23266
23267 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
23268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23269 if (!SWIG_IsOK(res1)) {
23270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23271 }
23272 arg1 = reinterpret_cast< wxDC * >(argp1);
23273 {
23274 arg2 = &temp2;
23275 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
23276 }
23277 if (swig_obj[2]) {
23278 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23279 if (!SWIG_IsOK(ecode3)) {
23280 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23281 }
23282 arg3 = static_cast< int >(val3);
23283 }
23284 {
23285 if (!wxPyCheckForApp()) SWIG_fail;
23286 PyThreadState* __tstate = wxPyBeginAllowThreads();
23287 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
23288 wxPyEndAllowThreads(__tstate);
23289 if (PyErr_Occurred()) SWIG_fail;
23290 }
23291 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23292 return resultobj;
23293 fail:
23294 return NULL;
23295 }
23296
23297
23298 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23299 PyObject *resultobj = 0;
23300 wxWindow *arg1 = (wxWindow *) 0 ;
23301 wxDC *arg2 = (wxDC *) 0 ;
23302 wxSize *arg3 = 0 ;
23303 int arg4 = (int) wxBUFFER_CLIENT_AREA ;
23304 wxBufferedDC *result = 0 ;
23305 void *argp1 = 0 ;
23306 int res1 = 0 ;
23307 void *argp2 = 0 ;
23308 int res2 = 0 ;
23309 wxSize temp3 ;
23310 int val4 ;
23311 int ecode4 = 0 ;
23312
23313 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
23314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23315 if (!SWIG_IsOK(res1)) {
23316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23317 }
23318 arg1 = reinterpret_cast< wxWindow * >(argp1);
23319 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
23320 if (!SWIG_IsOK(res2)) {
23321 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxDC *""'");
23322 }
23323 arg2 = reinterpret_cast< wxDC * >(argp2);
23324 {
23325 arg3 = &temp3;
23326 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
23327 }
23328 if (swig_obj[3]) {
23329 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
23330 if (!SWIG_IsOK(ecode4)) {
23331 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BufferedDC" "', expected argument " "4"" of type '" "int""'");
23332 }
23333 arg4 = static_cast< int >(val4);
23334 }
23335 {
23336 if (!wxPyCheckForApp()) SWIG_fail;
23337 PyThreadState* __tstate = wxPyBeginAllowThreads();
23338 result = (wxBufferedDC *)new wxBufferedDC(arg1,arg2,(wxSize const &)*arg3,arg4);
23339 wxPyEndAllowThreads(__tstate);
23340 if (PyErr_Occurred()) SWIG_fail;
23341 }
23342 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23343 return resultobj;
23344 fail:
23345 return NULL;
23346 }
23347
23348
23349 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
23350 int argc;
23351 PyObject *argv[5];
23352
23353 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,4,argv))) SWIG_fail;
23354 --argc;
23355 if ((argc >= 1) && (argc <= 3)) {
23356 int _v = 0;
23357 {
23358 void *vptr = 0;
23359 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_wxDC, 0);
23360 _v = SWIG_CheckState(res);
23361 }
23362 if (!_v) goto check_1;
23363 if (argc > 1) {
23364 {
23365 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
23366 _v = SWIG_CheckState(res);
23367 }
23368 if (!_v) goto check_1;
23369 if (argc > 2) {
23370 {
23371 {
23372 int res = SWIG_AsVal_int(argv[2], NULL);
23373 _v = SWIG_CheckState(res);
23374 }
23375 }
23376 if (!_v) goto check_1;
23377 }
23378 }
23379 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
23380 }
23381 check_1:
23382
23383 if ((argc >= 2) && (argc <= 3)) {
23384 int _v = 0;
23385 {
23386 void *vptr = 0;
23387 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_wxDC, 0);
23388 _v = SWIG_CheckState(res);
23389 }
23390 if (!_v) goto check_2;
23391 {
23392 {
23393 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
23394 }
23395 }
23396 if (!_v) goto check_2;
23397 if (argc > 2) {
23398 {
23399 {
23400 int res = SWIG_AsVal_int(argv[2], NULL);
23401 _v = SWIG_CheckState(res);
23402 }
23403 }
23404 if (!_v) goto check_2;
23405 }
23406 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
23407 }
23408 check_2:
23409
23410 if ((argc >= 3) && (argc <= 4)) {
23411 return _wrap_new_BufferedDC__SWIG_2(self, argc, argv);
23412 }
23413
23414 fail:
23415 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
23416 return NULL;
23417 }
23418
23419
23420 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23421 PyObject *resultobj = 0;
23422 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23423 void *argp1 = 0 ;
23424 int res1 = 0 ;
23425 PyObject *swig_obj[1] ;
23426
23427 if (!args) SWIG_fail;
23428 swig_obj[0] = args;
23429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
23430 if (!SWIG_IsOK(res1)) {
23431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23432 }
23433 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23434 {
23435 PyThreadState* __tstate = wxPyBeginAllowThreads();
23436 delete arg1;
23437
23438 wxPyEndAllowThreads(__tstate);
23439 if (PyErr_Occurred()) SWIG_fail;
23440 }
23441 resultobj = SWIG_Py_Void();
23442 return resultobj;
23443 fail:
23444 return NULL;
23445 }
23446
23447
23448 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23449 PyObject *resultobj = 0;
23450 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23451 void *argp1 = 0 ;
23452 int res1 = 0 ;
23453 PyObject *swig_obj[1] ;
23454
23455 if (!args) SWIG_fail;
23456 swig_obj[0] = args;
23457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
23458 if (!SWIG_IsOK(res1)) {
23459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23460 }
23461 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23462 {
23463 PyThreadState* __tstate = wxPyBeginAllowThreads();
23464 (arg1)->UnMask();
23465 wxPyEndAllowThreads(__tstate);
23466 if (PyErr_Occurred()) SWIG_fail;
23467 }
23468 resultobj = SWIG_Py_Void();
23469 return resultobj;
23470 fail:
23471 return NULL;
23472 }
23473
23474
23475 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23476 PyObject *obj;
23477 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23478 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
23479 return SWIG_Py_Void();
23480 }
23481
23482 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23483 return SWIG_Python_InitShadowInstance(args);
23484 }
23485
23486 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23487 PyObject *resultobj = 0;
23488 wxWindow *arg1 = (wxWindow *) 0 ;
23489 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23490 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23491 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23492 wxBufferedPaintDC *result = 0 ;
23493 void *argp1 = 0 ;
23494 int res1 = 0 ;
23495 void *argp2 = 0 ;
23496 int res2 = 0 ;
23497 int val3 ;
23498 int ecode3 = 0 ;
23499 PyObject * obj0 = 0 ;
23500 PyObject * obj1 = 0 ;
23501 PyObject * obj2 = 0 ;
23502 char * kwnames[] = {
23503 (char *) "window",(char *) "buffer",(char *) "style", NULL
23504 };
23505
23506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23508 if (!SWIG_IsOK(res1)) {
23509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23510 }
23511 arg1 = reinterpret_cast< wxWindow * >(argp1);
23512 if (obj1) {
23513 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23514 if (!SWIG_IsOK(res2)) {
23515 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23516 }
23517 if (!argp2) {
23518 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23519 }
23520 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23521 }
23522 if (obj2) {
23523 ecode3 = SWIG_AsVal_int(obj2, &val3);
23524 if (!SWIG_IsOK(ecode3)) {
23525 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
23526 }
23527 arg3 = static_cast< int >(val3);
23528 }
23529 {
23530 if (!wxPyCheckForApp()) SWIG_fail;
23531 PyThreadState* __tstate = wxPyBeginAllowThreads();
23532 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
23533 wxPyEndAllowThreads(__tstate);
23534 if (PyErr_Occurred()) SWIG_fail;
23535 }
23536 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
23537 return resultobj;
23538 fail:
23539 return NULL;
23540 }
23541
23542
23543 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23544 PyObject *obj;
23545 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23546 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
23547 return SWIG_Py_Void();
23548 }
23549
23550 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23551 return SWIG_Python_InitShadowInstance(args);
23552 }
23553
23554 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23555 PyObject *resultobj = 0;
23556 wxScreenDC *result = 0 ;
23557
23558 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23559 {
23560 if (!wxPyCheckForApp()) SWIG_fail;
23561 PyThreadState* __tstate = wxPyBeginAllowThreads();
23562 result = (wxScreenDC *)new wxScreenDC();
23563 wxPyEndAllowThreads(__tstate);
23564 if (PyErr_Occurred()) SWIG_fail;
23565 }
23566 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23567 return resultobj;
23568 fail:
23569 return NULL;
23570 }
23571
23572
23573 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23574 PyObject *resultobj = 0;
23575 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23576 wxWindow *arg2 = (wxWindow *) 0 ;
23577 bool result;
23578 void *argp1 = 0 ;
23579 int res1 = 0 ;
23580 void *argp2 = 0 ;
23581 int res2 = 0 ;
23582 PyObject * obj0 = 0 ;
23583 PyObject * obj1 = 0 ;
23584 char * kwnames[] = {
23585 (char *) "self",(char *) "window", NULL
23586 };
23587
23588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23590 if (!SWIG_IsOK(res1)) {
23591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23592 }
23593 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23594 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23595 if (!SWIG_IsOK(res2)) {
23596 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23597 }
23598 arg2 = reinterpret_cast< wxWindow * >(argp2);
23599 {
23600 PyThreadState* __tstate = wxPyBeginAllowThreads();
23601 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23602 wxPyEndAllowThreads(__tstate);
23603 if (PyErr_Occurred()) SWIG_fail;
23604 }
23605 {
23606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23607 }
23608 return resultobj;
23609 fail:
23610 return NULL;
23611 }
23612
23613
23614 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23615 PyObject *resultobj = 0;
23616 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23617 wxRect *arg2 = (wxRect *) NULL ;
23618 bool result;
23619 void *argp1 = 0 ;
23620 int res1 = 0 ;
23621 void *argp2 = 0 ;
23622 int res2 = 0 ;
23623 PyObject * obj0 = 0 ;
23624 PyObject * obj1 = 0 ;
23625 char * kwnames[] = {
23626 (char *) "self",(char *) "rect", NULL
23627 };
23628
23629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
23630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23631 if (!SWIG_IsOK(res1)) {
23632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23633 }
23634 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23635 if (obj1) {
23636 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
23637 if (!SWIG_IsOK(res2)) {
23638 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
23639 }
23640 arg2 = reinterpret_cast< wxRect * >(argp2);
23641 }
23642 {
23643 PyThreadState* __tstate = wxPyBeginAllowThreads();
23644 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23645 wxPyEndAllowThreads(__tstate);
23646 if (PyErr_Occurred()) SWIG_fail;
23647 }
23648 {
23649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23650 }
23651 return resultobj;
23652 fail:
23653 return NULL;
23654 }
23655
23656
23657 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23658 PyObject *resultobj = 0;
23659 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23660 bool result;
23661 void *argp1 = 0 ;
23662 int res1 = 0 ;
23663 PyObject *swig_obj[1] ;
23664
23665 if (!args) SWIG_fail;
23666 swig_obj[0] = args;
23667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23668 if (!SWIG_IsOK(res1)) {
23669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23670 }
23671 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23672 {
23673 PyThreadState* __tstate = wxPyBeginAllowThreads();
23674 result = (bool)(arg1)->EndDrawingOnTop();
23675 wxPyEndAllowThreads(__tstate);
23676 if (PyErr_Occurred()) SWIG_fail;
23677 }
23678 {
23679 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23680 }
23681 return resultobj;
23682 fail:
23683 return NULL;
23684 }
23685
23686
23687 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23688 PyObject *obj;
23689 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23690 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
23691 return SWIG_Py_Void();
23692 }
23693
23694 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23695 return SWIG_Python_InitShadowInstance(args);
23696 }
23697
23698 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23699 PyObject *resultobj = 0;
23700 wxWindow *arg1 = (wxWindow *) 0 ;
23701 wxWindowDC *result = 0 ;
23702 void *argp1 = 0 ;
23703 int res1 = 0 ;
23704 PyObject * obj0 = 0 ;
23705 char * kwnames[] = {
23706 (char *) "win", NULL
23707 };
23708
23709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
23710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23711 if (!SWIG_IsOK(res1)) {
23712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23713 }
23714 arg1 = reinterpret_cast< wxWindow * >(argp1);
23715 {
23716 if (!wxPyCheckForApp()) SWIG_fail;
23717 PyThreadState* __tstate = wxPyBeginAllowThreads();
23718 result = (wxWindowDC *)new wxWindowDC(arg1);
23719 wxPyEndAllowThreads(__tstate);
23720 if (PyErr_Occurred()) SWIG_fail;
23721 }
23722 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
23723 return resultobj;
23724 fail:
23725 return NULL;
23726 }
23727
23728
23729 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23730 PyObject *obj;
23731 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23732 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
23733 return SWIG_Py_Void();
23734 }
23735
23736 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23737 return SWIG_Python_InitShadowInstance(args);
23738 }
23739
23740 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23741 PyObject *resultobj = 0;
23742 wxWindow *arg1 = (wxWindow *) 0 ;
23743 wxClientDC *result = 0 ;
23744 void *argp1 = 0 ;
23745 int res1 = 0 ;
23746 PyObject * obj0 = 0 ;
23747 char * kwnames[] = {
23748 (char *) "win", NULL
23749 };
23750
23751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
23752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23753 if (!SWIG_IsOK(res1)) {
23754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23755 }
23756 arg1 = reinterpret_cast< wxWindow * >(argp1);
23757 {
23758 if (!wxPyCheckForApp()) SWIG_fail;
23759 PyThreadState* __tstate = wxPyBeginAllowThreads();
23760 result = (wxClientDC *)new wxClientDC(arg1);
23761 wxPyEndAllowThreads(__tstate);
23762 if (PyErr_Occurred()) SWIG_fail;
23763 }
23764 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
23765 return resultobj;
23766 fail:
23767 return NULL;
23768 }
23769
23770
23771 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23772 PyObject *obj;
23773 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23774 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
23775 return SWIG_Py_Void();
23776 }
23777
23778 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23779 return SWIG_Python_InitShadowInstance(args);
23780 }
23781
23782 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23783 PyObject *resultobj = 0;
23784 wxWindow *arg1 = (wxWindow *) 0 ;
23785 wxPaintDC *result = 0 ;
23786 void *argp1 = 0 ;
23787 int res1 = 0 ;
23788 PyObject * obj0 = 0 ;
23789 char * kwnames[] = {
23790 (char *) "win", NULL
23791 };
23792
23793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
23794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23795 if (!SWIG_IsOK(res1)) {
23796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23797 }
23798 arg1 = reinterpret_cast< wxWindow * >(argp1);
23799 {
23800 if (!wxPyCheckForApp()) SWIG_fail;
23801 PyThreadState* __tstate = wxPyBeginAllowThreads();
23802 result = (wxPaintDC *)new wxPaintDC(arg1);
23803 wxPyEndAllowThreads(__tstate);
23804 if (PyErr_Occurred()) SWIG_fail;
23805 }
23806 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
23807 return resultobj;
23808 fail:
23809 return NULL;
23810 }
23811
23812
23813 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23814 PyObject *obj;
23815 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23816 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
23817 return SWIG_Py_Void();
23818 }
23819
23820 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23821 return SWIG_Python_InitShadowInstance(args);
23822 }
23823
23824 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23825 PyObject *resultobj = 0;
23826 wxDC *arg1 = 0 ;
23827 bool arg2 ;
23828 wxMirrorDC *result = 0 ;
23829 void *argp1 = 0 ;
23830 int res1 = 0 ;
23831 bool val2 ;
23832 int ecode2 = 0 ;
23833 PyObject * obj0 = 0 ;
23834 PyObject * obj1 = 0 ;
23835 char * kwnames[] = {
23836 (char *) "dc",(char *) "mirror", NULL
23837 };
23838
23839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
23840 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23841 if (!SWIG_IsOK(res1)) {
23842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23843 }
23844 if (!argp1) {
23845 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23846 }
23847 arg1 = reinterpret_cast< wxDC * >(argp1);
23848 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23849 if (!SWIG_IsOK(ecode2)) {
23850 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
23851 }
23852 arg2 = static_cast< bool >(val2);
23853 {
23854 if (!wxPyCheckForApp()) SWIG_fail;
23855 PyThreadState* __tstate = wxPyBeginAllowThreads();
23856 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
23857 wxPyEndAllowThreads(__tstate);
23858 if (PyErr_Occurred()) SWIG_fail;
23859 }
23860 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
23861 return resultobj;
23862 fail:
23863 return NULL;
23864 }
23865
23866
23867 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23868 PyObject *obj;
23869 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23870 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
23871 return SWIG_Py_Void();
23872 }
23873
23874 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23875 return SWIG_Python_InitShadowInstance(args);
23876 }
23877
23878 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23879 PyObject *resultobj = 0;
23880 wxPrintData *arg1 = 0 ;
23881 wxPostScriptDC *result = 0 ;
23882 void *argp1 = 0 ;
23883 int res1 = 0 ;
23884 PyObject * obj0 = 0 ;
23885 char * kwnames[] = {
23886 (char *) "printData", NULL
23887 };
23888
23889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
23890 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
23891 if (!SWIG_IsOK(res1)) {
23892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23893 }
23894 if (!argp1) {
23895 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23896 }
23897 arg1 = reinterpret_cast< wxPrintData * >(argp1);
23898 {
23899 if (!wxPyCheckForApp()) SWIG_fail;
23900 PyThreadState* __tstate = wxPyBeginAllowThreads();
23901 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
23902 wxPyEndAllowThreads(__tstate);
23903 if (PyErr_Occurred()) SWIG_fail;
23904 }
23905 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
23906 return resultobj;
23907 fail:
23908 return NULL;
23909 }
23910
23911
23912 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23913 PyObject *resultobj = 0;
23914 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23915 wxPrintData *result = 0 ;
23916 void *argp1 = 0 ;
23917 int res1 = 0 ;
23918 PyObject *swig_obj[1] ;
23919
23920 if (!args) SWIG_fail;
23921 swig_obj[0] = args;
23922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23923 if (!SWIG_IsOK(res1)) {
23924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23925 }
23926 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23927 {
23928 PyThreadState* __tstate = wxPyBeginAllowThreads();
23929 {
23930 wxPrintData &_result_ref = (arg1)->GetPrintData();
23931 result = (wxPrintData *) &_result_ref;
23932 }
23933 wxPyEndAllowThreads(__tstate);
23934 if (PyErr_Occurred()) SWIG_fail;
23935 }
23936 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
23937 return resultobj;
23938 fail:
23939 return NULL;
23940 }
23941
23942
23943 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23944 PyObject *resultobj = 0;
23945 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23946 wxPrintData *arg2 = 0 ;
23947 void *argp1 = 0 ;
23948 int res1 = 0 ;
23949 void *argp2 = 0 ;
23950 int res2 = 0 ;
23951 PyObject * obj0 = 0 ;
23952 PyObject * obj1 = 0 ;
23953 char * kwnames[] = {
23954 (char *) "self",(char *) "data", NULL
23955 };
23956
23957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
23958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23959 if (!SWIG_IsOK(res1)) {
23960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23961 }
23962 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23963 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
23964 if (!SWIG_IsOK(res2)) {
23965 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23966 }
23967 if (!argp2) {
23968 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23969 }
23970 arg2 = reinterpret_cast< wxPrintData * >(argp2);
23971 {
23972 PyThreadState* __tstate = wxPyBeginAllowThreads();
23973 (arg1)->SetPrintData((wxPrintData const &)*arg2);
23974 wxPyEndAllowThreads(__tstate);
23975 if (PyErr_Occurred()) SWIG_fail;
23976 }
23977 resultobj = SWIG_Py_Void();
23978 return resultobj;
23979 fail:
23980 return NULL;
23981 }
23982
23983
23984 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23985 PyObject *resultobj = 0;
23986 int arg1 ;
23987 int val1 ;
23988 int ecode1 = 0 ;
23989 PyObject * obj0 = 0 ;
23990 char * kwnames[] = {
23991 (char *) "ppi", NULL
23992 };
23993
23994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
23995 ecode1 = SWIG_AsVal_int(obj0, &val1);
23996 if (!SWIG_IsOK(ecode1)) {
23997 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
23998 }
23999 arg1 = static_cast< int >(val1);
24000 {
24001 PyThreadState* __tstate = wxPyBeginAllowThreads();
24002 wxPostScriptDC::SetResolution(arg1);
24003 wxPyEndAllowThreads(__tstate);
24004 if (PyErr_Occurred()) SWIG_fail;
24005 }
24006 resultobj = SWIG_Py_Void();
24007 return resultobj;
24008 fail:
24009 return NULL;
24010 }
24011
24012
24013 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24014 PyObject *resultobj = 0;
24015 int result;
24016
24017 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24018 {
24019 PyThreadState* __tstate = wxPyBeginAllowThreads();
24020 result = (int)wxPostScriptDC::GetResolution();
24021 wxPyEndAllowThreads(__tstate);
24022 if (PyErr_Occurred()) SWIG_fail;
24023 }
24024 resultobj = SWIG_From_int(static_cast< int >(result));
24025 return resultobj;
24026 fail:
24027 return NULL;
24028 }
24029
24030
24031 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24032 PyObject *obj;
24033 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24034 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24035 return SWIG_Py_Void();
24036 }
24037
24038 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24039 return SWIG_Python_InitShadowInstance(args);
24040 }
24041
24042 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24043 PyObject *resultobj = 0;
24044 wxString const &arg1_defvalue = wxPyEmptyString ;
24045 wxString *arg1 = (wxString *) &arg1_defvalue ;
24046 wxMetaFile *result = 0 ;
24047 bool temp1 = false ;
24048 PyObject * obj0 = 0 ;
24049 char * kwnames[] = {
24050 (char *) "filename", NULL
24051 };
24052
24053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24054 if (obj0) {
24055 {
24056 arg1 = wxString_in_helper(obj0);
24057 if (arg1 == NULL) SWIG_fail;
24058 temp1 = true;
24059 }
24060 }
24061 {
24062 if (!wxPyCheckForApp()) SWIG_fail;
24063 PyThreadState* __tstate = wxPyBeginAllowThreads();
24064 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24065 wxPyEndAllowThreads(__tstate);
24066 if (PyErr_Occurred()) SWIG_fail;
24067 }
24068 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24069 {
24070 if (temp1)
24071 delete arg1;
24072 }
24073 return resultobj;
24074 fail:
24075 {
24076 if (temp1)
24077 delete arg1;
24078 }
24079 return NULL;
24080 }
24081
24082
24083 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24084 PyObject *obj;
24085 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24086 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
24087 return SWIG_Py_Void();
24088 }
24089
24090 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24091 return SWIG_Python_InitShadowInstance(args);
24092 }
24093
24094 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24095 PyObject *resultobj = 0;
24096 wxString const &arg1_defvalue = wxPyEmptyString ;
24097 wxString *arg1 = (wxString *) &arg1_defvalue ;
24098 int arg2 = (int) 0 ;
24099 int arg3 = (int) 0 ;
24100 wxString const &arg4_defvalue = wxPyEmptyString ;
24101 wxString *arg4 = (wxString *) &arg4_defvalue ;
24102 wxMetaFileDC *result = 0 ;
24103 bool temp1 = false ;
24104 int val2 ;
24105 int ecode2 = 0 ;
24106 int val3 ;
24107 int ecode3 = 0 ;
24108 bool temp4 = false ;
24109 PyObject * obj0 = 0 ;
24110 PyObject * obj1 = 0 ;
24111 PyObject * obj2 = 0 ;
24112 PyObject * obj3 = 0 ;
24113 char * kwnames[] = {
24114 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
24115 };
24116
24117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24118 if (obj0) {
24119 {
24120 arg1 = wxString_in_helper(obj0);
24121 if (arg1 == NULL) SWIG_fail;
24122 temp1 = true;
24123 }
24124 }
24125 if (obj1) {
24126 ecode2 = SWIG_AsVal_int(obj1, &val2);
24127 if (!SWIG_IsOK(ecode2)) {
24128 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
24129 }
24130 arg2 = static_cast< int >(val2);
24131 }
24132 if (obj2) {
24133 ecode3 = SWIG_AsVal_int(obj2, &val3);
24134 if (!SWIG_IsOK(ecode3)) {
24135 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
24136 }
24137 arg3 = static_cast< int >(val3);
24138 }
24139 if (obj3) {
24140 {
24141 arg4 = wxString_in_helper(obj3);
24142 if (arg4 == NULL) SWIG_fail;
24143 temp4 = true;
24144 }
24145 }
24146 {
24147 if (!wxPyCheckForApp()) SWIG_fail;
24148 PyThreadState* __tstate = wxPyBeginAllowThreads();
24149 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
24150 wxPyEndAllowThreads(__tstate);
24151 if (PyErr_Occurred()) SWIG_fail;
24152 }
24153 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
24154 {
24155 if (temp1)
24156 delete arg1;
24157 }
24158 {
24159 if (temp4)
24160 delete arg4;
24161 }
24162 return resultobj;
24163 fail:
24164 {
24165 if (temp1)
24166 delete arg1;
24167 }
24168 {
24169 if (temp4)
24170 delete arg4;
24171 }
24172 return NULL;
24173 }
24174
24175
24176 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24177 PyObject *obj;
24178 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24179 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
24180 return SWIG_Py_Void();
24181 }
24182
24183 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24184 return SWIG_Python_InitShadowInstance(args);
24185 }
24186
24187 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24188 PyObject *resultobj = 0;
24189 wxPrintData *arg1 = 0 ;
24190 wxPrinterDC *result = 0 ;
24191 void *argp1 = 0 ;
24192 int res1 = 0 ;
24193 PyObject * obj0 = 0 ;
24194 char * kwnames[] = {
24195 (char *) "printData", NULL
24196 };
24197
24198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
24199 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24200 if (!SWIG_IsOK(res1)) {
24201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24202 }
24203 if (!argp1) {
24204 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24205 }
24206 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24207 {
24208 if (!wxPyCheckForApp()) SWIG_fail;
24209 PyThreadState* __tstate = wxPyBeginAllowThreads();
24210 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
24211 wxPyEndAllowThreads(__tstate);
24212 if (PyErr_Occurred()) SWIG_fail;
24213 }
24214 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
24215 return resultobj;
24216 fail:
24217 return NULL;
24218 }
24219
24220
24221 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24222 PyObject *obj;
24223 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24224 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
24225 return SWIG_Py_Void();
24226 }
24227
24228 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24229 return SWIG_Python_InitShadowInstance(args);
24230 }
24231
24232 SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24233 PyObject *resultobj = 0;
24234 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24235 void *argp1 = 0 ;
24236 int res1 = 0 ;
24237 PyObject *swig_obj[1] ;
24238
24239 if (!args) SWIG_fail;
24240 swig_obj[0] = args;
24241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
24242 if (!SWIG_IsOK(res1)) {
24243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24244 }
24245 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24246 {
24247 delete arg1;
24248
24249 if (PyErr_Occurred()) SWIG_fail;
24250 }
24251 resultobj = SWIG_Py_Void();
24252 return resultobj;
24253 fail:
24254 return NULL;
24255 }
24256
24257
24258 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24259 PyObject *resultobj = 0;
24260 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24261 wxDouble arg2 ;
24262 wxDouble arg3 ;
24263 void *argp1 = 0 ;
24264 int res1 = 0 ;
24265 double val2 ;
24266 int ecode2 = 0 ;
24267 double val3 ;
24268 int ecode3 = 0 ;
24269 PyObject * obj0 = 0 ;
24270 PyObject * obj1 = 0 ;
24271 PyObject * obj2 = 0 ;
24272 char * kwnames[] = {
24273 (char *) "self",(char *) "x",(char *) "y", NULL
24274 };
24275
24276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_MoveToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24278 if (!SWIG_IsOK(res1)) {
24279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24280 }
24281 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24282 ecode2 = SWIG_AsVal_double(obj1, &val2);
24283 if (!SWIG_IsOK(ecode2)) {
24284 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24285 }
24286 arg2 = static_cast< wxDouble >(val2);
24287 ecode3 = SWIG_AsVal_double(obj2, &val3);
24288 if (!SWIG_IsOK(ecode3)) {
24289 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24290 }
24291 arg3 = static_cast< wxDouble >(val3);
24292 {
24293 (arg1)->MoveToPoint(arg2,arg3);
24294 if (PyErr_Occurred()) SWIG_fail;
24295 }
24296 resultobj = SWIG_Py_Void();
24297 return resultobj;
24298 fail:
24299 return NULL;
24300 }
24301
24302
24303 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24304 PyObject *resultobj = 0;
24305 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24306 wxDouble arg2 ;
24307 wxDouble arg3 ;
24308 void *argp1 = 0 ;
24309 int res1 = 0 ;
24310 double val2 ;
24311 int ecode2 = 0 ;
24312 double val3 ;
24313 int ecode3 = 0 ;
24314 PyObject * obj0 = 0 ;
24315 PyObject * obj1 = 0 ;
24316 PyObject * obj2 = 0 ;
24317 char * kwnames[] = {
24318 (char *) "self",(char *) "x",(char *) "y", NULL
24319 };
24320
24321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_AddLineToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24323 if (!SWIG_IsOK(res1)) {
24324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24325 }
24326 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24327 ecode2 = SWIG_AsVal_double(obj1, &val2);
24328 if (!SWIG_IsOK(ecode2)) {
24329 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24330 }
24331 arg2 = static_cast< wxDouble >(val2);
24332 ecode3 = SWIG_AsVal_double(obj2, &val3);
24333 if (!SWIG_IsOK(ecode3)) {
24334 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24335 }
24336 arg3 = static_cast< wxDouble >(val3);
24337 {
24338 (arg1)->AddLineToPoint(arg2,arg3);
24339 if (PyErr_Occurred()) SWIG_fail;
24340 }
24341 resultobj = SWIG_Py_Void();
24342 return resultobj;
24343 fail:
24344 return NULL;
24345 }
24346
24347
24348 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24349 PyObject *resultobj = 0;
24350 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24351 wxDouble arg2 ;
24352 wxDouble arg3 ;
24353 wxDouble arg4 ;
24354 wxDouble arg5 ;
24355 wxDouble arg6 ;
24356 wxDouble arg7 ;
24357 void *argp1 = 0 ;
24358 int res1 = 0 ;
24359 double val2 ;
24360 int ecode2 = 0 ;
24361 double val3 ;
24362 int ecode3 = 0 ;
24363 double val4 ;
24364 int ecode4 = 0 ;
24365 double val5 ;
24366 int ecode5 = 0 ;
24367 double val6 ;
24368 int ecode6 = 0 ;
24369 double val7 ;
24370 int ecode7 = 0 ;
24371 PyObject * obj0 = 0 ;
24372 PyObject * obj1 = 0 ;
24373 PyObject * obj2 = 0 ;
24374 PyObject * obj3 = 0 ;
24375 PyObject * obj4 = 0 ;
24376 PyObject * obj5 = 0 ;
24377 PyObject * obj6 = 0 ;
24378 char * kwnames[] = {
24379 (char *) "self",(char *) "cx1",(char *) "cy1",(char *) "cx2",(char *) "cy2",(char *) "x",(char *) "y", NULL
24380 };
24381
24382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24384 if (!SWIG_IsOK(res1)) {
24385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24386 }
24387 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24388 ecode2 = SWIG_AsVal_double(obj1, &val2);
24389 if (!SWIG_IsOK(ecode2)) {
24390 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24391 }
24392 arg2 = static_cast< wxDouble >(val2);
24393 ecode3 = SWIG_AsVal_double(obj2, &val3);
24394 if (!SWIG_IsOK(ecode3)) {
24395 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24396 }
24397 arg3 = static_cast< wxDouble >(val3);
24398 ecode4 = SWIG_AsVal_double(obj3, &val4);
24399 if (!SWIG_IsOK(ecode4)) {
24400 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24401 }
24402 arg4 = static_cast< wxDouble >(val4);
24403 ecode5 = SWIG_AsVal_double(obj4, &val5);
24404 if (!SWIG_IsOK(ecode5)) {
24405 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24406 }
24407 arg5 = static_cast< wxDouble >(val5);
24408 ecode6 = SWIG_AsVal_double(obj5, &val6);
24409 if (!SWIG_IsOK(ecode6)) {
24410 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
24411 }
24412 arg6 = static_cast< wxDouble >(val6);
24413 ecode7 = SWIG_AsVal_double(obj6, &val7);
24414 if (!SWIG_IsOK(ecode7)) {
24415 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
24416 }
24417 arg7 = static_cast< wxDouble >(val7);
24418 {
24419 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
24420 if (PyErr_Occurred()) SWIG_fail;
24421 }
24422 resultobj = SWIG_Py_Void();
24423 return resultobj;
24424 fail:
24425 return NULL;
24426 }
24427
24428
24429 SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24430 PyObject *resultobj = 0;
24431 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24432 void *argp1 = 0 ;
24433 int res1 = 0 ;
24434 PyObject *swig_obj[1] ;
24435
24436 if (!args) SWIG_fail;
24437 swig_obj[0] = args;
24438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24439 if (!SWIG_IsOK(res1)) {
24440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24441 }
24442 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24443 {
24444 (arg1)->CloseSubpath();
24445 if (PyErr_Occurred()) SWIG_fail;
24446 }
24447 resultobj = SWIG_Py_Void();
24448 return resultobj;
24449 fail:
24450 return NULL;
24451 }
24452
24453
24454 SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24455 PyObject *resultobj = 0;
24456 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24457 wxPoint2D result;
24458 void *argp1 = 0 ;
24459 int res1 = 0 ;
24460 PyObject *swig_obj[1] ;
24461
24462 if (!args) SWIG_fail;
24463 swig_obj[0] = args;
24464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24465 if (!SWIG_IsOK(res1)) {
24466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24467 }
24468 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24469 {
24470 result = (arg1)->GetCurrentPoint();
24471 if (PyErr_Occurred()) SWIG_fail;
24472 }
24473 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
24474 return resultobj;
24475 fail:
24476 return NULL;
24477 }
24478
24479
24480 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24481 PyObject *resultobj = 0;
24482 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24483 wxDouble arg2 ;
24484 wxDouble arg3 ;
24485 wxDouble arg4 ;
24486 wxDouble arg5 ;
24487 wxDouble arg6 ;
24488 bool arg7 ;
24489 void *argp1 = 0 ;
24490 int res1 = 0 ;
24491 double val2 ;
24492 int ecode2 = 0 ;
24493 double val3 ;
24494 int ecode3 = 0 ;
24495 double val4 ;
24496 int ecode4 = 0 ;
24497 double val5 ;
24498 int ecode5 = 0 ;
24499 double val6 ;
24500 int ecode6 = 0 ;
24501 bool val7 ;
24502 int ecode7 = 0 ;
24503 PyObject * obj0 = 0 ;
24504 PyObject * obj1 = 0 ;
24505 PyObject * obj2 = 0 ;
24506 PyObject * obj3 = 0 ;
24507 PyObject * obj4 = 0 ;
24508 PyObject * obj5 = 0 ;
24509 PyObject * obj6 = 0 ;
24510 char * kwnames[] = {
24511 (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "startAngle",(char *) "endAngle",(char *) "clockwise", NULL
24512 };
24513
24514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24516 if (!SWIG_IsOK(res1)) {
24517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24518 }
24519 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24520 ecode2 = SWIG_AsVal_double(obj1, &val2);
24521 if (!SWIG_IsOK(ecode2)) {
24522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
24523 }
24524 arg2 = static_cast< wxDouble >(val2);
24525 ecode3 = SWIG_AsVal_double(obj2, &val3);
24526 if (!SWIG_IsOK(ecode3)) {
24527 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
24528 }
24529 arg3 = static_cast< wxDouble >(val3);
24530 ecode4 = SWIG_AsVal_double(obj3, &val4);
24531 if (!SWIG_IsOK(ecode4)) {
24532 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
24533 }
24534 arg4 = static_cast< wxDouble >(val4);
24535 ecode5 = SWIG_AsVal_double(obj4, &val5);
24536 if (!SWIG_IsOK(ecode5)) {
24537 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
24538 }
24539 arg5 = static_cast< wxDouble >(val5);
24540 ecode6 = SWIG_AsVal_double(obj5, &val6);
24541 if (!SWIG_IsOK(ecode6)) {
24542 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
24543 }
24544 arg6 = static_cast< wxDouble >(val6);
24545 ecode7 = SWIG_AsVal_bool(obj6, &val7);
24546 if (!SWIG_IsOK(ecode7)) {
24547 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
24548 }
24549 arg7 = static_cast< bool >(val7);
24550 {
24551 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
24552 if (PyErr_Occurred()) SWIG_fail;
24553 }
24554 resultobj = SWIG_Py_Void();
24555 return resultobj;
24556 fail:
24557 return NULL;
24558 }
24559
24560
24561 SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24562 PyObject *resultobj = 0;
24563 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24564 wxDouble arg2 ;
24565 wxDouble arg3 ;
24566 wxDouble arg4 ;
24567 wxDouble arg5 ;
24568 void *argp1 = 0 ;
24569 int res1 = 0 ;
24570 double val2 ;
24571 int ecode2 = 0 ;
24572 double val3 ;
24573 int ecode3 = 0 ;
24574 double val4 ;
24575 int ecode4 = 0 ;
24576 double val5 ;
24577 int ecode5 = 0 ;
24578 PyObject * obj0 = 0 ;
24579 PyObject * obj1 = 0 ;
24580 PyObject * obj2 = 0 ;
24581 PyObject * obj3 = 0 ;
24582 PyObject * obj4 = 0 ;
24583 char * kwnames[] = {
24584 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
24585 };
24586
24587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24589 if (!SWIG_IsOK(res1)) {
24590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24591 }
24592 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24593 ecode2 = SWIG_AsVal_double(obj1, &val2);
24594 if (!SWIG_IsOK(ecode2)) {
24595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24596 }
24597 arg2 = static_cast< wxDouble >(val2);
24598 ecode3 = SWIG_AsVal_double(obj2, &val3);
24599 if (!SWIG_IsOK(ecode3)) {
24600 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24601 }
24602 arg3 = static_cast< wxDouble >(val3);
24603 ecode4 = SWIG_AsVal_double(obj3, &val4);
24604 if (!SWIG_IsOK(ecode4)) {
24605 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24606 }
24607 arg4 = static_cast< wxDouble >(val4);
24608 ecode5 = SWIG_AsVal_double(obj4, &val5);
24609 if (!SWIG_IsOK(ecode5)) {
24610 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24611 }
24612 arg5 = static_cast< wxDouble >(val5);
24613 {
24614 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
24615 if (PyErr_Occurred()) SWIG_fail;
24616 }
24617 resultobj = SWIG_Py_Void();
24618 return resultobj;
24619 fail:
24620 return NULL;
24621 }
24622
24623
24624 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24625 PyObject *resultobj = 0;
24626 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24627 wxDouble arg2 ;
24628 wxDouble arg3 ;
24629 wxDouble arg4 ;
24630 wxDouble arg5 ;
24631 void *argp1 = 0 ;
24632 int res1 = 0 ;
24633 double val2 ;
24634 int ecode2 = 0 ;
24635 double val3 ;
24636 int ecode3 = 0 ;
24637 double val4 ;
24638 int ecode4 = 0 ;
24639 double val5 ;
24640 int ecode5 = 0 ;
24641 PyObject * obj0 = 0 ;
24642 PyObject * obj1 = 0 ;
24643 PyObject * obj2 = 0 ;
24644 PyObject * obj3 = 0 ;
24645 PyObject * obj4 = 0 ;
24646 char * kwnames[] = {
24647 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
24648 };
24649
24650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24652 if (!SWIG_IsOK(res1)) {
24653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24654 }
24655 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24656 ecode2 = SWIG_AsVal_double(obj1, &val2);
24657 if (!SWIG_IsOK(ecode2)) {
24658 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
24659 }
24660 arg2 = static_cast< wxDouble >(val2);
24661 ecode3 = SWIG_AsVal_double(obj2, &val3);
24662 if (!SWIG_IsOK(ecode3)) {
24663 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
24664 }
24665 arg3 = static_cast< wxDouble >(val3);
24666 ecode4 = SWIG_AsVal_double(obj3, &val4);
24667 if (!SWIG_IsOK(ecode4)) {
24668 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
24669 }
24670 arg4 = static_cast< wxDouble >(val4);
24671 ecode5 = SWIG_AsVal_double(obj4, &val5);
24672 if (!SWIG_IsOK(ecode5)) {
24673 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
24674 }
24675 arg5 = static_cast< wxDouble >(val5);
24676 {
24677 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
24678 if (PyErr_Occurred()) SWIG_fail;
24679 }
24680 resultobj = SWIG_Py_Void();
24681 return resultobj;
24682 fail:
24683 return NULL;
24684 }
24685
24686
24687 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24688 PyObject *resultobj = 0;
24689 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24690 wxDouble arg2 ;
24691 wxDouble arg3 ;
24692 wxDouble arg4 ;
24693 void *argp1 = 0 ;
24694 int res1 = 0 ;
24695 double val2 ;
24696 int ecode2 = 0 ;
24697 double val3 ;
24698 int ecode3 = 0 ;
24699 double val4 ;
24700 int ecode4 = 0 ;
24701 PyObject * obj0 = 0 ;
24702 PyObject * obj1 = 0 ;
24703 PyObject * obj2 = 0 ;
24704 PyObject * obj3 = 0 ;
24705 char * kwnames[] = {
24706 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
24707 };
24708
24709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24711 if (!SWIG_IsOK(res1)) {
24712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24713 }
24714 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24715 ecode2 = SWIG_AsVal_double(obj1, &val2);
24716 if (!SWIG_IsOK(ecode2)) {
24717 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
24718 }
24719 arg2 = static_cast< wxDouble >(val2);
24720 ecode3 = SWIG_AsVal_double(obj2, &val3);
24721 if (!SWIG_IsOK(ecode3)) {
24722 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
24723 }
24724 arg3 = static_cast< wxDouble >(val3);
24725 ecode4 = SWIG_AsVal_double(obj3, &val4);
24726 if (!SWIG_IsOK(ecode4)) {
24727 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
24728 }
24729 arg4 = static_cast< wxDouble >(val4);
24730 {
24731 (arg1)->AddCircle(arg2,arg3,arg4);
24732 if (PyErr_Occurred()) SWIG_fail;
24733 }
24734 resultobj = SWIG_Py_Void();
24735 return resultobj;
24736 fail:
24737 return NULL;
24738 }
24739
24740
24741 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24742 PyObject *resultobj = 0;
24743 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24744 wxDouble arg2 ;
24745 wxDouble arg3 ;
24746 wxDouble arg4 ;
24747 wxDouble arg5 ;
24748 wxDouble arg6 ;
24749 void *argp1 = 0 ;
24750 int res1 = 0 ;
24751 double val2 ;
24752 int ecode2 = 0 ;
24753 double val3 ;
24754 int ecode3 = 0 ;
24755 double val4 ;
24756 int ecode4 = 0 ;
24757 double val5 ;
24758 int ecode5 = 0 ;
24759 double val6 ;
24760 int ecode6 = 0 ;
24761 PyObject * obj0 = 0 ;
24762 PyObject * obj1 = 0 ;
24763 PyObject * obj2 = 0 ;
24764 PyObject * obj3 = 0 ;
24765 PyObject * obj4 = 0 ;
24766 PyObject * obj5 = 0 ;
24767 char * kwnames[] = {
24768 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
24769 };
24770
24771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
24772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24773 if (!SWIG_IsOK(res1)) {
24774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24775 }
24776 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24777 ecode2 = SWIG_AsVal_double(obj1, &val2);
24778 if (!SWIG_IsOK(ecode2)) {
24779 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24780 }
24781 arg2 = static_cast< wxDouble >(val2);
24782 ecode3 = SWIG_AsVal_double(obj2, &val3);
24783 if (!SWIG_IsOK(ecode3)) {
24784 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24785 }
24786 arg3 = static_cast< wxDouble >(val3);
24787 ecode4 = SWIG_AsVal_double(obj3, &val4);
24788 if (!SWIG_IsOK(ecode4)) {
24789 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24790 }
24791 arg4 = static_cast< wxDouble >(val4);
24792 ecode5 = SWIG_AsVal_double(obj4, &val5);
24793 if (!SWIG_IsOK(ecode5)) {
24794 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24795 }
24796 arg5 = static_cast< wxDouble >(val5);
24797 ecode6 = SWIG_AsVal_double(obj5, &val6);
24798 if (!SWIG_IsOK(ecode6)) {
24799 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
24800 }
24801 arg6 = static_cast< wxDouble >(val6);
24802 {
24803 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
24804 if (PyErr_Occurred()) SWIG_fail;
24805 }
24806 resultobj = SWIG_Py_Void();
24807 return resultobj;
24808 fail:
24809 return NULL;
24810 }
24811
24812
24813 SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24814 PyObject *obj;
24815 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24816 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
24817 return SWIG_Py_Void();
24818 }
24819
24820 SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24821 PyObject *resultobj = 0;
24822 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24823 void *argp1 = 0 ;
24824 int res1 = 0 ;
24825 PyObject *swig_obj[1] ;
24826
24827 if (!args) SWIG_fail;
24828 swig_obj[0] = args;
24829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
24830 if (!SWIG_IsOK(res1)) {
24831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24832 }
24833 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
24834 {
24835 delete arg1;
24836
24837 if (PyErr_Occurred()) SWIG_fail;
24838 }
24839 resultobj = SWIG_Py_Void();
24840 return resultobj;
24841 fail:
24842 return NULL;
24843 }
24844
24845
24846 SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24847 PyObject *resultobj = 0;
24848 wxWindowDC *arg1 = 0 ;
24849 wxGraphicsContext *result = 0 ;
24850 void *argp1 = 0 ;
24851 int res1 = 0 ;
24852 PyObject * obj0 = 0 ;
24853 char * kwnames[] = {
24854 (char *) "dc", NULL
24855 };
24856
24857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_Create",kwnames,&obj0)) SWIG_fail;
24858 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
24859 if (!SWIG_IsOK(res1)) {
24860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
24861 }
24862 if (!argp1) {
24863 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
24864 }
24865 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
24866 {
24867 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
24868 if (PyErr_Occurred()) SWIG_fail;
24869 }
24870 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24871 return resultobj;
24872 fail:
24873 return NULL;
24874 }
24875
24876
24877 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24878 PyObject *resultobj = 0;
24879 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24880 wxGraphicsPath *result = 0 ;
24881 void *argp1 = 0 ;
24882 int res1 = 0 ;
24883 PyObject *swig_obj[1] ;
24884
24885 if (!args) SWIG_fail;
24886 swig_obj[0] = args;
24887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24888 if (!SWIG_IsOK(res1)) {
24889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24890 }
24891 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
24892 {
24893 result = (wxGraphicsPath *)(arg1)->CreatePath();
24894 if (PyErr_Occurred()) SWIG_fail;
24895 }
24896 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24897 return resultobj;
24898 fail:
24899 return NULL;
24900 }
24901
24902
24903 SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24904 PyObject *resultobj = 0;
24905 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24906 void *argp1 = 0 ;
24907 int res1 = 0 ;
24908 PyObject *swig_obj[1] ;
24909
24910 if (!args) SWIG_fail;
24911 swig_obj[0] = args;
24912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24913 if (!SWIG_IsOK(res1)) {
24914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24915 }
24916 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
24917 {
24918 (arg1)->PushState();
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_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24929 PyObject *resultobj = 0;
24930 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24931 void *argp1 = 0 ;
24932 int res1 = 0 ;
24933 PyObject *swig_obj[1] ;
24934
24935 if (!args) SWIG_fail;
24936 swig_obj[0] = args;
24937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24938 if (!SWIG_IsOK(res1)) {
24939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24940 }
24941 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
24942 {
24943 (arg1)->PopState();
24944 if (PyErr_Occurred()) SWIG_fail;
24945 }
24946 resultobj = SWIG_Py_Void();
24947 return resultobj;
24948 fail:
24949 return NULL;
24950 }
24951
24952
24953 SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24954 PyObject *resultobj = 0;
24955 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24956 wxRegion *arg2 = 0 ;
24957 void *argp1 = 0 ;
24958 int res1 = 0 ;
24959 void *argp2 = 0 ;
24960 int res2 = 0 ;
24961 PyObject * obj0 = 0 ;
24962 PyObject * obj1 = 0 ;
24963 char * kwnames[] = {
24964 (char *) "self",(char *) "region", NULL
24965 };
24966
24967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Clip",kwnames,&obj0,&obj1)) SWIG_fail;
24968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24969 if (!SWIG_IsOK(res1)) {
24970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24971 }
24972 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
24973 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
24974 if (!SWIG_IsOK(res2)) {
24975 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxRegion const &""'");
24976 }
24977 if (!argp2) {
24978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxRegion const &""'");
24979 }
24980 arg2 = reinterpret_cast< wxRegion * >(argp2);
24981 {
24982 (arg1)->Clip((wxRegion const &)*arg2);
24983 if (PyErr_Occurred()) SWIG_fail;
24984 }
24985 resultobj = SWIG_Py_Void();
24986 return resultobj;
24987 fail:
24988 return NULL;
24989 }
24990
24991
24992 SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24993 PyObject *resultobj = 0;
24994 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24995 wxDouble arg2 ;
24996 wxDouble arg3 ;
24997 void *argp1 = 0 ;
24998 int res1 = 0 ;
24999 double val2 ;
25000 int ecode2 = 0 ;
25001 double val3 ;
25002 int ecode3 = 0 ;
25003 PyObject * obj0 = 0 ;
25004 PyObject * obj1 = 0 ;
25005 PyObject * obj2 = 0 ;
25006 char * kwnames[] = {
25007 (char *) "self",(char *) "dx",(char *) "dy", NULL
25008 };
25009
25010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25012 if (!SWIG_IsOK(res1)) {
25013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25014 }
25015 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25016 ecode2 = SWIG_AsVal_double(obj1, &val2);
25017 if (!SWIG_IsOK(ecode2)) {
25018 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
25019 }
25020 arg2 = static_cast< wxDouble >(val2);
25021 ecode3 = SWIG_AsVal_double(obj2, &val3);
25022 if (!SWIG_IsOK(ecode3)) {
25023 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
25024 }
25025 arg3 = static_cast< wxDouble >(val3);
25026 {
25027 (arg1)->Translate(arg2,arg3);
25028 if (PyErr_Occurred()) SWIG_fail;
25029 }
25030 resultobj = SWIG_Py_Void();
25031 return resultobj;
25032 fail:
25033 return NULL;
25034 }
25035
25036
25037 SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25038 PyObject *resultobj = 0;
25039 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25040 wxDouble arg2 ;
25041 wxDouble arg3 ;
25042 void *argp1 = 0 ;
25043 int res1 = 0 ;
25044 double val2 ;
25045 int ecode2 = 0 ;
25046 double val3 ;
25047 int ecode3 = 0 ;
25048 PyObject * obj0 = 0 ;
25049 PyObject * obj1 = 0 ;
25050 PyObject * obj2 = 0 ;
25051 char * kwnames[] = {
25052 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
25053 };
25054
25055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25057 if (!SWIG_IsOK(res1)) {
25058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25059 }
25060 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25061 ecode2 = SWIG_AsVal_double(obj1, &val2);
25062 if (!SWIG_IsOK(ecode2)) {
25063 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
25064 }
25065 arg2 = static_cast< wxDouble >(val2);
25066 ecode3 = SWIG_AsVal_double(obj2, &val3);
25067 if (!SWIG_IsOK(ecode3)) {
25068 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
25069 }
25070 arg3 = static_cast< wxDouble >(val3);
25071 {
25072 (arg1)->Scale(arg2,arg3);
25073 if (PyErr_Occurred()) SWIG_fail;
25074 }
25075 resultobj = SWIG_Py_Void();
25076 return resultobj;
25077 fail:
25078 return NULL;
25079 }
25080
25081
25082 SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25083 PyObject *resultobj = 0;
25084 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25085 wxDouble arg2 ;
25086 void *argp1 = 0 ;
25087 int res1 = 0 ;
25088 double val2 ;
25089 int ecode2 = 0 ;
25090 PyObject * obj0 = 0 ;
25091 PyObject * obj1 = 0 ;
25092 char * kwnames[] = {
25093 (char *) "self",(char *) "angle", NULL
25094 };
25095
25096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
25097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25098 if (!SWIG_IsOK(res1)) {
25099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25100 }
25101 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25102 ecode2 = SWIG_AsVal_double(obj1, &val2);
25103 if (!SWIG_IsOK(ecode2)) {
25104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
25105 }
25106 arg2 = static_cast< wxDouble >(val2);
25107 {
25108 (arg1)->Rotate(arg2);
25109 if (PyErr_Occurred()) SWIG_fail;
25110 }
25111 resultobj = SWIG_Py_Void();
25112 return resultobj;
25113 fail:
25114 return NULL;
25115 }
25116
25117
25118 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25119 PyObject *resultobj = 0;
25120 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25121 wxPen *arg2 = 0 ;
25122 void *argp1 = 0 ;
25123 int res1 = 0 ;
25124 void *argp2 = 0 ;
25125 int res2 = 0 ;
25126 PyObject * obj0 = 0 ;
25127 PyObject * obj1 = 0 ;
25128 char * kwnames[] = {
25129 (char *) "self",(char *) "pen", NULL
25130 };
25131
25132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
25133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25134 if (!SWIG_IsOK(res1)) {
25135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25136 }
25137 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25138 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
25139 if (!SWIG_IsOK(res2)) {
25140 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
25141 }
25142 if (!argp2) {
25143 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
25144 }
25145 arg2 = reinterpret_cast< wxPen * >(argp2);
25146 {
25147 (arg1)->SetPen((wxPen const &)*arg2);
25148 if (PyErr_Occurred()) SWIG_fail;
25149 }
25150 resultobj = SWIG_Py_Void();
25151 return resultobj;
25152 fail:
25153 return NULL;
25154 }
25155
25156
25157 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25158 PyObject *resultobj = 0;
25159 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25160 wxBrush *arg2 = 0 ;
25161 void *argp1 = 0 ;
25162 int res1 = 0 ;
25163 void *argp2 = 0 ;
25164 int res2 = 0 ;
25165 PyObject * obj0 = 0 ;
25166 PyObject * obj1 = 0 ;
25167 char * kwnames[] = {
25168 (char *) "self",(char *) "brush", NULL
25169 };
25170
25171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
25172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25173 if (!SWIG_IsOK(res1)) {
25174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25175 }
25176 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25177 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
25178 if (!SWIG_IsOK(res2)) {
25179 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
25180 }
25181 if (!argp2) {
25182 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
25183 }
25184 arg2 = reinterpret_cast< wxBrush * >(argp2);
25185 {
25186 (arg1)->SetBrush((wxBrush const &)*arg2);
25187 if (PyErr_Occurred()) SWIG_fail;
25188 }
25189 resultobj = SWIG_Py_Void();
25190 return resultobj;
25191 fail:
25192 return NULL;
25193 }
25194
25195
25196 SWIGINTERN PyObject *_wrap_GraphicsContext_SetLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25197 PyObject *resultobj = 0;
25198 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25199 wxDouble arg2 ;
25200 wxDouble arg3 ;
25201 wxDouble arg4 ;
25202 wxDouble arg5 ;
25203 wxColour *arg6 = 0 ;
25204 wxColour *arg7 = 0 ;
25205 void *argp1 = 0 ;
25206 int res1 = 0 ;
25207 double val2 ;
25208 int ecode2 = 0 ;
25209 double val3 ;
25210 int ecode3 = 0 ;
25211 double val4 ;
25212 int ecode4 = 0 ;
25213 double val5 ;
25214 int ecode5 = 0 ;
25215 wxColour temp6 ;
25216 wxColour temp7 ;
25217 PyObject * obj0 = 0 ;
25218 PyObject * obj1 = 0 ;
25219 PyObject * obj2 = 0 ;
25220 PyObject * obj3 = 0 ;
25221 PyObject * obj4 = 0 ;
25222 PyObject * obj5 = 0 ;
25223 PyObject * obj6 = 0 ;
25224 char * kwnames[] = {
25225 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
25226 };
25227
25228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_SetLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25230 if (!SWIG_IsOK(res1)) {
25231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25232 }
25233 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25234 ecode2 = SWIG_AsVal_double(obj1, &val2);
25235 if (!SWIG_IsOK(ecode2)) {
25236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
25237 }
25238 arg2 = static_cast< wxDouble >(val2);
25239 ecode3 = SWIG_AsVal_double(obj2, &val3);
25240 if (!SWIG_IsOK(ecode3)) {
25241 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
25242 }
25243 arg3 = static_cast< wxDouble >(val3);
25244 ecode4 = SWIG_AsVal_double(obj3, &val4);
25245 if (!SWIG_IsOK(ecode4)) {
25246 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
25247 }
25248 arg4 = static_cast< wxDouble >(val4);
25249 ecode5 = SWIG_AsVal_double(obj4, &val5);
25250 if (!SWIG_IsOK(ecode5)) {
25251 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
25252 }
25253 arg5 = static_cast< wxDouble >(val5);
25254 {
25255 arg6 = &temp6;
25256 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
25257 }
25258 {
25259 arg7 = &temp7;
25260 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
25261 }
25262 {
25263 (arg1)->SetLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
25264 if (PyErr_Occurred()) SWIG_fail;
25265 }
25266 resultobj = SWIG_Py_Void();
25267 return resultobj;
25268 fail:
25269 return NULL;
25270 }
25271
25272
25273 SWIGINTERN PyObject *_wrap_GraphicsContext_SetRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25274 PyObject *resultobj = 0;
25275 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25276 wxDouble arg2 ;
25277 wxDouble arg3 ;
25278 wxDouble arg4 ;
25279 wxDouble arg5 ;
25280 wxDouble arg6 ;
25281 wxColour *arg7 = 0 ;
25282 wxColour *arg8 = 0 ;
25283 void *argp1 = 0 ;
25284 int res1 = 0 ;
25285 double val2 ;
25286 int ecode2 = 0 ;
25287 double val3 ;
25288 int ecode3 = 0 ;
25289 double val4 ;
25290 int ecode4 = 0 ;
25291 double val5 ;
25292 int ecode5 = 0 ;
25293 double val6 ;
25294 int ecode6 = 0 ;
25295 wxColour temp7 ;
25296 wxColour temp8 ;
25297 PyObject * obj0 = 0 ;
25298 PyObject * obj1 = 0 ;
25299 PyObject * obj2 = 0 ;
25300 PyObject * obj3 = 0 ;
25301 PyObject * obj4 = 0 ;
25302 PyObject * obj5 = 0 ;
25303 PyObject * obj6 = 0 ;
25304 PyObject * obj7 = 0 ;
25305 char * kwnames[] = {
25306 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
25307 };
25308
25309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_SetRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
25310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25311 if (!SWIG_IsOK(res1)) {
25312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25313 }
25314 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25315 ecode2 = SWIG_AsVal_double(obj1, &val2);
25316 if (!SWIG_IsOK(ecode2)) {
25317 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
25318 }
25319 arg2 = static_cast< wxDouble >(val2);
25320 ecode3 = SWIG_AsVal_double(obj2, &val3);
25321 if (!SWIG_IsOK(ecode3)) {
25322 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
25323 }
25324 arg3 = static_cast< wxDouble >(val3);
25325 ecode4 = SWIG_AsVal_double(obj3, &val4);
25326 if (!SWIG_IsOK(ecode4)) {
25327 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
25328 }
25329 arg4 = static_cast< wxDouble >(val4);
25330 ecode5 = SWIG_AsVal_double(obj4, &val5);
25331 if (!SWIG_IsOK(ecode5)) {
25332 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
25333 }
25334 arg5 = static_cast< wxDouble >(val5);
25335 ecode6 = SWIG_AsVal_double(obj5, &val6);
25336 if (!SWIG_IsOK(ecode6)) {
25337 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
25338 }
25339 arg6 = static_cast< wxDouble >(val6);
25340 {
25341 arg7 = &temp7;
25342 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
25343 }
25344 {
25345 arg8 = &temp8;
25346 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
25347 }
25348 {
25349 (arg1)->SetRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
25350 if (PyErr_Occurred()) SWIG_fail;
25351 }
25352 resultobj = SWIG_Py_Void();
25353 return resultobj;
25354 fail:
25355 return NULL;
25356 }
25357
25358
25359 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25360 PyObject *resultobj = 0;
25361 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25362 wxFont *arg2 = 0 ;
25363 void *argp1 = 0 ;
25364 int res1 = 0 ;
25365 void *argp2 = 0 ;
25366 int res2 = 0 ;
25367 PyObject * obj0 = 0 ;
25368 PyObject * obj1 = 0 ;
25369 char * kwnames[] = {
25370 (char *) "self",(char *) "font", NULL
25371 };
25372
25373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25375 if (!SWIG_IsOK(res1)) {
25376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25377 }
25378 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25379 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25380 if (!SWIG_IsOK(res2)) {
25381 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25382 }
25383 if (!argp2) {
25384 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25385 }
25386 arg2 = reinterpret_cast< wxFont * >(argp2);
25387 {
25388 (arg1)->SetFont((wxFont const &)*arg2);
25389 if (PyErr_Occurred()) SWIG_fail;
25390 }
25391 resultobj = SWIG_Py_Void();
25392 return resultobj;
25393 fail:
25394 return NULL;
25395 }
25396
25397
25398 SWIGINTERN PyObject *_wrap_GraphicsContext_SetTextColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25399 PyObject *resultobj = 0;
25400 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25401 wxColour *arg2 = 0 ;
25402 void *argp1 = 0 ;
25403 int res1 = 0 ;
25404 wxColour temp2 ;
25405 PyObject * obj0 = 0 ;
25406 PyObject * obj1 = 0 ;
25407 char * kwnames[] = {
25408 (char *) "self",(char *) "col", NULL
25409 };
25410
25411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTextColor",kwnames,&obj0,&obj1)) SWIG_fail;
25412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25413 if (!SWIG_IsOK(res1)) {
25414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTextColor" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25415 }
25416 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25417 {
25418 arg2 = &temp2;
25419 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25420 }
25421 {
25422 (arg1)->SetTextColor((wxColour const &)*arg2);
25423 if (PyErr_Occurred()) SWIG_fail;
25424 }
25425 resultobj = SWIG_Py_Void();
25426 return resultobj;
25427 fail:
25428 return NULL;
25429 }
25430
25431
25432 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25433 PyObject *resultobj = 0;
25434 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25435 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25436 void *argp1 = 0 ;
25437 int res1 = 0 ;
25438 void *argp2 = 0 ;
25439 int res2 = 0 ;
25440 PyObject * obj0 = 0 ;
25441 PyObject * obj1 = 0 ;
25442 char * kwnames[] = {
25443 (char *) "self",(char *) "path", NULL
25444 };
25445
25446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
25447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25448 if (!SWIG_IsOK(res1)) {
25449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25450 }
25451 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25452 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25453 if (!SWIG_IsOK(res2)) {
25454 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25455 }
25456 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25457 {
25458 (arg1)->StrokePath((wxGraphicsPath const *)arg2);
25459 if (PyErr_Occurred()) SWIG_fail;
25460 }
25461 resultobj = SWIG_Py_Void();
25462 return resultobj;
25463 fail:
25464 return NULL;
25465 }
25466
25467
25468 SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25469 PyObject *resultobj = 0;
25470 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25471 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25472 int arg3 = (int) wxWINDING_RULE ;
25473 void *argp1 = 0 ;
25474 int res1 = 0 ;
25475 void *argp2 = 0 ;
25476 int res2 = 0 ;
25477 int val3 ;
25478 int ecode3 = 0 ;
25479 PyObject * obj0 = 0 ;
25480 PyObject * obj1 = 0 ;
25481 PyObject * obj2 = 0 ;
25482 char * kwnames[] = {
25483 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
25484 };
25485
25486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25488 if (!SWIG_IsOK(res1)) {
25489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25490 }
25491 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25492 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25493 if (!SWIG_IsOK(res2)) {
25494 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25495 }
25496 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25497 if (obj2) {
25498 ecode3 = SWIG_AsVal_int(obj2, &val3);
25499 if (!SWIG_IsOK(ecode3)) {
25500 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
25501 }
25502 arg3 = static_cast< int >(val3);
25503 }
25504 {
25505 (arg1)->FillPath((wxGraphicsPath const *)arg2,arg3);
25506 if (PyErr_Occurred()) SWIG_fail;
25507 }
25508 resultobj = SWIG_Py_Void();
25509 return resultobj;
25510 fail:
25511 return NULL;
25512 }
25513
25514
25515 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25516 PyObject *resultobj = 0;
25517 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25518 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25519 int arg3 = (int) wxWINDING_RULE ;
25520 void *argp1 = 0 ;
25521 int res1 = 0 ;
25522 void *argp2 = 0 ;
25523 int res2 = 0 ;
25524 int val3 ;
25525 int ecode3 = 0 ;
25526 PyObject * obj0 = 0 ;
25527 PyObject * obj1 = 0 ;
25528 PyObject * obj2 = 0 ;
25529 char * kwnames[] = {
25530 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
25531 };
25532
25533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25535 if (!SWIG_IsOK(res1)) {
25536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25537 }
25538 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25539 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25540 if (!SWIG_IsOK(res2)) {
25541 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25542 }
25543 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25544 if (obj2) {
25545 ecode3 = SWIG_AsVal_int(obj2, &val3);
25546 if (!SWIG_IsOK(ecode3)) {
25547 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
25548 }
25549 arg3 = static_cast< int >(val3);
25550 }
25551 {
25552 (arg1)->DrawPath((wxGraphicsPath const *)arg2,arg3);
25553 if (PyErr_Occurred()) SWIG_fail;
25554 }
25555 resultobj = SWIG_Py_Void();
25556 return resultobj;
25557 fail:
25558 return NULL;
25559 }
25560
25561
25562 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25563 PyObject *resultobj = 0;
25564 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25565 wxString *arg2 = 0 ;
25566 wxDouble arg3 ;
25567 wxDouble arg4 ;
25568 void *argp1 = 0 ;
25569 int res1 = 0 ;
25570 bool temp2 = false ;
25571 double val3 ;
25572 int ecode3 = 0 ;
25573 double val4 ;
25574 int ecode4 = 0 ;
25575 PyObject * obj0 = 0 ;
25576 PyObject * obj1 = 0 ;
25577 PyObject * obj2 = 0 ;
25578 PyObject * obj3 = 0 ;
25579 char * kwnames[] = {
25580 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
25581 };
25582
25583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25585 if (!SWIG_IsOK(res1)) {
25586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25587 }
25588 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25589 {
25590 arg2 = wxString_in_helper(obj1);
25591 if (arg2 == NULL) SWIG_fail;
25592 temp2 = true;
25593 }
25594 ecode3 = SWIG_AsVal_double(obj2, &val3);
25595 if (!SWIG_IsOK(ecode3)) {
25596 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
25597 }
25598 arg3 = static_cast< wxDouble >(val3);
25599 ecode4 = SWIG_AsVal_double(obj3, &val4);
25600 if (!SWIG_IsOK(ecode4)) {
25601 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
25602 }
25603 arg4 = static_cast< wxDouble >(val4);
25604 {
25605 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
25606 if (PyErr_Occurred()) SWIG_fail;
25607 }
25608 resultobj = SWIG_Py_Void();
25609 {
25610 if (temp2)
25611 delete arg2;
25612 }
25613 return resultobj;
25614 fail:
25615 {
25616 if (temp2)
25617 delete arg2;
25618 }
25619 return NULL;
25620 }
25621
25622
25623 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25624 PyObject *resultobj = 0;
25625 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25626 wxString *arg2 = 0 ;
25627 wxDouble arg3 ;
25628 wxDouble arg4 ;
25629 wxDouble arg5 ;
25630 void *argp1 = 0 ;
25631 int res1 = 0 ;
25632 bool temp2 = false ;
25633 double val3 ;
25634 int ecode3 = 0 ;
25635 double val4 ;
25636 int ecode4 = 0 ;
25637 double val5 ;
25638 int ecode5 = 0 ;
25639 PyObject * obj0 = 0 ;
25640 PyObject * obj1 = 0 ;
25641 PyObject * obj2 = 0 ;
25642 PyObject * obj3 = 0 ;
25643 PyObject * obj4 = 0 ;
25644 char * kwnames[] = {
25645 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
25646 };
25647
25648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25650 if (!SWIG_IsOK(res1)) {
25651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25652 }
25653 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25654 {
25655 arg2 = wxString_in_helper(obj1);
25656 if (arg2 == NULL) SWIG_fail;
25657 temp2 = true;
25658 }
25659 ecode3 = SWIG_AsVal_double(obj2, &val3);
25660 if (!SWIG_IsOK(ecode3)) {
25661 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
25662 }
25663 arg3 = static_cast< wxDouble >(val3);
25664 ecode4 = SWIG_AsVal_double(obj3, &val4);
25665 if (!SWIG_IsOK(ecode4)) {
25666 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
25667 }
25668 arg4 = static_cast< wxDouble >(val4);
25669 ecode5 = SWIG_AsVal_double(obj4, &val5);
25670 if (!SWIG_IsOK(ecode5)) {
25671 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
25672 }
25673 arg5 = static_cast< wxDouble >(val5);
25674 {
25675 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
25676 if (PyErr_Occurred()) SWIG_fail;
25677 }
25678 resultobj = SWIG_Py_Void();
25679 {
25680 if (temp2)
25681 delete arg2;
25682 }
25683 return resultobj;
25684 fail:
25685 {
25686 if (temp2)
25687 delete arg2;
25688 }
25689 return NULL;
25690 }
25691
25692
25693 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25694 PyObject *resultobj = 0;
25695 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25696 wxString *arg2 = 0 ;
25697 wxDouble *arg3 = (wxDouble *) 0 ;
25698 wxDouble *arg4 = (wxDouble *) 0 ;
25699 wxDouble *arg5 = (wxDouble *) 0 ;
25700 wxDouble *arg6 = (wxDouble *) 0 ;
25701 void *argp1 = 0 ;
25702 int res1 = 0 ;
25703 bool temp2 = false ;
25704 wxDouble temp3 ;
25705 int res3 = SWIG_TMPOBJ ;
25706 wxDouble temp4 ;
25707 int res4 = SWIG_TMPOBJ ;
25708 wxDouble temp5 ;
25709 int res5 = SWIG_TMPOBJ ;
25710 wxDouble temp6 ;
25711 int res6 = SWIG_TMPOBJ ;
25712 PyObject * obj0 = 0 ;
25713 PyObject * obj1 = 0 ;
25714 char * kwnames[] = {
25715 (char *) "self",(char *) "text", NULL
25716 };
25717
25718 arg3 = &temp3;
25719 arg4 = &temp4;
25720 arg5 = &temp5;
25721 arg6 = &temp6;
25722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
25723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25724 if (!SWIG_IsOK(res1)) {
25725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
25726 }
25727 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25728 {
25729 arg2 = wxString_in_helper(obj1);
25730 if (arg2 == NULL) SWIG_fail;
25731 temp2 = true;
25732 }
25733 {
25734 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
25735 if (PyErr_Occurred()) SWIG_fail;
25736 }
25737 resultobj = SWIG_Py_Void();
25738 if (SWIG_IsTmpObj(res3)) {
25739 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
25740 } else {
25741 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25742 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
25743 }
25744 if (SWIG_IsTmpObj(res4)) {
25745 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
25746 } else {
25747 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25748 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
25749 }
25750 if (SWIG_IsTmpObj(res5)) {
25751 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
25752 } else {
25753 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25754 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
25755 }
25756 if (SWIG_IsTmpObj(res6)) {
25757 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
25758 } else {
25759 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25760 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
25761 }
25762 {
25763 if (temp2)
25764 delete arg2;
25765 }
25766 return resultobj;
25767 fail:
25768 {
25769 if (temp2)
25770 delete arg2;
25771 }
25772 return NULL;
25773 }
25774
25775
25776 SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25777 PyObject *resultobj = 0;
25778 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25779 wxString *arg2 = 0 ;
25780 wxArrayDouble result;
25781 void *argp1 = 0 ;
25782 int res1 = 0 ;
25783 bool temp2 = false ;
25784 PyObject * obj0 = 0 ;
25785 PyObject * obj1 = 0 ;
25786 char * kwnames[] = {
25787 (char *) "self",(char *) "text", NULL
25788 };
25789
25790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
25791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25792 if (!SWIG_IsOK(res1)) {
25793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25794 }
25795 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25796 {
25797 arg2 = wxString_in_helper(obj1);
25798 if (arg2 == NULL) SWIG_fail;
25799 temp2 = true;
25800 }
25801 {
25802 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
25803 if (PyErr_Occurred()) SWIG_fail;
25804 }
25805 {
25806 resultobj = wxArrayDouble2PyList_helper(result);
25807 }
25808 {
25809 if (temp2)
25810 delete arg2;
25811 }
25812 return resultobj;
25813 fail:
25814 {
25815 if (temp2)
25816 delete arg2;
25817 }
25818 return NULL;
25819 }
25820
25821
25822 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25823 PyObject *resultobj = 0;
25824 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25825 wxBitmap *arg2 = 0 ;
25826 wxDouble arg3 ;
25827 wxDouble arg4 ;
25828 wxDouble arg5 ;
25829 wxDouble arg6 ;
25830 void *argp1 = 0 ;
25831 int res1 = 0 ;
25832 void *argp2 = 0 ;
25833 int res2 = 0 ;
25834 double val3 ;
25835 int ecode3 = 0 ;
25836 double val4 ;
25837 int ecode4 = 0 ;
25838 double val5 ;
25839 int ecode5 = 0 ;
25840 double val6 ;
25841 int ecode6 = 0 ;
25842 PyObject * obj0 = 0 ;
25843 PyObject * obj1 = 0 ;
25844 PyObject * obj2 = 0 ;
25845 PyObject * obj3 = 0 ;
25846 PyObject * obj4 = 0 ;
25847 PyObject * obj5 = 0 ;
25848 char * kwnames[] = {
25849 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
25850 };
25851
25852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25854 if (!SWIG_IsOK(res1)) {
25855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25856 }
25857 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25858 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
25859 if (!SWIG_IsOK(res2)) {
25860 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25861 }
25862 if (!argp2) {
25863 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25864 }
25865 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25866 ecode3 = SWIG_AsVal_double(obj2, &val3);
25867 if (!SWIG_IsOK(ecode3)) {
25868 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
25869 }
25870 arg3 = static_cast< wxDouble >(val3);
25871 ecode4 = SWIG_AsVal_double(obj3, &val4);
25872 if (!SWIG_IsOK(ecode4)) {
25873 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
25874 }
25875 arg4 = static_cast< wxDouble >(val4);
25876 ecode5 = SWIG_AsVal_double(obj4, &val5);
25877 if (!SWIG_IsOK(ecode5)) {
25878 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
25879 }
25880 arg5 = static_cast< wxDouble >(val5);
25881 ecode6 = SWIG_AsVal_double(obj5, &val6);
25882 if (!SWIG_IsOK(ecode6)) {
25883 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
25884 }
25885 arg6 = static_cast< wxDouble >(val6);
25886 {
25887 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
25888 if (PyErr_Occurred()) SWIG_fail;
25889 }
25890 resultobj = SWIG_Py_Void();
25891 return resultobj;
25892 fail:
25893 return NULL;
25894 }
25895
25896
25897 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25898 PyObject *resultobj = 0;
25899 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25900 wxIcon *arg2 = 0 ;
25901 wxDouble arg3 ;
25902 wxDouble arg4 ;
25903 wxDouble arg5 ;
25904 wxDouble arg6 ;
25905 void *argp1 = 0 ;
25906 int res1 = 0 ;
25907 void *argp2 = 0 ;
25908 int res2 = 0 ;
25909 double val3 ;
25910 int ecode3 = 0 ;
25911 double val4 ;
25912 int ecode4 = 0 ;
25913 double val5 ;
25914 int ecode5 = 0 ;
25915 double val6 ;
25916 int ecode6 = 0 ;
25917 PyObject * obj0 = 0 ;
25918 PyObject * obj1 = 0 ;
25919 PyObject * obj2 = 0 ;
25920 PyObject * obj3 = 0 ;
25921 PyObject * obj4 = 0 ;
25922 PyObject * obj5 = 0 ;
25923 char * kwnames[] = {
25924 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
25925 };
25926
25927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25929 if (!SWIG_IsOK(res1)) {
25930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25931 }
25932 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25933 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
25934 if (!SWIG_IsOK(res2)) {
25935 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
25936 }
25937 if (!argp2) {
25938 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
25939 }
25940 arg2 = reinterpret_cast< wxIcon * >(argp2);
25941 ecode3 = SWIG_AsVal_double(obj2, &val3);
25942 if (!SWIG_IsOK(ecode3)) {
25943 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
25944 }
25945 arg3 = static_cast< wxDouble >(val3);
25946 ecode4 = SWIG_AsVal_double(obj3, &val4);
25947 if (!SWIG_IsOK(ecode4)) {
25948 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
25949 }
25950 arg4 = static_cast< wxDouble >(val4);
25951 ecode5 = SWIG_AsVal_double(obj4, &val5);
25952 if (!SWIG_IsOK(ecode5)) {
25953 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
25954 }
25955 arg5 = static_cast< wxDouble >(val5);
25956 ecode6 = SWIG_AsVal_double(obj5, &val6);
25957 if (!SWIG_IsOK(ecode6)) {
25958 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
25959 }
25960 arg6 = static_cast< wxDouble >(val6);
25961 {
25962 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
25963 if (PyErr_Occurred()) SWIG_fail;
25964 }
25965 resultobj = SWIG_Py_Void();
25966 return resultobj;
25967 fail:
25968 return NULL;
25969 }
25970
25971
25972 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25973 PyObject *resultobj = 0;
25974 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25975 wxDouble arg2 ;
25976 wxDouble arg3 ;
25977 wxDouble arg4 ;
25978 wxDouble arg5 ;
25979 void *argp1 = 0 ;
25980 int res1 = 0 ;
25981 double val2 ;
25982 int ecode2 = 0 ;
25983 double val3 ;
25984 int ecode3 = 0 ;
25985 double val4 ;
25986 int ecode4 = 0 ;
25987 double val5 ;
25988 int ecode5 = 0 ;
25989 PyObject * obj0 = 0 ;
25990 PyObject * obj1 = 0 ;
25991 PyObject * obj2 = 0 ;
25992 PyObject * obj3 = 0 ;
25993 PyObject * obj4 = 0 ;
25994 char * kwnames[] = {
25995 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
25996 };
25997
25998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26000 if (!SWIG_IsOK(res1)) {
26001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26002 }
26003 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26004 ecode2 = SWIG_AsVal_double(obj1, &val2);
26005 if (!SWIG_IsOK(ecode2)) {
26006 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
26007 }
26008 arg2 = static_cast< wxDouble >(val2);
26009 ecode3 = SWIG_AsVal_double(obj2, &val3);
26010 if (!SWIG_IsOK(ecode3)) {
26011 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
26012 }
26013 arg3 = static_cast< wxDouble >(val3);
26014 ecode4 = SWIG_AsVal_double(obj3, &val4);
26015 if (!SWIG_IsOK(ecode4)) {
26016 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
26017 }
26018 arg4 = static_cast< wxDouble >(val4);
26019 ecode5 = SWIG_AsVal_double(obj4, &val5);
26020 if (!SWIG_IsOK(ecode5)) {
26021 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
26022 }
26023 arg5 = static_cast< wxDouble >(val5);
26024 {
26025 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
26026 if (PyErr_Occurred()) SWIG_fail;
26027 }
26028 resultobj = SWIG_Py_Void();
26029 return resultobj;
26030 fail:
26031 return NULL;
26032 }
26033
26034
26035 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26036 PyObject *resultobj = 0;
26037 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26038 size_t arg2 ;
26039 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
26040 void *argp1 = 0 ;
26041 int res1 = 0 ;
26042 PyObject * obj0 = 0 ;
26043 PyObject * obj1 = 0 ;
26044 char * kwnames[] = {
26045 (char *) "self",(char *) "points", NULL
26046 };
26047
26048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
26049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26050 if (!SWIG_IsOK(res1)) {
26051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26052 }
26053 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26054 {
26055 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
26056 if (arg3 == NULL) SWIG_fail;
26057 }
26058 {
26059 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
26060 if (PyErr_Occurred()) SWIG_fail;
26061 }
26062 resultobj = SWIG_Py_Void();
26063 {
26064 if (arg3) delete [] arg3;
26065 }
26066 return resultobj;
26067 fail:
26068 {
26069 if (arg3) delete [] arg3;
26070 }
26071 return NULL;
26072 }
26073
26074
26075 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26076 PyObject *resultobj = 0;
26077 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26078 PyObject *arg2 = (PyObject *) 0 ;
26079 PyObject *arg3 = (PyObject *) 0 ;
26080 void *argp1 = 0 ;
26081 int res1 = 0 ;
26082 PyObject * obj0 = 0 ;
26083 PyObject * obj1 = 0 ;
26084 PyObject * obj2 = 0 ;
26085 char * kwnames[] = {
26086 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
26087 };
26088
26089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26091 if (!SWIG_IsOK(res1)) {
26092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26093 }
26094 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26095 arg2 = obj1;
26096 arg3 = obj2;
26097 {
26098 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
26099 if (PyErr_Occurred()) SWIG_fail;
26100 }
26101 resultobj = SWIG_Py_Void();
26102 return resultobj;
26103 fail:
26104 return NULL;
26105 }
26106
26107
26108 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26109 PyObject *resultobj = 0;
26110 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26111 size_t arg2 ;
26112 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
26113 int arg4 = (int) wxWINDING_RULE ;
26114 void *argp1 = 0 ;
26115 int res1 = 0 ;
26116 int val4 ;
26117 int ecode4 = 0 ;
26118 PyObject * obj0 = 0 ;
26119 PyObject * obj1 = 0 ;
26120 PyObject * obj2 = 0 ;
26121 char * kwnames[] = {
26122 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
26123 };
26124
26125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26127 if (!SWIG_IsOK(res1)) {
26128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26129 }
26130 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26131 {
26132 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
26133 if (arg3 == NULL) SWIG_fail;
26134 }
26135 if (obj2) {
26136 ecode4 = SWIG_AsVal_int(obj2, &val4);
26137 if (!SWIG_IsOK(ecode4)) {
26138 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
26139 }
26140 arg4 = static_cast< int >(val4);
26141 }
26142 {
26143 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
26144 if (PyErr_Occurred()) SWIG_fail;
26145 }
26146 resultobj = SWIG_Py_Void();
26147 {
26148 if (arg3) delete [] arg3;
26149 }
26150 return resultobj;
26151 fail:
26152 {
26153 if (arg3) delete [] arg3;
26154 }
26155 return NULL;
26156 }
26157
26158
26159 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26160 PyObject *resultobj = 0;
26161 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26162 wxDouble arg2 ;
26163 wxDouble arg3 ;
26164 wxDouble arg4 ;
26165 wxDouble arg5 ;
26166 void *argp1 = 0 ;
26167 int res1 = 0 ;
26168 double val2 ;
26169 int ecode2 = 0 ;
26170 double val3 ;
26171 int ecode3 = 0 ;
26172 double val4 ;
26173 int ecode4 = 0 ;
26174 double val5 ;
26175 int ecode5 = 0 ;
26176 PyObject * obj0 = 0 ;
26177 PyObject * obj1 = 0 ;
26178 PyObject * obj2 = 0 ;
26179 PyObject * obj3 = 0 ;
26180 PyObject * obj4 = 0 ;
26181 char * kwnames[] = {
26182 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26183 };
26184
26185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26187 if (!SWIG_IsOK(res1)) {
26188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26189 }
26190 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26191 ecode2 = SWIG_AsVal_double(obj1, &val2);
26192 if (!SWIG_IsOK(ecode2)) {
26193 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26194 }
26195 arg2 = static_cast< wxDouble >(val2);
26196 ecode3 = SWIG_AsVal_double(obj2, &val3);
26197 if (!SWIG_IsOK(ecode3)) {
26198 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26199 }
26200 arg3 = static_cast< wxDouble >(val3);
26201 ecode4 = SWIG_AsVal_double(obj3, &val4);
26202 if (!SWIG_IsOK(ecode4)) {
26203 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26204 }
26205 arg4 = static_cast< wxDouble >(val4);
26206 ecode5 = SWIG_AsVal_double(obj4, &val5);
26207 if (!SWIG_IsOK(ecode5)) {
26208 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26209 }
26210 arg5 = static_cast< wxDouble >(val5);
26211 {
26212 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
26213 if (PyErr_Occurred()) SWIG_fail;
26214 }
26215 resultobj = SWIG_Py_Void();
26216 return resultobj;
26217 fail:
26218 return NULL;
26219 }
26220
26221
26222 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26223 PyObject *resultobj = 0;
26224 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26225 wxDouble arg2 ;
26226 wxDouble arg3 ;
26227 wxDouble arg4 ;
26228 wxDouble arg5 ;
26229 void *argp1 = 0 ;
26230 int res1 = 0 ;
26231 double val2 ;
26232 int ecode2 = 0 ;
26233 double val3 ;
26234 int ecode3 = 0 ;
26235 double val4 ;
26236 int ecode4 = 0 ;
26237 double val5 ;
26238 int ecode5 = 0 ;
26239 PyObject * obj0 = 0 ;
26240 PyObject * obj1 = 0 ;
26241 PyObject * obj2 = 0 ;
26242 PyObject * obj3 = 0 ;
26243 PyObject * obj4 = 0 ;
26244 char * kwnames[] = {
26245 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26246 };
26247
26248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26250 if (!SWIG_IsOK(res1)) {
26251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26252 }
26253 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26254 ecode2 = SWIG_AsVal_double(obj1, &val2);
26255 if (!SWIG_IsOK(ecode2)) {
26256 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
26257 }
26258 arg2 = static_cast< wxDouble >(val2);
26259 ecode3 = SWIG_AsVal_double(obj2, &val3);
26260 if (!SWIG_IsOK(ecode3)) {
26261 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
26262 }
26263 arg3 = static_cast< wxDouble >(val3);
26264 ecode4 = SWIG_AsVal_double(obj3, &val4);
26265 if (!SWIG_IsOK(ecode4)) {
26266 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
26267 }
26268 arg4 = static_cast< wxDouble >(val4);
26269 ecode5 = SWIG_AsVal_double(obj4, &val5);
26270 if (!SWIG_IsOK(ecode5)) {
26271 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
26272 }
26273 arg5 = static_cast< wxDouble >(val5);
26274 {
26275 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
26276 if (PyErr_Occurred()) SWIG_fail;
26277 }
26278 resultobj = SWIG_Py_Void();
26279 return resultobj;
26280 fail:
26281 return NULL;
26282 }
26283
26284
26285 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26286 PyObject *resultobj = 0;
26287 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26288 wxDouble arg2 ;
26289 wxDouble arg3 ;
26290 wxDouble arg4 ;
26291 wxDouble arg5 ;
26292 wxDouble arg6 ;
26293 void *argp1 = 0 ;
26294 int res1 = 0 ;
26295 double val2 ;
26296 int ecode2 = 0 ;
26297 double val3 ;
26298 int ecode3 = 0 ;
26299 double val4 ;
26300 int ecode4 = 0 ;
26301 double val5 ;
26302 int ecode5 = 0 ;
26303 double val6 ;
26304 int ecode6 = 0 ;
26305 PyObject * obj0 = 0 ;
26306 PyObject * obj1 = 0 ;
26307 PyObject * obj2 = 0 ;
26308 PyObject * obj3 = 0 ;
26309 PyObject * obj4 = 0 ;
26310 PyObject * obj5 = 0 ;
26311 char * kwnames[] = {
26312 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
26313 };
26314
26315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26317 if (!SWIG_IsOK(res1)) {
26318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26319 }
26320 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26321 ecode2 = SWIG_AsVal_double(obj1, &val2);
26322 if (!SWIG_IsOK(ecode2)) {
26323 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26324 }
26325 arg2 = static_cast< wxDouble >(val2);
26326 ecode3 = SWIG_AsVal_double(obj2, &val3);
26327 if (!SWIG_IsOK(ecode3)) {
26328 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26329 }
26330 arg3 = static_cast< wxDouble >(val3);
26331 ecode4 = SWIG_AsVal_double(obj3, &val4);
26332 if (!SWIG_IsOK(ecode4)) {
26333 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26334 }
26335 arg4 = static_cast< wxDouble >(val4);
26336 ecode5 = SWIG_AsVal_double(obj4, &val5);
26337 if (!SWIG_IsOK(ecode5)) {
26338 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26339 }
26340 arg5 = static_cast< wxDouble >(val5);
26341 ecode6 = SWIG_AsVal_double(obj5, &val6);
26342 if (!SWIG_IsOK(ecode6)) {
26343 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
26344 }
26345 arg6 = static_cast< wxDouble >(val6);
26346 {
26347 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
26348 if (PyErr_Occurred()) SWIG_fail;
26349 }
26350 resultobj = SWIG_Py_Void();
26351 return resultobj;
26352 fail:
26353 return NULL;
26354 }
26355
26356
26357 SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26358 PyObject *obj;
26359 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26360 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
26361 return SWIG_Py_Void();
26362 }
26363
26364 SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26365 PyObject *resultobj = 0;
26366 wxWindowDC *arg1 = 0 ;
26367 wxGCDC *result = 0 ;
26368 void *argp1 = 0 ;
26369 int res1 = 0 ;
26370 PyObject * obj0 = 0 ;
26371 char * kwnames[] = {
26372 (char *) "dc", NULL
26373 };
26374
26375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
26376 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
26377 if (!SWIG_IsOK(res1)) {
26378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
26379 }
26380 if (!argp1) {
26381 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
26382 }
26383 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
26384 {
26385 if (!wxPyCheckForApp()) SWIG_fail;
26386 PyThreadState* __tstate = wxPyBeginAllowThreads();
26387 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
26388 wxPyEndAllowThreads(__tstate);
26389 if (PyErr_Occurred()) SWIG_fail;
26390 }
26391 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
26392 return resultobj;
26393 fail:
26394 return NULL;
26395 }
26396
26397
26398 SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26399 PyObject *resultobj = 0;
26400 wxGCDC *arg1 = (wxGCDC *) 0 ;
26401 void *argp1 = 0 ;
26402 int res1 = 0 ;
26403 PyObject *swig_obj[1] ;
26404
26405 if (!args) SWIG_fail;
26406 swig_obj[0] = args;
26407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
26408 if (!SWIG_IsOK(res1)) {
26409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
26410 }
26411 arg1 = reinterpret_cast< wxGCDC * >(argp1);
26412 {
26413 delete arg1;
26414
26415 if (PyErr_Occurred()) SWIG_fail;
26416 }
26417 resultobj = SWIG_Py_Void();
26418 return resultobj;
26419 fail:
26420 return NULL;
26421 }
26422
26423
26424 SWIGINTERN PyObject *_wrap_GCDC_GetGraphicContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26425 PyObject *resultobj = 0;
26426 wxGCDC *arg1 = (wxGCDC *) 0 ;
26427 wxGraphicsContext *result = 0 ;
26428 void *argp1 = 0 ;
26429 int res1 = 0 ;
26430 PyObject *swig_obj[1] ;
26431
26432 if (!args) SWIG_fail;
26433 swig_obj[0] = args;
26434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
26435 if (!SWIG_IsOK(res1)) {
26436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
26437 }
26438 arg1 = reinterpret_cast< wxGCDC * >(argp1);
26439 {
26440 result = (wxGraphicsContext *)(arg1)->GetGraphicContext();
26441 if (PyErr_Occurred()) SWIG_fail;
26442 }
26443 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26444 return resultobj;
26445 fail:
26446 return NULL;
26447 }
26448
26449
26450 SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26451 PyObject *obj;
26452 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26453 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
26454 return SWIG_Py_Void();
26455 }
26456
26457 SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26458 return SWIG_Python_InitShadowInstance(args);
26459 }
26460
26461 SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26462 PyObject *resultobj = 0;
26463 wxOverlay *result = 0 ;
26464
26465 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
26466 {
26467 PyThreadState* __tstate = wxPyBeginAllowThreads();
26468 result = (wxOverlay *)new wxOverlay();
26469 wxPyEndAllowThreads(__tstate);
26470 if (PyErr_Occurred()) SWIG_fail;
26471 }
26472 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
26473 return resultobj;
26474 fail:
26475 return NULL;
26476 }
26477
26478
26479 SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26480 PyObject *resultobj = 0;
26481 wxOverlay *arg1 = (wxOverlay *) 0 ;
26482 void *argp1 = 0 ;
26483 int res1 = 0 ;
26484 PyObject *swig_obj[1] ;
26485
26486 if (!args) SWIG_fail;
26487 swig_obj[0] = args;
26488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
26489 if (!SWIG_IsOK(res1)) {
26490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
26491 }
26492 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26493 {
26494 PyThreadState* __tstate = wxPyBeginAllowThreads();
26495 delete arg1;
26496
26497 wxPyEndAllowThreads(__tstate);
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_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26508 PyObject *resultobj = 0;
26509 wxOverlay *arg1 = (wxOverlay *) 0 ;
26510 void *argp1 = 0 ;
26511 int res1 = 0 ;
26512 PyObject *swig_obj[1] ;
26513
26514 if (!args) SWIG_fail;
26515 swig_obj[0] = args;
26516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
26517 if (!SWIG_IsOK(res1)) {
26518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
26519 }
26520 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26521 {
26522 PyThreadState* __tstate = wxPyBeginAllowThreads();
26523 (arg1)->Reset();
26524 wxPyEndAllowThreads(__tstate);
26525 if (PyErr_Occurred()) SWIG_fail;
26526 }
26527 resultobj = SWIG_Py_Void();
26528 return resultobj;
26529 fail:
26530 return NULL;
26531 }
26532
26533
26534 SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26535 PyObject *obj;
26536 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26537 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
26538 return SWIG_Py_Void();
26539 }
26540
26541 SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26542 return SWIG_Python_InitShadowInstance(args);
26543 }
26544
26545 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26546 PyObject *resultobj = 0;
26547 wxOverlay *arg1 = 0 ;
26548 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
26549 int arg3 ;
26550 int arg4 ;
26551 int arg5 ;
26552 int arg6 ;
26553 wxDCOverlay *result = 0 ;
26554 void *argp1 = 0 ;
26555 int res1 = 0 ;
26556 void *argp2 = 0 ;
26557 int res2 = 0 ;
26558 int val3 ;
26559 int ecode3 = 0 ;
26560 int val4 ;
26561 int ecode4 = 0 ;
26562 int val5 ;
26563 int ecode5 = 0 ;
26564 int val6 ;
26565 int ecode6 = 0 ;
26566
26567 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
26568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
26569 if (!SWIG_IsOK(res1)) {
26570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26571 }
26572 if (!argp1) {
26573 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26574 }
26575 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26576 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
26577 if (!SWIG_IsOK(res2)) {
26578 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
26579 }
26580 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
26581 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
26582 if (!SWIG_IsOK(ecode3)) {
26583 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
26584 }
26585 arg3 = static_cast< int >(val3);
26586 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
26587 if (!SWIG_IsOK(ecode4)) {
26588 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
26589 }
26590 arg4 = static_cast< int >(val4);
26591 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
26592 if (!SWIG_IsOK(ecode5)) {
26593 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
26594 }
26595 arg5 = static_cast< int >(val5);
26596 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
26597 if (!SWIG_IsOK(ecode6)) {
26598 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
26599 }
26600 arg6 = static_cast< int >(val6);
26601 {
26602 PyThreadState* __tstate = wxPyBeginAllowThreads();
26603 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
26604 wxPyEndAllowThreads(__tstate);
26605 if (PyErr_Occurred()) SWIG_fail;
26606 }
26607 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
26608 return resultobj;
26609 fail:
26610 return NULL;
26611 }
26612
26613
26614 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26615 PyObject *resultobj = 0;
26616 wxOverlay *arg1 = 0 ;
26617 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
26618 wxDCOverlay *result = 0 ;
26619 void *argp1 = 0 ;
26620 int res1 = 0 ;
26621 void *argp2 = 0 ;
26622 int res2 = 0 ;
26623
26624 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
26626 if (!SWIG_IsOK(res1)) {
26627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26628 }
26629 if (!argp1) {
26630 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26631 }
26632 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26633 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
26634 if (!SWIG_IsOK(res2)) {
26635 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
26636 }
26637 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
26638 {
26639 PyThreadState* __tstate = wxPyBeginAllowThreads();
26640 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
26641 wxPyEndAllowThreads(__tstate);
26642 if (PyErr_Occurred()) SWIG_fail;
26643 }
26644 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
26645 return resultobj;
26646 fail:
26647 return NULL;
26648 }
26649
26650
26651 SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
26652 int argc;
26653 PyObject *argv[7];
26654
26655 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
26656 --argc;
26657 if (argc == 2) {
26658 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
26659 }
26660 if (argc == 6) {
26661 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
26662 }
26663
26664 fail:
26665 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
26666 return NULL;
26667 }
26668
26669
26670 SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26671 PyObject *resultobj = 0;
26672 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
26673 void *argp1 = 0 ;
26674 int res1 = 0 ;
26675 PyObject *swig_obj[1] ;
26676
26677 if (!args) SWIG_fail;
26678 swig_obj[0] = args;
26679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
26680 if (!SWIG_IsOK(res1)) {
26681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
26682 }
26683 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
26684 {
26685 PyThreadState* __tstate = wxPyBeginAllowThreads();
26686 delete arg1;
26687
26688 wxPyEndAllowThreads(__tstate);
26689 if (PyErr_Occurred()) SWIG_fail;
26690 }
26691 resultobj = SWIG_Py_Void();
26692 return resultobj;
26693 fail:
26694 return NULL;
26695 }
26696
26697
26698 SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26699 PyObject *resultobj = 0;
26700 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
26701 void *argp1 = 0 ;
26702 int res1 = 0 ;
26703 PyObject *swig_obj[1] ;
26704
26705 if (!args) SWIG_fail;
26706 swig_obj[0] = args;
26707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
26708 if (!SWIG_IsOK(res1)) {
26709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
26710 }
26711 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
26712 {
26713 PyThreadState* __tstate = wxPyBeginAllowThreads();
26714 (arg1)->Clear();
26715 wxPyEndAllowThreads(__tstate);
26716 if (PyErr_Occurred()) SWIG_fail;
26717 }
26718 resultobj = SWIG_Py_Void();
26719 return resultobj;
26720 fail:
26721 return NULL;
26722 }
26723
26724
26725 SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26726 PyObject *obj;
26727 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26728 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
26729 return SWIG_Py_Void();
26730 }
26731
26732 SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26733 return SWIG_Python_InitShadowInstance(args);
26734 }
26735
26736 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26737 PyObject *resultobj = 0;
26738 int arg1 ;
26739 int arg2 ;
26740 int arg3 = (int) true ;
26741 int arg4 = (int) 1 ;
26742 wxImageList *result = 0 ;
26743 int val1 ;
26744 int ecode1 = 0 ;
26745 int val2 ;
26746 int ecode2 = 0 ;
26747 int val3 ;
26748 int ecode3 = 0 ;
26749 int val4 ;
26750 int ecode4 = 0 ;
26751 PyObject * obj0 = 0 ;
26752 PyObject * obj1 = 0 ;
26753 PyObject * obj2 = 0 ;
26754 PyObject * obj3 = 0 ;
26755 char * kwnames[] = {
26756 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
26757 };
26758
26759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26760 ecode1 = SWIG_AsVal_int(obj0, &val1);
26761 if (!SWIG_IsOK(ecode1)) {
26762 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
26763 }
26764 arg1 = static_cast< int >(val1);
26765 ecode2 = SWIG_AsVal_int(obj1, &val2);
26766 if (!SWIG_IsOK(ecode2)) {
26767 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
26768 }
26769 arg2 = static_cast< int >(val2);
26770 if (obj2) {
26771 ecode3 = SWIG_AsVal_int(obj2, &val3);
26772 if (!SWIG_IsOK(ecode3)) {
26773 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
26774 }
26775 arg3 = static_cast< int >(val3);
26776 }
26777 if (obj3) {
26778 ecode4 = SWIG_AsVal_int(obj3, &val4);
26779 if (!SWIG_IsOK(ecode4)) {
26780 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
26781 }
26782 arg4 = static_cast< int >(val4);
26783 }
26784 {
26785 if (!wxPyCheckForApp()) SWIG_fail;
26786 PyThreadState* __tstate = wxPyBeginAllowThreads();
26787 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
26788 wxPyEndAllowThreads(__tstate);
26789 if (PyErr_Occurred()) SWIG_fail;
26790 }
26791 {
26792 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
26793 }
26794 return resultobj;
26795 fail:
26796 return NULL;
26797 }
26798
26799
26800 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26801 PyObject *resultobj = 0;
26802 wxImageList *arg1 = (wxImageList *) 0 ;
26803 void *argp1 = 0 ;
26804 int res1 = 0 ;
26805 PyObject *swig_obj[1] ;
26806
26807 if (!args) SWIG_fail;
26808 swig_obj[0] = args;
26809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
26810 if (!SWIG_IsOK(res1)) {
26811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
26812 }
26813 arg1 = reinterpret_cast< wxImageList * >(argp1);
26814 {
26815 PyThreadState* __tstate = wxPyBeginAllowThreads();
26816 delete arg1;
26817
26818 wxPyEndAllowThreads(__tstate);
26819 if (PyErr_Occurred()) SWIG_fail;
26820 }
26821 resultobj = SWIG_Py_Void();
26822 return resultobj;
26823 fail:
26824 return NULL;
26825 }
26826
26827
26828 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26829 PyObject *resultobj = 0;
26830 wxImageList *arg1 = (wxImageList *) 0 ;
26831 wxBitmap *arg2 = 0 ;
26832 wxBitmap const &arg3_defvalue = wxNullBitmap ;
26833 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
26834 int result;
26835 void *argp1 = 0 ;
26836 int res1 = 0 ;
26837 void *argp2 = 0 ;
26838 int res2 = 0 ;
26839 void *argp3 = 0 ;
26840 int res3 = 0 ;
26841 PyObject * obj0 = 0 ;
26842 PyObject * obj1 = 0 ;
26843 PyObject * obj2 = 0 ;
26844 char * kwnames[] = {
26845 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
26846 };
26847
26848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
26850 if (!SWIG_IsOK(res1)) {
26851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
26852 }
26853 arg1 = reinterpret_cast< wxImageList * >(argp1);
26854 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
26855 if (!SWIG_IsOK(res2)) {
26856 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26857 }
26858 if (!argp2) {
26859 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26860 }
26861 arg2 = reinterpret_cast< wxBitmap * >(argp2);
26862 if (obj2) {
26863 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
26864 if (!SWIG_IsOK(res3)) {
26865 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
26866 }
26867 if (!argp3) {
26868 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
26869 }
26870 arg3 = reinterpret_cast< wxBitmap * >(argp3);
26871 }
26872 {
26873 PyThreadState* __tstate = wxPyBeginAllowThreads();
26874 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
26875 wxPyEndAllowThreads(__tstate);
26876 if (PyErr_Occurred()) SWIG_fail;
26877 }
26878 resultobj = SWIG_From_int(static_cast< int >(result));
26879 return resultobj;
26880 fail:
26881 return NULL;
26882 }
26883
26884
26885 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26886 PyObject *resultobj = 0;
26887 wxImageList *arg1 = (wxImageList *) 0 ;
26888 wxBitmap *arg2 = 0 ;
26889 wxColour *arg3 = 0 ;
26890 int result;
26891 void *argp1 = 0 ;
26892 int res1 = 0 ;
26893 void *argp2 = 0 ;
26894 int res2 = 0 ;
26895 wxColour temp3 ;
26896 PyObject * obj0 = 0 ;
26897 PyObject * obj1 = 0 ;
26898 PyObject * obj2 = 0 ;
26899 char * kwnames[] = {
26900 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
26901 };
26902
26903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
26905 if (!SWIG_IsOK(res1)) {
26906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
26907 }
26908 arg1 = reinterpret_cast< wxImageList * >(argp1);
26909 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
26910 if (!SWIG_IsOK(res2)) {
26911 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26912 }
26913 if (!argp2) {
26914 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26915 }
26916 arg2 = reinterpret_cast< wxBitmap * >(argp2);
26917 {
26918 arg3 = &temp3;
26919 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26920 }
26921 {
26922 PyThreadState* __tstate = wxPyBeginAllowThreads();
26923 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
26924 wxPyEndAllowThreads(__tstate);
26925 if (PyErr_Occurred()) SWIG_fail;
26926 }
26927 resultobj = SWIG_From_int(static_cast< int >(result));
26928 return resultobj;
26929 fail:
26930 return NULL;
26931 }
26932
26933
26934 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26935 PyObject *resultobj = 0;
26936 wxImageList *arg1 = (wxImageList *) 0 ;
26937 wxIcon *arg2 = 0 ;
26938 int result;
26939 void *argp1 = 0 ;
26940 int res1 = 0 ;
26941 void *argp2 = 0 ;
26942 int res2 = 0 ;
26943 PyObject * obj0 = 0 ;
26944 PyObject * obj1 = 0 ;
26945 char * kwnames[] = {
26946 (char *) "self",(char *) "icon", NULL
26947 };
26948
26949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
26950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
26951 if (!SWIG_IsOK(res1)) {
26952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
26953 }
26954 arg1 = reinterpret_cast< wxImageList * >(argp1);
26955 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
26956 if (!SWIG_IsOK(res2)) {
26957 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26958 }
26959 if (!argp2) {
26960 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26961 }
26962 arg2 = reinterpret_cast< wxIcon * >(argp2);
26963 {
26964 PyThreadState* __tstate = wxPyBeginAllowThreads();
26965 result = (int)(arg1)->Add((wxIcon const &)*arg2);
26966 wxPyEndAllowThreads(__tstate);
26967 if (PyErr_Occurred()) SWIG_fail;
26968 }
26969 resultobj = SWIG_From_int(static_cast< int >(result));
26970 return resultobj;
26971 fail:
26972 return NULL;
26973 }
26974
26975
26976 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26977 PyObject *resultobj = 0;
26978 wxImageList *arg1 = (wxImageList *) 0 ;
26979 int arg2 ;
26980 SwigValueWrapper<wxBitmap > result;
26981 void *argp1 = 0 ;
26982 int res1 = 0 ;
26983 int val2 ;
26984 int ecode2 = 0 ;
26985 PyObject * obj0 = 0 ;
26986 PyObject * obj1 = 0 ;
26987 char * kwnames[] = {
26988 (char *) "self",(char *) "index", NULL
26989 };
26990
26991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
26992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
26993 if (!SWIG_IsOK(res1)) {
26994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
26995 }
26996 arg1 = reinterpret_cast< wxImageList * >(argp1);
26997 ecode2 = SWIG_AsVal_int(obj1, &val2);
26998 if (!SWIG_IsOK(ecode2)) {
26999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
27000 }
27001 arg2 = static_cast< int >(val2);
27002 {
27003 PyThreadState* __tstate = wxPyBeginAllowThreads();
27004 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
27005 wxPyEndAllowThreads(__tstate);
27006 if (PyErr_Occurred()) SWIG_fail;
27007 }
27008 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
27009 return resultobj;
27010 fail:
27011 return NULL;
27012 }
27013
27014
27015 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27016 PyObject *resultobj = 0;
27017 wxImageList *arg1 = (wxImageList *) 0 ;
27018 int arg2 ;
27019 wxIcon result;
27020 void *argp1 = 0 ;
27021 int res1 = 0 ;
27022 int val2 ;
27023 int ecode2 = 0 ;
27024 PyObject * obj0 = 0 ;
27025 PyObject * obj1 = 0 ;
27026 char * kwnames[] = {
27027 (char *) "self",(char *) "index", NULL
27028 };
27029
27030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
27031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27032 if (!SWIG_IsOK(res1)) {
27033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
27034 }
27035 arg1 = reinterpret_cast< wxImageList * >(argp1);
27036 ecode2 = SWIG_AsVal_int(obj1, &val2);
27037 if (!SWIG_IsOK(ecode2)) {
27038 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
27039 }
27040 arg2 = static_cast< int >(val2);
27041 {
27042 PyThreadState* __tstate = wxPyBeginAllowThreads();
27043 result = ((wxImageList const *)arg1)->GetIcon(arg2);
27044 wxPyEndAllowThreads(__tstate);
27045 if (PyErr_Occurred()) SWIG_fail;
27046 }
27047 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
27048 return resultobj;
27049 fail:
27050 return NULL;
27051 }
27052
27053
27054 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27055 PyObject *resultobj = 0;
27056 wxImageList *arg1 = (wxImageList *) 0 ;
27057 int arg2 ;
27058 wxBitmap *arg3 = 0 ;
27059 wxBitmap const &arg4_defvalue = wxNullBitmap ;
27060 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
27061 bool result;
27062 void *argp1 = 0 ;
27063 int res1 = 0 ;
27064 int val2 ;
27065 int ecode2 = 0 ;
27066 void *argp3 = 0 ;
27067 int res3 = 0 ;
27068 void *argp4 = 0 ;
27069 int res4 = 0 ;
27070 PyObject * obj0 = 0 ;
27071 PyObject * obj1 = 0 ;
27072 PyObject * obj2 = 0 ;
27073 PyObject * obj3 = 0 ;
27074 char * kwnames[] = {
27075 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
27076 };
27077
27078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27080 if (!SWIG_IsOK(res1)) {
27081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
27082 }
27083 arg1 = reinterpret_cast< wxImageList * >(argp1);
27084 ecode2 = SWIG_AsVal_int(obj1, &val2);
27085 if (!SWIG_IsOK(ecode2)) {
27086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
27087 }
27088 arg2 = static_cast< int >(val2);
27089 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
27090 if (!SWIG_IsOK(res3)) {
27091 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27092 }
27093 if (!argp3) {
27094 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27095 }
27096 arg3 = reinterpret_cast< wxBitmap * >(argp3);
27097 if (obj3) {
27098 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
27099 if (!SWIG_IsOK(res4)) {
27100 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
27101 }
27102 if (!argp4) {
27103 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
27104 }
27105 arg4 = reinterpret_cast< wxBitmap * >(argp4);
27106 }
27107 {
27108 PyThreadState* __tstate = wxPyBeginAllowThreads();
27109 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
27110 wxPyEndAllowThreads(__tstate);
27111 if (PyErr_Occurred()) SWIG_fail;
27112 }
27113 {
27114 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27115 }
27116 return resultobj;
27117 fail:
27118 return NULL;
27119 }
27120
27121
27122 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27123 PyObject *resultobj = 0;
27124 wxImageList *arg1 = (wxImageList *) 0 ;
27125 int arg2 ;
27126 wxDC *arg3 = 0 ;
27127 int arg4 ;
27128 int arg5 ;
27129 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
27130 bool arg7 = (bool) (bool)false ;
27131 bool result;
27132 void *argp1 = 0 ;
27133 int res1 = 0 ;
27134 int val2 ;
27135 int ecode2 = 0 ;
27136 void *argp3 = 0 ;
27137 int res3 = 0 ;
27138 int val4 ;
27139 int ecode4 = 0 ;
27140 int val5 ;
27141 int ecode5 = 0 ;
27142 int val6 ;
27143 int ecode6 = 0 ;
27144 bool val7 ;
27145 int ecode7 = 0 ;
27146 PyObject * obj0 = 0 ;
27147 PyObject * obj1 = 0 ;
27148 PyObject * obj2 = 0 ;
27149 PyObject * obj3 = 0 ;
27150 PyObject * obj4 = 0 ;
27151 PyObject * obj5 = 0 ;
27152 PyObject * obj6 = 0 ;
27153 char * kwnames[] = {
27154 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
27155 };
27156
27157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27159 if (!SWIG_IsOK(res1)) {
27160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
27161 }
27162 arg1 = reinterpret_cast< wxImageList * >(argp1);
27163 ecode2 = SWIG_AsVal_int(obj1, &val2);
27164 if (!SWIG_IsOK(ecode2)) {
27165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
27166 }
27167 arg2 = static_cast< int >(val2);
27168 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27169 if (!SWIG_IsOK(res3)) {
27170 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
27171 }
27172 if (!argp3) {
27173 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
27174 }
27175 arg3 = reinterpret_cast< wxDC * >(argp3);
27176 ecode4 = SWIG_AsVal_int(obj3, &val4);
27177 if (!SWIG_IsOK(ecode4)) {
27178 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
27179 }
27180 arg4 = static_cast< int >(val4);
27181 ecode5 = SWIG_AsVal_int(obj4, &val5);
27182 if (!SWIG_IsOK(ecode5)) {
27183 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
27184 }
27185 arg5 = static_cast< int >(val5);
27186 if (obj5) {
27187 ecode6 = SWIG_AsVal_int(obj5, &val6);
27188 if (!SWIG_IsOK(ecode6)) {
27189 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
27190 }
27191 arg6 = static_cast< int >(val6);
27192 }
27193 if (obj6) {
27194 ecode7 = SWIG_AsVal_bool(obj6, &val7);
27195 if (!SWIG_IsOK(ecode7)) {
27196 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
27197 }
27198 arg7 = static_cast< bool >(val7);
27199 }
27200 {
27201 PyThreadState* __tstate = wxPyBeginAllowThreads();
27202 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
27203 wxPyEndAllowThreads(__tstate);
27204 if (PyErr_Occurred()) SWIG_fail;
27205 }
27206 {
27207 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27208 }
27209 return resultobj;
27210 fail:
27211 return NULL;
27212 }
27213
27214
27215 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27216 PyObject *resultobj = 0;
27217 wxImageList *arg1 = (wxImageList *) 0 ;
27218 int result;
27219 void *argp1 = 0 ;
27220 int res1 = 0 ;
27221 PyObject *swig_obj[1] ;
27222
27223 if (!args) SWIG_fail;
27224 swig_obj[0] = args;
27225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27226 if (!SWIG_IsOK(res1)) {
27227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
27228 }
27229 arg1 = reinterpret_cast< wxImageList * >(argp1);
27230 {
27231 PyThreadState* __tstate = wxPyBeginAllowThreads();
27232 result = (int)(arg1)->GetImageCount();
27233 wxPyEndAllowThreads(__tstate);
27234 if (PyErr_Occurred()) SWIG_fail;
27235 }
27236 resultobj = SWIG_From_int(static_cast< int >(result));
27237 return resultobj;
27238 fail:
27239 return NULL;
27240 }
27241
27242
27243 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27244 PyObject *resultobj = 0;
27245 wxImageList *arg1 = (wxImageList *) 0 ;
27246 int arg2 ;
27247 bool result;
27248 void *argp1 = 0 ;
27249 int res1 = 0 ;
27250 int val2 ;
27251 int ecode2 = 0 ;
27252 PyObject * obj0 = 0 ;
27253 PyObject * obj1 = 0 ;
27254 char * kwnames[] = {
27255 (char *) "self",(char *) "index", NULL
27256 };
27257
27258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
27259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27260 if (!SWIG_IsOK(res1)) {
27261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
27262 }
27263 arg1 = reinterpret_cast< wxImageList * >(argp1);
27264 ecode2 = SWIG_AsVal_int(obj1, &val2);
27265 if (!SWIG_IsOK(ecode2)) {
27266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
27267 }
27268 arg2 = static_cast< int >(val2);
27269 {
27270 PyThreadState* __tstate = wxPyBeginAllowThreads();
27271 result = (bool)(arg1)->Remove(arg2);
27272 wxPyEndAllowThreads(__tstate);
27273 if (PyErr_Occurred()) SWIG_fail;
27274 }
27275 {
27276 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27277 }
27278 return resultobj;
27279 fail:
27280 return NULL;
27281 }
27282
27283
27284 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27285 PyObject *resultobj = 0;
27286 wxImageList *arg1 = (wxImageList *) 0 ;
27287 bool result;
27288 void *argp1 = 0 ;
27289 int res1 = 0 ;
27290 PyObject *swig_obj[1] ;
27291
27292 if (!args) SWIG_fail;
27293 swig_obj[0] = args;
27294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27295 if (!SWIG_IsOK(res1)) {
27296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
27297 }
27298 arg1 = reinterpret_cast< wxImageList * >(argp1);
27299 {
27300 PyThreadState* __tstate = wxPyBeginAllowThreads();
27301 result = (bool)(arg1)->RemoveAll();
27302 wxPyEndAllowThreads(__tstate);
27303 if (PyErr_Occurred()) SWIG_fail;
27304 }
27305 {
27306 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27307 }
27308 return resultobj;
27309 fail:
27310 return NULL;
27311 }
27312
27313
27314 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27315 PyObject *resultobj = 0;
27316 wxImageList *arg1 = (wxImageList *) 0 ;
27317 int arg2 ;
27318 int *arg3 = 0 ;
27319 int *arg4 = 0 ;
27320 void *argp1 = 0 ;
27321 int res1 = 0 ;
27322 int val2 ;
27323 int ecode2 = 0 ;
27324 int temp3 ;
27325 int res3 = SWIG_TMPOBJ ;
27326 int temp4 ;
27327 int res4 = SWIG_TMPOBJ ;
27328 PyObject * obj0 = 0 ;
27329 PyObject * obj1 = 0 ;
27330 char * kwnames[] = {
27331 (char *) "self",(char *) "index", NULL
27332 };
27333
27334 arg3 = &temp3;
27335 arg4 = &temp4;
27336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
27337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27338 if (!SWIG_IsOK(res1)) {
27339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
27340 }
27341 arg1 = reinterpret_cast< wxImageList * >(argp1);
27342 ecode2 = SWIG_AsVal_int(obj1, &val2);
27343 if (!SWIG_IsOK(ecode2)) {
27344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
27345 }
27346 arg2 = static_cast< int >(val2);
27347 {
27348 PyThreadState* __tstate = wxPyBeginAllowThreads();
27349 (arg1)->GetSize(arg2,*arg3,*arg4);
27350 wxPyEndAllowThreads(__tstate);
27351 if (PyErr_Occurred()) SWIG_fail;
27352 }
27353 resultobj = SWIG_Py_Void();
27354 if (SWIG_IsTmpObj(res3)) {
27355 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
27356 } else {
27357 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27358 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
27359 }
27360 if (SWIG_IsTmpObj(res4)) {
27361 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
27362 } else {
27363 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27364 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
27365 }
27366 return resultobj;
27367 fail:
27368 return NULL;
27369 }
27370
27371
27372 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27373 PyObject *obj;
27374 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27375 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
27376 return SWIG_Py_Void();
27377 }
27378
27379 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27380 return SWIG_Python_InitShadowInstance(args);
27381 }
27382
27383 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27384 PyObject *resultobj = 0;
27385 wxStockGDI *result = 0 ;
27386
27387 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
27388 {
27389 PyThreadState* __tstate = wxPyBeginAllowThreads();
27390 result = (wxStockGDI *)new wxStockGDI();
27391 wxPyEndAllowThreads(__tstate);
27392 if (PyErr_Occurred()) SWIG_fail;
27393 }
27394 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
27395 return resultobj;
27396 fail:
27397 return NULL;
27398 }
27399
27400
27401 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27402 PyObject *resultobj = 0;
27403 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
27404 void *argp1 = 0 ;
27405 int res1 = 0 ;
27406 PyObject *swig_obj[1] ;
27407
27408 if (!args) SWIG_fail;
27409 swig_obj[0] = args;
27410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
27411 if (!SWIG_IsOK(res1)) {
27412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
27413 }
27414 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
27415 {
27416 PyThreadState* __tstate = wxPyBeginAllowThreads();
27417 delete arg1;
27418
27419 wxPyEndAllowThreads(__tstate);
27420 if (PyErr_Occurred()) SWIG_fail;
27421 }
27422 resultobj = SWIG_Py_Void();
27423 return resultobj;
27424 fail:
27425 return NULL;
27426 }
27427
27428
27429 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27430 PyObject *resultobj = 0;
27431
27432 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
27433 {
27434 PyThreadState* __tstate = wxPyBeginAllowThreads();
27435 wxStockGDI::DeleteAll();
27436 wxPyEndAllowThreads(__tstate);
27437 if (PyErr_Occurred()) SWIG_fail;
27438 }
27439 resultobj = SWIG_Py_Void();
27440 return resultobj;
27441 fail:
27442 return NULL;
27443 }
27444
27445
27446 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27447 PyObject *resultobj = 0;
27448 wxStockGDI *result = 0 ;
27449
27450 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
27451 {
27452 PyThreadState* __tstate = wxPyBeginAllowThreads();
27453 {
27454 wxStockGDI &_result_ref = wxStockGDI::instance();
27455 result = (wxStockGDI *) &_result_ref;
27456 }
27457 wxPyEndAllowThreads(__tstate);
27458 if (PyErr_Occurred()) SWIG_fail;
27459 }
27460 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
27461 return resultobj;
27462 fail:
27463 return NULL;
27464 }
27465
27466
27467 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27468 PyObject *resultobj = 0;
27469 wxStockGDI::Item arg1 ;
27470 wxBrush *result = 0 ;
27471 int val1 ;
27472 int ecode1 = 0 ;
27473 PyObject * obj0 = 0 ;
27474 char * kwnames[] = {
27475 (char *) "item", NULL
27476 };
27477
27478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
27479 ecode1 = SWIG_AsVal_int(obj0, &val1);
27480 if (!SWIG_IsOK(ecode1)) {
27481 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27482 }
27483 arg1 = static_cast< wxStockGDI::Item >(val1);
27484 {
27485 PyThreadState* __tstate = wxPyBeginAllowThreads();
27486 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
27487 wxPyEndAllowThreads(__tstate);
27488 if (PyErr_Occurred()) SWIG_fail;
27489 }
27490 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
27491 return resultobj;
27492 fail:
27493 return NULL;
27494 }
27495
27496
27497 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27498 PyObject *resultobj = 0;
27499 wxStockGDI::Item arg1 ;
27500 wxColour *result = 0 ;
27501 int val1 ;
27502 int ecode1 = 0 ;
27503 PyObject * obj0 = 0 ;
27504 char * kwnames[] = {
27505 (char *) "item", NULL
27506 };
27507
27508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
27509 ecode1 = SWIG_AsVal_int(obj0, &val1);
27510 if (!SWIG_IsOK(ecode1)) {
27511 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27512 }
27513 arg1 = static_cast< wxStockGDI::Item >(val1);
27514 {
27515 PyThreadState* __tstate = wxPyBeginAllowThreads();
27516 result = (wxColour *)wxStockGDI::GetColour(arg1);
27517 wxPyEndAllowThreads(__tstate);
27518 if (PyErr_Occurred()) SWIG_fail;
27519 }
27520 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
27521 return resultobj;
27522 fail:
27523 return NULL;
27524 }
27525
27526
27527 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27528 PyObject *resultobj = 0;
27529 wxStockGDI::Item arg1 ;
27530 wxCursor *result = 0 ;
27531 int val1 ;
27532 int ecode1 = 0 ;
27533 PyObject * obj0 = 0 ;
27534 char * kwnames[] = {
27535 (char *) "item", NULL
27536 };
27537
27538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
27539 ecode1 = SWIG_AsVal_int(obj0, &val1);
27540 if (!SWIG_IsOK(ecode1)) {
27541 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27542 }
27543 arg1 = static_cast< wxStockGDI::Item >(val1);
27544 {
27545 PyThreadState* __tstate = wxPyBeginAllowThreads();
27546 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
27547 wxPyEndAllowThreads(__tstate);
27548 if (PyErr_Occurred()) SWIG_fail;
27549 }
27550 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
27551 return resultobj;
27552 fail:
27553 return NULL;
27554 }
27555
27556
27557 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27558 PyObject *resultobj = 0;
27559 wxStockGDI::Item arg1 ;
27560 wxPen *result = 0 ;
27561 int val1 ;
27562 int ecode1 = 0 ;
27563 PyObject * obj0 = 0 ;
27564 char * kwnames[] = {
27565 (char *) "item", NULL
27566 };
27567
27568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
27569 ecode1 = SWIG_AsVal_int(obj0, &val1);
27570 if (!SWIG_IsOK(ecode1)) {
27571 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27572 }
27573 arg1 = static_cast< wxStockGDI::Item >(val1);
27574 {
27575 PyThreadState* __tstate = wxPyBeginAllowThreads();
27576 result = (wxPen *)wxStockGDI::GetPen(arg1);
27577 wxPyEndAllowThreads(__tstate);
27578 if (PyErr_Occurred()) SWIG_fail;
27579 }
27580 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
27581 return resultobj;
27582 fail:
27583 return NULL;
27584 }
27585
27586
27587 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27588 PyObject *resultobj = 0;
27589 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
27590 wxStockGDI::Item arg2 ;
27591 wxFont *result = 0 ;
27592 void *argp1 = 0 ;
27593 int res1 = 0 ;
27594 int val2 ;
27595 int ecode2 = 0 ;
27596 PyObject * obj0 = 0 ;
27597 PyObject * obj1 = 0 ;
27598 char * kwnames[] = {
27599 (char *) "self",(char *) "item", NULL
27600 };
27601
27602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
27604 if (!SWIG_IsOK(res1)) {
27605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
27606 }
27607 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
27608 ecode2 = SWIG_AsVal_int(obj1, &val2);
27609 if (!SWIG_IsOK(ecode2)) {
27610 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
27611 }
27612 arg2 = static_cast< wxStockGDI::Item >(val2);
27613 {
27614 PyThreadState* __tstate = wxPyBeginAllowThreads();
27615 result = (wxFont *)(arg1)->GetFont(arg2);
27616 wxPyEndAllowThreads(__tstate);
27617 if (PyErr_Occurred()) SWIG_fail;
27618 }
27619 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
27620 return resultobj;
27621 fail:
27622 return NULL;
27623 }
27624
27625
27626 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27627 PyObject *obj;
27628 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27629 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
27630 return SWIG_Py_Void();
27631 }
27632
27633 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27634 return SWIG_Python_InitShadowInstance(args);
27635 }
27636
27637 SWIGINTERN int NullBitmap_set(PyObject *) {
27638 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
27639 return 1;
27640 }
27641
27642
27643 SWIGINTERN PyObject *NullBitmap_get(void) {
27644 PyObject *pyobj = 0;
27645
27646 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
27647 return pyobj;
27648 }
27649
27650
27651 SWIGINTERN int NullIcon_set(PyObject *) {
27652 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
27653 return 1;
27654 }
27655
27656
27657 SWIGINTERN PyObject *NullIcon_get(void) {
27658 PyObject *pyobj = 0;
27659
27660 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
27661 return pyobj;
27662 }
27663
27664
27665 SWIGINTERN int NullCursor_set(PyObject *) {
27666 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
27667 return 1;
27668 }
27669
27670
27671 SWIGINTERN PyObject *NullCursor_get(void) {
27672 PyObject *pyobj = 0;
27673
27674 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
27675 return pyobj;
27676 }
27677
27678
27679 SWIGINTERN int NullPen_set(PyObject *) {
27680 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
27681 return 1;
27682 }
27683
27684
27685 SWIGINTERN PyObject *NullPen_get(void) {
27686 PyObject *pyobj = 0;
27687
27688 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
27689 return pyobj;
27690 }
27691
27692
27693 SWIGINTERN int NullBrush_set(PyObject *) {
27694 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
27695 return 1;
27696 }
27697
27698
27699 SWIGINTERN PyObject *NullBrush_get(void) {
27700 PyObject *pyobj = 0;
27701
27702 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
27703 return pyobj;
27704 }
27705
27706
27707 SWIGINTERN int NullPalette_set(PyObject *) {
27708 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
27709 return 1;
27710 }
27711
27712
27713 SWIGINTERN PyObject *NullPalette_get(void) {
27714 PyObject *pyobj = 0;
27715
27716 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
27717 return pyobj;
27718 }
27719
27720
27721 SWIGINTERN int NullFont_set(PyObject *) {
27722 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
27723 return 1;
27724 }
27725
27726
27727 SWIGINTERN PyObject *NullFont_get(void) {
27728 PyObject *pyobj = 0;
27729
27730 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
27731 return pyobj;
27732 }
27733
27734
27735 SWIGINTERN int NullColour_set(PyObject *) {
27736 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
27737 return 1;
27738 }
27739
27740
27741 SWIGINTERN PyObject *NullColour_get(void) {
27742 PyObject *pyobj = 0;
27743
27744 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
27745 return pyobj;
27746 }
27747
27748
27749 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27750 PyObject *resultobj = 0;
27751 wxGDIObjListBase *result = 0 ;
27752
27753 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
27754 {
27755 PyThreadState* __tstate = wxPyBeginAllowThreads();
27756 result = (wxGDIObjListBase *)new wxGDIObjListBase();
27757 wxPyEndAllowThreads(__tstate);
27758 if (PyErr_Occurred()) SWIG_fail;
27759 }
27760 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
27761 return resultobj;
27762 fail:
27763 return NULL;
27764 }
27765
27766
27767 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27768 PyObject *resultobj = 0;
27769 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
27770 void *argp1 = 0 ;
27771 int res1 = 0 ;
27772 PyObject *swig_obj[1] ;
27773
27774 if (!args) SWIG_fail;
27775 swig_obj[0] = args;
27776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
27777 if (!SWIG_IsOK(res1)) {
27778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
27779 }
27780 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
27781 {
27782 PyThreadState* __tstate = wxPyBeginAllowThreads();
27783 delete arg1;
27784
27785 wxPyEndAllowThreads(__tstate);
27786 if (PyErr_Occurred()) SWIG_fail;
27787 }
27788 resultobj = SWIG_Py_Void();
27789 return resultobj;
27790 fail:
27791 return NULL;
27792 }
27793
27794
27795 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27796 PyObject *obj;
27797 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27798 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
27799 return SWIG_Py_Void();
27800 }
27801
27802 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27803 return SWIG_Python_InitShadowInstance(args);
27804 }
27805
27806 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27807 PyObject *resultobj = 0;
27808 wxPenList *arg1 = (wxPenList *) 0 ;
27809 wxColour *arg2 = 0 ;
27810 int arg3 ;
27811 int arg4 ;
27812 wxPen *result = 0 ;
27813 void *argp1 = 0 ;
27814 int res1 = 0 ;
27815 wxColour temp2 ;
27816 int val3 ;
27817 int ecode3 = 0 ;
27818 int val4 ;
27819 int ecode4 = 0 ;
27820 PyObject * obj0 = 0 ;
27821 PyObject * obj1 = 0 ;
27822 PyObject * obj2 = 0 ;
27823 PyObject * obj3 = 0 ;
27824 char * kwnames[] = {
27825 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
27826 };
27827
27828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
27830 if (!SWIG_IsOK(res1)) {
27831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
27832 }
27833 arg1 = reinterpret_cast< wxPenList * >(argp1);
27834 {
27835 arg2 = &temp2;
27836 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27837 }
27838 ecode3 = SWIG_AsVal_int(obj2, &val3);
27839 if (!SWIG_IsOK(ecode3)) {
27840 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
27841 }
27842 arg3 = static_cast< int >(val3);
27843 ecode4 = SWIG_AsVal_int(obj3, &val4);
27844 if (!SWIG_IsOK(ecode4)) {
27845 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
27846 }
27847 arg4 = static_cast< int >(val4);
27848 {
27849 PyThreadState* __tstate = wxPyBeginAllowThreads();
27850 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
27851 wxPyEndAllowThreads(__tstate);
27852 if (PyErr_Occurred()) SWIG_fail;
27853 }
27854 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
27855 return resultobj;
27856 fail:
27857 return NULL;
27858 }
27859
27860
27861 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27862 PyObject *resultobj = 0;
27863 wxPenList *arg1 = (wxPenList *) 0 ;
27864 wxPen *arg2 = (wxPen *) 0 ;
27865 void *argp1 = 0 ;
27866 int res1 = 0 ;
27867 void *argp2 = 0 ;
27868 int res2 = 0 ;
27869 PyObject * obj0 = 0 ;
27870 PyObject * obj1 = 0 ;
27871 char * kwnames[] = {
27872 (char *) "self",(char *) "pen", NULL
27873 };
27874
27875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
27876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
27877 if (!SWIG_IsOK(res1)) {
27878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
27879 }
27880 arg1 = reinterpret_cast< wxPenList * >(argp1);
27881 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
27882 if (!SWIG_IsOK(res2)) {
27883 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
27884 }
27885 arg2 = reinterpret_cast< wxPen * >(argp2);
27886 {
27887 PyThreadState* __tstate = wxPyBeginAllowThreads();
27888 (arg1)->AddPen(arg2);
27889 wxPyEndAllowThreads(__tstate);
27890 if (PyErr_Occurred()) SWIG_fail;
27891 }
27892 resultobj = SWIG_Py_Void();
27893 return resultobj;
27894 fail:
27895 return NULL;
27896 }
27897
27898
27899 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27900 PyObject *resultobj = 0;
27901 wxPenList *arg1 = (wxPenList *) 0 ;
27902 wxPen *arg2 = (wxPen *) 0 ;
27903 void *argp1 = 0 ;
27904 int res1 = 0 ;
27905 void *argp2 = 0 ;
27906 int res2 = 0 ;
27907 PyObject * obj0 = 0 ;
27908 PyObject * obj1 = 0 ;
27909 char * kwnames[] = {
27910 (char *) "self",(char *) "pen", NULL
27911 };
27912
27913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
27914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
27915 if (!SWIG_IsOK(res1)) {
27916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
27917 }
27918 arg1 = reinterpret_cast< wxPenList * >(argp1);
27919 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
27920 if (!SWIG_IsOK(res2)) {
27921 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
27922 }
27923 arg2 = reinterpret_cast< wxPen * >(argp2);
27924 {
27925 PyThreadState* __tstate = wxPyBeginAllowThreads();
27926 (arg1)->RemovePen(arg2);
27927 wxPyEndAllowThreads(__tstate);
27928 if (PyErr_Occurred()) SWIG_fail;
27929 }
27930 resultobj = SWIG_Py_Void();
27931 return resultobj;
27932 fail:
27933 return NULL;
27934 }
27935
27936
27937 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27938 PyObject *obj;
27939 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27940 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
27941 return SWIG_Py_Void();
27942 }
27943
27944 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27945 PyObject *resultobj = 0;
27946 wxBrushList *arg1 = (wxBrushList *) 0 ;
27947 wxColour *arg2 = 0 ;
27948 int arg3 = (int) wxSOLID ;
27949 wxBrush *result = 0 ;
27950 void *argp1 = 0 ;
27951 int res1 = 0 ;
27952 wxColour temp2 ;
27953 int val3 ;
27954 int ecode3 = 0 ;
27955 PyObject * obj0 = 0 ;
27956 PyObject * obj1 = 0 ;
27957 PyObject * obj2 = 0 ;
27958 char * kwnames[] = {
27959 (char *) "self",(char *) "colour",(char *) "style", NULL
27960 };
27961
27962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
27964 if (!SWIG_IsOK(res1)) {
27965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
27966 }
27967 arg1 = reinterpret_cast< wxBrushList * >(argp1);
27968 {
27969 arg2 = &temp2;
27970 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27971 }
27972 if (obj2) {
27973 ecode3 = SWIG_AsVal_int(obj2, &val3);
27974 if (!SWIG_IsOK(ecode3)) {
27975 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
27976 }
27977 arg3 = static_cast< int >(val3);
27978 }
27979 {
27980 PyThreadState* __tstate = wxPyBeginAllowThreads();
27981 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
27982 wxPyEndAllowThreads(__tstate);
27983 if (PyErr_Occurred()) SWIG_fail;
27984 }
27985 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
27986 return resultobj;
27987 fail:
27988 return NULL;
27989 }
27990
27991
27992 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27993 PyObject *resultobj = 0;
27994 wxBrushList *arg1 = (wxBrushList *) 0 ;
27995 wxBrush *arg2 = (wxBrush *) 0 ;
27996 void *argp1 = 0 ;
27997 int res1 = 0 ;
27998 void *argp2 = 0 ;
27999 int res2 = 0 ;
28000 PyObject * obj0 = 0 ;
28001 PyObject * obj1 = 0 ;
28002 char * kwnames[] = {
28003 (char *) "self",(char *) "brush", NULL
28004 };
28005
28006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28008 if (!SWIG_IsOK(res1)) {
28009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28010 }
28011 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28012 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
28013 if (!SWIG_IsOK(res2)) {
28014 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
28015 }
28016 arg2 = reinterpret_cast< wxBrush * >(argp2);
28017 {
28018 PyThreadState* __tstate = wxPyBeginAllowThreads();
28019 (arg1)->AddBrush(arg2);
28020 wxPyEndAllowThreads(__tstate);
28021 if (PyErr_Occurred()) SWIG_fail;
28022 }
28023 resultobj = SWIG_Py_Void();
28024 return resultobj;
28025 fail:
28026 return NULL;
28027 }
28028
28029
28030 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28031 PyObject *resultobj = 0;
28032 wxBrushList *arg1 = (wxBrushList *) 0 ;
28033 wxBrush *arg2 = (wxBrush *) 0 ;
28034 void *argp1 = 0 ;
28035 int res1 = 0 ;
28036 void *argp2 = 0 ;
28037 int res2 = 0 ;
28038 PyObject * obj0 = 0 ;
28039 PyObject * obj1 = 0 ;
28040 char * kwnames[] = {
28041 (char *) "self",(char *) "brush", NULL
28042 };
28043
28044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28046 if (!SWIG_IsOK(res1)) {
28047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28048 }
28049 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28050 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
28051 if (!SWIG_IsOK(res2)) {
28052 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
28053 }
28054 arg2 = reinterpret_cast< wxBrush * >(argp2);
28055 {
28056 PyThreadState* __tstate = wxPyBeginAllowThreads();
28057 (arg1)->RemoveBrush(arg2);
28058 wxPyEndAllowThreads(__tstate);
28059 if (PyErr_Occurred()) SWIG_fail;
28060 }
28061 resultobj = SWIG_Py_Void();
28062 return resultobj;
28063 fail:
28064 return NULL;
28065 }
28066
28067
28068 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28069 PyObject *obj;
28070 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28071 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
28072 return SWIG_Py_Void();
28073 }
28074
28075 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28076 PyObject *resultobj = 0;
28077 wxFontList *arg1 = (wxFontList *) 0 ;
28078 int arg2 ;
28079 int arg3 ;
28080 int arg4 ;
28081 int arg5 ;
28082 bool arg6 = (bool) false ;
28083 wxString const &arg7_defvalue = wxPyEmptyString ;
28084 wxString *arg7 = (wxString *) &arg7_defvalue ;
28085 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
28086 wxFont *result = 0 ;
28087 void *argp1 = 0 ;
28088 int res1 = 0 ;
28089 int val2 ;
28090 int ecode2 = 0 ;
28091 int val3 ;
28092 int ecode3 = 0 ;
28093 int val4 ;
28094 int ecode4 = 0 ;
28095 int val5 ;
28096 int ecode5 = 0 ;
28097 bool val6 ;
28098 int ecode6 = 0 ;
28099 bool temp7 = false ;
28100 int val8 ;
28101 int ecode8 = 0 ;
28102 PyObject * obj0 = 0 ;
28103 PyObject * obj1 = 0 ;
28104 PyObject * obj2 = 0 ;
28105 PyObject * obj3 = 0 ;
28106 PyObject * obj4 = 0 ;
28107 PyObject * obj5 = 0 ;
28108 PyObject * obj6 = 0 ;
28109 PyObject * obj7 = 0 ;
28110 char * kwnames[] = {
28111 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
28112 };
28113
28114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
28116 if (!SWIG_IsOK(res1)) {
28117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
28118 }
28119 arg1 = reinterpret_cast< wxFontList * >(argp1);
28120 ecode2 = SWIG_AsVal_int(obj1, &val2);
28121 if (!SWIG_IsOK(ecode2)) {
28122 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
28123 }
28124 arg2 = static_cast< int >(val2);
28125 ecode3 = SWIG_AsVal_int(obj2, &val3);
28126 if (!SWIG_IsOK(ecode3)) {
28127 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
28128 }
28129 arg3 = static_cast< int >(val3);
28130 ecode4 = SWIG_AsVal_int(obj3, &val4);
28131 if (!SWIG_IsOK(ecode4)) {
28132 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
28133 }
28134 arg4 = static_cast< int >(val4);
28135 ecode5 = SWIG_AsVal_int(obj4, &val5);
28136 if (!SWIG_IsOK(ecode5)) {
28137 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
28138 }
28139 arg5 = static_cast< int >(val5);
28140 if (obj5) {
28141 ecode6 = SWIG_AsVal_bool(obj5, &val6);
28142 if (!SWIG_IsOK(ecode6)) {
28143 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
28144 }
28145 arg6 = static_cast< bool >(val6);
28146 }
28147 if (obj6) {
28148 {
28149 arg7 = wxString_in_helper(obj6);
28150 if (arg7 == NULL) SWIG_fail;
28151 temp7 = true;
28152 }
28153 }
28154 if (obj7) {
28155 ecode8 = SWIG_AsVal_int(obj7, &val8);
28156 if (!SWIG_IsOK(ecode8)) {
28157 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
28158 }
28159 arg8 = static_cast< wxFontEncoding >(val8);
28160 }
28161 {
28162 PyThreadState* __tstate = wxPyBeginAllowThreads();
28163 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
28164 wxPyEndAllowThreads(__tstate);
28165 if (PyErr_Occurred()) SWIG_fail;
28166 }
28167 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
28168 {
28169 if (temp7)
28170 delete arg7;
28171 }
28172 return resultobj;
28173 fail:
28174 {
28175 if (temp7)
28176 delete arg7;
28177 }
28178 return NULL;
28179 }
28180
28181
28182 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28183 PyObject *resultobj = 0;
28184 wxFontList *arg1 = (wxFontList *) 0 ;
28185 wxFont *arg2 = (wxFont *) 0 ;
28186 void *argp1 = 0 ;
28187 int res1 = 0 ;
28188 void *argp2 = 0 ;
28189 int res2 = 0 ;
28190 PyObject * obj0 = 0 ;
28191 PyObject * obj1 = 0 ;
28192 char * kwnames[] = {
28193 (char *) "self",(char *) "font", NULL
28194 };
28195
28196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
28197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
28198 if (!SWIG_IsOK(res1)) {
28199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
28200 }
28201 arg1 = reinterpret_cast< wxFontList * >(argp1);
28202 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
28203 if (!SWIG_IsOK(res2)) {
28204 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
28205 }
28206 arg2 = reinterpret_cast< wxFont * >(argp2);
28207 {
28208 PyThreadState* __tstate = wxPyBeginAllowThreads();
28209 (arg1)->AddFont(arg2);
28210 wxPyEndAllowThreads(__tstate);
28211 if (PyErr_Occurred()) SWIG_fail;
28212 }
28213 resultobj = SWIG_Py_Void();
28214 return resultobj;
28215 fail:
28216 return NULL;
28217 }
28218
28219
28220 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28221 PyObject *resultobj = 0;
28222 wxFontList *arg1 = (wxFontList *) 0 ;
28223 wxFont *arg2 = (wxFont *) 0 ;
28224 void *argp1 = 0 ;
28225 int res1 = 0 ;
28226 void *argp2 = 0 ;
28227 int res2 = 0 ;
28228 PyObject * obj0 = 0 ;
28229 PyObject * obj1 = 0 ;
28230 char * kwnames[] = {
28231 (char *) "self",(char *) "font", NULL
28232 };
28233
28234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
28235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
28236 if (!SWIG_IsOK(res1)) {
28237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
28238 }
28239 arg1 = reinterpret_cast< wxFontList * >(argp1);
28240 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
28241 if (!SWIG_IsOK(res2)) {
28242 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
28243 }
28244 arg2 = reinterpret_cast< wxFont * >(argp2);
28245 {
28246 PyThreadState* __tstate = wxPyBeginAllowThreads();
28247 (arg1)->RemoveFont(arg2);
28248 wxPyEndAllowThreads(__tstate);
28249 if (PyErr_Occurred()) SWIG_fail;
28250 }
28251 resultobj = SWIG_Py_Void();
28252 return resultobj;
28253 fail:
28254 return NULL;
28255 }
28256
28257
28258 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28259 PyObject *obj;
28260 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28261 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
28262 return SWIG_Py_Void();
28263 }
28264
28265 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28266 PyObject *resultobj = 0;
28267 wxColourDatabase *result = 0 ;
28268
28269 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
28270 {
28271 if (!wxPyCheckForApp()) SWIG_fail;
28272 PyThreadState* __tstate = wxPyBeginAllowThreads();
28273 result = (wxColourDatabase *)new wxColourDatabase();
28274 wxPyEndAllowThreads(__tstate);
28275 if (PyErr_Occurred()) SWIG_fail;
28276 }
28277 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
28278 return resultobj;
28279 fail:
28280 return NULL;
28281 }
28282
28283
28284 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28285 PyObject *resultobj = 0;
28286 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28287 void *argp1 = 0 ;
28288 int res1 = 0 ;
28289 PyObject *swig_obj[1] ;
28290
28291 if (!args) SWIG_fail;
28292 swig_obj[0] = args;
28293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
28294 if (!SWIG_IsOK(res1)) {
28295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28296 }
28297 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28298 {
28299 PyThreadState* __tstate = wxPyBeginAllowThreads();
28300 delete arg1;
28301
28302 wxPyEndAllowThreads(__tstate);
28303 if (PyErr_Occurred()) SWIG_fail;
28304 }
28305 resultobj = SWIG_Py_Void();
28306 return resultobj;
28307 fail:
28308 return NULL;
28309 }
28310
28311
28312 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28313 PyObject *resultobj = 0;
28314 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28315 wxString *arg2 = 0 ;
28316 wxColour result;
28317 void *argp1 = 0 ;
28318 int res1 = 0 ;
28319 bool temp2 = false ;
28320 PyObject * obj0 = 0 ;
28321 PyObject * obj1 = 0 ;
28322 char * kwnames[] = {
28323 (char *) "self",(char *) "name", NULL
28324 };
28325
28326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
28327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28328 if (!SWIG_IsOK(res1)) {
28329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
28330 }
28331 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28332 {
28333 arg2 = wxString_in_helper(obj1);
28334 if (arg2 == NULL) SWIG_fail;
28335 temp2 = true;
28336 }
28337 {
28338 PyThreadState* __tstate = wxPyBeginAllowThreads();
28339 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
28340 wxPyEndAllowThreads(__tstate);
28341 if (PyErr_Occurred()) SWIG_fail;
28342 }
28343 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28344 {
28345 if (temp2)
28346 delete arg2;
28347 }
28348 return resultobj;
28349 fail:
28350 {
28351 if (temp2)
28352 delete arg2;
28353 }
28354 return NULL;
28355 }
28356
28357
28358 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28359 PyObject *resultobj = 0;
28360 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28361 wxColour *arg2 = 0 ;
28362 wxString result;
28363 void *argp1 = 0 ;
28364 int res1 = 0 ;
28365 wxColour temp2 ;
28366 PyObject * obj0 = 0 ;
28367 PyObject * obj1 = 0 ;
28368 char * kwnames[] = {
28369 (char *) "self",(char *) "colour", NULL
28370 };
28371
28372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
28373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28374 if (!SWIG_IsOK(res1)) {
28375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
28376 }
28377 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28378 {
28379 arg2 = &temp2;
28380 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28381 }
28382 {
28383 PyThreadState* __tstate = wxPyBeginAllowThreads();
28384 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
28385 wxPyEndAllowThreads(__tstate);
28386 if (PyErr_Occurred()) SWIG_fail;
28387 }
28388 {
28389 #if wxUSE_UNICODE
28390 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28391 #else
28392 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28393 #endif
28394 }
28395 return resultobj;
28396 fail:
28397 return NULL;
28398 }
28399
28400
28401 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28402 PyObject *resultobj = 0;
28403 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28404 wxString *arg2 = 0 ;
28405 wxColour *arg3 = 0 ;
28406 void *argp1 = 0 ;
28407 int res1 = 0 ;
28408 bool temp2 = false ;
28409 wxColour temp3 ;
28410 PyObject * obj0 = 0 ;
28411 PyObject * obj1 = 0 ;
28412 PyObject * obj2 = 0 ;
28413 char * kwnames[] = {
28414 (char *) "self",(char *) "name",(char *) "colour", NULL
28415 };
28416
28417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28419 if (!SWIG_IsOK(res1)) {
28420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28421 }
28422 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28423 {
28424 arg2 = wxString_in_helper(obj1);
28425 if (arg2 == NULL) SWIG_fail;
28426 temp2 = true;
28427 }
28428 {
28429 arg3 = &temp3;
28430 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28431 }
28432 {
28433 PyThreadState* __tstate = wxPyBeginAllowThreads();
28434 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
28435 wxPyEndAllowThreads(__tstate);
28436 if (PyErr_Occurred()) SWIG_fail;
28437 }
28438 resultobj = SWIG_Py_Void();
28439 {
28440 if (temp2)
28441 delete arg2;
28442 }
28443 return resultobj;
28444 fail:
28445 {
28446 if (temp2)
28447 delete arg2;
28448 }
28449 return NULL;
28450 }
28451
28452
28453 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28454 PyObject *resultobj = 0;
28455 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28456 wxString *arg2 = 0 ;
28457 int arg3 ;
28458 int arg4 ;
28459 int arg5 ;
28460 void *argp1 = 0 ;
28461 int res1 = 0 ;
28462 bool temp2 = false ;
28463 int val3 ;
28464 int ecode3 = 0 ;
28465 int val4 ;
28466 int ecode4 = 0 ;
28467 int val5 ;
28468 int ecode5 = 0 ;
28469 PyObject * obj0 = 0 ;
28470 PyObject * obj1 = 0 ;
28471 PyObject * obj2 = 0 ;
28472 PyObject * obj3 = 0 ;
28473 PyObject * obj4 = 0 ;
28474 char * kwnames[] = {
28475 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
28476 };
28477
28478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28480 if (!SWIG_IsOK(res1)) {
28481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28482 }
28483 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28484 {
28485 arg2 = wxString_in_helper(obj1);
28486 if (arg2 == NULL) SWIG_fail;
28487 temp2 = true;
28488 }
28489 ecode3 = SWIG_AsVal_int(obj2, &val3);
28490 if (!SWIG_IsOK(ecode3)) {
28491 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
28492 }
28493 arg3 = static_cast< int >(val3);
28494 ecode4 = SWIG_AsVal_int(obj3, &val4);
28495 if (!SWIG_IsOK(ecode4)) {
28496 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
28497 }
28498 arg4 = static_cast< int >(val4);
28499 ecode5 = SWIG_AsVal_int(obj4, &val5);
28500 if (!SWIG_IsOK(ecode5)) {
28501 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
28502 }
28503 arg5 = static_cast< int >(val5);
28504 {
28505 PyThreadState* __tstate = wxPyBeginAllowThreads();
28506 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
28507 wxPyEndAllowThreads(__tstate);
28508 if (PyErr_Occurred()) SWIG_fail;
28509 }
28510 resultobj = SWIG_Py_Void();
28511 {
28512 if (temp2)
28513 delete arg2;
28514 }
28515 return resultobj;
28516 fail:
28517 {
28518 if (temp2)
28519 delete arg2;
28520 }
28521 return NULL;
28522 }
28523
28524
28525 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28526 PyObject *obj;
28527 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28528 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
28529 return SWIG_Py_Void();
28530 }
28531
28532 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28533 return SWIG_Python_InitShadowInstance(args);
28534 }
28535
28536 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28537 PyObject *resultobj = 0;
28538 wxFontList *result = 0 ;
28539
28540 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
28541 {
28542 PyThreadState* __tstate = wxPyBeginAllowThreads();
28543 result = (wxFontList *)_wxPyInitTheFontList();
28544 wxPyEndAllowThreads(__tstate);
28545 if (PyErr_Occurred()) SWIG_fail;
28546 }
28547 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
28548 return resultobj;
28549 fail:
28550 return NULL;
28551 }
28552
28553
28554 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28555 PyObject *resultobj = 0;
28556 wxPenList *result = 0 ;
28557
28558 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
28559 {
28560 PyThreadState* __tstate = wxPyBeginAllowThreads();
28561 result = (wxPenList *)_wxPyInitThePenList();
28562 wxPyEndAllowThreads(__tstate);
28563 if (PyErr_Occurred()) SWIG_fail;
28564 }
28565 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
28566 return resultobj;
28567 fail:
28568 return NULL;
28569 }
28570
28571
28572 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28573 PyObject *resultobj = 0;
28574 wxBrushList *result = 0 ;
28575
28576 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
28577 {
28578 PyThreadState* __tstate = wxPyBeginAllowThreads();
28579 result = (wxBrushList *)_wxPyInitTheBrushList();
28580 wxPyEndAllowThreads(__tstate);
28581 if (PyErr_Occurred()) SWIG_fail;
28582 }
28583 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
28584 return resultobj;
28585 fail:
28586 return NULL;
28587 }
28588
28589
28590 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28591 PyObject *resultobj = 0;
28592 wxColourDatabase *result = 0 ;
28593
28594 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
28595 {
28596 PyThreadState* __tstate = wxPyBeginAllowThreads();
28597 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
28598 wxPyEndAllowThreads(__tstate);
28599 if (PyErr_Occurred()) SWIG_fail;
28600 }
28601 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28602 return resultobj;
28603 fail:
28604 return NULL;
28605 }
28606
28607
28608 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28609 PyObject *resultobj = 0;
28610 wxEffects *result = 0 ;
28611
28612 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
28613 {
28614 PyThreadState* __tstate = wxPyBeginAllowThreads();
28615 result = (wxEffects *)new wxEffects();
28616 wxPyEndAllowThreads(__tstate);
28617 if (PyErr_Occurred()) SWIG_fail;
28618 }
28619 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
28620 return resultobj;
28621 fail:
28622 return NULL;
28623 }
28624
28625
28626 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28627 PyObject *resultobj = 0;
28628 wxEffects *arg1 = (wxEffects *) 0 ;
28629 wxColour result;
28630 void *argp1 = 0 ;
28631 int res1 = 0 ;
28632 PyObject *swig_obj[1] ;
28633
28634 if (!args) SWIG_fail;
28635 swig_obj[0] = args;
28636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28637 if (!SWIG_IsOK(res1)) {
28638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
28639 }
28640 arg1 = reinterpret_cast< wxEffects * >(argp1);
28641 {
28642 PyThreadState* __tstate = wxPyBeginAllowThreads();
28643 result = ((wxEffects const *)arg1)->GetHighlightColour();
28644 wxPyEndAllowThreads(__tstate);
28645 if (PyErr_Occurred()) SWIG_fail;
28646 }
28647 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28648 return resultobj;
28649 fail:
28650 return NULL;
28651 }
28652
28653
28654 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28655 PyObject *resultobj = 0;
28656 wxEffects *arg1 = (wxEffects *) 0 ;
28657 wxColour result;
28658 void *argp1 = 0 ;
28659 int res1 = 0 ;
28660 PyObject *swig_obj[1] ;
28661
28662 if (!args) SWIG_fail;
28663 swig_obj[0] = args;
28664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28665 if (!SWIG_IsOK(res1)) {
28666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
28667 }
28668 arg1 = reinterpret_cast< wxEffects * >(argp1);
28669 {
28670 PyThreadState* __tstate = wxPyBeginAllowThreads();
28671 result = ((wxEffects const *)arg1)->GetLightShadow();
28672 wxPyEndAllowThreads(__tstate);
28673 if (PyErr_Occurred()) SWIG_fail;
28674 }
28675 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28676 return resultobj;
28677 fail:
28678 return NULL;
28679 }
28680
28681
28682 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28683 PyObject *resultobj = 0;
28684 wxEffects *arg1 = (wxEffects *) 0 ;
28685 wxColour result;
28686 void *argp1 = 0 ;
28687 int res1 = 0 ;
28688 PyObject *swig_obj[1] ;
28689
28690 if (!args) SWIG_fail;
28691 swig_obj[0] = args;
28692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28693 if (!SWIG_IsOK(res1)) {
28694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
28695 }
28696 arg1 = reinterpret_cast< wxEffects * >(argp1);
28697 {
28698 PyThreadState* __tstate = wxPyBeginAllowThreads();
28699 result = ((wxEffects const *)arg1)->GetFaceColour();
28700 wxPyEndAllowThreads(__tstate);
28701 if (PyErr_Occurred()) SWIG_fail;
28702 }
28703 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28704 return resultobj;
28705 fail:
28706 return NULL;
28707 }
28708
28709
28710 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28711 PyObject *resultobj = 0;
28712 wxEffects *arg1 = (wxEffects *) 0 ;
28713 wxColour result;
28714 void *argp1 = 0 ;
28715 int res1 = 0 ;
28716 PyObject *swig_obj[1] ;
28717
28718 if (!args) SWIG_fail;
28719 swig_obj[0] = args;
28720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28721 if (!SWIG_IsOK(res1)) {
28722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
28723 }
28724 arg1 = reinterpret_cast< wxEffects * >(argp1);
28725 {
28726 PyThreadState* __tstate = wxPyBeginAllowThreads();
28727 result = ((wxEffects const *)arg1)->GetMediumShadow();
28728 wxPyEndAllowThreads(__tstate);
28729 if (PyErr_Occurred()) SWIG_fail;
28730 }
28731 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28732 return resultobj;
28733 fail:
28734 return NULL;
28735 }
28736
28737
28738 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28739 PyObject *resultobj = 0;
28740 wxEffects *arg1 = (wxEffects *) 0 ;
28741 wxColour result;
28742 void *argp1 = 0 ;
28743 int res1 = 0 ;
28744 PyObject *swig_obj[1] ;
28745
28746 if (!args) SWIG_fail;
28747 swig_obj[0] = args;
28748 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28749 if (!SWIG_IsOK(res1)) {
28750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
28751 }
28752 arg1 = reinterpret_cast< wxEffects * >(argp1);
28753 {
28754 PyThreadState* __tstate = wxPyBeginAllowThreads();
28755 result = ((wxEffects const *)arg1)->GetDarkShadow();
28756 wxPyEndAllowThreads(__tstate);
28757 if (PyErr_Occurred()) SWIG_fail;
28758 }
28759 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28760 return resultobj;
28761 fail:
28762 return NULL;
28763 }
28764
28765
28766 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28767 PyObject *resultobj = 0;
28768 wxEffects *arg1 = (wxEffects *) 0 ;
28769 wxColour *arg2 = 0 ;
28770 void *argp1 = 0 ;
28771 int res1 = 0 ;
28772 wxColour temp2 ;
28773 PyObject * obj0 = 0 ;
28774 PyObject * obj1 = 0 ;
28775 char * kwnames[] = {
28776 (char *) "self",(char *) "c", NULL
28777 };
28778
28779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
28780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28781 if (!SWIG_IsOK(res1)) {
28782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
28783 }
28784 arg1 = reinterpret_cast< wxEffects * >(argp1);
28785 {
28786 arg2 = &temp2;
28787 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28788 }
28789 {
28790 PyThreadState* __tstate = wxPyBeginAllowThreads();
28791 (arg1)->SetHighlightColour((wxColour const &)*arg2);
28792 wxPyEndAllowThreads(__tstate);
28793 if (PyErr_Occurred()) SWIG_fail;
28794 }
28795 resultobj = SWIG_Py_Void();
28796 return resultobj;
28797 fail:
28798 return NULL;
28799 }
28800
28801
28802 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28803 PyObject *resultobj = 0;
28804 wxEffects *arg1 = (wxEffects *) 0 ;
28805 wxColour *arg2 = 0 ;
28806 void *argp1 = 0 ;
28807 int res1 = 0 ;
28808 wxColour temp2 ;
28809 PyObject * obj0 = 0 ;
28810 PyObject * obj1 = 0 ;
28811 char * kwnames[] = {
28812 (char *) "self",(char *) "c", NULL
28813 };
28814
28815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
28816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28817 if (!SWIG_IsOK(res1)) {
28818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
28819 }
28820 arg1 = reinterpret_cast< wxEffects * >(argp1);
28821 {
28822 arg2 = &temp2;
28823 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28824 }
28825 {
28826 PyThreadState* __tstate = wxPyBeginAllowThreads();
28827 (arg1)->SetLightShadow((wxColour const &)*arg2);
28828 wxPyEndAllowThreads(__tstate);
28829 if (PyErr_Occurred()) SWIG_fail;
28830 }
28831 resultobj = SWIG_Py_Void();
28832 return resultobj;
28833 fail:
28834 return NULL;
28835 }
28836
28837
28838 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28839 PyObject *resultobj = 0;
28840 wxEffects *arg1 = (wxEffects *) 0 ;
28841 wxColour *arg2 = 0 ;
28842 void *argp1 = 0 ;
28843 int res1 = 0 ;
28844 wxColour temp2 ;
28845 PyObject * obj0 = 0 ;
28846 PyObject * obj1 = 0 ;
28847 char * kwnames[] = {
28848 (char *) "self",(char *) "c", NULL
28849 };
28850
28851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
28852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28853 if (!SWIG_IsOK(res1)) {
28854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
28855 }
28856 arg1 = reinterpret_cast< wxEffects * >(argp1);
28857 {
28858 arg2 = &temp2;
28859 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28860 }
28861 {
28862 PyThreadState* __tstate = wxPyBeginAllowThreads();
28863 (arg1)->SetFaceColour((wxColour const &)*arg2);
28864 wxPyEndAllowThreads(__tstate);
28865 if (PyErr_Occurred()) SWIG_fail;
28866 }
28867 resultobj = SWIG_Py_Void();
28868 return resultobj;
28869 fail:
28870 return NULL;
28871 }
28872
28873
28874 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28875 PyObject *resultobj = 0;
28876 wxEffects *arg1 = (wxEffects *) 0 ;
28877 wxColour *arg2 = 0 ;
28878 void *argp1 = 0 ;
28879 int res1 = 0 ;
28880 wxColour temp2 ;
28881 PyObject * obj0 = 0 ;
28882 PyObject * obj1 = 0 ;
28883 char * kwnames[] = {
28884 (char *) "self",(char *) "c", NULL
28885 };
28886
28887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
28888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28889 if (!SWIG_IsOK(res1)) {
28890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
28891 }
28892 arg1 = reinterpret_cast< wxEffects * >(argp1);
28893 {
28894 arg2 = &temp2;
28895 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28896 }
28897 {
28898 PyThreadState* __tstate = wxPyBeginAllowThreads();
28899 (arg1)->SetMediumShadow((wxColour const &)*arg2);
28900 wxPyEndAllowThreads(__tstate);
28901 if (PyErr_Occurred()) SWIG_fail;
28902 }
28903 resultobj = SWIG_Py_Void();
28904 return resultobj;
28905 fail:
28906 return NULL;
28907 }
28908
28909
28910 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28911 PyObject *resultobj = 0;
28912 wxEffects *arg1 = (wxEffects *) 0 ;
28913 wxColour *arg2 = 0 ;
28914 void *argp1 = 0 ;
28915 int res1 = 0 ;
28916 wxColour temp2 ;
28917 PyObject * obj0 = 0 ;
28918 PyObject * obj1 = 0 ;
28919 char * kwnames[] = {
28920 (char *) "self",(char *) "c", NULL
28921 };
28922
28923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
28924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28925 if (!SWIG_IsOK(res1)) {
28926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
28927 }
28928 arg1 = reinterpret_cast< wxEffects * >(argp1);
28929 {
28930 arg2 = &temp2;
28931 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28932 }
28933 {
28934 PyThreadState* __tstate = wxPyBeginAllowThreads();
28935 (arg1)->SetDarkShadow((wxColour const &)*arg2);
28936 wxPyEndAllowThreads(__tstate);
28937 if (PyErr_Occurred()) SWIG_fail;
28938 }
28939 resultobj = SWIG_Py_Void();
28940 return resultobj;
28941 fail:
28942 return NULL;
28943 }
28944
28945
28946 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28947 PyObject *resultobj = 0;
28948 wxEffects *arg1 = (wxEffects *) 0 ;
28949 wxColour *arg2 = 0 ;
28950 wxColour *arg3 = 0 ;
28951 wxColour *arg4 = 0 ;
28952 wxColour *arg5 = 0 ;
28953 wxColour *arg6 = 0 ;
28954 void *argp1 = 0 ;
28955 int res1 = 0 ;
28956 wxColour temp2 ;
28957 wxColour temp3 ;
28958 wxColour temp4 ;
28959 wxColour temp5 ;
28960 wxColour temp6 ;
28961 PyObject * obj0 = 0 ;
28962 PyObject * obj1 = 0 ;
28963 PyObject * obj2 = 0 ;
28964 PyObject * obj3 = 0 ;
28965 PyObject * obj4 = 0 ;
28966 PyObject * obj5 = 0 ;
28967 char * kwnames[] = {
28968 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
28969 };
28970
28971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
28972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28973 if (!SWIG_IsOK(res1)) {
28974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
28975 }
28976 arg1 = reinterpret_cast< wxEffects * >(argp1);
28977 {
28978 arg2 = &temp2;
28979 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28980 }
28981 {
28982 arg3 = &temp3;
28983 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28984 }
28985 {
28986 arg4 = &temp4;
28987 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
28988 }
28989 {
28990 arg5 = &temp5;
28991 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
28992 }
28993 {
28994 arg6 = &temp6;
28995 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
28996 }
28997 {
28998 PyThreadState* __tstate = wxPyBeginAllowThreads();
28999 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
29000 wxPyEndAllowThreads(__tstate);
29001 if (PyErr_Occurred()) SWIG_fail;
29002 }
29003 resultobj = SWIG_Py_Void();
29004 return resultobj;
29005 fail:
29006 return NULL;
29007 }
29008
29009
29010 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29011 PyObject *resultobj = 0;
29012 wxEffects *arg1 = (wxEffects *) 0 ;
29013 wxDC *arg2 = 0 ;
29014 wxRect *arg3 = 0 ;
29015 int arg4 = (int) 1 ;
29016 void *argp1 = 0 ;
29017 int res1 = 0 ;
29018 void *argp2 = 0 ;
29019 int res2 = 0 ;
29020 wxRect temp3 ;
29021 int val4 ;
29022 int ecode4 = 0 ;
29023 PyObject * obj0 = 0 ;
29024 PyObject * obj1 = 0 ;
29025 PyObject * obj2 = 0 ;
29026 PyObject * obj3 = 0 ;
29027 char * kwnames[] = {
29028 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
29029 };
29030
29031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29033 if (!SWIG_IsOK(res1)) {
29034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
29035 }
29036 arg1 = reinterpret_cast< wxEffects * >(argp1);
29037 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
29038 if (!SWIG_IsOK(res2)) {
29039 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
29040 }
29041 if (!argp2) {
29042 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
29043 }
29044 arg2 = reinterpret_cast< wxDC * >(argp2);
29045 {
29046 arg3 = &temp3;
29047 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
29048 }
29049 if (obj3) {
29050 ecode4 = SWIG_AsVal_int(obj3, &val4);
29051 if (!SWIG_IsOK(ecode4)) {
29052 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
29053 }
29054 arg4 = static_cast< int >(val4);
29055 }
29056 {
29057 PyThreadState* __tstate = wxPyBeginAllowThreads();
29058 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
29059 wxPyEndAllowThreads(__tstate);
29060 if (PyErr_Occurred()) SWIG_fail;
29061 }
29062 resultobj = SWIG_Py_Void();
29063 return resultobj;
29064 fail:
29065 return NULL;
29066 }
29067
29068
29069 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29070 PyObject *resultobj = 0;
29071 wxEffects *arg1 = (wxEffects *) 0 ;
29072 wxRect *arg2 = 0 ;
29073 wxDC *arg3 = 0 ;
29074 wxBitmap *arg4 = 0 ;
29075 bool result;
29076 void *argp1 = 0 ;
29077 int res1 = 0 ;
29078 wxRect temp2 ;
29079 void *argp3 = 0 ;
29080 int res3 = 0 ;
29081 void *argp4 = 0 ;
29082 int res4 = 0 ;
29083 PyObject * obj0 = 0 ;
29084 PyObject * obj1 = 0 ;
29085 PyObject * obj2 = 0 ;
29086 PyObject * obj3 = 0 ;
29087 char * kwnames[] = {
29088 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
29089 };
29090
29091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29093 if (!SWIG_IsOK(res1)) {
29094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
29095 }
29096 arg1 = reinterpret_cast< wxEffects * >(argp1);
29097 {
29098 arg2 = &temp2;
29099 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29100 }
29101 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
29102 if (!SWIG_IsOK(res3)) {
29103 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
29104 }
29105 if (!argp3) {
29106 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
29107 }
29108 arg3 = reinterpret_cast< wxDC * >(argp3);
29109 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
29110 if (!SWIG_IsOK(res4)) {
29111 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
29112 }
29113 if (!argp4) {
29114 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
29115 }
29116 arg4 = reinterpret_cast< wxBitmap * >(argp4);
29117 {
29118 PyThreadState* __tstate = wxPyBeginAllowThreads();
29119 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
29120 wxPyEndAllowThreads(__tstate);
29121 if (PyErr_Occurred()) SWIG_fail;
29122 }
29123 {
29124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29125 }
29126 return resultobj;
29127 fail:
29128 return NULL;
29129 }
29130
29131
29132 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29133 PyObject *obj;
29134 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29135 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
29136 return SWIG_Py_Void();
29137 }
29138
29139 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29140 return SWIG_Python_InitShadowInstance(args);
29141 }
29142
29143 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29144 PyObject *resultobj = 0;
29145 int arg1 ;
29146 int arg2 ;
29147 bool arg3 ;
29148 wxSplitterRenderParams *result = 0 ;
29149 int val1 ;
29150 int ecode1 = 0 ;
29151 int val2 ;
29152 int ecode2 = 0 ;
29153 bool val3 ;
29154 int ecode3 = 0 ;
29155 PyObject * obj0 = 0 ;
29156 PyObject * obj1 = 0 ;
29157 PyObject * obj2 = 0 ;
29158 char * kwnames[] = {
29159 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
29160 };
29161
29162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29163 ecode1 = SWIG_AsVal_int(obj0, &val1);
29164 if (!SWIG_IsOK(ecode1)) {
29165 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
29166 }
29167 arg1 = static_cast< int >(val1);
29168 ecode2 = SWIG_AsVal_int(obj1, &val2);
29169 if (!SWIG_IsOK(ecode2)) {
29170 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
29171 }
29172 arg2 = static_cast< int >(val2);
29173 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29174 if (!SWIG_IsOK(ecode3)) {
29175 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
29176 }
29177 arg3 = static_cast< bool >(val3);
29178 {
29179 PyThreadState* __tstate = wxPyBeginAllowThreads();
29180 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
29181 wxPyEndAllowThreads(__tstate);
29182 if (PyErr_Occurred()) SWIG_fail;
29183 }
29184 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
29185 return resultobj;
29186 fail:
29187 return NULL;
29188 }
29189
29190
29191 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29192 PyObject *resultobj = 0;
29193 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29194 void *argp1 = 0 ;
29195 int res1 = 0 ;
29196 PyObject *swig_obj[1] ;
29197
29198 if (!args) SWIG_fail;
29199 swig_obj[0] = args;
29200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
29201 if (!SWIG_IsOK(res1)) {
29202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29203 }
29204 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29205 {
29206 PyThreadState* __tstate = wxPyBeginAllowThreads();
29207 delete arg1;
29208
29209 wxPyEndAllowThreads(__tstate);
29210 if (PyErr_Occurred()) SWIG_fail;
29211 }
29212 resultobj = SWIG_Py_Void();
29213 return resultobj;
29214 fail:
29215 return NULL;
29216 }
29217
29218
29219 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29220 PyObject *resultobj = 0;
29221 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29222 int result;
29223 void *argp1 = 0 ;
29224 int res1 = 0 ;
29225 PyObject *swig_obj[1] ;
29226
29227 if (!args) SWIG_fail;
29228 swig_obj[0] = args;
29229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29230 if (!SWIG_IsOK(res1)) {
29231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29232 }
29233 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29234 result = (int)(int) ((arg1)->widthSash);
29235 resultobj = SWIG_From_int(static_cast< int >(result));
29236 return resultobj;
29237 fail:
29238 return NULL;
29239 }
29240
29241
29242 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29243 PyObject *resultobj = 0;
29244 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29245 int result;
29246 void *argp1 = 0 ;
29247 int res1 = 0 ;
29248 PyObject *swig_obj[1] ;
29249
29250 if (!args) SWIG_fail;
29251 swig_obj[0] = args;
29252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29253 if (!SWIG_IsOK(res1)) {
29254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29255 }
29256 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29257 result = (int)(int) ((arg1)->border);
29258 resultobj = SWIG_From_int(static_cast< int >(result));
29259 return resultobj;
29260 fail:
29261 return NULL;
29262 }
29263
29264
29265 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29266 PyObject *resultobj = 0;
29267 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29268 bool result;
29269 void *argp1 = 0 ;
29270 int res1 = 0 ;
29271 PyObject *swig_obj[1] ;
29272
29273 if (!args) SWIG_fail;
29274 swig_obj[0] = args;
29275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29276 if (!SWIG_IsOK(res1)) {
29277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29278 }
29279 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29280 result = (bool)(bool) ((arg1)->isHotSensitive);
29281 resultobj = SWIG_From_bool(static_cast< bool >(result));
29282 return resultobj;
29283 fail:
29284 return NULL;
29285 }
29286
29287
29288 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29289 PyObject *obj;
29290 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29291 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
29292 return SWIG_Py_Void();
29293 }
29294
29295 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29296 return SWIG_Python_InitShadowInstance(args);
29297 }
29298
29299 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29300 PyObject *resultobj = 0;
29301 wxHeaderButtonParams *result = 0 ;
29302
29303 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
29304 {
29305 PyThreadState* __tstate = wxPyBeginAllowThreads();
29306 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
29307 wxPyEndAllowThreads(__tstate);
29308 if (PyErr_Occurred()) SWIG_fail;
29309 }
29310 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
29311 return resultobj;
29312 fail:
29313 return NULL;
29314 }
29315
29316
29317 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29318 PyObject *resultobj = 0;
29319 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29320 void *argp1 = 0 ;
29321 int res1 = 0 ;
29322 PyObject *swig_obj[1] ;
29323
29324 if (!args) SWIG_fail;
29325 swig_obj[0] = args;
29326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
29327 if (!SWIG_IsOK(res1)) {
29328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29329 }
29330 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29331 {
29332 PyThreadState* __tstate = wxPyBeginAllowThreads();
29333 delete arg1;
29334
29335 wxPyEndAllowThreads(__tstate);
29336 if (PyErr_Occurred()) SWIG_fail;
29337 }
29338 resultobj = SWIG_Py_Void();
29339 return resultobj;
29340 fail:
29341 return NULL;
29342 }
29343
29344
29345 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29346 PyObject *resultobj = 0;
29347 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29348 wxColour *arg2 = (wxColour *) 0 ;
29349 void *argp1 = 0 ;
29350 int res1 = 0 ;
29351 wxColour temp2 ;
29352 PyObject *swig_obj[2] ;
29353
29354 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
29355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29356 if (!SWIG_IsOK(res1)) {
29357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29358 }
29359 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29360 {
29361 arg2 = &temp2;
29362 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29363 }
29364 if (arg1) (arg1)->m_arrowColour = *arg2;
29365
29366 resultobj = SWIG_Py_Void();
29367 return resultobj;
29368 fail:
29369 return NULL;
29370 }
29371
29372
29373 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29374 PyObject *resultobj = 0;
29375 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29376 wxColour *result = 0 ;
29377 void *argp1 = 0 ;
29378 int res1 = 0 ;
29379 PyObject *swig_obj[1] ;
29380
29381 if (!args) SWIG_fail;
29382 swig_obj[0] = args;
29383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29384 if (!SWIG_IsOK(res1)) {
29385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29386 }
29387 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29388 result = (wxColour *)& ((arg1)->m_arrowColour);
29389 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29390 return resultobj;
29391 fail:
29392 return NULL;
29393 }
29394
29395
29396 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29397 PyObject *resultobj = 0;
29398 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29399 wxColour *arg2 = (wxColour *) 0 ;
29400 void *argp1 = 0 ;
29401 int res1 = 0 ;
29402 wxColour temp2 ;
29403 PyObject *swig_obj[2] ;
29404
29405 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
29406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29407 if (!SWIG_IsOK(res1)) {
29408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29409 }
29410 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29411 {
29412 arg2 = &temp2;
29413 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29414 }
29415 if (arg1) (arg1)->m_selectionColour = *arg2;
29416
29417 resultobj = SWIG_Py_Void();
29418 return resultobj;
29419 fail:
29420 return NULL;
29421 }
29422
29423
29424 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29425 PyObject *resultobj = 0;
29426 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29427 wxColour *result = 0 ;
29428 void *argp1 = 0 ;
29429 int res1 = 0 ;
29430 PyObject *swig_obj[1] ;
29431
29432 if (!args) SWIG_fail;
29433 swig_obj[0] = args;
29434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29435 if (!SWIG_IsOK(res1)) {
29436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29437 }
29438 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29439 result = (wxColour *)& ((arg1)->m_selectionColour);
29440 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29441 return resultobj;
29442 fail:
29443 return NULL;
29444 }
29445
29446
29447 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29448 PyObject *resultobj = 0;
29449 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29450 wxString *arg2 = (wxString *) 0 ;
29451 void *argp1 = 0 ;
29452 int res1 = 0 ;
29453 bool temp2 = false ;
29454 PyObject *swig_obj[2] ;
29455
29456 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
29457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29458 if (!SWIG_IsOK(res1)) {
29459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29460 }
29461 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29462 {
29463 arg2 = wxString_in_helper(swig_obj[1]);
29464 if (arg2 == NULL) SWIG_fail;
29465 temp2 = true;
29466 }
29467 if (arg1) (arg1)->m_labelText = *arg2;
29468
29469 resultobj = SWIG_Py_Void();
29470 {
29471 if (temp2)
29472 delete arg2;
29473 }
29474 return resultobj;
29475 fail:
29476 {
29477 if (temp2)
29478 delete arg2;
29479 }
29480 return NULL;
29481 }
29482
29483
29484 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29485 PyObject *resultobj = 0;
29486 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29487 wxString *result = 0 ;
29488 void *argp1 = 0 ;
29489 int res1 = 0 ;
29490 PyObject *swig_obj[1] ;
29491
29492 if (!args) SWIG_fail;
29493 swig_obj[0] = args;
29494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29495 if (!SWIG_IsOK(res1)) {
29496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29497 }
29498 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29499 result = (wxString *)& ((arg1)->m_labelText);
29500 {
29501 #if wxUSE_UNICODE
29502 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
29503 #else
29504 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
29505 #endif
29506 }
29507 return resultobj;
29508 fail:
29509 return NULL;
29510 }
29511
29512
29513 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29514 PyObject *resultobj = 0;
29515 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29516 wxFont *arg2 = (wxFont *) 0 ;
29517 void *argp1 = 0 ;
29518 int res1 = 0 ;
29519 void *argp2 = 0 ;
29520 int res2 = 0 ;
29521 PyObject *swig_obj[2] ;
29522
29523 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
29524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29525 if (!SWIG_IsOK(res1)) {
29526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29527 }
29528 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29529 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
29530 if (!SWIG_IsOK(res2)) {
29531 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
29532 }
29533 arg2 = reinterpret_cast< wxFont * >(argp2);
29534 if (arg1) (arg1)->m_labelFont = *arg2;
29535
29536 resultobj = SWIG_Py_Void();
29537 return resultobj;
29538 fail:
29539 return NULL;
29540 }
29541
29542
29543 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29544 PyObject *resultobj = 0;
29545 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29546 wxFont *result = 0 ;
29547 void *argp1 = 0 ;
29548 int res1 = 0 ;
29549 PyObject *swig_obj[1] ;
29550
29551 if (!args) SWIG_fail;
29552 swig_obj[0] = args;
29553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29554 if (!SWIG_IsOK(res1)) {
29555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29556 }
29557 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29558 result = (wxFont *)& ((arg1)->m_labelFont);
29559 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
29560 return resultobj;
29561 fail:
29562 return NULL;
29563 }
29564
29565
29566 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29567 PyObject *resultobj = 0;
29568 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29569 wxColour *arg2 = (wxColour *) 0 ;
29570 void *argp1 = 0 ;
29571 int res1 = 0 ;
29572 wxColour temp2 ;
29573 PyObject *swig_obj[2] ;
29574
29575 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
29576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29577 if (!SWIG_IsOK(res1)) {
29578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29579 }
29580 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29581 {
29582 arg2 = &temp2;
29583 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29584 }
29585 if (arg1) (arg1)->m_labelColour = *arg2;
29586
29587 resultobj = SWIG_Py_Void();
29588 return resultobj;
29589 fail:
29590 return NULL;
29591 }
29592
29593
29594 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29595 PyObject *resultobj = 0;
29596 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29597 wxColour *result = 0 ;
29598 void *argp1 = 0 ;
29599 int res1 = 0 ;
29600 PyObject *swig_obj[1] ;
29601
29602 if (!args) SWIG_fail;
29603 swig_obj[0] = args;
29604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29605 if (!SWIG_IsOK(res1)) {
29606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29607 }
29608 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29609 result = (wxColour *)& ((arg1)->m_labelColour);
29610 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29611 return resultobj;
29612 fail:
29613 return NULL;
29614 }
29615
29616
29617 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29618 PyObject *resultobj = 0;
29619 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29620 wxBitmap *arg2 = (wxBitmap *) 0 ;
29621 void *argp1 = 0 ;
29622 int res1 = 0 ;
29623 void *argp2 = 0 ;
29624 int res2 = 0 ;
29625 PyObject *swig_obj[2] ;
29626
29627 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
29628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29629 if (!SWIG_IsOK(res1)) {
29630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29631 }
29632 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29633 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
29634 if (!SWIG_IsOK(res2)) {
29635 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
29636 }
29637 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29638 if (arg1) (arg1)->m_labelBitmap = *arg2;
29639
29640 resultobj = SWIG_Py_Void();
29641 return resultobj;
29642 fail:
29643 return NULL;
29644 }
29645
29646
29647 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29648 PyObject *resultobj = 0;
29649 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29650 wxBitmap *result = 0 ;
29651 void *argp1 = 0 ;
29652 int res1 = 0 ;
29653 PyObject *swig_obj[1] ;
29654
29655 if (!args) SWIG_fail;
29656 swig_obj[0] = args;
29657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29658 if (!SWIG_IsOK(res1)) {
29659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29660 }
29661 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29662 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
29663 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
29664 return resultobj;
29665 fail:
29666 return NULL;
29667 }
29668
29669
29670 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29671 PyObject *resultobj = 0;
29672 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29673 int arg2 ;
29674 void *argp1 = 0 ;
29675 int res1 = 0 ;
29676 int val2 ;
29677 int ecode2 = 0 ;
29678 PyObject *swig_obj[2] ;
29679
29680 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
29681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29682 if (!SWIG_IsOK(res1)) {
29683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29684 }
29685 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29686 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
29687 if (!SWIG_IsOK(ecode2)) {
29688 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
29689 }
29690 arg2 = static_cast< int >(val2);
29691 if (arg1) (arg1)->m_labelAlignment = arg2;
29692
29693 resultobj = SWIG_Py_Void();
29694 return resultobj;
29695 fail:
29696 return NULL;
29697 }
29698
29699
29700 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29701 PyObject *resultobj = 0;
29702 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29703 int result;
29704 void *argp1 = 0 ;
29705 int res1 = 0 ;
29706 PyObject *swig_obj[1] ;
29707
29708 if (!args) SWIG_fail;
29709 swig_obj[0] = args;
29710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29711 if (!SWIG_IsOK(res1)) {
29712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29713 }
29714 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29715 result = (int) ((arg1)->m_labelAlignment);
29716 resultobj = SWIG_From_int(static_cast< int >(result));
29717 return resultobj;
29718 fail:
29719 return NULL;
29720 }
29721
29722
29723 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29724 PyObject *obj;
29725 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29726 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
29727 return SWIG_Py_Void();
29728 }
29729
29730 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29731 return SWIG_Python_InitShadowInstance(args);
29732 }
29733
29734 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29735 PyObject *resultobj = 0;
29736 int arg1 ;
29737 int arg2 ;
29738 wxRendererVersion *result = 0 ;
29739 int val1 ;
29740 int ecode1 = 0 ;
29741 int val2 ;
29742 int ecode2 = 0 ;
29743 PyObject * obj0 = 0 ;
29744 PyObject * obj1 = 0 ;
29745 char * kwnames[] = {
29746 (char *) "version_",(char *) "age_", NULL
29747 };
29748
29749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
29750 ecode1 = SWIG_AsVal_int(obj0, &val1);
29751 if (!SWIG_IsOK(ecode1)) {
29752 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
29753 }
29754 arg1 = static_cast< int >(val1);
29755 ecode2 = SWIG_AsVal_int(obj1, &val2);
29756 if (!SWIG_IsOK(ecode2)) {
29757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
29758 }
29759 arg2 = static_cast< int >(val2);
29760 {
29761 PyThreadState* __tstate = wxPyBeginAllowThreads();
29762 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
29763 wxPyEndAllowThreads(__tstate);
29764 if (PyErr_Occurred()) SWIG_fail;
29765 }
29766 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
29767 return resultobj;
29768 fail:
29769 return NULL;
29770 }
29771
29772
29773 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29774 PyObject *resultobj = 0;
29775 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
29776 void *argp1 = 0 ;
29777 int res1 = 0 ;
29778 PyObject *swig_obj[1] ;
29779
29780 if (!args) SWIG_fail;
29781 swig_obj[0] = args;
29782 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
29783 if (!SWIG_IsOK(res1)) {
29784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
29785 }
29786 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
29787 {
29788 PyThreadState* __tstate = wxPyBeginAllowThreads();
29789 delete arg1;
29790
29791 wxPyEndAllowThreads(__tstate);
29792 if (PyErr_Occurred()) SWIG_fail;
29793 }
29794 resultobj = SWIG_Py_Void();
29795 return resultobj;
29796 fail:
29797 return NULL;
29798 }
29799
29800
29801 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29802 PyObject *resultobj = 0;
29803 wxRendererVersion *arg1 = 0 ;
29804 bool result;
29805 void *argp1 = 0 ;
29806 int res1 = 0 ;
29807 PyObject * obj0 = 0 ;
29808 char * kwnames[] = {
29809 (char *) "ver", NULL
29810 };
29811
29812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
29813 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
29814 if (!SWIG_IsOK(res1)) {
29815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
29816 }
29817 if (!argp1) {
29818 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
29819 }
29820 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
29821 {
29822 PyThreadState* __tstate = wxPyBeginAllowThreads();
29823 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
29824 wxPyEndAllowThreads(__tstate);
29825 if (PyErr_Occurred()) SWIG_fail;
29826 }
29827 {
29828 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29829 }
29830 return resultobj;
29831 fail:
29832 return NULL;
29833 }
29834
29835
29836 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29837 PyObject *resultobj = 0;
29838 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
29839 int result;
29840 void *argp1 = 0 ;
29841 int res1 = 0 ;
29842 PyObject *swig_obj[1] ;
29843
29844 if (!args) SWIG_fail;
29845 swig_obj[0] = args;
29846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
29847 if (!SWIG_IsOK(res1)) {
29848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
29849 }
29850 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
29851 result = (int)(int) ((arg1)->version);
29852 resultobj = SWIG_From_int(static_cast< int >(result));
29853 return resultobj;
29854 fail:
29855 return NULL;
29856 }
29857
29858
29859 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29860 PyObject *resultobj = 0;
29861 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
29862 int result;
29863 void *argp1 = 0 ;
29864 int res1 = 0 ;
29865 PyObject *swig_obj[1] ;
29866
29867 if (!args) SWIG_fail;
29868 swig_obj[0] = args;
29869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
29870 if (!SWIG_IsOK(res1)) {
29871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
29872 }
29873 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
29874 result = (int)(int) ((arg1)->age);
29875 resultobj = SWIG_From_int(static_cast< int >(result));
29876 return resultobj;
29877 fail:
29878 return NULL;
29879 }
29880
29881
29882 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29883 PyObject *obj;
29884 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29885 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
29886 return SWIG_Py_Void();
29887 }
29888
29889 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29890 return SWIG_Python_InitShadowInstance(args);
29891 }
29892
29893 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29894 PyObject *resultobj = 0;
29895 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
29896 wxWindow *arg2 = (wxWindow *) 0 ;
29897 wxDC *arg3 = 0 ;
29898 wxRect *arg4 = 0 ;
29899 int arg5 = (int) 0 ;
29900 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
29901 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
29902 void *argp1 = 0 ;
29903 int res1 = 0 ;
29904 void *argp2 = 0 ;
29905 int res2 = 0 ;
29906 void *argp3 = 0 ;
29907 int res3 = 0 ;
29908 wxRect temp4 ;
29909 int val5 ;
29910 int ecode5 = 0 ;
29911 int val6 ;
29912 int ecode6 = 0 ;
29913 void *argp7 = 0 ;
29914 int res7 = 0 ;
29915 PyObject * obj0 = 0 ;
29916 PyObject * obj1 = 0 ;
29917 PyObject * obj2 = 0 ;
29918 PyObject * obj3 = 0 ;
29919 PyObject * obj4 = 0 ;
29920 PyObject * obj5 = 0 ;
29921 PyObject * obj6 = 0 ;
29922 char * kwnames[] = {
29923 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
29924 };
29925
29926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
29928 if (!SWIG_IsOK(res1)) {
29929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
29930 }
29931 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
29932 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29933 if (!SWIG_IsOK(res2)) {
29934 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
29935 }
29936 arg2 = reinterpret_cast< wxWindow * >(argp2);
29937 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
29938 if (!SWIG_IsOK(res3)) {
29939 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
29940 }
29941 if (!argp3) {
29942 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
29943 }
29944 arg3 = reinterpret_cast< wxDC * >(argp3);
29945 {
29946 arg4 = &temp4;
29947 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
29948 }
29949 if (obj4) {
29950 ecode5 = SWIG_AsVal_int(obj4, &val5);
29951 if (!SWIG_IsOK(ecode5)) {
29952 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
29953 }
29954 arg5 = static_cast< int >(val5);
29955 }
29956 if (obj5) {
29957 ecode6 = SWIG_AsVal_int(obj5, &val6);
29958 if (!SWIG_IsOK(ecode6)) {
29959 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
29960 }
29961 arg6 = static_cast< wxHeaderSortIconType >(val6);
29962 }
29963 if (obj6) {
29964 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29965 if (!SWIG_IsOK(res7)) {
29966 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
29967 }
29968 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
29969 }
29970 {
29971 PyThreadState* __tstate = wxPyBeginAllowThreads();
29972 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
29973 wxPyEndAllowThreads(__tstate);
29974 if (PyErr_Occurred()) SWIG_fail;
29975 }
29976 resultobj = SWIG_Py_Void();
29977 return resultobj;
29978 fail:
29979 return NULL;
29980 }
29981
29982
29983 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29984 PyObject *resultobj = 0;
29985 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
29986 wxWindow *arg2 = (wxWindow *) 0 ;
29987 wxDC *arg3 = 0 ;
29988 wxRect *arg4 = 0 ;
29989 int arg5 = (int) 0 ;
29990 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
29991 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
29992 void *argp1 = 0 ;
29993 int res1 = 0 ;
29994 void *argp2 = 0 ;
29995 int res2 = 0 ;
29996 void *argp3 = 0 ;
29997 int res3 = 0 ;
29998 wxRect temp4 ;
29999 int val5 ;
30000 int ecode5 = 0 ;
30001 int val6 ;
30002 int ecode6 = 0 ;
30003 void *argp7 = 0 ;
30004 int res7 = 0 ;
30005 PyObject * obj0 = 0 ;
30006 PyObject * obj1 = 0 ;
30007 PyObject * obj2 = 0 ;
30008 PyObject * obj3 = 0 ;
30009 PyObject * obj4 = 0 ;
30010 PyObject * obj5 = 0 ;
30011 PyObject * obj6 = 0 ;
30012 char * kwnames[] = {
30013 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
30014 };
30015
30016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30018 if (!SWIG_IsOK(res1)) {
30019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30020 }
30021 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30022 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30023 if (!SWIG_IsOK(res2)) {
30024 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
30025 }
30026 arg2 = reinterpret_cast< wxWindow * >(argp2);
30027 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30028 if (!SWIG_IsOK(res3)) {
30029 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
30030 }
30031 if (!argp3) {
30032 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
30033 }
30034 arg3 = reinterpret_cast< wxDC * >(argp3);
30035 {
30036 arg4 = &temp4;
30037 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30038 }
30039 if (obj4) {
30040 ecode5 = SWIG_AsVal_int(obj4, &val5);
30041 if (!SWIG_IsOK(ecode5)) {
30042 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
30043 }
30044 arg5 = static_cast< int >(val5);
30045 }
30046 if (obj5) {
30047 ecode6 = SWIG_AsVal_int(obj5, &val6);
30048 if (!SWIG_IsOK(ecode6)) {
30049 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
30050 }
30051 arg6 = static_cast< wxHeaderSortIconType >(val6);
30052 }
30053 if (obj6) {
30054 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30055 if (!SWIG_IsOK(res7)) {
30056 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
30057 }
30058 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
30059 }
30060 {
30061 PyThreadState* __tstate = wxPyBeginAllowThreads();
30062 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
30063 wxPyEndAllowThreads(__tstate);
30064 if (PyErr_Occurred()) SWIG_fail;
30065 }
30066 resultobj = SWIG_Py_Void();
30067 return resultobj;
30068 fail:
30069 return NULL;
30070 }
30071
30072
30073 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30074 PyObject *resultobj = 0;
30075 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30076 wxWindow *arg2 = (wxWindow *) 0 ;
30077 int result;
30078 void *argp1 = 0 ;
30079 int res1 = 0 ;
30080 void *argp2 = 0 ;
30081 int res2 = 0 ;
30082 PyObject * obj0 = 0 ;
30083 PyObject * obj1 = 0 ;
30084 char * kwnames[] = {
30085 (char *) "self",(char *) "win", NULL
30086 };
30087
30088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
30089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30090 if (!SWIG_IsOK(res1)) {
30091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30092 }
30093 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30094 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30095 if (!SWIG_IsOK(res2)) {
30096 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
30097 }
30098 arg2 = reinterpret_cast< wxWindow * >(argp2);
30099 {
30100 PyThreadState* __tstate = wxPyBeginAllowThreads();
30101 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
30102 wxPyEndAllowThreads(__tstate);
30103 if (PyErr_Occurred()) SWIG_fail;
30104 }
30105 resultobj = SWIG_From_int(static_cast< int >(result));
30106 return resultobj;
30107 fail:
30108 return NULL;
30109 }
30110
30111
30112 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30113 PyObject *resultobj = 0;
30114 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30115 wxWindow *arg2 = (wxWindow *) 0 ;
30116 wxDC *arg3 = 0 ;
30117 wxRect *arg4 = 0 ;
30118 int arg5 = (int) 0 ;
30119 void *argp1 = 0 ;
30120 int res1 = 0 ;
30121 void *argp2 = 0 ;
30122 int res2 = 0 ;
30123 void *argp3 = 0 ;
30124 int res3 = 0 ;
30125 wxRect temp4 ;
30126 int val5 ;
30127 int ecode5 = 0 ;
30128 PyObject * obj0 = 0 ;
30129 PyObject * obj1 = 0 ;
30130 PyObject * obj2 = 0 ;
30131 PyObject * obj3 = 0 ;
30132 PyObject * obj4 = 0 ;
30133 char * kwnames[] = {
30134 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30135 };
30136
30137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30139 if (!SWIG_IsOK(res1)) {
30140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30141 }
30142 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30143 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30144 if (!SWIG_IsOK(res2)) {
30145 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30146 }
30147 arg2 = reinterpret_cast< wxWindow * >(argp2);
30148 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30149 if (!SWIG_IsOK(res3)) {
30150 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
30151 }
30152 if (!argp3) {
30153 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
30154 }
30155 arg3 = reinterpret_cast< wxDC * >(argp3);
30156 {
30157 arg4 = &temp4;
30158 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30159 }
30160 if (obj4) {
30161 ecode5 = SWIG_AsVal_int(obj4, &val5);
30162 if (!SWIG_IsOK(ecode5)) {
30163 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
30164 }
30165 arg5 = static_cast< int >(val5);
30166 }
30167 {
30168 PyThreadState* __tstate = wxPyBeginAllowThreads();
30169 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30170 wxPyEndAllowThreads(__tstate);
30171 if (PyErr_Occurred()) SWIG_fail;
30172 }
30173 resultobj = SWIG_Py_Void();
30174 return resultobj;
30175 fail:
30176 return NULL;
30177 }
30178
30179
30180 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30181 PyObject *resultobj = 0;
30182 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30183 wxWindow *arg2 = (wxWindow *) 0 ;
30184 wxDC *arg3 = 0 ;
30185 wxRect *arg4 = 0 ;
30186 int arg5 = (int) 0 ;
30187 void *argp1 = 0 ;
30188 int res1 = 0 ;
30189 void *argp2 = 0 ;
30190 int res2 = 0 ;
30191 void *argp3 = 0 ;
30192 int res3 = 0 ;
30193 wxRect temp4 ;
30194 int val5 ;
30195 int ecode5 = 0 ;
30196 PyObject * obj0 = 0 ;
30197 PyObject * obj1 = 0 ;
30198 PyObject * obj2 = 0 ;
30199 PyObject * obj3 = 0 ;
30200 PyObject * obj4 = 0 ;
30201 char * kwnames[] = {
30202 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30203 };
30204
30205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30207 if (!SWIG_IsOK(res1)) {
30208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30209 }
30210 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30211 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30212 if (!SWIG_IsOK(res2)) {
30213 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
30214 }
30215 arg2 = reinterpret_cast< wxWindow * >(argp2);
30216 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30217 if (!SWIG_IsOK(res3)) {
30218 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
30219 }
30220 if (!argp3) {
30221 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
30222 }
30223 arg3 = reinterpret_cast< wxDC * >(argp3);
30224 {
30225 arg4 = &temp4;
30226 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30227 }
30228 if (obj4) {
30229 ecode5 = SWIG_AsVal_int(obj4, &val5);
30230 if (!SWIG_IsOK(ecode5)) {
30231 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
30232 }
30233 arg5 = static_cast< int >(val5);
30234 }
30235 {
30236 PyThreadState* __tstate = wxPyBeginAllowThreads();
30237 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
30238 wxPyEndAllowThreads(__tstate);
30239 if (PyErr_Occurred()) SWIG_fail;
30240 }
30241 resultobj = SWIG_Py_Void();
30242 return resultobj;
30243 fail:
30244 return NULL;
30245 }
30246
30247
30248 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30249 PyObject *resultobj = 0;
30250 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30251 wxWindow *arg2 = (wxWindow *) 0 ;
30252 wxDC *arg3 = 0 ;
30253 wxSize *arg4 = 0 ;
30254 int arg5 ;
30255 wxOrientation arg6 ;
30256 int arg7 = (int) 0 ;
30257 void *argp1 = 0 ;
30258 int res1 = 0 ;
30259 void *argp2 = 0 ;
30260 int res2 = 0 ;
30261 void *argp3 = 0 ;
30262 int res3 = 0 ;
30263 wxSize temp4 ;
30264 int val5 ;
30265 int ecode5 = 0 ;
30266 int val6 ;
30267 int ecode6 = 0 ;
30268 int val7 ;
30269 int ecode7 = 0 ;
30270 PyObject * obj0 = 0 ;
30271 PyObject * obj1 = 0 ;
30272 PyObject * obj2 = 0 ;
30273 PyObject * obj3 = 0 ;
30274 PyObject * obj4 = 0 ;
30275 PyObject * obj5 = 0 ;
30276 PyObject * obj6 = 0 ;
30277 char * kwnames[] = {
30278 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
30279 };
30280
30281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30283 if (!SWIG_IsOK(res1)) {
30284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30285 }
30286 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30287 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30288 if (!SWIG_IsOK(res2)) {
30289 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
30290 }
30291 arg2 = reinterpret_cast< wxWindow * >(argp2);
30292 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30293 if (!SWIG_IsOK(res3)) {
30294 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
30295 }
30296 if (!argp3) {
30297 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
30298 }
30299 arg3 = reinterpret_cast< wxDC * >(argp3);
30300 {
30301 arg4 = &temp4;
30302 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
30303 }
30304 ecode5 = SWIG_AsVal_int(obj4, &val5);
30305 if (!SWIG_IsOK(ecode5)) {
30306 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
30307 }
30308 arg5 = static_cast< int >(val5);
30309 ecode6 = SWIG_AsVal_int(obj5, &val6);
30310 if (!SWIG_IsOK(ecode6)) {
30311 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
30312 }
30313 arg6 = static_cast< wxOrientation >(val6);
30314 if (obj6) {
30315 ecode7 = SWIG_AsVal_int(obj6, &val7);
30316 if (!SWIG_IsOK(ecode7)) {
30317 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
30318 }
30319 arg7 = static_cast< int >(val7);
30320 }
30321 {
30322 PyThreadState* __tstate = wxPyBeginAllowThreads();
30323 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
30324 wxPyEndAllowThreads(__tstate);
30325 if (PyErr_Occurred()) SWIG_fail;
30326 }
30327 resultobj = SWIG_Py_Void();
30328 return resultobj;
30329 fail:
30330 return NULL;
30331 }
30332
30333
30334 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30335 PyObject *resultobj = 0;
30336 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30337 wxWindow *arg2 = (wxWindow *) 0 ;
30338 wxDC *arg3 = 0 ;
30339 wxRect *arg4 = 0 ;
30340 int arg5 = (int) 0 ;
30341 void *argp1 = 0 ;
30342 int res1 = 0 ;
30343 void *argp2 = 0 ;
30344 int res2 = 0 ;
30345 void *argp3 = 0 ;
30346 int res3 = 0 ;
30347 wxRect temp4 ;
30348 int val5 ;
30349 int ecode5 = 0 ;
30350 PyObject * obj0 = 0 ;
30351 PyObject * obj1 = 0 ;
30352 PyObject * obj2 = 0 ;
30353 PyObject * obj3 = 0 ;
30354 PyObject * obj4 = 0 ;
30355 char * kwnames[] = {
30356 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30357 };
30358
30359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30361 if (!SWIG_IsOK(res1)) {
30362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30363 }
30364 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30365 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30366 if (!SWIG_IsOK(res2)) {
30367 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30368 }
30369 arg2 = reinterpret_cast< wxWindow * >(argp2);
30370 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30371 if (!SWIG_IsOK(res3)) {
30372 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
30373 }
30374 if (!argp3) {
30375 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
30376 }
30377 arg3 = reinterpret_cast< wxDC * >(argp3);
30378 {
30379 arg4 = &temp4;
30380 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30381 }
30382 if (obj4) {
30383 ecode5 = SWIG_AsVal_int(obj4, &val5);
30384 if (!SWIG_IsOK(ecode5)) {
30385 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
30386 }
30387 arg5 = static_cast< int >(val5);
30388 }
30389 {
30390 PyThreadState* __tstate = wxPyBeginAllowThreads();
30391 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30392 wxPyEndAllowThreads(__tstate);
30393 if (PyErr_Occurred()) SWIG_fail;
30394 }
30395 resultobj = SWIG_Py_Void();
30396 return resultobj;
30397 fail:
30398 return NULL;
30399 }
30400
30401
30402 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30403 PyObject *resultobj = 0;
30404 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30405 wxWindow *arg2 = (wxWindow *) 0 ;
30406 wxDC *arg3 = 0 ;
30407 wxRect *arg4 = 0 ;
30408 int arg5 = (int) 0 ;
30409 void *argp1 = 0 ;
30410 int res1 = 0 ;
30411 void *argp2 = 0 ;
30412 int res2 = 0 ;
30413 void *argp3 = 0 ;
30414 int res3 = 0 ;
30415 wxRect temp4 ;
30416 int val5 ;
30417 int ecode5 = 0 ;
30418 PyObject * obj0 = 0 ;
30419 PyObject * obj1 = 0 ;
30420 PyObject * obj2 = 0 ;
30421 PyObject * obj3 = 0 ;
30422 PyObject * obj4 = 0 ;
30423 char * kwnames[] = {
30424 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30425 };
30426
30427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30429 if (!SWIG_IsOK(res1)) {
30430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30431 }
30432 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30433 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30434 if (!SWIG_IsOK(res2)) {
30435 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
30436 }
30437 arg2 = reinterpret_cast< wxWindow * >(argp2);
30438 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30439 if (!SWIG_IsOK(res3)) {
30440 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
30441 }
30442 if (!argp3) {
30443 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
30444 }
30445 arg3 = reinterpret_cast< wxDC * >(argp3);
30446 {
30447 arg4 = &temp4;
30448 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30449 }
30450 if (obj4) {
30451 ecode5 = SWIG_AsVal_int(obj4, &val5);
30452 if (!SWIG_IsOK(ecode5)) {
30453 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
30454 }
30455 arg5 = static_cast< int >(val5);
30456 }
30457 {
30458 PyThreadState* __tstate = wxPyBeginAllowThreads();
30459 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
30460 wxPyEndAllowThreads(__tstate);
30461 if (PyErr_Occurred()) SWIG_fail;
30462 }
30463 resultobj = SWIG_Py_Void();
30464 return resultobj;
30465 fail:
30466 return NULL;
30467 }
30468
30469
30470 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30471 PyObject *resultobj = 0;
30472 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30473 wxWindow *arg2 = (wxWindow *) 0 ;
30474 wxDC *arg3 = 0 ;
30475 wxRect *arg4 = 0 ;
30476 int arg5 = (int) 0 ;
30477 void *argp1 = 0 ;
30478 int res1 = 0 ;
30479 void *argp2 = 0 ;
30480 int res2 = 0 ;
30481 void *argp3 = 0 ;
30482 int res3 = 0 ;
30483 wxRect temp4 ;
30484 int val5 ;
30485 int ecode5 = 0 ;
30486 PyObject * obj0 = 0 ;
30487 PyObject * obj1 = 0 ;
30488 PyObject * obj2 = 0 ;
30489 PyObject * obj3 = 0 ;
30490 PyObject * obj4 = 0 ;
30491 char * kwnames[] = {
30492 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30493 };
30494
30495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30497 if (!SWIG_IsOK(res1)) {
30498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30499 }
30500 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30501 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30502 if (!SWIG_IsOK(res2)) {
30503 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
30504 }
30505 arg2 = reinterpret_cast< wxWindow * >(argp2);
30506 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30507 if (!SWIG_IsOK(res3)) {
30508 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
30509 }
30510 if (!argp3) {
30511 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
30512 }
30513 arg3 = reinterpret_cast< wxDC * >(argp3);
30514 {
30515 arg4 = &temp4;
30516 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30517 }
30518 if (obj4) {
30519 ecode5 = SWIG_AsVal_int(obj4, &val5);
30520 if (!SWIG_IsOK(ecode5)) {
30521 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
30522 }
30523 arg5 = static_cast< int >(val5);
30524 }
30525 {
30526 PyThreadState* __tstate = wxPyBeginAllowThreads();
30527 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
30528 wxPyEndAllowThreads(__tstate);
30529 if (PyErr_Occurred()) SWIG_fail;
30530 }
30531 resultobj = SWIG_Py_Void();
30532 return resultobj;
30533 fail:
30534 return NULL;
30535 }
30536
30537
30538 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30539 PyObject *resultobj = 0;
30540 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30541 wxWindow *arg2 = (wxWindow *) 0 ;
30542 wxDC *arg3 = 0 ;
30543 wxRect *arg4 = 0 ;
30544 int arg5 = (int) 0 ;
30545 void *argp1 = 0 ;
30546 int res1 = 0 ;
30547 void *argp2 = 0 ;
30548 int res2 = 0 ;
30549 void *argp3 = 0 ;
30550 int res3 = 0 ;
30551 wxRect temp4 ;
30552 int val5 ;
30553 int ecode5 = 0 ;
30554 PyObject * obj0 = 0 ;
30555 PyObject * obj1 = 0 ;
30556 PyObject * obj2 = 0 ;
30557 PyObject * obj3 = 0 ;
30558 PyObject * obj4 = 0 ;
30559 char * kwnames[] = {
30560 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30561 };
30562
30563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30565 if (!SWIG_IsOK(res1)) {
30566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30567 }
30568 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30569 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30570 if (!SWIG_IsOK(res2)) {
30571 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30572 }
30573 arg2 = reinterpret_cast< wxWindow * >(argp2);
30574 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30575 if (!SWIG_IsOK(res3)) {
30576 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
30577 }
30578 if (!argp3) {
30579 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
30580 }
30581 arg3 = reinterpret_cast< wxDC * >(argp3);
30582 {
30583 arg4 = &temp4;
30584 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30585 }
30586 if (obj4) {
30587 ecode5 = SWIG_AsVal_int(obj4, &val5);
30588 if (!SWIG_IsOK(ecode5)) {
30589 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
30590 }
30591 arg5 = static_cast< int >(val5);
30592 }
30593 {
30594 PyThreadState* __tstate = wxPyBeginAllowThreads();
30595 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30596 wxPyEndAllowThreads(__tstate);
30597 if (PyErr_Occurred()) SWIG_fail;
30598 }
30599 resultobj = SWIG_Py_Void();
30600 return resultobj;
30601 fail:
30602 return NULL;
30603 }
30604
30605
30606 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30607 PyObject *resultobj = 0;
30608 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30609 wxWindow *arg2 = (wxWindow *) 0 ;
30610 wxDC *arg3 = 0 ;
30611 wxRect *arg4 = 0 ;
30612 int arg5 = (int) 0 ;
30613 void *argp1 = 0 ;
30614 int res1 = 0 ;
30615 void *argp2 = 0 ;
30616 int res2 = 0 ;
30617 void *argp3 = 0 ;
30618 int res3 = 0 ;
30619 wxRect temp4 ;
30620 int val5 ;
30621 int ecode5 = 0 ;
30622 PyObject * obj0 = 0 ;
30623 PyObject * obj1 = 0 ;
30624 PyObject * obj2 = 0 ;
30625 PyObject * obj3 = 0 ;
30626 PyObject * obj4 = 0 ;
30627 char * kwnames[] = {
30628 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30629 };
30630
30631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30633 if (!SWIG_IsOK(res1)) {
30634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30635 }
30636 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30637 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30638 if (!SWIG_IsOK(res2)) {
30639 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
30640 }
30641 arg2 = reinterpret_cast< wxWindow * >(argp2);
30642 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30643 if (!SWIG_IsOK(res3)) {
30644 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
30645 }
30646 if (!argp3) {
30647 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
30648 }
30649 arg3 = reinterpret_cast< wxDC * >(argp3);
30650 {
30651 arg4 = &temp4;
30652 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30653 }
30654 if (obj4) {
30655 ecode5 = SWIG_AsVal_int(obj4, &val5);
30656 if (!SWIG_IsOK(ecode5)) {
30657 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
30658 }
30659 arg5 = static_cast< int >(val5);
30660 }
30661 {
30662 PyThreadState* __tstate = wxPyBeginAllowThreads();
30663 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
30664 wxPyEndAllowThreads(__tstate);
30665 if (PyErr_Occurred()) SWIG_fail;
30666 }
30667 resultobj = SWIG_Py_Void();
30668 return resultobj;
30669 fail:
30670 return NULL;
30671 }
30672
30673
30674 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30675 PyObject *resultobj = 0;
30676 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30677 wxWindow *arg2 = (wxWindow *) 0 ;
30678 SwigValueWrapper<wxSplitterRenderParams > result;
30679 void *argp1 = 0 ;
30680 int res1 = 0 ;
30681 void *argp2 = 0 ;
30682 int res2 = 0 ;
30683 PyObject * obj0 = 0 ;
30684 PyObject * obj1 = 0 ;
30685 char * kwnames[] = {
30686 (char *) "self",(char *) "win", NULL
30687 };
30688
30689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
30690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30691 if (!SWIG_IsOK(res1)) {
30692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30693 }
30694 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30695 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30696 if (!SWIG_IsOK(res2)) {
30697 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
30698 }
30699 arg2 = reinterpret_cast< wxWindow * >(argp2);
30700 {
30701 PyThreadState* __tstate = wxPyBeginAllowThreads();
30702 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
30703 wxPyEndAllowThreads(__tstate);
30704 if (PyErr_Occurred()) SWIG_fail;
30705 }
30706 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
30707 return resultobj;
30708 fail:
30709 return NULL;
30710 }
30711
30712
30713 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30714 PyObject *resultobj = 0;
30715 wxRendererNative *result = 0 ;
30716
30717 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
30718 {
30719 if (!wxPyCheckForApp()) SWIG_fail;
30720 PyThreadState* __tstate = wxPyBeginAllowThreads();
30721 {
30722 wxRendererNative &_result_ref = wxRendererNative::Get();
30723 result = (wxRendererNative *) &_result_ref;
30724 }
30725 wxPyEndAllowThreads(__tstate);
30726 if (PyErr_Occurred()) SWIG_fail;
30727 }
30728 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30729 return resultobj;
30730 fail:
30731 return NULL;
30732 }
30733
30734
30735 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30736 PyObject *resultobj = 0;
30737 wxRendererNative *result = 0 ;
30738
30739 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
30740 {
30741 if (!wxPyCheckForApp()) SWIG_fail;
30742 PyThreadState* __tstate = wxPyBeginAllowThreads();
30743 {
30744 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
30745 result = (wxRendererNative *) &_result_ref;
30746 }
30747 wxPyEndAllowThreads(__tstate);
30748 if (PyErr_Occurred()) SWIG_fail;
30749 }
30750 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30751 return resultobj;
30752 fail:
30753 return NULL;
30754 }
30755
30756
30757 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30758 PyObject *resultobj = 0;
30759 wxRendererNative *result = 0 ;
30760
30761 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
30762 {
30763 if (!wxPyCheckForApp()) SWIG_fail;
30764 PyThreadState* __tstate = wxPyBeginAllowThreads();
30765 {
30766 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
30767 result = (wxRendererNative *) &_result_ref;
30768 }
30769 wxPyEndAllowThreads(__tstate);
30770 if (PyErr_Occurred()) SWIG_fail;
30771 }
30772 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30773 return resultobj;
30774 fail:
30775 return NULL;
30776 }
30777
30778
30779 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30780 PyObject *resultobj = 0;
30781 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30782 wxRendererNative *result = 0 ;
30783 void *argp1 = 0 ;
30784 int res1 = 0 ;
30785 PyObject * obj0 = 0 ;
30786 char * kwnames[] = {
30787 (char *) "renderer", NULL
30788 };
30789
30790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
30791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30792 if (!SWIG_IsOK(res1)) {
30793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30794 }
30795 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30796 {
30797 if (!wxPyCheckForApp()) SWIG_fail;
30798 PyThreadState* __tstate = wxPyBeginAllowThreads();
30799 result = (wxRendererNative *)wxRendererNative::Set(arg1);
30800 wxPyEndAllowThreads(__tstate);
30801 if (PyErr_Occurred()) SWIG_fail;
30802 }
30803 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30804 return resultobj;
30805 fail:
30806 return NULL;
30807 }
30808
30809
30810 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30811 PyObject *resultobj = 0;
30812 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30813 SwigValueWrapper<wxRendererVersion > result;
30814 void *argp1 = 0 ;
30815 int res1 = 0 ;
30816 PyObject *swig_obj[1] ;
30817
30818 if (!args) SWIG_fail;
30819 swig_obj[0] = args;
30820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30821 if (!SWIG_IsOK(res1)) {
30822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
30823 }
30824 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30825 {
30826 PyThreadState* __tstate = wxPyBeginAllowThreads();
30827 result = ((wxRendererNative const *)arg1)->GetVersion();
30828 wxPyEndAllowThreads(__tstate);
30829 if (PyErr_Occurred()) SWIG_fail;
30830 }
30831 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
30832 return resultobj;
30833 fail:
30834 return NULL;
30835 }
30836
30837
30838 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30839 PyObject *obj;
30840 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30841 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
30842 return SWIG_Py_Void();
30843 }
30844
30845 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30846 PyObject *resultobj = 0;
30847 wxPseudoDC *result = 0 ;
30848
30849 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
30850 {
30851 PyThreadState* __tstate = wxPyBeginAllowThreads();
30852 result = (wxPseudoDC *)new wxPseudoDC();
30853 wxPyEndAllowThreads(__tstate);
30854 if (PyErr_Occurred()) SWIG_fail;
30855 }
30856 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
30857 return resultobj;
30858 fail:
30859 return NULL;
30860 }
30861
30862
30863 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30864 PyObject *resultobj = 0;
30865 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30866 void *argp1 = 0 ;
30867 int res1 = 0 ;
30868 PyObject *swig_obj[1] ;
30869
30870 if (!args) SWIG_fail;
30871 swig_obj[0] = args;
30872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30873 if (!SWIG_IsOK(res1)) {
30874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30875 }
30876 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30877 {
30878 PyThreadState* __tstate = wxPyBeginAllowThreads();
30879 (arg1)->BeginDrawing();
30880 wxPyEndAllowThreads(__tstate);
30881 if (PyErr_Occurred()) SWIG_fail;
30882 }
30883 resultobj = SWIG_Py_Void();
30884 return resultobj;
30885 fail:
30886 return NULL;
30887 }
30888
30889
30890 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30891 PyObject *resultobj = 0;
30892 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30893 void *argp1 = 0 ;
30894 int res1 = 0 ;
30895 PyObject *swig_obj[1] ;
30896
30897 if (!args) SWIG_fail;
30898 swig_obj[0] = args;
30899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30900 if (!SWIG_IsOK(res1)) {
30901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30902 }
30903 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30904 {
30905 PyThreadState* __tstate = wxPyBeginAllowThreads();
30906 (arg1)->EndDrawing();
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_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30918 PyObject *resultobj = 0;
30919 wxPseudoDC *arg1 = (wxPseudoDC *) 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_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
30927 if (!SWIG_IsOK(res1)) {
30928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30929 }
30930 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30931 {
30932 PyThreadState* __tstate = wxPyBeginAllowThreads();
30933 delete arg1;
30934
30935 wxPyEndAllowThreads(__tstate);
30936 if (PyErr_Occurred()) SWIG_fail;
30937 }
30938 resultobj = SWIG_Py_Void();
30939 return resultobj;
30940 fail:
30941 return NULL;
30942 }
30943
30944
30945 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30946 PyObject *resultobj = 0;
30947 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30948 void *argp1 = 0 ;
30949 int res1 = 0 ;
30950 PyObject *swig_obj[1] ;
30951
30952 if (!args) SWIG_fail;
30953 swig_obj[0] = args;
30954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30955 if (!SWIG_IsOK(res1)) {
30956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30957 }
30958 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30959 {
30960 PyThreadState* __tstate = wxPyBeginAllowThreads();
30961 (arg1)->RemoveAll();
30962 wxPyEndAllowThreads(__tstate);
30963 if (PyErr_Occurred()) SWIG_fail;
30964 }
30965 resultobj = SWIG_Py_Void();
30966 return resultobj;
30967 fail:
30968 return NULL;
30969 }
30970
30971
30972 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30973 PyObject *resultobj = 0;
30974 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30975 int result;
30976 void *argp1 = 0 ;
30977 int res1 = 0 ;
30978 PyObject *swig_obj[1] ;
30979
30980 if (!args) SWIG_fail;
30981 swig_obj[0] = args;
30982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30983 if (!SWIG_IsOK(res1)) {
30984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30985 }
30986 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30987 {
30988 PyThreadState* __tstate = wxPyBeginAllowThreads();
30989 result = (int)(arg1)->GetLen();
30990 wxPyEndAllowThreads(__tstate);
30991 if (PyErr_Occurred()) SWIG_fail;
30992 }
30993 resultobj = SWIG_From_int(static_cast< int >(result));
30994 return resultobj;
30995 fail:
30996 return NULL;
30997 }
30998
30999
31000 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31001 PyObject *resultobj = 0;
31002 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31003 int arg2 ;
31004 void *argp1 = 0 ;
31005 int res1 = 0 ;
31006 int val2 ;
31007 int ecode2 = 0 ;
31008 PyObject * obj0 = 0 ;
31009 PyObject * obj1 = 0 ;
31010 char * kwnames[] = {
31011 (char *) "self",(char *) "id", NULL
31012 };
31013
31014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
31015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31016 if (!SWIG_IsOK(res1)) {
31017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31018 }
31019 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31020 ecode2 = SWIG_AsVal_int(obj1, &val2);
31021 if (!SWIG_IsOK(ecode2)) {
31022 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
31023 }
31024 arg2 = static_cast< int >(val2);
31025 {
31026 PyThreadState* __tstate = wxPyBeginAllowThreads();
31027 (arg1)->SetId(arg2);
31028 wxPyEndAllowThreads(__tstate);
31029 if (PyErr_Occurred()) SWIG_fail;
31030 }
31031 resultobj = SWIG_Py_Void();
31032 return resultobj;
31033 fail:
31034 return NULL;
31035 }
31036
31037
31038 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31039 PyObject *resultobj = 0;
31040 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31041 int arg2 ;
31042 void *argp1 = 0 ;
31043 int res1 = 0 ;
31044 int val2 ;
31045 int ecode2 = 0 ;
31046 PyObject * obj0 = 0 ;
31047 PyObject * obj1 = 0 ;
31048 char * kwnames[] = {
31049 (char *) "self",(char *) "id", NULL
31050 };
31051
31052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
31053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31054 if (!SWIG_IsOK(res1)) {
31055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31056 }
31057 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31058 ecode2 = SWIG_AsVal_int(obj1, &val2);
31059 if (!SWIG_IsOK(ecode2)) {
31060 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
31061 }
31062 arg2 = static_cast< int >(val2);
31063 {
31064 PyThreadState* __tstate = wxPyBeginAllowThreads();
31065 (arg1)->ClearId(arg2);
31066 wxPyEndAllowThreads(__tstate);
31067 if (PyErr_Occurred()) SWIG_fail;
31068 }
31069 resultobj = SWIG_Py_Void();
31070 return resultobj;
31071 fail:
31072 return NULL;
31073 }
31074
31075
31076 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31077 PyObject *resultobj = 0;
31078 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31079 int arg2 ;
31080 void *argp1 = 0 ;
31081 int res1 = 0 ;
31082 int val2 ;
31083 int ecode2 = 0 ;
31084 PyObject * obj0 = 0 ;
31085 PyObject * obj1 = 0 ;
31086 char * kwnames[] = {
31087 (char *) "self",(char *) "id", NULL
31088 };
31089
31090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
31091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31092 if (!SWIG_IsOK(res1)) {
31093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31094 }
31095 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31096 ecode2 = SWIG_AsVal_int(obj1, &val2);
31097 if (!SWIG_IsOK(ecode2)) {
31098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
31099 }
31100 arg2 = static_cast< int >(val2);
31101 {
31102 PyThreadState* __tstate = wxPyBeginAllowThreads();
31103 (arg1)->RemoveId(arg2);
31104 wxPyEndAllowThreads(__tstate);
31105 if (PyErr_Occurred()) SWIG_fail;
31106 }
31107 resultobj = SWIG_Py_Void();
31108 return resultobj;
31109 fail:
31110 return NULL;
31111 }
31112
31113
31114 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31115 PyObject *resultobj = 0;
31116 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31117 int arg2 ;
31118 int arg3 ;
31119 int arg4 ;
31120 void *argp1 = 0 ;
31121 int res1 = 0 ;
31122 int val2 ;
31123 int ecode2 = 0 ;
31124 int val3 ;
31125 int ecode3 = 0 ;
31126 int val4 ;
31127 int ecode4 = 0 ;
31128 PyObject * obj0 = 0 ;
31129 PyObject * obj1 = 0 ;
31130 PyObject * obj2 = 0 ;
31131 PyObject * obj3 = 0 ;
31132 char * kwnames[] = {
31133 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
31134 };
31135
31136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31138 if (!SWIG_IsOK(res1)) {
31139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31140 }
31141 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31142 ecode2 = SWIG_AsVal_int(obj1, &val2);
31143 if (!SWIG_IsOK(ecode2)) {
31144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
31145 }
31146 arg2 = static_cast< int >(val2);
31147 ecode3 = SWIG_AsVal_int(obj2, &val3);
31148 if (!SWIG_IsOK(ecode3)) {
31149 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
31150 }
31151 arg3 = static_cast< int >(val3);
31152 ecode4 = SWIG_AsVal_int(obj3, &val4);
31153 if (!SWIG_IsOK(ecode4)) {
31154 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
31155 }
31156 arg4 = static_cast< int >(val4);
31157 {
31158 PyThreadState* __tstate = wxPyBeginAllowThreads();
31159 (arg1)->TranslateId(arg2,arg3,arg4);
31160 wxPyEndAllowThreads(__tstate);
31161 if (PyErr_Occurred()) SWIG_fail;
31162 }
31163 resultobj = SWIG_Py_Void();
31164 return resultobj;
31165 fail:
31166 return NULL;
31167 }
31168
31169
31170 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31171 PyObject *resultobj = 0;
31172 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31173 int arg2 ;
31174 bool arg3 = (bool) true ;
31175 void *argp1 = 0 ;
31176 int res1 = 0 ;
31177 int val2 ;
31178 int ecode2 = 0 ;
31179 bool val3 ;
31180 int ecode3 = 0 ;
31181 PyObject * obj0 = 0 ;
31182 PyObject * obj1 = 0 ;
31183 PyObject * obj2 = 0 ;
31184 char * kwnames[] = {
31185 (char *) "self",(char *) "id",(char *) "greyout", NULL
31186 };
31187
31188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31190 if (!SWIG_IsOK(res1)) {
31191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31192 }
31193 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31194 ecode2 = SWIG_AsVal_int(obj1, &val2);
31195 if (!SWIG_IsOK(ecode2)) {
31196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
31197 }
31198 arg2 = static_cast< int >(val2);
31199 if (obj2) {
31200 ecode3 = SWIG_AsVal_bool(obj2, &val3);
31201 if (!SWIG_IsOK(ecode3)) {
31202 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
31203 }
31204 arg3 = static_cast< bool >(val3);
31205 }
31206 {
31207 PyThreadState* __tstate = wxPyBeginAllowThreads();
31208 (arg1)->SetIdGreyedOut(arg2,arg3);
31209 wxPyEndAllowThreads(__tstate);
31210 if (PyErr_Occurred()) SWIG_fail;
31211 }
31212 resultobj = SWIG_Py_Void();
31213 return resultobj;
31214 fail:
31215 return NULL;
31216 }
31217
31218
31219 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31220 PyObject *resultobj = 0;
31221 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31222 int arg2 ;
31223 bool result;
31224 void *argp1 = 0 ;
31225 int res1 = 0 ;
31226 int val2 ;
31227 int ecode2 = 0 ;
31228 PyObject * obj0 = 0 ;
31229 PyObject * obj1 = 0 ;
31230 char * kwnames[] = {
31231 (char *) "self",(char *) "id", NULL
31232 };
31233
31234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
31235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31236 if (!SWIG_IsOK(res1)) {
31237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31238 }
31239 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31240 ecode2 = SWIG_AsVal_int(obj1, &val2);
31241 if (!SWIG_IsOK(ecode2)) {
31242 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
31243 }
31244 arg2 = static_cast< int >(val2);
31245 {
31246 PyThreadState* __tstate = wxPyBeginAllowThreads();
31247 result = (bool)(arg1)->GetIdGreyedOut(arg2);
31248 wxPyEndAllowThreads(__tstate);
31249 if (PyErr_Occurred()) SWIG_fail;
31250 }
31251 {
31252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31253 }
31254 return resultobj;
31255 fail:
31256 return NULL;
31257 }
31258
31259
31260 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31261 PyObject *resultobj = 0;
31262 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31263 int arg2 ;
31264 int arg3 ;
31265 int arg4 = (int) 1 ;
31266 wxColor const &arg5_defvalue = *wxWHITE ;
31267 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
31268 PyObject *result = 0 ;
31269 void *argp1 = 0 ;
31270 int res1 = 0 ;
31271 int val2 ;
31272 int ecode2 = 0 ;
31273 int val3 ;
31274 int ecode3 = 0 ;
31275 int val4 ;
31276 int ecode4 = 0 ;
31277 void *argp5 = 0 ;
31278 int res5 = 0 ;
31279 PyObject * obj0 = 0 ;
31280 PyObject * obj1 = 0 ;
31281 PyObject * obj2 = 0 ;
31282 PyObject * obj3 = 0 ;
31283 PyObject * obj4 = 0 ;
31284 char * kwnames[] = {
31285 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
31286 };
31287
31288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31290 if (!SWIG_IsOK(res1)) {
31291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31292 }
31293 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31294 ecode2 = SWIG_AsVal_int(obj1, &val2);
31295 if (!SWIG_IsOK(ecode2)) {
31296 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
31297 }
31298 arg2 = static_cast< int >(val2);
31299 ecode3 = SWIG_AsVal_int(obj2, &val3);
31300 if (!SWIG_IsOK(ecode3)) {
31301 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
31302 }
31303 arg3 = static_cast< int >(val3);
31304 if (obj3) {
31305 ecode4 = SWIG_AsVal_int(obj3, &val4);
31306 if (!SWIG_IsOK(ecode4)) {
31307 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
31308 }
31309 arg4 = static_cast< int >(val4);
31310 }
31311 if (obj4) {
31312 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
31313 if (!SWIG_IsOK(res5)) {
31314 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
31315 }
31316 if (!argp5) {
31317 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
31318 }
31319 arg5 = reinterpret_cast< wxColor * >(argp5);
31320 }
31321 {
31322 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
31323 if (PyErr_Occurred()) SWIG_fail;
31324 }
31325 resultobj = result;
31326 return resultobj;
31327 fail:
31328 return NULL;
31329 }
31330
31331
31332 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31333 PyObject *resultobj = 0;
31334 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31335 int arg2 ;
31336 int arg3 ;
31337 PyObject *result = 0 ;
31338 void *argp1 = 0 ;
31339 int res1 = 0 ;
31340 int val2 ;
31341 int ecode2 = 0 ;
31342 int val3 ;
31343 int ecode3 = 0 ;
31344 PyObject * obj0 = 0 ;
31345 PyObject * obj1 = 0 ;
31346 PyObject * obj2 = 0 ;
31347 char * kwnames[] = {
31348 (char *) "self",(char *) "x",(char *) "y", NULL
31349 };
31350
31351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31353 if (!SWIG_IsOK(res1)) {
31354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31355 }
31356 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31357 ecode2 = SWIG_AsVal_int(obj1, &val2);
31358 if (!SWIG_IsOK(ecode2)) {
31359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
31360 }
31361 arg2 = static_cast< int >(val2);
31362 ecode3 = SWIG_AsVal_int(obj2, &val3);
31363 if (!SWIG_IsOK(ecode3)) {
31364 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
31365 }
31366 arg3 = static_cast< int >(val3);
31367 {
31368 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
31369 if (PyErr_Occurred()) SWIG_fail;
31370 }
31371 resultobj = result;
31372 return resultobj;
31373 fail:
31374 return NULL;
31375 }
31376
31377
31378 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31379 PyObject *resultobj = 0;
31380 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31381 int arg2 ;
31382 wxDC *arg3 = (wxDC *) 0 ;
31383 void *argp1 = 0 ;
31384 int res1 = 0 ;
31385 int val2 ;
31386 int ecode2 = 0 ;
31387 void *argp3 = 0 ;
31388 int res3 = 0 ;
31389 PyObject * obj0 = 0 ;
31390 PyObject * obj1 = 0 ;
31391 PyObject * obj2 = 0 ;
31392 char * kwnames[] = {
31393 (char *) "self",(char *) "id",(char *) "dc", NULL
31394 };
31395
31396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31398 if (!SWIG_IsOK(res1)) {
31399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31400 }
31401 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31402 ecode2 = SWIG_AsVal_int(obj1, &val2);
31403 if (!SWIG_IsOK(ecode2)) {
31404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
31405 }
31406 arg2 = static_cast< int >(val2);
31407 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
31408 if (!SWIG_IsOK(res3)) {
31409 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
31410 }
31411 arg3 = reinterpret_cast< wxDC * >(argp3);
31412 {
31413 PyThreadState* __tstate = wxPyBeginAllowThreads();
31414 (arg1)->DrawIdToDC(arg2,arg3);
31415 wxPyEndAllowThreads(__tstate);
31416 if (PyErr_Occurred()) SWIG_fail;
31417 }
31418 resultobj = SWIG_Py_Void();
31419 return resultobj;
31420 fail:
31421 return NULL;
31422 }
31423
31424
31425 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31426 PyObject *resultobj = 0;
31427 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31428 int arg2 ;
31429 wxRect *arg3 = 0 ;
31430 void *argp1 = 0 ;
31431 int res1 = 0 ;
31432 int val2 ;
31433 int ecode2 = 0 ;
31434 wxRect temp3 ;
31435 PyObject * obj0 = 0 ;
31436 PyObject * obj1 = 0 ;
31437 PyObject * obj2 = 0 ;
31438 char * kwnames[] = {
31439 (char *) "self",(char *) "id",(char *) "rect", NULL
31440 };
31441
31442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31444 if (!SWIG_IsOK(res1)) {
31445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31446 }
31447 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31448 ecode2 = SWIG_AsVal_int(obj1, &val2);
31449 if (!SWIG_IsOK(ecode2)) {
31450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
31451 }
31452 arg2 = static_cast< int >(val2);
31453 {
31454 arg3 = &temp3;
31455 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
31456 }
31457 {
31458 PyThreadState* __tstate = wxPyBeginAllowThreads();
31459 (arg1)->SetIdBounds(arg2,*arg3);
31460 wxPyEndAllowThreads(__tstate);
31461 if (PyErr_Occurred()) SWIG_fail;
31462 }
31463 resultobj = SWIG_Py_Void();
31464 return resultobj;
31465 fail:
31466 return NULL;
31467 }
31468
31469
31470 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31471 PyObject *resultobj = 0;
31472 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31473 int arg2 ;
31474 wxRect result;
31475 void *argp1 = 0 ;
31476 int res1 = 0 ;
31477 int val2 ;
31478 int ecode2 = 0 ;
31479 PyObject * obj0 = 0 ;
31480 PyObject * obj1 = 0 ;
31481 char * kwnames[] = {
31482 (char *) "self",(char *) "id", NULL
31483 };
31484
31485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
31486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31487 if (!SWIG_IsOK(res1)) {
31488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31489 }
31490 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31491 ecode2 = SWIG_AsVal_int(obj1, &val2);
31492 if (!SWIG_IsOK(ecode2)) {
31493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
31494 }
31495 arg2 = static_cast< int >(val2);
31496 {
31497 PyThreadState* __tstate = wxPyBeginAllowThreads();
31498 result = wxPseudoDC_GetIdBounds(arg1,arg2);
31499 wxPyEndAllowThreads(__tstate);
31500 if (PyErr_Occurred()) SWIG_fail;
31501 }
31502 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
31503 return resultobj;
31504 fail:
31505 return NULL;
31506 }
31507
31508
31509 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31510 PyObject *resultobj = 0;
31511 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31512 wxDC *arg2 = (wxDC *) 0 ;
31513 wxRect *arg3 = 0 ;
31514 void *argp1 = 0 ;
31515 int res1 = 0 ;
31516 void *argp2 = 0 ;
31517 int res2 = 0 ;
31518 wxRect temp3 ;
31519 PyObject * obj0 = 0 ;
31520 PyObject * obj1 = 0 ;
31521 PyObject * obj2 = 0 ;
31522 char * kwnames[] = {
31523 (char *) "self",(char *) "dc",(char *) "rect", NULL
31524 };
31525
31526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31528 if (!SWIG_IsOK(res1)) {
31529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31530 }
31531 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31532 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31533 if (!SWIG_IsOK(res2)) {
31534 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
31535 }
31536 arg2 = reinterpret_cast< wxDC * >(argp2);
31537 {
31538 arg3 = &temp3;
31539 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
31540 }
31541 {
31542 PyThreadState* __tstate = wxPyBeginAllowThreads();
31543 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
31544 wxPyEndAllowThreads(__tstate);
31545 if (PyErr_Occurred()) SWIG_fail;
31546 }
31547 resultobj = SWIG_Py_Void();
31548 return resultobj;
31549 fail:
31550 return NULL;
31551 }
31552
31553
31554 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31555 PyObject *resultobj = 0;
31556 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31557 wxDC *arg2 = (wxDC *) 0 ;
31558 wxRegion *arg3 = 0 ;
31559 void *argp1 = 0 ;
31560 int res1 = 0 ;
31561 void *argp2 = 0 ;
31562 int res2 = 0 ;
31563 void *argp3 = 0 ;
31564 int res3 = 0 ;
31565 PyObject * obj0 = 0 ;
31566 PyObject * obj1 = 0 ;
31567 PyObject * obj2 = 0 ;
31568 char * kwnames[] = {
31569 (char *) "self",(char *) "dc",(char *) "region", NULL
31570 };
31571
31572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31574 if (!SWIG_IsOK(res1)) {
31575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31576 }
31577 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31578 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31579 if (!SWIG_IsOK(res2)) {
31580 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
31581 }
31582 arg2 = reinterpret_cast< wxDC * >(argp2);
31583 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
31584 if (!SWIG_IsOK(res3)) {
31585 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
31586 }
31587 if (!argp3) {
31588 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
31589 }
31590 arg3 = reinterpret_cast< wxRegion * >(argp3);
31591 {
31592 PyThreadState* __tstate = wxPyBeginAllowThreads();
31593 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
31594 wxPyEndAllowThreads(__tstate);
31595 if (PyErr_Occurred()) SWIG_fail;
31596 }
31597 resultobj = SWIG_Py_Void();
31598 return resultobj;
31599 fail:
31600 return NULL;
31601 }
31602
31603
31604 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31605 PyObject *resultobj = 0;
31606 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31607 wxDC *arg2 = (wxDC *) 0 ;
31608 void *argp1 = 0 ;
31609 int res1 = 0 ;
31610 void *argp2 = 0 ;
31611 int res2 = 0 ;
31612 PyObject * obj0 = 0 ;
31613 PyObject * obj1 = 0 ;
31614 char * kwnames[] = {
31615 (char *) "self",(char *) "dc", NULL
31616 };
31617
31618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
31619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31620 if (!SWIG_IsOK(res1)) {
31621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31622 }
31623 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31624 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31625 if (!SWIG_IsOK(res2)) {
31626 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
31627 }
31628 arg2 = reinterpret_cast< wxDC * >(argp2);
31629 {
31630 PyThreadState* __tstate = wxPyBeginAllowThreads();
31631 (arg1)->DrawToDC(arg2);
31632 wxPyEndAllowThreads(__tstate);
31633 if (PyErr_Occurred()) SWIG_fail;
31634 }
31635 resultobj = SWIG_Py_Void();
31636 return resultobj;
31637 fail:
31638 return NULL;
31639 }
31640
31641
31642 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31643 PyObject *resultobj = 0;
31644 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31645 int arg2 ;
31646 int arg3 ;
31647 wxColour *arg4 = 0 ;
31648 int arg5 = (int) wxFLOOD_SURFACE ;
31649 void *argp1 = 0 ;
31650 int res1 = 0 ;
31651 int val2 ;
31652 int ecode2 = 0 ;
31653 int val3 ;
31654 int ecode3 = 0 ;
31655 wxColour temp4 ;
31656 int val5 ;
31657 int ecode5 = 0 ;
31658 PyObject * obj0 = 0 ;
31659 PyObject * obj1 = 0 ;
31660 PyObject * obj2 = 0 ;
31661 PyObject * obj3 = 0 ;
31662 PyObject * obj4 = 0 ;
31663 char * kwnames[] = {
31664 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
31665 };
31666
31667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31669 if (!SWIG_IsOK(res1)) {
31670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31671 }
31672 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31673 ecode2 = SWIG_AsVal_int(obj1, &val2);
31674 if (!SWIG_IsOK(ecode2)) {
31675 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
31676 }
31677 arg2 = static_cast< int >(val2);
31678 ecode3 = SWIG_AsVal_int(obj2, &val3);
31679 if (!SWIG_IsOK(ecode3)) {
31680 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
31681 }
31682 arg3 = static_cast< int >(val3);
31683 {
31684 arg4 = &temp4;
31685 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
31686 }
31687 if (obj4) {
31688 ecode5 = SWIG_AsVal_int(obj4, &val5);
31689 if (!SWIG_IsOK(ecode5)) {
31690 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
31691 }
31692 arg5 = static_cast< int >(val5);
31693 }
31694 {
31695 PyThreadState* __tstate = wxPyBeginAllowThreads();
31696 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
31697 wxPyEndAllowThreads(__tstate);
31698 if (PyErr_Occurred()) SWIG_fail;
31699 }
31700 resultobj = SWIG_Py_Void();
31701 return resultobj;
31702 fail:
31703 return NULL;
31704 }
31705
31706
31707 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31708 PyObject *resultobj = 0;
31709 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31710 wxPoint *arg2 = 0 ;
31711 wxColour *arg3 = 0 ;
31712 int arg4 = (int) wxFLOOD_SURFACE ;
31713 void *argp1 = 0 ;
31714 int res1 = 0 ;
31715 wxPoint temp2 ;
31716 wxColour temp3 ;
31717 int val4 ;
31718 int ecode4 = 0 ;
31719 PyObject * obj0 = 0 ;
31720 PyObject * obj1 = 0 ;
31721 PyObject * obj2 = 0 ;
31722 PyObject * obj3 = 0 ;
31723 char * kwnames[] = {
31724 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
31725 };
31726
31727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31729 if (!SWIG_IsOK(res1)) {
31730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31731 }
31732 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31733 {
31734 arg2 = &temp2;
31735 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31736 }
31737 {
31738 arg3 = &temp3;
31739 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31740 }
31741 if (obj3) {
31742 ecode4 = SWIG_AsVal_int(obj3, &val4);
31743 if (!SWIG_IsOK(ecode4)) {
31744 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
31745 }
31746 arg4 = static_cast< int >(val4);
31747 }
31748 {
31749 PyThreadState* __tstate = wxPyBeginAllowThreads();
31750 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
31751 wxPyEndAllowThreads(__tstate);
31752 if (PyErr_Occurred()) SWIG_fail;
31753 }
31754 resultobj = SWIG_Py_Void();
31755 return resultobj;
31756 fail:
31757 return NULL;
31758 }
31759
31760
31761 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31762 PyObject *resultobj = 0;
31763 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31764 int arg2 ;
31765 int arg3 ;
31766 int arg4 ;
31767 int arg5 ;
31768 void *argp1 = 0 ;
31769 int res1 = 0 ;
31770 int val2 ;
31771 int ecode2 = 0 ;
31772 int val3 ;
31773 int ecode3 = 0 ;
31774 int val4 ;
31775 int ecode4 = 0 ;
31776 int val5 ;
31777 int ecode5 = 0 ;
31778 PyObject * obj0 = 0 ;
31779 PyObject * obj1 = 0 ;
31780 PyObject * obj2 = 0 ;
31781 PyObject * obj3 = 0 ;
31782 PyObject * obj4 = 0 ;
31783 char * kwnames[] = {
31784 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
31785 };
31786
31787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31789 if (!SWIG_IsOK(res1)) {
31790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31791 }
31792 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31793 ecode2 = SWIG_AsVal_int(obj1, &val2);
31794 if (!SWIG_IsOK(ecode2)) {
31795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
31796 }
31797 arg2 = static_cast< int >(val2);
31798 ecode3 = SWIG_AsVal_int(obj2, &val3);
31799 if (!SWIG_IsOK(ecode3)) {
31800 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
31801 }
31802 arg3 = static_cast< int >(val3);
31803 ecode4 = SWIG_AsVal_int(obj3, &val4);
31804 if (!SWIG_IsOK(ecode4)) {
31805 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
31806 }
31807 arg4 = static_cast< int >(val4);
31808 ecode5 = SWIG_AsVal_int(obj4, &val5);
31809 if (!SWIG_IsOK(ecode5)) {
31810 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
31811 }
31812 arg5 = static_cast< int >(val5);
31813 {
31814 PyThreadState* __tstate = wxPyBeginAllowThreads();
31815 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
31816 wxPyEndAllowThreads(__tstate);
31817 if (PyErr_Occurred()) SWIG_fail;
31818 }
31819 resultobj = SWIG_Py_Void();
31820 return resultobj;
31821 fail:
31822 return NULL;
31823 }
31824
31825
31826 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31827 PyObject *resultobj = 0;
31828 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31829 wxPoint *arg2 = 0 ;
31830 wxPoint *arg3 = 0 ;
31831 void *argp1 = 0 ;
31832 int res1 = 0 ;
31833 wxPoint temp2 ;
31834 wxPoint temp3 ;
31835 PyObject * obj0 = 0 ;
31836 PyObject * obj1 = 0 ;
31837 PyObject * obj2 = 0 ;
31838 char * kwnames[] = {
31839 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
31840 };
31841
31842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31844 if (!SWIG_IsOK(res1)) {
31845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31846 }
31847 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31848 {
31849 arg2 = &temp2;
31850 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31851 }
31852 {
31853 arg3 = &temp3;
31854 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31855 }
31856 {
31857 PyThreadState* __tstate = wxPyBeginAllowThreads();
31858 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
31859 wxPyEndAllowThreads(__tstate);
31860 if (PyErr_Occurred()) SWIG_fail;
31861 }
31862 resultobj = SWIG_Py_Void();
31863 return resultobj;
31864 fail:
31865 return NULL;
31866 }
31867
31868
31869 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31870 PyObject *resultobj = 0;
31871 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31872 int arg2 ;
31873 int arg3 ;
31874 void *argp1 = 0 ;
31875 int res1 = 0 ;
31876 int val2 ;
31877 int ecode2 = 0 ;
31878 int val3 ;
31879 int ecode3 = 0 ;
31880 PyObject * obj0 = 0 ;
31881 PyObject * obj1 = 0 ;
31882 PyObject * obj2 = 0 ;
31883 char * kwnames[] = {
31884 (char *) "self",(char *) "x",(char *) "y", NULL
31885 };
31886
31887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31889 if (!SWIG_IsOK(res1)) {
31890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31891 }
31892 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31893 ecode2 = SWIG_AsVal_int(obj1, &val2);
31894 if (!SWIG_IsOK(ecode2)) {
31895 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
31896 }
31897 arg2 = static_cast< int >(val2);
31898 ecode3 = SWIG_AsVal_int(obj2, &val3);
31899 if (!SWIG_IsOK(ecode3)) {
31900 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
31901 }
31902 arg3 = static_cast< int >(val3);
31903 {
31904 PyThreadState* __tstate = wxPyBeginAllowThreads();
31905 (arg1)->CrossHair(arg2,arg3);
31906 wxPyEndAllowThreads(__tstate);
31907 if (PyErr_Occurred()) SWIG_fail;
31908 }
31909 resultobj = SWIG_Py_Void();
31910 return resultobj;
31911 fail:
31912 return NULL;
31913 }
31914
31915
31916 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31917 PyObject *resultobj = 0;
31918 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31919 wxPoint *arg2 = 0 ;
31920 void *argp1 = 0 ;
31921 int res1 = 0 ;
31922 wxPoint temp2 ;
31923 PyObject * obj0 = 0 ;
31924 PyObject * obj1 = 0 ;
31925 char * kwnames[] = {
31926 (char *) "self",(char *) "pt", NULL
31927 };
31928
31929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
31930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31931 if (!SWIG_IsOK(res1)) {
31932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31933 }
31934 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31935 {
31936 arg2 = &temp2;
31937 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31938 }
31939 {
31940 PyThreadState* __tstate = wxPyBeginAllowThreads();
31941 (arg1)->CrossHair((wxPoint const &)*arg2);
31942 wxPyEndAllowThreads(__tstate);
31943 if (PyErr_Occurred()) SWIG_fail;
31944 }
31945 resultobj = SWIG_Py_Void();
31946 return resultobj;
31947 fail:
31948 return NULL;
31949 }
31950
31951
31952 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31953 PyObject *resultobj = 0;
31954 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31955 int arg2 ;
31956 int arg3 ;
31957 int arg4 ;
31958 int arg5 ;
31959 int arg6 ;
31960 int arg7 ;
31961 void *argp1 = 0 ;
31962 int res1 = 0 ;
31963 int val2 ;
31964 int ecode2 = 0 ;
31965 int val3 ;
31966 int ecode3 = 0 ;
31967 int val4 ;
31968 int ecode4 = 0 ;
31969 int val5 ;
31970 int ecode5 = 0 ;
31971 int val6 ;
31972 int ecode6 = 0 ;
31973 int val7 ;
31974 int ecode7 = 0 ;
31975 PyObject * obj0 = 0 ;
31976 PyObject * obj1 = 0 ;
31977 PyObject * obj2 = 0 ;
31978 PyObject * obj3 = 0 ;
31979 PyObject * obj4 = 0 ;
31980 PyObject * obj5 = 0 ;
31981 PyObject * obj6 = 0 ;
31982 char * kwnames[] = {
31983 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
31984 };
31985
31986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31988 if (!SWIG_IsOK(res1)) {
31989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31990 }
31991 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31992 ecode2 = SWIG_AsVal_int(obj1, &val2);
31993 if (!SWIG_IsOK(ecode2)) {
31994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
31995 }
31996 arg2 = static_cast< int >(val2);
31997 ecode3 = SWIG_AsVal_int(obj2, &val3);
31998 if (!SWIG_IsOK(ecode3)) {
31999 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
32000 }
32001 arg3 = static_cast< int >(val3);
32002 ecode4 = SWIG_AsVal_int(obj3, &val4);
32003 if (!SWIG_IsOK(ecode4)) {
32004 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
32005 }
32006 arg4 = static_cast< int >(val4);
32007 ecode5 = SWIG_AsVal_int(obj4, &val5);
32008 if (!SWIG_IsOK(ecode5)) {
32009 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
32010 }
32011 arg5 = static_cast< int >(val5);
32012 ecode6 = SWIG_AsVal_int(obj5, &val6);
32013 if (!SWIG_IsOK(ecode6)) {
32014 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
32015 }
32016 arg6 = static_cast< int >(val6);
32017 ecode7 = SWIG_AsVal_int(obj6, &val7);
32018 if (!SWIG_IsOK(ecode7)) {
32019 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
32020 }
32021 arg7 = static_cast< int >(val7);
32022 {
32023 PyThreadState* __tstate = wxPyBeginAllowThreads();
32024 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
32025 wxPyEndAllowThreads(__tstate);
32026 if (PyErr_Occurred()) SWIG_fail;
32027 }
32028 resultobj = SWIG_Py_Void();
32029 return resultobj;
32030 fail:
32031 return NULL;
32032 }
32033
32034
32035 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32036 PyObject *resultobj = 0;
32037 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32038 wxPoint *arg2 = 0 ;
32039 wxPoint *arg3 = 0 ;
32040 wxPoint *arg4 = 0 ;
32041 void *argp1 = 0 ;
32042 int res1 = 0 ;
32043 wxPoint temp2 ;
32044 wxPoint temp3 ;
32045 wxPoint temp4 ;
32046 PyObject * obj0 = 0 ;
32047 PyObject * obj1 = 0 ;
32048 PyObject * obj2 = 0 ;
32049 PyObject * obj3 = 0 ;
32050 char * kwnames[] = {
32051 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
32052 };
32053
32054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32056 if (!SWIG_IsOK(res1)) {
32057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32058 }
32059 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32060 {
32061 arg2 = &temp2;
32062 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32063 }
32064 {
32065 arg3 = &temp3;
32066 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32067 }
32068 {
32069 arg4 = &temp4;
32070 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
32071 }
32072 {
32073 PyThreadState* __tstate = wxPyBeginAllowThreads();
32074 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
32075 wxPyEndAllowThreads(__tstate);
32076 if (PyErr_Occurred()) SWIG_fail;
32077 }
32078 resultobj = SWIG_Py_Void();
32079 return resultobj;
32080 fail:
32081 return NULL;
32082 }
32083
32084
32085 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32086 PyObject *resultobj = 0;
32087 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32088 int arg2 ;
32089 int arg3 ;
32090 int arg4 ;
32091 int arg5 ;
32092 void *argp1 = 0 ;
32093 int res1 = 0 ;
32094 int val2 ;
32095 int ecode2 = 0 ;
32096 int val3 ;
32097 int ecode3 = 0 ;
32098 int val4 ;
32099 int ecode4 = 0 ;
32100 int val5 ;
32101 int ecode5 = 0 ;
32102 PyObject * obj0 = 0 ;
32103 PyObject * obj1 = 0 ;
32104 PyObject * obj2 = 0 ;
32105 PyObject * obj3 = 0 ;
32106 PyObject * obj4 = 0 ;
32107 char * kwnames[] = {
32108 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
32109 };
32110
32111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32113 if (!SWIG_IsOK(res1)) {
32114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32115 }
32116 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32117 ecode2 = SWIG_AsVal_int(obj1, &val2);
32118 if (!SWIG_IsOK(ecode2)) {
32119 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
32120 }
32121 arg2 = static_cast< int >(val2);
32122 ecode3 = SWIG_AsVal_int(obj2, &val3);
32123 if (!SWIG_IsOK(ecode3)) {
32124 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
32125 }
32126 arg3 = static_cast< int >(val3);
32127 ecode4 = SWIG_AsVal_int(obj3, &val4);
32128 if (!SWIG_IsOK(ecode4)) {
32129 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
32130 }
32131 arg4 = static_cast< int >(val4);
32132 ecode5 = SWIG_AsVal_int(obj4, &val5);
32133 if (!SWIG_IsOK(ecode5)) {
32134 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
32135 }
32136 arg5 = static_cast< int >(val5);
32137 {
32138 PyThreadState* __tstate = wxPyBeginAllowThreads();
32139 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
32140 wxPyEndAllowThreads(__tstate);
32141 if (PyErr_Occurred()) SWIG_fail;
32142 }
32143 resultobj = SWIG_Py_Void();
32144 return resultobj;
32145 fail:
32146 return NULL;
32147 }
32148
32149
32150 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32151 PyObject *resultobj = 0;
32152 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32153 wxRect *arg2 = 0 ;
32154 void *argp1 = 0 ;
32155 int res1 = 0 ;
32156 wxRect temp2 ;
32157 PyObject * obj0 = 0 ;
32158 PyObject * obj1 = 0 ;
32159 char * kwnames[] = {
32160 (char *) "self",(char *) "rect", NULL
32161 };
32162
32163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
32164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32165 if (!SWIG_IsOK(res1)) {
32166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32167 }
32168 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32169 {
32170 arg2 = &temp2;
32171 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32172 }
32173 {
32174 PyThreadState* __tstate = wxPyBeginAllowThreads();
32175 (arg1)->DrawCheckMark((wxRect const &)*arg2);
32176 wxPyEndAllowThreads(__tstate);
32177 if (PyErr_Occurred()) SWIG_fail;
32178 }
32179 resultobj = SWIG_Py_Void();
32180 return resultobj;
32181 fail:
32182 return NULL;
32183 }
32184
32185
32186 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32187 PyObject *resultobj = 0;
32188 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32189 int arg2 ;
32190 int arg3 ;
32191 int arg4 ;
32192 int arg5 ;
32193 double arg6 ;
32194 double arg7 ;
32195 void *argp1 = 0 ;
32196 int res1 = 0 ;
32197 int val2 ;
32198 int ecode2 = 0 ;
32199 int val3 ;
32200 int ecode3 = 0 ;
32201 int val4 ;
32202 int ecode4 = 0 ;
32203 int val5 ;
32204 int ecode5 = 0 ;
32205 double val6 ;
32206 int ecode6 = 0 ;
32207 double val7 ;
32208 int ecode7 = 0 ;
32209 PyObject * obj0 = 0 ;
32210 PyObject * obj1 = 0 ;
32211 PyObject * obj2 = 0 ;
32212 PyObject * obj3 = 0 ;
32213 PyObject * obj4 = 0 ;
32214 PyObject * obj5 = 0 ;
32215 PyObject * obj6 = 0 ;
32216 char * kwnames[] = {
32217 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
32218 };
32219
32220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32222 if (!SWIG_IsOK(res1)) {
32223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32224 }
32225 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32226 ecode2 = SWIG_AsVal_int(obj1, &val2);
32227 if (!SWIG_IsOK(ecode2)) {
32228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
32229 }
32230 arg2 = static_cast< int >(val2);
32231 ecode3 = SWIG_AsVal_int(obj2, &val3);
32232 if (!SWIG_IsOK(ecode3)) {
32233 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
32234 }
32235 arg3 = static_cast< int >(val3);
32236 ecode4 = SWIG_AsVal_int(obj3, &val4);
32237 if (!SWIG_IsOK(ecode4)) {
32238 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
32239 }
32240 arg4 = static_cast< int >(val4);
32241 ecode5 = SWIG_AsVal_int(obj4, &val5);
32242 if (!SWIG_IsOK(ecode5)) {
32243 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
32244 }
32245 arg5 = static_cast< int >(val5);
32246 ecode6 = SWIG_AsVal_double(obj5, &val6);
32247 if (!SWIG_IsOK(ecode6)) {
32248 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
32249 }
32250 arg6 = static_cast< double >(val6);
32251 ecode7 = SWIG_AsVal_double(obj6, &val7);
32252 if (!SWIG_IsOK(ecode7)) {
32253 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
32254 }
32255 arg7 = static_cast< double >(val7);
32256 {
32257 PyThreadState* __tstate = wxPyBeginAllowThreads();
32258 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
32259 wxPyEndAllowThreads(__tstate);
32260 if (PyErr_Occurred()) SWIG_fail;
32261 }
32262 resultobj = SWIG_Py_Void();
32263 return resultobj;
32264 fail:
32265 return NULL;
32266 }
32267
32268
32269 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32270 PyObject *resultobj = 0;
32271 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32272 wxPoint *arg2 = 0 ;
32273 wxSize *arg3 = 0 ;
32274 double arg4 ;
32275 double arg5 ;
32276 void *argp1 = 0 ;
32277 int res1 = 0 ;
32278 wxPoint temp2 ;
32279 wxSize temp3 ;
32280 double val4 ;
32281 int ecode4 = 0 ;
32282 double val5 ;
32283 int ecode5 = 0 ;
32284 PyObject * obj0 = 0 ;
32285 PyObject * obj1 = 0 ;
32286 PyObject * obj2 = 0 ;
32287 PyObject * obj3 = 0 ;
32288 PyObject * obj4 = 0 ;
32289 char * kwnames[] = {
32290 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
32291 };
32292
32293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32295 if (!SWIG_IsOK(res1)) {
32296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32297 }
32298 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32299 {
32300 arg2 = &temp2;
32301 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32302 }
32303 {
32304 arg3 = &temp3;
32305 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32306 }
32307 ecode4 = SWIG_AsVal_double(obj3, &val4);
32308 if (!SWIG_IsOK(ecode4)) {
32309 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
32310 }
32311 arg4 = static_cast< double >(val4);
32312 ecode5 = SWIG_AsVal_double(obj4, &val5);
32313 if (!SWIG_IsOK(ecode5)) {
32314 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
32315 }
32316 arg5 = static_cast< double >(val5);
32317 {
32318 PyThreadState* __tstate = wxPyBeginAllowThreads();
32319 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
32320 wxPyEndAllowThreads(__tstate);
32321 if (PyErr_Occurred()) SWIG_fail;
32322 }
32323 resultobj = SWIG_Py_Void();
32324 return resultobj;
32325 fail:
32326 return NULL;
32327 }
32328
32329
32330 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32331 PyObject *resultobj = 0;
32332 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32333 int arg2 ;
32334 int arg3 ;
32335 void *argp1 = 0 ;
32336 int res1 = 0 ;
32337 int val2 ;
32338 int ecode2 = 0 ;
32339 int val3 ;
32340 int ecode3 = 0 ;
32341 PyObject * obj0 = 0 ;
32342 PyObject * obj1 = 0 ;
32343 PyObject * obj2 = 0 ;
32344 char * kwnames[] = {
32345 (char *) "self",(char *) "x",(char *) "y", NULL
32346 };
32347
32348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32350 if (!SWIG_IsOK(res1)) {
32351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32352 }
32353 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32354 ecode2 = SWIG_AsVal_int(obj1, &val2);
32355 if (!SWIG_IsOK(ecode2)) {
32356 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
32357 }
32358 arg2 = static_cast< int >(val2);
32359 ecode3 = SWIG_AsVal_int(obj2, &val3);
32360 if (!SWIG_IsOK(ecode3)) {
32361 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
32362 }
32363 arg3 = static_cast< int >(val3);
32364 {
32365 PyThreadState* __tstate = wxPyBeginAllowThreads();
32366 (arg1)->DrawPoint(arg2,arg3);
32367 wxPyEndAllowThreads(__tstate);
32368 if (PyErr_Occurred()) SWIG_fail;
32369 }
32370 resultobj = SWIG_Py_Void();
32371 return resultobj;
32372 fail:
32373 return NULL;
32374 }
32375
32376
32377 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32378 PyObject *resultobj = 0;
32379 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32380 wxPoint *arg2 = 0 ;
32381 void *argp1 = 0 ;
32382 int res1 = 0 ;
32383 wxPoint temp2 ;
32384 PyObject * obj0 = 0 ;
32385 PyObject * obj1 = 0 ;
32386 char * kwnames[] = {
32387 (char *) "self",(char *) "pt", NULL
32388 };
32389
32390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32392 if (!SWIG_IsOK(res1)) {
32393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32394 }
32395 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32396 {
32397 arg2 = &temp2;
32398 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32399 }
32400 {
32401 PyThreadState* __tstate = wxPyBeginAllowThreads();
32402 (arg1)->DrawPoint((wxPoint const &)*arg2);
32403 wxPyEndAllowThreads(__tstate);
32404 if (PyErr_Occurred()) SWIG_fail;
32405 }
32406 resultobj = SWIG_Py_Void();
32407 return resultobj;
32408 fail:
32409 return NULL;
32410 }
32411
32412
32413 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32414 PyObject *resultobj = 0;
32415 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32416 int arg2 ;
32417 int arg3 ;
32418 int arg4 ;
32419 int arg5 ;
32420 void *argp1 = 0 ;
32421 int res1 = 0 ;
32422 int val2 ;
32423 int ecode2 = 0 ;
32424 int val3 ;
32425 int ecode3 = 0 ;
32426 int val4 ;
32427 int ecode4 = 0 ;
32428 int val5 ;
32429 int ecode5 = 0 ;
32430 PyObject * obj0 = 0 ;
32431 PyObject * obj1 = 0 ;
32432 PyObject * obj2 = 0 ;
32433 PyObject * obj3 = 0 ;
32434 PyObject * obj4 = 0 ;
32435 char * kwnames[] = {
32436 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
32437 };
32438
32439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32441 if (!SWIG_IsOK(res1)) {
32442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32443 }
32444 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32445 ecode2 = SWIG_AsVal_int(obj1, &val2);
32446 if (!SWIG_IsOK(ecode2)) {
32447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
32448 }
32449 arg2 = static_cast< int >(val2);
32450 ecode3 = SWIG_AsVal_int(obj2, &val3);
32451 if (!SWIG_IsOK(ecode3)) {
32452 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
32453 }
32454 arg3 = static_cast< int >(val3);
32455 ecode4 = SWIG_AsVal_int(obj3, &val4);
32456 if (!SWIG_IsOK(ecode4)) {
32457 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
32458 }
32459 arg4 = static_cast< int >(val4);
32460 ecode5 = SWIG_AsVal_int(obj4, &val5);
32461 if (!SWIG_IsOK(ecode5)) {
32462 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
32463 }
32464 arg5 = static_cast< int >(val5);
32465 {
32466 PyThreadState* __tstate = wxPyBeginAllowThreads();
32467 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
32468 wxPyEndAllowThreads(__tstate);
32469 if (PyErr_Occurred()) SWIG_fail;
32470 }
32471 resultobj = SWIG_Py_Void();
32472 return resultobj;
32473 fail:
32474 return NULL;
32475 }
32476
32477
32478 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32479 PyObject *resultobj = 0;
32480 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32481 wxRect *arg2 = 0 ;
32482 void *argp1 = 0 ;
32483 int res1 = 0 ;
32484 wxRect temp2 ;
32485 PyObject * obj0 = 0 ;
32486 PyObject * obj1 = 0 ;
32487 char * kwnames[] = {
32488 (char *) "self",(char *) "rect", NULL
32489 };
32490
32491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
32492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32493 if (!SWIG_IsOK(res1)) {
32494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32495 }
32496 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32497 {
32498 arg2 = &temp2;
32499 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32500 }
32501 {
32502 PyThreadState* __tstate = wxPyBeginAllowThreads();
32503 (arg1)->DrawRectangle((wxRect const &)*arg2);
32504 wxPyEndAllowThreads(__tstate);
32505 if (PyErr_Occurred()) SWIG_fail;
32506 }
32507 resultobj = SWIG_Py_Void();
32508 return resultobj;
32509 fail:
32510 return NULL;
32511 }
32512
32513
32514 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32515 PyObject *resultobj = 0;
32516 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32517 wxPoint *arg2 = 0 ;
32518 wxSize *arg3 = 0 ;
32519 void *argp1 = 0 ;
32520 int res1 = 0 ;
32521 wxPoint temp2 ;
32522 wxSize temp3 ;
32523 PyObject * obj0 = 0 ;
32524 PyObject * obj1 = 0 ;
32525 PyObject * obj2 = 0 ;
32526 char * kwnames[] = {
32527 (char *) "self",(char *) "pt",(char *) "sz", NULL
32528 };
32529
32530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32532 if (!SWIG_IsOK(res1)) {
32533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32534 }
32535 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32536 {
32537 arg2 = &temp2;
32538 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32539 }
32540 {
32541 arg3 = &temp3;
32542 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32543 }
32544 {
32545 PyThreadState* __tstate = wxPyBeginAllowThreads();
32546 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
32547 wxPyEndAllowThreads(__tstate);
32548 if (PyErr_Occurred()) SWIG_fail;
32549 }
32550 resultobj = SWIG_Py_Void();
32551 return resultobj;
32552 fail:
32553 return NULL;
32554 }
32555
32556
32557 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32558 PyObject *resultobj = 0;
32559 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32560 int arg2 ;
32561 int arg3 ;
32562 int arg4 ;
32563 int arg5 ;
32564 double arg6 ;
32565 void *argp1 = 0 ;
32566 int res1 = 0 ;
32567 int val2 ;
32568 int ecode2 = 0 ;
32569 int val3 ;
32570 int ecode3 = 0 ;
32571 int val4 ;
32572 int ecode4 = 0 ;
32573 int val5 ;
32574 int ecode5 = 0 ;
32575 double val6 ;
32576 int ecode6 = 0 ;
32577 PyObject * obj0 = 0 ;
32578 PyObject * obj1 = 0 ;
32579 PyObject * obj2 = 0 ;
32580 PyObject * obj3 = 0 ;
32581 PyObject * obj4 = 0 ;
32582 PyObject * obj5 = 0 ;
32583 char * kwnames[] = {
32584 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
32585 };
32586
32587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
32588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32589 if (!SWIG_IsOK(res1)) {
32590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32591 }
32592 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32593 ecode2 = SWIG_AsVal_int(obj1, &val2);
32594 if (!SWIG_IsOK(ecode2)) {
32595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
32596 }
32597 arg2 = static_cast< int >(val2);
32598 ecode3 = SWIG_AsVal_int(obj2, &val3);
32599 if (!SWIG_IsOK(ecode3)) {
32600 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
32601 }
32602 arg3 = static_cast< int >(val3);
32603 ecode4 = SWIG_AsVal_int(obj3, &val4);
32604 if (!SWIG_IsOK(ecode4)) {
32605 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
32606 }
32607 arg4 = static_cast< int >(val4);
32608 ecode5 = SWIG_AsVal_int(obj4, &val5);
32609 if (!SWIG_IsOK(ecode5)) {
32610 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
32611 }
32612 arg5 = static_cast< int >(val5);
32613 ecode6 = SWIG_AsVal_double(obj5, &val6);
32614 if (!SWIG_IsOK(ecode6)) {
32615 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
32616 }
32617 arg6 = static_cast< double >(val6);
32618 {
32619 PyThreadState* __tstate = wxPyBeginAllowThreads();
32620 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
32621 wxPyEndAllowThreads(__tstate);
32622 if (PyErr_Occurred()) SWIG_fail;
32623 }
32624 resultobj = SWIG_Py_Void();
32625 return resultobj;
32626 fail:
32627 return NULL;
32628 }
32629
32630
32631 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32632 PyObject *resultobj = 0;
32633 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32634 wxRect *arg2 = 0 ;
32635 double arg3 ;
32636 void *argp1 = 0 ;
32637 int res1 = 0 ;
32638 wxRect temp2 ;
32639 double val3 ;
32640 int ecode3 = 0 ;
32641 PyObject * obj0 = 0 ;
32642 PyObject * obj1 = 0 ;
32643 PyObject * obj2 = 0 ;
32644 char * kwnames[] = {
32645 (char *) "self",(char *) "r",(char *) "radius", NULL
32646 };
32647
32648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32650 if (!SWIG_IsOK(res1)) {
32651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32652 }
32653 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32654 {
32655 arg2 = &temp2;
32656 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32657 }
32658 ecode3 = SWIG_AsVal_double(obj2, &val3);
32659 if (!SWIG_IsOK(ecode3)) {
32660 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
32661 }
32662 arg3 = static_cast< double >(val3);
32663 {
32664 PyThreadState* __tstate = wxPyBeginAllowThreads();
32665 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
32666 wxPyEndAllowThreads(__tstate);
32667 if (PyErr_Occurred()) SWIG_fail;
32668 }
32669 resultobj = SWIG_Py_Void();
32670 return resultobj;
32671 fail:
32672 return NULL;
32673 }
32674
32675
32676 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32677 PyObject *resultobj = 0;
32678 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32679 wxPoint *arg2 = 0 ;
32680 wxSize *arg3 = 0 ;
32681 double arg4 ;
32682 void *argp1 = 0 ;
32683 int res1 = 0 ;
32684 wxPoint temp2 ;
32685 wxSize temp3 ;
32686 double val4 ;
32687 int ecode4 = 0 ;
32688 PyObject * obj0 = 0 ;
32689 PyObject * obj1 = 0 ;
32690 PyObject * obj2 = 0 ;
32691 PyObject * obj3 = 0 ;
32692 char * kwnames[] = {
32693 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
32694 };
32695
32696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32698 if (!SWIG_IsOK(res1)) {
32699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32700 }
32701 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32702 {
32703 arg2 = &temp2;
32704 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32705 }
32706 {
32707 arg3 = &temp3;
32708 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32709 }
32710 ecode4 = SWIG_AsVal_double(obj3, &val4);
32711 if (!SWIG_IsOK(ecode4)) {
32712 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
32713 }
32714 arg4 = static_cast< double >(val4);
32715 {
32716 PyThreadState* __tstate = wxPyBeginAllowThreads();
32717 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
32718 wxPyEndAllowThreads(__tstate);
32719 if (PyErr_Occurred()) SWIG_fail;
32720 }
32721 resultobj = SWIG_Py_Void();
32722 return resultobj;
32723 fail:
32724 return NULL;
32725 }
32726
32727
32728 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32729 PyObject *resultobj = 0;
32730 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32731 int arg2 ;
32732 int arg3 ;
32733 int arg4 ;
32734 void *argp1 = 0 ;
32735 int res1 = 0 ;
32736 int val2 ;
32737 int ecode2 = 0 ;
32738 int val3 ;
32739 int ecode3 = 0 ;
32740 int val4 ;
32741 int ecode4 = 0 ;
32742 PyObject * obj0 = 0 ;
32743 PyObject * obj1 = 0 ;
32744 PyObject * obj2 = 0 ;
32745 PyObject * obj3 = 0 ;
32746 char * kwnames[] = {
32747 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
32748 };
32749
32750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32752 if (!SWIG_IsOK(res1)) {
32753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32754 }
32755 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32756 ecode2 = SWIG_AsVal_int(obj1, &val2);
32757 if (!SWIG_IsOK(ecode2)) {
32758 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
32759 }
32760 arg2 = static_cast< int >(val2);
32761 ecode3 = SWIG_AsVal_int(obj2, &val3);
32762 if (!SWIG_IsOK(ecode3)) {
32763 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
32764 }
32765 arg3 = static_cast< int >(val3);
32766 ecode4 = SWIG_AsVal_int(obj3, &val4);
32767 if (!SWIG_IsOK(ecode4)) {
32768 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
32769 }
32770 arg4 = static_cast< int >(val4);
32771 {
32772 PyThreadState* __tstate = wxPyBeginAllowThreads();
32773 (arg1)->DrawCircle(arg2,arg3,arg4);
32774 wxPyEndAllowThreads(__tstate);
32775 if (PyErr_Occurred()) SWIG_fail;
32776 }
32777 resultobj = SWIG_Py_Void();
32778 return resultobj;
32779 fail:
32780 return NULL;
32781 }
32782
32783
32784 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32785 PyObject *resultobj = 0;
32786 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32787 wxPoint *arg2 = 0 ;
32788 int arg3 ;
32789 void *argp1 = 0 ;
32790 int res1 = 0 ;
32791 wxPoint temp2 ;
32792 int val3 ;
32793 int ecode3 = 0 ;
32794 PyObject * obj0 = 0 ;
32795 PyObject * obj1 = 0 ;
32796 PyObject * obj2 = 0 ;
32797 char * kwnames[] = {
32798 (char *) "self",(char *) "pt",(char *) "radius", NULL
32799 };
32800
32801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32803 if (!SWIG_IsOK(res1)) {
32804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32805 }
32806 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32807 {
32808 arg2 = &temp2;
32809 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32810 }
32811 ecode3 = SWIG_AsVal_int(obj2, &val3);
32812 if (!SWIG_IsOK(ecode3)) {
32813 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
32814 }
32815 arg3 = static_cast< int >(val3);
32816 {
32817 PyThreadState* __tstate = wxPyBeginAllowThreads();
32818 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
32819 wxPyEndAllowThreads(__tstate);
32820 if (PyErr_Occurred()) SWIG_fail;
32821 }
32822 resultobj = SWIG_Py_Void();
32823 return resultobj;
32824 fail:
32825 return NULL;
32826 }
32827
32828
32829 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32830 PyObject *resultobj = 0;
32831 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32832 int arg2 ;
32833 int arg3 ;
32834 int arg4 ;
32835 int arg5 ;
32836 void *argp1 = 0 ;
32837 int res1 = 0 ;
32838 int val2 ;
32839 int ecode2 = 0 ;
32840 int val3 ;
32841 int ecode3 = 0 ;
32842 int val4 ;
32843 int ecode4 = 0 ;
32844 int val5 ;
32845 int ecode5 = 0 ;
32846 PyObject * obj0 = 0 ;
32847 PyObject * obj1 = 0 ;
32848 PyObject * obj2 = 0 ;
32849 PyObject * obj3 = 0 ;
32850 PyObject * obj4 = 0 ;
32851 char * kwnames[] = {
32852 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
32853 };
32854
32855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32857 if (!SWIG_IsOK(res1)) {
32858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32859 }
32860 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32861 ecode2 = SWIG_AsVal_int(obj1, &val2);
32862 if (!SWIG_IsOK(ecode2)) {
32863 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
32864 }
32865 arg2 = static_cast< int >(val2);
32866 ecode3 = SWIG_AsVal_int(obj2, &val3);
32867 if (!SWIG_IsOK(ecode3)) {
32868 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
32869 }
32870 arg3 = static_cast< int >(val3);
32871 ecode4 = SWIG_AsVal_int(obj3, &val4);
32872 if (!SWIG_IsOK(ecode4)) {
32873 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
32874 }
32875 arg4 = static_cast< int >(val4);
32876 ecode5 = SWIG_AsVal_int(obj4, &val5);
32877 if (!SWIG_IsOK(ecode5)) {
32878 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
32879 }
32880 arg5 = static_cast< int >(val5);
32881 {
32882 PyThreadState* __tstate = wxPyBeginAllowThreads();
32883 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
32884 wxPyEndAllowThreads(__tstate);
32885 if (PyErr_Occurred()) SWIG_fail;
32886 }
32887 resultobj = SWIG_Py_Void();
32888 return resultobj;
32889 fail:
32890 return NULL;
32891 }
32892
32893
32894 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32895 PyObject *resultobj = 0;
32896 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32897 wxRect *arg2 = 0 ;
32898 void *argp1 = 0 ;
32899 int res1 = 0 ;
32900 wxRect temp2 ;
32901 PyObject * obj0 = 0 ;
32902 PyObject * obj1 = 0 ;
32903 char * kwnames[] = {
32904 (char *) "self",(char *) "rect", NULL
32905 };
32906
32907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
32908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32909 if (!SWIG_IsOK(res1)) {
32910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32911 }
32912 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32913 {
32914 arg2 = &temp2;
32915 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32916 }
32917 {
32918 PyThreadState* __tstate = wxPyBeginAllowThreads();
32919 (arg1)->DrawEllipse((wxRect const &)*arg2);
32920 wxPyEndAllowThreads(__tstate);
32921 if (PyErr_Occurred()) SWIG_fail;
32922 }
32923 resultobj = SWIG_Py_Void();
32924 return resultobj;
32925 fail:
32926 return NULL;
32927 }
32928
32929
32930 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32931 PyObject *resultobj = 0;
32932 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32933 wxPoint *arg2 = 0 ;
32934 wxSize *arg3 = 0 ;
32935 void *argp1 = 0 ;
32936 int res1 = 0 ;
32937 wxPoint temp2 ;
32938 wxSize temp3 ;
32939 PyObject * obj0 = 0 ;
32940 PyObject * obj1 = 0 ;
32941 PyObject * obj2 = 0 ;
32942 char * kwnames[] = {
32943 (char *) "self",(char *) "pt",(char *) "sz", NULL
32944 };
32945
32946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32948 if (!SWIG_IsOK(res1)) {
32949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32950 }
32951 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32952 {
32953 arg2 = &temp2;
32954 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32955 }
32956 {
32957 arg3 = &temp3;
32958 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32959 }
32960 {
32961 PyThreadState* __tstate = wxPyBeginAllowThreads();
32962 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
32963 wxPyEndAllowThreads(__tstate);
32964 if (PyErr_Occurred()) SWIG_fail;
32965 }
32966 resultobj = SWIG_Py_Void();
32967 return resultobj;
32968 fail:
32969 return NULL;
32970 }
32971
32972
32973 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32974 PyObject *resultobj = 0;
32975 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32976 wxIcon *arg2 = 0 ;
32977 int arg3 ;
32978 int arg4 ;
32979 void *argp1 = 0 ;
32980 int res1 = 0 ;
32981 void *argp2 = 0 ;
32982 int res2 = 0 ;
32983 int val3 ;
32984 int ecode3 = 0 ;
32985 int val4 ;
32986 int ecode4 = 0 ;
32987 PyObject * obj0 = 0 ;
32988 PyObject * obj1 = 0 ;
32989 PyObject * obj2 = 0 ;
32990 PyObject * obj3 = 0 ;
32991 char * kwnames[] = {
32992 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
32993 };
32994
32995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32997 if (!SWIG_IsOK(res1)) {
32998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32999 }
33000 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33001 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
33002 if (!SWIG_IsOK(res2)) {
33003 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
33004 }
33005 if (!argp2) {
33006 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
33007 }
33008 arg2 = reinterpret_cast< wxIcon * >(argp2);
33009 ecode3 = SWIG_AsVal_int(obj2, &val3);
33010 if (!SWIG_IsOK(ecode3)) {
33011 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
33012 }
33013 arg3 = static_cast< int >(val3);
33014 ecode4 = SWIG_AsVal_int(obj3, &val4);
33015 if (!SWIG_IsOK(ecode4)) {
33016 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
33017 }
33018 arg4 = static_cast< int >(val4);
33019 {
33020 PyThreadState* __tstate = wxPyBeginAllowThreads();
33021 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
33022 wxPyEndAllowThreads(__tstate);
33023 if (PyErr_Occurred()) SWIG_fail;
33024 }
33025 resultobj = SWIG_Py_Void();
33026 return resultobj;
33027 fail:
33028 return NULL;
33029 }
33030
33031
33032 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33033 PyObject *resultobj = 0;
33034 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33035 wxIcon *arg2 = 0 ;
33036 wxPoint *arg3 = 0 ;
33037 void *argp1 = 0 ;
33038 int res1 = 0 ;
33039 void *argp2 = 0 ;
33040 int res2 = 0 ;
33041 wxPoint temp3 ;
33042 PyObject * obj0 = 0 ;
33043 PyObject * obj1 = 0 ;
33044 PyObject * obj2 = 0 ;
33045 char * kwnames[] = {
33046 (char *) "self",(char *) "icon",(char *) "pt", NULL
33047 };
33048
33049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33051 if (!SWIG_IsOK(res1)) {
33052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33053 }
33054 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33055 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
33056 if (!SWIG_IsOK(res2)) {
33057 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
33058 }
33059 if (!argp2) {
33060 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
33061 }
33062 arg2 = reinterpret_cast< wxIcon * >(argp2);
33063 {
33064 arg3 = &temp3;
33065 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33066 }
33067 {
33068 PyThreadState* __tstate = wxPyBeginAllowThreads();
33069 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
33070 wxPyEndAllowThreads(__tstate);
33071 if (PyErr_Occurred()) SWIG_fail;
33072 }
33073 resultobj = SWIG_Py_Void();
33074 return resultobj;
33075 fail:
33076 return NULL;
33077 }
33078
33079
33080 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33081 PyObject *resultobj = 0;
33082 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33083 wxBitmap *arg2 = 0 ;
33084 int arg3 ;
33085 int arg4 ;
33086 bool arg5 = (bool) false ;
33087 void *argp1 = 0 ;
33088 int res1 = 0 ;
33089 void *argp2 = 0 ;
33090 int res2 = 0 ;
33091 int val3 ;
33092 int ecode3 = 0 ;
33093 int val4 ;
33094 int ecode4 = 0 ;
33095 bool val5 ;
33096 int ecode5 = 0 ;
33097 PyObject * obj0 = 0 ;
33098 PyObject * obj1 = 0 ;
33099 PyObject * obj2 = 0 ;
33100 PyObject * obj3 = 0 ;
33101 PyObject * obj4 = 0 ;
33102 char * kwnames[] = {
33103 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
33104 };
33105
33106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33108 if (!SWIG_IsOK(res1)) {
33109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33110 }
33111 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33112 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
33113 if (!SWIG_IsOK(res2)) {
33114 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33115 }
33116 if (!argp2) {
33117 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33118 }
33119 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33120 ecode3 = SWIG_AsVal_int(obj2, &val3);
33121 if (!SWIG_IsOK(ecode3)) {
33122 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
33123 }
33124 arg3 = static_cast< int >(val3);
33125 ecode4 = SWIG_AsVal_int(obj3, &val4);
33126 if (!SWIG_IsOK(ecode4)) {
33127 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
33128 }
33129 arg4 = static_cast< int >(val4);
33130 if (obj4) {
33131 ecode5 = SWIG_AsVal_bool(obj4, &val5);
33132 if (!SWIG_IsOK(ecode5)) {
33133 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
33134 }
33135 arg5 = static_cast< bool >(val5);
33136 }
33137 {
33138 PyThreadState* __tstate = wxPyBeginAllowThreads();
33139 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
33140 wxPyEndAllowThreads(__tstate);
33141 if (PyErr_Occurred()) SWIG_fail;
33142 }
33143 resultobj = SWIG_Py_Void();
33144 return resultobj;
33145 fail:
33146 return NULL;
33147 }
33148
33149
33150 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33151 PyObject *resultobj = 0;
33152 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33153 wxBitmap *arg2 = 0 ;
33154 wxPoint *arg3 = 0 ;
33155 bool arg4 = (bool) false ;
33156 void *argp1 = 0 ;
33157 int res1 = 0 ;
33158 void *argp2 = 0 ;
33159 int res2 = 0 ;
33160 wxPoint temp3 ;
33161 bool val4 ;
33162 int ecode4 = 0 ;
33163 PyObject * obj0 = 0 ;
33164 PyObject * obj1 = 0 ;
33165 PyObject * obj2 = 0 ;
33166 PyObject * obj3 = 0 ;
33167 char * kwnames[] = {
33168 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
33169 };
33170
33171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33173 if (!SWIG_IsOK(res1)) {
33174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33175 }
33176 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33177 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
33178 if (!SWIG_IsOK(res2)) {
33179 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33180 }
33181 if (!argp2) {
33182 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33183 }
33184 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33185 {
33186 arg3 = &temp3;
33187 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33188 }
33189 if (obj3) {
33190 ecode4 = SWIG_AsVal_bool(obj3, &val4);
33191 if (!SWIG_IsOK(ecode4)) {
33192 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
33193 }
33194 arg4 = static_cast< bool >(val4);
33195 }
33196 {
33197 PyThreadState* __tstate = wxPyBeginAllowThreads();
33198 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
33199 wxPyEndAllowThreads(__tstate);
33200 if (PyErr_Occurred()) SWIG_fail;
33201 }
33202 resultobj = SWIG_Py_Void();
33203 return resultobj;
33204 fail:
33205 return NULL;
33206 }
33207
33208
33209 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33210 PyObject *resultobj = 0;
33211 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33212 wxString *arg2 = 0 ;
33213 int arg3 ;
33214 int arg4 ;
33215 void *argp1 = 0 ;
33216 int res1 = 0 ;
33217 bool temp2 = false ;
33218 int val3 ;
33219 int ecode3 = 0 ;
33220 int val4 ;
33221 int ecode4 = 0 ;
33222 PyObject * obj0 = 0 ;
33223 PyObject * obj1 = 0 ;
33224 PyObject * obj2 = 0 ;
33225 PyObject * obj3 = 0 ;
33226 char * kwnames[] = {
33227 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
33228 };
33229
33230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33232 if (!SWIG_IsOK(res1)) {
33233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33234 }
33235 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33236 {
33237 arg2 = wxString_in_helper(obj1);
33238 if (arg2 == NULL) SWIG_fail;
33239 temp2 = true;
33240 }
33241 ecode3 = SWIG_AsVal_int(obj2, &val3);
33242 if (!SWIG_IsOK(ecode3)) {
33243 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
33244 }
33245 arg3 = static_cast< int >(val3);
33246 ecode4 = SWIG_AsVal_int(obj3, &val4);
33247 if (!SWIG_IsOK(ecode4)) {
33248 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
33249 }
33250 arg4 = static_cast< int >(val4);
33251 {
33252 PyThreadState* __tstate = wxPyBeginAllowThreads();
33253 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
33254 wxPyEndAllowThreads(__tstate);
33255 if (PyErr_Occurred()) SWIG_fail;
33256 }
33257 resultobj = SWIG_Py_Void();
33258 {
33259 if (temp2)
33260 delete arg2;
33261 }
33262 return resultobj;
33263 fail:
33264 {
33265 if (temp2)
33266 delete arg2;
33267 }
33268 return NULL;
33269 }
33270
33271
33272 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33273 PyObject *resultobj = 0;
33274 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33275 wxString *arg2 = 0 ;
33276 wxPoint *arg3 = 0 ;
33277 void *argp1 = 0 ;
33278 int res1 = 0 ;
33279 bool temp2 = false ;
33280 wxPoint temp3 ;
33281 PyObject * obj0 = 0 ;
33282 PyObject * obj1 = 0 ;
33283 PyObject * obj2 = 0 ;
33284 char * kwnames[] = {
33285 (char *) "self",(char *) "text",(char *) "pt", NULL
33286 };
33287
33288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33290 if (!SWIG_IsOK(res1)) {
33291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33292 }
33293 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33294 {
33295 arg2 = wxString_in_helper(obj1);
33296 if (arg2 == NULL) SWIG_fail;
33297 temp2 = true;
33298 }
33299 {
33300 arg3 = &temp3;
33301 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33302 }
33303 {
33304 PyThreadState* __tstate = wxPyBeginAllowThreads();
33305 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
33306 wxPyEndAllowThreads(__tstate);
33307 if (PyErr_Occurred()) SWIG_fail;
33308 }
33309 resultobj = SWIG_Py_Void();
33310 {
33311 if (temp2)
33312 delete arg2;
33313 }
33314 return resultobj;
33315 fail:
33316 {
33317 if (temp2)
33318 delete arg2;
33319 }
33320 return NULL;
33321 }
33322
33323
33324 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33325 PyObject *resultobj = 0;
33326 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33327 wxString *arg2 = 0 ;
33328 int arg3 ;
33329 int arg4 ;
33330 double arg5 ;
33331 void *argp1 = 0 ;
33332 int res1 = 0 ;
33333 bool temp2 = false ;
33334 int val3 ;
33335 int ecode3 = 0 ;
33336 int val4 ;
33337 int ecode4 = 0 ;
33338 double val5 ;
33339 int ecode5 = 0 ;
33340 PyObject * obj0 = 0 ;
33341 PyObject * obj1 = 0 ;
33342 PyObject * obj2 = 0 ;
33343 PyObject * obj3 = 0 ;
33344 PyObject * obj4 = 0 ;
33345 char * kwnames[] = {
33346 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
33347 };
33348
33349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33351 if (!SWIG_IsOK(res1)) {
33352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33353 }
33354 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33355 {
33356 arg2 = wxString_in_helper(obj1);
33357 if (arg2 == NULL) SWIG_fail;
33358 temp2 = true;
33359 }
33360 ecode3 = SWIG_AsVal_int(obj2, &val3);
33361 if (!SWIG_IsOK(ecode3)) {
33362 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
33363 }
33364 arg3 = static_cast< int >(val3);
33365 ecode4 = SWIG_AsVal_int(obj3, &val4);
33366 if (!SWIG_IsOK(ecode4)) {
33367 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
33368 }
33369 arg4 = static_cast< int >(val4);
33370 ecode5 = SWIG_AsVal_double(obj4, &val5);
33371 if (!SWIG_IsOK(ecode5)) {
33372 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
33373 }
33374 arg5 = static_cast< double >(val5);
33375 {
33376 PyThreadState* __tstate = wxPyBeginAllowThreads();
33377 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
33378 wxPyEndAllowThreads(__tstate);
33379 if (PyErr_Occurred()) SWIG_fail;
33380 }
33381 resultobj = SWIG_Py_Void();
33382 {
33383 if (temp2)
33384 delete arg2;
33385 }
33386 return resultobj;
33387 fail:
33388 {
33389 if (temp2)
33390 delete arg2;
33391 }
33392 return NULL;
33393 }
33394
33395
33396 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33397 PyObject *resultobj = 0;
33398 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33399 wxString *arg2 = 0 ;
33400 wxPoint *arg3 = 0 ;
33401 double arg4 ;
33402 void *argp1 = 0 ;
33403 int res1 = 0 ;
33404 bool temp2 = false ;
33405 wxPoint temp3 ;
33406 double val4 ;
33407 int ecode4 = 0 ;
33408 PyObject * obj0 = 0 ;
33409 PyObject * obj1 = 0 ;
33410 PyObject * obj2 = 0 ;
33411 PyObject * obj3 = 0 ;
33412 char * kwnames[] = {
33413 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
33414 };
33415
33416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33418 if (!SWIG_IsOK(res1)) {
33419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33420 }
33421 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33422 {
33423 arg2 = wxString_in_helper(obj1);
33424 if (arg2 == NULL) SWIG_fail;
33425 temp2 = true;
33426 }
33427 {
33428 arg3 = &temp3;
33429 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33430 }
33431 ecode4 = SWIG_AsVal_double(obj3, &val4);
33432 if (!SWIG_IsOK(ecode4)) {
33433 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
33434 }
33435 arg4 = static_cast< double >(val4);
33436 {
33437 PyThreadState* __tstate = wxPyBeginAllowThreads();
33438 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
33439 wxPyEndAllowThreads(__tstate);
33440 if (PyErr_Occurred()) SWIG_fail;
33441 }
33442 resultobj = SWIG_Py_Void();
33443 {
33444 if (temp2)
33445 delete arg2;
33446 }
33447 return resultobj;
33448 fail:
33449 {
33450 if (temp2)
33451 delete arg2;
33452 }
33453 return NULL;
33454 }
33455
33456
33457 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33458 PyObject *resultobj = 0;
33459 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33460 int arg2 ;
33461 wxPoint *arg3 = (wxPoint *) 0 ;
33462 int arg4 = (int) 0 ;
33463 int arg5 = (int) 0 ;
33464 void *argp1 = 0 ;
33465 int res1 = 0 ;
33466 int val4 ;
33467 int ecode4 = 0 ;
33468 int val5 ;
33469 int ecode5 = 0 ;
33470 PyObject * obj0 = 0 ;
33471 PyObject * obj1 = 0 ;
33472 PyObject * obj2 = 0 ;
33473 PyObject * obj3 = 0 ;
33474 char * kwnames[] = {
33475 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
33476 };
33477
33478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33480 if (!SWIG_IsOK(res1)) {
33481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33482 }
33483 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33484 {
33485 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33486 if (arg3 == NULL) SWIG_fail;
33487 }
33488 if (obj2) {
33489 ecode4 = SWIG_AsVal_int(obj2, &val4);
33490 if (!SWIG_IsOK(ecode4)) {
33491 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
33492 }
33493 arg4 = static_cast< int >(val4);
33494 }
33495 if (obj3) {
33496 ecode5 = SWIG_AsVal_int(obj3, &val5);
33497 if (!SWIG_IsOK(ecode5)) {
33498 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
33499 }
33500 arg5 = static_cast< int >(val5);
33501 }
33502 {
33503 PyThreadState* __tstate = wxPyBeginAllowThreads();
33504 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
33505 wxPyEndAllowThreads(__tstate);
33506 if (PyErr_Occurred()) SWIG_fail;
33507 }
33508 resultobj = SWIG_Py_Void();
33509 {
33510 if (arg3) delete [] arg3;
33511 }
33512 return resultobj;
33513 fail:
33514 {
33515 if (arg3) delete [] arg3;
33516 }
33517 return NULL;
33518 }
33519
33520
33521 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33522 PyObject *resultobj = 0;
33523 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33524 int arg2 ;
33525 wxPoint *arg3 = (wxPoint *) 0 ;
33526 int arg4 = (int) 0 ;
33527 int arg5 = (int) 0 ;
33528 int arg6 = (int) wxODDEVEN_RULE ;
33529 void *argp1 = 0 ;
33530 int res1 = 0 ;
33531 int val4 ;
33532 int ecode4 = 0 ;
33533 int val5 ;
33534 int ecode5 = 0 ;
33535 int val6 ;
33536 int ecode6 = 0 ;
33537 PyObject * obj0 = 0 ;
33538 PyObject * obj1 = 0 ;
33539 PyObject * obj2 = 0 ;
33540 PyObject * obj3 = 0 ;
33541 PyObject * obj4 = 0 ;
33542 char * kwnames[] = {
33543 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
33544 };
33545
33546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33548 if (!SWIG_IsOK(res1)) {
33549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33550 }
33551 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33552 {
33553 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33554 if (arg3 == NULL) SWIG_fail;
33555 }
33556 if (obj2) {
33557 ecode4 = SWIG_AsVal_int(obj2, &val4);
33558 if (!SWIG_IsOK(ecode4)) {
33559 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
33560 }
33561 arg4 = static_cast< int >(val4);
33562 }
33563 if (obj3) {
33564 ecode5 = SWIG_AsVal_int(obj3, &val5);
33565 if (!SWIG_IsOK(ecode5)) {
33566 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
33567 }
33568 arg5 = static_cast< int >(val5);
33569 }
33570 if (obj4) {
33571 ecode6 = SWIG_AsVal_int(obj4, &val6);
33572 if (!SWIG_IsOK(ecode6)) {
33573 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
33574 }
33575 arg6 = static_cast< int >(val6);
33576 }
33577 {
33578 PyThreadState* __tstate = wxPyBeginAllowThreads();
33579 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
33580 wxPyEndAllowThreads(__tstate);
33581 if (PyErr_Occurred()) SWIG_fail;
33582 }
33583 resultobj = SWIG_Py_Void();
33584 {
33585 if (arg3) delete [] arg3;
33586 }
33587 return resultobj;
33588 fail:
33589 {
33590 if (arg3) delete [] arg3;
33591 }
33592 return NULL;
33593 }
33594
33595
33596 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33597 PyObject *resultobj = 0;
33598 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33599 wxString *arg2 = 0 ;
33600 wxRect *arg3 = 0 ;
33601 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
33602 int arg5 = (int) -1 ;
33603 void *argp1 = 0 ;
33604 int res1 = 0 ;
33605 bool temp2 = false ;
33606 wxRect temp3 ;
33607 int val4 ;
33608 int ecode4 = 0 ;
33609 int val5 ;
33610 int ecode5 = 0 ;
33611 PyObject * obj0 = 0 ;
33612 PyObject * obj1 = 0 ;
33613 PyObject * obj2 = 0 ;
33614 PyObject * obj3 = 0 ;
33615 PyObject * obj4 = 0 ;
33616 char * kwnames[] = {
33617 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
33618 };
33619
33620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33622 if (!SWIG_IsOK(res1)) {
33623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33624 }
33625 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33626 {
33627 arg2 = wxString_in_helper(obj1);
33628 if (arg2 == NULL) SWIG_fail;
33629 temp2 = true;
33630 }
33631 {
33632 arg3 = &temp3;
33633 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33634 }
33635 if (obj3) {
33636 ecode4 = SWIG_AsVal_int(obj3, &val4);
33637 if (!SWIG_IsOK(ecode4)) {
33638 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
33639 }
33640 arg4 = static_cast< int >(val4);
33641 }
33642 if (obj4) {
33643 ecode5 = SWIG_AsVal_int(obj4, &val5);
33644 if (!SWIG_IsOK(ecode5)) {
33645 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
33646 }
33647 arg5 = static_cast< int >(val5);
33648 }
33649 {
33650 PyThreadState* __tstate = wxPyBeginAllowThreads();
33651 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
33652 wxPyEndAllowThreads(__tstate);
33653 if (PyErr_Occurred()) SWIG_fail;
33654 }
33655 resultobj = SWIG_Py_Void();
33656 {
33657 if (temp2)
33658 delete arg2;
33659 }
33660 return resultobj;
33661 fail:
33662 {
33663 if (temp2)
33664 delete arg2;
33665 }
33666 return NULL;
33667 }
33668
33669
33670 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33671 PyObject *resultobj = 0;
33672 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33673 wxString *arg2 = 0 ;
33674 wxBitmap *arg3 = 0 ;
33675 wxRect *arg4 = 0 ;
33676 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
33677 int arg6 = (int) -1 ;
33678 void *argp1 = 0 ;
33679 int res1 = 0 ;
33680 bool temp2 = false ;
33681 void *argp3 = 0 ;
33682 int res3 = 0 ;
33683 wxRect temp4 ;
33684 int val5 ;
33685 int ecode5 = 0 ;
33686 int val6 ;
33687 int ecode6 = 0 ;
33688 PyObject * obj0 = 0 ;
33689 PyObject * obj1 = 0 ;
33690 PyObject * obj2 = 0 ;
33691 PyObject * obj3 = 0 ;
33692 PyObject * obj4 = 0 ;
33693 PyObject * obj5 = 0 ;
33694 char * kwnames[] = {
33695 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
33696 };
33697
33698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33700 if (!SWIG_IsOK(res1)) {
33701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33702 }
33703 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33704 {
33705 arg2 = wxString_in_helper(obj1);
33706 if (arg2 == NULL) SWIG_fail;
33707 temp2 = true;
33708 }
33709 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
33710 if (!SWIG_IsOK(res3)) {
33711 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
33712 }
33713 if (!argp3) {
33714 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
33715 }
33716 arg3 = reinterpret_cast< wxBitmap * >(argp3);
33717 {
33718 arg4 = &temp4;
33719 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
33720 }
33721 if (obj4) {
33722 ecode5 = SWIG_AsVal_int(obj4, &val5);
33723 if (!SWIG_IsOK(ecode5)) {
33724 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
33725 }
33726 arg5 = static_cast< int >(val5);
33727 }
33728 if (obj5) {
33729 ecode6 = SWIG_AsVal_int(obj5, &val6);
33730 if (!SWIG_IsOK(ecode6)) {
33731 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
33732 }
33733 arg6 = static_cast< int >(val6);
33734 }
33735 {
33736 PyThreadState* __tstate = wxPyBeginAllowThreads();
33737 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
33738 wxPyEndAllowThreads(__tstate);
33739 if (PyErr_Occurred()) SWIG_fail;
33740 }
33741 resultobj = SWIG_Py_Void();
33742 {
33743 if (temp2)
33744 delete arg2;
33745 }
33746 return resultobj;
33747 fail:
33748 {
33749 if (temp2)
33750 delete arg2;
33751 }
33752 return NULL;
33753 }
33754
33755
33756 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33757 PyObject *resultobj = 0;
33758 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33759 int arg2 ;
33760 wxPoint *arg3 = (wxPoint *) 0 ;
33761 void *argp1 = 0 ;
33762 int res1 = 0 ;
33763 PyObject * obj0 = 0 ;
33764 PyObject * obj1 = 0 ;
33765 char * kwnames[] = {
33766 (char *) "self",(char *) "points", NULL
33767 };
33768
33769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
33770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33771 if (!SWIG_IsOK(res1)) {
33772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33773 }
33774 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33775 {
33776 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33777 if (arg3 == NULL) SWIG_fail;
33778 }
33779 {
33780 PyThreadState* __tstate = wxPyBeginAllowThreads();
33781 (arg1)->DrawSpline(arg2,arg3);
33782 wxPyEndAllowThreads(__tstate);
33783 if (PyErr_Occurred()) SWIG_fail;
33784 }
33785 resultobj = SWIG_Py_Void();
33786 {
33787 if (arg3) delete [] arg3;
33788 }
33789 return resultobj;
33790 fail:
33791 {
33792 if (arg3) delete [] arg3;
33793 }
33794 return NULL;
33795 }
33796
33797
33798 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33799 PyObject *resultobj = 0;
33800 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33801 void *argp1 = 0 ;
33802 int res1 = 0 ;
33803 PyObject *swig_obj[1] ;
33804
33805 if (!args) SWIG_fail;
33806 swig_obj[0] = args;
33807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33808 if (!SWIG_IsOK(res1)) {
33809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33810 }
33811 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33812 {
33813 PyThreadState* __tstate = wxPyBeginAllowThreads();
33814 (arg1)->Clear();
33815 wxPyEndAllowThreads(__tstate);
33816 if (PyErr_Occurred()) SWIG_fail;
33817 }
33818 resultobj = SWIG_Py_Void();
33819 return resultobj;
33820 fail:
33821 return NULL;
33822 }
33823
33824
33825 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33826 PyObject *resultobj = 0;
33827 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33828 wxFont *arg2 = 0 ;
33829 void *argp1 = 0 ;
33830 int res1 = 0 ;
33831 void *argp2 = 0 ;
33832 int res2 = 0 ;
33833 PyObject * obj0 = 0 ;
33834 PyObject * obj1 = 0 ;
33835 char * kwnames[] = {
33836 (char *) "self",(char *) "font", NULL
33837 };
33838
33839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
33840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33841 if (!SWIG_IsOK(res1)) {
33842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33843 }
33844 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33845 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
33846 if (!SWIG_IsOK(res2)) {
33847 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
33848 }
33849 if (!argp2) {
33850 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
33851 }
33852 arg2 = reinterpret_cast< wxFont * >(argp2);
33853 {
33854 PyThreadState* __tstate = wxPyBeginAllowThreads();
33855 (arg1)->SetFont((wxFont const &)*arg2);
33856 wxPyEndAllowThreads(__tstate);
33857 if (PyErr_Occurred()) SWIG_fail;
33858 }
33859 resultobj = SWIG_Py_Void();
33860 return resultobj;
33861 fail:
33862 return NULL;
33863 }
33864
33865
33866 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33867 PyObject *resultobj = 0;
33868 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33869 wxPen *arg2 = 0 ;
33870 void *argp1 = 0 ;
33871 int res1 = 0 ;
33872 void *argp2 = 0 ;
33873 int res2 = 0 ;
33874 PyObject * obj0 = 0 ;
33875 PyObject * obj1 = 0 ;
33876 char * kwnames[] = {
33877 (char *) "self",(char *) "pen", NULL
33878 };
33879
33880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
33881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33882 if (!SWIG_IsOK(res1)) {
33883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33884 }
33885 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33886 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
33887 if (!SWIG_IsOK(res2)) {
33888 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
33889 }
33890 if (!argp2) {
33891 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
33892 }
33893 arg2 = reinterpret_cast< wxPen * >(argp2);
33894 {
33895 PyThreadState* __tstate = wxPyBeginAllowThreads();
33896 (arg1)->SetPen((wxPen const &)*arg2);
33897 wxPyEndAllowThreads(__tstate);
33898 if (PyErr_Occurred()) SWIG_fail;
33899 }
33900 resultobj = SWIG_Py_Void();
33901 return resultobj;
33902 fail:
33903 return NULL;
33904 }
33905
33906
33907 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33908 PyObject *resultobj = 0;
33909 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33910 wxBrush *arg2 = 0 ;
33911 void *argp1 = 0 ;
33912 int res1 = 0 ;
33913 void *argp2 = 0 ;
33914 int res2 = 0 ;
33915 PyObject * obj0 = 0 ;
33916 PyObject * obj1 = 0 ;
33917 char * kwnames[] = {
33918 (char *) "self",(char *) "brush", NULL
33919 };
33920
33921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
33922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33923 if (!SWIG_IsOK(res1)) {
33924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33925 }
33926 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33927 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
33928 if (!SWIG_IsOK(res2)) {
33929 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
33930 }
33931 if (!argp2) {
33932 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
33933 }
33934 arg2 = reinterpret_cast< wxBrush * >(argp2);
33935 {
33936 PyThreadState* __tstate = wxPyBeginAllowThreads();
33937 (arg1)->SetBrush((wxBrush const &)*arg2);
33938 wxPyEndAllowThreads(__tstate);
33939 if (PyErr_Occurred()) SWIG_fail;
33940 }
33941 resultobj = SWIG_Py_Void();
33942 return resultobj;
33943 fail:
33944 return NULL;
33945 }
33946
33947
33948 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33949 PyObject *resultobj = 0;
33950 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33951 wxBrush *arg2 = 0 ;
33952 void *argp1 = 0 ;
33953 int res1 = 0 ;
33954 void *argp2 = 0 ;
33955 int res2 = 0 ;
33956 PyObject * obj0 = 0 ;
33957 PyObject * obj1 = 0 ;
33958 char * kwnames[] = {
33959 (char *) "self",(char *) "brush", NULL
33960 };
33961
33962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
33963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33964 if (!SWIG_IsOK(res1)) {
33965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33966 }
33967 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33968 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
33969 if (!SWIG_IsOK(res2)) {
33970 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
33971 }
33972 if (!argp2) {
33973 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
33974 }
33975 arg2 = reinterpret_cast< wxBrush * >(argp2);
33976 {
33977 PyThreadState* __tstate = wxPyBeginAllowThreads();
33978 (arg1)->SetBackground((wxBrush const &)*arg2);
33979 wxPyEndAllowThreads(__tstate);
33980 if (PyErr_Occurred()) SWIG_fail;
33981 }
33982 resultobj = SWIG_Py_Void();
33983 return resultobj;
33984 fail:
33985 return NULL;
33986 }
33987
33988
33989 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33990 PyObject *resultobj = 0;
33991 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33992 int arg2 ;
33993 void *argp1 = 0 ;
33994 int res1 = 0 ;
33995 int val2 ;
33996 int ecode2 = 0 ;
33997 PyObject * obj0 = 0 ;
33998 PyObject * obj1 = 0 ;
33999 char * kwnames[] = {
34000 (char *) "self",(char *) "mode", NULL
34001 };
34002
34003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
34004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34005 if (!SWIG_IsOK(res1)) {
34006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34007 }
34008 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34009 ecode2 = SWIG_AsVal_int(obj1, &val2);
34010 if (!SWIG_IsOK(ecode2)) {
34011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
34012 }
34013 arg2 = static_cast< int >(val2);
34014 {
34015 PyThreadState* __tstate = wxPyBeginAllowThreads();
34016 (arg1)->SetBackgroundMode(arg2);
34017 wxPyEndAllowThreads(__tstate);
34018 if (PyErr_Occurred()) SWIG_fail;
34019 }
34020 resultobj = SWIG_Py_Void();
34021 return resultobj;
34022 fail:
34023 return NULL;
34024 }
34025
34026
34027 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34028 PyObject *resultobj = 0;
34029 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34030 wxPalette *arg2 = 0 ;
34031 void *argp1 = 0 ;
34032 int res1 = 0 ;
34033 void *argp2 = 0 ;
34034 int res2 = 0 ;
34035 PyObject * obj0 = 0 ;
34036 PyObject * obj1 = 0 ;
34037 char * kwnames[] = {
34038 (char *) "self",(char *) "palette", NULL
34039 };
34040
34041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
34042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34043 if (!SWIG_IsOK(res1)) {
34044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34045 }
34046 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34047 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
34048 if (!SWIG_IsOK(res2)) {
34049 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
34050 }
34051 if (!argp2) {
34052 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
34053 }
34054 arg2 = reinterpret_cast< wxPalette * >(argp2);
34055 {
34056 PyThreadState* __tstate = wxPyBeginAllowThreads();
34057 (arg1)->SetPalette((wxPalette const &)*arg2);
34058 wxPyEndAllowThreads(__tstate);
34059 if (PyErr_Occurred()) SWIG_fail;
34060 }
34061 resultobj = SWIG_Py_Void();
34062 return resultobj;
34063 fail:
34064 return NULL;
34065 }
34066
34067
34068 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34069 PyObject *resultobj = 0;
34070 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34071 wxColour *arg2 = 0 ;
34072 void *argp1 = 0 ;
34073 int res1 = 0 ;
34074 wxColour temp2 ;
34075 PyObject * obj0 = 0 ;
34076 PyObject * obj1 = 0 ;
34077 char * kwnames[] = {
34078 (char *) "self",(char *) "colour", NULL
34079 };
34080
34081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
34082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34083 if (!SWIG_IsOK(res1)) {
34084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34085 }
34086 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34087 {
34088 arg2 = &temp2;
34089 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34090 }
34091 {
34092 PyThreadState* __tstate = wxPyBeginAllowThreads();
34093 (arg1)->SetTextForeground((wxColour const &)*arg2);
34094 wxPyEndAllowThreads(__tstate);
34095 if (PyErr_Occurred()) SWIG_fail;
34096 }
34097 resultobj = SWIG_Py_Void();
34098 return resultobj;
34099 fail:
34100 return NULL;
34101 }
34102
34103
34104 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34105 PyObject *resultobj = 0;
34106 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34107 wxColour *arg2 = 0 ;
34108 void *argp1 = 0 ;
34109 int res1 = 0 ;
34110 wxColour temp2 ;
34111 PyObject * obj0 = 0 ;
34112 PyObject * obj1 = 0 ;
34113 char * kwnames[] = {
34114 (char *) "self",(char *) "colour", NULL
34115 };
34116
34117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
34118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34119 if (!SWIG_IsOK(res1)) {
34120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34121 }
34122 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34123 {
34124 arg2 = &temp2;
34125 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34126 }
34127 {
34128 PyThreadState* __tstate = wxPyBeginAllowThreads();
34129 (arg1)->SetTextBackground((wxColour const &)*arg2);
34130 wxPyEndAllowThreads(__tstate);
34131 if (PyErr_Occurred()) SWIG_fail;
34132 }
34133 resultobj = SWIG_Py_Void();
34134 return resultobj;
34135 fail:
34136 return NULL;
34137 }
34138
34139
34140 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34141 PyObject *resultobj = 0;
34142 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34143 int arg2 ;
34144 void *argp1 = 0 ;
34145 int res1 = 0 ;
34146 int val2 ;
34147 int ecode2 = 0 ;
34148 PyObject * obj0 = 0 ;
34149 PyObject * obj1 = 0 ;
34150 char * kwnames[] = {
34151 (char *) "self",(char *) "function", NULL
34152 };
34153
34154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
34155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34156 if (!SWIG_IsOK(res1)) {
34157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34158 }
34159 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34160 ecode2 = SWIG_AsVal_int(obj1, &val2);
34161 if (!SWIG_IsOK(ecode2)) {
34162 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
34163 }
34164 arg2 = static_cast< int >(val2);
34165 {
34166 PyThreadState* __tstate = wxPyBeginAllowThreads();
34167 (arg1)->SetLogicalFunction(arg2);
34168 wxPyEndAllowThreads(__tstate);
34169 if (PyErr_Occurred()) SWIG_fail;
34170 }
34171 resultobj = SWIG_Py_Void();
34172 return resultobj;
34173 fail:
34174 return NULL;
34175 }
34176
34177
34178 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34179 PyObject *obj;
34180 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34181 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
34182 return SWIG_Py_Void();
34183 }
34184
34185 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34186 return SWIG_Python_InitShadowInstance(args);
34187 }
34188
34189 static PyMethodDef SwigMethods[] = {
34190 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
34191 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
34192 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
34193 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
34194 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
34195 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
34196 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
34197 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34198 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
34199 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
34200 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
34201 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
34202 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
34203 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
34204 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34205 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34206 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
34207 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
34208 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
34209 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34210 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34211 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
34212 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
34213 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
34214 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
34215 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
34216 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
34217 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
34218 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34219 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
34220 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
34221 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
34222 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
34223 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
34224 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
34225 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
34226 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
34227 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
34228 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
34229 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
34230 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
34231 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
34232 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
34233 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
34234 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34235 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34236 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
34237 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
34238 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
34239 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
34240 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34241 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34242 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
34243 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
34244 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
34245 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34246 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
34247 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
34248 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34249 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
34250 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
34251 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
34252 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
34253 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
34254 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
34255 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
34256 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
34257 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34258 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
34259 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34260 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34261 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
34262 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
34263 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
34264 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
34265 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
34266 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
34267 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
34268 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
34269 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
34270 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
34271 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
34272 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
34273 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34274 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
34275 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
34276 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
34277 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34278 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
34279 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34280 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
34281 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
34282 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34283 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34284 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
34285 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
34286 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
34287 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
34288 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
34289 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
34290 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
34291 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
34292 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
34293 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
34294 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
34295 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
34296 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
34297 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
34298 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
34299 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
34300 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
34301 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
34302 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
34303 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
34304 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
34305 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
34306 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
34307 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34308 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
34309 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
34310 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
34311 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34312 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
34313 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
34314 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
34315 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
34316 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
34317 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
34318 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
34319 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
34320 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
34321 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
34322 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
34323 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
34324 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
34325 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
34326 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
34327 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34328 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
34329 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
34330 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
34331 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34332 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
34333 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
34334 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
34335 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
34336 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
34337 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
34338 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
34339 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
34340 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
34341 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
34342 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
34343 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34344 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
34345 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
34346 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
34347 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
34348 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
34349 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
34350 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34351 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
34352 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
34353 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34354 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
34355 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
34356 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
34357 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
34358 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
34359 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
34360 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
34361 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
34362 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
34363 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
34364 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
34365 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
34366 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
34367 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34368 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
34369 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34370 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
34371 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34372 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
34373 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
34374 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
34375 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
34376 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
34377 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
34378 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
34379 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
34380 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
34381 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
34382 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34383 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
34384 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
34385 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
34386 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
34387 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34388 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
34389 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34390 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
34391 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
34392 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
34393 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
34394 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
34395 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34396 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
34397 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
34398 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
34399 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
34400 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34401 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
34402 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
34403 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34404 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
34405 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
34406 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34407 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
34408 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34409 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
34410 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
34411 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
34412 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
34413 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
34414 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
34415 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
34416 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
34417 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
34418 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
34419 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
34420 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
34421 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
34422 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
34423 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
34424 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
34425 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
34426 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
34427 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
34428 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
34429 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
34430 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
34431 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
34432 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
34433 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
34434 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
34435 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
34436 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
34437 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
34438 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34439 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34440 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
34441 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
34442 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
34443 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
34444 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34445 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
34446 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
34447 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
34448 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
34449 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
34450 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
34451 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
34452 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
34453 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
34454 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
34455 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
34456 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
34457 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
34458 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
34459 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
34460 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
34461 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
34462 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34463 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34464 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
34465 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
34466 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
34467 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34468 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34469 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
34470 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34471 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
34472 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
34473 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
34474 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
34475 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
34476 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34477 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
34478 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
34479 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
34480 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
34481 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
34482 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
34483 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
34484 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34485 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
34486 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
34487 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34488 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34489 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
34490 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34491 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34492 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
34493 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
34494 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
34495 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
34496 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
34497 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
34498 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
34499 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
34500 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
34501 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
34502 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
34503 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
34504 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
34505 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34506 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34507 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
34508 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34509 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
34510 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
34511 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
34512 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34513 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34514 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
34515 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
34516 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
34517 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
34518 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
34519 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
34520 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
34521 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
34522 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34523 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
34524 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
34525 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
34526 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
34527 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34528 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
34529 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
34530 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
34531 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
34532 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
34533 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
34534 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
34535 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
34536 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
34537 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
34538 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
34539 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
34540 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
34541 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
34542 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
34543 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
34544 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
34545 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
34546 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
34547 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
34548 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
34549 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
34550 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
34551 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
34552 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
34553 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
34554 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
34555 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
34556 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
34557 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
34558 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34559 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
34560 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34561 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
34562 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
34563 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
34564 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
34565 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
34566 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
34567 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
34568 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34569 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
34570 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
34571 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
34572 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
34573 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
34574 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
34575 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
34576 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
34577 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
34578 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
34579 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
34580 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
34581 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
34582 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
34583 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
34584 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
34585 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
34586 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34587 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
34588 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
34589 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
34590 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34591 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
34592 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
34593 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
34594 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34595 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
34596 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34597 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
34598 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
34599 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
34600 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34601 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34602 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34603 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34604 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
34605 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34606 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34607 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
34608 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34609 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
34610 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
34611 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
34612 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
34613 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34614 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34615 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34616 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34617 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34618 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
34619 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34620 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
34621 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34622 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
34623 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34624 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34625 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34626 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34627 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
34628 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
34629 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
34630 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
34631 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
34632 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
34633 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
34634 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
34635 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
34636 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
34637 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
34638 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
34639 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
34640 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34641 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
34642 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
34643 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
34644 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
34645 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
34646 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
34647 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
34648 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
34649 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34650 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34651 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34652 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
34653 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
34654 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
34655 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
34656 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
34657 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
34658 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
34659 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
34660 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
34661 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
34662 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
34663 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
34664 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
34665 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
34666 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
34667 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
34668 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
34669 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
34670 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
34671 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
34672 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
34673 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
34674 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
34675 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
34676 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
34677 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
34678 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
34679 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
34680 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
34681 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
34682 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
34683 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
34684 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
34685 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
34686 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
34687 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
34688 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34689 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
34690 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
34691 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
34692 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34693 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
34694 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
34695 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
34696 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
34697 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
34698 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34699 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
34700 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
34701 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
34702 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
34703 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
34704 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
34705 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
34706 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
34707 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
34708 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
34709 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
34710 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
34711 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
34712 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
34713 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
34714 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
34715 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
34716 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
34717 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
34718 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
34719 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
34720 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
34721 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
34722 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
34723 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
34724 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
34725 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
34726 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
34727 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
34728 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
34729 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
34730 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
34731 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
34732 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
34733 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
34734 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
34735 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
34736 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
34737 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
34738 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
34739 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
34740 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
34741 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
34742 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
34743 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
34744 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
34745 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
34746 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
34747 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
34748 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
34749 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
34750 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
34751 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
34752 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
34753 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
34754 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
34755 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
34756 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
34757 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
34758 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
34759 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
34760 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
34761 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
34762 { (char *)"GraphicsPath_MoveToPoint", (PyCFunction) _wrap_GraphicsPath_MoveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34763 { (char *)"GraphicsPath_AddLineToPoint", (PyCFunction) _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34764 { (char *)"GraphicsPath_AddCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34765 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
34766 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
34767 { (char *)"GraphicsPath_AddArc", (PyCFunction) _wrap_GraphicsPath_AddArc, METH_VARARGS | METH_KEYWORDS, NULL},
34768 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34769 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34770 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
34771 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34772 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
34773 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
34774 { (char *)"GraphicsContext_Create", (PyCFunction) _wrap_GraphicsContext_Create, METH_VARARGS | METH_KEYWORDS, NULL},
34775 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
34776 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
34777 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
34778 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
34779 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
34780 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
34781 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
34782 { (char *)"GraphicsContext_SetPen", (PyCFunction) _wrap_GraphicsContext_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
34783 { (char *)"GraphicsContext_SetBrush", (PyCFunction) _wrap_GraphicsContext_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34784 { (char *)"GraphicsContext_SetLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34785 { (char *)"GraphicsContext_SetRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34786 { (char *)"GraphicsContext_SetFont", (PyCFunction) _wrap_GraphicsContext_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
34787 { (char *)"GraphicsContext_SetTextColor", (PyCFunction) _wrap_GraphicsContext_SetTextColor, METH_VARARGS | METH_KEYWORDS, NULL},
34788 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
34789 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
34790 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
34791 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
34792 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
34793 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34794 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
34795 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34796 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34797 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
34798 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
34799 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
34800 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
34801 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34802 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
34803 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34804 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
34805 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
34806 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
34807 { (char *)"GCDC_GetGraphicContext", (PyCFunction)_wrap_GCDC_GetGraphicContext, METH_O, NULL},
34808 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
34809 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
34810 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
34811 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
34812 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
34813 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
34814 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
34815 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
34816 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
34817 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
34818 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
34819 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
34820 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
34821 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
34822 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
34823 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
34824 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34825 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34826 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34827 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
34828 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
34829 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
34830 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
34831 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
34832 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
34833 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
34834 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
34835 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
34836 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
34837 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
34838 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
34839 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34840 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
34841 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
34842 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
34843 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
34844 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
34845 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
34846 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
34847 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
34848 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
34849 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
34850 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
34851 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
34852 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
34853 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
34854 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34855 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34856 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34857 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
34858 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
34859 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
34860 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
34861 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
34862 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
34863 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
34864 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
34865 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
34866 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
34867 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
34868 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
34869 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
34870 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
34871 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
34872 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
34873 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
34874 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
34875 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
34876 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
34877 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
34878 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
34879 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
34880 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
34881 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
34882 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
34883 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
34884 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
34885 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34886 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
34887 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34888 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
34889 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
34890 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
34891 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
34892 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
34893 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
34894 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
34895 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
34896 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
34897 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
34898 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
34899 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
34900 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
34901 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
34902 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
34903 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
34904 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
34905 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
34906 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
34907 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
34908 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
34909 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
34910 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
34911 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
34912 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
34913 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
34914 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
34915 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
34916 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
34917 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
34918 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
34919 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
34920 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
34921 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
34922 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
34923 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
34924 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
34925 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
34926 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
34927 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
34928 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
34929 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
34930 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
34931 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
34932 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
34933 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
34934 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
34935 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
34936 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
34937 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34938 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
34939 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
34940 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
34941 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
34942 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
34943 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
34944 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
34945 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
34946 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
34947 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
34948 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
34949 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
34950 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
34951 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
34952 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
34953 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
34954 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
34955 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
34956 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
34957 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
34958 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
34959 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
34960 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
34961 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34962 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
34963 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
34964 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
34965 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34966 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
34967 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34968 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
34969 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
34970 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
34971 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34972 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34973 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34974 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34975 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
34976 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34977 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34978 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
34979 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34980 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
34981 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
34982 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
34983 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
34984 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34985 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34986 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34987 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34988 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34989 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
34990 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34991 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
34992 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34993 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
34994 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
34995 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
34996 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
34997 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
34998 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
34999 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35000 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35001 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35002 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35003 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
35004 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
35005 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
35006 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35007 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
35008 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
35009 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
35010 { NULL, NULL, 0, NULL }
35011 };
35012
35013
35014 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
35015
35016 static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
35017 return (void *)((wxClientDC *) ((wxPaintDC *) x));
35018 }
35019 static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
35020 return (void *)((wxWindowDC *) ((wxClientDC *) x));
35021 }
35022 static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
35023 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
35024 }
35025 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
35026 return (void *)((wxLocale *) ((wxPyLocale *) x));
35027 }
35028 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
35029 return (void *)((wxGDIObject *) ((wxIcon *) x));
35030 }
35031 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
35032 return (void *)((wxGDIObject *) ((wxPalette *) x));
35033 }
35034 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
35035 return (void *)((wxGDIObject *) ((wxPen *) x));
35036 }
35037 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
35038 return (void *)((wxGDIObject *) ((wxFont *) x));
35039 }
35040 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
35041 return (void *)((wxGDIObject *) ((wxCursor *) x));
35042 }
35043 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
35044 return (void *)((wxGDIObject *) ((wxBitmap *) x));
35045 }
35046 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
35047 return (void *)((wxGDIObject *) ((wxRegion *) x));
35048 }
35049 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
35050 return (void *)((wxGDIObject *) ((wxBrush *) x));
35051 }
35052 static void *_p_wxGCDCTo_p_wxDC(void *x) {
35053 return (void *)((wxDC *) ((wxGCDC *) x));
35054 }
35055 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
35056 return (void *)((wxDC *) ((wxBufferedDC *) x));
35057 }
35058 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
35059 return (void *)((wxDC *) ((wxScreenDC *) x));
35060 }
35061 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
35062 return (void *)((wxDC *) ((wxMirrorDC *) x));
35063 }
35064 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
35065 return (void *)((wxDC *) ((wxMemoryDC *) x));
35066 }
35067 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
35068 return (void *)((wxDC *) ((wxWindowDC *) x));
35069 }
35070 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
35071 return (void *)((wxDC *) ((wxMetaFileDC *) x));
35072 }
35073 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
35074 return (void *)((wxDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
35075 }
35076 static void *_p_wxClientDCTo_p_wxDC(void *x) {
35077 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
35078 }
35079 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
35080 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
35081 }
35082 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
35083 return (void *)((wxDC *) ((wxPostScriptDC *) x));
35084 }
35085 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
35086 return (void *)((wxDC *) ((wxPrinterDC *) x));
35087 }
35088 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
35089 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
35090 }
35091 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
35092 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
35093 }
35094 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
35095 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
35096 }
35097 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
35098 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
35099 }
35100 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
35101 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
35102 }
35103 static void *_p_wxPenTo_p_wxObject(void *x) {
35104 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
35105 }
35106 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
35107 return (void *)((wxObject *) ((wxRegionIterator *) x));
35108 }
35109 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
35110 return (void *)((wxObject *) ((wxSizerItem *) x));
35111 }
35112 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
35113 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
35114 }
35115 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
35116 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
35117 }
35118 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
35119 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
35120 }
35121 static void *_p_wxIconTo_p_wxObject(void *x) {
35122 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
35123 }
35124 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
35125 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
35126 }
35127 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
35128 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
35129 }
35130 static void *_p_wxSizerTo_p_wxObject(void *x) {
35131 return (void *)((wxObject *) ((wxSizer *) x));
35132 }
35133 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
35134 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
35135 }
35136 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
35137 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
35138 }
35139 static void *_p_wxEventTo_p_wxObject(void *x) {
35140 return (void *)((wxObject *) ((wxEvent *) x));
35141 }
35142 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
35143 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
35144 }
35145 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
35146 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
35147 }
35148 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
35149 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
35150 }
35151 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
35152 return (void *)((wxObject *) ((wxPseudoDC *) x));
35153 }
35154 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
35155 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
35156 }
35157 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
35158 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
35159 }
35160 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
35161 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
35162 }
35163 static void *_p_wxDCTo_p_wxObject(void *x) {
35164 return (void *)((wxObject *) ((wxDC *) x));
35165 }
35166 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
35167 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
35168 }
35169 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
35170 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
35171 }
35172 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
35173 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
35174 }
35175 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
35176 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
35177 }
35178 static void *_p_wxControlTo_p_wxObject(void *x) {
35179 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
35180 }
35181 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
35182 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
35183 }
35184 static void *_p_wxClientDCTo_p_wxObject(void *x) {
35185 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
35186 }
35187 static void *_p_wxFSFileTo_p_wxObject(void *x) {
35188 return (void *)((wxObject *) ((wxFSFile *) x));
35189 }
35190 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
35191 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
35192 }
35193 static void *_p_wxRegionTo_p_wxObject(void *x) {
35194 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
35195 }
35196 static void *_p_wxPySizerTo_p_wxObject(void *x) {
35197 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
35198 }
35199 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
35200 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
35201 }
35202 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
35203 return (void *)((wxObject *) ((wxGDIObject *) x));
35204 }
35205 static void *_p_wxEffectsTo_p_wxObject(void *x) {
35206 return (void *)((wxObject *) ((wxEffects *) x));
35207 }
35208 static void *_p_wxPyEventTo_p_wxObject(void *x) {
35209 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
35210 }
35211 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
35212 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
35213 }
35214 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
35215 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
35216 }
35217 static void *_p_wxShowEventTo_p_wxObject(void *x) {
35218 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
35219 }
35220 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
35221 return (void *)((wxObject *) ((wxMenuItem *) x));
35222 }
35223 static void *_p_wxDateEventTo_p_wxObject(void *x) {
35224 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
35225 }
35226 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
35227 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
35228 }
35229 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
35230 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
35231 }
35232 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
35233 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
35234 }
35235 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
35236 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
35237 }
35238 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
35239 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
35240 }
35241 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
35242 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
35243 }
35244 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
35245 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
35246 }
35247 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
35248 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
35249 }
35250 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
35251 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
35252 }
35253 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
35254 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
35255 }
35256 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
35257 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
35258 }
35259 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
35260 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
35261 }
35262 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
35263 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
35264 }
35265 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
35266 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
35267 }
35268 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
35269 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
35270 }
35271 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
35272 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
35273 }
35274 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
35275 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
35276 }
35277 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
35278 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
35279 }
35280 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
35281 return (void *)((wxObject *) ((wxImageHandler *) x));
35282 }
35283 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
35284 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
35285 }
35286 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
35287 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
35288 }
35289 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
35290 return (void *)((wxObject *) ((wxEvtHandler *) x));
35291 }
35292 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
35293 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
35294 }
35295 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
35296 return (void *)((wxObject *) (wxDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
35297 }
35298 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
35299 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
35300 }
35301 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
35302 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
35303 }
35304 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
35305 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
35306 }
35307 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
35308 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
35309 }
35310 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
35311 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
35312 }
35313 static void *_p_wxImageTo_p_wxObject(void *x) {
35314 return (void *)((wxObject *) ((wxImage *) x));
35315 }
35316 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
35317 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
35318 }
35319 static void *_p_wxPaletteTo_p_wxObject(void *x) {
35320 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
35321 }
35322 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
35323 return (void *)((wxObject *) (wxDC *) ((wxBufferedDC *) x));
35324 }
35325 static void *_p_wxImageListTo_p_wxObject(void *x) {
35326 return (void *)((wxObject *) ((wxImageList *) x));
35327 }
35328 static void *_p_wxGCDCTo_p_wxObject(void *x) {
35329 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
35330 }
35331 static void *_p_wxCursorTo_p_wxObject(void *x) {
35332 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
35333 }
35334 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
35335 return (void *)((wxObject *) ((wxEncodingConverter *) x));
35336 }
35337 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
35338 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
35339 }
35340 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
35341 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
35342 }
35343 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
35344 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
35345 }
35346 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
35347 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
35348 }
35349 static void *_p_wxWindowTo_p_wxObject(void *x) {
35350 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
35351 }
35352 static void *_p_wxMenuTo_p_wxObject(void *x) {
35353 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
35354 }
35355 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
35356 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
35357 }
35358 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
35359 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
35360 }
35361 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
35362 return (void *)((wxObject *) ((wxFileSystem *) x));
35363 }
35364 static void *_p_wxBitmapTo_p_wxObject(void *x) {
35365 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
35366 }
35367 static void *_p_wxMaskTo_p_wxObject(void *x) {
35368 return (void *)((wxObject *) ((wxMask *) x));
35369 }
35370 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
35371 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
35372 }
35373 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
35374 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
35375 }
35376 static void *_p_wxPyAppTo_p_wxObject(void *x) {
35377 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
35378 }
35379 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
35380 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
35381 }
35382 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
35383 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
35384 }
35385 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
35386 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
35387 }
35388 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
35389 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
35390 }
35391 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
35392 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
35393 }
35394 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
35395 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
35396 }
35397 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
35398 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
35399 }
35400 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
35401 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
35402 }
35403 static void *_p_wxFontTo_p_wxObject(void *x) {
35404 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
35405 }
35406 static void *_p_wxBrushTo_p_wxObject(void *x) {
35407 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
35408 }
35409 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
35410 return (void *)((wxObject *) ((wxMetaFile *) x));
35411 }
35412 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
35413 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
35414 }
35415 static void *_p_wxColourTo_p_wxObject(void *x) {
35416 return (void *)((wxObject *) ((wxColour *) x));
35417 }
35418 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
35419 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
35420 }
35421 static void *_p_wxValidatorTo_p_wxObject(void *x) {
35422 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
35423 }
35424 static void *_p_wxControlTo_p_wxWindow(void *x) {
35425 return (void *)((wxWindow *) ((wxControl *) x));
35426 }
35427 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
35428 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
35429 }
35430 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
35431 return (void *)((wxWindow *) ((wxMenuBar *) x));
35432 }
35433 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
35434 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
35435 }
35436 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
35437 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
35438 }
35439 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
35440 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
35441 static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
35442 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};
35443 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
35444 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
35445 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
35446 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
35447 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
35448 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
35449 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
35450 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
35451 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
35452 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
35453 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
35454 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
35455 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
35456 static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
35457 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
35458 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
35459 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
35460 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
35461 static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
35462 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
35463 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
35464 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
35465 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
35466 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
35467 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
35468 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
35469 static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
35470 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
35471 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
35472 static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
35473 static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
35474 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
35475 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
35476 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
35477 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
35478 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
35479 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
35480 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
35481 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
35482 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
35483 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
35484 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
35485 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
35486 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
35487 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
35488 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
35489 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
35490 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
35491 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
35492 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
35493 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
35494 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
35495 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
35496 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
35497 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
35498 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
35499 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
35500 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
35501 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
35502 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
35503 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
35504 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
35505 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
35506 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
35507 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
35508 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
35509 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
35510 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
35511 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
35512 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
35513 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
35514 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
35515 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
35516 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
35517 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
35518 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
35519 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
35520 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
35521 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
35522 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
35523 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
35524 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
35525 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
35526 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
35527 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
35528 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
35529 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
35530 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
35531 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
35532 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
35533 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
35534 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
35535 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
35536 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
35537 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
35538 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
35539 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
35540 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
35541 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
35542 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
35543 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
35544 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
35545 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
35546 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
35547 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
35548 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
35549 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
35550 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
35551 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
35552 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
35553 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
35554 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
35555 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
35556 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
35557 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
35558 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
35559 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
35560 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
35561 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
35562 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
35563 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
35564 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
35565 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
35566 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
35567 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
35568 static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
35569 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
35570 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
35571 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
35572 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
35573 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
35574 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
35575 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
35576 static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
35577 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
35578 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
35579 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
35580 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
35581 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
35582 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
35583 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
35584 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
35585 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
35586 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
35587 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
35588 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
35589 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
35590 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
35591 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
35592 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
35593 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
35594 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
35595
35596 static swig_type_info *swig_type_initial[] = {
35597 &_swigt__p_buffer,
35598 &_swigt__p_char,
35599 &_swigt__p_double,
35600 &_swigt__p_form_ops_t,
35601 &_swigt__p_int,
35602 &_swigt__p_unsigned_char,
35603 &_swigt__p_unsigned_int,
35604 &_swigt__p_unsigned_long,
35605 &_swigt__p_wxANIHandler,
35606 &_swigt__p_wxAcceleratorTable,
35607 &_swigt__p_wxActivateEvent,
35608 &_swigt__p_wxAlphaPixelData,
35609 &_swigt__p_wxAlphaPixelData_Accessor,
35610 &_swigt__p_wxBMPHandler,
35611 &_swigt__p_wxBitmap,
35612 &_swigt__p_wxBoxSizer,
35613 &_swigt__p_wxBrush,
35614 &_swigt__p_wxBrushList,
35615 &_swigt__p_wxBufferedDC,
35616 &_swigt__p_wxBufferedPaintDC,
35617 &_swigt__p_wxCURHandler,
35618 &_swigt__p_wxChar,
35619 &_swigt__p_wxChildFocusEvent,
35620 &_swigt__p_wxClientDC,
35621 &_swigt__p_wxClipboardTextEvent,
35622 &_swigt__p_wxCloseEvent,
35623 &_swigt__p_wxColor,
35624 &_swigt__p_wxColour,
35625 &_swigt__p_wxColourDatabase,
35626 &_swigt__p_wxCommandEvent,
35627 &_swigt__p_wxContextMenuEvent,
35628 &_swigt__p_wxControl,
35629 &_swigt__p_wxControlWithItems,
35630 &_swigt__p_wxCursor,
35631 &_swigt__p_wxDC,
35632 &_swigt__p_wxDCOverlay,
35633 &_swigt__p_wxDash,
35634 &_swigt__p_wxDateEvent,
35635 &_swigt__p_wxDisplayChangedEvent,
35636 &_swigt__p_wxDropFilesEvent,
35637 &_swigt__p_wxDuplexMode,
35638 &_swigt__p_wxEffects,
35639 &_swigt__p_wxEncodingConverter,
35640 &_swigt__p_wxEraseEvent,
35641 &_swigt__p_wxEvent,
35642 &_swigt__p_wxEvtHandler,
35643 &_swigt__p_wxFSFile,
35644 &_swigt__p_wxFileSystem,
35645 &_swigt__p_wxFlexGridSizer,
35646 &_swigt__p_wxFocusEvent,
35647 &_swigt__p_wxFont,
35648 &_swigt__p_wxFontList,
35649 &_swigt__p_wxFontMapper,
35650 &_swigt__p_wxGBSizerItem,
35651 &_swigt__p_wxGCDC,
35652 &_swigt__p_wxGDIObjListBase,
35653 &_swigt__p_wxGDIObject,
35654 &_swigt__p_wxGIFHandler,
35655 &_swigt__p_wxGraphicsContext,
35656 &_swigt__p_wxGraphicsPath,
35657 &_swigt__p_wxGridBagSizer,
35658 &_swigt__p_wxGridSizer,
35659 &_swigt__p_wxHeaderButtonParams,
35660 &_swigt__p_wxICOHandler,
35661 &_swigt__p_wxIcon,
35662 &_swigt__p_wxIconBundle,
35663 &_swigt__p_wxIconLocation,
35664 &_swigt__p_wxIconizeEvent,
35665 &_swigt__p_wxIdleEvent,
35666 &_swigt__p_wxImage,
35667 &_swigt__p_wxImageHandler,
35668 &_swigt__p_wxImageList,
35669 &_swigt__p_wxIndividualLayoutConstraint,
35670 &_swigt__p_wxInitDialogEvent,
35671 &_swigt__p_wxJPEGHandler,
35672 &_swigt__p_wxKeyEvent,
35673 &_swigt__p_wxLanguageInfo,
35674 &_swigt__p_wxLayoutConstraints,
35675 &_swigt__p_wxLocale,
35676 &_swigt__p_wxMask,
35677 &_swigt__p_wxMaximizeEvent,
35678 &_swigt__p_wxMemoryDC,
35679 &_swigt__p_wxMenu,
35680 &_swigt__p_wxMenuBar,
35681 &_swigt__p_wxMenuEvent,
35682 &_swigt__p_wxMenuItem,
35683 &_swigt__p_wxMetaFile,
35684 &_swigt__p_wxMetaFileDC,
35685 &_swigt__p_wxMirrorDC,
35686 &_swigt__p_wxMouseCaptureChangedEvent,
35687 &_swigt__p_wxMouseCaptureLostEvent,
35688 &_swigt__p_wxMouseEvent,
35689 &_swigt__p_wxMoveEvent,
35690 &_swigt__p_wxNativeEncodingInfo,
35691 &_swigt__p_wxNativeFontInfo,
35692 &_swigt__p_wxNativePixelData,
35693 &_swigt__p_wxNativePixelData_Accessor,
35694 &_swigt__p_wxNavigationKeyEvent,
35695 &_swigt__p_wxNcPaintEvent,
35696 &_swigt__p_wxNotifyEvent,
35697 &_swigt__p_wxObject,
35698 &_swigt__p_wxOverlay,
35699 &_swigt__p_wxPCXHandler,
35700 &_swigt__p_wxPNGHandler,
35701 &_swigt__p_wxPNMHandler,
35702 &_swigt__p_wxPaintDC,
35703 &_swigt__p_wxPaintEvent,
35704 &_swigt__p_wxPalette,
35705 &_swigt__p_wxPaletteChangedEvent,
35706 &_swigt__p_wxPaperSize,
35707 &_swigt__p_wxPen,
35708 &_swigt__p_wxPenList,
35709 &_swigt__p_wxPixelDataBase,
35710 &_swigt__p_wxPoint,
35711 &_swigt__p_wxPoint2D,
35712 &_swigt__p_wxPostScriptDC,
35713 &_swigt__p_wxPrintData,
35714 &_swigt__p_wxPrinterDC,
35715 &_swigt__p_wxPseudoDC,
35716 &_swigt__p_wxPyApp,
35717 &_swigt__p_wxPyCommandEvent,
35718 &_swigt__p_wxPyEvent,
35719 &_swigt__p_wxPyFontEnumerator,
35720 &_swigt__p_wxPyImageHandler,
35721 &_swigt__p_wxPyLocale,
35722 &_swigt__p_wxPySizer,
35723 &_swigt__p_wxPyValidator,
35724 &_swigt__p_wxQueryNewPaletteEvent,
35725 &_swigt__p_wxRect,
35726 &_swigt__p_wxRegion,
35727 &_swigt__p_wxRegionIterator,
35728 &_swigt__p_wxRendererNative,
35729 &_swigt__p_wxRendererVersion,
35730 &_swigt__p_wxScreenDC,
35731 &_swigt__p_wxScrollEvent,
35732 &_swigt__p_wxScrollWinEvent,
35733 &_swigt__p_wxSetCursorEvent,
35734 &_swigt__p_wxShowEvent,
35735 &_swigt__p_wxSize,
35736 &_swigt__p_wxSizeEvent,
35737 &_swigt__p_wxSizer,
35738 &_swigt__p_wxSizerItem,
35739 &_swigt__p_wxSplitterRenderParams,
35740 &_swigt__p_wxStaticBoxSizer,
35741 &_swigt__p_wxStdDialogButtonSizer,
35742 &_swigt__p_wxStockGDI,
35743 &_swigt__p_wxString,
35744 &_swigt__p_wxSysColourChangedEvent,
35745 &_swigt__p_wxTIFFHandler,
35746 &_swigt__p_wxUpdateUIEvent,
35747 &_swigt__p_wxValidator,
35748 &_swigt__p_wxWindow,
35749 &_swigt__p_wxWindowCreateEvent,
35750 &_swigt__p_wxWindowDC,
35751 &_swigt__p_wxWindowDestroyEvent,
35752 &_swigt__p_wxXPMHandler,
35753 };
35754
35755 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
35756 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
35757 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
35758 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
35759 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
35760 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
35761 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
35762 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
35763 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
35764 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
35765 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
35766 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
35767 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
35768 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}};
35769 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
35770 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
35771 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}};
35772 static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
35773 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
35774 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
35775 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
35776 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxDC, 0, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxDC, 0, 0},{0, 0, 0, 0}};
35777 static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
35778 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
35779 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
35780 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
35781 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
35782 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
35783 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
35784 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
35785 static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
35786 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}};
35787 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}};
35788 static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
35789 static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
35790 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
35791 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
35792 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
35793 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
35794 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
35795 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
35796 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
35797 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}};
35798 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
35799 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
35800 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
35801 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
35802 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
35803 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
35804 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
35805 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
35806 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
35807 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
35808 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
35809 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
35810 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
35811 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
35812 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
35813 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
35814 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
35815 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
35816 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
35817 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
35818 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
35819 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
35820 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
35821 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
35822 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
35823 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
35824 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
35825 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
35826 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
35827 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
35828 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
35829 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
35830 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
35831 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
35832 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
35833 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
35834 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
35835 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
35836 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
35837 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
35838 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
35839 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
35840 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
35841 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
35842 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
35843 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
35844 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
35845 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
35846 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
35847 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
35848 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
35849 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
35850 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
35851 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
35852 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
35853 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
35854 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
35855 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
35856 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
35857 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
35858 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
35859 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
35860 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
35861 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
35862 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
35863 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
35864 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
35865 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
35866 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
35867 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
35868 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
35869 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
35870 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
35871 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
35872 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
35873 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
35874 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
35875 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
35876 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
35877 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
35878 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
35879 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
35880 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
35881 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
35882 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
35883 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_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_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_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_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_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_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_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_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_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_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}};
35884 static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
35885 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
35886 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
35887 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
35888 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
35889 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
35890 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}};
35891 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
35892 static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
35893 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
35894 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
35895 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
35896 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
35897 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
35898 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
35899 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
35900 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
35901 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
35902 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
35903 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
35904 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
35905 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
35906 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
35907 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
35908 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
35909 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}};
35910 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxWindowDC, 0, 0},{0, 0, 0, 0}};
35911
35912 static swig_cast_info *swig_cast_initial[] = {
35913 _swigc__p_buffer,
35914 _swigc__p_char,
35915 _swigc__p_double,
35916 _swigc__p_form_ops_t,
35917 _swigc__p_int,
35918 _swigc__p_unsigned_char,
35919 _swigc__p_unsigned_int,
35920 _swigc__p_unsigned_long,
35921 _swigc__p_wxANIHandler,
35922 _swigc__p_wxAcceleratorTable,
35923 _swigc__p_wxActivateEvent,
35924 _swigc__p_wxAlphaPixelData,
35925 _swigc__p_wxAlphaPixelData_Accessor,
35926 _swigc__p_wxBMPHandler,
35927 _swigc__p_wxBitmap,
35928 _swigc__p_wxBoxSizer,
35929 _swigc__p_wxBrush,
35930 _swigc__p_wxBrushList,
35931 _swigc__p_wxBufferedDC,
35932 _swigc__p_wxBufferedPaintDC,
35933 _swigc__p_wxCURHandler,
35934 _swigc__p_wxChar,
35935 _swigc__p_wxChildFocusEvent,
35936 _swigc__p_wxClientDC,
35937 _swigc__p_wxClipboardTextEvent,
35938 _swigc__p_wxCloseEvent,
35939 _swigc__p_wxColor,
35940 _swigc__p_wxColour,
35941 _swigc__p_wxColourDatabase,
35942 _swigc__p_wxCommandEvent,
35943 _swigc__p_wxContextMenuEvent,
35944 _swigc__p_wxControl,
35945 _swigc__p_wxControlWithItems,
35946 _swigc__p_wxCursor,
35947 _swigc__p_wxDC,
35948 _swigc__p_wxDCOverlay,
35949 _swigc__p_wxDash,
35950 _swigc__p_wxDateEvent,
35951 _swigc__p_wxDisplayChangedEvent,
35952 _swigc__p_wxDropFilesEvent,
35953 _swigc__p_wxDuplexMode,
35954 _swigc__p_wxEffects,
35955 _swigc__p_wxEncodingConverter,
35956 _swigc__p_wxEraseEvent,
35957 _swigc__p_wxEvent,
35958 _swigc__p_wxEvtHandler,
35959 _swigc__p_wxFSFile,
35960 _swigc__p_wxFileSystem,
35961 _swigc__p_wxFlexGridSizer,
35962 _swigc__p_wxFocusEvent,
35963 _swigc__p_wxFont,
35964 _swigc__p_wxFontList,
35965 _swigc__p_wxFontMapper,
35966 _swigc__p_wxGBSizerItem,
35967 _swigc__p_wxGCDC,
35968 _swigc__p_wxGDIObjListBase,
35969 _swigc__p_wxGDIObject,
35970 _swigc__p_wxGIFHandler,
35971 _swigc__p_wxGraphicsContext,
35972 _swigc__p_wxGraphicsPath,
35973 _swigc__p_wxGridBagSizer,
35974 _swigc__p_wxGridSizer,
35975 _swigc__p_wxHeaderButtonParams,
35976 _swigc__p_wxICOHandler,
35977 _swigc__p_wxIcon,
35978 _swigc__p_wxIconBundle,
35979 _swigc__p_wxIconLocation,
35980 _swigc__p_wxIconizeEvent,
35981 _swigc__p_wxIdleEvent,
35982 _swigc__p_wxImage,
35983 _swigc__p_wxImageHandler,
35984 _swigc__p_wxImageList,
35985 _swigc__p_wxIndividualLayoutConstraint,
35986 _swigc__p_wxInitDialogEvent,
35987 _swigc__p_wxJPEGHandler,
35988 _swigc__p_wxKeyEvent,
35989 _swigc__p_wxLanguageInfo,
35990 _swigc__p_wxLayoutConstraints,
35991 _swigc__p_wxLocale,
35992 _swigc__p_wxMask,
35993 _swigc__p_wxMaximizeEvent,
35994 _swigc__p_wxMemoryDC,
35995 _swigc__p_wxMenu,
35996 _swigc__p_wxMenuBar,
35997 _swigc__p_wxMenuEvent,
35998 _swigc__p_wxMenuItem,
35999 _swigc__p_wxMetaFile,
36000 _swigc__p_wxMetaFileDC,
36001 _swigc__p_wxMirrorDC,
36002 _swigc__p_wxMouseCaptureChangedEvent,
36003 _swigc__p_wxMouseCaptureLostEvent,
36004 _swigc__p_wxMouseEvent,
36005 _swigc__p_wxMoveEvent,
36006 _swigc__p_wxNativeEncodingInfo,
36007 _swigc__p_wxNativeFontInfo,
36008 _swigc__p_wxNativePixelData,
36009 _swigc__p_wxNativePixelData_Accessor,
36010 _swigc__p_wxNavigationKeyEvent,
36011 _swigc__p_wxNcPaintEvent,
36012 _swigc__p_wxNotifyEvent,
36013 _swigc__p_wxObject,
36014 _swigc__p_wxOverlay,
36015 _swigc__p_wxPCXHandler,
36016 _swigc__p_wxPNGHandler,
36017 _swigc__p_wxPNMHandler,
36018 _swigc__p_wxPaintDC,
36019 _swigc__p_wxPaintEvent,
36020 _swigc__p_wxPalette,
36021 _swigc__p_wxPaletteChangedEvent,
36022 _swigc__p_wxPaperSize,
36023 _swigc__p_wxPen,
36024 _swigc__p_wxPenList,
36025 _swigc__p_wxPixelDataBase,
36026 _swigc__p_wxPoint,
36027 _swigc__p_wxPoint2D,
36028 _swigc__p_wxPostScriptDC,
36029 _swigc__p_wxPrintData,
36030 _swigc__p_wxPrinterDC,
36031 _swigc__p_wxPseudoDC,
36032 _swigc__p_wxPyApp,
36033 _swigc__p_wxPyCommandEvent,
36034 _swigc__p_wxPyEvent,
36035 _swigc__p_wxPyFontEnumerator,
36036 _swigc__p_wxPyImageHandler,
36037 _swigc__p_wxPyLocale,
36038 _swigc__p_wxPySizer,
36039 _swigc__p_wxPyValidator,
36040 _swigc__p_wxQueryNewPaletteEvent,
36041 _swigc__p_wxRect,
36042 _swigc__p_wxRegion,
36043 _swigc__p_wxRegionIterator,
36044 _swigc__p_wxRendererNative,
36045 _swigc__p_wxRendererVersion,
36046 _swigc__p_wxScreenDC,
36047 _swigc__p_wxScrollEvent,
36048 _swigc__p_wxScrollWinEvent,
36049 _swigc__p_wxSetCursorEvent,
36050 _swigc__p_wxShowEvent,
36051 _swigc__p_wxSize,
36052 _swigc__p_wxSizeEvent,
36053 _swigc__p_wxSizer,
36054 _swigc__p_wxSizerItem,
36055 _swigc__p_wxSplitterRenderParams,
36056 _swigc__p_wxStaticBoxSizer,
36057 _swigc__p_wxStdDialogButtonSizer,
36058 _swigc__p_wxStockGDI,
36059 _swigc__p_wxString,
36060 _swigc__p_wxSysColourChangedEvent,
36061 _swigc__p_wxTIFFHandler,
36062 _swigc__p_wxUpdateUIEvent,
36063 _swigc__p_wxValidator,
36064 _swigc__p_wxWindow,
36065 _swigc__p_wxWindowCreateEvent,
36066 _swigc__p_wxWindowDC,
36067 _swigc__p_wxWindowDestroyEvent,
36068 _swigc__p_wxXPMHandler,
36069 };
36070
36071
36072 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
36073
36074 static swig_const_info swig_const_table[] = {
36075 {0, 0, 0, 0.0, 0, 0}};
36076
36077 #ifdef __cplusplus
36078 }
36079 #endif
36080 /* -----------------------------------------------------------------------------
36081 * Type initialization:
36082 * This problem is tough by the requirement that no dynamic
36083 * memory is used. Also, since swig_type_info structures store pointers to
36084 * swig_cast_info structures and swig_cast_info structures store pointers back
36085 * to swig_type_info structures, we need some lookup code at initialization.
36086 * The idea is that swig generates all the structures that are needed.
36087 * The runtime then collects these partially filled structures.
36088 * The SWIG_InitializeModule function takes these initial arrays out of
36089 * swig_module, and does all the lookup, filling in the swig_module.types
36090 * array with the correct data and linking the correct swig_cast_info
36091 * structures together.
36092 *
36093 * The generated swig_type_info structures are assigned staticly to an initial
36094 * array. We just loop though that array, and handle each type individually.
36095 * First we lookup if this type has been already loaded, and if so, use the
36096 * loaded structure instead of the generated one. Then we have to fill in the
36097 * cast linked list. The cast data is initially stored in something like a
36098 * two-dimensional array. Each row corresponds to a type (there are the same
36099 * number of rows as there are in the swig_type_initial array). Each entry in
36100 * a column is one of the swig_cast_info structures for that type.
36101 * The cast_initial array is actually an array of arrays, because each row has
36102 * a variable number of columns. So to actually build the cast linked list,
36103 * we find the array of casts associated with the type, and loop through it
36104 * adding the casts to the list. The one last trick we need to do is making
36105 * sure the type pointer in the swig_cast_info struct is correct.
36106 *
36107 * First off, we lookup the cast->type name to see if it is already loaded.
36108 * There are three cases to handle:
36109 * 1) If the cast->type has already been loaded AND the type we are adding
36110 * casting info to has not been loaded (it is in this module), THEN we
36111 * replace the cast->type pointer with the type pointer that has already
36112 * been loaded.
36113 * 2) If BOTH types (the one we are adding casting info to, and the
36114 * cast->type) are loaded, THEN the cast info has already been loaded by
36115 * the previous module so we just ignore it.
36116 * 3) Finally, if cast->type has not already been loaded, then we add that
36117 * swig_cast_info to the linked list (because the cast->type) pointer will
36118 * be correct.
36119 * ----------------------------------------------------------------------------- */
36120
36121 #ifdef __cplusplus
36122 extern "C" {
36123 #if 0
36124 } /* c-mode */
36125 #endif
36126 #endif
36127
36128 #if 0
36129 #define SWIGRUNTIME_DEBUG
36130 #endif
36131
36132 SWIGRUNTIME void
36133 SWIG_InitializeModule(void *clientdata) {
36134 size_t i;
36135 swig_module_info *module_head;
36136 static int init_run = 0;
36137
36138 clientdata = clientdata;
36139
36140 if (init_run) return;
36141 init_run = 1;
36142
36143 /* Initialize the swig_module */
36144 swig_module.type_initial = swig_type_initial;
36145 swig_module.cast_initial = swig_cast_initial;
36146
36147 /* Try and load any already created modules */
36148 module_head = SWIG_GetModule(clientdata);
36149 if (module_head) {
36150 swig_module.next = module_head->next;
36151 module_head->next = &swig_module;
36152 } else {
36153 /* This is the first module loaded */
36154 swig_module.next = &swig_module;
36155 SWIG_SetModule(clientdata, &swig_module);
36156 }
36157
36158 /* Now work on filling in swig_module.types */
36159 #ifdef SWIGRUNTIME_DEBUG
36160 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
36161 #endif
36162 for (i = 0; i < swig_module.size; ++i) {
36163 swig_type_info *type = 0;
36164 swig_type_info *ret;
36165 swig_cast_info *cast;
36166
36167 #ifdef SWIGRUNTIME_DEBUG
36168 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
36169 #endif
36170
36171 /* if there is another module already loaded */
36172 if (swig_module.next != &swig_module) {
36173 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
36174 }
36175 if (type) {
36176 /* Overwrite clientdata field */
36177 #ifdef SWIGRUNTIME_DEBUG
36178 printf("SWIG_InitializeModule: found type %s\n", type->name);
36179 #endif
36180 if (swig_module.type_initial[i]->clientdata) {
36181 type->clientdata = swig_module.type_initial[i]->clientdata;
36182 #ifdef SWIGRUNTIME_DEBUG
36183 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
36184 #endif
36185 }
36186 } else {
36187 type = swig_module.type_initial[i];
36188 }
36189
36190 /* Insert casting types */
36191 cast = swig_module.cast_initial[i];
36192 while (cast->type) {
36193 /* Don't need to add information already in the list */
36194 ret = 0;
36195 #ifdef SWIGRUNTIME_DEBUG
36196 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
36197 #endif
36198 if (swig_module.next != &swig_module) {
36199 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
36200 #ifdef SWIGRUNTIME_DEBUG
36201 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
36202 #endif
36203 }
36204 if (ret) {
36205 if (type == swig_module.type_initial[i]) {
36206 #ifdef SWIGRUNTIME_DEBUG
36207 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
36208 #endif
36209 cast->type = ret;
36210 ret = 0;
36211 } else {
36212 /* Check for casting already in the list */
36213 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
36214 #ifdef SWIGRUNTIME_DEBUG
36215 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
36216 #endif
36217 if (!ocast) ret = 0;
36218 }
36219 }
36220
36221 if (!ret) {
36222 #ifdef SWIGRUNTIME_DEBUG
36223 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
36224 #endif
36225 if (type->cast) {
36226 type->cast->prev = cast;
36227 cast->next = type->cast;
36228 }
36229 type->cast = cast;
36230 }
36231 cast++;
36232 }
36233 /* Set entry in modules->types array equal to the type */
36234 swig_module.types[i] = type;
36235 }
36236 swig_module.types[i] = 0;
36237
36238 #ifdef SWIGRUNTIME_DEBUG
36239 printf("**** SWIG_InitializeModule: Cast List ******\n");
36240 for (i = 0; i < swig_module.size; ++i) {
36241 int j = 0;
36242 swig_cast_info *cast = swig_module.cast_initial[i];
36243 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
36244 while (cast->type) {
36245 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
36246 cast++;
36247 ++j;
36248 }
36249 printf("---- Total casts: %d\n",j);
36250 }
36251 printf("**** SWIG_InitializeModule: Cast List ******\n");
36252 #endif
36253 }
36254
36255 /* This function will propagate the clientdata field of type to
36256 * any new swig_type_info structures that have been added into the list
36257 * of equivalent types. It is like calling
36258 * SWIG_TypeClientData(type, clientdata) a second time.
36259 */
36260 SWIGRUNTIME void
36261 SWIG_PropagateClientData(void) {
36262 size_t i;
36263 swig_cast_info *equiv;
36264 static int init_run = 0;
36265
36266 if (init_run) return;
36267 init_run = 1;
36268
36269 for (i = 0; i < swig_module.size; i++) {
36270 if (swig_module.types[i]->clientdata) {
36271 equiv = swig_module.types[i]->cast;
36272 while (equiv) {
36273 if (!equiv->converter) {
36274 if (equiv->type && !equiv->type->clientdata)
36275 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
36276 }
36277 equiv = equiv->next;
36278 }
36279 }
36280 }
36281 }
36282
36283 #ifdef __cplusplus
36284 #if 0
36285 {
36286 /* c-mode */
36287 #endif
36288 }
36289 #endif
36290
36291
36292
36293 #ifdef __cplusplus
36294 extern "C" {
36295 #endif
36296
36297 /* Python-specific SWIG API */
36298 #define SWIG_newvarlink() SWIG_Python_newvarlink()
36299 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
36300 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
36301
36302 /* -----------------------------------------------------------------------------
36303 * global variable support code.
36304 * ----------------------------------------------------------------------------- */
36305
36306 typedef struct swig_globalvar {
36307 char *name; /* Name of global variable */
36308 PyObject *(*get_attr)(void); /* Return the current value */
36309 int (*set_attr)(PyObject *); /* Set the value */
36310 struct swig_globalvar *next;
36311 } swig_globalvar;
36312
36313 typedef struct swig_varlinkobject {
36314 PyObject_HEAD
36315 swig_globalvar *vars;
36316 } swig_varlinkobject;
36317
36318 SWIGINTERN PyObject *
36319 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
36320 return PyString_FromString("<Swig global variables>");
36321 }
36322
36323 SWIGINTERN PyObject *
36324 swig_varlink_str(swig_varlinkobject *v) {
36325 PyObject *str = PyString_FromString("(");
36326 swig_globalvar *var;
36327 for (var = v->vars; var; var=var->next) {
36328 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
36329 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
36330 }
36331 PyString_ConcatAndDel(&str,PyString_FromString(")"));
36332 return str;
36333 }
36334
36335 SWIGINTERN int
36336 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
36337 PyObject *str = swig_varlink_str(v);
36338 fprintf(fp,"Swig global variables ");
36339 fprintf(fp,"%s\n", PyString_AsString(str));
36340 Py_DECREF(str);
36341 return 0;
36342 }
36343
36344 SWIGINTERN void
36345 swig_varlink_dealloc(swig_varlinkobject *v) {
36346 swig_globalvar *var = v->vars;
36347 while (var) {
36348 swig_globalvar *n = var->next;
36349 free(var->name);
36350 free(var);
36351 var = n;
36352 }
36353 }
36354
36355 SWIGINTERN PyObject *
36356 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
36357 PyObject *res = NULL;
36358 swig_globalvar *var = v->vars;
36359 while (var) {
36360 if (strcmp(var->name,n) == 0) {
36361 res = (*var->get_attr)();
36362 break;
36363 }
36364 var = var->next;
36365 }
36366 if (res == NULL && !PyErr_Occurred()) {
36367 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
36368 }
36369 return res;
36370 }
36371
36372 SWIGINTERN int
36373 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
36374 int res = 1;
36375 swig_globalvar *var = v->vars;
36376 while (var) {
36377 if (strcmp(var->name,n) == 0) {
36378 res = (*var->set_attr)(p);
36379 break;
36380 }
36381 var = var->next;
36382 }
36383 if (res == 1 && !PyErr_Occurred()) {
36384 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
36385 }
36386 return res;
36387 }
36388
36389 SWIGINTERN PyTypeObject*
36390 swig_varlink_type(void) {
36391 static char varlink__doc__[] = "Swig var link object";
36392 static PyTypeObject varlink_type;
36393 static int type_init = 0;
36394 if (!type_init) {
36395 const PyTypeObject tmp
36396 = {
36397 PyObject_HEAD_INIT(NULL)
36398 0, /* Number of items in variable part (ob_size) */
36399 (char *)"swigvarlink", /* Type name (tp_name) */
36400 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
36401 0, /* Itemsize (tp_itemsize) */
36402 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
36403 (printfunc) swig_varlink_print, /* Print (tp_print) */
36404 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
36405 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
36406 0, /* tp_compare */
36407 (reprfunc) swig_varlink_repr, /* tp_repr */
36408 0, /* tp_as_number */
36409 0, /* tp_as_sequence */
36410 0, /* tp_as_mapping */
36411 0, /* tp_hash */
36412 0, /* tp_call */
36413 (reprfunc)swig_varlink_str, /* tp_str */
36414 0, /* tp_getattro */
36415 0, /* tp_setattro */
36416 0, /* tp_as_buffer */
36417 0, /* tp_flags */
36418 varlink__doc__, /* tp_doc */
36419 0, /* tp_traverse */
36420 0, /* tp_clear */
36421 0, /* tp_richcompare */
36422 0, /* tp_weaklistoffset */
36423 #if PY_VERSION_HEX >= 0x02020000
36424 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
36425 #endif
36426 #if PY_VERSION_HEX >= 0x02030000
36427 0, /* tp_del */
36428 #endif
36429 #ifdef COUNT_ALLOCS
36430 0,0,0,0 /* tp_alloc -> tp_next */
36431 #endif
36432 };
36433 varlink_type = tmp;
36434 varlink_type.ob_type = &PyType_Type;
36435 type_init = 1;
36436 }
36437 return &varlink_type;
36438 }
36439
36440 /* Create a variable linking object for use later */
36441 SWIGINTERN PyObject *
36442 SWIG_Python_newvarlink(void) {
36443 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
36444 if (result) {
36445 result->vars = 0;
36446 }
36447 return ((PyObject*) result);
36448 }
36449
36450 SWIGINTERN void
36451 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
36452 swig_varlinkobject *v = (swig_varlinkobject *) p;
36453 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
36454 if (gv) {
36455 size_t size = strlen(name)+1;
36456 gv->name = (char *)malloc(size);
36457 if (gv->name) {
36458 strncpy(gv->name,name,size);
36459 gv->get_attr = get_attr;
36460 gv->set_attr = set_attr;
36461 gv->next = v->vars;
36462 }
36463 }
36464 v->vars = gv;
36465 }
36466
36467 SWIGINTERN PyObject *
36468 SWIG_globals() {
36469 static PyObject *_SWIG_globals = 0;
36470 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
36471 return _SWIG_globals;
36472 }
36473
36474 /* -----------------------------------------------------------------------------
36475 * constants/methods manipulation
36476 * ----------------------------------------------------------------------------- */
36477
36478 /* Install Constants */
36479 SWIGINTERN void
36480 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
36481 PyObject *obj = 0;
36482 size_t i;
36483 for (i = 0; constants[i].type; ++i) {
36484 switch(constants[i].type) {
36485 case SWIG_PY_POINTER:
36486 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
36487 break;
36488 case SWIG_PY_BINARY:
36489 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
36490 break;
36491 default:
36492 obj = 0;
36493 break;
36494 }
36495 if (obj) {
36496 PyDict_SetItemString(d, constants[i].name, obj);
36497 Py_DECREF(obj);
36498 }
36499 }
36500 }
36501
36502 /* -----------------------------------------------------------------------------*/
36503 /* Fix SwigMethods to carry the callback ptrs when needed */
36504 /* -----------------------------------------------------------------------------*/
36505
36506 SWIGINTERN void
36507 SWIG_Python_FixMethods(PyMethodDef *methods,
36508 swig_const_info *const_table,
36509 swig_type_info **types,
36510 swig_type_info **types_initial) {
36511 size_t i;
36512 for (i = 0; methods[i].ml_name; ++i) {
36513 const char *c = methods[i].ml_doc;
36514 if (c && (c = strstr(c, "swig_ptr: "))) {
36515 int j;
36516 swig_const_info *ci = 0;
36517 const char *name = c + 10;
36518 for (j = 0; const_table[j].type; ++j) {
36519 if (strncmp(const_table[j].name, name,
36520 strlen(const_table[j].name)) == 0) {
36521 ci = &(const_table[j]);
36522 break;
36523 }
36524 }
36525 if (ci) {
36526 size_t shift = (ci->ptype) - types;
36527 swig_type_info *ty = types_initial[shift];
36528 size_t ldoc = (c - methods[i].ml_doc);
36529 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
36530 char *ndoc = (char*)malloc(ldoc + lptr + 10);
36531 if (ndoc) {
36532 char *buff = ndoc;
36533 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
36534 if (ptr) {
36535 strncpy(buff, methods[i].ml_doc, ldoc);
36536 buff += ldoc;
36537 strncpy(buff, "swig_ptr: ", 10);
36538 buff += 10;
36539 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
36540 methods[i].ml_doc = ndoc;
36541 }
36542 }
36543 }
36544 }
36545 }
36546 }
36547
36548 #ifdef __cplusplus
36549 }
36550 #endif
36551
36552 /* -----------------------------------------------------------------------------*
36553 * Partial Init method
36554 * -----------------------------------------------------------------------------*/
36555
36556 #ifdef __cplusplus
36557 extern "C"
36558 #endif
36559 SWIGEXPORT void SWIG_init(void) {
36560 PyObject *m, *d;
36561
36562 /* Fix SwigMethods to carry the callback ptrs when needed */
36563 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
36564
36565 m = Py_InitModule((char *) SWIG_name, SwigMethods);
36566 d = PyModule_GetDict(m);
36567
36568 SWIG_InitializeModule(0);
36569 SWIG_InstallConstants(d,swig_const_table);
36570
36571
36572 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
36573 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
36574 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
36575 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
36576 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
36577 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
36578 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
36579 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
36580 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
36581 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
36582 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
36583 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
36584 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
36585 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
36586 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
36587 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
36588 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
36589 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
36590 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
36591 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
36592 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
36593 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
36594 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
36595 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
36596 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
36597 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
36598 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
36599 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
36600 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
36601 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
36602 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
36603 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
36604 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
36605 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
36606 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
36607 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
36608 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
36609 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
36610 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
36611 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
36612 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
36613 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
36614 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
36615 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
36616 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
36617 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
36618 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
36619 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
36620 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
36621 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
36622 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
36623 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
36624 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
36625 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
36626 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
36627 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
36628 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
36629 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
36630 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
36631 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
36632 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
36633 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
36634 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
36635 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
36636 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
36637 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
36638 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
36639 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
36640 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
36641 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
36642 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
36643 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
36644 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
36645 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
36646 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
36647 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
36648 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
36649 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
36650 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
36651 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
36652 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
36653 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
36654 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
36655 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
36656 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
36657 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
36658 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
36659 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
36660 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
36661 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
36662 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
36663 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
36664 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
36665 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
36666 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
36667 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
36668 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
36669 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
36670 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
36671 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
36672 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
36673 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
36674 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
36675 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
36676 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
36677 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
36678 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
36679 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
36680 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
36681 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
36682 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
36683 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
36684 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
36685 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
36686 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
36687 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
36688 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
36689 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
36690 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
36691 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
36692 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
36693 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
36694 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
36695 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
36696 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
36697 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
36698 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
36699 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
36700 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
36701 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
36702 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
36703 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
36704
36705 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
36706
36707 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
36708 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
36709 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
36710 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
36711 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
36712 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
36713 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
36714 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
36715 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
36716 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
36717 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
36718 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
36719 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
36720 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
36721 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
36722 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
36723 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
36724 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
36725 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
36726 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
36727 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
36728 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
36729 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
36730 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
36731 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
36732 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
36733 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
36734 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
36735 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
36736 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
36737 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
36738 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
36739 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
36740 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
36741 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
36742 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
36743 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
36744 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
36745 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
36746 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
36747 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
36748 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
36749 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
36750 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
36751 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
36752 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
36753 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
36754 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
36755 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
36756 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
36757 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
36758 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
36759 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
36760 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
36761 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
36762 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
36763 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
36764 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
36765 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
36766 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
36767 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
36768 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
36769 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
36770 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
36771 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
36772 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
36773 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
36774 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
36775 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
36776 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
36777 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
36778 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
36779 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
36780 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
36781 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
36782 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
36783 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
36784 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
36785 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
36786 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
36787 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
36788 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
36789 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
36790 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
36791 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
36792 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
36793 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
36794 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
36795 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
36796 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
36797 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
36798 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
36799 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
36800 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
36801 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
36802 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
36803 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
36804 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
36805 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
36806 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
36807 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
36808 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
36809 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
36810 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
36811 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
36812 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
36813 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
36814 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
36815 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
36816 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
36817 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
36818 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
36819 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
36820 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
36821 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
36822 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
36823 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
36824 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
36825 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
36826 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
36827 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
36828 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
36829 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
36830 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
36831 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
36832 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
36833 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
36834 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
36835 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
36836 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
36837 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
36838 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
36839 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
36840 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
36841 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
36842 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
36843 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
36844 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
36845 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
36846 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
36847 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
36848 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
36849 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
36850 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
36851 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
36852 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
36853 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
36854 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
36855 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
36856 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
36857 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
36858 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
36859 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
36860 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
36861 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
36862 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
36863 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
36864 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
36865 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
36866 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
36867 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
36868 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
36869 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
36870 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
36871 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
36872 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
36873 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
36874 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
36875 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
36876 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
36877 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
36878 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
36879 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
36880 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
36881 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
36882 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
36883 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
36884 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
36885 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
36886 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
36887 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
36888 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
36889 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
36890 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
36891 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
36892 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
36893 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
36894 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
36895 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
36896 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
36897 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
36898 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
36899 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
36900 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
36901 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
36902 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
36903 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
36904 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
36905 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
36906 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
36907 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
36908 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
36909 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
36910 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
36911 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
36912 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
36913 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
36914 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
36915 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
36916 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
36917 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
36918 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
36919 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
36920 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
36921 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
36922 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
36923 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
36924 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
36925 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
36926 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
36927 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
36928 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
36929 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
36930 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
36931 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
36932 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
36933 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
36934 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
36935 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
36936 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
36937 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
36938 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
36939 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
36940 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
36941 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
36942 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
36943 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
36944 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
36945 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
36946 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
36947 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
36948 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
36949 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
36950 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
36951 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
36952 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
36953 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
36954 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
36955 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
36956 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
36957 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
36958 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
36959 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
36960 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
36961 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
36962 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
36963 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
36964 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
36965 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
36966 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
36967 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
36968 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
36969 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
36970 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
36971 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
36972 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
36973 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
36974 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
36975 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
36976 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
36977 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
36978 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
36979 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
36980 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
36981 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
36982 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
36983 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
36984 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
36985 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
36986 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
36987 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
36988 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
36989 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
36990 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
36991 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
36992 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
36993 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
36994 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
36995 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
36996 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
36997 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
36998 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
36999 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
37000 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
37001 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
37002 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
37003 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
37004 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
37005 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
37006 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
37007 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
37008 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
37009 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
37010 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
37011 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
37012 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
37013 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
37014 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
37015 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
37016 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
37017 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
37018 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
37019 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
37020 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
37021 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
37022 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
37023 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
37024 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
37025 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
37026
37027 // Work around a chicken/egg problem in drawlist.cpp
37028 wxPyDrawList_SetAPIPtr();
37029
37030 }
37031